Skip to content

Version 0.9.0: the spec at API 1.20.10, check_checkout and webhook_deleted - #16

Merged
bensynapse merged 1 commit into
mainfrom
api-1.20.10
Nov 15, 2026
Merged

bensynapse merged 1 commit into
mainfrom
api-1.20.10

Conversation

@bensynapse

Copy link
Copy Markdown
Contributor

The client follows API 1.20.10, released on 2026-11-15. The saved spec was merged from the public document of faxforagents/openapi#15, which is not merged yet.

What a caller can notice

  • billing.get_topup_session(topup_session_id, check_checkout=True) asks Stripe about the hosted Checkout of an open top-up, on both clients. The new field TopupSession.checkout_status reads open, complete, processing or expired, and None when not asked. The default is False, which sends no query parameter, so a caller who leaves it out sends the same request as with 0.8.0.
  • Delivery.webhook_deleted is new. Only DeliveryDetail had it. It stays optional on Delivery, so a payload without it still parses.
  • Docstrings: webhooks.replay_delivery raises ConflictError with details["reason"] webhook_deleted for a deleted webhook. webhooks.delete says the waiting deliveries end as failed. one_time_sends.check_cover names the limits of create, 120, 200 and 2,000 characters. billing.cancel_topup_session names details["reason"] paid.
  • The new descriptions of the public document: OneTimeCoverCheck, the counters of PolicyUsage, policy_name and version of PolicyVerdict and PolicyEvaluation, and 15 MiB on NumberUpdate.email_pdf.

A new parameter and new fields, so the version is 0.9.0. Nothing public is removed.

How the spec was refreshed

The public document at 1.20.9 was the base of a three-way merge with the saved spec, done on the parsed documents. All 83 changes of the public document applied with no conflict, and every local declaration and earlier schema is kept. The result was written in the style of scripts/curate.py, which reproduces the old file byte for byte.

One local edit is new. The public document requires Delivery.webhook_deleted, and the saved spec leaves it out of required. The README asks for new response fields to stay optional, as Capabilities.extraction and Capabilities.one_time already are. python scripts/gen_models.py wrote the models.

The saved top-up shapes in tests/fixtures gain checkout_status: null, as the server's topup_json sends it at 1.20.10. The fixtures README says so.

Checked

  • pytest -q -m "not live": 183 pass, 4 of them new. The live test was not run, since it needs a test key.
  • ruff check, ruff format --check, mypy src.
  • python scripts/gen_models.py --check and sh scripts/truthcheck.sh.
  • uv build, twine check --strict, and the wheel installed in a clean venv: faxforagents version prints 0.9.0.

No workflow file changed. Nothing is published by this pull request.

The saved spec follows the public document at API 1.20.10.
It was merged three ways on the parsed documents, with the public document at 1.20.9 as the base.
There were no conflicts, and every local declaration and earlier schema is kept.
billing.get_topup_session takes check_checkout on both clients, false by default.
TopupSession gains checkout_status and Delivery gains webhook_deleted.
Delivery.webhook_deleted stays optional so older payloads still parse.
Docstrings name the 409 of a replay to a deleted webhook and the cover limits.
@bensynapse
bensynapse merged commit 43f3b30 into main Nov 15, 2026
12 checks passed
@bensynapse
bensynapse deleted the api-1.20.10 branch November 15, 2026 20:24
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