/** * Something was wrong while building URL for identification request * * @group Errors */ declare class InvalidUrlError extends Error { constructor(message: string); } /** * Something was wrong with params while building URL for identification request * * @group Errors */ declare class InvalidURLParamsError extends Error { constructor(message: string); } /** * Unknown API error * * @group Errors */ declare class ApiError extends Error { constructor(message: string); } /** * Token is missing in the request * * @group Errors */ declare class ApiKeyRequiredError extends Error { constructor(message: string); } /** * Wrong token * * @group Errors */ declare class ApiKeyNotFoundError extends Error { constructor(message: string); } /** * API token is outdated * * @group Errors */ declare class ApiKeyExpiredError extends Error { constructor(message: string); } /** * Wrong request format (content, parameters) * * @group Errors */ declare class RequestCannotBeParsedError extends Error { constructor(message: string); } /** * Request failed * * @group Errors */ declare class FailedError extends Error { constructor(message: string); } /** * Server timeout * * @group Errors */ declare class RequestTimeoutError extends Error { constructor(message: string); } /** * Request limit for token reached * * @group Errors */ declare class TooManyRequestError extends Error { constructor(message: string); } /** * Request Filtering deny origin * * @group Errors */ declare class OriginNotAvailableError extends Error { constructor(message: string); } /** * Request Filtering deny some headers * * @group Errors */ declare class HeaderRestrictedError extends Error { constructor(message: string); } /** * Request Filtering deny this hostname * * @group Errors */ declare class HostnameRestrictedError extends Error { constructor(message: string); } /** * Request Filtering deny crawlers * * @group Errors */ declare class NotAvailableForCrawlBotsError extends Error { constructor(message: string); } /** * Request Filtering deny empty UA * * @group Errors */ declare class NotAvailableWithoutUAError extends Error { constructor(message: string); } /** * API key does not match the selected region * * @group Errors */ declare class WrongRegionError extends Error { constructor(message: string); } /** * Subscription is not active for the provided API key * * @group Errors */ declare class SubscriptionNotActiveError extends Error { constructor(message: string); } /** * Something wrong with used API version * * @group Errors */ declare class UnsupportedVersionError extends Error { constructor(message: string); } /** * * * @group Errors */ declare class InstallationMethodRestrictedError extends Error { constructor(message: string); } /** * Error while parsing the response * * @group Errors */ declare class ResponseCannotBeParsedError extends Error { constructor(message: string); } /** * Something wrong with network * * @group Errors */ declare class NetworkError extends Error { constructor(message: string); } /** * Error while parsing JSON response * * @group Errors */ declare class JsonParsingError extends Error { constructor(message: string); } /** * Bad response type * * @group Errors */ declare class InvalidResponseTypeError extends Error { constructor(message: string); } /** * Client-side timeout error * * @group Errors */ declare class ClientTimeoutError extends Error { constructor(message: string); } /** * Other error * * @group Errors */ declare class UnknownError extends Error { constructor(message: string); } /** * Unexpected proxy integration implementation or networking error * * @group Errors */ declare class InvalidProxyIntegrationHeadersError extends Error { constructor(message: string); } /** * Proxy integration secret is missing or invalid * * @group Errors */ declare class InvalidProxyIntegrationSecretError extends Error { constructor(message: string); } /** * Proxy integration secret is from the different env with Public key * * @group Errors */ declare class ProxyIntegrationSecretEnvironmentMismatch extends Error { constructor(message: string); } type IdentificationError = InvalidUrlError | InvalidURLParamsError | ApiError | ApiKeyRequiredError | ApiKeyNotFoundError | ApiKeyExpiredError | RequestCannotBeParsedError | FailedError | RequestTimeoutError | TooManyRequestError | OriginNotAvailableError | HeaderRestrictedError | NotAvailableForCrawlBotsError | NotAvailableWithoutUAError | WrongRegionError | SubscriptionNotActiveError | UnsupportedVersionError | InstallationMethodRestrictedError | ResponseCannotBeParsedError | NetworkError | JsonParsingError | InvalidResponseTypeError | ClientTimeoutError | UnknownError | InvalidProxyIntegrationHeadersError | InvalidProxyIntegrationSecretError | ProxyIntegrationSecretEnvironmentMismatch; export { ApiError, ApiKeyExpiredError, ApiKeyNotFoundError, ApiKeyRequiredError, ClientTimeoutError, FailedError, HeaderRestrictedError, HostnameRestrictedError, type IdentificationError, InstallationMethodRestrictedError, InvalidProxyIntegrationHeadersError, InvalidProxyIntegrationSecretError, InvalidResponseTypeError, InvalidURLParamsError, InvalidUrlError, JsonParsingError, NetworkError, NotAvailableForCrawlBotsError, NotAvailableWithoutUAError, OriginNotAvailableError, ProxyIntegrationSecretEnvironmentMismatch, RequestCannotBeParsedError, RequestTimeoutError, ResponseCannotBeParsedError, SubscriptionNotActiveError, TooManyRequestError, UnknownError, UnsupportedVersionError, WrongRegionError };