Skip to content

Releases

v0.47.0

Choose a tag to compare

@CyMule CyMule released this 05 Nov 18:06
acb2bce

What's Changed

Features

  • Expose the verdict the API declares on an error as typed attributes on every HTTP error: retryable, error_type, error_reason and audience. Errors the API raises deliberately publish these fields next to detail, eg a 503 OCR timeout with "retryable": false. Callers no longer need to parse err.body to read them. Each attribute is None when the body is not JSON, the field is absent, or its value has the wrong type. The retry loop reads retryable with the same parser.
  • Add skip_preflight to CreateWorkflow and UpdateWorkflow. Set it to True to skip the job preflight check for a workflow's jobs; on update, leaving it unset keeps the current value. WorkflowInformation.skip_preflight reports the workflow's current setting. For a one-off job, set "skip_preflight": true in the request_data JSON passed to jobs.create_job.

Fixes

  • Deserialize jobs the preflight check rejected. JobStatus and JobProcessingStatus gain REJECTED; previously jobs.get_job raised on a rejected job, and one rejected job failed the whole jobs.list_jobs page. JobInformation.status and JobDetails.processing_status now also accept a status this SDK version does not know, returning it as a plain str instead of raising. Known statuses are still returned as enum members, but the fields are typed Union[JobStatus, str] and Union[JobProcessingStatus, str], so type-checked code that reads .value or .name from them needs to handle the str case.
  • Expose why a job was rejected. JobNodeDetails gains failure_category (a PreflightFailureCategory, or a plain str for a category this SDK version does not know) and failure_reason, set on the node that failed preflight in jobs.get_job_details. Previously both were dropped during deserialization.
  • Bump locked certifi to 2026.10.19, which removes the emSign ECC Root CA - G3 root after eight eMudhra intermediate CA private keys were compromised. requests and httpx trust certifi's bundle and do not check revocation, so with the older bundle they accepted certificates chaining to that root. certifi is now also a direct dependency at >=2026.10.19, so pip installs pick up the new bundle too.
  • Long partitions behind a NAT or load balancer idle timeout could never return, leaving the client waiting for its full read timeout. SDK-owned HTTP clients now enable TCP keepalive, including split-PDF requests. Connections made through an HTTP(S)/SOCKS proxy are not covered. Configure probes with UNSTRUCTURED_CLIENT_TCP_KEEPALIVE_IDLE (60 seconds), UNSTRUCTURED_CLIENT_TCP_KEEPALIVE_INTERVAL (30 seconds), and UNSTRUCTURED_CLIENT_TCP_KEEPALIVE_COUNT (5); set UNSTRUCTURED_CLIENT_TCP_KEEPALIVE=0 or false to disable. Caller-supplied clients are unchanged.

Full Changelog: v0.46.4...v0.47.0

v0.46.4

Choose a tag to compare

@CyMule CyMule released this 19 Oct 15:20
24fadc4

What's Changed

  • chore(none): decommission dead Speakeasy generator scaffolding by @CyMule in #349
  • test(none): pass input_files in the custom DAG job integration test by @awalker4 in #354
  • fix: keep the server_url path when splitting PDFs by @CyMule in #355
  • fix: don't retry an API error that declares itself non-retryable by @CyMule in #358

Full Changelog: v0.46.2...v0.46.4

v0.46.2

Choose a tag to compare

@awalker4 awalker4 released this 24 Aug 15:42
8a077d7

0.46.2

Fixes

Accept the API URL the Transform Platform hands you as server_url. The app's API Keys page and the docs give you https://platform-api.transform.unstructured.io/api/v1, which works with curl but 404'd every Platform call in the SDK: the URL cleaner only stripped a path for unstructuredapp.io hosts, so the /api/v1 survived and the operation's own /api/v1/jobs/ was appended on top, producing /api/v1/api/v1/jobs/. Hosts under unstructured.io are now recognized too, and are matched on domain boundaries so a lookalike host like unstructuredapp.io.example.com keeps its path and scheme. A server_url passed to an individual operation is cleaned as well — previously only the client-level URL was, so client.jobs.list_jobs(request={}, server_url=...) still 404'd.

v0.46.1

Choose a tag to compare

@badGarnet badGarnet released this 05 Aug 16:12
56d2aaa

What's Changed

  • fix: raise on an empty HTTP-200 split chunk in NDJSON mode (0.46.1) by @badGarnet in #348

Full Changelog: v0.46.0...v0.46.1

v0.46.0

Choose a tag to compare

@badGarnet badGarnet released this 04 Aug 17:32
6314d9a

What's Changed

  • feat: NDJSON elements-file mode for partition (0.46.0) by @badGarnet in #347

Full Changelog: v0.45.0...v0.46.0

v0.45.0

Choose a tag to compare

@fxdgear fxdgear released this 05 Jun 21:36
7ab4de9

Features

  • Make the split-PDF httpx.AsyncClient connection-pool limits configurable via env vars: UNSTRUCTURED_CLIENT_MAX_CONNECTIONS (default 100), UNSTRUCTURED_CLIENT_MAX_KEEPALIVE_CONNECTIONS (default 20), and UNSTRUCTURED_CLIENT_KEEPALIVE_EXPIRY (default 5.0s). Defaults match httpx, so behavior is unchanged unless set. Useful when deploying behind a connect-time-only load balancer (e.g. Kubernetes ClusterIP without a mesh) where shorter keepalives force connections to redistribute across backend pods.
  • Honor the standard SSL_CERT_FILE / REQUESTS_CA_BUNDLE env vars to point the split-PDF httpx.AsyncClient at a custom trust store, so a single env-var setting applies uniformly across Python tooling.
  • Add UNSTRUCTURED_CLIENT_TLS_CLIENT_CERT and UNSTRUCTURED_CLIENT_TLS_CLIENT_KEY env vars to wire an mTLS client certificate into the split-PDF httpx.AsyncClient (single PEM, or split cert + key files).
  • Extend the split-PDF event=plan_created log to include the resolved pool limits and trust-store / mTLS mode so the active config is visible in production logs.

v0.44.1

Choose a tag to compare

@aballman aballman released this 27 May 18:03
5e6f238

Features

  • Add min_attempts and absolute_max_elapsed_time_ms fields to BackoffStrategy. min_attempts is the minimum number of retry attempts that must fire before max_elapsed_time is honored; defaults to 0 (preserves existing behavior). absolute_max_elapsed_time_ms caps when a new retry can start (does not interrupt in-flight requests); defaults to None. Together these close a short-circuit where a single slow first attempt could exhaust the retry budget before any retry fired.

v0.44.0

Choose a tag to compare

@awalker4 awalker4 released this 07 May 20:11
3577cd6

0.44.0

Breaking changes

  • Removed deprecated connector config models from the SDK (e.g. S3SourceConnectorConfig, AzureDestinationConnectorConfig). Pass connector configs as plain dicts with arbitrary fields. The SDK is no longer coupled to backend connector schemas — new fields work without an SDK upgrade.

v0.43.2

Choose a tag to compare

@PastelStorm PastelStorm released this 04 Apr 14:30
971a150

What's Changed

Full Changelog: v0.43.1...v0.43.2

v0.43.1

Choose a tag to compare

@PastelStorm PastelStorm released this 04 Apr 13:26
39b8263

What's Changed

New Contributors

Full Changelog: v0.42.12...v0.43.1