perimeterx-js-core 0.7.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1178) hide show
  1. package/lib/cjs/action/Action.js +10 -0
  2. package/lib/cjs/action/ActionData.js +2 -0
  3. package/lib/cjs/action/ActionPriorityOrder.js +10 -0
  4. package/lib/cjs/action/Decision.js +2 -0
  5. package/lib/cjs/action/ProductAction.js +2 -0
  6. package/lib/cjs/action/index.js +22 -0
  7. package/lib/cjs/action/utils.js +48 -0
  8. package/lib/cjs/activities/ActivityType.js +10 -0
  9. package/lib/cjs/activities/HttpActivityClient.js +121 -0
  10. package/lib/cjs/activities/HttpBatchedActivityClient.js +137 -0
  11. package/lib/cjs/activities/IActivityClient.js +2 -0
  12. package/lib/cjs/activities/constants.js +4 -0
  13. package/lib/cjs/activities/index.js +23 -0
  14. package/lib/cjs/activities/model/AsyncActivity.js +2 -0
  15. package/lib/cjs/activities/model/AsyncActivityDetails.js +2 -0
  16. package/lib/cjs/activities/model/CommonActivityDetails.js +2 -0
  17. package/lib/cjs/activities/model/HeaderEntry.js +2 -0
  18. package/lib/cjs/activities/model/index.js +20 -0
  19. package/lib/cjs/activities/utils.js +220 -0
  20. package/lib/cjs/additional_activity_handler/AdditionalActivityHandler.js +2 -0
  21. package/lib/cjs/additional_activity_handler/AdditionalActivityHandlerUtils.js +65 -0
  22. package/lib/cjs/additional_activity_handler/index.js +18 -0
  23. package/lib/cjs/blocker/BlockAction.js +9 -0
  24. package/lib/cjs/blocker/BlockActionToProductMap.js +10 -0
  25. package/lib/cjs/blocker/BlockActionToWordMap.js +9 -0
  26. package/lib/cjs/blocker/IBlocker.js +2 -0
  27. package/lib/cjs/blocker/IConditionalBlocker.js +2 -0
  28. package/lib/cjs/blocker/index.js +21 -0
  29. package/lib/cjs/config/ConfigurationParams.js +2 -0
  30. package/lib/cjs/config/DefaultConfigurations.js +121 -0
  31. package/lib/cjs/config/IConfiguration.js +2 -0
  32. package/lib/cjs/config/StaticConfigurationBase.js +583 -0
  33. package/lib/cjs/config/index.js +7 -0
  34. package/lib/cjs/context/DefaultContext.js +111 -0
  35. package/lib/cjs/context/index.js +18 -0
  36. package/lib/cjs/context/interfaces/IContext.js +2 -0
  37. package/lib/cjs/context/interfaces/MobileData.js +2 -0
  38. package/lib/cjs/context/interfaces/ReadonlyContext.js +2 -0
  39. package/lib/cjs/context/interfaces/RequestData.js +2 -0
  40. package/lib/cjs/context/interfaces/RiskApiData.js +2 -0
  41. package/lib/cjs/context/interfaces/ServerData.js +2 -0
  42. package/lib/cjs/context/interfaces/TlsData.js +2 -0
  43. package/lib/cjs/context/interfaces/TokenData.js +2 -0
  44. package/lib/cjs/context/interfaces/index.js +24 -0
  45. package/lib/cjs/cors/CustomBlockResponseHeadersHandler.js +2 -0
  46. package/lib/cjs/cors/CustomPreflightHandler.js +2 -0
  47. package/lib/cjs/cors/DefaultCors.js +107 -0
  48. package/lib/cjs/cors/ICors.js +2 -0
  49. package/lib/cjs/cors/constants.js +5 -0
  50. package/lib/cjs/cors/index.js +20 -0
  51. package/lib/cjs/custom_parameters/CustomParameters.js +2 -0
  52. package/lib/cjs/custom_parameters/CustomParametersFunction.js +2 -0
  53. package/lib/cjs/custom_parameters/CustomParametersUtils.js +77 -0
  54. package/lib/cjs/custom_parameters/index.js +5 -0
  55. package/lib/cjs/enforcer/EnforcerBase.js +282 -0
  56. package/lib/cjs/enforcer/IEnforcer.js +2 -0
  57. package/lib/cjs/enforcer/index.js +20 -0
  58. package/lib/cjs/enforcer/options/EnforcerBaseOptions.js +2 -0
  59. package/lib/cjs/enforcer/options/EnforcerOptionsType.js +2 -0
  60. package/lib/cjs/enforcer/options/EnforcerV2Options.js +2 -0
  61. package/lib/cjs/enforcer/options/EnforcerV3Options.js +2 -0
  62. package/lib/cjs/enforcer/options/index.js +20 -0
  63. package/lib/cjs/filter/FilterReason.js +14 -0
  64. package/lib/cjs/filter/IFilter.js +2 -0
  65. package/lib/cjs/filter/index.js +18 -0
  66. package/lib/cjs/first_party/FirstPartyData.js +2 -0
  67. package/lib/cjs/first_party/IFirstParty.js +2 -0
  68. package/lib/cjs/first_party/index.js +18 -0
  69. package/lib/cjs/graphql/DefaultGraphQLParser.js +181 -0
  70. package/lib/cjs/graphql/IGraphQLParser.js +2 -0
  71. package/lib/cjs/graphql/index.js +19 -0
  72. package/lib/cjs/graphql/model/GraphQLData.js +2 -0
  73. package/lib/cjs/graphql/model/GraphQLOperation.js +2 -0
  74. package/lib/cjs/graphql/model/GraphQLOperationType.js +9 -0
  75. package/lib/cjs/graphql/model/index.js +19 -0
  76. package/lib/cjs/http/index.js +18 -0
  77. package/lib/cjs/http/interfaces/IBody.js +2 -0
  78. package/lib/cjs/http/interfaces/IFormData.js +2 -0
  79. package/lib/cjs/http/interfaces/IHeaders.js +2 -0
  80. package/lib/cjs/http/interfaces/IHttpClient.js +2 -0
  81. package/lib/cjs/http/interfaces/IIncomingRequest.js +2 -0
  82. package/lib/cjs/http/interfaces/IIncomingResponse.js +2 -0
  83. package/lib/cjs/http/interfaces/IMinimalResponse.js +2 -0
  84. package/lib/cjs/http/interfaces/IOutgoingRequest.js +2 -0
  85. package/lib/cjs/http/interfaces/IOutgoingResponse.js +2 -0
  86. package/lib/cjs/http/interfaces/IURL.js +2 -0
  87. package/lib/cjs/http/interfaces/IURLSearchParams.js +2 -0
  88. package/lib/cjs/http/interfaces/ReadonlyHeaders.js +26 -0
  89. package/lib/cjs/http/interfaces/index.js +28 -0
  90. package/lib/cjs/http/utils/ContentType.js +13 -0
  91. package/lib/cjs/http/utils/FormDataImpl.js +43 -0
  92. package/lib/cjs/http/utils/HttpMethod.js +15 -0
  93. package/lib/cjs/http/utils/MinimalResponseImpl.js +12 -0
  94. package/lib/cjs/http/utils/MinimalResponseUtils.js +49 -0
  95. package/lib/cjs/http/utils/MultipartFormDataUtils.js +49 -0
  96. package/lib/cjs/http/utils/OutgoingRequestImpl.js +14 -0
  97. package/lib/cjs/http/utils/URLUtils.js +65 -0
  98. package/lib/cjs/http/utils/UrlImpl.js +73 -0
  99. package/lib/cjs/http/utils/UrlSearchParamsImpl.js +126 -0
  100. package/lib/cjs/http/utils/constants.js +12 -0
  101. package/lib/cjs/http/utils/index.js +27 -0
  102. package/lib/cjs/impl/base64/AtobBase64Utils.js +15 -0
  103. package/lib/cjs/impl/base64/BufferBase64Utils.js +17 -0
  104. package/lib/cjs/impl/base64/JSBase64Base64Utils.js +16 -0
  105. package/lib/cjs/impl/cipher/CryptoCipherUtils.js +87 -0
  106. package/lib/cjs/impl/cipher/SubtleCryptoCipherUtils.js +94 -0
  107. package/lib/cjs/impl/hash/CryptoHashUtils.js +78 -0
  108. package/lib/cjs/impl/hash/CryptoJSHashUtils.js +22 -0
  109. package/lib/cjs/impl/hash/SubtleCryptoHashUtils.js +95 -0
  110. package/lib/cjs/impl/hmac/CryptoHmacUtils.js +48 -0
  111. package/lib/cjs/impl/hmac/CryptoJSHmacUtils.js +22 -0
  112. package/lib/cjs/impl/http/phin/PhinHttpClient.js +84 -0
  113. package/lib/cjs/impl/http/phin/PhinIncomingResponse.js +99 -0
  114. package/lib/cjs/impl/http/phin/index.js +18 -0
  115. package/lib/cjs/impl/ip_range_checker/DefaultIpRangeChecker.js +16 -0
  116. package/lib/cjs/impl/request_id_generator/UuidRequestIdGenerator.js +13 -0
  117. package/lib/cjs/impl/url_parser/DefaultUrlParser.js +39 -0
  118. package/lib/cjs/index.js +38 -0
  119. package/lib/cjs/logger/DefaultLogger.js +31 -0
  120. package/lib/cjs/logger/HttpLogServiceClient.js +123 -0
  121. package/lib/cjs/logger/ILogServiceClient.js +2 -0
  122. package/lib/cjs/logger/ILogger.js +2 -0
  123. package/lib/cjs/logger/LoggerBase.js +48 -0
  124. package/lib/cjs/logger/LoggerSeverity.js +9 -0
  125. package/lib/cjs/logger/constants.js +5 -0
  126. package/lib/cjs/logger/index.js +27 -0
  127. package/lib/cjs/logger/model/EnrichedLogRecord.js +2 -0
  128. package/lib/cjs/logger/model/LogMetadata.js +2 -0
  129. package/lib/cjs/logger/model/LogRecord.js +2 -0
  130. package/lib/cjs/logger/model/index.js +19 -0
  131. package/lib/cjs/package.json +1 -0
  132. package/lib/cjs/phase/IPhase.js +2 -0
  133. package/lib/cjs/phase/PhaseResult.js +2 -0
  134. package/lib/cjs/phase/flow/EndEnforcerFlow.js +32 -0
  135. package/lib/cjs/phase/flow/EnforceFlow.js +38 -0
  136. package/lib/cjs/phase/flow/FilterFlow.js +34 -0
  137. package/lib/cjs/phase/flow/PostEnforceFlow.js +32 -0
  138. package/lib/cjs/phase/flow/index.js +20 -0
  139. package/lib/cjs/phase/impl/AdditionalActivityHandlerPhase.js +59 -0
  140. package/lib/cjs/phase/impl/CompositePhase.js +72 -0
  141. package/lib/cjs/phase/impl/CreateBlockResponsePhase.js +110 -0
  142. package/lib/cjs/phase/impl/DecideActionPhase.js +68 -0
  143. package/lib/cjs/phase/impl/EnrichContextFromRequestPhase.js +175 -0
  144. package/lib/cjs/phase/impl/EnrichContextFromResponsePhase.js +95 -0
  145. package/lib/cjs/phase/impl/FilterPhase.js +53 -0
  146. package/lib/cjs/phase/impl/FirstPartyPhase.js +100 -0
  147. package/lib/cjs/phase/impl/ModifyIncomingRequestPhase.js +58 -0
  148. package/lib/cjs/phase/impl/ModifyOutgoingResponsePhase.js +63 -0
  149. package/lib/cjs/phase/impl/ParseTokenPhase.js +76 -0
  150. package/lib/cjs/phase/impl/PreflightPhase.js +68 -0
  151. package/lib/cjs/phase/impl/RiskApiPhase.js +179 -0
  152. package/lib/cjs/phase/impl/SendAsyncActivitiesOnRequestPhase.js +74 -0
  153. package/lib/cjs/phase/impl/SendAsyncActivitiesOnResponsePhase.js +58 -0
  154. package/lib/cjs/phase/impl/SendLogsPhase.js +66 -0
  155. package/lib/cjs/phase/impl/TelemetryPhase.js +75 -0
  156. package/lib/cjs/phase/impl/index.js +33 -0
  157. package/lib/cjs/phase/index.js +20 -0
  158. package/lib/cjs/products/account_defender/AccountDefender.js +161 -0
  159. package/lib/cjs/products/account_defender/AccountDefenderData.js +2 -0
  160. package/lib/cjs/products/account_defender/IAccountDefender.js +2 -0
  161. package/lib/cjs/products/account_defender/JwtData.js +2 -0
  162. package/lib/cjs/products/account_defender/constants.js +4 -0
  163. package/lib/cjs/products/account_defender/index.js +21 -0
  164. package/lib/cjs/products/bot_defender/BotDefender.js +208 -0
  165. package/lib/cjs/products/bot_defender/BotDefenderActionData.js +11 -0
  166. package/lib/cjs/products/bot_defender/BotDefenderData.js +2 -0
  167. package/lib/cjs/products/bot_defender/BotDefenderUtils.js +22 -0
  168. package/lib/cjs/products/bot_defender/IBotDefender.js +2 -0
  169. package/lib/cjs/products/bot_defender/block/DefaultBotDefenderBlocker.js +46 -0
  170. package/lib/cjs/products/bot_defender/block/captcha/CaptchaBlocker.js +25 -0
  171. package/lib/cjs/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +26 -0
  172. package/lib/cjs/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +42 -0
  173. package/lib/cjs/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +40 -0
  174. package/lib/cjs/products/bot_defender/block/captcha/index.js +20 -0
  175. package/lib/cjs/products/bot_defender/block/index.js +21 -0
  176. package/lib/cjs/products/bot_defender/block/model/BlockData.js +2 -0
  177. package/lib/cjs/products/bot_defender/block/model/JsonBlockPayload.js +2 -0
  178. package/lib/cjs/products/bot_defender/block/model/MobileBlockPayload.js +2 -0
  179. package/lib/cjs/products/bot_defender/block/model/index.js +19 -0
  180. package/lib/cjs/products/bot_defender/block/templates/captcha_template.js +4 -0
  181. package/lib/cjs/products/bot_defender/block/templates/index.js +18 -0
  182. package/lib/cjs/products/bot_defender/block/templates/rate_limit_template.js +4 -0
  183. package/lib/cjs/products/bot_defender/block/utils.js +50 -0
  184. package/lib/cjs/products/bot_defender/filter/DefaultBotDefenderFilter.js +61 -0
  185. package/lib/cjs/products/bot_defender/filter/index.js +17 -0
  186. package/lib/cjs/products/bot_defender/first_party/DefaultBotDefenderFirstParty.js +201 -0
  187. package/lib/cjs/products/bot_defender/first_party/FirstPartySuffix.js +9 -0
  188. package/lib/cjs/products/bot_defender/first_party/constants.js +33 -0
  189. package/lib/cjs/products/bot_defender/first_party/index.js +20 -0
  190. package/lib/cjs/products/bot_defender/first_party/utils.js +58 -0
  191. package/lib/cjs/products/bot_defender/index.js +25 -0
  192. package/lib/cjs/products/bot_defender/reasons/BotDefenderBlockReason.js +8 -0
  193. package/lib/cjs/products/bot_defender/reasons/BotDefenderPassReason.js +10 -0
  194. package/lib/cjs/products/bot_defender/reasons/BotDefenderReasonType.js +2 -0
  195. package/lib/cjs/products/bot_defender/reasons/BotDefenderS2SCallReason.js +16 -0
  196. package/lib/cjs/products/bot_defender/reasons/index.js +20 -0
  197. package/lib/cjs/products/credential_intelligence/CredentialIntelligence.js +171 -0
  198. package/lib/cjs/products/credential_intelligence/ICredentialIntelligence.js +2 -0
  199. package/lib/cjs/products/credential_intelligence/constants.js +7 -0
  200. package/lib/cjs/products/credential_intelligence/endpoint/CredentialEndpoint.js +79 -0
  201. package/lib/cjs/products/credential_intelligence/endpoint/CredentialEndpointConfiguration.js +2 -0
  202. package/lib/cjs/products/credential_intelligence/endpoint/CredentialEndpointManager.js +78 -0
  203. package/lib/cjs/products/credential_intelligence/endpoint/ICredentialEndpoint.js +2 -0
  204. package/lib/cjs/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.js +124 -0
  205. package/lib/cjs/products/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.js +28 -0
  206. package/lib/cjs/products/credential_intelligence/endpoint/extractor/CustomCredentialExtractor.js +63 -0
  207. package/lib/cjs/products/credential_intelligence/endpoint/extractor/HeaderCredentialExtractor.js +16 -0
  208. package/lib/cjs/products/credential_intelligence/endpoint/extractor/ICredentialExtractor.js +2 -0
  209. package/lib/cjs/products/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.js +62 -0
  210. package/lib/cjs/products/credential_intelligence/endpoint/extractor/SentThrough.js +10 -0
  211. package/lib/cjs/products/credential_intelligence/endpoint/extractor/index.js +21 -0
  212. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.js +24 -0
  213. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceVersion.js +9 -0
  214. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/ICredentialIntelligenceHashProtocol.js +2 -0
  215. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.js +78 -0
  216. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/SingleStepAndMultistepHashProtocol.js +60 -0
  217. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.js +100 -0
  218. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/SsoStep.js +8 -0
  219. package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/index.js +23 -0
  220. package/lib/cjs/products/credential_intelligence/endpoint/index.js +24 -0
  221. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/BodyLoginSuccessfulParser.js +54 -0
  222. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulCallback.js +2 -0
  223. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulParser.js +66 -0
  224. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.js +57 -0
  225. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/ILoginSuccessfulParser.js +2 -0
  226. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.js +33 -0
  227. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulReportingMethod.js +10 -0
  228. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/StatusLoginSuccessfulParser.js +53 -0
  229. package/lib/cjs/products/credential_intelligence/endpoint/login_successful/index.js +24 -0
  230. package/lib/cjs/products/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.js +22 -0
  231. package/lib/cjs/products/credential_intelligence/endpoint/matcher/ExactPathEndpointMatcher.js +15 -0
  232. package/lib/cjs/products/credential_intelligence/endpoint/matcher/ICredentialIntelligenceEndpointMatcher.js +2 -0
  233. package/lib/cjs/products/credential_intelligence/endpoint/matcher/PathType.js +8 -0
  234. package/lib/cjs/products/credential_intelligence/endpoint/matcher/RegexPathEndpointMatcher.js +15 -0
  235. package/lib/cjs/products/credential_intelligence/endpoint/matcher/index.js +21 -0
  236. package/lib/cjs/products/credential_intelligence/index.js +21 -0
  237. package/lib/cjs/products/credential_intelligence/model/CredentialData.js +2 -0
  238. package/lib/cjs/products/credential_intelligence/model/CredentialIntelligenceData.js +2 -0
  239. package/lib/cjs/products/credential_intelligence/model/Credentials.js +2 -0
  240. package/lib/cjs/products/credential_intelligence/model/CustomExtractionCallback.js +2 -0
  241. package/lib/cjs/products/credential_intelligence/model/index.js +20 -0
  242. package/lib/cjs/products/index.js +21 -0
  243. package/lib/cjs/products/interfaces/IProduct.js +2 -0
  244. package/lib/cjs/products/interfaces/ProductData.js +2 -0
  245. package/lib/cjs/products/interfaces/ProductDataType.js +2 -0
  246. package/lib/cjs/products/interfaces/ProductType.js +2 -0
  247. package/lib/cjs/products/interfaces/Products.js +2 -0
  248. package/lib/cjs/products/interfaces/index.js +21 -0
  249. package/lib/cjs/products/utils/ProductName.js +11 -0
  250. package/lib/cjs/products/utils/ProductPriorityOrder.js +11 -0
  251. package/lib/cjs/products/utils/index.js +19 -0
  252. package/lib/cjs/products/utils/utils.js +18 -0
  253. package/lib/cjs/pxde/DefaultDataEnrichment.js +130 -0
  254. package/lib/cjs/pxde/IDataEnrichment.js +2 -0
  255. package/lib/cjs/pxde/constants.js +7 -0
  256. package/lib/cjs/pxde/index.js +20 -0
  257. package/lib/cjs/pxde/model/PXDE.js +2 -0
  258. package/lib/cjs/pxde/model/PxdeData.js +2 -0
  259. package/lib/cjs/pxde/model/index.js +18 -0
  260. package/lib/cjs/pxhd/PXHDUtils.js +31 -0
  261. package/lib/cjs/pxhd/index.js +20 -0
  262. package/lib/cjs/pxhd/model/PXHD.js +2 -0
  263. package/lib/cjs/pxhd/model/PXHDSource.js +8 -0
  264. package/lib/cjs/pxhd/model/index.js +18 -0
  265. package/lib/cjs/risk_api/client/IRiskApiClient.js +2 -0
  266. package/lib/cjs/risk_api/client/PostRiskApiClientBase.js +232 -0
  267. package/lib/cjs/risk_api/client/PostRiskApiClientV2.js +31 -0
  268. package/lib/cjs/risk_api/client/PostRiskApiClientV3.js +31 -0
  269. package/lib/cjs/risk_api/client/index.js +20 -0
  270. package/lib/cjs/risk_api/constants.js +4 -0
  271. package/lib/cjs/risk_api/index.js +20 -0
  272. package/lib/cjs/risk_api/model/RiskActivity.js +2 -0
  273. package/lib/cjs/risk_api/model/RiskApiCallResult.js +10 -0
  274. package/lib/cjs/risk_api/model/RiskStatus.js +8 -0
  275. package/lib/cjs/risk_api/model/S2SErrorReason.js +12 -0
  276. package/lib/cjs/risk_api/model/index.js +20 -0
  277. package/lib/cjs/risk_api/risk_response/IRiskResponse.js +2 -0
  278. package/lib/cjs/risk_api/risk_response/RiskResponseBase.js +131 -0
  279. package/lib/cjs/risk_api/risk_response/RiskResponsePayloadType.js +2 -0
  280. package/lib/cjs/risk_api/risk_response/index.js +20 -0
  281. package/lib/cjs/risk_api/risk_response/v2/DefaultRiskResponseV2.js +43 -0
  282. package/lib/cjs/risk_api/risk_response/v2/RiskResponseV2Payload.js +2 -0
  283. package/lib/cjs/risk_api/risk_response/v2/index.js +18 -0
  284. package/lib/cjs/risk_api/risk_response/v3/DefaultRiskResponseV3.js +39 -0
  285. package/lib/cjs/risk_api/risk_response/v3/RiskResponseV3Payload.js +2 -0
  286. package/lib/cjs/risk_api/risk_response/v3/index.js +18 -0
  287. package/lib/cjs/risk_token/MobileError.js +10 -0
  288. package/lib/cjs/risk_token/TokenOrigin.js +8 -0
  289. package/lib/cjs/risk_token/TokenParseResult.js +10 -0
  290. package/lib/cjs/risk_token/TokenVersion.js +8 -0
  291. package/lib/cjs/risk_token/constants.js +12 -0
  292. package/lib/cjs/risk_token/index.js +29 -0
  293. package/lib/cjs/risk_token/parser/DefaultTokenV2Parser.js +35 -0
  294. package/lib/cjs/risk_token/parser/DefaultTokenV3Parser.js +35 -0
  295. package/lib/cjs/risk_token/parser/ITokenParser.js +2 -0
  296. package/lib/cjs/risk_token/parser/TokenParserBase.js +154 -0
  297. package/lib/cjs/risk_token/parser/TokenParserOptions.js +2 -0
  298. package/lib/cjs/risk_token/parser/index.js +21 -0
  299. package/lib/cjs/risk_token/token/IToken.js +2 -0
  300. package/lib/cjs/risk_token/token/TokenBase.js +98 -0
  301. package/lib/cjs/risk_token/token/TokenPayloadType.js +2 -0
  302. package/lib/cjs/risk_token/token/index.js +11 -0
  303. package/lib/cjs/risk_token/token/v2/DefaultTokenV2.js +201 -0
  304. package/lib/cjs/risk_token/token/v2/TokenV2Payload.js +2 -0
  305. package/lib/cjs/risk_token/token/v3/DefaultTokenV3.js +233 -0
  306. package/lib/cjs/risk_token/token/v3/TokenSignField.js +8 -0
  307. package/lib/cjs/risk_token/token/v3/TokenV3Payload.js +2 -0
  308. package/lib/cjs/risk_token/utils.js +16 -0
  309. package/lib/cjs/telemetry/DefaultTelemetry.js +187 -0
  310. package/lib/cjs/telemetry/ITelemetry.js +2 -0
  311. package/lib/cjs/telemetry/constants.js +10 -0
  312. package/lib/cjs/telemetry/index.js +20 -0
  313. package/lib/cjs/telemetry/model/TelemetryActivity.js +2 -0
  314. package/lib/cjs/utils/Algorithm.js +8 -0
  315. package/lib/cjs/utils/ModuleMode.js +8 -0
  316. package/lib/cjs/utils/VidSource.js +8 -0
  317. package/lib/cjs/utils/base64/IBase64Utils.js +2 -0
  318. package/lib/cjs/utils/base64/index.js +17 -0
  319. package/lib/cjs/utils/cipher/ICipherUtils.js +2 -0
  320. package/lib/cjs/utils/cipher/index.js +17 -0
  321. package/lib/cjs/utils/constants.js +15 -0
  322. package/lib/cjs/utils/cookie_parser/ICookieParser.js +2 -0
  323. package/lib/cjs/utils/cookie_parser/StringSplitCookieParser.js +36 -0
  324. package/lib/cjs/utils/cookie_parser/index.js +18 -0
  325. package/lib/cjs/utils/error/EnforcerError.js +29 -0
  326. package/lib/cjs/utils/error/EnforcerErrorName.js +8 -0
  327. package/lib/cjs/utils/error/EnforcerTimeoutError.js +30 -0
  328. package/lib/cjs/utils/error/index.js +9 -0
  329. package/lib/cjs/utils/hash/IHashUtils.js +2 -0
  330. package/lib/cjs/utils/hash/index.js +17 -0
  331. package/lib/cjs/utils/hmac/IHmacUtils.js +2 -0
  332. package/lib/cjs/utils/hmac/index.js +17 -0
  333. package/lib/cjs/utils/index.js +30 -0
  334. package/lib/cjs/utils/ip_range_checker/IIpRangeChecker.js +2 -0
  335. package/lib/cjs/utils/ip_range_checker/index.js +17 -0
  336. package/lib/cjs/utils/request_id_generator/IRequestIdGenerator.js +2 -0
  337. package/lib/cjs/utils/request_id_generator/index.js +17 -0
  338. package/lib/cjs/utils/url_parser/IURLParser.js +2 -0
  339. package/lib/cjs/utils/url_parser/index.js +17 -0
  340. package/lib/cjs/utils/utils.js +165 -0
  341. package/lib/esm/action/utils.js +34 -0
  342. package/lib/esm/activities/HttpActivityClient.js +59 -0
  343. package/lib/esm/activities/HttpBatchedActivityClient.js +55 -0
  344. package/lib/esm/activities/model/index.js +4 -0
  345. package/lib/esm/activities/utils.js +190 -0
  346. package/lib/esm/additional_activity_handler/AdditionalActivityHandlerUtils.js +14 -0
  347. package/lib/esm/config/StaticConfigurationBase.js +280 -0
  348. package/lib/esm/context/DefaultContext.js +117 -0
  349. package/lib/esm/cors/DefaultCors.js +49 -0
  350. package/lib/esm/custom_parameters/CustomParametersUtils.js +27 -0
  351. package/lib/esm/enforcer/EnforcerBase.js +157 -0
  352. package/lib/esm/graphql/DefaultGraphQLParser.js +117 -0
  353. package/lib/esm/http/index.js +2 -0
  354. package/lib/esm/http/interfaces/index.js +12 -0
  355. package/lib/esm/http/utils/FormDataImpl.js +36 -0
  356. package/lib/esm/http/utils/MinimalResponseImpl.js +10 -0
  357. package/lib/esm/http/utils/MinimalResponseUtils.js +30 -0
  358. package/lib/esm/http/utils/MultipartFormDataUtils.js +44 -0
  359. package/lib/esm/http/utils/OutgoingRequestImpl.js +13 -0
  360. package/lib/esm/http/utils/URLUtils.js +62 -0
  361. package/lib/esm/http/utils/UrlImpl.js +54 -0
  362. package/lib/esm/http/utils/UrlSearchParamsImpl.js +116 -0
  363. package/lib/esm/http/utils/index.js +11 -0
  364. package/lib/esm/impl/base64/BufferBase64Utils.js +11 -0
  365. package/lib/esm/impl/cipher/CryptoCipherUtils.js +18 -0
  366. package/lib/esm/impl/cipher/SubtleCryptoCipherUtils.js +38 -0
  367. package/lib/esm/impl/hash/CryptoHashUtils.js +10 -0
  368. package/lib/esm/impl/hash/CryptoJSHashUtils.js +12 -0
  369. package/lib/esm/impl/hash/SubtleCryptoHashUtils.js +21 -0
  370. package/lib/esm/impl/hmac/CryptoHmacUtils.js +20 -0
  371. package/lib/esm/impl/hmac/CryptoJSHmacUtils.js +12 -0
  372. package/lib/esm/impl/http/phin/PhinHttpClient.js +31 -0
  373. package/lib/esm/impl/http/phin/PhinIncomingResponse.js +23 -0
  374. package/lib/esm/impl/url_parser/DefaultUrlParser.js +28 -0
  375. package/lib/esm/logger/HttpLogServiceClient.js +52 -0
  376. package/lib/esm/logger/LoggerBase.js +43 -0
  377. package/lib/esm/phase/impl/AdditionalActivityHandlerPhase.js +11 -0
  378. package/lib/esm/phase/impl/CompositePhase.js +16 -0
  379. package/lib/esm/phase/impl/CreateBlockResponsePhase.js +50 -0
  380. package/lib/esm/phase/impl/DecideActionPhase.js +19 -0
  381. package/lib/esm/phase/impl/EnrichContextFromRequestPhase.js +43 -0
  382. package/lib/esm/phase/impl/EnrichContextFromResponsePhase.js +20 -0
  383. package/lib/esm/phase/impl/FilterPhase.js +9 -0
  384. package/lib/esm/phase/impl/FirstPartyPhase.js +31 -0
  385. package/lib/esm/phase/impl/ModifyIncomingRequestPhase.js +10 -0
  386. package/lib/esm/phase/impl/ModifyOutgoingResponsePhase.js +14 -0
  387. package/lib/esm/phase/impl/ParseTokenPhase.js +27 -0
  388. package/lib/esm/phase/impl/PreflightPhase.js +20 -0
  389. package/lib/esm/phase/impl/RiskApiPhase.js +64 -0
  390. package/lib/esm/phase/impl/SendAsyncActivitiesOnRequestPhase.js +16 -0
  391. package/lib/esm/phase/impl/SendAsyncActivitiesOnResponsePhase.js +10 -0
  392. package/lib/esm/phase/impl/SendLogsPhase.js +16 -0
  393. package/lib/esm/phase/impl/TelemetryPhase.js +17 -0
  394. package/lib/esm/products/account_defender/AccountDefender.js +79 -0
  395. package/lib/esm/products/bot_defender/BotDefender.js +114 -0
  396. package/lib/esm/products/bot_defender/BotDefenderActionData.js +8 -0
  397. package/lib/esm/products/bot_defender/block/DefaultBotDefenderBlocker.js +41 -0
  398. package/lib/esm/products/bot_defender/block/captcha/CaptchaBlocker.js +24 -0
  399. package/lib/esm/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +21 -0
  400. package/lib/esm/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +39 -0
  401. package/lib/esm/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +36 -0
  402. package/lib/esm/products/bot_defender/block/utils.js +43 -0
  403. package/lib/esm/products/bot_defender/filter/DefaultBotDefenderFilter.js +57 -0
  404. package/lib/esm/products/bot_defender/first_party/DefaultBotDefenderFirstParty.js +114 -0
  405. package/lib/esm/products/bot_defender/first_party/constants.js +29 -0
  406. package/lib/esm/products/credential_intelligence/CredentialIntelligence.js +75 -0
  407. package/lib/esm/products/credential_intelligence/endpoint/CredentialEndpoint.js +29 -0
  408. package/lib/esm/products/credential_intelligence/endpoint/CredentialEndpointManager.js +19 -0
  409. package/lib/esm/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.js +53 -0
  410. package/lib/esm/products/credential_intelligence/endpoint/extractor/CustomCredentialExtractor.js +14 -0
  411. package/lib/esm/products/credential_intelligence/endpoint/extractor/HeaderCredentialExtractor.js +13 -0
  412. package/lib/esm/products/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.js +18 -0
  413. package/lib/esm/products/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.js +20 -0
  414. package/lib/esm/products/credential_intelligence/endpoint/hash_protocol/SingleStepAndMultistepHashProtocol.js +16 -0
  415. package/lib/esm/products/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.js +37 -0
  416. package/lib/esm/products/credential_intelligence/endpoint/login_successful/BodyLoginSuccessfulParser.js +10 -0
  417. package/lib/esm/products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulParser.js +16 -0
  418. package/lib/esm/products/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.js +14 -0
  419. package/lib/esm/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.js +27 -0
  420. package/lib/esm/products/credential_intelligence/endpoint/login_successful/StatusLoginSuccessfulParser.js +9 -0
  421. package/lib/esm/products/credential_intelligence/endpoint/matcher/ExactPathEndpointMatcher.js +11 -0
  422. package/lib/esm/products/credential_intelligence/endpoint/matcher/RegexPathEndpointMatcher.js +11 -0
  423. package/lib/esm/pxde/DefaultDataEnrichment.js +60 -0
  424. package/lib/esm/pxhd/PXHDUtils.js +28 -0
  425. package/lib/esm/risk_api/client/PostRiskApiClientBase.js +134 -0
  426. package/lib/esm/risk_api/risk_response/RiskResponseBase.js +41 -0
  427. package/lib/esm/risk_api/risk_response/v2/DefaultRiskResponseV2.js +16 -0
  428. package/lib/esm/risk_api/risk_response/v3/DefaultRiskResponseV3.js +12 -0
  429. package/lib/esm/risk_token/parser/TokenParserBase.js +83 -0
  430. package/lib/esm/risk_token/token/TokenBase.js +45 -0
  431. package/lib/esm/risk_token/token/v2/DefaultTokenV2.js +97 -0
  432. package/lib/esm/risk_token/token/v3/DefaultTokenV3.js +123 -0
  433. package/lib/esm/telemetry/DefaultTelemetry.js +107 -0
  434. package/lib/esm/utils/base64/index.js +1 -0
  435. package/lib/esm/utils/cipher/index.js +1 -0
  436. package/lib/esm/utils/constants.js +12 -0
  437. package/lib/esm/utils/hash/index.js +1 -0
  438. package/lib/esm/utils/hmac/index.js +1 -0
  439. package/lib/esm/utils/ip_range_checker/IIpRangeChecker.js +1 -0
  440. package/lib/esm/utils/ip_range_checker/index.js +1 -0
  441. package/lib/esm/utils/request_id_generator/IRequestIdGenerator.js +1 -0
  442. package/lib/esm/utils/request_id_generator/index.js +1 -0
  443. package/lib/esm/utils/url_parser/IURLParser.js +1 -0
  444. package/lib/esm/utils/url_parser/index.js +1 -0
  445. package/lib/esm/utils/utils.js +99 -0
  446. package/lib/types/activities/HttpActivityClient.d.ts +20 -0
  447. package/lib/types/activities/HttpBatchedActivityClient.d.ts +21 -0
  448. package/lib/types/activities/model/AsyncActivity.d.ts +14 -0
  449. package/lib/types/activities/model/AsyncActivityDetails.d.ts +29 -0
  450. package/lib/types/activities/model/CommonActivityDetails.d.ts +40 -0
  451. package/lib/types/activities/model/HeaderEntry.d.ts +4 -0
  452. package/lib/types/activities/model/index.d.ts +4 -0
  453. package/lib/types/activities/utils.d.ts +6075 -0
  454. package/lib/types/additional_activity_handler/AdditionalActivityHandler.d.ts +3 -0
  455. package/lib/types/config/ConfigurationParams.d.ts +83 -0
  456. package/lib/types/config/IConfiguration.d.ts +312 -0
  457. package/lib/types/config/StaticConfigurationBase.d.ts +92 -0
  458. package/lib/types/context/DefaultContext.d.ts +49 -0
  459. package/lib/types/context/interfaces/RiskApiData.d.ts +31 -0
  460. package/lib/types/http/index.d.ts +2 -0
  461. package/lib/types/http/interfaces/IBody.d.ts +25 -0
  462. package/lib/types/http/interfaces/IIncomingRequest.d.ts +32 -0
  463. package/lib/types/http/interfaces/IURL.d.ts +9 -0
  464. package/lib/types/http/interfaces/IURLSearchParams.d.ts +9 -0
  465. package/lib/types/http/interfaces/index.d.ts +12 -0
  466. package/lib/types/http/utils/OutgoingRequestImpl.d.ts +14 -0
  467. package/lib/types/http/utils/URLUtils.d.ts +7 -0
  468. package/lib/types/http/utils/UrlImpl.d.ts +18 -0
  469. package/lib/types/http/utils/UrlSearchParamsImpl.d.ts +19 -0
  470. package/lib/types/http/utils/index.d.ts +11 -0
  471. package/lib/types/impl/base64/AtobBase64Utils.d.ts +5 -0
  472. package/lib/types/impl/base64/BufferBase64Utils.d.ts +6 -0
  473. package/lib/types/impl/base64/JSBase64Base64Utils.d.ts +5 -0
  474. package/lib/types/impl/cipher/CryptoCipherUtils.d.ts +10 -0
  475. package/lib/types/impl/cipher/SubtleCryptoCipherUtils.d.ts +8 -0
  476. package/lib/types/impl/hash/CryptoHashUtils.d.ts +10 -0
  477. package/lib/types/impl/hash/CryptoJSHashUtils.d.ts +4 -0
  478. package/lib/types/impl/hash/SubtleCryptoHashUtils.d.ts +7 -0
  479. package/lib/types/impl/hmac/CryptoHmacUtils.d.ts +10 -0
  480. package/lib/types/impl/hmac/CryptoJSHmacUtils.d.ts +4 -0
  481. package/lib/types/impl/http/phin/PhinHttpClient.d.ts +6 -0
  482. package/lib/types/impl/http/phin/PhinIncomingResponse.d.ts +13 -0
  483. package/lib/types/impl/ip_range_checker/DefaultIpRangeChecker.d.ts +4 -0
  484. package/lib/types/impl/request_id_generator/UuidRequestIdGenerator.d.ts +4 -0
  485. package/lib/types/impl/url_parser/DefaultUrlParser.d.ts +13 -0
  486. package/lib/types/products/bot_defender/block/DefaultBotDefenderBlocker.d.ts +14 -0
  487. package/lib/types/products/bot_defender/block/captcha/CaptchaBlocker.d.ts +16 -0
  488. package/lib/types/products/bot_defender/block/captcha/HtmlCaptchaBlocker.d.ts +9 -0
  489. package/lib/types/products/bot_defender/block/captcha/JsonCaptchaBlocker.d.ts +10 -0
  490. package/lib/types/products/bot_defender/block/captcha/MobileCaptchaBlocker.d.ts +12 -0
  491. package/lib/types/products/bot_defender/first_party/constants.d.ts +24 -0
  492. package/lib/types/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.d.ts +15 -0
  493. package/lib/types/products/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.d.ts +10 -0
  494. package/lib/types/risk_api/client/PostRiskApiClientBase.d.ts +39 -0
  495. package/lib/types/risk_api/model/RiskActivity.d.ts +16 -0
  496. package/lib/types/risk_api/risk_response/IRiskResponse.d.ts +16 -0
  497. package/lib/types/risk_api/risk_response/RiskResponseBase.d.ts +23 -0
  498. package/lib/types/risk_api/risk_response/v2/DefaultRiskResponseV2.d.ts +8 -0
  499. package/lib/types/risk_api/risk_response/v2/RiskResponseV2Payload.d.ts +14 -0
  500. package/lib/types/risk_api/risk_response/v3/RiskResponseV3Payload.d.ts +14 -0
  501. package/lib/types/utils/base64/index.d.ts +1 -0
  502. package/lib/types/utils/cipher/index.d.ts +1 -0
  503. package/lib/types/utils/constants.d.ts +12 -0
  504. package/lib/types/utils/hash/index.d.ts +1 -0
  505. package/lib/types/utils/hmac/index.d.ts +1 -0
  506. package/lib/types/utils/ip_range_checker/index.d.ts +1 -0
  507. package/lib/types/utils/request_id_generator/index.d.ts +1 -0
  508. package/lib/types/utils/url_parser/index.d.ts +1 -0
  509. package/lib/types/utils/utils.d.ts +18 -0
  510. package/package.json +25 -7
  511. package/lib/action/utils.js +0 -34
  512. package/lib/activities/HttpActivityClient.d.ts +0 -20
  513. package/lib/activities/HttpActivityClient.js +0 -70
  514. package/lib/activities/HttpBatchedActivityClient.d.ts +0 -21
  515. package/lib/activities/HttpBatchedActivityClient.js +0 -68
  516. package/lib/activities/model/Activity.d.ts +0 -13
  517. package/lib/activities/model/ActivityDetails.d.ts +0 -46
  518. package/lib/activities/model/index.d.ts +0 -2
  519. package/lib/activities/model/index.js +0 -2
  520. package/lib/activities/utils.d.ts +0 -13
  521. package/lib/activities/utils.js +0 -114
  522. package/lib/additional_activity_handler/AdditionalActivityHandler.d.ts +0 -3
  523. package/lib/additional_activity_handler/AdditionalActivityHandlerUtils.js +0 -22
  524. package/lib/config/ConfigurationParams.d.ts +0 -83
  525. package/lib/config/IConfiguration.d.ts +0 -312
  526. package/lib/config/StaticConfigurationBase.d.ts +0 -92
  527. package/lib/config/StaticConfigurationBase.js +0 -278
  528. package/lib/context/DefaultContext.d.ts +0 -49
  529. package/lib/context/DefaultContext.js +0 -85
  530. package/lib/context/interfaces/RiskApiData.d.ts +0 -27
  531. package/lib/cors/DefaultCors.js +0 -59
  532. package/lib/custom_parameters/CustomParametersUtils.js +0 -36
  533. package/lib/enforcer/EnforcerBase.js +0 -168
  534. package/lib/graphql/DefaultGraphQLParser.js +0 -126
  535. package/lib/http/impl/FormDataImpl.js +0 -36
  536. package/lib/http/impl/MinimalResponseImpl.js +0 -7
  537. package/lib/http/impl/OutgoingRequestImpl.d.ts +0 -14
  538. package/lib/http/impl/OutgoingRequestImpl.js +0 -9
  539. package/lib/http/impl/index.d.ts +0 -4
  540. package/lib/http/impl/index.js +0 -4
  541. package/lib/http/impl/phin/PhinHttpClient.d.ts +0 -6
  542. package/lib/http/impl/phin/PhinHttpClient.js +0 -41
  543. package/lib/http/impl/phin/PhinIncomingResponse.d.ts +0 -13
  544. package/lib/http/impl/phin/PhinIncomingResponse.js +0 -38
  545. package/lib/http/index.d.ts +0 -3
  546. package/lib/http/index.js +0 -3
  547. package/lib/http/interfaces/IBody.d.ts +0 -24
  548. package/lib/http/interfaces/IIncomingRequest.d.ts +0 -28
  549. package/lib/http/interfaces/IURL.d.ts +0 -6
  550. package/lib/http/interfaces/index.d.ts +0 -11
  551. package/lib/http/interfaces/index.js +0 -11
  552. package/lib/http/utils/MinimalResponseUtils.js +0 -32
  553. package/lib/http/utils/MultipartFormDataUtils.js +0 -45
  554. package/lib/http/utils/index.d.ts +0 -5
  555. package/lib/http/utils/index.js +0 -5
  556. package/lib/logger/HttpLogServiceClient.js +0 -60
  557. package/lib/logger/LoggerBase.js +0 -41
  558. package/lib/phase/impl/AdditionalActivityHandlerPhase.js +0 -22
  559. package/lib/phase/impl/CompositePhase.js +0 -26
  560. package/lib/phase/impl/CreateBlockResponsePhase.js +0 -61
  561. package/lib/phase/impl/DecideActionPhase.js +0 -29
  562. package/lib/phase/impl/EnrichContextFromRequestPhase.js +0 -60
  563. package/lib/phase/impl/EnrichContextFromResponsePhase.js +0 -31
  564. package/lib/phase/impl/FilterPhase.js +0 -19
  565. package/lib/phase/impl/FirstPartyPhase.js +0 -42
  566. package/lib/phase/impl/ModifyIncomingRequestPhase.js +0 -20
  567. package/lib/phase/impl/ModifyOutgoingResponsePhase.js +0 -25
  568. package/lib/phase/impl/ParseTokenPhase.js +0 -37
  569. package/lib/phase/impl/PreflightPhase.js +0 -28
  570. package/lib/phase/impl/RiskApiPhase.js +0 -76
  571. package/lib/phase/impl/SendAsyncActivitiesOnRequestPhase.js +0 -28
  572. package/lib/phase/impl/SendAsyncActivitiesOnResponsePhase.js +0 -20
  573. package/lib/phase/impl/SendLogsPhase.js +0 -26
  574. package/lib/phase/impl/TelemetryPhase.js +0 -29
  575. package/lib/products/account_defender/AccountDefender.js +0 -98
  576. package/lib/products/bot_defender/BotDefender.js +0 -135
  577. package/lib/products/bot_defender/BotDefenderActionData.js +0 -6
  578. package/lib/products/bot_defender/block/DefaultBotDefenderBlocker.d.ts +0 -14
  579. package/lib/products/bot_defender/block/DefaultBotDefenderBlocker.js +0 -39
  580. package/lib/products/bot_defender/block/captcha/CaptchaBlocker.d.ts +0 -13
  581. package/lib/products/bot_defender/block/captcha/CaptchaBlocker.js +0 -20
  582. package/lib/products/bot_defender/block/captcha/HtmlCaptchaBlocker.d.ts +0 -9
  583. package/lib/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +0 -20
  584. package/lib/products/bot_defender/block/captcha/JsonCaptchaBlocker.d.ts +0 -10
  585. package/lib/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +0 -38
  586. package/lib/products/bot_defender/block/captcha/MobileCaptchaBlocker.d.ts +0 -12
  587. package/lib/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +0 -34
  588. package/lib/products/bot_defender/block/utils.js +0 -44
  589. package/lib/products/bot_defender/filter/DefaultBotDefenderFilter.js +0 -55
  590. package/lib/products/bot_defender/first_party/DefaultBotDefenderFirstParty.js +0 -131
  591. package/lib/products/bot_defender/first_party/constants.d.ts +0 -28
  592. package/lib/products/bot_defender/first_party/constants.js +0 -36
  593. package/lib/products/credential_intelligence/CredentialIntelligence.js +0 -96
  594. package/lib/products/credential_intelligence/endpoint/CredentialEndpoint.js +0 -37
  595. package/lib/products/credential_intelligence/endpoint/CredentialEndpointManager.js +0 -32
  596. package/lib/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.d.ts +0 -15
  597. package/lib/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.js +0 -64
  598. package/lib/products/credential_intelligence/endpoint/extractor/CustomCredentialExtractor.js +0 -24
  599. package/lib/products/credential_intelligence/endpoint/extractor/HeaderCredentialExtractor.js +0 -11
  600. package/lib/products/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.d.ts +0 -10
  601. package/lib/products/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.js +0 -23
  602. package/lib/products/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.js +0 -30
  603. package/lib/products/credential_intelligence/endpoint/hash_protocol/SingleStepAndMultistepHashProtocol.js +0 -25
  604. package/lib/products/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.js +0 -49
  605. package/lib/products/credential_intelligence/endpoint/login_successful/BodyLoginSuccessfulParser.js +0 -20
  606. package/lib/products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulParser.js +0 -26
  607. package/lib/products/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.js +0 -23
  608. package/lib/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.js +0 -26
  609. package/lib/products/credential_intelligence/endpoint/login_successful/StatusLoginSuccessfulParser.js +0 -19
  610. package/lib/products/credential_intelligence/endpoint/matcher/ExactPathEndpointMatcher.js +0 -9
  611. package/lib/products/credential_intelligence/endpoint/matcher/RegexPathEndpointMatcher.js +0 -9
  612. package/lib/pxde/DefaultDataEnrichment.js +0 -74
  613. package/lib/pxhd/PXHDUtils.js +0 -28
  614. package/lib/risk_api/client/PostRiskApiClientBase.d.ts +0 -44
  615. package/lib/risk_api/client/PostRiskApiClientBase.js +0 -235
  616. package/lib/risk_api/model/RiskActivity.d.ts +0 -56
  617. package/lib/risk_api/risk_response/IRiskResponse.d.ts +0 -15
  618. package/lib/risk_api/risk_response/RiskResponseBase.d.ts +0 -22
  619. package/lib/risk_api/risk_response/RiskResponseBase.js +0 -54
  620. package/lib/risk_api/risk_response/v2/DefaultRiskResponseV2.d.ts +0 -8
  621. package/lib/risk_api/risk_response/v2/DefaultRiskResponseV2.js +0 -18
  622. package/lib/risk_api/risk_response/v2/RiskResponseV2Payload.d.ts +0 -13
  623. package/lib/risk_api/risk_response/v3/DefaultRiskResponseV3.js +0 -14
  624. package/lib/risk_api/risk_response/v3/RiskResponseV3Payload.d.ts +0 -13
  625. package/lib/risk_token/parser/TokenParserBase.js +0 -94
  626. package/lib/risk_token/token/TokenBase.js +0 -50
  627. package/lib/risk_token/token/v2/DefaultTokenV2.js +0 -112
  628. package/lib/risk_token/token/v3/DefaultTokenV3.js +0 -137
  629. package/lib/telemetry/DefaultTelemetry.js +0 -119
  630. package/lib/utils/base64/AtobBase64Utils.d.ts +0 -5
  631. package/lib/utils/base64/BufferBase64Utils.d.ts +0 -6
  632. package/lib/utils/base64/BufferBase64Utils.js +0 -11
  633. package/lib/utils/base64/JSBase64Base64Utils.d.ts +0 -5
  634. package/lib/utils/base64/index.d.ts +0 -4
  635. package/lib/utils/base64/index.js +0 -4
  636. package/lib/utils/cipher/CryptoCipherUtils.d.ts +0 -10
  637. package/lib/utils/cipher/CryptoCipherUtils.js +0 -28
  638. package/lib/utils/cipher/SubtleCryptoCipherUtils.d.ts +0 -9
  639. package/lib/utils/cipher/SubtleCryptoCipherUtils.js +0 -47
  640. package/lib/utils/cipher/index.d.ts +0 -3
  641. package/lib/utils/cipher/index.js +0 -2
  642. package/lib/utils/constants.d.ts +0 -11
  643. package/lib/utils/constants.js +0 -11
  644. package/lib/utils/hash/CryptoHashUtils.d.ts +0 -11
  645. package/lib/utils/hash/CryptoHashUtils.js +0 -20
  646. package/lib/utils/hash/CryptoJSHashUtils.d.ts +0 -5
  647. package/lib/utils/hash/CryptoJSHashUtils.js +0 -12
  648. package/lib/utils/hash/SubtleCryptoHashUtils.d.ts +0 -8
  649. package/lib/utils/hash/SubtleCryptoHashUtils.js +0 -31
  650. package/lib/utils/hash/index.d.ts +0 -4
  651. package/lib/utils/hash/index.js +0 -4
  652. package/lib/utils/hmac/CryptoHmacUtils.d.ts +0 -11
  653. package/lib/utils/hmac/CryptoHmacUtils.js +0 -19
  654. package/lib/utils/hmac/CryptoJSHmacUtils.d.ts +0 -5
  655. package/lib/utils/hmac/CryptoJSHmacUtils.js +0 -12
  656. package/lib/utils/hmac/index.d.ts +0 -3
  657. package/lib/utils/hmac/index.js +0 -3
  658. package/lib/utils/ip_range_checker/DefaultIpRangeChecker.d.ts +0 -4
  659. package/lib/utils/ip_range_checker/index.d.ts +0 -2
  660. package/lib/utils/ip_range_checker/index.js +0 -1
  661. package/lib/utils/request_id_generator/UuidRequestIdGenerator.d.ts +0 -4
  662. package/lib/utils/request_id_generator/index.d.ts +0 -2
  663. package/lib/utils/request_id_generator/index.js +0 -1
  664. package/lib/utils/url_parser/DefaultUrlParser.d.ts +0 -13
  665. package/lib/utils/url_parser/DefaultUrlParser.js +0 -21
  666. package/lib/utils/url_parser/index.d.ts +0 -2
  667. package/lib/utils/url_parser/index.js +0 -2
  668. package/lib/utils/utils.d.ts +0 -24
  669. package/lib/utils/utils.js +0 -121
  670. /package/lib/{action → esm/action}/Action.js +0 -0
  671. /package/lib/{action → esm/action}/ActionData.js +0 -0
  672. /package/lib/{action → esm/action}/ActionPriorityOrder.js +0 -0
  673. /package/lib/{action → esm/action}/Decision.js +0 -0
  674. /package/lib/{action → esm/action}/ProductAction.js +0 -0
  675. /package/lib/{action → esm/action}/index.js +0 -0
  676. /package/lib/{activities → esm/activities}/ActivityType.js +0 -0
  677. /package/lib/{activities → esm/activities}/IActivityClient.js +0 -0
  678. /package/lib/{activities → esm/activities}/constants.js +0 -0
  679. /package/lib/{activities → esm/activities}/index.js +0 -0
  680. /package/lib/{activities/model/Activity.js → esm/activities/model/AsyncActivity.js} +0 -0
  681. /package/lib/{activities/model/ActivityDetails.js → esm/activities/model/AsyncActivityDetails.js} +0 -0
  682. /package/lib/{additional_activity_handler/AdditionalActivityHandler.js → esm/activities/model/CommonActivityDetails.js} +0 -0
  683. /package/lib/{blocker/IBlocker.js → esm/activities/model/HeaderEntry.js} +0 -0
  684. /package/lib/{blocker/IConditionalBlocker.js → esm/additional_activity_handler/AdditionalActivityHandler.js} +0 -0
  685. /package/lib/{additional_activity_handler → esm/additional_activity_handler}/index.js +0 -0
  686. /package/lib/{blocker → esm/blocker}/BlockAction.js +0 -0
  687. /package/lib/{blocker → esm/blocker}/BlockActionToProductMap.js +0 -0
  688. /package/lib/{blocker → esm/blocker}/BlockActionToWordMap.js +0 -0
  689. /package/lib/{config/ConfigurationParams.js → esm/blocker/IBlocker.js} +0 -0
  690. /package/lib/{config/IConfiguration.js → esm/blocker/IConditionalBlocker.js} +0 -0
  691. /package/lib/{blocker → esm/blocker}/index.js +0 -0
  692. /package/lib/{context/interfaces/IContext.js → esm/config/ConfigurationParams.js} +0 -0
  693. /package/lib/{config → esm/config}/DefaultConfigurations.js +0 -0
  694. /package/lib/{context/interfaces/MobileData.js → esm/config/IConfiguration.js} +0 -0
  695. /package/lib/{config → esm/config}/index.js +0 -0
  696. /package/lib/{context → esm/context}/index.js +0 -0
  697. /package/lib/{context/interfaces/ReadonlyContext.js → esm/context/interfaces/IContext.js} +0 -0
  698. /package/lib/{context/interfaces/RequestData.js → esm/context/interfaces/MobileData.js} +0 -0
  699. /package/lib/{context/interfaces/RiskApiData.js → esm/context/interfaces/ReadonlyContext.js} +0 -0
  700. /package/lib/{context/interfaces/ServerData.js → esm/context/interfaces/RequestData.js} +0 -0
  701. /package/lib/{context/interfaces/TlsData.js → esm/context/interfaces/RiskApiData.js} +0 -0
  702. /package/lib/{context/interfaces/TokenData.js → esm/context/interfaces/ServerData.js} +0 -0
  703. /package/lib/{cors/CustomBlockResponseHeadersHandler.js → esm/context/interfaces/TlsData.js} +0 -0
  704. /package/lib/{cors/CustomPreflightHandler.js → esm/context/interfaces/TokenData.js} +0 -0
  705. /package/lib/{context → esm/context}/interfaces/index.js +0 -0
  706. /package/lib/{cors/ICors.js → esm/cors/CustomBlockResponseHeadersHandler.js} +0 -0
  707. /package/lib/{custom_parameters/CustomParameters.js → esm/cors/CustomPreflightHandler.js} +0 -0
  708. /package/lib/{custom_parameters/CustomParametersFunction.js → esm/cors/ICors.js} +0 -0
  709. /package/lib/{cors → esm/cors}/constants.js +0 -0
  710. /package/lib/{cors → esm/cors}/index.js +0 -0
  711. /package/lib/{enforcer/IEnforcer.js → esm/custom_parameters/CustomParameters.js} +0 -0
  712. /package/lib/{enforcer/options/EnforcerBaseOptions.js → esm/custom_parameters/CustomParametersFunction.js} +0 -0
  713. /package/lib/{custom_parameters → esm/custom_parameters}/index.js +0 -0
  714. /package/lib/{enforcer/options/EnforcerOptionsType.js → esm/enforcer/IEnforcer.js} +0 -0
  715. /package/lib/{enforcer → esm/enforcer}/index.js +0 -0
  716. /package/lib/{enforcer/options/EnforcerV2Options.js → esm/enforcer/options/EnforcerBaseOptions.js} +0 -0
  717. /package/lib/{enforcer/options/EnforcerV3Options.js → esm/enforcer/options/EnforcerOptionsType.js} +0 -0
  718. /package/lib/{filter/IFilter.js → esm/enforcer/options/EnforcerV2Options.js} +0 -0
  719. /package/lib/{first_party/FirstPartyData.js → esm/enforcer/options/EnforcerV3Options.js} +0 -0
  720. /package/lib/{enforcer → esm/enforcer}/options/index.js +0 -0
  721. /package/lib/{filter → esm/filter}/FilterReason.js +0 -0
  722. /package/lib/{first_party/IFirstParty.js → esm/filter/IFilter.js} +0 -0
  723. /package/lib/{filter → esm/filter}/index.js +0 -0
  724. /package/lib/{graphql/IGraphQLParser.js → esm/first_party/FirstPartyData.js} +0 -0
  725. /package/lib/{graphql/model/GraphQLData.js → esm/first_party/IFirstParty.js} +0 -0
  726. /package/lib/{first_party → esm/first_party}/index.js +0 -0
  727. /package/lib/{graphql/model/GraphQLOperation.js → esm/graphql/IGraphQLParser.js} +0 -0
  728. /package/lib/{graphql → esm/graphql}/index.js +0 -0
  729. /package/lib/{http/interfaces/IBody.js → esm/graphql/model/GraphQLData.js} +0 -0
  730. /package/lib/{http/interfaces/IFormData.js → esm/graphql/model/GraphQLOperation.js} +0 -0
  731. /package/lib/{graphql → esm/graphql}/model/GraphQLOperationType.js +0 -0
  732. /package/lib/{graphql → esm/graphql}/model/index.js +0 -0
  733. /package/lib/{http/interfaces/IHeaders.js → esm/http/interfaces/IBody.js} +0 -0
  734. /package/lib/{http/interfaces/IHttpClient.js → esm/http/interfaces/IFormData.js} +0 -0
  735. /package/lib/{http/interfaces/IIncomingRequest.js → esm/http/interfaces/IHeaders.js} +0 -0
  736. /package/lib/{http/interfaces/IIncomingResponse.js → esm/http/interfaces/IHttpClient.js} +0 -0
  737. /package/lib/{http/interfaces/IMinimalResponse.js → esm/http/interfaces/IIncomingRequest.js} +0 -0
  738. /package/lib/{http/interfaces/IOutgoingRequest.js → esm/http/interfaces/IIncomingResponse.js} +0 -0
  739. /package/lib/{http/interfaces/IOutgoingResponse.js → esm/http/interfaces/IMinimalResponse.js} +0 -0
  740. /package/lib/{http/interfaces/IURL.js → esm/http/interfaces/IOutgoingRequest.js} +0 -0
  741. /package/lib/{logger/ILogServiceClient.js → esm/http/interfaces/IOutgoingResponse.js} +0 -0
  742. /package/lib/{logger/ILogger.js → esm/http/interfaces/IURL.js} +0 -0
  743. /package/lib/{logger/model/EnrichedLogRecord.js → esm/http/interfaces/IURLSearchParams.js} +0 -0
  744. /package/lib/{http → esm/http}/interfaces/ReadonlyHeaders.js +0 -0
  745. /package/lib/{http → esm/http}/utils/ContentType.js +0 -0
  746. /package/lib/{http → esm/http}/utils/HttpMethod.js +0 -0
  747. /package/lib/{http → esm/http}/utils/constants.js +0 -0
  748. /package/lib/{utils → esm/impl}/base64/AtobBase64Utils.js +0 -0
  749. /package/lib/{utils → esm/impl}/base64/JSBase64Base64Utils.js +0 -0
  750. /package/lib/{http/impl → esm/impl/http}/phin/index.js +0 -0
  751. /package/lib/{utils → esm/impl}/ip_range_checker/DefaultIpRangeChecker.js +0 -0
  752. /package/lib/{utils → esm/impl}/request_id_generator/UuidRequestIdGenerator.js +0 -0
  753. /package/lib/{index.js → esm/index.js} +0 -0
  754. /package/lib/{logger → esm/logger}/DefaultLogger.js +0 -0
  755. /package/lib/{logger/model/LogMetadata.js → esm/logger/ILogServiceClient.js} +0 -0
  756. /package/lib/{logger/model/LogRecord.js → esm/logger/ILogger.js} +0 -0
  757. /package/lib/{logger → esm/logger}/LoggerSeverity.js +0 -0
  758. /package/lib/{logger → esm/logger}/constants.js +0 -0
  759. /package/lib/{logger → esm/logger}/index.js +0 -0
  760. /package/lib/{phase/IPhase.js → esm/logger/model/EnrichedLogRecord.js} +0 -0
  761. /package/lib/{phase/PhaseResult.js → esm/logger/model/LogMetadata.js} +0 -0
  762. /package/lib/{products/account_defender/AccountDefenderData.js → esm/logger/model/LogRecord.js} +0 -0
  763. /package/lib/{logger → esm/logger}/model/index.js +0 -0
  764. /package/lib/{products/account_defender/IAccountDefender.js → esm/phase/IPhase.js} +0 -0
  765. /package/lib/{products/account_defender/JwtData.js → esm/phase/PhaseResult.js} +0 -0
  766. /package/lib/{phase → esm/phase}/flow/EndEnforcerFlow.js +0 -0
  767. /package/lib/{phase → esm/phase}/flow/EnforceFlow.js +0 -0
  768. /package/lib/{phase → esm/phase}/flow/FilterFlow.js +0 -0
  769. /package/lib/{phase → esm/phase}/flow/PostEnforceFlow.js +0 -0
  770. /package/lib/{phase → esm/phase}/flow/index.js +0 -0
  771. /package/lib/{phase → esm/phase}/impl/index.js +0 -0
  772. /package/lib/{phase → esm/phase}/index.js +0 -0
  773. /package/lib/{products/bot_defender/BotDefenderData.js → esm/products/account_defender/AccountDefenderData.js} +0 -0
  774. /package/lib/{products/bot_defender/IBotDefender.js → esm/products/account_defender/IAccountDefender.js} +0 -0
  775. /package/lib/{products/bot_defender/block/model/BlockData.js → esm/products/account_defender/JwtData.js} +0 -0
  776. /package/lib/{products → esm/products}/account_defender/constants.js +0 -0
  777. /package/lib/{products → esm/products}/account_defender/index.js +0 -0
  778. /package/lib/{products/bot_defender/block/model/JsonBlockPayload.js → esm/products/bot_defender/BotDefenderData.js} +0 -0
  779. /package/lib/{products → esm/products}/bot_defender/BotDefenderUtils.js +0 -0
  780. /package/lib/{products/bot_defender/block/model/MobileBlockPayload.js → esm/products/bot_defender/IBotDefender.js} +0 -0
  781. /package/lib/{products → esm/products}/bot_defender/block/captcha/index.js +0 -0
  782. /package/lib/{products → esm/products}/bot_defender/block/index.js +0 -0
  783. /package/lib/{products/bot_defender/reasons/BotDefenderReasonType.js → esm/products/bot_defender/block/model/BlockData.js} +0 -0
  784. /package/lib/{products/credential_intelligence/ICredentialIntelligence.js → esm/products/bot_defender/block/model/JsonBlockPayload.js} +0 -0
  785. /package/lib/{products/credential_intelligence/endpoint/CredentialEndpointConfiguration.js → esm/products/bot_defender/block/model/MobileBlockPayload.js} +0 -0
  786. /package/lib/{products → esm/products}/bot_defender/block/model/index.js +0 -0
  787. /package/lib/{products → esm/products}/bot_defender/block/templates/captcha_template.js +0 -0
  788. /package/lib/{products → esm/products}/bot_defender/block/templates/index.js +0 -0
  789. /package/lib/{products → esm/products}/bot_defender/block/templates/rate_limit_template.js +0 -0
  790. /package/lib/{products → esm/products}/bot_defender/filter/index.js +0 -0
  791. /package/lib/{products → esm/products}/bot_defender/first_party/FirstPartySuffix.js +0 -0
  792. /package/lib/{products → esm/products}/bot_defender/first_party/index.js +0 -0
  793. /package/lib/{products → esm/products}/bot_defender/first_party/utils.js +0 -0
  794. /package/lib/{products → esm/products}/bot_defender/index.js +0 -0
  795. /package/lib/{products → esm/products}/bot_defender/reasons/BotDefenderBlockReason.js +0 -0
  796. /package/lib/{products → esm/products}/bot_defender/reasons/BotDefenderPassReason.js +0 -0
  797. /package/lib/{products/credential_intelligence/endpoint/ICredentialEndpoint.js → esm/products/bot_defender/reasons/BotDefenderReasonType.js} +0 -0
  798. /package/lib/{products → esm/products}/bot_defender/reasons/BotDefenderS2SCallReason.js +0 -0
  799. /package/lib/{products → esm/products}/bot_defender/reasons/index.js +0 -0
  800. /package/lib/{products/credential_intelligence/endpoint/extractor/ICredentialExtractor.js → esm/products/credential_intelligence/ICredentialIntelligence.js} +0 -0
  801. /package/lib/{products → esm/products}/credential_intelligence/constants.js +0 -0
  802. /package/lib/{products/credential_intelligence/endpoint/hash_protocol/ICredentialIntelligenceHashProtocol.js → esm/products/credential_intelligence/endpoint/CredentialEndpointConfiguration.js} +0 -0
  803. /package/lib/{products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulCallback.js → esm/products/credential_intelligence/endpoint/ICredentialEndpoint.js} +0 -0
  804. /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.js +0 -0
  805. /package/lib/{products/credential_intelligence/endpoint/login_successful/ILoginSuccessfulParser.js → esm/products/credential_intelligence/endpoint/extractor/ICredentialExtractor.js} +0 -0
  806. /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/SentThrough.js +0 -0
  807. /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/index.js +0 -0
  808. /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.js +0 -0
  809. /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceVersion.js +0 -0
  810. /package/lib/{products/credential_intelligence/endpoint/matcher/ICredentialIntelligenceEndpointMatcher.js → esm/products/credential_intelligence/endpoint/hash_protocol/ICredentialIntelligenceHashProtocol.js} +0 -0
  811. /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/SsoStep.js +0 -0
  812. /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/index.js +0 -0
  813. /package/lib/{products → esm/products}/credential_intelligence/endpoint/index.js +0 -0
  814. /package/lib/{products/credential_intelligence/model/CredentialData.js → esm/products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulCallback.js} +0 -0
  815. /package/lib/{products/credential_intelligence/model/CredentialIntelligenceData.js → esm/products/credential_intelligence/endpoint/login_successful/ILoginSuccessfulParser.js} +0 -0
  816. /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/LoginSuccessfulReportingMethod.js +0 -0
  817. /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/index.js +0 -0
  818. /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.js +0 -0
  819. /package/lib/{products/credential_intelligence/model/Credentials.js → esm/products/credential_intelligence/endpoint/matcher/ICredentialIntelligenceEndpointMatcher.js} +0 -0
  820. /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/PathType.js +0 -0
  821. /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/index.js +0 -0
  822. /package/lib/{products → esm/products}/credential_intelligence/index.js +0 -0
  823. /package/lib/{products/credential_intelligence/model/CustomExtractionCallback.js → esm/products/credential_intelligence/model/CredentialData.js} +0 -0
  824. /package/lib/{products/interfaces/IProduct.js → esm/products/credential_intelligence/model/CredentialIntelligenceData.js} +0 -0
  825. /package/lib/{products/interfaces/ProductData.js → esm/products/credential_intelligence/model/Credentials.js} +0 -0
  826. /package/lib/{products/interfaces/ProductDataType.js → esm/products/credential_intelligence/model/CustomExtractionCallback.js} +0 -0
  827. /package/lib/{products → esm/products}/credential_intelligence/model/index.js +0 -0
  828. /package/lib/{products → esm/products}/index.js +0 -0
  829. /package/lib/{products/interfaces/ProductType.js → esm/products/interfaces/IProduct.js} +0 -0
  830. /package/lib/{products/interfaces/Products.js → esm/products/interfaces/ProductData.js} +0 -0
  831. /package/lib/{pxde/IDataEnrichment.js → esm/products/interfaces/ProductDataType.js} +0 -0
  832. /package/lib/{pxde/model/PXDE.js → esm/products/interfaces/ProductType.js} +0 -0
  833. /package/lib/{pxde/model/PxdeData.js → esm/products/interfaces/Products.js} +0 -0
  834. /package/lib/{products → esm/products}/interfaces/index.js +0 -0
  835. /package/lib/{products → esm/products}/utils/ProductName.js +0 -0
  836. /package/lib/{products → esm/products}/utils/ProductPriorityOrder.js +0 -0
  837. /package/lib/{products → esm/products}/utils/index.js +0 -0
  838. /package/lib/{products → esm/products}/utils/utils.js +0 -0
  839. /package/lib/{pxhd/model/PXHD.js → esm/pxde/IDataEnrichment.js} +0 -0
  840. /package/lib/{pxde → esm/pxde}/constants.js +0 -0
  841. /package/lib/{pxde → esm/pxde}/index.js +0 -0
  842. /package/lib/{risk_api/client/IRiskApiClient.js → esm/pxde/model/PXDE.js} +0 -0
  843. /package/lib/{risk_api/model/RiskActivity.js → esm/pxde/model/PxdeData.js} +0 -0
  844. /package/lib/{pxde → esm/pxde}/model/index.js +0 -0
  845. /package/lib/{pxhd → esm/pxhd}/index.js +0 -0
  846. /package/lib/{risk_api/risk_response/IRiskResponse.js → esm/pxhd/model/PXHD.js} +0 -0
  847. /package/lib/{pxhd → esm/pxhd}/model/PXHDSource.js +0 -0
  848. /package/lib/{pxhd → esm/pxhd}/model/index.js +0 -0
  849. /package/lib/{risk_api/risk_response/RiskResponsePayloadType.js → esm/risk_api/client/IRiskApiClient.js} +0 -0
  850. /package/lib/{risk_api → esm/risk_api}/client/PostRiskApiClientV2.js +0 -0
  851. /package/lib/{risk_api → esm/risk_api}/client/PostRiskApiClientV3.js +0 -0
  852. /package/lib/{risk_api → esm/risk_api}/client/index.js +0 -0
  853. /package/lib/{risk_api → esm/risk_api}/constants.js +0 -0
  854. /package/lib/{risk_api → esm/risk_api}/index.js +0 -0
  855. /package/lib/{risk_api/risk_response/v2/RiskResponseV2Payload.js → esm/risk_api/model/RiskActivity.js} +0 -0
  856. /package/lib/{risk_api → esm/risk_api}/model/RiskApiCallResult.js +0 -0
  857. /package/lib/{risk_api → esm/risk_api}/model/RiskStatus.js +0 -0
  858. /package/lib/{risk_api → esm/risk_api}/model/S2SErrorReason.js +0 -0
  859. /package/lib/{risk_api → esm/risk_api}/model/index.js +0 -0
  860. /package/lib/{risk_api/risk_response/v3/RiskResponseV3Payload.js → esm/risk_api/risk_response/IRiskResponse.js} +0 -0
  861. /package/lib/{risk_token/parser/ITokenParser.js → esm/risk_api/risk_response/RiskResponsePayloadType.js} +0 -0
  862. /package/lib/{risk_api → esm/risk_api}/risk_response/index.js +0 -0
  863. /package/lib/{risk_token/parser/TokenParserOptions.js → esm/risk_api/risk_response/v2/RiskResponseV2Payload.js} +0 -0
  864. /package/lib/{risk_api → esm/risk_api}/risk_response/v2/index.js +0 -0
  865. /package/lib/{risk_token/token/IToken.js → esm/risk_api/risk_response/v3/RiskResponseV3Payload.js} +0 -0
  866. /package/lib/{risk_api → esm/risk_api}/risk_response/v3/index.js +0 -0
  867. /package/lib/{risk_token → esm/risk_token}/MobileError.js +0 -0
  868. /package/lib/{risk_token → esm/risk_token}/TokenOrigin.js +0 -0
  869. /package/lib/{risk_token → esm/risk_token}/TokenParseResult.js +0 -0
  870. /package/lib/{risk_token → esm/risk_token}/TokenVersion.js +0 -0
  871. /package/lib/{risk_token → esm/risk_token}/constants.js +0 -0
  872. /package/lib/{risk_token → esm/risk_token}/index.js +0 -0
  873. /package/lib/{risk_token → esm/risk_token}/parser/DefaultTokenV2Parser.js +0 -0
  874. /package/lib/{risk_token → esm/risk_token}/parser/DefaultTokenV3Parser.js +0 -0
  875. /package/lib/{risk_token/token/TokenPayloadType.js → esm/risk_token/parser/ITokenParser.js} +0 -0
  876. /package/lib/{risk_token/token/v2/TokenV2Payload.js → esm/risk_token/parser/TokenParserOptions.js} +0 -0
  877. /package/lib/{risk_token → esm/risk_token}/parser/index.js +0 -0
  878. /package/lib/{risk_token/token/v3/TokenV3Payload.js → esm/risk_token/token/IToken.js} +0 -0
  879. /package/lib/{telemetry/ITelemetry.js → esm/risk_token/token/TokenPayloadType.js} +0 -0
  880. /package/lib/{risk_token → esm/risk_token}/token/index.js +0 -0
  881. /package/lib/{telemetry/model/TelemetryActivity.js → esm/risk_token/token/v2/TokenV2Payload.js} +0 -0
  882. /package/lib/{risk_token → esm/risk_token}/token/v3/TokenSignField.js +0 -0
  883. /package/lib/{utils/base64/IBase64Utils.js → esm/risk_token/token/v3/TokenV3Payload.js} +0 -0
  884. /package/lib/{risk_token → esm/risk_token}/utils.js +0 -0
  885. /package/lib/{utils/cipher/ICipherUtils.js → esm/telemetry/ITelemetry.js} +0 -0
  886. /package/lib/{telemetry → esm/telemetry}/constants.js +0 -0
  887. /package/lib/{telemetry → esm/telemetry}/index.js +0 -0
  888. /package/lib/{utils/cookie_parser/ICookieParser.js → esm/telemetry/model/TelemetryActivity.js} +0 -0
  889. /package/lib/{utils → esm/utils}/Algorithm.js +0 -0
  890. /package/lib/{utils → esm/utils}/ModuleMode.js +0 -0
  891. /package/lib/{utils → esm/utils}/VidSource.js +0 -0
  892. /package/lib/{utils/hash/IHashUtils.js → esm/utils/base64/IBase64Utils.js} +0 -0
  893. /package/lib/{utils/hmac/IHmacUtils.js → esm/utils/cipher/ICipherUtils.js} +0 -0
  894. /package/lib/{utils/ip_range_checker/IIpRangeChecker.js → esm/utils/cookie_parser/ICookieParser.js} +0 -0
  895. /package/lib/{utils → esm/utils}/cookie_parser/StringSplitCookieParser.js +0 -0
  896. /package/lib/{utils → esm/utils}/cookie_parser/index.js +0 -0
  897. /package/lib/{utils → esm/utils}/error/EnforcerError.js +0 -0
  898. /package/lib/{utils → esm/utils}/error/EnforcerErrorName.js +0 -0
  899. /package/lib/{utils → esm/utils}/error/EnforcerTimeoutError.js +0 -0
  900. /package/lib/{utils → esm/utils}/error/index.js +0 -0
  901. /package/lib/{utils/request_id_generator/IRequestIdGenerator.js → esm/utils/hash/IHashUtils.js} +0 -0
  902. /package/lib/{utils/url_parser/IURLParser.js → esm/utils/hmac/IHmacUtils.js} +0 -0
  903. /package/lib/{utils → esm/utils}/index.js +0 -0
  904. /package/lib/{action → types/action}/Action.d.ts +0 -0
  905. /package/lib/{action → types/action}/ActionData.d.ts +0 -0
  906. /package/lib/{action → types/action}/ActionPriorityOrder.d.ts +0 -0
  907. /package/lib/{action → types/action}/Decision.d.ts +0 -0
  908. /package/lib/{action → types/action}/ProductAction.d.ts +0 -0
  909. /package/lib/{action → types/action}/index.d.ts +0 -0
  910. /package/lib/{action → types/action}/utils.d.ts +0 -0
  911. /package/lib/{activities → types/activities}/ActivityType.d.ts +0 -0
  912. /package/lib/{activities → types/activities}/IActivityClient.d.ts +0 -0
  913. /package/lib/{activities → types/activities}/constants.d.ts +0 -0
  914. /package/lib/{activities → types/activities}/index.d.ts +0 -0
  915. /package/lib/{additional_activity_handler → types/additional_activity_handler}/AdditionalActivityHandlerUtils.d.ts +0 -0
  916. /package/lib/{additional_activity_handler → types/additional_activity_handler}/index.d.ts +0 -0
  917. /package/lib/{blocker → types/blocker}/BlockAction.d.ts +0 -0
  918. /package/lib/{blocker → types/blocker}/BlockActionToProductMap.d.ts +0 -0
  919. /package/lib/{blocker → types/blocker}/BlockActionToWordMap.d.ts +0 -0
  920. /package/lib/{blocker → types/blocker}/IBlocker.d.ts +0 -0
  921. /package/lib/{blocker → types/blocker}/IConditionalBlocker.d.ts +0 -0
  922. /package/lib/{blocker → types/blocker}/index.d.ts +0 -0
  923. /package/lib/{config → types/config}/DefaultConfigurations.d.ts +0 -0
  924. /package/lib/{config → types/config}/index.d.ts +0 -0
  925. /package/lib/{context → types/context}/index.d.ts +0 -0
  926. /package/lib/{context → types/context}/interfaces/IContext.d.ts +0 -0
  927. /package/lib/{context → types/context}/interfaces/MobileData.d.ts +0 -0
  928. /package/lib/{context → types/context}/interfaces/ReadonlyContext.d.ts +0 -0
  929. /package/lib/{context → types/context}/interfaces/RequestData.d.ts +0 -0
  930. /package/lib/{context → types/context}/interfaces/ServerData.d.ts +0 -0
  931. /package/lib/{context → types/context}/interfaces/TlsData.d.ts +0 -0
  932. /package/lib/{context → types/context}/interfaces/TokenData.d.ts +0 -0
  933. /package/lib/{context → types/context}/interfaces/index.d.ts +0 -0
  934. /package/lib/{cors → types/cors}/CustomBlockResponseHeadersHandler.d.ts +0 -0
  935. /package/lib/{cors → types/cors}/CustomPreflightHandler.d.ts +0 -0
  936. /package/lib/{cors → types/cors}/DefaultCors.d.ts +0 -0
  937. /package/lib/{cors → types/cors}/ICors.d.ts +0 -0
  938. /package/lib/{cors → types/cors}/constants.d.ts +0 -0
  939. /package/lib/{cors → types/cors}/index.d.ts +0 -0
  940. /package/lib/{custom_parameters → types/custom_parameters}/CustomParameters.d.ts +0 -0
  941. /package/lib/{custom_parameters → types/custom_parameters}/CustomParametersFunction.d.ts +0 -0
  942. /package/lib/{custom_parameters → types/custom_parameters}/CustomParametersUtils.d.ts +0 -0
  943. /package/lib/{custom_parameters → types/custom_parameters}/index.d.ts +0 -0
  944. /package/lib/{enforcer → types/enforcer}/EnforcerBase.d.ts +0 -0
  945. /package/lib/{enforcer → types/enforcer}/IEnforcer.d.ts +0 -0
  946. /package/lib/{enforcer → types/enforcer}/index.d.ts +0 -0
  947. /package/lib/{enforcer → types/enforcer}/options/EnforcerBaseOptions.d.ts +0 -0
  948. /package/lib/{enforcer → types/enforcer}/options/EnforcerOptionsType.d.ts +0 -0
  949. /package/lib/{enforcer → types/enforcer}/options/EnforcerV2Options.d.ts +0 -0
  950. /package/lib/{enforcer → types/enforcer}/options/EnforcerV3Options.d.ts +0 -0
  951. /package/lib/{enforcer → types/enforcer}/options/index.d.ts +0 -0
  952. /package/lib/{filter → types/filter}/FilterReason.d.ts +0 -0
  953. /package/lib/{filter → types/filter}/IFilter.d.ts +0 -0
  954. /package/lib/{filter → types/filter}/index.d.ts +0 -0
  955. /package/lib/{first_party → types/first_party}/FirstPartyData.d.ts +0 -0
  956. /package/lib/{first_party → types/first_party}/IFirstParty.d.ts +0 -0
  957. /package/lib/{first_party → types/first_party}/index.d.ts +0 -0
  958. /package/lib/{graphql → types/graphql}/DefaultGraphQLParser.d.ts +0 -0
  959. /package/lib/{graphql → types/graphql}/IGraphQLParser.d.ts +0 -0
  960. /package/lib/{graphql → types/graphql}/index.d.ts +0 -0
  961. /package/lib/{graphql → types/graphql}/model/GraphQLData.d.ts +0 -0
  962. /package/lib/{graphql → types/graphql}/model/GraphQLOperation.d.ts +0 -0
  963. /package/lib/{graphql → types/graphql}/model/GraphQLOperationType.d.ts +0 -0
  964. /package/lib/{graphql → types/graphql}/model/index.d.ts +0 -0
  965. /package/lib/{http → types/http}/interfaces/IFormData.d.ts +0 -0
  966. /package/lib/{http → types/http}/interfaces/IHeaders.d.ts +0 -0
  967. /package/lib/{http → types/http}/interfaces/IHttpClient.d.ts +0 -0
  968. /package/lib/{http → types/http}/interfaces/IIncomingResponse.d.ts +0 -0
  969. /package/lib/{http → types/http}/interfaces/IMinimalResponse.d.ts +0 -0
  970. /package/lib/{http → types/http}/interfaces/IOutgoingRequest.d.ts +0 -0
  971. /package/lib/{http → types/http}/interfaces/IOutgoingResponse.d.ts +0 -0
  972. /package/lib/{http → types/http}/interfaces/ReadonlyHeaders.d.ts +0 -0
  973. /package/lib/{http → types/http}/utils/ContentType.d.ts +0 -0
  974. /package/lib/{http/impl → types/http/utils}/FormDataImpl.d.ts +0 -0
  975. /package/lib/{http → types/http}/utils/HttpMethod.d.ts +0 -0
  976. /package/lib/{http/impl → types/http/utils}/MinimalResponseImpl.d.ts +0 -0
  977. /package/lib/{http → types/http}/utils/MinimalResponseUtils.d.ts +0 -0
  978. /package/lib/{http → types/http}/utils/MultipartFormDataUtils.d.ts +0 -0
  979. /package/lib/{http → types/http}/utils/constants.d.ts +0 -0
  980. /package/lib/{http/impl → types/impl/http}/phin/index.d.ts +0 -0
  981. /package/lib/{index.d.ts → types/index.d.ts} +0 -0
  982. /package/lib/{logger → types/logger}/DefaultLogger.d.ts +0 -0
  983. /package/lib/{logger → types/logger}/HttpLogServiceClient.d.ts +0 -0
  984. /package/lib/{logger → types/logger}/ILogServiceClient.d.ts +0 -0
  985. /package/lib/{logger → types/logger}/ILogger.d.ts +0 -0
  986. /package/lib/{logger → types/logger}/LoggerBase.d.ts +0 -0
  987. /package/lib/{logger → types/logger}/LoggerSeverity.d.ts +0 -0
  988. /package/lib/{logger → types/logger}/constants.d.ts +0 -0
  989. /package/lib/{logger → types/logger}/index.d.ts +0 -0
  990. /package/lib/{logger → types/logger}/model/EnrichedLogRecord.d.ts +0 -0
  991. /package/lib/{logger → types/logger}/model/LogMetadata.d.ts +0 -0
  992. /package/lib/{logger → types/logger}/model/LogRecord.d.ts +0 -0
  993. /package/lib/{logger → types/logger}/model/index.d.ts +0 -0
  994. /package/lib/{phase → types/phase}/IPhase.d.ts +0 -0
  995. /package/lib/{phase → types/phase}/PhaseResult.d.ts +0 -0
  996. /package/lib/{phase → types/phase}/flow/EndEnforcerFlow.d.ts +0 -0
  997. /package/lib/{phase → types/phase}/flow/EnforceFlow.d.ts +0 -0
  998. /package/lib/{phase → types/phase}/flow/FilterFlow.d.ts +0 -0
  999. /package/lib/{phase → types/phase}/flow/PostEnforceFlow.d.ts +0 -0
  1000. /package/lib/{phase → types/phase}/flow/index.d.ts +0 -0
  1001. /package/lib/{phase → types/phase}/impl/AdditionalActivityHandlerPhase.d.ts +0 -0
  1002. /package/lib/{phase → types/phase}/impl/CompositePhase.d.ts +0 -0
  1003. /package/lib/{phase → types/phase}/impl/CreateBlockResponsePhase.d.ts +0 -0
  1004. /package/lib/{phase → types/phase}/impl/DecideActionPhase.d.ts +0 -0
  1005. /package/lib/{phase → types/phase}/impl/EnrichContextFromRequestPhase.d.ts +0 -0
  1006. /package/lib/{phase → types/phase}/impl/EnrichContextFromResponsePhase.d.ts +0 -0
  1007. /package/lib/{phase → types/phase}/impl/FilterPhase.d.ts +0 -0
  1008. /package/lib/{phase → types/phase}/impl/FirstPartyPhase.d.ts +0 -0
  1009. /package/lib/{phase → types/phase}/impl/ModifyIncomingRequestPhase.d.ts +0 -0
  1010. /package/lib/{phase → types/phase}/impl/ModifyOutgoingResponsePhase.d.ts +0 -0
  1011. /package/lib/{phase → types/phase}/impl/ParseTokenPhase.d.ts +0 -0
  1012. /package/lib/{phase → types/phase}/impl/PreflightPhase.d.ts +0 -0
  1013. /package/lib/{phase → types/phase}/impl/RiskApiPhase.d.ts +0 -0
  1014. /package/lib/{phase → types/phase}/impl/SendAsyncActivitiesOnRequestPhase.d.ts +0 -0
  1015. /package/lib/{phase → types/phase}/impl/SendAsyncActivitiesOnResponsePhase.d.ts +0 -0
  1016. /package/lib/{phase → types/phase}/impl/SendLogsPhase.d.ts +0 -0
  1017. /package/lib/{phase → types/phase}/impl/TelemetryPhase.d.ts +0 -0
  1018. /package/lib/{phase → types/phase}/impl/index.d.ts +0 -0
  1019. /package/lib/{phase → types/phase}/index.d.ts +0 -0
  1020. /package/lib/{products → types/products}/account_defender/AccountDefender.d.ts +0 -0
  1021. /package/lib/{products → types/products}/account_defender/AccountDefenderData.d.ts +0 -0
  1022. /package/lib/{products → types/products}/account_defender/IAccountDefender.d.ts +0 -0
  1023. /package/lib/{products → types/products}/account_defender/JwtData.d.ts +0 -0
  1024. /package/lib/{products → types/products}/account_defender/constants.d.ts +0 -0
  1025. /package/lib/{products → types/products}/account_defender/index.d.ts +0 -0
  1026. /package/lib/{products → types/products}/bot_defender/BotDefender.d.ts +0 -0
  1027. /package/lib/{products → types/products}/bot_defender/BotDefenderActionData.d.ts +0 -0
  1028. /package/lib/{products → types/products}/bot_defender/BotDefenderData.d.ts +0 -0
  1029. /package/lib/{products → types/products}/bot_defender/BotDefenderUtils.d.ts +0 -0
  1030. /package/lib/{products → types/products}/bot_defender/IBotDefender.d.ts +0 -0
  1031. /package/lib/{products → types/products}/bot_defender/block/captcha/index.d.ts +0 -0
  1032. /package/lib/{products → types/products}/bot_defender/block/index.d.ts +0 -0
  1033. /package/lib/{products → types/products}/bot_defender/block/model/BlockData.d.ts +0 -0
  1034. /package/lib/{products → types/products}/bot_defender/block/model/JsonBlockPayload.d.ts +0 -0
  1035. /package/lib/{products → types/products}/bot_defender/block/model/MobileBlockPayload.d.ts +0 -0
  1036. /package/lib/{products → types/products}/bot_defender/block/model/index.d.ts +0 -0
  1037. /package/lib/{products → types/products}/bot_defender/block/templates/captcha_template.d.ts +0 -0
  1038. /package/lib/{products → types/products}/bot_defender/block/templates/index.d.ts +0 -0
  1039. /package/lib/{products → types/products}/bot_defender/block/templates/rate_limit_template.d.ts +0 -0
  1040. /package/lib/{products → types/products}/bot_defender/block/utils.d.ts +0 -0
  1041. /package/lib/{products → types/products}/bot_defender/filter/DefaultBotDefenderFilter.d.ts +0 -0
  1042. /package/lib/{products → types/products}/bot_defender/filter/index.d.ts +0 -0
  1043. /package/lib/{products → types/products}/bot_defender/first_party/DefaultBotDefenderFirstParty.d.ts +0 -0
  1044. /package/lib/{products → types/products}/bot_defender/first_party/FirstPartySuffix.d.ts +0 -0
  1045. /package/lib/{products → types/products}/bot_defender/first_party/index.d.ts +0 -0
  1046. /package/lib/{products → types/products}/bot_defender/first_party/utils.d.ts +0 -0
  1047. /package/lib/{products → types/products}/bot_defender/index.d.ts +0 -0
  1048. /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderBlockReason.d.ts +0 -0
  1049. /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderPassReason.d.ts +0 -0
  1050. /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderReasonType.d.ts +0 -0
  1051. /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderS2SCallReason.d.ts +0 -0
  1052. /package/lib/{products → types/products}/bot_defender/reasons/index.d.ts +0 -0
  1053. /package/lib/{products → types/products}/credential_intelligence/CredentialIntelligence.d.ts +0 -0
  1054. /package/lib/{products → types/products}/credential_intelligence/ICredentialIntelligence.d.ts +0 -0
  1055. /package/lib/{products → types/products}/credential_intelligence/constants.d.ts +0 -0
  1056. /package/lib/{products → types/products}/credential_intelligence/endpoint/CredentialEndpoint.d.ts +0 -0
  1057. /package/lib/{products → types/products}/credential_intelligence/endpoint/CredentialEndpointConfiguration.d.ts +0 -0
  1058. /package/lib/{products → types/products}/credential_intelligence/endpoint/CredentialEndpointManager.d.ts +0 -0
  1059. /package/lib/{products → types/products}/credential_intelligence/endpoint/ICredentialEndpoint.d.ts +0 -0
  1060. /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.d.ts +0 -0
  1061. /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/CustomCredentialExtractor.d.ts +0 -0
  1062. /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/HeaderCredentialExtractor.d.ts +0 -0
  1063. /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/ICredentialExtractor.d.ts +0 -0
  1064. /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/SentThrough.d.ts +0 -0
  1065. /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/index.d.ts +0 -0
  1066. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.d.ts +0 -0
  1067. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceVersion.d.ts +0 -0
  1068. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/ICredentialIntelligenceHashProtocol.d.ts +0 -0
  1069. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.d.ts +0 -0
  1070. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/SingleStepAndMultistepHashProtocol.d.ts +0 -0
  1071. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.d.ts +0 -0
  1072. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/SsoStep.d.ts +0 -0
  1073. /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/index.d.ts +0 -0
  1074. /package/lib/{products → types/products}/credential_intelligence/endpoint/index.d.ts +0 -0
  1075. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/BodyLoginSuccessfulParser.d.ts +0 -0
  1076. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulCallback.d.ts +0 -0
  1077. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulParser.d.ts +0 -0
  1078. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.d.ts +0 -0
  1079. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/ILoginSuccessfulParser.d.ts +0 -0
  1080. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.d.ts +0 -0
  1081. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/LoginSuccessfulReportingMethod.d.ts +0 -0
  1082. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/StatusLoginSuccessfulParser.d.ts +0 -0
  1083. /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/index.d.ts +0 -0
  1084. /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.d.ts +0 -0
  1085. /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/ExactPathEndpointMatcher.d.ts +0 -0
  1086. /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/ICredentialIntelligenceEndpointMatcher.d.ts +0 -0
  1087. /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/PathType.d.ts +0 -0
  1088. /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/RegexPathEndpointMatcher.d.ts +0 -0
  1089. /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/index.d.ts +0 -0
  1090. /package/lib/{products → types/products}/credential_intelligence/index.d.ts +0 -0
  1091. /package/lib/{products → types/products}/credential_intelligence/model/CredentialData.d.ts +0 -0
  1092. /package/lib/{products → types/products}/credential_intelligence/model/CredentialIntelligenceData.d.ts +0 -0
  1093. /package/lib/{products → types/products}/credential_intelligence/model/Credentials.d.ts +0 -0
  1094. /package/lib/{products → types/products}/credential_intelligence/model/CustomExtractionCallback.d.ts +0 -0
  1095. /package/lib/{products → types/products}/credential_intelligence/model/index.d.ts +0 -0
  1096. /package/lib/{products → types/products}/index.d.ts +0 -0
  1097. /package/lib/{products → types/products}/interfaces/IProduct.d.ts +0 -0
  1098. /package/lib/{products → types/products}/interfaces/ProductData.d.ts +0 -0
  1099. /package/lib/{products → types/products}/interfaces/ProductDataType.d.ts +0 -0
  1100. /package/lib/{products → types/products}/interfaces/ProductType.d.ts +0 -0
  1101. /package/lib/{products → types/products}/interfaces/Products.d.ts +0 -0
  1102. /package/lib/{products → types/products}/interfaces/index.d.ts +0 -0
  1103. /package/lib/{products → types/products}/utils/ProductName.d.ts +0 -0
  1104. /package/lib/{products → types/products}/utils/ProductPriorityOrder.d.ts +0 -0
  1105. /package/lib/{products → types/products}/utils/index.d.ts +0 -0
  1106. /package/lib/{products → types/products}/utils/utils.d.ts +0 -0
  1107. /package/lib/{pxde → types/pxde}/DefaultDataEnrichment.d.ts +0 -0
  1108. /package/lib/{pxde → types/pxde}/IDataEnrichment.d.ts +0 -0
  1109. /package/lib/{pxde → types/pxde}/constants.d.ts +0 -0
  1110. /package/lib/{pxde → types/pxde}/index.d.ts +0 -0
  1111. /package/lib/{pxde → types/pxde}/model/PXDE.d.ts +0 -0
  1112. /package/lib/{pxde → types/pxde}/model/PxdeData.d.ts +0 -0
  1113. /package/lib/{pxde → types/pxde}/model/index.d.ts +0 -0
  1114. /package/lib/{pxhd → types/pxhd}/PXHDUtils.d.ts +0 -0
  1115. /package/lib/{pxhd → types/pxhd}/index.d.ts +0 -0
  1116. /package/lib/{pxhd → types/pxhd}/model/PXHD.d.ts +0 -0
  1117. /package/lib/{pxhd → types/pxhd}/model/PXHDSource.d.ts +0 -0
  1118. /package/lib/{pxhd → types/pxhd}/model/index.d.ts +0 -0
  1119. /package/lib/{risk_api → types/risk_api}/client/IRiskApiClient.d.ts +0 -0
  1120. /package/lib/{risk_api → types/risk_api}/client/PostRiskApiClientV2.d.ts +0 -0
  1121. /package/lib/{risk_api → types/risk_api}/client/PostRiskApiClientV3.d.ts +0 -0
  1122. /package/lib/{risk_api → types/risk_api}/client/index.d.ts +0 -0
  1123. /package/lib/{risk_api → types/risk_api}/constants.d.ts +0 -0
  1124. /package/lib/{risk_api → types/risk_api}/index.d.ts +0 -0
  1125. /package/lib/{risk_api → types/risk_api}/model/RiskApiCallResult.d.ts +0 -0
  1126. /package/lib/{risk_api → types/risk_api}/model/RiskStatus.d.ts +0 -0
  1127. /package/lib/{risk_api → types/risk_api}/model/S2SErrorReason.d.ts +0 -0
  1128. /package/lib/{risk_api → types/risk_api}/model/index.d.ts +0 -0
  1129. /package/lib/{risk_api → types/risk_api}/risk_response/RiskResponsePayloadType.d.ts +0 -0
  1130. /package/lib/{risk_api → types/risk_api}/risk_response/index.d.ts +0 -0
  1131. /package/lib/{risk_api → types/risk_api}/risk_response/v2/index.d.ts +0 -0
  1132. /package/lib/{risk_api → types/risk_api}/risk_response/v3/DefaultRiskResponseV3.d.ts +0 -0
  1133. /package/lib/{risk_api → types/risk_api}/risk_response/v3/index.d.ts +0 -0
  1134. /package/lib/{risk_token → types/risk_token}/MobileError.d.ts +0 -0
  1135. /package/lib/{risk_token → types/risk_token}/TokenOrigin.d.ts +0 -0
  1136. /package/lib/{risk_token → types/risk_token}/TokenParseResult.d.ts +0 -0
  1137. /package/lib/{risk_token → types/risk_token}/TokenVersion.d.ts +0 -0
  1138. /package/lib/{risk_token → types/risk_token}/constants.d.ts +0 -0
  1139. /package/lib/{risk_token → types/risk_token}/index.d.ts +0 -0
  1140. /package/lib/{risk_token → types/risk_token}/parser/DefaultTokenV2Parser.d.ts +0 -0
  1141. /package/lib/{risk_token → types/risk_token}/parser/DefaultTokenV3Parser.d.ts +0 -0
  1142. /package/lib/{risk_token → types/risk_token}/parser/ITokenParser.d.ts +0 -0
  1143. /package/lib/{risk_token → types/risk_token}/parser/TokenParserBase.d.ts +0 -0
  1144. /package/lib/{risk_token → types/risk_token}/parser/TokenParserOptions.d.ts +0 -0
  1145. /package/lib/{risk_token → types/risk_token}/parser/index.d.ts +0 -0
  1146. /package/lib/{risk_token → types/risk_token}/token/IToken.d.ts +0 -0
  1147. /package/lib/{risk_token → types/risk_token}/token/TokenBase.d.ts +0 -0
  1148. /package/lib/{risk_token → types/risk_token}/token/TokenPayloadType.d.ts +0 -0
  1149. /package/lib/{risk_token → types/risk_token}/token/index.d.ts +0 -0
  1150. /package/lib/{risk_token → types/risk_token}/token/v2/DefaultTokenV2.d.ts +0 -0
  1151. /package/lib/{risk_token → types/risk_token}/token/v2/TokenV2Payload.d.ts +0 -0
  1152. /package/lib/{risk_token → types/risk_token}/token/v3/DefaultTokenV3.d.ts +0 -0
  1153. /package/lib/{risk_token → types/risk_token}/token/v3/TokenSignField.d.ts +0 -0
  1154. /package/lib/{risk_token → types/risk_token}/token/v3/TokenV3Payload.d.ts +0 -0
  1155. /package/lib/{risk_token → types/risk_token}/utils.d.ts +0 -0
  1156. /package/lib/{telemetry → types/telemetry}/DefaultTelemetry.d.ts +0 -0
  1157. /package/lib/{telemetry → types/telemetry}/ITelemetry.d.ts +0 -0
  1158. /package/lib/{telemetry → types/telemetry}/constants.d.ts +0 -0
  1159. /package/lib/{telemetry → types/telemetry}/index.d.ts +0 -0
  1160. /package/lib/{telemetry → types/telemetry}/model/TelemetryActivity.d.ts +0 -0
  1161. /package/lib/{utils → types/utils}/Algorithm.d.ts +0 -0
  1162. /package/lib/{utils → types/utils}/ModuleMode.d.ts +0 -0
  1163. /package/lib/{utils → types/utils}/VidSource.d.ts +0 -0
  1164. /package/lib/{utils → types/utils}/base64/IBase64Utils.d.ts +0 -0
  1165. /package/lib/{utils → types/utils}/cipher/ICipherUtils.d.ts +0 -0
  1166. /package/lib/{utils → types/utils}/cookie_parser/ICookieParser.d.ts +0 -0
  1167. /package/lib/{utils → types/utils}/cookie_parser/StringSplitCookieParser.d.ts +0 -0
  1168. /package/lib/{utils → types/utils}/cookie_parser/index.d.ts +0 -0
  1169. /package/lib/{utils → types/utils}/error/EnforcerError.d.ts +0 -0
  1170. /package/lib/{utils → types/utils}/error/EnforcerErrorName.d.ts +0 -0
  1171. /package/lib/{utils → types/utils}/error/EnforcerTimeoutError.d.ts +0 -0
  1172. /package/lib/{utils → types/utils}/error/index.d.ts +0 -0
  1173. /package/lib/{utils → types/utils}/hash/IHashUtils.d.ts +0 -0
  1174. /package/lib/{utils → types/utils}/hmac/IHmacUtils.d.ts +0 -0
  1175. /package/lib/{utils → types/utils}/index.d.ts +0 -0
  1176. /package/lib/{utils → types/utils}/ip_range_checker/IIpRangeChecker.d.ts +0 -0
  1177. /package/lib/{utils → types/utils}/request_id_generator/IRequestIdGenerator.d.ts +0 -0
  1178. /package/lib/{utils → types/utils}/url_parser/IURLParser.d.ts +0 -0
