diff --git a/CHANGELOG.md b/CHANGELOG.md index 59a3a38..54a62e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index bad0aed..632d9b9 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/pyproject.toml b/pyproject.toml index 5b93383..0d9841f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/spec/openapi.yaml b/spec/openapi.yaml index 4e37cee..db55e33 100644 --- a/spec/openapi.yaml +++ b/spec/openapi.yaml @@ -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: @@ -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) @@ -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': @@ -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: diff --git a/src/faxforagents/__init__.py b/src/faxforagents/__init__.py index dd1b64d..4c506c4 100644 --- a/src/faxforagents/__init__.py +++ b/src/faxforagents/__init__.py @@ -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 diff --git a/src/faxforagents/models.py b/src/faxforagents/models.py index 4f903ff..390be51 100644 --- a/src/faxforagents/models.py +++ b/src/faxforagents/models.py @@ -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. """ @@ -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):