TypeScript v4 SDKs now stream server-sent events. An operation whose success response is text/event-stream resolves to an EventStream<T> typed over the event's data schema, and you read it with for await.
Adding Support for Pagination in Python v4 SDKs
Python v4 SDKs now support pagination, covering the four widely used strategies: Offset, Page, Cursor and Link based pagination. A paginated operation returns a Paginator[Page, Item] on the synchronous client and an AsyncPaginator on the asynchronous one.
HTTP Logging in Python v4 SDKs
Python v4 SDKs now log HTTP requests and responses through Python's standard logging module. Nothing is printed until you turn the SDK's logger on, the same way you would for any library, or set one environment variable.
HTTP Logging in TypeScript v4 SDKs
TypeScript v4 SDKs now log HTTP requests, responses and retries. Logging is off by default and is switched on through the logging client option, or from the environment without a code change.
Invalid Example Values Are Now Removed During Import with Warnings
We've improved how example values are validated during API import. An example that doesn't match its declared type or format is now removed from the API definition, and a warning tells you exactly where it was found. Previously, some invalid examples slipped through into your SDKs and documentation, while others were removed without any warning.
Precise Integer and Float Validation in TypeScript v4 SDKs
TypeScript v4 SDKs now check numbers by the kind your specification declares rather than accepting any number for every numeric field.
Moving Python v4 SDKs to httpx 2
Python v4 SDKs now depend on httpx2 in place of httpx. The upgrade brings the SDK onto the 2.x line of its HTTP library while keeping the client surface you already use unchanged.
Configurable Retries in Python v4 SDKs
Python v4 SDKs now retry failed requests, and retrying is on by default. The client accepts a retry_options keyword that controls how many retries are made, which status codes and methods qualify, and how the backoff grows between attempts.
Adding Retries to TypeScript v4 SDKs
TypeScript v4 SDKs now retry failed requests, and retrying is on by default. The retry client option controls how many retries are made, which status codes and methods qualify, how long each attempt may take, and how the backoff grows between attempts.
C#, Python and TypeScript v4 SDKs Now Generally Available
The v4 SDKs for C#, Python and TypeScript are now generally available. All three leave beta today and generate as stable SDKs from version 2.x of the APIMatic CLI.