Repository navigation
v1.2.0
Full Changelog: v1.1.1...v1.2.0
Highlights
- Richer playback contracts — hydrated watchlist items, batch playback suggestions, and a full-row playback view.
- One-call admin dashboard —
getDashboardView()returns stats, libraries, worker operations, audit feed, error logs and update status together. - Explicit pagination contracts — one flat envelope everywhere (admin pages included) and a clear split between offset and cursor endpoints.
- Codes, not text — remote-access checks now return stable machine codes with params; clients own all translated text.
- Typed request/response schemas for playback progress, stream prefs, heartbeat, watchlist statuses and the worker status filter.
Breaking changes
- Admin page envelopes are flat
- Before:
{ data, pagination: { total, page, limit, totalPages } } - After:
{ page, limit, total, totalPages, data } - Affects
AdminUsersPage,AdminLogsPage,AdminAuditPageand theaudit/logsfields insideAdminDashboardViewResponse. - Empty pages now report
totalPages: 0.
- Before:
- Cursor contracts split from offset contracts
PaginationQueryis offset-only (page,limit); cursor endpoints use the newCursorPaginationQuery(cursor).PaginatedResponse<T>no longer carriesnextCursor; cursor endpoints return the newCursorPaginatedResponse<T>.me.getWatchedHistorynow acceptsCursorPaginationQuery; the deadperPageparameter is gone.- Cursor mode applies to
GET /v1/metadataandGET /v1/me/watched-historyonly.
- Remote-access checks return codes
RemoteAccessCheckchanged from{ id, ok, title, detail }to{ id, ok, code, params? }.- Translate
remote_access.*codes on the client (website already does).
New in 1.2.0
BatchSmartPlayResponseSchema+me.getPlaybackSuggestionsBatch(metadataIds)(up to 50 ids) — suggestion + watchlist flag per card in one request.HydratedWatchlistItemSchema+me.getWatchlist({ hydrate: true })overload — each item carries its full metadata card.PlaybackViewResponseSchema.mediaFileis now the complete row (no projection) so the player UI works on the strict shape.worker:progressrealtime event (throttled to at most one message per second per running job).AdminDashboardViewResponseSchema+admin.getDashboardView()— replaces six parallel dashboard requests.- New typed schemas:
UpdatePlaybackProgressSchema,StreamPrefsSchema,HeartbeatBodySchema,WatchlistStatusSchema,WatchlistStatusesResponseSchema,WorkerStatusFilterSchema. PaginationMetaSchemais now the single source for every page envelope.
Upgrade notes
- Bump
@reelvault/sdkto^1.2.0. - Update consumers that read
.paginationon admin endpoints (see breaking change 1) and translate remote-access codes (breaking change 3). - Everything else is wire-compatible; the remaining changes are schema deduplication and type exports.