Skip to content

RFC: Favourites API#16

Draft
filvecchiato wants to merge 7 commits into
mainfrom
rfc/0013-favourites-api
Draft

RFC: Favourites API#16
filvecchiato wants to merge 7 commits into
mainfrom
rfc/0013-favourites-api

Conversation

@filvecchiato
Copy link
Copy Markdown
Collaborator

@filvecchiato filvecchiato commented Apr 23, 2026

Summary

Adds the Favourites trait with subscribe, add, and forget methods for managing the host's bookmarked-product catalogue. Products can query, add, and remove bookmarked apps from the host's local catalogue.

Changes

  • rust/crates/truapi/src/api/favourites.rs — unified Favourites trait with wire IDs
  • rust/crates/truapi/src/v01/favourites.rs — v0.1 types (FavouriteProduct, request/response/error enums)
  • rust/crates/truapi/src/versioned/favourites.rs — versioned wrappers
  • docs/rfcs/0013-favourites-api.md — RFC document

Test plan

  • cargo build --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test --workspace
  • Regenerate TS client and verify build

- Explain why Browse gets implicit privilege (default discovery product)
- Rephrase motivation: hosts store data products can't access, bookmarks
  are one example; tie to DotNS being permissionless
- Improve discovery UI bullet with concrete details
- Lead Data Model section with the ProductRecord reference
- Add NotSupported error variant for hosts without a favourites table
- Remove empty Alternatives section
@filvecchiato filvecchiato changed the title RFC-0013: Favourites API RFC: Favourites API Jun 4, 2026
filvecchiato and others added 2 commits June 5, 2026 14:56
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@filvecchiato filvecchiato requested review from a team June 5, 2026 19:28
Introduce the `Favourites` trait with subscribe, add, and forget
methods for managing the host's bookmarked-product catalogue.
@filvecchiato filvecchiato marked this pull request as draft June 5, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant