Repository navigation
Version 0.8.0: the spec at API 1.20.9, top-up cancel and cover check - #15
Merged
Merged
Conversation
The saved spec follows the public document at API 1.20.8. It was merged three ways, with the public document at 1.20.6 as the base. Five fields the spec declared itself are now in the public document, whose declarations replace them. billing.cancel_topup_session and one_time_sends.check_cover are new on both clients. The statement methods take type, and kind keeps working. The rotate_api_key docstring names the ConflictError of an expired key. Tests cover each new method and parameter.
one_time_sends.checkout said the card is authorized at checkout. API 1.20.8 says it is held and charged only for the pages that arrive.
The saved spec follows the public document at API 1.20.9, which changed only wording. The checkout docstring says a failed fax costs nothing. A fax that stops part way costs the price of the pages the carrier confirms. The README and the CHANGELOG say the same. The version stays 0.8.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The client follows API 1.20.9, released on 2026-11-15. The saved spec was merged from the public document of faxforagents/openapi#14, which is not merged yet.
What a caller can notice
billing.cancel_topup_session(topup_session_id)closes the hosted Checkout of an open top-up.one_time_sends.check_cover(...)says whether a cover message fits on its page, with no key.billing.statement,billing.iter_statementandbilling.statement_csvtaketype.kindkeeps working, and two different types in both raiseInvalidRequestError.Quote.policy_evaluationis aPolicyVerdictandPolicyEvaluation.usageaPolicyUsage, where both were dicts.Quote.pricingisper_pageorone_time.FaxJob.approval_idandFaxJob.policy_version_idkeep their type.OneTimeCoverCheck,OneTimeCoverRoom,PolicyVerdictandPolicyUsage, the new fieldFaxJob.route_pausedand the new descriptions of the public document.rotate_api_keyraisesConflictErrorfor an expired key, withdetails["reason"]key_expired.pdf_urlisNoneon the receipt of an automatic top-up.one_time_sends.checkoutsays the card is held. It states the payment rule of 1.20.9. A failed fax costs nothing. A fax that stops part way costs the price of the pages the carrier confirms.Two operations and a parameter are new, so the version is 0.8.0. The two dicts that became models are a change a caller can see, and the CHANGELOG says so under Changed.
How the spec was refreshed
The public document at 1.20.6 was the base of a three-way merge with the saved spec, done on the parsed documents. A text merge was tried first. It gave one conflict in
FaxJob. It also left two declarations each ofQuote.pricing,Quote.policy_evaluationandPolicyEvaluation.usagewith no conflict at all. PyYAML reads the last of two equal keys and says nothing.The local declarations (
x-sdk-route) of those three fields and ofFaxJob.approval_idandFaxJob.policy_version_idgave way to the public ones. Every other local declaration and every earlier schema is kept, and the paths equal the public document.python scripts/gen_models.pywrote the models.1.20.9 changed only the checkout's wording. A second three-way merge, based on the public document at 1.20.8, took it with no conflict.
There are no new error classes. Errors map to classes by status here.
Checked
pytest -q -m "not live": 179 pass, 8 of them new.ruff check,ruff format --check,mypy src.python scripts/gen_models.py --checkandsh scripts/truthcheck.sh.uv build,twine check, and the wheel installed in a clean venv:faxforagents versionprints 0.8.0.No workflow file changed. Nothing is published by this pull request.