3.17.0

(feat): Add InputStream-based method overloads for file upload endpoints. For each single-file upload endpoint, the generator now creates 4 additional overloads that accept InputStream + filename instead of File objects:

  • method(InputStream stream, String filename)
  • method(InputStream stream, String filename, MediaType mediaType)
  • method(InputStream stream, String filename, RequestOptions requestOptions)
  • method(InputStream stream, String filename, MediaType mediaType, RequestOptions requestOptions)

This enables streaming file uploads without requiring files to be written to disk first. The implementation uses the existing FileStream wrapper class and InputStreamRequestBody for OkHttp integration. Note: Okio automatically closes the stream after upload, but users should still use try-with-resources for proper resource management.

3.16.1

(fix): Fix OAuth client credentials token supplier to support custom properties and headers. OAuth token endpoints can now include custom headers (e.g., x-api-key) and custom body properties (e.g., entity_id) in addition to standard OAuth fields (client_id, client_secret, scopes). This enables authentication with non-standard OAuth implementations that require additional parameters.