Changeset View
Changeset View
Standalone View
Standalone View
shared/protos/identity_auth.proto
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | service IdentityClientService { | ||||
// Farcaster actions | // Farcaster actions | ||||
// Called by an existing user to link their Farcaster account | // Called by an existing user to link their Farcaster account | ||||
rpc LinkFarcasterAccount(LinkFarcasterAccountRequest) returns | rpc LinkFarcasterAccount(LinkFarcasterAccountRequest) returns | ||||
(identity.unauth.Empty) {} | (identity.unauth.Empty) {} | ||||
// Called by an existing user to unlink their Farcaster account | // Called by an existing user to unlink their Farcaster account | ||||
rpc UnlinkFarcasterAccount(identity.unauth.Empty) returns | rpc UnlinkFarcasterAccount(identity.unauth.Empty) returns | ||||
(identity.unauth.Empty) {} | (identity.unauth.Empty) {} | ||||
rpc FindUserIdentity(UserIdentityRequest) returns (UserIdentityResponse) {} | |||||
} | } | ||||
// Helper types | // Helper types | ||||
message EthereumIdentity { | message EthereumIdentity { | ||||
string wallet_address = 1; | string wallet_address = 1; | ||||
string social_proof = 2; | string social_proof = 2; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | message UpdateDeviceListRequest { | ||||
string new_device_list = 1; | string new_device_list = 1; | ||||
} | } | ||||
// LinkFarcasterAccount | // LinkFarcasterAccount | ||||
message LinkFarcasterAccountRequest { | message LinkFarcasterAccountRequest { | ||||
string farcaster_id = 1; | string farcaster_id = 1; | ||||
} | } | ||||
// FindUserIdentity | |||||
message UserIdentityRequest { | |||||
// user ID for which we want to get the identity | |||||
string user_id = 1; | |||||
} | |||||
message UserIdentityResponse { | |||||
Identity identity = 1; | |||||
} |