api/internal/sdk_services library

Classes

CancellableSubscription
Subscription handle to cancel an active Server-Sent Events stream.
DioNetworkClient
Canonical Dio-backed implementation of NetworkClient.
MultipartFilePart
A single binary file part for MultipartUploadRequest.
MultipartUploadRequest
Multipart form data upload request for binary assets.
NetworkClient
Canonical network client interface for all Digia Engage networking operations.
NetworkRequest
Canonical HTTP request representation for Digia Engage.
NetworkResponse
Canonical HTTP response representation for Digia Engage.
SDKServices
Encapsulates the core services of the Digia Engage SDK.
SseEvent
A parsed Server-Sent Event frame.
SseStreamHandler
Handler for events dispatched from an active Server-Sent Events stream. A stream ends with exactly one terminal callback: onError when it failed, onClosed when it ended cleanly. Neither follows a cancel.

Enums

HttpMethod
Supported HTTP methods for NetworkRequest.

Typedefs

NetworkClientFactory = NetworkClient Function(Map<String, String> commonHeaders())
Builds the SDK's network client from the per-request common headers the composition provides.

Exceptions / Errors

NetworkException
A request that did not complete: no connection, a timeout, a cancel, or a response cut short. Thrown by NetworkClient.execute and NetworkClient.executeMultipart in place of the engine's own exception, so failure diagnostics can name what went wrong without knowing the engine. An HTTP error status is not one of these: it arrives as an ordinary NetworkResponse.
SseHttpException
An SSE request answered with a non-2xx status: the stream never opened. Passed to SseStreamHandler.onError so the caller can tell a rejection (401/403, not worth retrying) from a dropped connection.