Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.9.1 (2026-11-16)

Follows API 1.20.11. The saved spec has 163 operations and the models are regenerated from it.
Only descriptions changed. Nothing is added or removed.

The description of `TopupSession.checkout_status` says it is also `None` for a top-up that is not open.
Stripe is asked about an open top-up only, as the docstring of `billing.get_topup_session` already said.
The saved spec gives `replay_webhook_delivery` a 409 of its own, which names `details.reason` `webhook_deleted`.
`webhooks.replay_delivery` already raises `ConflictError` with `details["reason"]` `webhook_deleted` there, as 0.9.0 documented.

## 0.9.0 (2026-11-15)

Follows API 1.20.10. The saved spec has 163 operations and the models are regenerated from it.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ ruff check src tests && mypy src
sh scripts/truthcheck.sh
```

`spec/openapi.yaml` follows the public document at API version 1.20.10 and keeps the schemas of the earlier live documents.
`spec/openapi.yaml` follows the public document at API version 1.20.11 and keeps the schemas of the earlier live documents.
The two validation error schemas are the exception. 0.5.0 removed them because the server never sent that shape.
0.6.0 removed two cost fields of an extraction, because the server stopped sending them.
0.8.0 replaced five fields it had declared itself with the public ones, such as `Quote.policy_evaluation`.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "faxforagents"
version = "0.9.0"
version = "0.9.1"
description = "Python client for Fax for Agents: a fax API, a hosted MCP server and SDKs built so AI agents can send and receive faxes."
readme = "README.md"
requires-python = ">=3.10"
Expand Down
16 changes: 12 additions & 4 deletions spec/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Fax for Agents API, refreshed from the public document of https://github.com/faxforagents/openapi at API 1.20.10.
# Fax for Agents API, refreshed from the public document of https://github.com/faxforagents/openapi at API 1.20.11.
# All earlier schemas are kept. Existing SDK routes, model names and serializer additions are retained.
openapi: 3.1.0
info:
Expand Down Expand Up @@ -26,7 +26,7 @@ info:
x-logo:
url: https://faxforagents.com/brand/logo-512.png
altText: Fax for Agents
version: 1.20.10
version: 1.20.11
servers:
- url: https://api.faxforagents.com
description: Production (live and test keys)
Expand Down Expand Up @@ -2112,7 +2112,14 @@ paths:
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
description: 'The webhook of this delivery was deleted, so nothing can be sent to it again. error.code
is conflict and error.details.reason is "webhook_deleted". Replay a delivery of a webhook that still
exists. idempotency_key_conflict: the Idempotency-Key was used with a different request, or that request
is still being processed.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'410':
$ref: '#/components/responses/Gone'
'422':
Expand Down Expand Up @@ -16191,7 +16198,8 @@ components:
asks with check_checkout=true. complete: the payment was made at Stripe, and the wallet is credited
when Stripe''s event arrives, usually within seconds. processing: the person finished at Stripe with
a payment method that confirms later, such as a bank debit, which can take days. Null when not asked,
or when Stripe could not be read.'
when the top-up is not open (Stripe is asked about an open top-up only), or when Stripe could not be
read.'
additionalProperties: true
type: object
required:
Expand Down
2 changes: 1 addition & 1 deletion src/faxforagents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from __future__ import annotations

__version__ = "0.9.0"
__version__ = "0.9.1"

from faxforagents._http import ORDER_TOKEN_HEADER
from faxforagents.async_client import AsyncClient
Expand Down
4 changes: 2 additions & 2 deletions src/faxforagents/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Typed models of the Fax for Agents API.

GENERATED by scripts/gen_models.py from spec/openapi.yaml (API version 1.20.10). Do not edit by hand.
GENERATED by scripts/gen_models.py from spec/openapi.yaml (API version 1.20.11). Do not edit by hand.
Money fields ending in ``_micro`` are integer USD micro-units (39000 is $0.039). Timestamps are ISO 8601
strings in UTC. Response models accept fields the API adds later. Request models refuse unknown fields.
"""
Expand Down Expand Up @@ -2146,7 +2146,7 @@ class TopupSession(_Response):
created_at: str
expires_at: str | None
completed_at: str | None
checkout_status: Literal["open", "complete", "processing", "expired"] | None = Field(None, description="Stripe's own state of the hosted Checkout, read from Stripe when a read of an open top-up asks with check_checkout=true. complete: the payment was made at Stripe, and the wallet is credited when Stripe's event arrives, usually within seconds. processing: the person finished at Stripe with a payment method that confirms later, such as a bank debit, which can take days. Null when not asked, or when Stripe could not be read.")
checkout_status: Literal["open", "complete", "processing", "expired"] | None = Field(None, description="Stripe's own state of the hosted Checkout, read from Stripe when a read of an open top-up asks with check_checkout=true. complete: the payment was made at Stripe, and the wallet is credited when Stripe's event arrives, usually within seconds. processing: the person finished at Stripe with a payment method that confirms later, such as a bank debit, which can take days. Null when not asked, when the top-up is not open (Stripe is asked about an open top-up only), or when Stripe could not be read.")


class TopupSessionPage(_Response):
Expand Down
Loading