Initial Commit
This commit is contained in:
19
proto/spotify/login5/v3/challenges/code.proto
Normal file
19
proto/spotify/login5/v3/challenges/code.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.login5.v3.challenges;
|
||||
option java_package = "com.spotify.login5v3";
|
||||
|
||||
message CodeChallenge {
|
||||
enum Method {
|
||||
UNKNOWN = 0;
|
||||
SMS = 1;
|
||||
}
|
||||
.spotify.login5.v3.challenges.CodeChallenge.Method method = 1;
|
||||
int32 code_length = 2;
|
||||
int32 expires_in = 3;
|
||||
string canonical_phone_number = 4;
|
||||
}
|
||||
|
||||
message CodeSolution {
|
||||
string code = 1;
|
||||
}
|
||||
16
proto/spotify/login5/v3/challenges/hashcash.proto
Normal file
16
proto/spotify/login5/v3/challenges/hashcash.proto
Normal file
@@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.login5.v3.challenges;
|
||||
option java_package = "com.spotify.login5v3";
|
||||
|
||||
import "google/protobuf/duration.proto";
|
||||
|
||||
message HashcashChallenge {
|
||||
bytes prefix = 1;
|
||||
int32 length = 2;
|
||||
}
|
||||
|
||||
message HashcashSolution {
|
||||
bytes suffix = 1;
|
||||
.google.protobuf.Duration duration = 2;
|
||||
}
|
||||
9
proto/spotify/login5/v3/client_info.proto
Normal file
9
proto/spotify/login5/v3/client_info.proto
Normal file
@@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.login5.v3;
|
||||
option java_package = "com.spotify.login5v3";
|
||||
|
||||
message ClientInfo {
|
||||
string client_id = 1;
|
||||
string device_id = 2;
|
||||
}
|
||||
35
proto/spotify/login5/v3/credentials/credentials.proto
Normal file
35
proto/spotify/login5/v3/credentials/credentials.proto
Normal file
@@ -0,0 +1,35 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.login5.v3.credentials;
|
||||
option java_package = "com.spotify.login5v3";
|
||||
|
||||
message StoredCredential {
|
||||
string username = 1;
|
||||
bytes data = 2;
|
||||
}
|
||||
|
||||
message Password {
|
||||
string id = 1;
|
||||
string password = 2;
|
||||
bytes padding = 3;
|
||||
}
|
||||
|
||||
message FacebookAccessToken {
|
||||
string fb_uid = 1;
|
||||
string access_token = 2;
|
||||
}
|
||||
|
||||
message OneTimeToken {
|
||||
string token = 1;
|
||||
}
|
||||
|
||||
message ParentChildCredential {
|
||||
string child_id = 1;
|
||||
.spotify.login5.v3.credentials.StoredCredential parent_stored_credential = 2;
|
||||
}
|
||||
|
||||
message AppleSignInCredential {
|
||||
string auth_code = 1;
|
||||
string redirect_uri = 2;
|
||||
string bundle_id = 3;
|
||||
}
|
||||
10
proto/spotify/login5/v3/identifiers/identifiers.proto
Normal file
10
proto/spotify/login5/v3/identifiers/identifiers.proto
Normal file
@@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.login5.v3.identifiers;
|
||||
option java_package = "com.spotify.login5v3";
|
||||
|
||||
message PhoneNumber {
|
||||
string number = 1;
|
||||
string iso_country_code = 2;
|
||||
string country_calling_code = 3;
|
||||
}
|
||||
75
proto/spotify/login5/v3/login5.proto
Normal file
75
proto/spotify/login5/v3/login5.proto
Normal file
@@ -0,0 +1,75 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.login5.v3;
|
||||
option java_package = "com.spotify.login5v3";
|
||||
|
||||
import "spotify/login5/v3/client_info.proto";
|
||||
import "spotify/login5/v3/user_info.proto";
|
||||
import "spotify/login5/v3/challenges/code.proto";
|
||||
import "spotify/login5/v3/challenges/hashcash.proto";
|
||||
import "spotify/login5/v3/credentials/credentials.proto";
|
||||
import "spotify/login5/v3/identifiers/identifiers.proto";
|
||||
|
||||
enum LoginError {
|
||||
UNKNOWN_ERROR = 0;
|
||||
INVALID_CREDENTIALS = 1;
|
||||
BAD_REQUEST = 2;
|
||||
UNSUPPORTED_LOGIN_PROTOCOL = 3;
|
||||
TIMEOUT = 4;
|
||||
UNKNOWN_IDENTIFIER = 5;
|
||||
TOO_MANY_ATTEMPTS = 6;
|
||||
INVALID_PHONENUMBER = 7;
|
||||
TRY_AGAIN_LATER = 8;
|
||||
}
|
||||
|
||||
message Challenges {
|
||||
repeated .spotify.login5.v3.Challenge challenges = 1;
|
||||
}
|
||||
|
||||
message Challenge {
|
||||
.spotify.login5.v3.challenges.HashcashChallenge hashcash = 1;
|
||||
.spotify.login5.v3.challenges.CodeChallenge code = 2;
|
||||
}
|
||||
|
||||
message ChallengeSolutions {
|
||||
repeated .spotify.login5.v3.ChallengeSolution solutions = 1;
|
||||
}
|
||||
|
||||
message ChallengeSolution {
|
||||
.spotify.login5.v3.challenges.HashcashSolution hashcash = 1;
|
||||
.spotify.login5.v3.challenges.CodeSolution code = 2;
|
||||
}
|
||||
|
||||
message LoginRequest {
|
||||
.spotify.login5.v3.ClientInfo client_info = 1;
|
||||
bytes login_context = 2;
|
||||
.spotify.login5.v3.ChallengeSolutions challenge_solutions = 3;
|
||||
.spotify.login5.v3.credentials.StoredCredential stored_credential = 100;
|
||||
.spotify.login5.v3.credentials.Password password = 101;
|
||||
.spotify.login5.v3.credentials.FacebookAccessToken facebook_access_token = 102;
|
||||
.spotify.login5.v3.identifiers.PhoneNumber phone_number = 103;
|
||||
.spotify.login5.v3.credentials.OneTimeToken one_time_token = 104;
|
||||
.spotify.login5.v3.credentials.ParentChildCredential parent_child_credential = 105;
|
||||
.spotify.login5.v3.credentials.AppleSignInCredential apple_sign_in_credential = 106;
|
||||
}
|
||||
|
||||
message LoginOk {
|
||||
string username = 1;
|
||||
string access_token = 2;
|
||||
bytes stored_credential = 3;
|
||||
int32 access_token_expires_in = 4;
|
||||
}
|
||||
|
||||
message LoginResponse {
|
||||
enum Warnings {
|
||||
UNKNOWN_WARNING = 0;
|
||||
DEPRECATED_PROTOCOL_VERSION = 1;
|
||||
}
|
||||
.spotify.login5.v3.LoginOk ok = 1;
|
||||
.spotify.login5.v3.LoginError error = 2;
|
||||
.spotify.login5.v3.Challenges challenges = 3;
|
||||
repeated .spotify.login5.v3.LoginResponse.Warnings warnings = 4;
|
||||
bytes login_context = 5;
|
||||
string identifier_token = 6;
|
||||
.spotify.login5.v3.UserInfo user_info = 7;
|
||||
}
|
||||
21
proto/spotify/login5/v3/user_info.proto
Normal file
21
proto/spotify/login5/v3/user_info.proto
Normal file
@@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.login5.v3;
|
||||
option java_package = "com.spotify.login5v3";
|
||||
|
||||
message UserInfo {
|
||||
enum Gender {
|
||||
UNKNOWN = 0;
|
||||
MALE = 1;
|
||||
FEMALE = 2;
|
||||
NEUTRAL = 3;
|
||||
}
|
||||
string name = 1;
|
||||
string email = 2;
|
||||
bool email_verified = 3;
|
||||
string birthdate = 4;
|
||||
.spotify.login5.v3.UserInfo.Gender gender = 5;
|
||||
string phone_number = 6;
|
||||
bool phone_number_verified = 7;
|
||||
bool email_already_registered = 8;
|
||||
}
|
||||
Reference in New Issue
Block a user