perimeterx-js-core 0.8.0 → 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.
- package/lib/cjs/action/Action.js +10 -0
- package/lib/cjs/action/ActionData.js +2 -0
- package/lib/cjs/action/ActionPriorityOrder.js +10 -0
- package/lib/cjs/action/Decision.js +2 -0
- package/lib/cjs/action/ProductAction.js +2 -0
- package/lib/cjs/action/index.js +22 -0
- package/lib/cjs/action/utils.js +48 -0
- package/lib/cjs/activities/ActivityType.js +10 -0
- package/lib/cjs/activities/HttpActivityClient.js +121 -0
- package/lib/cjs/activities/HttpBatchedActivityClient.js +137 -0
- package/lib/cjs/activities/IActivityClient.js +2 -0
- package/lib/cjs/activities/constants.js +4 -0
- package/lib/cjs/activities/index.js +23 -0
- package/lib/cjs/activities/model/AsyncActivity.js +2 -0
- package/lib/cjs/activities/model/AsyncActivityDetails.js +2 -0
- package/lib/cjs/activities/model/CommonActivityDetails.js +2 -0
- package/lib/cjs/activities/model/HeaderEntry.js +2 -0
- package/lib/cjs/activities/model/index.js +20 -0
- package/lib/cjs/activities/utils.js +220 -0
- package/lib/cjs/additional_activity_handler/AdditionalActivityHandler.js +2 -0
- package/lib/cjs/additional_activity_handler/AdditionalActivityHandlerUtils.js +65 -0
- package/lib/cjs/additional_activity_handler/index.js +18 -0
- package/lib/cjs/blocker/BlockAction.js +9 -0
- package/lib/cjs/blocker/BlockActionToProductMap.js +10 -0
- package/lib/cjs/blocker/BlockActionToWordMap.js +9 -0
- package/lib/cjs/blocker/IBlocker.js +2 -0
- package/lib/cjs/blocker/IConditionalBlocker.js +2 -0
- package/lib/cjs/blocker/index.js +21 -0
- package/lib/cjs/config/ConfigurationParams.js +2 -0
- package/lib/cjs/config/DefaultConfigurations.js +121 -0
- package/lib/cjs/config/IConfiguration.js +2 -0
- package/lib/cjs/config/StaticConfigurationBase.js +583 -0
- package/lib/cjs/config/index.js +7 -0
- package/lib/cjs/context/DefaultContext.js +111 -0
- package/lib/cjs/context/index.js +18 -0
- package/lib/cjs/context/interfaces/IContext.js +2 -0
- package/lib/cjs/context/interfaces/MobileData.js +2 -0
- package/lib/cjs/context/interfaces/ReadonlyContext.js +2 -0
- package/lib/cjs/context/interfaces/RequestData.js +2 -0
- package/lib/cjs/context/interfaces/RiskApiData.js +2 -0
- package/lib/cjs/context/interfaces/ServerData.js +2 -0
- package/lib/cjs/context/interfaces/TlsData.js +2 -0
- package/lib/cjs/context/interfaces/TokenData.js +2 -0
- package/lib/cjs/context/interfaces/index.js +24 -0
- package/lib/cjs/cors/CustomBlockResponseHeadersHandler.js +2 -0
- package/lib/cjs/cors/CustomPreflightHandler.js +2 -0
- package/lib/cjs/cors/DefaultCors.js +107 -0
- package/lib/cjs/cors/ICors.js +2 -0
- package/lib/cjs/cors/constants.js +5 -0
- package/lib/cjs/cors/index.js +20 -0
- package/lib/cjs/custom_parameters/CustomParameters.js +2 -0
- package/lib/cjs/custom_parameters/CustomParametersFunction.js +2 -0
- package/lib/cjs/custom_parameters/CustomParametersUtils.js +77 -0
- package/lib/cjs/custom_parameters/index.js +5 -0
- package/lib/cjs/enforcer/EnforcerBase.js +282 -0
- package/lib/cjs/enforcer/IEnforcer.js +2 -0
- package/lib/cjs/enforcer/index.js +20 -0
- package/lib/cjs/enforcer/options/EnforcerBaseOptions.js +2 -0
- package/lib/cjs/enforcer/options/EnforcerOptionsType.js +2 -0
- package/lib/cjs/enforcer/options/EnforcerV2Options.js +2 -0
- package/lib/cjs/enforcer/options/EnforcerV3Options.js +2 -0
- package/lib/cjs/enforcer/options/index.js +20 -0
- package/lib/cjs/filter/FilterReason.js +14 -0
- package/lib/cjs/filter/IFilter.js +2 -0
- package/lib/cjs/filter/index.js +18 -0
- package/lib/cjs/first_party/FirstPartyData.js +2 -0
- package/lib/cjs/first_party/IFirstParty.js +2 -0
- package/lib/cjs/first_party/index.js +18 -0
- package/lib/cjs/graphql/DefaultGraphQLParser.js +181 -0
- package/lib/cjs/graphql/IGraphQLParser.js +2 -0
- package/lib/cjs/graphql/index.js +19 -0
- package/lib/cjs/graphql/model/GraphQLData.js +2 -0
- package/lib/cjs/graphql/model/GraphQLOperation.js +2 -0
- package/lib/cjs/graphql/model/GraphQLOperationType.js +9 -0
- package/lib/cjs/graphql/model/index.js +19 -0
- package/lib/cjs/http/index.js +18 -0
- package/lib/cjs/http/interfaces/IBody.js +2 -0
- package/lib/cjs/http/interfaces/IFormData.js +2 -0
- package/lib/cjs/http/interfaces/IHeaders.js +2 -0
- package/lib/cjs/http/interfaces/IHttpClient.js +2 -0
- package/lib/cjs/http/interfaces/IIncomingRequest.js +2 -0
- package/lib/cjs/http/interfaces/IIncomingResponse.js +2 -0
- package/lib/cjs/http/interfaces/IMinimalResponse.js +2 -0
- package/lib/cjs/http/interfaces/IOutgoingRequest.js +2 -0
- package/lib/cjs/http/interfaces/IOutgoingResponse.js +2 -0
- package/lib/cjs/http/interfaces/IURL.js +2 -0
- package/lib/cjs/http/interfaces/IURLSearchParams.js +2 -0
- package/lib/cjs/http/interfaces/ReadonlyHeaders.js +26 -0
- package/lib/cjs/http/interfaces/index.js +28 -0
- package/lib/cjs/http/utils/ContentType.js +13 -0
- package/lib/cjs/http/utils/FormDataImpl.js +43 -0
- package/lib/cjs/http/utils/HttpMethod.js +15 -0
- package/lib/cjs/http/utils/MinimalResponseImpl.js +12 -0
- package/lib/cjs/http/utils/MinimalResponseUtils.js +49 -0
- package/lib/cjs/http/utils/MultipartFormDataUtils.js +49 -0
- package/lib/cjs/http/utils/OutgoingRequestImpl.js +14 -0
- package/lib/cjs/http/utils/URLUtils.js +65 -0
- package/lib/cjs/http/utils/UrlImpl.js +73 -0
- package/lib/cjs/http/utils/UrlSearchParamsImpl.js +126 -0
- package/lib/cjs/http/utils/constants.js +12 -0
- package/lib/cjs/http/utils/index.js +27 -0
- package/lib/cjs/impl/base64/AtobBase64Utils.js +15 -0
- package/lib/cjs/impl/base64/BufferBase64Utils.js +17 -0
- package/lib/cjs/impl/base64/JSBase64Base64Utils.js +16 -0
- package/lib/cjs/impl/cipher/CryptoCipherUtils.js +87 -0
- package/lib/cjs/impl/cipher/SubtleCryptoCipherUtils.js +94 -0
- package/lib/cjs/impl/hash/CryptoHashUtils.js +78 -0
- package/lib/cjs/impl/hash/CryptoJSHashUtils.js +22 -0
- package/lib/cjs/impl/hash/SubtleCryptoHashUtils.js +95 -0
- package/lib/cjs/impl/hmac/CryptoHmacUtils.js +48 -0
- package/lib/cjs/impl/hmac/CryptoJSHmacUtils.js +22 -0
- package/lib/cjs/impl/http/phin/PhinHttpClient.js +84 -0
- package/lib/cjs/impl/http/phin/PhinIncomingResponse.js +99 -0
- package/lib/cjs/impl/http/phin/index.js +18 -0
- package/lib/cjs/impl/ip_range_checker/DefaultIpRangeChecker.js +16 -0
- package/lib/cjs/impl/request_id_generator/UuidRequestIdGenerator.js +13 -0
- package/lib/cjs/impl/url_parser/DefaultUrlParser.js +39 -0
- package/lib/cjs/index.js +38 -0
- package/lib/cjs/logger/DefaultLogger.js +31 -0
- package/lib/cjs/logger/HttpLogServiceClient.js +123 -0
- package/lib/cjs/logger/ILogServiceClient.js +2 -0
- package/lib/cjs/logger/ILogger.js +2 -0
- package/lib/cjs/logger/LoggerBase.js +48 -0
- package/lib/cjs/logger/LoggerSeverity.js +9 -0
- package/lib/cjs/logger/constants.js +5 -0
- package/lib/cjs/logger/index.js +27 -0
- package/lib/cjs/logger/model/EnrichedLogRecord.js +2 -0
- package/lib/cjs/logger/model/LogMetadata.js +2 -0
- package/lib/cjs/logger/model/LogRecord.js +2 -0
- package/lib/cjs/logger/model/index.js +19 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/phase/IPhase.js +2 -0
- package/lib/cjs/phase/PhaseResult.js +2 -0
- package/lib/cjs/phase/flow/EndEnforcerFlow.js +32 -0
- package/lib/cjs/phase/flow/EnforceFlow.js +38 -0
- package/lib/cjs/phase/flow/FilterFlow.js +34 -0
- package/lib/cjs/phase/flow/PostEnforceFlow.js +32 -0
- package/lib/cjs/phase/flow/index.js +20 -0
- package/lib/cjs/phase/impl/AdditionalActivityHandlerPhase.js +59 -0
- package/lib/cjs/phase/impl/CompositePhase.js +72 -0
- package/lib/cjs/phase/impl/CreateBlockResponsePhase.js +110 -0
- package/lib/cjs/phase/impl/DecideActionPhase.js +68 -0
- package/lib/cjs/phase/impl/EnrichContextFromRequestPhase.js +175 -0
- package/lib/cjs/phase/impl/EnrichContextFromResponsePhase.js +95 -0
- package/lib/cjs/phase/impl/FilterPhase.js +53 -0
- package/lib/cjs/phase/impl/FirstPartyPhase.js +100 -0
- package/lib/cjs/phase/impl/ModifyIncomingRequestPhase.js +58 -0
- package/lib/cjs/phase/impl/ModifyOutgoingResponsePhase.js +63 -0
- package/lib/cjs/phase/impl/ParseTokenPhase.js +76 -0
- package/lib/cjs/phase/impl/PreflightPhase.js +68 -0
- package/lib/cjs/phase/impl/RiskApiPhase.js +179 -0
- package/lib/cjs/phase/impl/SendAsyncActivitiesOnRequestPhase.js +74 -0
- package/lib/cjs/phase/impl/SendAsyncActivitiesOnResponsePhase.js +58 -0
- package/lib/cjs/phase/impl/SendLogsPhase.js +66 -0
- package/lib/cjs/phase/impl/TelemetryPhase.js +75 -0
- package/lib/cjs/phase/impl/index.js +33 -0
- package/lib/cjs/phase/index.js +20 -0
- package/lib/cjs/products/account_defender/AccountDefender.js +161 -0
- package/lib/cjs/products/account_defender/AccountDefenderData.js +2 -0
- package/lib/cjs/products/account_defender/IAccountDefender.js +2 -0
- package/lib/cjs/products/account_defender/JwtData.js +2 -0
- package/lib/cjs/products/account_defender/constants.js +4 -0
- package/lib/cjs/products/account_defender/index.js +21 -0
- package/lib/cjs/products/bot_defender/BotDefender.js +208 -0
- package/lib/cjs/products/bot_defender/BotDefenderActionData.js +11 -0
- package/lib/cjs/products/bot_defender/BotDefenderData.js +2 -0
- package/lib/cjs/products/bot_defender/BotDefenderUtils.js +22 -0
- package/lib/cjs/products/bot_defender/IBotDefender.js +2 -0
- package/lib/cjs/products/bot_defender/block/DefaultBotDefenderBlocker.js +46 -0
- package/lib/cjs/products/bot_defender/block/captcha/CaptchaBlocker.js +25 -0
- package/lib/cjs/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +26 -0
- package/lib/cjs/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +42 -0
- package/lib/cjs/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +40 -0
- package/lib/cjs/products/bot_defender/block/captcha/index.js +20 -0
- package/lib/cjs/products/bot_defender/block/index.js +21 -0
- package/lib/cjs/products/bot_defender/block/model/BlockData.js +2 -0
- package/lib/cjs/products/bot_defender/block/model/JsonBlockPayload.js +2 -0
- package/lib/cjs/products/bot_defender/block/model/MobileBlockPayload.js +2 -0
- package/lib/cjs/products/bot_defender/block/model/index.js +19 -0
- package/lib/cjs/products/bot_defender/block/templates/captcha_template.js +4 -0
- package/lib/cjs/products/bot_defender/block/templates/index.js +18 -0
- package/lib/cjs/products/bot_defender/block/templates/rate_limit_template.js +4 -0
- package/lib/cjs/products/bot_defender/block/utils.js +50 -0
- package/lib/cjs/products/bot_defender/filter/DefaultBotDefenderFilter.js +61 -0
- package/lib/cjs/products/bot_defender/filter/index.js +17 -0
- package/lib/cjs/products/bot_defender/first_party/DefaultBotDefenderFirstParty.js +201 -0
- package/lib/cjs/products/bot_defender/first_party/FirstPartySuffix.js +9 -0
- package/lib/cjs/products/bot_defender/first_party/constants.js +33 -0
- package/lib/cjs/products/bot_defender/first_party/index.js +20 -0
- package/lib/cjs/products/bot_defender/first_party/utils.js +58 -0
- package/lib/cjs/products/bot_defender/index.js +25 -0
- package/lib/cjs/products/bot_defender/reasons/BotDefenderBlockReason.js +8 -0
- package/lib/cjs/products/bot_defender/reasons/BotDefenderPassReason.js +10 -0
- package/lib/cjs/products/bot_defender/reasons/BotDefenderReasonType.js +2 -0
- package/lib/cjs/products/bot_defender/reasons/BotDefenderS2SCallReason.js +16 -0
- package/lib/cjs/products/bot_defender/reasons/index.js +20 -0
- package/lib/cjs/products/credential_intelligence/CredentialIntelligence.js +171 -0
- package/lib/cjs/products/credential_intelligence/ICredentialIntelligence.js +2 -0
- package/lib/cjs/products/credential_intelligence/constants.js +7 -0
- package/lib/cjs/products/credential_intelligence/endpoint/CredentialEndpoint.js +79 -0
- package/lib/cjs/products/credential_intelligence/endpoint/CredentialEndpointConfiguration.js +2 -0
- package/lib/cjs/products/credential_intelligence/endpoint/CredentialEndpointManager.js +78 -0
- package/lib/cjs/products/credential_intelligence/endpoint/ICredentialEndpoint.js +2 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.js +124 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.js +28 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/CustomCredentialExtractor.js +63 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/HeaderCredentialExtractor.js +16 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/ICredentialExtractor.js +2 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.js +62 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/SentThrough.js +10 -0
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/index.js +21 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.js +24 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceVersion.js +9 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/ICredentialIntelligenceHashProtocol.js +2 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.js +78 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/SingleStepAndMultistepHashProtocol.js +60 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.js +100 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/SsoStep.js +8 -0
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/index.js +23 -0
- package/lib/cjs/products/credential_intelligence/endpoint/index.js +24 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/BodyLoginSuccessfulParser.js +54 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulCallback.js +2 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulParser.js +66 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.js +57 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/ILoginSuccessfulParser.js +2 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.js +33 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulReportingMethod.js +10 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/StatusLoginSuccessfulParser.js +53 -0
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/index.js +24 -0
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.js +22 -0
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/ExactPathEndpointMatcher.js +15 -0
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/ICredentialIntelligenceEndpointMatcher.js +2 -0
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/PathType.js +8 -0
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/RegexPathEndpointMatcher.js +15 -0
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/index.js +21 -0
- package/lib/cjs/products/credential_intelligence/index.js +21 -0
- package/lib/cjs/products/credential_intelligence/model/CredentialData.js +2 -0
- package/lib/cjs/products/credential_intelligence/model/CredentialIntelligenceData.js +2 -0
- package/lib/cjs/products/credential_intelligence/model/Credentials.js +2 -0
- package/lib/cjs/products/credential_intelligence/model/CustomExtractionCallback.js +2 -0
- package/lib/cjs/products/credential_intelligence/model/index.js +20 -0
- package/lib/cjs/products/index.js +21 -0
- package/lib/cjs/products/interfaces/IProduct.js +2 -0
- package/lib/cjs/products/interfaces/ProductData.js +2 -0
- package/lib/cjs/products/interfaces/ProductDataType.js +2 -0
- package/lib/cjs/products/interfaces/ProductType.js +2 -0
- package/lib/cjs/products/interfaces/Products.js +2 -0
- package/lib/cjs/products/interfaces/index.js +21 -0
- package/lib/cjs/products/utils/ProductName.js +11 -0
- package/lib/cjs/products/utils/ProductPriorityOrder.js +11 -0
- package/lib/cjs/products/utils/index.js +19 -0
- package/lib/cjs/products/utils/utils.js +18 -0
- package/lib/cjs/pxde/DefaultDataEnrichment.js +130 -0
- package/lib/cjs/pxde/IDataEnrichment.js +2 -0
- package/lib/cjs/pxde/constants.js +7 -0
- package/lib/cjs/pxde/index.js +20 -0
- package/lib/cjs/pxde/model/PXDE.js +2 -0
- package/lib/cjs/pxde/model/PxdeData.js +2 -0
- package/lib/cjs/pxde/model/index.js +18 -0
- package/lib/cjs/pxhd/PXHDUtils.js +31 -0
- package/lib/cjs/pxhd/index.js +20 -0
- package/lib/cjs/pxhd/model/PXHD.js +2 -0
- package/lib/cjs/pxhd/model/PXHDSource.js +8 -0
- package/lib/cjs/pxhd/model/index.js +18 -0
- package/lib/cjs/risk_api/client/IRiskApiClient.js +2 -0
- package/lib/cjs/risk_api/client/PostRiskApiClientBase.js +232 -0
- package/lib/cjs/risk_api/client/PostRiskApiClientV2.js +31 -0
- package/lib/cjs/risk_api/client/PostRiskApiClientV3.js +31 -0
- package/lib/cjs/risk_api/client/index.js +20 -0
- package/lib/cjs/risk_api/constants.js +4 -0
- package/lib/cjs/risk_api/index.js +20 -0
- package/lib/cjs/risk_api/model/RiskActivity.js +2 -0
- package/lib/cjs/risk_api/model/RiskApiCallResult.js +10 -0
- package/lib/cjs/risk_api/model/RiskStatus.js +8 -0
- package/lib/cjs/risk_api/model/S2SErrorReason.js +12 -0
- package/lib/cjs/risk_api/model/index.js +20 -0
- package/lib/cjs/risk_api/risk_response/IRiskResponse.js +2 -0
- package/lib/cjs/risk_api/risk_response/RiskResponseBase.js +131 -0
- package/lib/cjs/risk_api/risk_response/RiskResponsePayloadType.js +2 -0
- package/lib/cjs/risk_api/risk_response/index.js +20 -0
- package/lib/cjs/risk_api/risk_response/v2/DefaultRiskResponseV2.js +43 -0
- package/lib/cjs/risk_api/risk_response/v2/RiskResponseV2Payload.js +2 -0
- package/lib/cjs/risk_api/risk_response/v2/index.js +18 -0
- package/lib/cjs/risk_api/risk_response/v3/DefaultRiskResponseV3.js +39 -0
- package/lib/cjs/risk_api/risk_response/v3/RiskResponseV3Payload.js +2 -0
- package/lib/cjs/risk_api/risk_response/v3/index.js +18 -0
- package/lib/cjs/risk_token/MobileError.js +10 -0
- package/lib/cjs/risk_token/TokenOrigin.js +8 -0
- package/lib/cjs/risk_token/TokenParseResult.js +10 -0
- package/lib/cjs/risk_token/TokenVersion.js +8 -0
- package/lib/cjs/risk_token/constants.js +12 -0
- package/lib/cjs/risk_token/index.js +29 -0
- package/lib/cjs/risk_token/parser/DefaultTokenV2Parser.js +35 -0
- package/lib/cjs/risk_token/parser/DefaultTokenV3Parser.js +35 -0
- package/lib/cjs/risk_token/parser/ITokenParser.js +2 -0
- package/lib/cjs/risk_token/parser/TokenParserBase.js +154 -0
- package/lib/cjs/risk_token/parser/TokenParserOptions.js +2 -0
- package/lib/cjs/risk_token/parser/index.js +21 -0
- package/lib/cjs/risk_token/token/IToken.js +2 -0
- package/lib/cjs/risk_token/token/TokenBase.js +98 -0
- package/lib/cjs/risk_token/token/TokenPayloadType.js +2 -0
- package/lib/cjs/risk_token/token/index.js +11 -0
- package/lib/cjs/risk_token/token/v2/DefaultTokenV2.js +201 -0
- package/lib/cjs/risk_token/token/v2/TokenV2Payload.js +2 -0
- package/lib/cjs/risk_token/token/v3/DefaultTokenV3.js +233 -0
- package/lib/cjs/risk_token/token/v3/TokenSignField.js +8 -0
- package/lib/cjs/risk_token/token/v3/TokenV3Payload.js +2 -0
- package/lib/cjs/risk_token/utils.js +16 -0
- package/lib/cjs/telemetry/DefaultTelemetry.js +187 -0
- package/lib/cjs/telemetry/ITelemetry.js +2 -0
- package/lib/cjs/telemetry/constants.js +10 -0
- package/lib/cjs/telemetry/index.js +20 -0
- package/lib/cjs/telemetry/model/TelemetryActivity.js +2 -0
- package/lib/cjs/utils/Algorithm.js +8 -0
- package/lib/cjs/utils/ModuleMode.js +8 -0
- package/lib/cjs/utils/VidSource.js +8 -0
- package/lib/cjs/utils/base64/IBase64Utils.js +2 -0
- package/lib/cjs/utils/base64/index.js +17 -0
- package/lib/cjs/utils/cipher/ICipherUtils.js +2 -0
- package/lib/cjs/utils/cipher/index.js +17 -0
- package/lib/cjs/utils/constants.js +15 -0
- package/lib/cjs/utils/cookie_parser/ICookieParser.js +2 -0
- package/lib/cjs/utils/cookie_parser/StringSplitCookieParser.js +36 -0
- package/lib/cjs/utils/cookie_parser/index.js +18 -0
- package/lib/cjs/utils/error/EnforcerError.js +29 -0
- package/lib/cjs/utils/error/EnforcerErrorName.js +8 -0
- package/lib/cjs/utils/error/EnforcerTimeoutError.js +30 -0
- package/lib/cjs/utils/error/index.js +9 -0
- package/lib/cjs/utils/hash/IHashUtils.js +2 -0
- package/lib/cjs/utils/hash/index.js +17 -0
- package/lib/cjs/utils/hmac/IHmacUtils.js +2 -0
- package/lib/cjs/utils/hmac/index.js +17 -0
- package/lib/cjs/utils/index.js +30 -0
- package/lib/cjs/utils/ip_range_checker/IIpRangeChecker.js +2 -0
- package/lib/cjs/utils/ip_range_checker/index.js +17 -0
- package/lib/cjs/utils/request_id_generator/IRequestIdGenerator.js +2 -0
- package/lib/cjs/utils/request_id_generator/index.js +17 -0
- package/lib/cjs/utils/url_parser/IURLParser.js +2 -0
- package/lib/cjs/utils/url_parser/index.js +17 -0
- package/lib/cjs/utils/utils.js +165 -0
- package/lib/esm/utils/constants.js +12 -0
- package/lib/types/utils/constants.d.ts +12 -0
- package/package.json +17 -5
- package/lib/utils/constants.d.ts +0 -12
- package/lib/utils/constants.js +0 -12
- /package/lib/{action → esm/action}/Action.js +0 -0
- /package/lib/{action → esm/action}/ActionData.js +0 -0
- /package/lib/{action → esm/action}/ActionPriorityOrder.js +0 -0
- /package/lib/{action → esm/action}/Decision.js +0 -0
- /package/lib/{action → esm/action}/ProductAction.js +0 -0
- /package/lib/{action → esm/action}/index.js +0 -0
- /package/lib/{action → esm/action}/utils.js +0 -0
- /package/lib/{activities → esm/activities}/ActivityType.js +0 -0
- /package/lib/{activities → esm/activities}/HttpActivityClient.js +0 -0
- /package/lib/{activities → esm/activities}/HttpBatchedActivityClient.js +0 -0
- /package/lib/{activities → esm/activities}/IActivityClient.js +0 -0
- /package/lib/{activities → esm/activities}/constants.js +0 -0
- /package/lib/{activities → esm/activities}/index.js +0 -0
- /package/lib/{activities → esm/activities}/model/AsyncActivity.js +0 -0
- /package/lib/{activities → esm/activities}/model/AsyncActivityDetails.js +0 -0
- /package/lib/{activities → esm/activities}/model/CommonActivityDetails.js +0 -0
- /package/lib/{activities → esm/activities}/model/HeaderEntry.js +0 -0
- /package/lib/{activities → esm/activities}/model/index.js +0 -0
- /package/lib/{activities → esm/activities}/utils.js +0 -0
- /package/lib/{additional_activity_handler → esm/additional_activity_handler}/AdditionalActivityHandler.js +0 -0
- /package/lib/{additional_activity_handler → esm/additional_activity_handler}/AdditionalActivityHandlerUtils.js +0 -0
- /package/lib/{additional_activity_handler → esm/additional_activity_handler}/index.js +0 -0
- /package/lib/{blocker → esm/blocker}/BlockAction.js +0 -0
- /package/lib/{blocker → esm/blocker}/BlockActionToProductMap.js +0 -0
- /package/lib/{blocker → esm/blocker}/BlockActionToWordMap.js +0 -0
- /package/lib/{blocker → esm/blocker}/IBlocker.js +0 -0
- /package/lib/{blocker → esm/blocker}/IConditionalBlocker.js +0 -0
- /package/lib/{blocker → esm/blocker}/index.js +0 -0
- /package/lib/{config → esm/config}/ConfigurationParams.js +0 -0
- /package/lib/{config → esm/config}/DefaultConfigurations.js +0 -0
- /package/lib/{config → esm/config}/IConfiguration.js +0 -0
- /package/lib/{config → esm/config}/StaticConfigurationBase.js +0 -0
- /package/lib/{config → esm/config}/index.js +0 -0
- /package/lib/{context → esm/context}/DefaultContext.js +0 -0
- /package/lib/{context → esm/context}/index.js +0 -0
- /package/lib/{context → esm/context}/interfaces/IContext.js +0 -0
- /package/lib/{context → esm/context}/interfaces/MobileData.js +0 -0
- /package/lib/{context → esm/context}/interfaces/ReadonlyContext.js +0 -0
- /package/lib/{context → esm/context}/interfaces/RequestData.js +0 -0
- /package/lib/{context → esm/context}/interfaces/RiskApiData.js +0 -0
- /package/lib/{context → esm/context}/interfaces/ServerData.js +0 -0
- /package/lib/{context → esm/context}/interfaces/TlsData.js +0 -0
- /package/lib/{context → esm/context}/interfaces/TokenData.js +0 -0
- /package/lib/{context → esm/context}/interfaces/index.js +0 -0
- /package/lib/{cors → esm/cors}/CustomBlockResponseHeadersHandler.js +0 -0
- /package/lib/{cors → esm/cors}/CustomPreflightHandler.js +0 -0
- /package/lib/{cors → esm/cors}/DefaultCors.js +0 -0
- /package/lib/{cors → esm/cors}/ICors.js +0 -0
- /package/lib/{cors → esm/cors}/constants.js +0 -0
- /package/lib/{cors → esm/cors}/index.js +0 -0
- /package/lib/{custom_parameters → esm/custom_parameters}/CustomParameters.js +0 -0
- /package/lib/{custom_parameters → esm/custom_parameters}/CustomParametersFunction.js +0 -0
- /package/lib/{custom_parameters → esm/custom_parameters}/CustomParametersUtils.js +0 -0
- /package/lib/{custom_parameters → esm/custom_parameters}/index.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/EnforcerBase.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/IEnforcer.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/index.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/options/EnforcerBaseOptions.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/options/EnforcerOptionsType.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/options/EnforcerV2Options.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/options/EnforcerV3Options.js +0 -0
- /package/lib/{enforcer → esm/enforcer}/options/index.js +0 -0
- /package/lib/{filter → esm/filter}/FilterReason.js +0 -0
- /package/lib/{filter → esm/filter}/IFilter.js +0 -0
- /package/lib/{filter → esm/filter}/index.js +0 -0
- /package/lib/{first_party → esm/first_party}/FirstPartyData.js +0 -0
- /package/lib/{first_party → esm/first_party}/IFirstParty.js +0 -0
- /package/lib/{first_party → esm/first_party}/index.js +0 -0
- /package/lib/{graphql → esm/graphql}/DefaultGraphQLParser.js +0 -0
- /package/lib/{graphql → esm/graphql}/IGraphQLParser.js +0 -0
- /package/lib/{graphql → esm/graphql}/index.js +0 -0
- /package/lib/{graphql → esm/graphql}/model/GraphQLData.js +0 -0
- /package/lib/{graphql → esm/graphql}/model/GraphQLOperation.js +0 -0
- /package/lib/{graphql → esm/graphql}/model/GraphQLOperationType.js +0 -0
- /package/lib/{graphql → esm/graphql}/model/index.js +0 -0
- /package/lib/{http → esm/http}/index.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IBody.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IFormData.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IHeaders.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IHttpClient.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IIncomingRequest.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IIncomingResponse.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IMinimalResponse.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IOutgoingRequest.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IOutgoingResponse.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IURL.js +0 -0
- /package/lib/{http → esm/http}/interfaces/IURLSearchParams.js +0 -0
- /package/lib/{http → esm/http}/interfaces/ReadonlyHeaders.js +0 -0
- /package/lib/{http → esm/http}/interfaces/index.js +0 -0
- /package/lib/{http → esm/http}/utils/ContentType.js +0 -0
- /package/lib/{http → esm/http}/utils/FormDataImpl.js +0 -0
- /package/lib/{http → esm/http}/utils/HttpMethod.js +0 -0
- /package/lib/{http → esm/http}/utils/MinimalResponseImpl.js +0 -0
- /package/lib/{http → esm/http}/utils/MinimalResponseUtils.js +0 -0
- /package/lib/{http → esm/http}/utils/MultipartFormDataUtils.js +0 -0
- /package/lib/{http → esm/http}/utils/OutgoingRequestImpl.js +0 -0
- /package/lib/{http → esm/http}/utils/URLUtils.js +0 -0
- /package/lib/{http → esm/http}/utils/UrlImpl.js +0 -0
- /package/lib/{http → esm/http}/utils/UrlSearchParamsImpl.js +0 -0
- /package/lib/{http → esm/http}/utils/constants.js +0 -0
- /package/lib/{http → esm/http}/utils/index.js +0 -0
- /package/lib/{impl → esm/impl}/base64/AtobBase64Utils.js +0 -0
- /package/lib/{impl → esm/impl}/base64/BufferBase64Utils.js +0 -0
- /package/lib/{impl → esm/impl}/base64/JSBase64Base64Utils.js +0 -0
- /package/lib/{impl → esm/impl}/cipher/CryptoCipherUtils.js +0 -0
- /package/lib/{impl → esm/impl}/cipher/SubtleCryptoCipherUtils.js +0 -0
- /package/lib/{impl → esm/impl}/hash/CryptoHashUtils.js +0 -0
- /package/lib/{impl → esm/impl}/hash/CryptoJSHashUtils.js +0 -0
- /package/lib/{impl → esm/impl}/hash/SubtleCryptoHashUtils.js +0 -0
- /package/lib/{impl → esm/impl}/hmac/CryptoHmacUtils.js +0 -0
- /package/lib/{impl → esm/impl}/hmac/CryptoJSHmacUtils.js +0 -0
- /package/lib/{impl → esm/impl}/http/phin/PhinHttpClient.js +0 -0
- /package/lib/{impl → esm/impl}/http/phin/PhinIncomingResponse.js +0 -0
- /package/lib/{impl → esm/impl}/http/phin/index.js +0 -0
- /package/lib/{impl → esm/impl}/ip_range_checker/DefaultIpRangeChecker.js +0 -0
- /package/lib/{impl → esm/impl}/request_id_generator/UuidRequestIdGenerator.js +0 -0
- /package/lib/{impl → esm/impl}/url_parser/DefaultUrlParser.js +0 -0
- /package/lib/{index.js → esm/index.js} +0 -0
- /package/lib/{logger → esm/logger}/DefaultLogger.js +0 -0
- /package/lib/{logger → esm/logger}/HttpLogServiceClient.js +0 -0
- /package/lib/{logger → esm/logger}/ILogServiceClient.js +0 -0
- /package/lib/{logger → esm/logger}/ILogger.js +0 -0
- /package/lib/{logger → esm/logger}/LoggerBase.js +0 -0
- /package/lib/{logger → esm/logger}/LoggerSeverity.js +0 -0
- /package/lib/{logger → esm/logger}/constants.js +0 -0
- /package/lib/{logger → esm/logger}/index.js +0 -0
- /package/lib/{logger → esm/logger}/model/EnrichedLogRecord.js +0 -0
- /package/lib/{logger → esm/logger}/model/LogMetadata.js +0 -0
- /package/lib/{logger → esm/logger}/model/LogRecord.js +0 -0
- /package/lib/{logger → esm/logger}/model/index.js +0 -0
- /package/lib/{phase → esm/phase}/IPhase.js +0 -0
- /package/lib/{phase → esm/phase}/PhaseResult.js +0 -0
- /package/lib/{phase → esm/phase}/flow/EndEnforcerFlow.js +0 -0
- /package/lib/{phase → esm/phase}/flow/EnforceFlow.js +0 -0
- /package/lib/{phase → esm/phase}/flow/FilterFlow.js +0 -0
- /package/lib/{phase → esm/phase}/flow/PostEnforceFlow.js +0 -0
- /package/lib/{phase → esm/phase}/flow/index.js +0 -0
- /package/lib/{phase → esm/phase}/impl/AdditionalActivityHandlerPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/CompositePhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/CreateBlockResponsePhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/DecideActionPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/EnrichContextFromRequestPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/EnrichContextFromResponsePhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/FilterPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/FirstPartyPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/ModifyIncomingRequestPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/ModifyOutgoingResponsePhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/ParseTokenPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/PreflightPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/RiskApiPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/SendAsyncActivitiesOnRequestPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/SendAsyncActivitiesOnResponsePhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/SendLogsPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/TelemetryPhase.js +0 -0
- /package/lib/{phase → esm/phase}/impl/index.js +0 -0
- /package/lib/{phase → esm/phase}/index.js +0 -0
- /package/lib/{products → esm/products}/account_defender/AccountDefender.js +0 -0
- /package/lib/{products → esm/products}/account_defender/AccountDefenderData.js +0 -0
- /package/lib/{products → esm/products}/account_defender/IAccountDefender.js +0 -0
- /package/lib/{products → esm/products}/account_defender/JwtData.js +0 -0
- /package/lib/{products → esm/products}/account_defender/constants.js +0 -0
- /package/lib/{products → esm/products}/account_defender/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/BotDefender.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/BotDefenderActionData.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/BotDefenderData.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/BotDefenderUtils.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/IBotDefender.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/DefaultBotDefenderBlocker.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/captcha/CaptchaBlocker.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/captcha/HtmlCaptchaBlocker.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/captcha/JsonCaptchaBlocker.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/captcha/MobileCaptchaBlocker.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/captcha/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/model/BlockData.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/model/JsonBlockPayload.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/model/MobileBlockPayload.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/model/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/templates/captcha_template.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/templates/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/templates/rate_limit_template.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/block/utils.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/filter/DefaultBotDefenderFilter.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/filter/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/first_party/DefaultBotDefenderFirstParty.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/first_party/FirstPartySuffix.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/first_party/constants.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/first_party/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/first_party/utils.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/index.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/reasons/BotDefenderBlockReason.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/reasons/BotDefenderPassReason.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/reasons/BotDefenderReasonType.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/reasons/BotDefenderS2SCallReason.js +0 -0
- /package/lib/{products → esm/products}/bot_defender/reasons/index.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/CredentialIntelligence.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/ICredentialIntelligence.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/constants.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/CredentialEndpoint.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/CredentialEndpointConfiguration.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/CredentialEndpointManager.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/ICredentialEndpoint.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/CustomCredentialExtractor.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/HeaderCredentialExtractor.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/ICredentialExtractor.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/SentThrough.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/extractor/index.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceVersion.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/ICredentialIntelligenceHashProtocol.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/SingleStepAndMultistepHashProtocol.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/SsoStep.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/hash_protocol/index.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/index.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/BodyLoginSuccessfulParser.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulCallback.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulParser.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/ILoginSuccessfulParser.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/LoginSuccessfulReportingMethod.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/StatusLoginSuccessfulParser.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/login_successful/index.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/ExactPathEndpointMatcher.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/ICredentialIntelligenceEndpointMatcher.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/PathType.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/RegexPathEndpointMatcher.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/endpoint/matcher/index.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/index.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/model/CredentialData.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/model/CredentialIntelligenceData.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/model/Credentials.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/model/CustomExtractionCallback.js +0 -0
- /package/lib/{products → esm/products}/credential_intelligence/model/index.js +0 -0
- /package/lib/{products → esm/products}/index.js +0 -0
- /package/lib/{products → esm/products}/interfaces/IProduct.js +0 -0
- /package/lib/{products → esm/products}/interfaces/ProductData.js +0 -0
- /package/lib/{products → esm/products}/interfaces/ProductDataType.js +0 -0
- /package/lib/{products → esm/products}/interfaces/ProductType.js +0 -0
- /package/lib/{products → esm/products}/interfaces/Products.js +0 -0
- /package/lib/{products → esm/products}/interfaces/index.js +0 -0
- /package/lib/{products → esm/products}/utils/ProductName.js +0 -0
- /package/lib/{products → esm/products}/utils/ProductPriorityOrder.js +0 -0
- /package/lib/{products → esm/products}/utils/index.js +0 -0
- /package/lib/{products → esm/products}/utils/utils.js +0 -0
- /package/lib/{pxde → esm/pxde}/DefaultDataEnrichment.js +0 -0
- /package/lib/{pxde → esm/pxde}/IDataEnrichment.js +0 -0
- /package/lib/{pxde → esm/pxde}/constants.js +0 -0
- /package/lib/{pxde → esm/pxde}/index.js +0 -0
- /package/lib/{pxde → esm/pxde}/model/PXDE.js +0 -0
- /package/lib/{pxde → esm/pxde}/model/PxdeData.js +0 -0
- /package/lib/{pxde → esm/pxde}/model/index.js +0 -0
- /package/lib/{pxhd → esm/pxhd}/PXHDUtils.js +0 -0
- /package/lib/{pxhd → esm/pxhd}/index.js +0 -0
- /package/lib/{pxhd → esm/pxhd}/model/PXHD.js +0 -0
- /package/lib/{pxhd → esm/pxhd}/model/PXHDSource.js +0 -0
- /package/lib/{pxhd → esm/pxhd}/model/index.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/client/IRiskApiClient.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/client/PostRiskApiClientBase.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/client/PostRiskApiClientV2.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/client/PostRiskApiClientV3.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/client/index.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/constants.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/index.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/model/RiskActivity.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/model/RiskApiCallResult.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/model/RiskStatus.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/model/S2SErrorReason.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/model/index.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/IRiskResponse.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/RiskResponseBase.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/RiskResponsePayloadType.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/index.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/v2/DefaultRiskResponseV2.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/v2/RiskResponseV2Payload.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/v2/index.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/v3/DefaultRiskResponseV3.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/v3/RiskResponseV3Payload.js +0 -0
- /package/lib/{risk_api → esm/risk_api}/risk_response/v3/index.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/MobileError.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/TokenOrigin.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/TokenParseResult.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/TokenVersion.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/constants.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/index.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/parser/DefaultTokenV2Parser.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/parser/DefaultTokenV3Parser.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/parser/ITokenParser.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/parser/TokenParserBase.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/parser/TokenParserOptions.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/parser/index.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/IToken.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/TokenBase.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/TokenPayloadType.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/index.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/v2/DefaultTokenV2.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/v2/TokenV2Payload.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/v3/DefaultTokenV3.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/v3/TokenSignField.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/token/v3/TokenV3Payload.js +0 -0
- /package/lib/{risk_token → esm/risk_token}/utils.js +0 -0
- /package/lib/{telemetry → esm/telemetry}/DefaultTelemetry.js +0 -0
- /package/lib/{telemetry → esm/telemetry}/ITelemetry.js +0 -0
- /package/lib/{telemetry → esm/telemetry}/constants.js +0 -0
- /package/lib/{telemetry → esm/telemetry}/index.js +0 -0
- /package/lib/{telemetry → esm/telemetry}/model/TelemetryActivity.js +0 -0
- /package/lib/{utils → esm/utils}/Algorithm.js +0 -0
- /package/lib/{utils → esm/utils}/ModuleMode.js +0 -0
- /package/lib/{utils → esm/utils}/VidSource.js +0 -0
- /package/lib/{utils → esm/utils}/base64/IBase64Utils.js +0 -0
- /package/lib/{utils → esm/utils}/base64/index.js +0 -0
- /package/lib/{utils → esm/utils}/cipher/ICipherUtils.js +0 -0
- /package/lib/{utils → esm/utils}/cipher/index.js +0 -0
- /package/lib/{utils → esm/utils}/cookie_parser/ICookieParser.js +0 -0
- /package/lib/{utils → esm/utils}/cookie_parser/StringSplitCookieParser.js +0 -0
- /package/lib/{utils → esm/utils}/cookie_parser/index.js +0 -0
- /package/lib/{utils → esm/utils}/error/EnforcerError.js +0 -0
- /package/lib/{utils → esm/utils}/error/EnforcerErrorName.js +0 -0
- /package/lib/{utils → esm/utils}/error/EnforcerTimeoutError.js +0 -0
- /package/lib/{utils → esm/utils}/error/index.js +0 -0
- /package/lib/{utils → esm/utils}/hash/IHashUtils.js +0 -0
- /package/lib/{utils → esm/utils}/hash/index.js +0 -0
- /package/lib/{utils → esm/utils}/hmac/IHmacUtils.js +0 -0
- /package/lib/{utils → esm/utils}/hmac/index.js +0 -0
- /package/lib/{utils → esm/utils}/index.js +0 -0
- /package/lib/{utils → esm/utils}/ip_range_checker/IIpRangeChecker.js +0 -0
- /package/lib/{utils → esm/utils}/ip_range_checker/index.js +0 -0
- /package/lib/{utils → esm/utils}/request_id_generator/IRequestIdGenerator.js +0 -0
- /package/lib/{utils → esm/utils}/request_id_generator/index.js +0 -0
- /package/lib/{utils → esm/utils}/url_parser/IURLParser.js +0 -0
- /package/lib/{utils → esm/utils}/url_parser/index.js +0 -0
- /package/lib/{utils → esm/utils}/utils.js +0 -0
- /package/lib/{action → types/action}/Action.d.ts +0 -0
- /package/lib/{action → types/action}/ActionData.d.ts +0 -0
- /package/lib/{action → types/action}/ActionPriorityOrder.d.ts +0 -0
- /package/lib/{action → types/action}/Decision.d.ts +0 -0
- /package/lib/{action → types/action}/ProductAction.d.ts +0 -0
- /package/lib/{action → types/action}/index.d.ts +0 -0
- /package/lib/{action → types/action}/utils.d.ts +0 -0
- /package/lib/{activities → types/activities}/ActivityType.d.ts +0 -0
- /package/lib/{activities → types/activities}/HttpActivityClient.d.ts +0 -0
- /package/lib/{activities → types/activities}/HttpBatchedActivityClient.d.ts +0 -0
- /package/lib/{activities → types/activities}/IActivityClient.d.ts +0 -0
- /package/lib/{activities → types/activities}/constants.d.ts +0 -0
- /package/lib/{activities → types/activities}/index.d.ts +0 -0
- /package/lib/{activities → types/activities}/model/AsyncActivity.d.ts +0 -0
- /package/lib/{activities → types/activities}/model/AsyncActivityDetails.d.ts +0 -0
- /package/lib/{activities → types/activities}/model/CommonActivityDetails.d.ts +0 -0
- /package/lib/{activities → types/activities}/model/HeaderEntry.d.ts +0 -0
- /package/lib/{activities → types/activities}/model/index.d.ts +0 -0
- /package/lib/{activities → types/activities}/utils.d.ts +0 -0
- /package/lib/{additional_activity_handler → types/additional_activity_handler}/AdditionalActivityHandler.d.ts +0 -0
- /package/lib/{additional_activity_handler → types/additional_activity_handler}/AdditionalActivityHandlerUtils.d.ts +0 -0
- /package/lib/{additional_activity_handler → types/additional_activity_handler}/index.d.ts +0 -0
- /package/lib/{blocker → types/blocker}/BlockAction.d.ts +0 -0
- /package/lib/{blocker → types/blocker}/BlockActionToProductMap.d.ts +0 -0
- /package/lib/{blocker → types/blocker}/BlockActionToWordMap.d.ts +0 -0
- /package/lib/{blocker → types/blocker}/IBlocker.d.ts +0 -0
- /package/lib/{blocker → types/blocker}/IConditionalBlocker.d.ts +0 -0
- /package/lib/{blocker → types/blocker}/index.d.ts +0 -0
- /package/lib/{config → types/config}/ConfigurationParams.d.ts +0 -0
- /package/lib/{config → types/config}/DefaultConfigurations.d.ts +0 -0
- /package/lib/{config → types/config}/IConfiguration.d.ts +0 -0
- /package/lib/{config → types/config}/StaticConfigurationBase.d.ts +0 -0
- /package/lib/{config → types/config}/index.d.ts +0 -0
- /package/lib/{context → types/context}/DefaultContext.d.ts +0 -0
- /package/lib/{context → types/context}/index.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/IContext.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/MobileData.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/ReadonlyContext.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/RequestData.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/RiskApiData.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/ServerData.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/TlsData.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/TokenData.d.ts +0 -0
- /package/lib/{context → types/context}/interfaces/index.d.ts +0 -0
- /package/lib/{cors → types/cors}/CustomBlockResponseHeadersHandler.d.ts +0 -0
- /package/lib/{cors → types/cors}/CustomPreflightHandler.d.ts +0 -0
- /package/lib/{cors → types/cors}/DefaultCors.d.ts +0 -0
- /package/lib/{cors → types/cors}/ICors.d.ts +0 -0
- /package/lib/{cors → types/cors}/constants.d.ts +0 -0
- /package/lib/{cors → types/cors}/index.d.ts +0 -0
- /package/lib/{custom_parameters → types/custom_parameters}/CustomParameters.d.ts +0 -0
- /package/lib/{custom_parameters → types/custom_parameters}/CustomParametersFunction.d.ts +0 -0
- /package/lib/{custom_parameters → types/custom_parameters}/CustomParametersUtils.d.ts +0 -0
- /package/lib/{custom_parameters → types/custom_parameters}/index.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/EnforcerBase.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/IEnforcer.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/index.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/options/EnforcerBaseOptions.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/options/EnforcerOptionsType.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/options/EnforcerV2Options.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/options/EnforcerV3Options.d.ts +0 -0
- /package/lib/{enforcer → types/enforcer}/options/index.d.ts +0 -0
- /package/lib/{filter → types/filter}/FilterReason.d.ts +0 -0
- /package/lib/{filter → types/filter}/IFilter.d.ts +0 -0
- /package/lib/{filter → types/filter}/index.d.ts +0 -0
- /package/lib/{first_party → types/first_party}/FirstPartyData.d.ts +0 -0
- /package/lib/{first_party → types/first_party}/IFirstParty.d.ts +0 -0
- /package/lib/{first_party → types/first_party}/index.d.ts +0 -0
- /package/lib/{graphql → types/graphql}/DefaultGraphQLParser.d.ts +0 -0
- /package/lib/{graphql → types/graphql}/IGraphQLParser.d.ts +0 -0
- /package/lib/{graphql → types/graphql}/index.d.ts +0 -0
- /package/lib/{graphql → types/graphql}/model/GraphQLData.d.ts +0 -0
- /package/lib/{graphql → types/graphql}/model/GraphQLOperation.d.ts +0 -0
- /package/lib/{graphql → types/graphql}/model/GraphQLOperationType.d.ts +0 -0
- /package/lib/{graphql → types/graphql}/model/index.d.ts +0 -0
- /package/lib/{http → types/http}/index.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IBody.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IFormData.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IHeaders.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IHttpClient.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IIncomingRequest.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IIncomingResponse.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IMinimalResponse.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IOutgoingRequest.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IOutgoingResponse.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IURL.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/IURLSearchParams.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/ReadonlyHeaders.d.ts +0 -0
- /package/lib/{http → types/http}/interfaces/index.d.ts +0 -0
- /package/lib/{http → types/http}/utils/ContentType.d.ts +0 -0
- /package/lib/{http → types/http}/utils/FormDataImpl.d.ts +0 -0
- /package/lib/{http → types/http}/utils/HttpMethod.d.ts +0 -0
- /package/lib/{http → types/http}/utils/MinimalResponseImpl.d.ts +0 -0
- /package/lib/{http → types/http}/utils/MinimalResponseUtils.d.ts +0 -0
- /package/lib/{http → types/http}/utils/MultipartFormDataUtils.d.ts +0 -0
- /package/lib/{http → types/http}/utils/OutgoingRequestImpl.d.ts +0 -0
- /package/lib/{http → types/http}/utils/URLUtils.d.ts +0 -0
- /package/lib/{http → types/http}/utils/UrlImpl.d.ts +0 -0
- /package/lib/{http → types/http}/utils/UrlSearchParamsImpl.d.ts +0 -0
- /package/lib/{http → types/http}/utils/constants.d.ts +0 -0
- /package/lib/{http → types/http}/utils/index.d.ts +0 -0
- /package/lib/{impl → types/impl}/base64/AtobBase64Utils.d.ts +0 -0
- /package/lib/{impl → types/impl}/base64/BufferBase64Utils.d.ts +0 -0
- /package/lib/{impl → types/impl}/base64/JSBase64Base64Utils.d.ts +0 -0
- /package/lib/{impl → types/impl}/cipher/CryptoCipherUtils.d.ts +0 -0
- /package/lib/{impl → types/impl}/cipher/SubtleCryptoCipherUtils.d.ts +0 -0
- /package/lib/{impl → types/impl}/hash/CryptoHashUtils.d.ts +0 -0
- /package/lib/{impl → types/impl}/hash/CryptoJSHashUtils.d.ts +0 -0
- /package/lib/{impl → types/impl}/hash/SubtleCryptoHashUtils.d.ts +0 -0
- /package/lib/{impl → types/impl}/hmac/CryptoHmacUtils.d.ts +0 -0
- /package/lib/{impl → types/impl}/hmac/CryptoJSHmacUtils.d.ts +0 -0
- /package/lib/{impl → types/impl}/http/phin/PhinHttpClient.d.ts +0 -0
- /package/lib/{impl → types/impl}/http/phin/PhinIncomingResponse.d.ts +0 -0
- /package/lib/{impl → types/impl}/http/phin/index.d.ts +0 -0
- /package/lib/{impl → types/impl}/ip_range_checker/DefaultIpRangeChecker.d.ts +0 -0
- /package/lib/{impl → types/impl}/request_id_generator/UuidRequestIdGenerator.d.ts +0 -0
- /package/lib/{impl → types/impl}/url_parser/DefaultUrlParser.d.ts +0 -0
- /package/lib/{index.d.ts → types/index.d.ts} +0 -0
- /package/lib/{logger → types/logger}/DefaultLogger.d.ts +0 -0
- /package/lib/{logger → types/logger}/HttpLogServiceClient.d.ts +0 -0
- /package/lib/{logger → types/logger}/ILogServiceClient.d.ts +0 -0
- /package/lib/{logger → types/logger}/ILogger.d.ts +0 -0
- /package/lib/{logger → types/logger}/LoggerBase.d.ts +0 -0
- /package/lib/{logger → types/logger}/LoggerSeverity.d.ts +0 -0
- /package/lib/{logger → types/logger}/constants.d.ts +0 -0
- /package/lib/{logger → types/logger}/index.d.ts +0 -0
- /package/lib/{logger → types/logger}/model/EnrichedLogRecord.d.ts +0 -0
- /package/lib/{logger → types/logger}/model/LogMetadata.d.ts +0 -0
- /package/lib/{logger → types/logger}/model/LogRecord.d.ts +0 -0
- /package/lib/{logger → types/logger}/model/index.d.ts +0 -0
- /package/lib/{phase → types/phase}/IPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/PhaseResult.d.ts +0 -0
- /package/lib/{phase → types/phase}/flow/EndEnforcerFlow.d.ts +0 -0
- /package/lib/{phase → types/phase}/flow/EnforceFlow.d.ts +0 -0
- /package/lib/{phase → types/phase}/flow/FilterFlow.d.ts +0 -0
- /package/lib/{phase → types/phase}/flow/PostEnforceFlow.d.ts +0 -0
- /package/lib/{phase → types/phase}/flow/index.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/AdditionalActivityHandlerPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/CompositePhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/CreateBlockResponsePhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/DecideActionPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/EnrichContextFromRequestPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/EnrichContextFromResponsePhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/FilterPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/FirstPartyPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/ModifyIncomingRequestPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/ModifyOutgoingResponsePhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/ParseTokenPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/PreflightPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/RiskApiPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/SendAsyncActivitiesOnRequestPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/SendAsyncActivitiesOnResponsePhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/SendLogsPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/TelemetryPhase.d.ts +0 -0
- /package/lib/{phase → types/phase}/impl/index.d.ts +0 -0
- /package/lib/{phase → types/phase}/index.d.ts +0 -0
- /package/lib/{products → types/products}/account_defender/AccountDefender.d.ts +0 -0
- /package/lib/{products → types/products}/account_defender/AccountDefenderData.d.ts +0 -0
- /package/lib/{products → types/products}/account_defender/IAccountDefender.d.ts +0 -0
- /package/lib/{products → types/products}/account_defender/JwtData.d.ts +0 -0
- /package/lib/{products → types/products}/account_defender/constants.d.ts +0 -0
- /package/lib/{products → types/products}/account_defender/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/BotDefender.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/BotDefenderActionData.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/BotDefenderData.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/BotDefenderUtils.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/IBotDefender.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/DefaultBotDefenderBlocker.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/captcha/CaptchaBlocker.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/captcha/HtmlCaptchaBlocker.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/captcha/JsonCaptchaBlocker.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/captcha/MobileCaptchaBlocker.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/captcha/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/model/BlockData.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/model/JsonBlockPayload.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/model/MobileBlockPayload.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/model/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/templates/captcha_template.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/templates/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/templates/rate_limit_template.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/block/utils.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/filter/DefaultBotDefenderFilter.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/filter/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/first_party/DefaultBotDefenderFirstParty.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/first_party/FirstPartySuffix.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/first_party/constants.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/first_party/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/first_party/utils.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/index.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderBlockReason.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderPassReason.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderReasonType.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/reasons/BotDefenderS2SCallReason.d.ts +0 -0
- /package/lib/{products → types/products}/bot_defender/reasons/index.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/CredentialIntelligence.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/ICredentialIntelligence.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/constants.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/CredentialEndpoint.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/CredentialEndpointConfiguration.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/CredentialEndpointManager.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/ICredentialEndpoint.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/CustomCredentialExtractor.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/HeaderCredentialExtractor.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/ICredentialExtractor.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/QueryParamCredentialExtractor.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/SentThrough.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/extractor/index.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceVersion.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/ICredentialIntelligenceHashProtocol.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/SingleStepAndMultistepHashProtocol.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/SsoStep.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/hash_protocol/index.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/index.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/BodyLoginSuccessfulParser.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulCallback.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/CustomLoginSuccessfulParser.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/ILoginSuccessfulParser.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/LoginSuccessfulReportingMethod.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/StatusLoginSuccessfulParser.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/login_successful/index.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/ExactPathEndpointMatcher.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/ICredentialIntelligenceEndpointMatcher.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/PathType.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/RegexPathEndpointMatcher.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/endpoint/matcher/index.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/index.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/model/CredentialData.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/model/CredentialIntelligenceData.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/model/Credentials.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/model/CustomExtractionCallback.d.ts +0 -0
- /package/lib/{products → types/products}/credential_intelligence/model/index.d.ts +0 -0
- /package/lib/{products → types/products}/index.d.ts +0 -0
- /package/lib/{products → types/products}/interfaces/IProduct.d.ts +0 -0
- /package/lib/{products → types/products}/interfaces/ProductData.d.ts +0 -0
- /package/lib/{products → types/products}/interfaces/ProductDataType.d.ts +0 -0
- /package/lib/{products → types/products}/interfaces/ProductType.d.ts +0 -0
- /package/lib/{products → types/products}/interfaces/Products.d.ts +0 -0
- /package/lib/{products → types/products}/interfaces/index.d.ts +0 -0
- /package/lib/{products → types/products}/utils/ProductName.d.ts +0 -0
- /package/lib/{products → types/products}/utils/ProductPriorityOrder.d.ts +0 -0
- /package/lib/{products → types/products}/utils/index.d.ts +0 -0
- /package/lib/{products → types/products}/utils/utils.d.ts +0 -0
- /package/lib/{pxde → types/pxde}/DefaultDataEnrichment.d.ts +0 -0
- /package/lib/{pxde → types/pxde}/IDataEnrichment.d.ts +0 -0
- /package/lib/{pxde → types/pxde}/constants.d.ts +0 -0
- /package/lib/{pxde → types/pxde}/index.d.ts +0 -0
- /package/lib/{pxde → types/pxde}/model/PXDE.d.ts +0 -0
- /package/lib/{pxde → types/pxde}/model/PxdeData.d.ts +0 -0
- /package/lib/{pxde → types/pxde}/model/index.d.ts +0 -0
- /package/lib/{pxhd → types/pxhd}/PXHDUtils.d.ts +0 -0
- /package/lib/{pxhd → types/pxhd}/index.d.ts +0 -0
- /package/lib/{pxhd → types/pxhd}/model/PXHD.d.ts +0 -0
- /package/lib/{pxhd → types/pxhd}/model/PXHDSource.d.ts +0 -0
- /package/lib/{pxhd → types/pxhd}/model/index.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/client/IRiskApiClient.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/client/PostRiskApiClientBase.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/client/PostRiskApiClientV2.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/client/PostRiskApiClientV3.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/client/index.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/constants.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/index.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/model/RiskActivity.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/model/RiskApiCallResult.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/model/RiskStatus.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/model/S2SErrorReason.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/model/index.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/IRiskResponse.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/RiskResponseBase.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/RiskResponsePayloadType.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/index.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/v2/DefaultRiskResponseV2.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/v2/RiskResponseV2Payload.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/v2/index.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/v3/DefaultRiskResponseV3.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/v3/RiskResponseV3Payload.d.ts +0 -0
- /package/lib/{risk_api → types/risk_api}/risk_response/v3/index.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/MobileError.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/TokenOrigin.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/TokenParseResult.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/TokenVersion.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/constants.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/index.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/parser/DefaultTokenV2Parser.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/parser/DefaultTokenV3Parser.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/parser/ITokenParser.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/parser/TokenParserBase.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/parser/TokenParserOptions.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/parser/index.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/IToken.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/TokenBase.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/TokenPayloadType.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/index.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/v2/DefaultTokenV2.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/v2/TokenV2Payload.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/v3/DefaultTokenV3.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/v3/TokenSignField.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/token/v3/TokenV3Payload.d.ts +0 -0
- /package/lib/{risk_token → types/risk_token}/utils.d.ts +0 -0
- /package/lib/{telemetry → types/telemetry}/DefaultTelemetry.d.ts +0 -0
- /package/lib/{telemetry → types/telemetry}/ITelemetry.d.ts +0 -0
- /package/lib/{telemetry → types/telemetry}/constants.d.ts +0 -0
- /package/lib/{telemetry → types/telemetry}/index.d.ts +0 -0
- /package/lib/{telemetry → types/telemetry}/model/TelemetryActivity.d.ts +0 -0
- /package/lib/{utils → types/utils}/Algorithm.d.ts +0 -0
- /package/lib/{utils → types/utils}/ModuleMode.d.ts +0 -0
- /package/lib/{utils → types/utils}/VidSource.d.ts +0 -0
- /package/lib/{utils → types/utils}/base64/IBase64Utils.d.ts +0 -0
- /package/lib/{utils → types/utils}/base64/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/cipher/ICipherUtils.d.ts +0 -0
- /package/lib/{utils → types/utils}/cipher/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/cookie_parser/ICookieParser.d.ts +0 -0
- /package/lib/{utils → types/utils}/cookie_parser/StringSplitCookieParser.d.ts +0 -0
- /package/lib/{utils → types/utils}/cookie_parser/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/error/EnforcerError.d.ts +0 -0
- /package/lib/{utils → types/utils}/error/EnforcerErrorName.d.ts +0 -0
- /package/lib/{utils → types/utils}/error/EnforcerTimeoutError.d.ts +0 -0
- /package/lib/{utils → types/utils}/error/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/hash/IHashUtils.d.ts +0 -0
- /package/lib/{utils → types/utils}/hash/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/hmac/IHmacUtils.d.ts +0 -0
- /package/lib/{utils → types/utils}/hmac/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/ip_range_checker/IIpRangeChecker.d.ts +0 -0
- /package/lib/{utils → types/utils}/ip_range_checker/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/request_id_generator/IRequestIdGenerator.d.ts +0 -0
- /package/lib/{utils → types/utils}/request_id_generator/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/url_parser/IURLParser.d.ts +0 -0
- /package/lib/{utils → types/utils}/url_parser/index.d.ts +0 -0
- /package/lib/{utils → types/utils}/utils.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Action = void 0;
|
|
4
|
+
var Action;
|
|
5
|
+
(function (Action) {
|
|
6
|
+
Action["PASS_REQUEST"] = "pass_request";
|
|
7
|
+
Action["TRIGGER_RISK_API"] = "trigger_risk_api";
|
|
8
|
+
Action["SIMULATED_BLOCK"] = "simulated_block";
|
|
9
|
+
Action["BLOCK"] = "block";
|
|
10
|
+
})(Action || (exports.Action = Action = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACTION_PRIORITY_ORDER = void 0;
|
|
4
|
+
var Action_1 = require("./Action");
|
|
5
|
+
exports.ACTION_PRIORITY_ORDER = [
|
|
6
|
+
Action_1.Action.BLOCK,
|
|
7
|
+
Action_1.Action.SIMULATED_BLOCK,
|
|
8
|
+
Action_1.Action.TRIGGER_RISK_API,
|
|
9
|
+
Action_1.Action.PASS_REQUEST,
|
|
10
|
+
];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Action"), exports);
|
|
18
|
+
__exportStar(require("./ActionData"), exports);
|
|
19
|
+
__exportStar(require("./ActionPriorityOrder"), exports);
|
|
20
|
+
__exportStar(require("./Decision"), exports);
|
|
21
|
+
__exportStar(require("./ProductAction"), exports);
|
|
22
|
+
__exportStar(require("./utils"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDecisionFromActions = exports.getProductActions = exports.getDecisionFromContext = void 0;
|
|
4
|
+
var Action_1 = require("./Action");
|
|
5
|
+
var ActionPriorityOrder_1 = require("./ActionPriorityOrder");
|
|
6
|
+
var getDecisionFromContext = function (context) {
|
|
7
|
+
return (0, exports.getDecisionFromActions)((0, exports.getProductActions)(context));
|
|
8
|
+
};
|
|
9
|
+
exports.getDecisionFromContext = getDecisionFromContext;
|
|
10
|
+
var getProductActions = function (context) {
|
|
11
|
+
return Object.entries(context.productData)
|
|
12
|
+
.filter(function (_a) {
|
|
13
|
+
var _ = _a[0], data = _a[1];
|
|
14
|
+
return (data === null || data === void 0 ? void 0 : data.action) != null && (data === null || data === void 0 ? void 0 : data.reason) != null;
|
|
15
|
+
})
|
|
16
|
+
.map(function (_a) {
|
|
17
|
+
var productName = _a[0], data = _a[1];
|
|
18
|
+
return ({
|
|
19
|
+
action: data.action,
|
|
20
|
+
reason: data.reason,
|
|
21
|
+
productName: productName,
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
exports.getProductActions = getProductActions;
|
|
26
|
+
var getDecisionFromActions = function (productActions) {
|
|
27
|
+
return createDecision(reduce(productActions));
|
|
28
|
+
};
|
|
29
|
+
exports.getDecisionFromActions = getDecisionFromActions;
|
|
30
|
+
var reduce = function (actions) {
|
|
31
|
+
return actions.reduce(function (tally, _a) {
|
|
32
|
+
var action = _a.action, reason = _a.reason, productName = _a.productName;
|
|
33
|
+
if (!tally[action]) {
|
|
34
|
+
tally[action] = {};
|
|
35
|
+
}
|
|
36
|
+
tally[action][productName] = reason;
|
|
37
|
+
return tally;
|
|
38
|
+
}, {});
|
|
39
|
+
};
|
|
40
|
+
var createDecision = function (tally) {
|
|
41
|
+
for (var _i = 0, ACTION_PRIORITY_ORDER_1 = ActionPriorityOrder_1.ACTION_PRIORITY_ORDER; _i < ACTION_PRIORITY_ORDER_1.length; _i++) {
|
|
42
|
+
var action = ACTION_PRIORITY_ORDER_1[_i];
|
|
43
|
+
if (tally[action]) {
|
|
44
|
+
return { action: action, reasons: tally[action] };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return { action: Action_1.Action.PASS_REQUEST };
|
|
48
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityType = void 0;
|
|
4
|
+
var ActivityType;
|
|
5
|
+
(function (ActivityType) {
|
|
6
|
+
ActivityType["PAGE_REQUESTED"] = "page_requested";
|
|
7
|
+
ActivityType["BLOCK"] = "block";
|
|
8
|
+
ActivityType["ADDITIONAL_S2S"] = "additional_s2s";
|
|
9
|
+
ActivityType["ENFORCER_TELEMETRY"] = "enforcer_telemetry";
|
|
10
|
+
})(ActivityType || (exports.ActivityType = ActivityType = {}));
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.HttpActivityClient = void 0;
|
|
40
|
+
var action_1 = require("../action");
|
|
41
|
+
var http_1 = require("../http");
|
|
42
|
+
var utils_1 = require("../utils");
|
|
43
|
+
var ActivityType_1 = require("./ActivityType");
|
|
44
|
+
var utils_2 = require("./utils");
|
|
45
|
+
var constants_1 = require("./constants");
|
|
46
|
+
var HttpActivityClient = /** @class */ (function () {
|
|
47
|
+
function HttpActivityClient(config, httpClient) {
|
|
48
|
+
this.config = config;
|
|
49
|
+
this.httpClient = httpClient;
|
|
50
|
+
}
|
|
51
|
+
HttpActivityClient.prototype.sendActivities = function (context) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
53
|
+
var activities, e_1;
|
|
54
|
+
return __generator(this, function (_a) {
|
|
55
|
+
switch (_a.label) {
|
|
56
|
+
case 0:
|
|
57
|
+
_a.trys.push([0, 2, , 3]);
|
|
58
|
+
activities = this.createActivities(context);
|
|
59
|
+
return [4 /*yield*/, this.postActivities(activities)];
|
|
60
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
61
|
+
case 2:
|
|
62
|
+
e_1 = _a.sent();
|
|
63
|
+
this.config.logger.error("unable to send activities - ".concat(e_1));
|
|
64
|
+
return [2 /*return*/, false];
|
|
65
|
+
case 3: return [2 /*return*/];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
HttpActivityClient.prototype.createActivities = function (context) {
|
|
71
|
+
var activities = [];
|
|
72
|
+
if (context.action === action_1.Action.BLOCK || context.action === action_1.Action.SIMULATED_BLOCK) {
|
|
73
|
+
activities.push((0, utils_2.createAsyncActivity)(ActivityType_1.ActivityType.BLOCK, this.config, context));
|
|
74
|
+
}
|
|
75
|
+
else if (context.action === action_1.Action.PASS_REQUEST) {
|
|
76
|
+
activities.push((0, utils_2.createAsyncActivity)(ActivityType_1.ActivityType.PAGE_REQUESTED, this.config, context));
|
|
77
|
+
if (context.productData.ci && this.config.ciAutomaticAdditionalS2SEnabled) {
|
|
78
|
+
activities.push((0, utils_2.createAsyncActivity)(ActivityType_1.ActivityType.ADDITIONAL_S2S, this.config, context));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return activities.map(this.finalizeActivity);
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Allows for expansions or alterations to the async activity if needed.
|
|
85
|
+
* @param activity
|
|
86
|
+
* @returns AsyncActivity
|
|
87
|
+
* @protected
|
|
88
|
+
*/
|
|
89
|
+
HttpActivityClient.prototype.finalizeActivity = function (activity) {
|
|
90
|
+
return activity;
|
|
91
|
+
};
|
|
92
|
+
HttpActivityClient.prototype.postActivities = function (activities) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
94
|
+
var url, method, headers, body, req, res;
|
|
95
|
+
var _a;
|
|
96
|
+
return __generator(this, function (_b) {
|
|
97
|
+
switch (_b.label) {
|
|
98
|
+
case 0:
|
|
99
|
+
url = "".concat(this.config.backendCollectorUrl).concat(constants_1.ACTIVITIES_ENDPOINT);
|
|
100
|
+
method = http_1.HttpMethod.POST;
|
|
101
|
+
headers = (_a = {},
|
|
102
|
+
_a[http_1.CONTENT_TYPE_HEADER_NAME] = [http_1.ContentType.APPLICATION_JSON],
|
|
103
|
+
_a[http_1.AUTHORIZATION_HEADER_NAME] = [(0, utils_1.getAuthorizationHeader)(this.config.authToken)],
|
|
104
|
+
_a);
|
|
105
|
+
body = activities.length === 1 ? JSON.stringify(activities[0]) : JSON.stringify(activities);
|
|
106
|
+
this.config.logger.debug("sending ".concat(activities.map(function (_a) {
|
|
107
|
+
var type = _a.type;
|
|
108
|
+
return "".concat(type, " activity");
|
|
109
|
+
}).join(', '), " to ").concat(url));
|
|
110
|
+
req = new http_1.OutgoingRequestImpl({ url: url, method: method, headers: headers, body: body });
|
|
111
|
+
return [4 /*yield*/, this.httpClient.send(req)];
|
|
112
|
+
case 1:
|
|
113
|
+
res = _b.sent();
|
|
114
|
+
return [2 /*return*/, (res === null || res === void 0 ? void 0 : res.status) === 200];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
return HttpActivityClient;
|
|
120
|
+
}());
|
|
121
|
+
exports.HttpActivityClient = HttpActivityClient;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.HttpBatchedActivityClient = void 0;
|
|
55
|
+
var HttpActivityClient_1 = require("./HttpActivityClient");
|
|
56
|
+
var HttpBatchedActivityClient = /** @class */ (function (_super) {
|
|
57
|
+
__extends(HttpBatchedActivityClient, _super);
|
|
58
|
+
function HttpBatchedActivityClient(config, httpClient) {
|
|
59
|
+
var _this = _super.call(this, config, httpClient) || this;
|
|
60
|
+
_this.buffer = [];
|
|
61
|
+
_this.batchSize = config.maxActivityBatchSize;
|
|
62
|
+
_this.timeoutMs = config.activityBatchTimeoutMs;
|
|
63
|
+
_this.maxBufferSize = _this.batchSize * 2;
|
|
64
|
+
_this.startTimer();
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
HttpBatchedActivityClient.prototype.stop = function () {
|
|
68
|
+
this.stopTimer();
|
|
69
|
+
};
|
|
70
|
+
HttpBatchedActivityClient.prototype.postActivities = function (activities) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
this.addToBuffer(activities);
|
|
74
|
+
return [2 /*return*/, this.shouldFlush() ? this.triggerFlush() : true];
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
HttpBatchedActivityClient.prototype.addToBuffer = function (activities) {
|
|
79
|
+
this.buffer = activities.concat(this.buffer);
|
|
80
|
+
if (this.buffer.length > this.maxBufferSize) {
|
|
81
|
+
this.buffer = this.buffer.slice(0, this.maxBufferSize);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
HttpBatchedActivityClient.prototype.shouldFlush = function () {
|
|
85
|
+
return this.buffer.length >= this.batchSize;
|
|
86
|
+
};
|
|
87
|
+
HttpBatchedActivityClient.prototype.triggerFlush = function () {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
89
|
+
var sentSuccessfully, _a;
|
|
90
|
+
return __generator(this, function (_b) {
|
|
91
|
+
switch (_b.label) {
|
|
92
|
+
case 0:
|
|
93
|
+
this.stopTimer();
|
|
94
|
+
_a = this.buffer.length > 0;
|
|
95
|
+
if (!_a) return [3 /*break*/, 2];
|
|
96
|
+
return [4 /*yield*/, this.flush()];
|
|
97
|
+
case 1:
|
|
98
|
+
_a = (_b.sent());
|
|
99
|
+
_b.label = 2;
|
|
100
|
+
case 2:
|
|
101
|
+
sentSuccessfully = _a;
|
|
102
|
+
this.startTimer();
|
|
103
|
+
return [2 /*return*/, sentSuccessfully];
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
HttpBatchedActivityClient.prototype.flush = function () {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
+
var sentSuccessfully;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0: return [4 /*yield*/, _super.prototype.postActivities.call(this, this.buffer)];
|
|
114
|
+
case 1:
|
|
115
|
+
sentSuccessfully = _a.sent();
|
|
116
|
+
if (sentSuccessfully) {
|
|
117
|
+
this.clear();
|
|
118
|
+
}
|
|
119
|
+
return [2 /*return*/, sentSuccessfully];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
HttpBatchedActivityClient.prototype.clear = function () {
|
|
125
|
+
this.buffer = [];
|
|
126
|
+
};
|
|
127
|
+
HttpBatchedActivityClient.prototype.startTimer = function () {
|
|
128
|
+
var _this = this;
|
|
129
|
+
this.timeoutId = setTimeout(function () { return _this.triggerFlush(); }, this.timeoutMs);
|
|
130
|
+
};
|
|
131
|
+
HttpBatchedActivityClient.prototype.stopTimer = function () {
|
|
132
|
+
clearTimeout(this.timeoutId);
|
|
133
|
+
this.timeoutId = null;
|
|
134
|
+
};
|
|
135
|
+
return HttpBatchedActivityClient;
|
|
136
|
+
}(HttpActivityClient_1.HttpActivityClient));
|
|
137
|
+
exports.HttpBatchedActivityClient = HttpBatchedActivityClient;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./IActivityClient"), exports);
|
|
18
|
+
__exportStar(require("./ActivityType"), exports);
|
|
19
|
+
__exportStar(require("./HttpActivityClient"), exports);
|
|
20
|
+
__exportStar(require("./HttpBatchedActivityClient"), exports);
|
|
21
|
+
__exportStar(require("./model"), exports);
|
|
22
|
+
__exportStar(require("./utils"), exports);
|
|
23
|
+
__exportStar(require("./constants"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AsyncActivity"), exports);
|
|
18
|
+
__exportStar(require("./AsyncActivityDetails"), exports);
|
|
19
|
+
__exportStar(require("./HeaderEntry"), exports);
|
|
20
|
+
__exportStar(require("./CommonActivityDetails"), exports);
|