Changeset View
Changeset View
Standalone View
Standalone View
shared/protos/identity_unauth.proto
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | service IdentityClientService { | ||||
// Miscellaneous actions | // Miscellaneous actions | ||||
// Called by users periodically to check if their code version is supported | // Called by users periodically to check if their code version is supported | ||||
rpc Ping(Empty) returns (Empty) {} | rpc Ping(Empty) returns (Empty) {} | ||||
// Returns userID for given username or wallet address | // Returns userID for given username or wallet address | ||||
rpc FindUserID(FindUserIDRequest) returns (FindUserIDResponse) {} | rpc FindUserID(FindUserIDRequest) returns (FindUserIDResponse) {} | ||||
// Farcaster actions | |||||
rpc GetFarcasterUsers(GetFarcasterUsersRequest) returns | |||||
(GetFarcasterUsersResponse) {} | |||||
} | } | ||||
// Helper types | // Helper types | ||||
message Empty {} | message Empty {} | ||||
message Prekey { | message Prekey { | ||||
string prekey = 1; | string prekey = 1; | ||||
▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | |||||
message FindUserIDResponse { | message FindUserIDResponse { | ||||
// userID if the user is registered with Identity Service, null otherwise | // userID if the user is registered with Identity Service, null otherwise | ||||
optional string user_id = 1; | optional string user_id = 1; | ||||
// true if the identifier (username or wallet address) exists in the | // true if the identifier (username or wallet address) exists in the | ||||
// reserved usernames list, false otherwise. It doesn't take into account | // reserved usernames list, false otherwise. It doesn't take into account | ||||
// whether the user is registered with Identity Service (userID != null). | // whether the user is registered with Identity Service (userID != null). | ||||
bool is_reserved = 2; | bool is_reserved = 2; | ||||
} | } | ||||
// GetFarcasterUsers | |||||
message GetFarcasterUsersRequest { | |||||
repeated string farcaster_ids = 1; | |||||
} | |||||
message GetFarcasterUsersResponse { | |||||
repeated FarcasterUser farcaster_users = 1; | |||||
} | |||||
message FarcasterUser { | |||||
string user_id = 1; | |||||
string farcaster_id = 2; | |||||
string username = 3; | |||||
} |