Repository navigation
Version 0.11.0: the spec at API 1.21.0 and the records export - #19
Merged
Merged
Conversation
The saved spec follows the public document at API 1.21.0, merged three ways from 1.20.11. All 16 changes applied with no conflict. SubscriptionList.plan stays optional as a local edit. The models are regenerated. WorkspacePlan is new, and there are 175 in all. organizations.fax_history_csv and organizations.audit_csv return the records export as CSV text. faxes.list and faxes.iter take created_after and created_before. Docstrings name live_amount_micro, the workspace plan and the refund statuses of a one-time order. The shared fixtures gain the new serializer fields, and eight new tests cover the new surface. The README and the CHANGELOG say what changed.
The writing lint counts 31 words in it, once its double backticks are read as code. Both clients get the same two sentences. The meaning is unchanged.
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.21.0, released on 2026-11-16 (build
a8e44c11). The saved spec was merged from the public document of faxforagents/openapi#17, which is not merged yet.What a caller can notice
organizations.fax_history_csv(from_=..., to=...)andorganizations.audit_csv(from_=..., to=...)on both clients. They are the records export of the Agent workspace plan and return CSV text, asbilling.statement_csvdoes. The fax history needsfax:readandinbox:read. The audit trail needsorg:admin. Without the plan they raiseScopeErrorwith the codeworkspace_required.faxes.listandfaxes.itertakecreated_after(included) andcreated_before(left out). Left out, no query parameter is sent, so the request is the same as with 0.10.0.Quote.live_amount_micro,SubscriptionList.plan(the new modelWorkspacePlan),Number.included_with_workspace, andrefund_pending_microonOneTimeOrderandOneTimeOrderCreated.refunding,refundedandcanceled.refundedandcanceledreadnextdone, soone_time_sends.waitreturns on them.quotes.createnameslive_amount_micro,billing.list_subscriptionsnamesplan, andone_time_sends.getnames the refund statuses.New methods, a new parameter pair and new fields, so the version is 0.11.0. Nothing public is removed.
How the spec was refreshed
The public document at 1.20.11 was the base of a three-way merge with the saved spec, done on the parsed documents. Its 16 changes applied with no conflict, and every earlier local edit is kept. The merge script reproduces the merges of 0.9.0 and 0.9.1 byte for byte from their inputs. 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
SubscriptionList.plan, and the saved spec leaves it out ofrequired, as the README asks for new response fields.WorkspacePlankeeps therequiredlist of the public document. The saved spec has 165 operations and 175 schemas, the same sets as the public document.python scripts/gen_models.pywrote the models:WorkspacePlanis the one new model, 175 in all.The shared fixtures gain the fields of the server's serializers at
a8e44c11. The quotes gainlive_amount_micro: null, since they are test quotes priced on launch-v1. The number gainsincluded_with_workspace: false, and the one-time orders gainrefund_pending_micro: 0. The fixtures README says so.Checked
pytest -q -m "not live": 195 pass, 8 of them new. The live test was not run, since it needs a test key.ruff check src tests,ruff format --check src tests,mypy src,python scripts/gen_models.py --checkandsh scripts/truthcheck.shpass.uv buildandtwine check --strictpass. The wheel with[cli]installs in a clean venv.faxforagents versionprints 0.11.0, andfaxforagents.modelshas 175 names.OneTimeOrderdocstring copies the public document, whose new third sentence runs to 41 words. It stays as the server wrote it.No workflow file changed. Nothing is merged, tagged, released or published by this pull request.