librespot/protocol/proto/collection2v2.proto

57 lines
1.1 KiB
Protocol Buffer
Raw Normal View History

2024-12-15 19:51:02 +00:00
// Extracted from: Spotify 1.2.52.442 (windows)
syntax = "proto3";
package spotify.collection.proto.v2;
option optimize_for = CODE_SIZE;
option java_package = "com.spotify.collection2.v2.proto";
message PageRequest {
string username = 1;
string set = 2;
string pagination_token = 3;
int32 limit = 4;
}
message CollectionItem {
string uri = 1;
int32 added_at = 2;
bool is_removed = 3;
2024-12-15 19:51:02 +00:00
optional string context_uri = 4;
}
message PageResponse {
repeated CollectionItem items = 1;
string next_page_token = 2;
string sync_token = 3;
}
message DeltaRequest {
string username = 1;
string set = 2;
string last_sync_token = 3;
}
message DeltaResponse {
bool delta_update_possible = 1;
repeated CollectionItem items = 2;
string sync_token = 3;
}
message WriteRequest {
string username = 1;
string set = 2;
repeated CollectionItem items = 3;
string client_update_id = 4;
}
message InitializedRequest {
string username = 1;
string set = 2;
}
message InitializedResponse {
bool initialized = 1;
}