librespot/protocol/proto/ucs.proto

54 lines
1.2 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.remote_config.ucs.proto;
import "resolve.proto";
import "useraccount.proto";
option optimize_for = CODE_SIZE;
message UcsRequest {
CallerInfo caller_info = 1;
message CallerInfo {
string request_origin_id = 1;
string request_orgin_version = 2;
string reason = 3;
}
2024-12-15 19:51:02 +00:00
ResolveRequest resolve_request = 2;
2024-12-15 19:51:02 +00:00
AccountAttributesRequest account_attributes_request = 3;
message AccountAttributesRequest {
}
}
message UcsResponseWrapper {
oneof result {
UcsResponse success = 1;
Error error = 2;
}
2024-12-15 19:51:02 +00:00
message UcsResponse {
int64 fetch_time_millis = 5;
oneof resolve_result {
ResolveResponse resolve_success = 1;
Error resolve_error = 2;
}
oneof account_attributes_result {
AccountAttributesResponse account_attributes_success = 3;
Error account_attributes_error = 4;
}
}
2024-12-15 19:51:02 +00:00
message AccountAttributesResponse {
map<string, AccountAttribute> account_attributes = 1;
}
2024-12-15 19:51:02 +00:00
message Error {
int32 error_code = 1;
string error_message = 2;
}
}