Skip to content

Version 0.11.0: the spec at API 1.21.0 and the records export - #19

Merged
bensynapse merged 2 commits into
mainfrom
api-1.21.0
Nov 16, 2026
Merged

bensynapse merged 2 commits into
mainfrom
api-1.21.0

Conversation

@bensynapse

@bensynapse bensynapse commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

  • New methods organizations.fax_history_csv(from_=..., to=...) and organizations.audit_csv(from_=..., to=...) on both clients. They are the records export of the Agent workspace plan and return CSV text, as billing.statement_csv does. The fax history needs fax:read and inbox:read. The audit trail needs org:admin. Without the plan they raise ScopeError with the code workspace_required.
  • faxes.list and faxes.iter take created_after (included) and created_before (left out). Left out, no query parameter is sent, so the request is the same as with 0.10.0.
  • New fields: Quote.live_amount_micro, SubscriptionList.plan (the new model WorkspacePlan), Number.included_with_workspace, and refund_pending_micro on OneTimeOrder and OneTimeOrderCreated.
  • One-time orders accept the statuses refunding, refunded and canceled. refunded and canceled read next done, so one_time_sends.wait returns on them.
  • Docstrings: quotes.create names live_amount_micro, billing.list_subscriptions names plan, and one_time_sends.get names 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 of required, as the README asks for new response fields. WorkspacePlan keeps the required list of the public document. The saved spec has 165 operations and 175 schemas, the same sets as the public document. python scripts/gen_models.py wrote the models: WorkspacePlan is the one new model, 175 in all.

The shared fixtures gain the fields of the server's serializers at a8e44c11. The quotes gain live_amount_micro: null, since they are test quotes priced on launch-v1. The number gains included_with_workspace: false, and the one-time orders gain refund_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.
  • The 8 new tests and the surface test fail against the client and models of 0.10.0.
  • ruff check src tests, ruff format --check src tests, mypy src, python scripts/gen_models.py --check and sh scripts/truthcheck.sh pass.
  • uv build and twine check --strict pass. The wheel with [cli] installs in a clean venv. faxforagents version prints 0.11.0, and faxforagents.models has 175 names.
  • Every added README, CHANGELOG and hand-written docstring line passes the human-writing lint (docs channel). The second commit splits one docstring sentence the lint flags once double backticks are read as code. The generated OneTimeOrder docstring 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.

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.
@bensynapse
bensynapse merged commit 302a38a into main Nov 16, 2026
20 of 21 checks passed
@bensynapse
bensynapse deleted the api-1.21.0 branch November 16, 2026 20:06
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