Skip to content

Version 0.7.0: the spec at API 1.20.6 and a method for each new call - #14

Merged
bensynapse merged 2 commits into
mainfrom
api-1.20.6
Nov 15, 2026
Merged

bensynapse merged 2 commits into
mainfrom
api-1.20.6

Conversation

@bensynapse

Copy link
Copy Markdown
Contributor

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

What a caller can notice

  • 14 new methods on both clients, one per new operation: billing.statement, billing.statement_csv, documents.rename, webhooks.get_delivery, billing.delete_budget, agents.archive, numbers.dismiss_order, policies.check_rules, members.resend_invitation, members.link_invitation, organizations.list_data_requests, organizations.withdraw_data_deletion, one_time_sends.preview and one_time_sends.get_page. billing.iter_statement follows the cursor.
  • New parameters. q on faxes.list and faxes.iter. source, exclude_source and q on documents.list and documents.iter. archived on inbox.list and inbox.iter. include_archived on agents.list and billing.list_budgets. key_id, agent_id and connection_id on policies.evaluate.
  • approvals.reject takes no reason for a help request. A send request still needs one.
  • 18 new models and new fields on 27, among them DocumentPage.total, InboxPage.unread and Receipt.seller.

Nothing is removed and no field changes type, so the version is 0.7.0.

How the spec was refreshed

The public document at 1.20.5 was the base of a three-way merge with the saved spec. One conflict came up: PolicyEvaluation gained three fields where the spec keeps its earlier usage field. Both are kept. Every earlier schema the spec keeps is still there, and the paths equal the public document. python scripts/gen_models.py wrote the models.

There are no new error classes. Errors map to classes by status here, and 1.20.6 adds no customer error code.

Checked

  • pytest -q -m "not live": 171 pass, 18 of them new.
  • ruff check, ruff format --check, mypy src.
  • python scripts/gen_models.py --check and sh scripts/truthcheck.sh.
  • uv build, twine check, and the wheel installed in a clean venv: faxforagents version prints 0.7.0.

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

The saved spec follows the public document at API 1.20.6.
It was merged three ways, with the public document at 1.20.5 as the base.
One conflict came up in PolicyEvaluation, and both sides are kept.
Each of the 14 new operations has a method on both clients.
Among them are billing.statement, documents.rename, numbers.dismiss_order and policies.check_rules.
faxes.list, documents.list, inbox.list, agents.list and billing.list_budgets take the new filters.
policies.evaluate can name another key, agent or connected app.
approvals.reject takes no reason for a help request.
Tests cover each new method and parameter.
billing.statement listed three kinds of line as examples.
It now names all eleven the API takes in kind.
@bensynapse
bensynapse merged commit b4eba64 into main Nov 15, 2026
12 checks passed
@bensynapse
bensynapse deleted the api-1.20.6 branch November 15, 2026 12:15
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