Skip to content

fix: align with the regenerated API spec (3.1.1) - #21

Merged
s00d merged 1 commit into
masterfrom
fix/spec-2026-11
Nov 20, 2026
Merged

s00d merged 1 commit into
masterfrom
fix/spec-2026-11

Conversation

@s00d

@s00d s00d commented Nov 20, 2026

Copy link
Copy Markdown
Owner
  • wait_code: no KeyError on a getState operation without response (keeps polling); retries ApiError TRY_AGAIN_LATER (HTTP 429), ERROR_UNDEFINED, INTERVAL_CONCURRENT_REQUESTS_ERROR until the deadline.
  • Types: Profile number int | None / country str | None (were swapped); Operation["response"] optional; RentSms["code"] str | int (integer 0 for a notify SMS, kept as sent); nullable country_text/country_original, PaymentOrder currency/form_text; paylist kept when it arrives as a JSON array; rent sum number or decimal string.
  • Error table: "0", ACCOUNT_CLEANED, USER_NOT_ACTIVATED, ERROR_UNDEFINED, FORWARD_NOT_SUPPORTED added; ERROR_NO_KEY, NO_NUMBER_FOR_FORWARD, ACCOUNT_IDENTIFICATION_REQUIRED, API_DISABLED dropped; NoNumberError only for NO_NUMBER; HTTP 429 test.
  • MockOnlineSim mirrors the JS reference (MOCK.md): setOperationRevise/setOperationOk tzid rules, missing vs wrong key, getNum+number fields, rent reservation/confirmation, sum types, extend/close rules, webhook-log params, any scheme:// URL, payment forms/buttons, getFreeList 44-first / count clamp / ISO created_at / ignore / content.
  • Docs (rent, numbers, user, webhooks, testing, index, README), CHANGELOG.

Proposed version: 3.1.1 (patch). Not released.

🤖 Generated with Claude Code

- wait_code: no KeyError on a getState operation without `response`; retries
  ApiError TRY_AGAIN_LATER / ERROR_UNDEFINED / INTERVAL_CONCURRENT_REQUESTS_ERROR
  until the deadline.
- Types: Profile number int|None, country str|None; Operation.response
  optional; RentSms.code str|int (0 for notify, kept as sent); nullable
  free-list and payment-order fields; paylist kept when sent as a JSON array.
- Error table: add "0", ACCOUNT_CLEANED, USER_NOT_ACTIVATED, ERROR_UNDEFINED,
  FORWARD_NOT_SUPPORTED; drop dead codes; NoNumberError only for NO_NUMBER.
- MockOnlineSim mirrors the JS reference: revise/ok tzid rules, missing vs
  wrong key, rent reservation/confirmation, sum types, extend/close rules,
  webhook-log params, any scheme:// URL, payment forms/buttons, free list
  44-first, count clamp, ISO created_at, ignore/content.
- Docs, CHANGELOG, version 3.1.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@s00d
s00d merged commit 8365c8f into master Nov 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant