Unified error envelope — minimum shape returned by failed sync API calls.
All invoke() rejections satisfy this interface. Older APIs may only carry success + error (back-compat), but newly migrated APIs MUST include code.
invoke()
success
error
code
Optional
Machine-readable error code; required on newly migrated APIs.
Additional context, e.g. { playlist: 3, isLocked: true }.
{ playlist: 3, isLocked: true }
Unified error envelope — minimum shape returned by failed sync API calls.
All
invoke()rejections satisfy this interface. Older APIs may only carrysuccess+error(back-compat), but newly migrated APIs MUST includecode.