Skip to content

UOD-421: Update README and remove legacy hCaptcha, Castle and Temu request types - #47

Merged
DZaznobin93 merged 5 commits into
mainfrom
UOD-421
Nov 20, 2026
Merged

DZaznobin93 merged 5 commits into
mainfrom
UOD-421

Conversation

@djaga-ru

Copy link
Copy Markdown
Collaborator

Updates the Node.js SDK README for UOD-421 and removes legacy request types. Covers the supported captcha types table, client configuration, error handling and polling, and the solution cost.

1. Supported captcha types table - README.md

  • removes the phantom AmazonProxylessRequest (the package ships AmazonRequest only)
  • documents optional minScore (0.1-0.9) on RecaptchaV2EnterpriseRequest; adds RecaptchaV3EnterpriseRequest, FunCaptcha, Binance, ComplexImageFunCaptchaRequest and the full custom anti-bot task list

2. Client configuration - README.md

  • new Client Configuration section: clientKey, serviceUrl, softId with defaults taken from the code

3. Error handling and polling - README.md

  • new Error Handling section: the result.error / ErrorType pattern, GetBalanceError, CapmonsterCloudClientError and overridable GetResultTimeouts

4. Legacy request types removal - src/

  • removes hCaptcha, Castle and Temu request types (absent from the official API task list) with their response types, Solve overloads and specs

5. Solution cost - README.md

  • documents result.cost (USD)

Commits:

  • Fix supported captcha types table in README
  • Document ClientOptions in README
  • Document error handling and polling timeouts in README
  • Remove legacy hCaptcha, Castle and Temu request types
  • Document solution cost in README

Stats: 22 files changed, 72 insertions(+), 738 deletions(-).

The table listed a request class that does not exist and missed
several supported ones. Every class was cross-checked against the
src/Requests exports and the official API task list.

- Remove AmazonProxylessRequest: the package only ships AmazonRequest
- Document optional minScore (0.1-0.9) on RecaptchaV2EnterpriseRequest
- Add RecaptchaV3EnterpriseRequest
- Add FunCaptcha and Binance rows (FunCaptchaRequest, BinanceRequest)
- Extend the complex image row with ComplexImageFunCaptchaRequest
- Extend custom anti-bot tasks with TSPD, Altcha, Alibaba, Friendly,
  Hunt, MTCaptcha and Yidun request classes
- HCaptcha, Castle and Temu classes are not listed: those task types are
  absent from the official API task list
Client configuration was implemented but not described in the README.

- Add a Client Configuration section: clientKey, serviceUrl and softId
  (sent with every createTask, ClientOptions.defaultSoftId 54 when not
  set)
The error-handling pattern and the polling behaviour were not
described anywhere in the README.

- Add an Error Handling section: the result.error / ErrorType pattern
  used by Solve instead of exceptions (Timeout, API error codes mapped
  by ErrorCodeConverter, Unknown), the GetBalanceError and
  CapmonsterCloudClientError exceptions, with a usage example
- Describe automatic getTaskResult polling and the GetResultTimeouts
  object accepted as the second Solve argument (firstRequestDelay,
  optional firstRequestNoCacheDelay, requestsInterval, timeout), with
  an override example
- Note that unsolved tasks are not charged
These task types are absent from the official API task list and the
team approved removing them.

- Delete the HCaptchaRequest, ComplexImageHCaptchaRequest, TemuRequest
  and CastleRequest modules with their response types
- Drop the Solve overloads, Task union members, TaskType enum entries,
  the HCaptchaTimeouts preset and the index exports
- Remove the related serialization and integration specs

Note: removing public exports is a breaking change for package
consumers. The version is intentionally left untouched here; the
version bump and release are a separate team decision.
CaptchaResult carries the price of the solved task in USD.

- Note the USD price of a solution in the error handling section
- Show result.cost in the error handling example
@djaga-ru djaga-ru added the bug Something isn't working label Nov 19, 2026
@djaga-ru djaga-ru self-assigned this Nov 19, 2026
@djaga-ru djaga-ru added the documentation Improvements or additions to documentation label Nov 19, 2026
@djaga-ru
djaga-ru requested review from DZaznobin93 and evgeniykornev and removed request for DZaznobin93 and evgeniykornev November 19, 2026 16:04
@DZaznobin93
DZaznobin93 merged commit fc8c3a2 into main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants