feat: harden sms activation skill and add deterministic e2e runner

This commit is contained in:
luofengyuan committed 2026-05-18 18:23:17 +08:00
commit 702280a416
22 files changed
+24363

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
# sms-verification-number
## Auth
- Auth is via `api_key` query parameter.
- Always include `lang`.
- The API supports GET and POST on the same handler base.
## Core endpoints
- `getBalance`
- `getCountryAndOperators`
- `getPrices`
- `getServicesAndCost`
- `getServicesAndCostWithStatistics`
- `getNumber`
- `getNumberV2`
- `setStatus`
- `getStatus`
- `getCurrentActivationsList`
## Key responses
- `getBalance` returns a numeric balance string.
- `getCountryAndOperators` returns country records with operator lists.
- `getNumber` returns `ACCESS_NUMBER:ID:NUMBER` on success.
- `getNumberV2` returns JSON with `activationId`, `phoneNumber`, `activationCost`, `currency`, `countryCode`, `canGetAnotherSms`, `activationTime`, and `activationOperator`.
- `getStatus` returns `STATUS_WAIT_CODE`, `STATUS_CANCEL`, or `STATUS_OK:CODE`.
## Status changes
- `3` requests another SMS.
- `6` finishes the number.
- `8` cancels the number, only when no SMS has been received yet.
## Useful errors
- `NO_BALANCE`
- `NO_NUMBERS`
- `WRONG_MAX_PRICE:MIN_PRICE`
- `BAD_ACTION`
- `BAD_KEY`
- `BAD_LANG`
- `NO_ACTIVATION`
- `ERROR_SQL`
- `ERROR_API`
- `REQUEST_LIMIT`
## Practical notes
- Prefer `getServicesAndCostWithStatistics` when the task needs price and availability together.
- Use `maxPrice` when the user wants a price ceiling.
- Use `getCurrentActivationsList` when the task needs a list of active or historical orders.