dataerai transfer daemon. Operations resolve as soon as the daemon accepts them; transfer progress and completion arrive as events.
Requirements
- Node.js 18+
- The
dataeraibinary on your system (see the CLI overview). - Signed in with
dataerai auth login(see Authenticate).
Install
Quickstart
Methods
| Method | Description |
|---|---|
connect() | Connect to the daemon (auto-starts it when binaryPath is set). |
authCheck() | Return the logged-in user and token expiry. |
login(params?) / logout() | Sign in via the browser flow / clear stored credentials. |
assetUpload(params) | Start an upload; resolves with { transferId, assetId, contentId, ... }. |
assetDownload(params) | Start a download to destDir; resolves with accepted file info. |
getMetadata(assetId) | Retrieve metadata. |
setMetadata(assetId, patch) | Update metadata fields. |
listTransfers() | List known transfers. |
pauseTransfer / resumeTransfer / cancelTransfer | Control a running transfer. |
destroy() | Disconnect and clean up. |
Events
Listen for progress and completion:| Event | Fires when |
|---|---|
transfer:progress | A chunk completes — carries bytesDone / bytesTotal. |
asset:uploadComplete | An upload finishes — carries assetId, contentId. |
asset:downloadComplete | A download finishes — carries destDir. |
transfer:failed | A transfer fails — carries code and message. |
connected / disconnected | The daemon connection changes. |
Next steps
CLI
The command-line client the SDK builds on.
Python SDK
The same operations from Python.