@delopay/sdk 0.274.0 → 0.279.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -508,6 +508,8 @@ Network timeouts throw `DelopayError` with `code: 'TIMEOUT'`. Network failures t
508
508
 
509
509
  An export (`delopay.export.*`, `disputes.workspaceExport`) is held to the record count the server announces in `X-Delopay-Record-Count`: a file that arrives with a different number of records — or ends part-way through a line or a JSON document — throws with `code: 'EXPORT_INCOMPLETE'` (`err.data` is `{ expected_records, received_records }`) instead of resolving to a file that is missing rows. Pass `onProgress` in an export's options to follow the download, and `signal` to cancel it.
510
510
 
511
+ A live stream (`delopay.live.stream()`, dashboard JWT) throws with `code: 'NOT_EVENT_STREAM'` when the server answers 2xx with something other than `text/event-stream`, and with `code: 'TIMEOUT'` when it stays silent past `idleTimeoutMs` (default 45 s). It is never reconnected by the SDK: see the integration guide's _Live updates for dashboards_.
512
+
511
513
  **Structured error context (`err.data`):** populated for a small set of codes that benefit from a machine-readable hint. Currently:
512
514
 
513
515
  | `err.code` | `err.data` shape | Meaning |