@salesforce/b2c-cli 1.11.0 → 1.12.1
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/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 +5512 -5207
- package/package.json +3 -3
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import Bytes = require('../util/Bytes');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This class provides the functionality of a "Message Authentication Code" (MAC) algorithm.
|
|
5
|
+
* A MAC provides a way to check the integrity of information transmitted over or
|
|
6
|
+
* stored in an unreliable medium, based on a secret key.
|
|
7
|
+
* Typically, message authentication codes are used between two parties
|
|
8
|
+
* that share a secret key in order to validate information transmitted between these parties.
|
|
9
|
+
* A MAC mechanism that is based on cryptographic hash functions is referred to as HMAC.
|
|
10
|
+
* HMAC can be used with any cryptographic hash function, e.g., SHA256,
|
|
11
|
+
* in combination with a secret shared key. HMAC is specified in RFC 2104.
|
|
12
|
+
*
|
|
13
|
+
* Note: this class handles sensitive security-related data.
|
|
14
|
+
* Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
|
|
15
|
+
*/
|
|
16
|
+
declare class Mac {
|
|
17
|
+
/**
|
|
18
|
+
* Constant representing the HMAC-MD5 keyed-hashing algorithm as defined in RFC 2104 "HMAC: Keyed-Hashing for Message Authentication" (February 1997).
|
|
19
|
+
* This algorithm uses as MD5 cryptographic hash function.
|
|
20
|
+
* @deprecated This algorithm is obsolete and and has been deprecated. Please use HmacSHA256, HmacSHA384 or HmacSHA512.
|
|
21
|
+
*/
|
|
22
|
+
static readonly HMAC_MD5 = "HmacMD5";
|
|
23
|
+
/**
|
|
24
|
+
* Constant representing the HmacSHA1 algorithms as defined in RFC 2104 "HMAC: Keyed-Hashing for Message Authentication" (February 1997)
|
|
25
|
+
* with SHA-1 as the message digest algorithm.
|
|
26
|
+
* @deprecated This algorithm is obsolete and and has been deprecated. Please use HmacSHA256, HmacSHA384 or HmacSHA512.
|
|
27
|
+
*/
|
|
28
|
+
static readonly HMAC_SHA_1 = "HmacSHA1";
|
|
29
|
+
/**
|
|
30
|
+
* Constant representing the HmacSHA256 algorithms as defined in RFC 2104 "HMAC: Keyed-Hashing for Message Authentication" (February 1997)
|
|
31
|
+
* with SHA-256 as the message digest algorithm.
|
|
32
|
+
*/
|
|
33
|
+
static readonly HMAC_SHA_256 = "HmacSHA256";
|
|
34
|
+
/**
|
|
35
|
+
* Constant representing the HmacSHA384 algorithms as defined in RFC 2104 "HMAC: Keyed-Hashing for Message Authentication" (February 1997)
|
|
36
|
+
* with SHA-384 as the message digest algorithm.
|
|
37
|
+
*/
|
|
38
|
+
static readonly HMAC_SHA_384 = "HmacSHA384";
|
|
39
|
+
/**
|
|
40
|
+
* Constant representing the HmacSHA512 algorithms as defined in RFC 2104 "HMAC: Keyed-Hashing for Message Authentication" (February 1997)
|
|
41
|
+
* with SHA-512 as the message digest algorithm.
|
|
42
|
+
*/
|
|
43
|
+
static readonly HMAC_SHA_512 = "HmacSHA512";
|
|
44
|
+
/**
|
|
45
|
+
* Construct a Mac encryption instance with the specified algorithm name. The
|
|
46
|
+
* supported algorithms are:
|
|
47
|
+
*
|
|
48
|
+
* - SHA 256
|
|
49
|
+
* - SHA 384
|
|
50
|
+
* - SHA 512
|
|
51
|
+
* @throws NullArgumentException if algorithm is null.
|
|
52
|
+
* @throws IllegalArgumentException if the specified algorithm name is not supported.
|
|
53
|
+
*/
|
|
54
|
+
constructor(algorithm: string);
|
|
55
|
+
/**
|
|
56
|
+
* Computes the hash value for the passed string input using the passed secret key.
|
|
57
|
+
* Given input and the given key will be first converted with UTF-8 encoding into a byte array.
|
|
58
|
+
* The resulting hash is typically converted with base64 back into a string.
|
|
59
|
+
* @throws IllegalArgumentException if algorithm is not null and the specified algorithm name is not supported.
|
|
60
|
+
*/
|
|
61
|
+
digest(input: string, key: string): Bytes;
|
|
62
|
+
/**
|
|
63
|
+
* Computes the hash value for the passed string input using the passed secret key.
|
|
64
|
+
* Given input will be first converted with UTF-8 encoding into a byte array.
|
|
65
|
+
* The resulting hash is typically converted with base64 back into a string.
|
|
66
|
+
* @throws IllegalArgumentException if algorithm is not null and the specified algorithm name is not supported.
|
|
67
|
+
*/
|
|
68
|
+
digest(input: string, key: Bytes): Bytes;
|
|
69
|
+
/**
|
|
70
|
+
* Computes the hash value for the passed bytes input using the passed secret key.
|
|
71
|
+
* @throws IllegalArgumentException if algorithm is not null and the specified algorithm name is not supported.
|
|
72
|
+
*/
|
|
73
|
+
digest(input: Bytes, key: Bytes): Bytes;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export = Mac;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import Bytes = require('../util/Bytes');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This class provides the functionality of a message digest algorithm, such as
|
|
5
|
+
* MD5 or SHA. Message digests are secure one-way hash functions that take
|
|
6
|
+
* arbitrary-sized data and output a fixed-length hash value. This
|
|
7
|
+
* implementation offers only stateless digest() methods. A Bytes object or
|
|
8
|
+
* String is passed to a digest() method and the computed hash is returned.
|
|
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 MessageDigest {
|
|
14
|
+
/**
|
|
15
|
+
* Constant representing the MD2 algorithm.
|
|
16
|
+
* @deprecated This algorithm is obsolete and and has been deprecated. Please use SHA-256 or SHA-512.
|
|
17
|
+
*/
|
|
18
|
+
static readonly DIGEST_MD2 = "MD2";
|
|
19
|
+
/**
|
|
20
|
+
* Constant representing the MD5 algorithm.
|
|
21
|
+
* @deprecated This algorithm is obsolete and and has been deprecated. Please use SHA-256 or SHA-512.
|
|
22
|
+
*/
|
|
23
|
+
static readonly DIGEST_MD5 = "MD5";
|
|
24
|
+
/**
|
|
25
|
+
* Constant representing the SHA algorithm.
|
|
26
|
+
* @deprecated This algorithm is obsolete and and has been deprecated. Please use SHA-256 or SHA-512.
|
|
27
|
+
*/
|
|
28
|
+
static readonly DIGEST_SHA = "SHA";
|
|
29
|
+
/**
|
|
30
|
+
* Constant representing the SHA 1 algorithm.
|
|
31
|
+
* @deprecated This algorithm is obsolete and and has been deprecated. Please use SHA-256 or SHA-512.
|
|
32
|
+
*/
|
|
33
|
+
static readonly DIGEST_SHA_1 = "SHA-1";
|
|
34
|
+
/**
|
|
35
|
+
* Constant representing the SHA 256 algorithm
|
|
36
|
+
*/
|
|
37
|
+
static readonly DIGEST_SHA_256 = "SHA-256";
|
|
38
|
+
/**
|
|
39
|
+
* Constant representing the SHA 512 algorithm
|
|
40
|
+
*/
|
|
41
|
+
static readonly DIGEST_SHA_512 = "SHA-512";
|
|
42
|
+
/**
|
|
43
|
+
* Construct a MessageDigest with the specified algorithm name. The
|
|
44
|
+
* supported algorithms are:
|
|
45
|
+
*
|
|
46
|
+
* - SHA-256
|
|
47
|
+
* - SHA-512
|
|
48
|
+
*/
|
|
49
|
+
constructor(algorithm: string);
|
|
50
|
+
/**
|
|
51
|
+
* Digests the passed string and returns a computed hash value as a string.
|
|
52
|
+
* The passed String is first encoded into a sequence of bytes using the
|
|
53
|
+
* platform's default encoding. The digest then performs any prerequisite
|
|
54
|
+
* padding, before computing the hash value. The hash is then converted into
|
|
55
|
+
* a string by converting all digits to hexadecimal.
|
|
56
|
+
* @deprecated Deprecated because the conversion of the input to bytes using
|
|
57
|
+
* the default platform encoding and the hex-encoded return
|
|
58
|
+
* value are not generally appropriate.
|
|
59
|
+
*/
|
|
60
|
+
digest(input: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Computes the hash value for the passed array of bytes. The algorithm
|
|
63
|
+
* argument is optional. If null, then the algorithm established at
|
|
64
|
+
* construction time is used.
|
|
65
|
+
*
|
|
66
|
+
* The binary representation of the message is typically derived from a
|
|
67
|
+
* string and the resulting hash is typically converted with base64 back
|
|
68
|
+
* into a string. Example:
|
|
69
|
+
*
|
|
70
|
+
* `
|
|
71
|
+
* Encoding.toBase64( digest( "MD5", new Bytes( "my password", "UTF-8" ) ) );
|
|
72
|
+
* `
|
|
73
|
+
* @deprecated Deprecated because the digest algorithm should be the one
|
|
74
|
+
* set in the constructor.
|
|
75
|
+
*/
|
|
76
|
+
digest(algorithm: string | null, input: Bytes): Bytes;
|
|
77
|
+
/**
|
|
78
|
+
* Completes the hash computation by performing final operations such as
|
|
79
|
+
* padding.
|
|
80
|
+
*
|
|
81
|
+
* The binary representation of the message is typically derived from a
|
|
82
|
+
* string and the resulting hash is typically converted with base64 back
|
|
83
|
+
* into a string. Example:
|
|
84
|
+
*
|
|
85
|
+
* `
|
|
86
|
+
* Encoding.toBase64( digest() );
|
|
87
|
+
* `
|
|
88
|
+
*/
|
|
89
|
+
digest(): Bytes;
|
|
90
|
+
/**
|
|
91
|
+
* Computes the hash value for the passed dw.util.Bytes.
|
|
92
|
+
*
|
|
93
|
+
* The binary representation of the message is typically derived from a
|
|
94
|
+
* string and the resulting hash is typically converted with base64 back
|
|
95
|
+
* into a string. Example:
|
|
96
|
+
*
|
|
97
|
+
* `
|
|
98
|
+
* Encoding.toBase64( digest( new Bytes( "my password", "UTF-8" ) ) );
|
|
99
|
+
* `
|
|
100
|
+
*/
|
|
101
|
+
digestBytes(input: Bytes): Bytes;
|
|
102
|
+
/**
|
|
103
|
+
* Updates the digest using the passed dw.util.Bytes.
|
|
104
|
+
*/
|
|
105
|
+
updateBytes(input: Bytes): void;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export = MessageDigest;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import Bytes = require('../util/Bytes');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The SecureRandom class provides a cryptographically strong random number generator (RNG).
|
|
5
|
+
* See the Internet Engineering Task Force (IETF) RFC 1750: Randomness Recommendations for
|
|
6
|
+
* Security for more information.</a>
|
|
7
|
+
*
|
|
8
|
+
* Typical callers of SecureRandom invoke the following methods to retrieve random bytes:
|
|
9
|
+
*
|
|
10
|
+
* ```
|
|
11
|
+
* Bytes bytes...
|
|
12
|
+
* SecureRandom random = new SecureRandom();
|
|
13
|
+
* Bytes nextBytes = random.nextBytes(bytes);
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* or more convenient to get a Bytes with the demanded length
|
|
17
|
+
*
|
|
18
|
+
* ```
|
|
19
|
+
* int length = 32;
|
|
20
|
+
* SecureRandom random = new SecureRandom();
|
|
21
|
+
* Bytes nextBytes = random.nextBytes(length);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* dw.crypto.SecureRandom is intentionally an adapter for generating cryptographic hard random numbers.
|
|
25
|
+
*/
|
|
26
|
+
declare class SecureRandom {
|
|
27
|
+
/**
|
|
28
|
+
* Instantiates a new secure random.
|
|
29
|
+
*/
|
|
30
|
+
constructor();
|
|
31
|
+
/**
|
|
32
|
+
* Returns the given number of seed bytes, computed using the seed
|
|
33
|
+
* generation algorithm that this class uses to seed itself. This
|
|
34
|
+
* call may be used to seed other random number generators.
|
|
35
|
+
*/
|
|
36
|
+
generateSeed(numBytes: number): Bytes;
|
|
37
|
+
/**
|
|
38
|
+
* Generates a user-specified number of random bytes.
|
|
39
|
+
*
|
|
40
|
+
* If a call to `setSeed` had not occurred previously,
|
|
41
|
+
* the first call to this method forces this SecureRandom object
|
|
42
|
+
* to seed itself. This self-seeding will not occur if
|
|
43
|
+
* `setSeed` was previously called.
|
|
44
|
+
*/
|
|
45
|
+
nextBytes(numBits: number): Bytes;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence. The general
|
|
48
|
+
* contract of nextInt is that one int value is pseudorandomly generated and returned. All 2^32
|
|
49
|
+
* possible int values are produced with (approximately) equal probability.
|
|
50
|
+
*/
|
|
51
|
+
nextInt(): number;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a pseudorandom, uniformly distributed int value
|
|
54
|
+
* between 0 (inclusive) and the specified value (exclusive), drawn from
|
|
55
|
+
* this random number generator's sequence.
|
|
56
|
+
* @throws IllegalArgumentException if n is not positive
|
|
57
|
+
*/
|
|
58
|
+
nextInt(upperBound: number): number;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the next pseudorandom, uniformly distributed
|
|
61
|
+
* Number value between 0.0 (inclusive) and 1.0 (exclusive) from this random number generator's sequence.
|
|
62
|
+
*/
|
|
63
|
+
nextNumber(): number;
|
|
64
|
+
/**
|
|
65
|
+
* Reseeds this random object. The given seed supplements, rather than replaces, the existing seed. Thus, repeated calls are guaranteed never to reduce randomness.
|
|
66
|
+
*/
|
|
67
|
+
setSeed(seed: Bytes): void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export = SecureRandom;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Signature.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import KeyRef = require('./KeyRef');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
import CertificateRef = require('./CertificateRef');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* This class allows access to signature services offered through the Java
|
|
8
|
+
* Cryptography Architecture (JCA). At this time the signature/verification implementation of the
|
|
9
|
+
* methods is based on the default RSA JCE provider of the JDK - sun.security.rsa.SunRsaSign
|
|
10
|
+
*
|
|
11
|
+
* dw.crypto.Signature is an adapter to the security provider implementation
|
|
12
|
+
* and covers several digest algorithms:
|
|
13
|
+
*
|
|
14
|
+
* - SHA1withRSA (deprecated)
|
|
15
|
+
* - SHA256withRSA
|
|
16
|
+
* - SHA384withRSA
|
|
17
|
+
* - SHA512withRSA
|
|
18
|
+
* - SHA256withRSA/PSS
|
|
19
|
+
* - SHA384withRSA/PSS
|
|
20
|
+
* - SHA512withRSA/PSS
|
|
21
|
+
* - SHA256withECDSA
|
|
22
|
+
* - SHA384withECDSA
|
|
23
|
+
* - SHA512withECDSA
|
|
24
|
+
*
|
|
25
|
+
* Key size generally ranges between 512 and 65536 bits (the latter of which is unnecessarily large).
|
|
26
|
+
*
|
|
27
|
+
* Default key size for RSA is 1024. SHA384withRSA and SHA512withRSA require a key with length of at least 1024 bits.
|
|
28
|
+
*
|
|
29
|
+
* For ECDSA, the following key sizes are supported:
|
|
30
|
+
*
|
|
31
|
+
* - SHA256withECDSA: 256-bit key (NIST P-256)
|
|
32
|
+
* - SHA384withECDSA: 384-bit key (NIST P-384)
|
|
33
|
+
* - SHA512withECDSA: 521-bit key (NIST P-521)
|
|
34
|
+
*
|
|
35
|
+
* When choosing a key size - beware of the tradeoff between security and processing time:
|
|
36
|
+
*
|
|
37
|
+
* The longer the key, the harder to break it but also it takes more time for the two sides to sign and verify the signature.
|
|
38
|
+
*
|
|
39
|
+
* An exception will be thrown for keys shorter than 2048 bits in this version of the API.
|
|
40
|
+
*
|
|
41
|
+
* Note: this class handles sensitive security-related data.
|
|
42
|
+
* Pay special attention to PCI DSS v3. requirements 2, 4, 12, and other relevant requirements.
|
|
43
|
+
*/
|
|
44
|
+
declare class Signature {
|
|
45
|
+
/**
|
|
46
|
+
* Supported digest algorithms exposed as a string array
|
|
47
|
+
*/
|
|
48
|
+
static readonly SUPPORTED_DIGEST_ALGORITHMS_AS_ARRAY: string[];
|
|
49
|
+
private constructor();
|
|
50
|
+
/**
|
|
51
|
+
* Checks to see if a digest algorithm is supported
|
|
52
|
+
*/
|
|
53
|
+
isDigestAlgorithmSupported(digestAlgorithm: string): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Signs a string and returns a string
|
|
56
|
+
*/
|
|
57
|
+
sign(contentToSign: string, privateKey: string, digestAlgorithm: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* Signs a string and returns a string
|
|
60
|
+
*/
|
|
61
|
+
sign(contentToSign: string, privateKey: KeyRef, digestAlgorithm: string): string;
|
|
62
|
+
/**
|
|
63
|
+
* Signs bytes and returns bytes
|
|
64
|
+
*/
|
|
65
|
+
signBytes(contentToSign: Bytes, privateKey: string, digestAlgorithm: string): Bytes;
|
|
66
|
+
/**
|
|
67
|
+
* Signs bytes and returns bytes
|
|
68
|
+
*/
|
|
69
|
+
signBytes(contentToSign: Bytes, privateKey: KeyRef, digestAlgorithm: string): Bytes;
|
|
70
|
+
/**
|
|
71
|
+
* Verifies a signature supplied as bytes
|
|
72
|
+
*/
|
|
73
|
+
verifyBytesSignature(signature: Bytes, contentToVerify: Bytes, publicKey: string, digestAlgorithm: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Verifies a signature supplied as bytes
|
|
76
|
+
*/
|
|
77
|
+
verifyBytesSignature(signature: Bytes, contentToVerify: Bytes, certificate: CertificateRef, digestAlgorithm: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Verifies a signature supplied as string
|
|
80
|
+
*/
|
|
81
|
+
verifySignature(signature: string, contentToVerify: string, publicKey: string, digestAlgorithm: string): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Verifies a signature supplied as string
|
|
84
|
+
*/
|
|
85
|
+
verifySignature(signature: string, contentToVerify: string, certificate: CertificateRef, digestAlgorithm: string): boolean;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export = Signature;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakCipher.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import CertificateRef = require('./CertificateRef');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
import KeyRef = require('./KeyRef');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This API provides access to Deprecated algorithms.
|
|
7
|
+
*
|
|
8
|
+
* See Cipher for full documentation. WeakCipher is simply a drop-in replacement that only supports
|
|
9
|
+
* deprecated algorithms and key lengths. This is helpful when you need to deal with weak algorithms for backward
|
|
10
|
+
* compatibility purposes, but Cipher should always be used for new development and for anything intended to be secure.
|
|
11
|
+
*
|
|
12
|
+
* Note: this class handles sensitive security-related data. Pay special attention to PCI DSS v3 requirements 2,
|
|
13
|
+
* 4, and 12.
|
|
14
|
+
*/
|
|
15
|
+
declare class WeakCipher {
|
|
16
|
+
/**
|
|
17
|
+
* Strings containing keys, plain texts, cipher texts etc. are internally
|
|
18
|
+
* converted into byte arrays using this encoding (currently UTF8).
|
|
19
|
+
*/
|
|
20
|
+
static readonly CHAR_ENCODING = "UTF8";
|
|
21
|
+
private constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Decrypts the message using the given parameters. See
|
|
24
|
+
* Cipher.decrypt_1 for full documentation.
|
|
25
|
+
*/
|
|
26
|
+
decrypt(base64Msg: string, key: string, transformation: string, saltOrIV: string, iterations: number): string;
|
|
27
|
+
/**
|
|
28
|
+
* Lower-level decryption API. Decrypts the passed bytes using the specified
|
|
29
|
+
* key and applying the transformations described by the specified
|
|
30
|
+
* parameters. See Cipher.decryptBytes_1 for full
|
|
31
|
+
* documentation.
|
|
32
|
+
* @see decrypt_1
|
|
33
|
+
*/
|
|
34
|
+
decryptBytes(encryptedBytes: Bytes, key: string, transformation: string, saltOrIV: string, iterations: number): Bytes;
|
|
35
|
+
/**
|
|
36
|
+
* Encrypt the passed message by using the specified key and applying the
|
|
37
|
+
* transformations described by the specified parameters.
|
|
38
|
+
*
|
|
39
|
+
* See Cipher.encrypt_1 for full documentation.
|
|
40
|
+
*/
|
|
41
|
+
encrypt(message: string, key: string, transformation: string, saltOrIV: string, iterations: number): string;
|
|
42
|
+
/**
|
|
43
|
+
* Lower-level encryption API. Encrypts the passed bytes by using the specified key and applying the transformations
|
|
44
|
+
* described by the specified parameters. See Cipher.encryptBytes_1
|
|
45
|
+
* for full documentation.
|
|
46
|
+
* @see encrypt_1
|
|
47
|
+
*/
|
|
48
|
+
encryptBytes(messageBytes: Bytes, key: string, transformation: string, saltOrIV: string, iterations: number): Bytes;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export = WeakCipher;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMac.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import Bytes = require('../util/Bytes');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This API provides access to Deprecated algorithms.
|
|
5
|
+
*
|
|
6
|
+
* See Mac for full documentation. WeakMac is simply a drop-in replacement that only supports
|
|
7
|
+
* deprecated algorithms. This is helpful when you need to deal with weak algorithms for backward
|
|
8
|
+
* compatibility purposes, but Mac should always be used for new development and for anything intended to be secure.
|
|
9
|
+
*
|
|
10
|
+
* This class provides the functionality of a "Message Authentication Code" (MAC) algorithm.
|
|
11
|
+
* A MAC provides a way to check the integrity of information transmitted over or
|
|
12
|
+
* stored in an unreliable medium, based on a secret key.
|
|
13
|
+
* Typically, message authentication codes are used between two parties
|
|
14
|
+
* that share a secret key in order to validate information transmitted between these parties.
|
|
15
|
+
* A MAC mechanism that is based on cryptographic hash functions is referred to as HMAC.
|
|
16
|
+
* HMAC can be used with any cryptographic hash function, e.g., SHA256,
|
|
17
|
+
* in combination with a secret shared key. HMAC is specified in RFC 2104.
|
|
18
|
+
*
|
|
19
|
+
* Note: this class handles sensitive security-related data.
|
|
20
|
+
* Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
|
|
21
|
+
*/
|
|
22
|
+
declare class WeakMac {
|
|
23
|
+
/**
|
|
24
|
+
* Constant representing the HMAC-MD5 keyed-hashing algorithm as defined in RFC 2104 "HMAC: Keyed-Hashing for Message Authentication" (February 1997).
|
|
25
|
+
* This algorithm uses as MD5 cryptographic hash function.
|
|
26
|
+
*
|
|
27
|
+
* This algorithm is obsolete. Do not use it for any sensitive data
|
|
28
|
+
*/
|
|
29
|
+
static readonly HMAC_MD5 = "HmacMD5";
|
|
30
|
+
/**
|
|
31
|
+
* Constant representing the HmacSHA1 algorithms as defined in RFC 2104 "HMAC: Keyed-Hashing for Message Authentication" (February 1997)
|
|
32
|
+
* with SHA-1 as the message digest algorithm.
|
|
33
|
+
*
|
|
34
|
+
* This algorithm is obsolete. Do not use it for any sensitive data
|
|
35
|
+
*/
|
|
36
|
+
static readonly HMAC_SHA_1 = "HmacSHA1";
|
|
37
|
+
/**
|
|
38
|
+
* Construct a Mac encryption instance with the specified algorithm name. The
|
|
39
|
+
* supported algorithms are:
|
|
40
|
+
*
|
|
41
|
+
* - HmacMD5
|
|
42
|
+
* - HmacSHA1
|
|
43
|
+
* @throws NullArgumentException if algorithm is null.
|
|
44
|
+
* @throws IllegalArgumentException if the specified algorithm name is not supported.
|
|
45
|
+
*/
|
|
46
|
+
constructor(algorithm: string);
|
|
47
|
+
/**
|
|
48
|
+
* Computes the hash value for the passed string input using the passed secret key.
|
|
49
|
+
* Given input and the given key will be first converted with UTF-8 encoding into a byte array.
|
|
50
|
+
* The resulting hash is typically converted with base64 back into a string.
|
|
51
|
+
* @throws IllegalArgumentException if algorithm is not null and the specified algorithm name is not supported.
|
|
52
|
+
*/
|
|
53
|
+
digest(input: string, key: string): Bytes;
|
|
54
|
+
/**
|
|
55
|
+
* Computes the hash value for the passed string input using the passed secret key.
|
|
56
|
+
* Given input will be first converted with UTF-8 encoding into a byte array.
|
|
57
|
+
* The resulting hash is typically converted with base64 back into a string.
|
|
58
|
+
* @throws IllegalArgumentException if algorithm is not null and the specified algorithm name is not supported.
|
|
59
|
+
*/
|
|
60
|
+
digest(input: string, key: Bytes): Bytes;
|
|
61
|
+
/**
|
|
62
|
+
* Computes the hash value for the passed bytes input using the passed secret key.
|
|
63
|
+
* @throws IllegalArgumentException if algorithm is not null and the specified algorithm name is not supported.
|
|
64
|
+
*/
|
|
65
|
+
digest(input: Bytes, key: Bytes): Bytes;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export = WeakMac;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import Bytes = require('../util/Bytes');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This API provides access to Deprecated algorithms.
|
|
5
|
+
*
|
|
6
|
+
* See MessageDigest for full documentation. WeakMessageDigest is simply a drop-in replacement that only supports
|
|
7
|
+
* deprecated algorithms. This is helpful when you need to deal with weak algorithms for backward
|
|
8
|
+
* compatibility purposes, but MessageDigest should always be used for new development and for anything intended to be secure.
|
|
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 WeakMessageDigest {
|
|
14
|
+
/**
|
|
15
|
+
* Constant representing the MD2 algorithm.
|
|
16
|
+
*
|
|
17
|
+
* This algorithm is obsolete. Do not use it for any sensitive data
|
|
18
|
+
*/
|
|
19
|
+
static readonly DIGEST_MD2 = "MD2";
|
|
20
|
+
/**
|
|
21
|
+
* Constant representing the MD5 algorithm.
|
|
22
|
+
*
|
|
23
|
+
* This algorithm is obsolete. Do not use it for any sensitive data
|
|
24
|
+
*/
|
|
25
|
+
static readonly DIGEST_MD5 = "MD5";
|
|
26
|
+
/**
|
|
27
|
+
* Constant representing the SHA algorithm.
|
|
28
|
+
*
|
|
29
|
+
* This algorithm is obsolete. Do not use it for any sensitive data
|
|
30
|
+
*/
|
|
31
|
+
static readonly DIGEST_SHA = "SHA";
|
|
32
|
+
/**
|
|
33
|
+
* Constant representing the SHA 1 algorithm.
|
|
34
|
+
*
|
|
35
|
+
* This algorithm is obsolete. Do not use it for any sensitive data
|
|
36
|
+
*/
|
|
37
|
+
static readonly DIGEST_SHA_1 = "SHA-1";
|
|
38
|
+
/**
|
|
39
|
+
* Construct a MessageDigest with the specified algorithm name.
|
|
40
|
+
*/
|
|
41
|
+
constructor(algorithm: string);
|
|
42
|
+
/**
|
|
43
|
+
* Digests the passed string and returns a computed hash value as a string.
|
|
44
|
+
* The passed String is first encoded into a sequence of bytes using the
|
|
45
|
+
* platform's default encoding. The digest then performs any prerequisite
|
|
46
|
+
* padding, before computing the hash value. The hash is then converted into
|
|
47
|
+
* a string by converting all digits to hexadecimal.
|
|
48
|
+
* @deprecated Deprecated because the conversion of the input to bytes using
|
|
49
|
+
* the default platform encoding and the hex-encoded return
|
|
50
|
+
* value are not generally appropriate.
|
|
51
|
+
*/
|
|
52
|
+
digest(input: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Computes the hash value for the passed array of bytes. The algorithm
|
|
55
|
+
* argument is optional. If null, then the algorithm established at
|
|
56
|
+
* construction time is used.
|
|
57
|
+
*
|
|
58
|
+
* The binary representation of the message is typically derived from a
|
|
59
|
+
* string and the resulting hash is typically converted with base64 back
|
|
60
|
+
* into a string. Example:
|
|
61
|
+
*
|
|
62
|
+
* `
|
|
63
|
+
* Encoding.toBase64( digest( "MD5", new Bytes( "my password", "UTF-8" ) ) );
|
|
64
|
+
* `
|
|
65
|
+
* @deprecated Deprecated because the digest algorithm should be the one
|
|
66
|
+
* set in the constructor.
|
|
67
|
+
*/
|
|
68
|
+
digest(algorithm: string | null, input: Bytes): Bytes;
|
|
69
|
+
/**
|
|
70
|
+
* Completes the hash computation by performing final operations such as
|
|
71
|
+
* padding.
|
|
72
|
+
*
|
|
73
|
+
* The binary representation of the message is typically derived from a
|
|
74
|
+
* string and the resulting hash is typically converted with base64 back
|
|
75
|
+
* into a string. Example:
|
|
76
|
+
*
|
|
77
|
+
* `
|
|
78
|
+
* Encoding.toBase64( digest() );
|
|
79
|
+
* `
|
|
80
|
+
*/
|
|
81
|
+
digest(): Bytes;
|
|
82
|
+
/**
|
|
83
|
+
* Computes the hash value for the passed dw.util.Bytes.
|
|
84
|
+
*
|
|
85
|
+
* The binary representation of the message is typically derived from a
|
|
86
|
+
* string and the resulting hash is typically converted with base64 back
|
|
87
|
+
* into a string. Example:
|
|
88
|
+
*
|
|
89
|
+
* `
|
|
90
|
+
* Encoding.toBase64( digest( new Bytes( "my password", "UTF-8" ) ) );
|
|
91
|
+
* `
|
|
92
|
+
*/
|
|
93
|
+
digestBytes(input: Bytes): Bytes;
|
|
94
|
+
/**
|
|
95
|
+
* Updates the digest using the passed dw.util.Bytes.
|
|
96
|
+
*/
|
|
97
|
+
updateBytes(input: Bytes): void;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export = WeakMessageDigest;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import KeyRef = require('./KeyRef');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
import CertificateRef = require('./CertificateRef');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This API provides access to Deprecated algorithms.
|
|
7
|
+
*
|
|
8
|
+
* See Signature for full documentation. WeakSignature is simply a drop-in replacement that only supports
|
|
9
|
+
* deprecated algorithms. This is helpful when you need to deal with weak algorithms for backward compatibility
|
|
10
|
+
* purposes, but Signature should always be used for new development and for anything intended to be secure.
|
|
11
|
+
*
|
|
12
|
+
* This class allows access to signature services offered through the Java Cryptography Architecture (JCA). At this time
|
|
13
|
+
* the signature/verification implementation of the methods is based on the default RSA JCE provider of the JDK -
|
|
14
|
+
* sun.security.rsa.SunRsaSign
|
|
15
|
+
*
|
|
16
|
+
* dw.crypto.WeakSignature is an adapter to the security provider implementation and only covers one digest algorithm:
|
|
17
|
+
*
|
|
18
|
+
* - SHA1withRSA
|
|
19
|
+
*
|
|
20
|
+
* Note: this class handles sensitive security-related data. Pay special attention to PCI DSS v3. requirements 2,
|
|
21
|
+
* 4, 12, and other relevant requirements.
|
|
22
|
+
*/
|
|
23
|
+
declare class WeakSignature {
|
|
24
|
+
private constructor();
|
|
25
|
+
/**
|
|
26
|
+
* Checks to see if a digest algorithm is supported
|
|
27
|
+
*/
|
|
28
|
+
isDigestAlgorithmSupported(digestAlgorithm: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Signs a string and returns a string
|
|
31
|
+
*/
|
|
32
|
+
sign(contentToSign: string, privateKey: string, digestAlgorithm: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Signs a string and returns a string
|
|
35
|
+
*/
|
|
36
|
+
sign(contentToSign: string, privateKey: KeyRef, digestAlgorithm: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Signs bytes and returns bytes
|
|
39
|
+
*/
|
|
40
|
+
signBytes(contentToSign: Bytes, privateKey: string, digestAlgorithm: string): Bytes;
|
|
41
|
+
/**
|
|
42
|
+
* Signs bytes and returns bytes
|
|
43
|
+
*/
|
|
44
|
+
signBytes(contentToSign: Bytes, privateKey: KeyRef, digestAlgorithm: string): Bytes;
|
|
45
|
+
/**
|
|
46
|
+
* Verifies a signature supplied as bytes
|
|
47
|
+
*/
|
|
48
|
+
verifyBytesSignature(signature: Bytes, contentToVerify: Bytes, publicKey: string, digestAlgorithm: string): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Verifies a signature supplied as bytes
|
|
51
|
+
*/
|
|
52
|
+
verifyBytesSignature(signature: Bytes, contentToVerify: Bytes, certificate: CertificateRef, digestAlgorithm: string): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Verifies a signature supplied as string
|
|
55
|
+
*/
|
|
56
|
+
verifySignature(signature: string, contentToVerify: string, publicKey: string, digestAlgorithm: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Verifies a signature supplied as string
|
|
59
|
+
*/
|
|
60
|
+
verifySignature(signature: string, contentToVerify: string, certificate: CertificateRef, digestAlgorithm: string): boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export = WeakSignature;
|