feat: tell which of my playlists contain a song

This commit is contained in:
DiheChen committed 2026-11-09 01:47:45 +08:00
1 parent 5c34450ccf
commit 24abca6dc7
17 files changed
+270 -3

No files matched your search

+9
View File
@@ -165,6 +165,14 @@ export interface ListMyPlaylistsResponse {
items: MyPlaylist[]
}
export interface ListMyTrackPlaylistsRequest {
track: Track
}
export interface ListMyTrackPlaylistsResponse {
playlistIds: string[]
}
export interface ListRoomsResponse {
items: RoomListing[]
}
@@ -244,6 +252,7 @@ export function httpClient(send: HttpSend) {
removeMyPlaylistItems: (id: string, body: RemoveMyPlaylistItemsRequest) => send<void>({ method: 'POST', path: `/api/me/playlists/${encodeURIComponent(id)}/removals`, auth: 'member', body }),
copyMyPlaylistItems: (id: string, body: CopyMyPlaylistItemsRequest) => send<CopyMyPlaylistItemsResponse>({ method: 'POST', path: `/api/me/playlists/${encodeURIComponent(id)}/copies`, auth: 'member', body }),
moveMyPlaylistItems: (id: string, body: MoveMyPlaylistItemsRequest) => send<void>({ method: 'POST', path: `/api/me/playlists/${encodeURIComponent(id)}/moves`, auth: 'member', body }),
listMyTrackPlaylists: (body: ListMyTrackPlaylistsRequest) => send<ListMyTrackPlaylistsResponse>({ method: 'POST', path: '/api/me/playlist-memberships', auth: 'member', body }),
listRooms: () => send<ListRoomsResponse>({ method: 'GET', path: '/api/rooms', auth: 'none' }),
getRoom: (ref: string) => send<RoomListing>({ method: 'GET', path: `/api/rooms/${encodeURIComponent(ref)}`, auth: 'none' }),
createRoom: (body: CreateRoomRequest) => send<CreateRoomResponse>({ method: 'POST', path: '/api/rooms', auth: 'none', body }),
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by protocolgen from protocol/idl.json; DO NOT EDIT.
export const PROTOCOL_VERSION = '236deb132b07fa9e'
export const PROTOCOL_VERSION = '12f9c11ba788ac55'
export interface APIKey {
key: string