@@ -1,112 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { BlockAction } from '../../../blocker';
11
- import { Algorithm, isValidUuid } from '../../../utils';
12
- import { TokenBase } from '../TokenBase';
13
- export class DefaultTokenV2 extends TokenBase {
14
- constructor(config, cookieString, base64Utils, hmacUtils) {
15
- super(config, cookieString);
16
- this.base64Utils = base64Utils;
17
- this.hmacUtils = hmacUtils;
18
- this.isHighRisk = undefined;
19
- }
20
- decrypt(context) {
21
- try {
22
- const payload = this.decode(this.cookieString);
23
- if ((payload === null || payload === void 0 ? void 0 : payload.t) == null || (payload === null || payload === void 0 ? void 0 : payload.h) == null || (payload === null || payload === void 0 ? void 0 : payload.u) == null || (payload === null || payload === void 0 ? void 0 : payload.v) == null) {
24
- return null;
25
- }
26
- return payload;
27
- }
28
- catch (e) {
29
- this.logger.debug(`cookie v2 decryption failed: ${e}`);
30
- }
31
- return null;
32
- }
33
- validate(context) {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- if (typeof this.payload.t !== 'number' ||
36
- !isValidUuid(this.payload.v) ||
37
- !isValidUuid(this.payload.u) ||
38
- !this.payload.h) {
39
- return false;
40
- }
41
- try {
42
- const signingFields = this.getSigningFields(context);
43
- const passHmac = yield this.calculateHmac(this.getHashParam('0', signingFields));
44
- if (passHmac === this.payload.h) {
45
- this.isHighRisk = false;
46
- return true;
47
- }
48
- const blockHmac = yield this.calculateHmac(this.getHashParam('1', signingFields));
49
- if (blockHmac === this.payload.h) {
50
- this.isHighRisk = true;
51
- return true;
52
- }
53
- }
54
- catch (e) {
55
- this.logger.debug(`cookie v2 validation caught error: ${e}`);
56
- }
57
- return false;
58
- });
59
- }
60
- decode(cookieString) {
61
- const decodedCookie = this.base64Utils.base64Decode(cookieString);
62
- return JSON.parse(decodedCookie);
63
- }
64
- getSigningFields(context) {
65
- return context.isMobile ? '' : context.requestData.userAgent;
66
- }
67
- getHashParam(startingValue, signingFields) {
68
- let hashParam = startingValue;
69
- if (signingFields) {
70
- hashParam += signingFields;
71
- }
72
- return hashParam;
73
- }
74
- calculateHmac(param) {
75
- return __awaiter(this, void 0, void 0, function* () {
76
- const payload = `${this.payload.t}${this.payload.u}${this.payload.v}${param}`;
77
- return this.hmacUtils.createHmac(Algorithm.SHA256, payload, this.cookieSecret);
78
- });
79
- }
80
- isExpired() {
81
- var _a;
82
- return Date.now() > ((_a = this.payload) === null || _a === void 0 ? void 0 : _a.t);
83
- }
84
- isHighScore() {
85
- return this.isHighRisk;
86
- }
87
- get hmac() {
88
- var _a;
89
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.h;
90
- }
91
- get timestamp() {
92
- var _a;
93
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.t;
94
- }
95
- get uuid() {
96
- var _a;
97
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.u;
98
- }
99
- get vid() {
100
- var _a;
101
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.v;
102
- }
103
- get score() {
104
- if (this.isValid()) {
105
- return this.isHighScore() ? 100 : 0;
106
- }
107
- return undefined;
108
- }
109
- get action() {
110
- return BlockAction.CAPTCHA;
111
- }
112
- }
@@ -1,137 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { Algorithm } from '../../../utils';
11
- import { COOKIE_SPLIT_DELIMITER, COOKIE_V3_HMAC_INDEX, COOKIE_V3_ITERATIONS_INDEX, COOKIE_V3_MAXIMUM_SALT_LENGTH, COOKIE_V3_PARTS_COUNT, COOKIE_V3_PAYLOAD_INDEX, COOKIE_V3_SALT_INDEX, } from '../../constants';
12
- import { TokenSignField } from './TokenSignField';
13
- import { TokenBase } from '../TokenBase';
14
- export class DefaultTokenV3 extends TokenBase {
15
- constructor(config, cookieString, cipherUtils, hmacUtils) {
16
- super(config, cookieString);
17
- this.maxIterations = config.riskCookieMaxIterations;
18
- this.minIterations = config.riskCookieMinIterations;
19
- this.blockingScore = config.blockingScore;
20
- this.cookieString = cookieString;
21
- this.cipherUtils = cipherUtils;
22
- this.hmacUtils = hmacUtils;
23
- }
24
- decrypt(context) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- try {
27
- const data = this.cookieString.split(COOKIE_SPLIT_DELIMITER);
28
- if (data.length !== COOKIE_V3_PARTS_COUNT) {
29
- return null;
30
- }
31
- this.hash = data[COOKIE_V3_HMAC_INDEX];
32
- const salt = data[COOKIE_V3_SALT_INDEX];
33
- const iterations = parseInt
34
- ? parseInt(data[COOKIE_V3_ITERATIONS_INDEX])
35
- : Number(data[COOKIE_V3_ITERATIONS_INDEX]);
36
- const encryptedCookie = data[COOKIE_V3_PAYLOAD_INDEX];
37
- if (!iterations || iterations > this.maxIterations || iterations < this.minIterations) {
38
- return null;
39
- }
40
- if (!salt || typeof salt !== 'string' || salt.length > COOKIE_V3_MAXIMUM_SALT_LENGTH) {
41
- return null;
42
- }
43
- if (!encryptedCookie || typeof encryptedCookie !== 'string') {
44
- return null;
45
- }
46
- return yield this.decryptPayload(encryptedCookie, salt, iterations);
47
- }
48
- catch (e) {
49
- this.logger.debug(`cookie v3 decryption failed: ${e}`);
50
- }
51
- return null;
52
- });
53
- }
54
- decryptPayload(encryptedCookie, salt, iterations) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- try {
57
- const decryptedCookie = yield this.cipherUtils.pbkdf2Decrypt(this.cookieSecret, encryptedCookie, iterations, salt);
58
- if (!decryptedCookie) {
59
- return null;
60
- }
61
- return JSON.parse(decryptedCookie);
62
- }
63
- catch (e) {
64
- this.logger.debug(`error decrypting cookie v3: ${e}`);
65
- return null;
66
- }
67
- });
68
- }
69
- validate(context) {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- try {
72
- const signedFields = this.getSignedWithFields(context);
73
- const hmacStrBase = this.cookieString.substring(this.cookieString.indexOf(COOKIE_SPLIT_DELIMITER) + 1);
74
- const payload = `${hmacStrBase}${signedFields.join('')}`;
75
- const hash = this.hmacUtils.createHmac(Algorithm.SHA256, payload, this.cookieSecret);
76
- return hash === this.hmac;
77
- }
78
- catch (e) {
79
- this.logger.debug(`error validating cookie v3: ${e}`);
80
- return false;
81
- }
82
- });
83
- }
84
- getSignedWithFields(context) {
85
- var _a;
86
- if (context.isMobile) {
87
- return [];
88
- }
89
- else if ((_a = this.payload) === null || _a === void 0 ? void 0 : _a.x) {
90
- return this.payload.x.split('').map((char) => this.getSignedWithField(char, context));
91
- }
92
- else {
93
- return [context.requestData.userAgent];
94
- }
95
- }
96
- getSignedWithField(char, { requestData }) {
97
- switch (char) {
98
- case TokenSignField.SOCKET_IP:
99
- return requestData.ip;
100
- case TokenSignField.USER_AGENT:
101
- return requestData.userAgent;
102
- default:
103
- return '';
104
- }
105
- }
106
- isExpired() {
107
- var _a;
108
- return Date.now() > ((_a = this.payload) === null || _a === void 0 ? void 0 : _a.t);
109
- }
110
- isHighScore() {
111
- var _a;
112
- return ((_a = this.payload) === null || _a === void 0 ? void 0 : _a.s) >= this.blockingScore;
113
- }
114
- get timestamp() {
115
- var _a;
116
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.t;
117
- }
118
- get uuid() {
119
- var _a;
120
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.u;
121
- }
122
- get vid() {
123
- var _a;
124
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.v;
125
- }
126
- get score() {
127
- var _a;
128
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.s;
129
- }
130
- get action() {
131
- var _a;
132
- return (_a = this.payload) === null || _a === void 0 ? void 0 : _a.a;
133
- }
134
- get hmac() {
135
- return this.hash;
136
- }
137
- }
@@ -1,119 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { AUTHORIZATION_HEADER_NAME, CONTENT_TYPE_HEADER_NAME, ContentType, HttpMethod, OutgoingRequestImpl, } from '../http';
11
- import { ActivityType } from '../activities';
12
- import { getAuthorizationHeader, Algorithm, removeSensitiveFields, transferExistingProperties, } from '../utils';
13
- import { TELEMETRY_ENDPOINT, TELEMETRY_HEADER_DELIMITER, TELEMETRY_HEADER_HMAC_INDEX, TELEMETRY_HEADER_NAME, TELEMETRY_HEADER_PART_COUNT, TELEMETRY_HEADER_TIMESTAMP_INDEX, TELEMETRY_UPDATE_REASON, } from './constants';
14
- export class DefaultTelemetry {
15
- constructor(config, httpClient, base64Utils, hmacUtils) {
16
- this.config = config;
17
- this.httpClient = httpClient;
18
- this.base64Utils = base64Utils;
19
- this.hmacUtils = hmacUtils;
20
- }
21
- isValidTelemetryRequest(context) {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- try {
24
- const telemetryHeader = this.getTelemetryHeader(context);
25
- return !!telemetryHeader && (yield this.isTelemetryHeaderValid(telemetryHeader));
26
- }
27
- catch (e) {
28
- this.config.logger.debug(`error validating telemetry - ${e}`);
29
- return false;
30
- }
31
- });
32
- }
33
- sendTelemetry(context) {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- try {
36
- yield this.sendTelemetryActivity(context);
37
- }
38
- catch (e) {
39
- this.config.logger.debug(`error sending telemetry - ${e}`);
40
- }
41
- });
42
- }
43
- getTelemetryHeader(context) {
44
- return context.requestData.request.headers.get(TELEMETRY_HEADER_NAME) || '';
45
- }
46
- isTelemetryHeaderValid(headerValue) {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- this.config.logger.debug('received command to send enforcer telemetry');
49
- const decodedValue = this.base64Utils.base64Decode(headerValue);
50
- const splitValue = decodedValue.split(TELEMETRY_HEADER_DELIMITER);
51
- if (splitValue.length !== TELEMETRY_HEADER_PART_COUNT) {
52
- this.config.logger.debug(`malformed ${TELEMETRY_HEADER_NAME} header: ${decodedValue}`);
53
- return false;
54
- }
55
- const timestamp = splitValue[TELEMETRY_HEADER_TIMESTAMP_INDEX];
56
- const givenHmac = splitValue[TELEMETRY_HEADER_HMAC_INDEX];
57
- if (!this.isTelemetryHmacValid(givenHmac, timestamp)) {
58
- this.config.logger.debug(`${TELEMETRY_HEADER_NAME} hmac validation failed. original hmac: ${givenHmac}, timestamp: ${timestamp}.`);
59
- return false;
60
- }
61
- const curUnixTime = +new Date();
62
- const timestampNumber = parseInt ? parseInt(timestamp) : Number(timestamp);
63
- if (isNaN(timestampNumber) || timestampNumber < curUnixTime) {
64
- this.config.logger.debug(`${TELEMETRY_HEADER_NAME} timestamp expired: ${timestamp} < ${curUnixTime}`);
65
- return false;
66
- }
67
- return true;
68
- });
69
- }
70
- isTelemetryHmacValid(givenHmac, timestamp) {
71
- try {
72
- return givenHmac === this.hmacUtils.createHmac(Algorithm.SHA256, timestamp, this.config.cookieSecret);
73
- }
74
- catch (e) {
75
- this.config.logger.debug(`caught error validating telemetry hmac: ${e}`);
76
- return false;
77
- }
78
- }
79
- sendTelemetryActivity(context) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- const telemetryRequest = this.createTelemetryRequest(context);
82
- this.config.logger.debug(`sending telemetry to ${telemetryRequest.url}`);
83
- yield this.httpClient.send(telemetryRequest);
84
- });
85
- }
86
- createTelemetryRequest(context) {
87
- const url = `${this.config.backendScoreApiUrl}${TELEMETRY_ENDPOINT}`;
88
- const method = HttpMethod.POST;
89
- const headers = {
90
- [CONTENT_TYPE_HEADER_NAME]: [ContentType.APPLICATION_JSON],
91
- [AUTHORIZATION_HEADER_NAME]: [getAuthorizationHeader(this.config.authToken)],
92
- };
93
- const activity = this.createTelemetryActivity(context);
94
- return new OutgoingRequestImpl({ url: url, method: method, headers: headers, body: JSON.stringify(activity) });
95
- }
96
- createTelemetryActivity(context) {
97
- const SENSITIVE_CONFIG_FIELDS = [
98
- 'px_auth_token',
99
- 'px_cookie_secret',
100
- ];
101
- let config = this.config.toParams();
102
- config = removeSensitiveFields(config, SENSITIVE_CONFIG_FIELDS);
103
- const activity = {
104
- type: ActivityType.ENFORCER_TELEMETRY,
105
- timestamp: Date.now(),
106
- px_app_id: this.config.appId,
107
- details: {
108
- update_reason: TELEMETRY_UPDATE_REASON,
109
- module_version: this.config.moduleVersion,
110
- enforcer_configs: config,
111
- },
112
- };
113
- transferExistingProperties(context.serverData, activity.details, {
114
- osName: 'os_name',
115
- nodeName: 'node_name',
116
- });
117
- return activity;
118
- }
119
- }
@@ -1,5 +0,0 @@
1
- import { IBase64Utils } from './IBase64Utils';
2
- export declare class AtobBase64Utils implements IBase64Utils {
3
- base64Decode(stringToDecode: string): string;
4
- base64Encode(stringToEncode: string): string;
5
- }
@@ -1,6 +0,0 @@
1
- import { IBase64Utils } from './IBase64Utils';
2
- export declare class BufferBase64Utils implements IBase64Utils {
3
- static BASE_64_ENCODING: 'base64';
4
- base64Decode(stringToDecode: string): string;
5
- base64Encode(stringToEncode: string): string;
6
- }
@@ -1,11 +0,0 @@
1
- export class BufferBase64Utils {
2
- base64Decode(stringToDecode) {
3
- const buffer = Buffer.from(stringToDecode, BufferBase64Utils.BASE_64_ENCODING);
4
- return buffer.toString('utf8');
5
- }
6
- base64Encode(stringToEncode) {
7
- const buffer = Buffer.from(stringToEncode, 'utf8');
8
- return buffer.toString(BufferBase64Utils.BASE_64_ENCODING);
9
- }
10
- }
11
- BufferBase64Utils.BASE_64_ENCODING = 'base64';
@@ -1,5 +0,0 @@
1
- import { IBase64Utils } from './IBase64Utils';
2
- export declare class JSBase64Base64Utils implements IBase64Utils {
3
- base64Encode(stringToEncode: string): string;
4
- base64Decode(stringToDecode: string): string;
5
- }
@@ -1,4 +0,0 @@
1
- export * from './IBase64Utils';
2
- export * from './JSBase64Base64Utils';
3
- export * from './BufferBase64Utils';
4
- export * from './AtobBase64Utils';
@@ -1,4 +0,0 @@
1
- export * from './IBase64Utils';
2
- export * from './JSBase64Base64Utils';
3
- export * from './BufferBase64Utils';
4
- export * from './AtobBase64Utils';
@@ -1,10 +0,0 @@
1
- /// <reference types="node" />
2
- import * as crypto from 'crypto';
3
- import { ICipherUtils, Pbkdf2DecryptOptions } from './ICipherUtils';
4
- declare type CryptoModule = typeof crypto;
5
- export declare class CryptoCipherUtils implements ICipherUtils {
6
- private crypto;
7
- constructor(cryptoModule?: CryptoModule);
8
- pbkdf2Decrypt(secret: string, encryptedString: string, iterations: number, salt: string, options?: Pbkdf2DecryptOptions): Promise<string>;
9
- }
10
- export {};
@@ -1,28 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import * as crypto from 'crypto';
11
- export class CryptoCipherUtils {
12
- constructor(cryptoModule = crypto) {
13
- this.crypto = cryptoModule;
14
- }
15
- pbkdf2Decrypt(secret, encryptedString, iterations, salt, options) {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- const keylen = (options === null || options === void 0 ? void 0 : options.keylen) || 32;
18
- const ivlen = (options === null || options === void 0 ? void 0 : options.ivlen) || 16;
19
- const derivation = this.crypto.pbkdf2Sync(secret, Buffer.from(salt, 'base64'), iterations, keylen + ivlen, 'sha256');
20
- const key = derivation.subarray(0, keylen);
21
- const iv = derivation.subarray(keylen);
22
- const cipher = this.crypto.createDecipheriv('aes-256-cbc', key, iv);
23
- let decrypted = cipher.update(encryptedString, 'base64', 'utf8');
24
- decrypted += cipher.final('utf8');
25
- return decrypted;
26
- });
27
- }
28
- }
@@ -1,9 +0,0 @@
1
- import { IBase64Utils } from '../base64';
2
- import { ICipherUtils, Pbkdf2DecryptOptions } from './ICipherUtils';
3
- export declare class SubtleCryptoCipherUtils implements ICipherUtils {
4
- private base64Utils;
5
- private subtleCrypto;
6
- constructor(base64Utils: IBase64Utils, subtleCrypto?: SubtleCrypto);
7
- pbkdf2Decrypt(secret: string, encryptedString: string, iterations: number, salt: string, options?: Pbkdf2DecryptOptions): Promise<string>;
8
- private base64ToArrayBuffer;
9
- }
@@ -1,47 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- export class SubtleCryptoCipherUtils {
11
- constructor(base64Utils, subtleCrypto = crypto.subtle) {
12
- this.subtleCrypto = subtleCrypto;
13
- this.base64Utils = base64Utils;
14
- }
15
- pbkdf2Decrypt(secret, encryptedString, iterations, salt, options) {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- const ivlen = (options === null || options === void 0 ? void 0 : options.ivlen) || 16;
18
- const keylen = (options === null || options === void 0 ? void 0 : options.keylen) || 32;
19
- const bitsLength = (ivlen + keylen) * 8;
20
- const encodedPassword = new TextEncoder().encode(secret);
21
- const encodedSalt = this.base64ToArrayBuffer(salt);
22
- const importedKey = yield this.subtleCrypto.importKey('raw', encodedPassword, 'PBKDF2', false, ['deriveBits']);
23
- const params = { name: 'PBKDF2', hash: 'SHA-256', salt: encodedSalt, iterations: iterations };
24
- const derivation = yield this.subtleCrypto.deriveBits(params, importedKey, bitsLength);
25
- const derivedKey = derivation.slice(0, keylen);
26
- const iv = derivation.slice(keylen);
27
- const cookieBuffer = this.base64ToArrayBuffer(encryptedString);
28
- const importedDecryptionKey = yield this.subtleCrypto.importKey('raw', derivedKey, { name: 'AES-CBC' }, false, [
29
- 'decrypt',
30
- ]);
31
- const decrypted = yield this.subtleCrypto.decrypt({
32
- name: 'AES-CBC',
33
- iv: iv,
34
- }, importedDecryptionKey, cookieBuffer);
35
- return new TextDecoder('utf-8').decode(decrypted);
36
- });
37
- }
38
- base64ToArrayBuffer(base64String) {
39
- const binaryString = this.base64Utils.base64Decode(base64String);
40
- const length = binaryString.length;
41
- const bytes = new Uint8Array(length);
42
- binaryString.split('').forEach((char, index) => {
43
- bytes[index] = char.charCodeAt(0);
44
- });
45
- return bytes.buffer;
46
- }
47
- }
@@ -1,3 +0,0 @@
1
- export { ICipherUtils, Pbkdf2DecryptOptions } from './ICipherUtils';
2
- export * from './SubtleCryptoCipherUtils';
3
- export * from './CryptoCipherUtils';
@@ -1,2 +0,0 @@
1
- export * from './SubtleCryptoCipherUtils';
2
- export * from './CryptoCipherUtils';
@@ -1,11 +0,0 @@
1
- export declare const PXVID_COOKIE_NAME = "_pxvid";
2
- export declare const PXHD_COOKIE_NAME = "_pxhd";
3
- export declare const PXDE_COOKIE_NAME = "_pxde";
4
- export declare const CD_PXVID_COOKIE_NAME = "__pxvid";
5
- export declare const CTS_COOKIE_NAME = "pxcts";
6
- export declare const BYPASS_MONITOR_HEADER_VALUE = "1";
7
- export declare const X_PX_AUTHORIZATION_HEADER_NAME = "x-px-authorization";
8
- export declare const X_PX_ORIGINAL_TOKEN_HEADER_NAME = "x-px-original-token";
9
- export declare const X_PX_BYPASS_REASON_HEADER_NAME = "x-px-bypass-reason";
10
- export declare const EMAIL_ADDRESS_REGEX: RegExp;
11
- export declare const CORE_MODULE_VERSION = "JS Core 0.7.1";
@@ -1,11 +0,0 @@
1
- export const PXVID_COOKIE_NAME = '_pxvid';
2
- export const PXHD_COOKIE_NAME = '_pxhd';
3
- export const PXDE_COOKIE_NAME = '_pxde';
4
- export const CD_PXVID_COOKIE_NAME = '__pxvid';
5
- export const CTS_COOKIE_NAME = 'pxcts';
6
- export const BYPASS_MONITOR_HEADER_VALUE = '1';
7
- export const X_PX_AUTHORIZATION_HEADER_NAME = 'x-px-authorization';
8
- export const X_PX_ORIGINAL_TOKEN_HEADER_NAME = 'x-px-original-token';
9
- export const X_PX_BYPASS_REASON_HEADER_NAME = 'x-px-bypass-reason';
10
- export const EMAIL_ADDRESS_REGEX = /^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/;
11
- export const CORE_MODULE_VERSION = 'JS Core 0.7.1';
@@ -1,11 +0,0 @@
1
- /// <reference types="node" />
2
- import * as crypto from 'crypto';
3
- import { IHashUtils } from './IHashUtils';
4
- import { Algorithm } from '../Algorithm';
5
- declare type CryptoModule = typeof crypto;
6
- export declare class CryptoHashUtils implements IHashUtils {
7
- private readonly crypto;
8
- constructor(cryptoModule?: CryptoModule);
9
- hashString(text: string, algo: Algorithm): Promise<string>;
10
- }
11
- export {};
@@ -1,20 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import * as crypto from 'crypto';
11
- export class CryptoHashUtils {
12
- constructor(cryptoModule = crypto) {
13
- this.crypto = cryptoModule;
14
- }
15
- hashString(text, algo) {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- return this.crypto.createHash(algo).update(text).digest('hex');
18
- });
19
- }
20
- }
@@ -1,5 +0,0 @@
1
- import { IHashUtils } from './IHashUtils';
2
- import { Algorithm } from '../Algorithm';
3
- export declare class CryptoJSHashUtils implements IHashUtils {
4
- hashString(text: string, algo: Algorithm): string;
5
- }
@@ -1,12 +0,0 @@
1
- import cryptoJs from 'crypto-js';
2
- import { Algorithm } from '../Algorithm';
3
- export class CryptoJSHashUtils {
4
- hashString(text, algo) {
5
- switch (algo) {
6
- case Algorithm.SHA256:
7
- return cryptoJs.SHA256(text).toString(cryptoJs.enc.Hex);
8
- default:
9
- return null;
10
- }
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import { Algorithm } from '../Algorithm';
2
- import { IHashUtils } from './IHashUtils';
3
- export declare class SubtleCryptoHashUtils implements IHashUtils {
4
- private readonly subtle;
5
- constructor(subtleCrypto?: SubtleCrypto);
6
- hashString(text: string, algo: Algorithm): Promise<string>;
7
- private convertAlgo;
8
- }
@@ -1,31 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import * as crypto from 'crypto';
11
- import { Algorithm } from '../Algorithm';
12
- export class SubtleCryptoHashUtils {
13
- constructor(subtleCrypto = crypto.subtle) {
14
- this.subtle = subtleCrypto;
15
- }
16
- hashString(text, algo) {
17
- return __awaiter(this, void 0, void 0, function* () {
18
- const textUint8 = new TextEncoder().encode(text);
19
- const hashBuffer = yield this.subtle.digest(this.convertAlgo(algo), textUint8);
20
- const hashArray = Array.from(new Uint8Array(hashBuffer));
21
- return hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
22
- });
23
- }
24
- convertAlgo(algo) {
25
- switch (algo) {
26
- case Algorithm.SHA256:
27
- default:
28
- return 'SHA-256';
29
- }
30
- }
31
- }
@@ -1,4 +0,0 @@
1
- export * from './IHashUtils';
2
- export * from './SubtleCryptoHashUtils';
3
- export * from './CryptoHashUtils';
4
- export * from './CryptoJSHashUtils';
@@ -1,4 +0,0 @@
1
- export * from './IHashUtils';
2
- export * from './SubtleCryptoHashUtils';
3
- export * from './CryptoHashUtils';
4
- export * from './CryptoJSHashUtils';