Documentation ¶
Index ¶
- Variables
- func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer)
- type GetLoginForThirdPartyAppRequest
- func (*GetLoginForThirdPartyAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLoginForThirdPartyAppRequest) GetIntentId() *v1.IntentId
- func (x *GetLoginForThirdPartyAppRequest) GetSignature() *v1.Signature
- func (x *GetLoginForThirdPartyAppRequest) GetVerifier() *v1.SolanaAccountId
- func (*GetLoginForThirdPartyAppRequest) ProtoMessage()
- func (x *GetLoginForThirdPartyAppRequest) ProtoReflect() protoreflect.Message
- func (x *GetLoginForThirdPartyAppRequest) Reset()
- func (x *GetLoginForThirdPartyAppRequest) String() string
- func (m *GetLoginForThirdPartyAppRequest) Validate() error
- type GetLoginForThirdPartyAppRequestValidationError
- func (e GetLoginForThirdPartyAppRequestValidationError) Cause() error
- func (e GetLoginForThirdPartyAppRequestValidationError) Error() string
- func (e GetLoginForThirdPartyAppRequestValidationError) ErrorName() string
- func (e GetLoginForThirdPartyAppRequestValidationError) Field() string
- func (e GetLoginForThirdPartyAppRequestValidationError) Key() bool
- func (e GetLoginForThirdPartyAppRequestValidationError) Reason() string
- type GetLoginForThirdPartyAppResponse
- func (*GetLoginForThirdPartyAppResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLoginForThirdPartyAppResponse) GetResult() GetLoginForThirdPartyAppResponse_Result
- func (x *GetLoginForThirdPartyAppResponse) GetUserId() *v1.SolanaAccountId
- func (*GetLoginForThirdPartyAppResponse) ProtoMessage()
- func (x *GetLoginForThirdPartyAppResponse) ProtoReflect() protoreflect.Message
- func (x *GetLoginForThirdPartyAppResponse) Reset()
- func (x *GetLoginForThirdPartyAppResponse) String() string
- func (m *GetLoginForThirdPartyAppResponse) Validate() error
- type GetLoginForThirdPartyAppResponseValidationError
- func (e GetLoginForThirdPartyAppResponseValidationError) Cause() error
- func (e GetLoginForThirdPartyAppResponseValidationError) Error() string
- func (e GetLoginForThirdPartyAppResponseValidationError) ErrorName() string
- func (e GetLoginForThirdPartyAppResponseValidationError) Field() string
- func (e GetLoginForThirdPartyAppResponseValidationError) Key() bool
- func (e GetLoginForThirdPartyAppResponseValidationError) Reason() string
- type GetLoginForThirdPartyAppResponse_Result
- func (GetLoginForThirdPartyAppResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetLoginForThirdPartyAppResponse_Result) Enum() *GetLoginForThirdPartyAppResponse_Result
- func (GetLoginForThirdPartyAppResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetLoginForThirdPartyAppResponse_Result) Number() protoreflect.EnumNumber
- func (x GetLoginForThirdPartyAppResponse_Result) String() string
- func (GetLoginForThirdPartyAppResponse_Result) Type() protoreflect.EnumType
- type GetTwitterUserRequest
- func (*GetTwitterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (m *GetTwitterUserRequest) GetQuery() isGetTwitterUserRequest_Query
- func (x *GetTwitterUserRequest) GetTipAddress() *v1.SolanaAccountId
- func (x *GetTwitterUserRequest) GetUsername() string
- func (*GetTwitterUserRequest) ProtoMessage()
- func (x *GetTwitterUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetTwitterUserRequest) Reset()
- func (x *GetTwitterUserRequest) String() string
- func (m *GetTwitterUserRequest) Validate() error
- type GetTwitterUserRequestValidationError
- func (e GetTwitterUserRequestValidationError) Cause() error
- func (e GetTwitterUserRequestValidationError) Error() string
- func (e GetTwitterUserRequestValidationError) ErrorName() string
- func (e GetTwitterUserRequestValidationError) Field() string
- func (e GetTwitterUserRequestValidationError) Key() bool
- func (e GetTwitterUserRequestValidationError) Reason() string
- type GetTwitterUserRequest_TipAddress
- type GetTwitterUserRequest_Username
- type GetTwitterUserResponse
- func (*GetTwitterUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTwitterUserResponse) GetResult() GetTwitterUserResponse_Result
- func (x *GetTwitterUserResponse) GetTwitterUser() *TwitterUser
- func (*GetTwitterUserResponse) ProtoMessage()
- func (x *GetTwitterUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetTwitterUserResponse) Reset()
- func (x *GetTwitterUserResponse) String() string
- func (m *GetTwitterUserResponse) Validate() error
- type GetTwitterUserResponseValidationError
- func (e GetTwitterUserResponseValidationError) Cause() error
- func (e GetTwitterUserResponseValidationError) Error() string
- func (e GetTwitterUserResponseValidationError) ErrorName() string
- func (e GetTwitterUserResponseValidationError) Field() string
- func (e GetTwitterUserResponseValidationError) Key() bool
- func (e GetTwitterUserResponseValidationError) Reason() string
- type GetTwitterUserResponse_Result
- func (GetTwitterUserResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetTwitterUserResponse_Result) Enum() *GetTwitterUserResponse_Result
- func (GetTwitterUserResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetTwitterUserResponse_Result) Number() protoreflect.EnumNumber
- func (x GetTwitterUserResponse_Result) String() string
- func (GetTwitterUserResponse_Result) Type() protoreflect.EnumType
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (m *GetUserRequest) GetIdentifyingFeature() isGetUserRequest_IdentifyingFeature
- func (x *GetUserRequest) GetOwnerAccountId() *v1.SolanaAccountId
- func (x *GetUserRequest) GetPhoneNumber() *v1.PhoneNumber
- func (x *GetUserRequest) GetSignature() *v1.Signature
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- func (m *GetUserRequest) Validate() error
- type GetUserRequestValidationError
- func (e GetUserRequestValidationError) Cause() error
- func (e GetUserRequestValidationError) Error() string
- func (e GetUserRequestValidationError) ErrorName() string
- func (e GetUserRequestValidationError) Field() string
- func (e GetUserRequestValidationError) Key() bool
- func (e GetUserRequestValidationError) Reason() string
- type GetUserRequest_PhoneNumber
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetDataContainerId() *v1.DataContainerId
- func (x *GetUserResponse) GetEligibleAirdrops() []v2.AirdropType
- func (x *GetUserResponse) GetEnableBuyModule() bool
- func (x *GetUserResponse) GetEnableInternalFlags() bool
- func (m *GetUserResponse) GetMetadata() isGetUserResponse_Metadata
- func (x *GetUserResponse) GetPhone() *PhoneMetadata
- func (x *GetUserResponse) GetResult() GetUserResponse_Result
- func (x *GetUserResponse) GetUser() *User
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- func (m *GetUserResponse) Validate() error
- type GetUserResponseValidationError
- func (e GetUserResponseValidationError) Cause() error
- func (e GetUserResponseValidationError) Error() string
- func (e GetUserResponseValidationError) ErrorName() string
- func (e GetUserResponseValidationError) Field() string
- func (e GetUserResponseValidationError) Key() bool
- func (e GetUserResponseValidationError) Reason() string
- type GetUserResponse_Phone
- type GetUserResponse_Result
- func (GetUserResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetUserResponse_Result) Enum() *GetUserResponse_Result
- func (GetUserResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetUserResponse_Result) Number() protoreflect.EnumNumber
- func (x GetUserResponse_Result) String() string
- func (GetUserResponse_Result) Type() protoreflect.EnumType
- type IdentityClient
- type IdentityServer
- type LinkAccountRequest
- func (*LinkAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LinkAccountRequest) GetOwnerAccountId() *v1.SolanaAccountId
- func (x *LinkAccountRequest) GetPhone() *v11.PhoneLinkingToken
- func (x *LinkAccountRequest) GetSignature() *v1.Signature
- func (m *LinkAccountRequest) GetToken() isLinkAccountRequest_Token
- func (*LinkAccountRequest) ProtoMessage()
- func (x *LinkAccountRequest) ProtoReflect() protoreflect.Message
- func (x *LinkAccountRequest) Reset()
- func (x *LinkAccountRequest) String() string
- func (m *LinkAccountRequest) Validate() error
- type LinkAccountRequestValidationError
- func (e LinkAccountRequestValidationError) Cause() error
- func (e LinkAccountRequestValidationError) Error() string
- func (e LinkAccountRequestValidationError) ErrorName() string
- func (e LinkAccountRequestValidationError) Field() string
- func (e LinkAccountRequestValidationError) Key() bool
- func (e LinkAccountRequestValidationError) Reason() string
- type LinkAccountRequest_Phone
- type LinkAccountResponse
- func (*LinkAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LinkAccountResponse) GetDataContainerId() *v1.DataContainerId
- func (m *LinkAccountResponse) GetMetadata() isLinkAccountResponse_Metadata
- func (x *LinkAccountResponse) GetPhone() *PhoneMetadata
- func (x *LinkAccountResponse) GetResult() LinkAccountResponse_Result
- func (x *LinkAccountResponse) GetUser() *User
- func (*LinkAccountResponse) ProtoMessage()
- func (x *LinkAccountResponse) ProtoReflect() protoreflect.Message
- func (x *LinkAccountResponse) Reset()
- func (x *LinkAccountResponse) String() string
- func (m *LinkAccountResponse) Validate() error
- type LinkAccountResponseValidationError
- func (e LinkAccountResponseValidationError) Cause() error
- func (e LinkAccountResponseValidationError) Error() string
- func (e LinkAccountResponseValidationError) ErrorName() string
- func (e LinkAccountResponseValidationError) Field() string
- func (e LinkAccountResponseValidationError) Key() bool
- func (e LinkAccountResponseValidationError) Reason() string
- type LinkAccountResponse_Phone
- type LinkAccountResponse_Result
- func (LinkAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x LinkAccountResponse_Result) Enum() *LinkAccountResponse_Result
- func (LinkAccountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x LinkAccountResponse_Result) Number() protoreflect.EnumNumber
- func (x LinkAccountResponse_Result) String() string
- func (LinkAccountResponse_Result) Type() protoreflect.EnumType
- type LoginToThirdPartyAppRequest
- func (*LoginToThirdPartyAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginToThirdPartyAppRequest) GetIntentId() *v1.IntentId
- func (x *LoginToThirdPartyAppRequest) GetSignature() *v1.Signature
- func (x *LoginToThirdPartyAppRequest) GetUserId() *v1.SolanaAccountId
- func (*LoginToThirdPartyAppRequest) ProtoMessage()
- func (x *LoginToThirdPartyAppRequest) ProtoReflect() protoreflect.Message
- func (x *LoginToThirdPartyAppRequest) Reset()
- func (x *LoginToThirdPartyAppRequest) String() string
- func (m *LoginToThirdPartyAppRequest) Validate() error
- type LoginToThirdPartyAppRequestValidationError
- func (e LoginToThirdPartyAppRequestValidationError) Cause() error
- func (e LoginToThirdPartyAppRequestValidationError) Error() string
- func (e LoginToThirdPartyAppRequestValidationError) ErrorName() string
- func (e LoginToThirdPartyAppRequestValidationError) Field() string
- func (e LoginToThirdPartyAppRequestValidationError) Key() bool
- func (e LoginToThirdPartyAppRequestValidationError) Reason() string
- type LoginToThirdPartyAppResponse
- func (*LoginToThirdPartyAppResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginToThirdPartyAppResponse) GetResult() LoginToThirdPartyAppResponse_Result
- func (*LoginToThirdPartyAppResponse) ProtoMessage()
- func (x *LoginToThirdPartyAppResponse) ProtoReflect() protoreflect.Message
- func (x *LoginToThirdPartyAppResponse) Reset()
- func (x *LoginToThirdPartyAppResponse) String() string
- func (m *LoginToThirdPartyAppResponse) Validate() error
- type LoginToThirdPartyAppResponseValidationError
- func (e LoginToThirdPartyAppResponseValidationError) Cause() error
- func (e LoginToThirdPartyAppResponseValidationError) Error() string
- func (e LoginToThirdPartyAppResponseValidationError) ErrorName() string
- func (e LoginToThirdPartyAppResponseValidationError) Field() string
- func (e LoginToThirdPartyAppResponseValidationError) Key() bool
- func (e LoginToThirdPartyAppResponseValidationError) Reason() string
- type LoginToThirdPartyAppResponse_Result
- func (LoginToThirdPartyAppResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x LoginToThirdPartyAppResponse_Result) Enum() *LoginToThirdPartyAppResponse_Result
- func (LoginToThirdPartyAppResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoginToThirdPartyAppResponse_Result) Number() protoreflect.EnumNumber
- func (x LoginToThirdPartyAppResponse_Result) String() string
- func (LoginToThirdPartyAppResponse_Result) Type() protoreflect.EnumType
- type PhoneMetadata
- func (*PhoneMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *PhoneMetadata) GetIsLinked() bool
- func (*PhoneMetadata) ProtoMessage()
- func (x *PhoneMetadata) ProtoReflect() protoreflect.Message
- func (x *PhoneMetadata) Reset()
- func (x *PhoneMetadata) String() string
- func (m *PhoneMetadata) Validate() error
- type PhoneMetadataValidationError
- func (e PhoneMetadataValidationError) Cause() error
- func (e PhoneMetadataValidationError) Error() string
- func (e PhoneMetadataValidationError) ErrorName() string
- func (e PhoneMetadataValidationError) Field() string
- func (e PhoneMetadataValidationError) Key() bool
- func (e PhoneMetadataValidationError) Reason() string
- type TwitterUser
- func (*TwitterUser) Descriptor() ([]byte, []int)deprecated
- func (x *TwitterUser) GetFollowerCount() uint32
- func (x *TwitterUser) GetName() string
- func (x *TwitterUser) GetProfilePicUrl() string
- func (x *TwitterUser) GetTipAddress() *v1.SolanaAccountId
- func (x *TwitterUser) GetUsername() string
- func (x *TwitterUser) GetVerifiedType() TwitterUser_VerifiedType
- func (*TwitterUser) ProtoMessage()
- func (x *TwitterUser) ProtoReflect() protoreflect.Message
- func (x *TwitterUser) Reset()
- func (x *TwitterUser) String() string
- func (m *TwitterUser) Validate() error
- type TwitterUserValidationError
- func (e TwitterUserValidationError) Cause() error
- func (e TwitterUserValidationError) Error() string
- func (e TwitterUserValidationError) ErrorName() string
- func (e TwitterUserValidationError) Field() string
- func (e TwitterUserValidationError) Key() bool
- func (e TwitterUserValidationError) Reason() string
- type TwitterUser_VerifiedType
- func (TwitterUser_VerifiedType) Descriptor() protoreflect.EnumDescriptor
- func (x TwitterUser_VerifiedType) Enum() *TwitterUser_VerifiedType
- func (TwitterUser_VerifiedType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TwitterUser_VerifiedType) Number() protoreflect.EnumNumber
- func (x TwitterUser_VerifiedType) String() string
- func (TwitterUser_VerifiedType) Type() protoreflect.EnumType
- type UnimplementedIdentityServer
- func (UnimplementedIdentityServer) GetLoginForThirdPartyApp(context.Context, *GetLoginForThirdPartyAppRequest) (*GetLoginForThirdPartyAppResponse, error)
- func (UnimplementedIdentityServer) GetTwitterUser(context.Context, *GetTwitterUserRequest) (*GetTwitterUserResponse, error)
- func (UnimplementedIdentityServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedIdentityServer) LinkAccount(context.Context, *LinkAccountRequest) (*LinkAccountResponse, error)
- func (UnimplementedIdentityServer) LoginToThirdPartyApp(context.Context, *LoginToThirdPartyAppRequest) (*LoginToThirdPartyAppResponse, error)
- func (UnimplementedIdentityServer) UnlinkAccount(context.Context, *UnlinkAccountRequest) (*UnlinkAccountResponse, error)
- func (UnimplementedIdentityServer) UpdatePreferences(context.Context, *UpdatePreferencesRequest) (*UpdatePreferencesResponse, error)
- type UnlinkAccountRequest
- func (*UnlinkAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (m *UnlinkAccountRequest) GetIdentifyingFeature() isUnlinkAccountRequest_IdentifyingFeature
- func (x *UnlinkAccountRequest) GetOwnerAccountId() *v1.SolanaAccountId
- func (x *UnlinkAccountRequest) GetPhoneNumber() *v1.PhoneNumber
- func (x *UnlinkAccountRequest) GetSignature() *v1.Signature
- func (*UnlinkAccountRequest) ProtoMessage()
- func (x *UnlinkAccountRequest) ProtoReflect() protoreflect.Message
- func (x *UnlinkAccountRequest) Reset()
- func (x *UnlinkAccountRequest) String() string
- func (m *UnlinkAccountRequest) Validate() error
- type UnlinkAccountRequestValidationError
- func (e UnlinkAccountRequestValidationError) Cause() error
- func (e UnlinkAccountRequestValidationError) Error() string
- func (e UnlinkAccountRequestValidationError) ErrorName() string
- func (e UnlinkAccountRequestValidationError) Field() string
- func (e UnlinkAccountRequestValidationError) Key() bool
- func (e UnlinkAccountRequestValidationError) Reason() string
- type UnlinkAccountRequest_PhoneNumber
- type UnlinkAccountResponse
- func (*UnlinkAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnlinkAccountResponse) GetResult() UnlinkAccountResponse_Result
- func (*UnlinkAccountResponse) ProtoMessage()
- func (x *UnlinkAccountResponse) ProtoReflect() protoreflect.Message
- func (x *UnlinkAccountResponse) Reset()
- func (x *UnlinkAccountResponse) String() string
- func (m *UnlinkAccountResponse) Validate() error
- type UnlinkAccountResponseValidationError
- func (e UnlinkAccountResponseValidationError) Cause() error
- func (e UnlinkAccountResponseValidationError) Error() string
- func (e UnlinkAccountResponseValidationError) ErrorName() string
- func (e UnlinkAccountResponseValidationError) Field() string
- func (e UnlinkAccountResponseValidationError) Key() bool
- func (e UnlinkAccountResponseValidationError) Reason() string
- type UnlinkAccountResponse_Result
- func (UnlinkAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x UnlinkAccountResponse_Result) Enum() *UnlinkAccountResponse_Result
- func (UnlinkAccountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x UnlinkAccountResponse_Result) Number() protoreflect.EnumNumber
- func (x UnlinkAccountResponse_Result) String() string
- func (UnlinkAccountResponse_Result) Type() protoreflect.EnumType
- type UnsafeIdentityServer
- type UpdatePreferencesRequest
- func (*UpdatePreferencesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePreferencesRequest) GetContainerId() *v1.DataContainerId
- func (x *UpdatePreferencesRequest) GetLocale() *v1.Locale
- func (x *UpdatePreferencesRequest) GetOwnerAccountId() *v1.SolanaAccountId
- func (x *UpdatePreferencesRequest) GetSignature() *v1.Signature
- func (*UpdatePreferencesRequest) ProtoMessage()
- func (x *UpdatePreferencesRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePreferencesRequest) Reset()
- func (x *UpdatePreferencesRequest) String() string
- func (m *UpdatePreferencesRequest) Validate() error
- type UpdatePreferencesRequestValidationError
- func (e UpdatePreferencesRequestValidationError) Cause() error
- func (e UpdatePreferencesRequestValidationError) Error() string
- func (e UpdatePreferencesRequestValidationError) ErrorName() string
- func (e UpdatePreferencesRequestValidationError) Field() string
- func (e UpdatePreferencesRequestValidationError) Key() bool
- func (e UpdatePreferencesRequestValidationError) Reason() string
- type UpdatePreferencesResponse
- func (*UpdatePreferencesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePreferencesResponse) GetResult() UpdatePreferencesResponse_Result
- func (*UpdatePreferencesResponse) ProtoMessage()
- func (x *UpdatePreferencesResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePreferencesResponse) Reset()
- func (x *UpdatePreferencesResponse) String() string
- func (m *UpdatePreferencesResponse) Validate() error
- type UpdatePreferencesResponseValidationError
- func (e UpdatePreferencesResponseValidationError) Cause() error
- func (e UpdatePreferencesResponseValidationError) Error() string
- func (e UpdatePreferencesResponseValidationError) ErrorName() string
- func (e UpdatePreferencesResponseValidationError) Field() string
- func (e UpdatePreferencesResponseValidationError) Key() bool
- func (e UpdatePreferencesResponseValidationError) Reason() string
- type UpdatePreferencesResponse_Result
- func (UpdatePreferencesResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x UpdatePreferencesResponse_Result) Enum() *UpdatePreferencesResponse_Result
- func (UpdatePreferencesResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdatePreferencesResponse_Result) Number() protoreflect.EnumNumber
- func (x UpdatePreferencesResponse_Result) String() string
- func (UpdatePreferencesResponse_Result) Type() protoreflect.EnumType
- type User
- type UserValidationError
- type View
- type ViewValidationError
Constants ¶
This section is empty.
Variables ¶
var ( LinkAccountResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_TOKEN", 2: "RATE_LIMITED", } LinkAccountResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_TOKEN": 1, "RATE_LIMITED": 2, } )
Enum value maps for LinkAccountResponse_Result.
var ( UnlinkAccountResponse_Result_name = map[int32]string{ 0: "OK", 1: "NEVER_ASSOCIATED", } UnlinkAccountResponse_Result_value = map[string]int32{ "OK": 0, "NEVER_ASSOCIATED": 1, } )
Enum value maps for UnlinkAccountResponse_Result.
var ( GetUserResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", 2: "NOT_INVITED", 3: "UNLOCKED_TIMELOCK_ACCOUNT", } GetUserResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, "NOT_INVITED": 2, "UNLOCKED_TIMELOCK_ACCOUNT": 3, } )
Enum value maps for GetUserResponse_Result.
var ( UpdatePreferencesResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_LOCALE", } UpdatePreferencesResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_LOCALE": 1, } )
Enum value maps for UpdatePreferencesResponse_Result.
var ( LoginToThirdPartyAppResponse_Result_name = map[int32]string{ 0: "OK", 1: "REQUEST_NOT_FOUND", 2: "PAYMENT_REQUIRED", 3: "LOGIN_NOT_SUPPORTED", 4: "DIFFERENT_LOGIN_EXISTS", 5: "INVALID_ACCOUNT", } LoginToThirdPartyAppResponse_Result_value = map[string]int32{ "OK": 0, "REQUEST_NOT_FOUND": 1, "PAYMENT_REQUIRED": 2, "LOGIN_NOT_SUPPORTED": 3, "DIFFERENT_LOGIN_EXISTS": 4, "INVALID_ACCOUNT": 5, } )
Enum value maps for LoginToThirdPartyAppResponse_Result.
var ( GetLoginForThirdPartyAppResponse_Result_name = map[int32]string{ 0: "OK", 1: "REQUEST_NOT_FOUND", 2: "LOGIN_NOT_SUPPORTED", 3: "NO_USER_LOGGED_IN", } GetLoginForThirdPartyAppResponse_Result_value = map[string]int32{ "OK": 0, "REQUEST_NOT_FOUND": 1, "LOGIN_NOT_SUPPORTED": 2, "NO_USER_LOGGED_IN": 3, } )
Enum value maps for GetLoginForThirdPartyAppResponse_Result.
var ( GetTwitterUserResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", } GetTwitterUserResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, } )
Enum value maps for GetTwitterUserResponse_Result.
var ( TwitterUser_VerifiedType_name = map[int32]string{ 0: "NONE", 1: "BLUE", 2: "BUSINESS", 3: "GOVERNMENT", } TwitterUser_VerifiedType_value = map[string]int32{ "NONE": 0, "BLUE": 1, "BUSINESS": 2, "GOVERNMENT": 3, } )
Enum value maps for TwitterUser_VerifiedType.
var File_user_v1_identity_service_proto protoreflect.FileDescriptor
var Identity_ServiceDesc = grpc.ServiceDesc{ ServiceName: "code.user.v1.Identity", HandlerType: (*IdentityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LinkAccount", Handler: _Identity_LinkAccount_Handler, }, { MethodName: "UnlinkAccount", Handler: _Identity_UnlinkAccount_Handler, }, { MethodName: "GetUser", Handler: _Identity_GetUser_Handler, }, { MethodName: "UpdatePreferences", Handler: _Identity_UpdatePreferences_Handler, }, { MethodName: "LoginToThirdPartyApp", Handler: _Identity_LoginToThirdPartyApp_Handler, }, { MethodName: "GetLoginForThirdPartyApp", Handler: _Identity_GetLoginForThirdPartyApp_Handler, }, { MethodName: "GetTwitterUser", Handler: _Identity_GetTwitterUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/v1/identity_service.proto", }
Identity_ServiceDesc is the grpc.ServiceDesc for Identity service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIdentityServer ¶
func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer)
Types ¶
type GetLoginForThirdPartyAppRequest ¶ added in v1.8.0
type GetLoginForThirdPartyAppRequest struct { // The intent ID identifying the instance of the login flow. IntentId *v1.IntentId `protobuf:"bytes,1,opt,name=intent_id,json=intentId,proto3" json:"intent_id,omitempty"` // Owner account owned by the third party used in domain verification. Verifier *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=verifier,proto3" json:"verifier,omitempty"` // Signature of this message using the verifier private key, which in addition // to domain verification, authenticates the third party. Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*GetLoginForThirdPartyAppRequest) Descriptor
deprecated
added in
v1.8.0
func (*GetLoginForThirdPartyAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLoginForThirdPartyAppRequest.ProtoReflect.Descriptor instead.
func (*GetLoginForThirdPartyAppRequest) GetIntentId ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppRequest) GetIntentId() *v1.IntentId
func (*GetLoginForThirdPartyAppRequest) GetSignature ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppRequest) GetSignature() *v1.Signature
func (*GetLoginForThirdPartyAppRequest) GetVerifier ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppRequest) GetVerifier() *v1.SolanaAccountId
func (*GetLoginForThirdPartyAppRequest) ProtoMessage ¶ added in v1.8.0
func (*GetLoginForThirdPartyAppRequest) ProtoMessage()
func (*GetLoginForThirdPartyAppRequest) ProtoReflect ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppRequest) ProtoReflect() protoreflect.Message
func (*GetLoginForThirdPartyAppRequest) Reset ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppRequest) Reset()
func (*GetLoginForThirdPartyAppRequest) String ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppRequest) String() string
func (*GetLoginForThirdPartyAppRequest) Validate ¶ added in v1.8.0
func (m *GetLoginForThirdPartyAppRequest) Validate() error
Validate checks the field values on GetLoginForThirdPartyAppRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetLoginForThirdPartyAppRequestValidationError ¶ added in v1.8.0
type GetLoginForThirdPartyAppRequestValidationError struct {
// contains filtered or unexported fields
}
GetLoginForThirdPartyAppRequestValidationError is the validation error returned by GetLoginForThirdPartyAppRequest.Validate if the designated constraints aren't met.
func (GetLoginForThirdPartyAppRequestValidationError) Cause ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppRequestValidationError) Cause() error
Cause function returns cause value.
func (GetLoginForThirdPartyAppRequestValidationError) Error ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetLoginForThirdPartyAppRequestValidationError) ErrorName ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetLoginForThirdPartyAppRequestValidationError) Field ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppRequestValidationError) Field() string
Field function returns field value.
func (GetLoginForThirdPartyAppRequestValidationError) Key ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppRequestValidationError) Key() bool
Key function returns key value.
func (GetLoginForThirdPartyAppRequestValidationError) Reason ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppRequestValidationError) Reason() string
Reason function returns reason value.
type GetLoginForThirdPartyAppResponse ¶ added in v1.8.0
type GetLoginForThirdPartyAppResponse struct { Result GetLoginForThirdPartyAppResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.user.v1.GetLoginForThirdPartyAppResponse_Result" json:"result,omitempty"` // The relationship authority account that logged in. UserId *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetLoginForThirdPartyAppResponse) Descriptor
deprecated
added in
v1.8.0
func (*GetLoginForThirdPartyAppResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLoginForThirdPartyAppResponse.ProtoReflect.Descriptor instead.
func (*GetLoginForThirdPartyAppResponse) GetResult ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppResponse) GetResult() GetLoginForThirdPartyAppResponse_Result
func (*GetLoginForThirdPartyAppResponse) GetUserId ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppResponse) GetUserId() *v1.SolanaAccountId
func (*GetLoginForThirdPartyAppResponse) ProtoMessage ¶ added in v1.8.0
func (*GetLoginForThirdPartyAppResponse) ProtoMessage()
func (*GetLoginForThirdPartyAppResponse) ProtoReflect ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppResponse) ProtoReflect() protoreflect.Message
func (*GetLoginForThirdPartyAppResponse) Reset ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppResponse) Reset()
func (*GetLoginForThirdPartyAppResponse) String ¶ added in v1.8.0
func (x *GetLoginForThirdPartyAppResponse) String() string
func (*GetLoginForThirdPartyAppResponse) Validate ¶ added in v1.8.0
func (m *GetLoginForThirdPartyAppResponse) Validate() error
Validate checks the field values on GetLoginForThirdPartyAppResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetLoginForThirdPartyAppResponseValidationError ¶ added in v1.8.0
type GetLoginForThirdPartyAppResponseValidationError struct {
// contains filtered or unexported fields
}
GetLoginForThirdPartyAppResponseValidationError is the validation error returned by GetLoginForThirdPartyAppResponse.Validate if the designated constraints aren't met.
func (GetLoginForThirdPartyAppResponseValidationError) Cause ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppResponseValidationError) Cause() error
Cause function returns cause value.
func (GetLoginForThirdPartyAppResponseValidationError) Error ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetLoginForThirdPartyAppResponseValidationError) ErrorName ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetLoginForThirdPartyAppResponseValidationError) Field ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppResponseValidationError) Field() string
Field function returns field value.
func (GetLoginForThirdPartyAppResponseValidationError) Key ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppResponseValidationError) Key() bool
Key function returns key value.
func (GetLoginForThirdPartyAppResponseValidationError) Reason ¶ added in v1.8.0
func (e GetLoginForThirdPartyAppResponseValidationError) Reason() string
Reason function returns reason value.
type GetLoginForThirdPartyAppResponse_Result ¶ added in v1.8.0
type GetLoginForThirdPartyAppResponse_Result int32
const ( GetLoginForThirdPartyAppResponse_OK GetLoginForThirdPartyAppResponse_Result = 0 // There is no request for the provided intent ID. GetLoginForThirdPartyAppResponse_REQUEST_NOT_FOUND GetLoginForThirdPartyAppResponse_Result = 1 // The request exists, but doesn't support login. GetLoginForThirdPartyAppResponse_LOGIN_NOT_SUPPORTED GetLoginForThirdPartyAppResponse_Result = 2 // The intent supports login, but it hasn't been submitted. There is no // logged in user yet. GetLoginForThirdPartyAppResponse_NO_USER_LOGGED_IN GetLoginForThirdPartyAppResponse_Result = 3 )
func (GetLoginForThirdPartyAppResponse_Result) Descriptor ¶ added in v1.8.0
func (GetLoginForThirdPartyAppResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetLoginForThirdPartyAppResponse_Result) EnumDescriptor
deprecated
added in
v1.8.0
func (GetLoginForThirdPartyAppResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetLoginForThirdPartyAppResponse_Result.Descriptor instead.
func (GetLoginForThirdPartyAppResponse_Result) Number ¶ added in v1.8.0
func (x GetLoginForThirdPartyAppResponse_Result) Number() protoreflect.EnumNumber
func (GetLoginForThirdPartyAppResponse_Result) String ¶ added in v1.8.0
func (x GetLoginForThirdPartyAppResponse_Result) String() string
func (GetLoginForThirdPartyAppResponse_Result) Type ¶ added in v1.8.0
func (GetLoginForThirdPartyAppResponse_Result) Type() protoreflect.EnumType
type GetTwitterUserRequest ¶ added in v1.14.0
type GetTwitterUserRequest struct { // Types that are assignable to Query: // // *GetTwitterUserRequest_Username // *GetTwitterUserRequest_TipAddress Query isGetTwitterUserRequest_Query `protobuf_oneof:"query"` // contains filtered or unexported fields }
func (*GetTwitterUserRequest) Descriptor
deprecated
added in
v1.14.0
func (*GetTwitterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTwitterUserRequest.ProtoReflect.Descriptor instead.
func (*GetTwitterUserRequest) GetQuery ¶ added in v1.16.1
func (m *GetTwitterUserRequest) GetQuery() isGetTwitterUserRequest_Query
func (*GetTwitterUserRequest) GetTipAddress ¶ added in v1.16.1
func (x *GetTwitterUserRequest) GetTipAddress() *v1.SolanaAccountId
func (*GetTwitterUserRequest) GetUsername ¶ added in v1.14.0
func (x *GetTwitterUserRequest) GetUsername() string
func (*GetTwitterUserRequest) ProtoMessage ¶ added in v1.14.0
func (*GetTwitterUserRequest) ProtoMessage()
func (*GetTwitterUserRequest) ProtoReflect ¶ added in v1.14.0
func (x *GetTwitterUserRequest) ProtoReflect() protoreflect.Message
func (*GetTwitterUserRequest) Reset ¶ added in v1.14.0
func (x *GetTwitterUserRequest) Reset()
func (*GetTwitterUserRequest) String ¶ added in v1.14.0
func (x *GetTwitterUserRequest) String() string
func (*GetTwitterUserRequest) Validate ¶ added in v1.14.0
func (m *GetTwitterUserRequest) Validate() error
Validate checks the field values on GetTwitterUserRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetTwitterUserRequestValidationError ¶ added in v1.14.0
type GetTwitterUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetTwitterUserRequestValidationError is the validation error returned by GetTwitterUserRequest.Validate if the designated constraints aren't met.
func (GetTwitterUserRequestValidationError) Cause ¶ added in v1.14.0
func (e GetTwitterUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTwitterUserRequestValidationError) Error ¶ added in v1.14.0
func (e GetTwitterUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTwitterUserRequestValidationError) ErrorName ¶ added in v1.14.0
func (e GetTwitterUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTwitterUserRequestValidationError) Field ¶ added in v1.14.0
func (e GetTwitterUserRequestValidationError) Field() string
Field function returns field value.
func (GetTwitterUserRequestValidationError) Key ¶ added in v1.14.0
func (e GetTwitterUserRequestValidationError) Key() bool
Key function returns key value.
func (GetTwitterUserRequestValidationError) Reason ¶ added in v1.14.0
func (e GetTwitterUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetTwitterUserRequest_TipAddress ¶ added in v1.16.1
type GetTwitterUserRequest_TipAddress struct { // The tip address to query against TipAddress *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=tip_address,json=tipAddress,proto3,oneof"` }
type GetTwitterUserRequest_Username ¶ added in v1.16.1
type GetTwitterUserRequest_Username struct { // The Twitter username to query against Username string `protobuf:"bytes,1,opt,name=username,proto3,oneof"` }
type GetTwitterUserResponse ¶ added in v1.14.0
type GetTwitterUserResponse struct { Result GetTwitterUserResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.user.v1.GetTwitterUserResponse_Result" json:"result,omitempty"` TwitterUser *TwitterUser `protobuf:"bytes,2,opt,name=twitter_user,json=twitterUser,proto3" json:"twitter_user,omitempty"` // contains filtered or unexported fields }
func (*GetTwitterUserResponse) Descriptor
deprecated
added in
v1.14.0
func (*GetTwitterUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTwitterUserResponse.ProtoReflect.Descriptor instead.
func (*GetTwitterUserResponse) GetResult ¶ added in v1.14.0
func (x *GetTwitterUserResponse) GetResult() GetTwitterUserResponse_Result
func (*GetTwitterUserResponse) GetTwitterUser ¶ added in v1.16.1
func (x *GetTwitterUserResponse) GetTwitterUser() *TwitterUser
func (*GetTwitterUserResponse) ProtoMessage ¶ added in v1.14.0
func (*GetTwitterUserResponse) ProtoMessage()
func (*GetTwitterUserResponse) ProtoReflect ¶ added in v1.14.0
func (x *GetTwitterUserResponse) ProtoReflect() protoreflect.Message
func (*GetTwitterUserResponse) Reset ¶ added in v1.14.0
func (x *GetTwitterUserResponse) Reset()
func (*GetTwitterUserResponse) String ¶ added in v1.14.0
func (x *GetTwitterUserResponse) String() string
func (*GetTwitterUserResponse) Validate ¶ added in v1.14.0
func (m *GetTwitterUserResponse) Validate() error
Validate checks the field values on GetTwitterUserResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetTwitterUserResponseValidationError ¶ added in v1.14.0
type GetTwitterUserResponseValidationError struct {
// contains filtered or unexported fields
}
GetTwitterUserResponseValidationError is the validation error returned by GetTwitterUserResponse.Validate if the designated constraints aren't met.
func (GetTwitterUserResponseValidationError) Cause ¶ added in v1.14.0
func (e GetTwitterUserResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTwitterUserResponseValidationError) Error ¶ added in v1.14.0
func (e GetTwitterUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTwitterUserResponseValidationError) ErrorName ¶ added in v1.14.0
func (e GetTwitterUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTwitterUserResponseValidationError) Field ¶ added in v1.14.0
func (e GetTwitterUserResponseValidationError) Field() string
Field function returns field value.
func (GetTwitterUserResponseValidationError) Key ¶ added in v1.14.0
func (e GetTwitterUserResponseValidationError) Key() bool
Key function returns key value.
func (GetTwitterUserResponseValidationError) Reason ¶ added in v1.14.0
func (e GetTwitterUserResponseValidationError) Reason() string
Reason function returns reason value.
type GetTwitterUserResponse_Result ¶ added in v1.14.0
type GetTwitterUserResponse_Result int32
const ( GetTwitterUserResponse_OK GetTwitterUserResponse_Result = 0 // The Twitter user doesn't exist or isn't linked with a Code account GetTwitterUserResponse_NOT_FOUND GetTwitterUserResponse_Result = 1 )
func (GetTwitterUserResponse_Result) Descriptor ¶ added in v1.14.0
func (GetTwitterUserResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetTwitterUserResponse_Result) Enum ¶ added in v1.14.0
func (x GetTwitterUserResponse_Result) Enum() *GetTwitterUserResponse_Result
func (GetTwitterUserResponse_Result) EnumDescriptor
deprecated
added in
v1.14.0
func (GetTwitterUserResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetTwitterUserResponse_Result.Descriptor instead.
func (GetTwitterUserResponse_Result) Number ¶ added in v1.14.0
func (x GetTwitterUserResponse_Result) Number() protoreflect.EnumNumber
func (GetTwitterUserResponse_Result) String ¶ added in v1.14.0
func (x GetTwitterUserResponse_Result) String() string
func (GetTwitterUserResponse_Result) Type ¶ added in v1.14.0
func (GetTwitterUserResponse_Result) Type() protoreflect.EnumType
type GetUserRequest ¶
type GetUserRequest struct { // The public key of the owner account that signed this request message. OwnerAccountId *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner_account_id,json=ownerAccountId,proto3" json:"owner_account_id,omitempty"` // The signature is of serialize(GetUserRequest) without this field set // using the private key of owner_account_id. This provides an authentication // mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // The user's indentifying feature, which maps to an instance of a view. // // Types that are assignable to IdentifyingFeature: // // *GetUserRequest_PhoneNumber IdentifyingFeature isGetUserRequest_IdentifyingFeature `protobuf_oneof:"identifying_feature"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetIdentifyingFeature ¶
func (m *GetUserRequest) GetIdentifyingFeature() isGetUserRequest_IdentifyingFeature
func (*GetUserRequest) GetOwnerAccountId ¶
func (x *GetUserRequest) GetOwnerAccountId() *v1.SolanaAccountId
func (*GetUserRequest) GetPhoneNumber ¶
func (x *GetUserRequest) GetPhoneNumber() *v1.PhoneNumber
func (*GetUserRequest) GetSignature ¶
func (x *GetUserRequest) GetSignature() *v1.Signature
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
func (*GetUserRequest) Validate ¶
func (m *GetUserRequest) Validate() error
Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetUserRequestValidationError ¶
type GetUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.
func (GetUserRequestValidationError) Cause ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest_PhoneNumber ¶
type GetUserRequest_PhoneNumber struct {
PhoneNumber *v1.PhoneNumber `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}
type GetUserResponse ¶
type GetUserResponse struct { Result GetUserResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.user.v1.GetUserResponse_Result" json:"result,omitempty"` // The user associated with the identifier User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // The data container where the user can store a copy of their data DataContainerId *v1.DataContainerId `protobuf:"bytes,3,opt,name=data_container_id,json=dataContainerId,proto3" json:"data_container_id,omitempty"` // Metadata about the user based for the instance of their view // // Types that are assignable to Metadata: // // *GetUserResponse_Phone Metadata isGetUserResponse_Metadata `protobuf_oneof:"metadata"` // Whether client internal flags are enabled for this user EnableInternalFlags bool `protobuf:"varint,6,opt,name=enable_internal_flags,json=enableInternalFlags,proto3" json:"enable_internal_flags,omitempty"` // Set of which airdrops the user is eligible to receive EligibleAirdrops []v2.AirdropType `` /* 154-byte string literal not displayed */ // Wether the buy module is enabled for this user EnableBuyModule bool `protobuf:"varint,8,opt,name=enable_buy_module,json=enableBuyModule,proto3" json:"enable_buy_module,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetDataContainerId ¶
func (x *GetUserResponse) GetDataContainerId() *v1.DataContainerId
func (*GetUserResponse) GetEligibleAirdrops ¶
func (x *GetUserResponse) GetEligibleAirdrops() []v2.AirdropType
func (*GetUserResponse) GetEnableBuyModule ¶ added in v1.16.2
func (x *GetUserResponse) GetEnableBuyModule() bool
func (*GetUserResponse) GetEnableInternalFlags ¶
func (x *GetUserResponse) GetEnableInternalFlags() bool
func (*GetUserResponse) GetMetadata ¶
func (m *GetUserResponse) GetMetadata() isGetUserResponse_Metadata
func (*GetUserResponse) GetPhone ¶
func (x *GetUserResponse) GetPhone() *PhoneMetadata
func (*GetUserResponse) GetResult ¶
func (x *GetUserResponse) GetResult() GetUserResponse_Result
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
func (*GetUserResponse) Validate ¶
func (m *GetUserResponse) Validate() error
Validate checks the field values on GetUserResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetUserResponseValidationError ¶
type GetUserResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.
func (GetUserResponseValidationError) Cause ¶
func (e GetUserResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserResponseValidationError) Error ¶
func (e GetUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserResponseValidationError) ErrorName ¶
func (e GetUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserResponseValidationError) Field ¶
func (e GetUserResponseValidationError) Field() string
Field function returns field value.
func (GetUserResponseValidationError) Key ¶
func (e GetUserResponseValidationError) Key() bool
Key function returns key value.
func (GetUserResponseValidationError) Reason ¶
func (e GetUserResponseValidationError) Reason() string
Reason function returns reason value.
type GetUserResponse_Phone ¶
type GetUserResponse_Phone struct { // Metadata that corresponds to a phone-based identifying feature. Phone *PhoneMetadata `protobuf:"bytes,5,opt,name=phone,proto3,oneof"` }
type GetUserResponse_Result ¶
type GetUserResponse_Result int32
const ( GetUserResponse_OK GetUserResponse_Result = 0 // The user doesn't exist GetUserResponse_NOT_FOUND GetUserResponse_Result = 1 // The user is no longer invited GetUserResponse_NOT_INVITED GetUserResponse_Result = 2 // The user exists, but at least one of their timelock accounts is unlocked GetUserResponse_UNLOCKED_TIMELOCK_ACCOUNT GetUserResponse_Result = 3 )
func (GetUserResponse_Result) Descriptor ¶
func (GetUserResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetUserResponse_Result) Enum ¶
func (x GetUserResponse_Result) Enum() *GetUserResponse_Result
func (GetUserResponse_Result) EnumDescriptor
deprecated
func (GetUserResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetUserResponse_Result.Descriptor instead.
func (GetUserResponse_Result) Number ¶
func (x GetUserResponse_Result) Number() protoreflect.EnumNumber
func (GetUserResponse_Result) String ¶
func (x GetUserResponse_Result) String() string
func (GetUserResponse_Result) Type ¶
func (GetUserResponse_Result) Type() protoreflect.EnumType
type IdentityClient ¶
type IdentityClient interface { // LinkAccount links an owner account to the user identified and authenticated // by a one-time use token. // // Notably, this RPC has the following side effects: // - A new user is automatically created if one doesn't exist. // - Server will create a new data container for at least every unique // owner account linked to the user. LinkAccount(ctx context.Context, in *LinkAccountRequest, opts ...grpc.CallOption) (*LinkAccountResponse, error) // UnlinkAccount removes links from an owner account. It will NOT remove // existing associations between users, owner accounts and identifying // features. // // The following associations will remain intact to ensure owner accounts // can continue to be used with a consistent login experience: // - the user continues to be associated to existing owner accounts and // identifying features // // Client can continue mainting their current login session. Their current // user and data container will remain the same. // // The call is guaranteed to be idempotent. It will not fail if the link is // already removed by either a previous call to this RPC or by a more recent // call to LinkAccount. A failure will only occur if the link between a user // and the owner accout or identifying feature never existed. UnlinkAccount(ctx context.Context, in *UnlinkAccountRequest, opts ...grpc.CallOption) (*UnlinkAccountResponse, error) // GetUser gets user information given a user identifier and an owner account. GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) // UpdatePreferences updates user preferences. UpdatePreferences(ctx context.Context, in *UpdatePreferencesRequest, opts ...grpc.CallOption) (*UpdatePreferencesResponse, error) // LoginToThirdPartyApp logs a user into a third party app for a given intent // ID. If the original request requires payment, then SubmitIntent must be called. LoginToThirdPartyApp(ctx context.Context, in *LoginToThirdPartyAppRequest, opts ...grpc.CallOption) (*LoginToThirdPartyAppResponse, error) // GetLoginForThirdPartyApp gets a login for a third party app from an existing // request. This endpoint supports all paths where login is possible (login on payment, // raw login, etc.). GetLoginForThirdPartyApp(ctx context.Context, in *GetLoginForThirdPartyAppRequest, opts ...grpc.CallOption) (*GetLoginForThirdPartyAppResponse, error) // GetTwitterUser gets Twitter user information // // Note 1: This RPC will only return results for Twitter users that have // accounts linked with Code. // // Note 2: This RPC is heavily cached, and may not reflect real-time Twitter // information. GetTwitterUser(ctx context.Context, in *GetTwitterUserRequest, opts ...grpc.CallOption) (*GetTwitterUserResponse, error) }
IdentityClient is the client API for Identity service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIdentityClient ¶
func NewIdentityClient(cc grpc.ClientConnInterface) IdentityClient
type IdentityServer ¶
type IdentityServer interface { // LinkAccount links an owner account to the user identified and authenticated // by a one-time use token. // // Notably, this RPC has the following side effects: // - A new user is automatically created if one doesn't exist. // - Server will create a new data container for at least every unique // owner account linked to the user. LinkAccount(context.Context, *LinkAccountRequest) (*LinkAccountResponse, error) // UnlinkAccount removes links from an owner account. It will NOT remove // existing associations between users, owner accounts and identifying // features. // // The following associations will remain intact to ensure owner accounts // can continue to be used with a consistent login experience: // - the user continues to be associated to existing owner accounts and // identifying features // // Client can continue mainting their current login session. Their current // user and data container will remain the same. // // The call is guaranteed to be idempotent. It will not fail if the link is // already removed by either a previous call to this RPC or by a more recent // call to LinkAccount. A failure will only occur if the link between a user // and the owner accout or identifying feature never existed. UnlinkAccount(context.Context, *UnlinkAccountRequest) (*UnlinkAccountResponse, error) // GetUser gets user information given a user identifier and an owner account. GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) // UpdatePreferences updates user preferences. UpdatePreferences(context.Context, *UpdatePreferencesRequest) (*UpdatePreferencesResponse, error) // LoginToThirdPartyApp logs a user into a third party app for a given intent // ID. If the original request requires payment, then SubmitIntent must be called. LoginToThirdPartyApp(context.Context, *LoginToThirdPartyAppRequest) (*LoginToThirdPartyAppResponse, error) // GetLoginForThirdPartyApp gets a login for a third party app from an existing // request. This endpoint supports all paths where login is possible (login on payment, // raw login, etc.). GetLoginForThirdPartyApp(context.Context, *GetLoginForThirdPartyAppRequest) (*GetLoginForThirdPartyAppResponse, error) // GetTwitterUser gets Twitter user information // // Note 1: This RPC will only return results for Twitter users that have // accounts linked with Code. // // Note 2: This RPC is heavily cached, and may not reflect real-time Twitter // information. GetTwitterUser(context.Context, *GetTwitterUserRequest) (*GetTwitterUserResponse, error) // contains filtered or unexported methods }
IdentityServer is the server API for Identity service. All implementations must embed UnimplementedIdentityServer for forward compatibility
type LinkAccountRequest ¶
type LinkAccountRequest struct { // The public key of the owner account that will be linked to a user. OwnerAccountId *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner_account_id,json=ownerAccountId,proto3" json:"owner_account_id,omitempty"` // The signature is of serialize(LinkAccountRequest) without this field set // using the private key of owner_account_id. This validates that the client // actually owns the account. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // A one-time use token that identifies and authenticates the user. // // Types that are assignable to Token: // // *LinkAccountRequest_Phone Token isLinkAccountRequest_Token `protobuf_oneof:"token"` // contains filtered or unexported fields }
func (*LinkAccountRequest) Descriptor
deprecated
func (*LinkAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use LinkAccountRequest.ProtoReflect.Descriptor instead.
func (*LinkAccountRequest) GetOwnerAccountId ¶
func (x *LinkAccountRequest) GetOwnerAccountId() *v1.SolanaAccountId
func (*LinkAccountRequest) GetPhone ¶
func (x *LinkAccountRequest) GetPhone() *v11.PhoneLinkingToken
func (*LinkAccountRequest) GetSignature ¶
func (x *LinkAccountRequest) GetSignature() *v1.Signature
func (*LinkAccountRequest) GetToken ¶
func (m *LinkAccountRequest) GetToken() isLinkAccountRequest_Token
func (*LinkAccountRequest) ProtoMessage ¶
func (*LinkAccountRequest) ProtoMessage()
func (*LinkAccountRequest) ProtoReflect ¶
func (x *LinkAccountRequest) ProtoReflect() protoreflect.Message
func (*LinkAccountRequest) Reset ¶
func (x *LinkAccountRequest) Reset()
func (*LinkAccountRequest) String ¶
func (x *LinkAccountRequest) String() string
func (*LinkAccountRequest) Validate ¶
func (m *LinkAccountRequest) Validate() error
Validate checks the field values on LinkAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LinkAccountRequestValidationError ¶
type LinkAccountRequestValidationError struct {
// contains filtered or unexported fields
}
LinkAccountRequestValidationError is the validation error returned by LinkAccountRequest.Validate if the designated constraints aren't met.
func (LinkAccountRequestValidationError) Cause ¶
func (e LinkAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (LinkAccountRequestValidationError) Error ¶
func (e LinkAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LinkAccountRequestValidationError) ErrorName ¶
func (e LinkAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LinkAccountRequestValidationError) Field ¶
func (e LinkAccountRequestValidationError) Field() string
Field function returns field value.
func (LinkAccountRequestValidationError) Key ¶
func (e LinkAccountRequestValidationError) Key() bool
Key function returns key value.
func (LinkAccountRequestValidationError) Reason ¶
func (e LinkAccountRequestValidationError) Reason() string
Reason function returns reason value.
type LinkAccountRequest_Phone ¶
type LinkAccountRequest_Phone struct { // A token received after successfully verifying a phone number via a // SMS code using the phone verification service. Phone *v11.PhoneLinkingToken `protobuf:"bytes,3,opt,name=phone,proto3,oneof"` }
type LinkAccountResponse ¶
type LinkAccountResponse struct { Result LinkAccountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.user.v1.LinkAccountResponse_Result" json:"result,omitempty"` // The user that was linked to the owner account User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // The data container where the user can store a copy of their data DataContainerId *v1.DataContainerId `protobuf:"bytes,3,opt,name=data_container_id,json=dataContainerId,proto3" json:"data_container_id,omitempty"` // Metadata about the user based for the instance of their view // // Types that are assignable to Metadata: // // *LinkAccountResponse_Phone Metadata isLinkAccountResponse_Metadata `protobuf_oneof:"metadata"` // contains filtered or unexported fields }
func (*LinkAccountResponse) Descriptor
deprecated
func (*LinkAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use LinkAccountResponse.ProtoReflect.Descriptor instead.
func (*LinkAccountResponse) GetDataContainerId ¶
func (x *LinkAccountResponse) GetDataContainerId() *v1.DataContainerId
func (*LinkAccountResponse) GetMetadata ¶
func (m *LinkAccountResponse) GetMetadata() isLinkAccountResponse_Metadata
func (*LinkAccountResponse) GetPhone ¶
func (x *LinkAccountResponse) GetPhone() *PhoneMetadata
func (*LinkAccountResponse) GetResult ¶
func (x *LinkAccountResponse) GetResult() LinkAccountResponse_Result
func (*LinkAccountResponse) GetUser ¶
func (x *LinkAccountResponse) GetUser() *User
func (*LinkAccountResponse) ProtoMessage ¶
func (*LinkAccountResponse) ProtoMessage()
func (*LinkAccountResponse) ProtoReflect ¶
func (x *LinkAccountResponse) ProtoReflect() protoreflect.Message
func (*LinkAccountResponse) Reset ¶
func (x *LinkAccountResponse) Reset()
func (*LinkAccountResponse) String ¶
func (x *LinkAccountResponse) String() string
func (*LinkAccountResponse) Validate ¶
func (m *LinkAccountResponse) Validate() error
Validate checks the field values on LinkAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LinkAccountResponseValidationError ¶
type LinkAccountResponseValidationError struct {
// contains filtered or unexported fields
}
LinkAccountResponseValidationError is the validation error returned by LinkAccountResponse.Validate if the designated constraints aren't met.
func (LinkAccountResponseValidationError) Cause ¶
func (e LinkAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (LinkAccountResponseValidationError) Error ¶
func (e LinkAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LinkAccountResponseValidationError) ErrorName ¶
func (e LinkAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LinkAccountResponseValidationError) Field ¶
func (e LinkAccountResponseValidationError) Field() string
Field function returns field value.
func (LinkAccountResponseValidationError) Key ¶
func (e LinkAccountResponseValidationError) Key() bool
Key function returns key value.
func (LinkAccountResponseValidationError) Reason ¶
func (e LinkAccountResponseValidationError) Reason() string
Reason function returns reason value.
type LinkAccountResponse_Phone ¶
type LinkAccountResponse_Phone struct { // Metadata that corresponds to a phone-based identifying feature. Phone *PhoneMetadata `protobuf:"bytes,5,opt,name=phone,proto3,oneof"` }
type LinkAccountResponse_Result ¶
type LinkAccountResponse_Result int32
const ( LinkAccountResponse_OK LinkAccountResponse_Result = 0 // The provided token is invalid. A token may be invalid for a number of // reasons including: it's already been used, has been modified by the // client or has expired. LinkAccountResponse_INVALID_TOKEN LinkAccountResponse_Result = 1 // The client is rate limited (eg. by IP, user ID, etc). The client should // retry at a later time. LinkAccountResponse_RATE_LIMITED LinkAccountResponse_Result = 2 )
func (LinkAccountResponse_Result) Descriptor ¶
func (LinkAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (LinkAccountResponse_Result) Enum ¶
func (x LinkAccountResponse_Result) Enum() *LinkAccountResponse_Result
func (LinkAccountResponse_Result) EnumDescriptor
deprecated
func (LinkAccountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use LinkAccountResponse_Result.Descriptor instead.
func (LinkAccountResponse_Result) Number ¶
func (x LinkAccountResponse_Result) Number() protoreflect.EnumNumber
func (LinkAccountResponse_Result) String ¶
func (x LinkAccountResponse_Result) String() string
func (LinkAccountResponse_Result) Type ¶
func (LinkAccountResponse_Result) Type() protoreflect.EnumType
type LoginToThirdPartyAppRequest ¶ added in v1.8.0
type LoginToThirdPartyAppRequest struct { // The intent ID identifying the instance of the login flow. IntentId *v1.IntentId `protobuf:"bytes,1,opt,name=intent_id,json=intentId,proto3" json:"intent_id,omitempty"` // The relationship authority account logging in. UserId *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Signature of this message using the user private key, which authenticates // the user. Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*LoginToThirdPartyAppRequest) Descriptor
deprecated
added in
v1.8.0
func (*LoginToThirdPartyAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginToThirdPartyAppRequest.ProtoReflect.Descriptor instead.
func (*LoginToThirdPartyAppRequest) GetIntentId ¶ added in v1.8.0
func (x *LoginToThirdPartyAppRequest) GetIntentId() *v1.IntentId
func (*LoginToThirdPartyAppRequest) GetSignature ¶ added in v1.8.0
func (x *LoginToThirdPartyAppRequest) GetSignature() *v1.Signature
func (*LoginToThirdPartyAppRequest) GetUserId ¶ added in v1.8.0
func (x *LoginToThirdPartyAppRequest) GetUserId() *v1.SolanaAccountId
func (*LoginToThirdPartyAppRequest) ProtoMessage ¶ added in v1.8.0
func (*LoginToThirdPartyAppRequest) ProtoMessage()
func (*LoginToThirdPartyAppRequest) ProtoReflect ¶ added in v1.8.0
func (x *LoginToThirdPartyAppRequest) ProtoReflect() protoreflect.Message
func (*LoginToThirdPartyAppRequest) Reset ¶ added in v1.8.0
func (x *LoginToThirdPartyAppRequest) Reset()
func (*LoginToThirdPartyAppRequest) String ¶ added in v1.8.0
func (x *LoginToThirdPartyAppRequest) String() string
func (*LoginToThirdPartyAppRequest) Validate ¶ added in v1.8.0
func (m *LoginToThirdPartyAppRequest) Validate() error
Validate checks the field values on LoginToThirdPartyAppRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LoginToThirdPartyAppRequestValidationError ¶ added in v1.8.0
type LoginToThirdPartyAppRequestValidationError struct {
// contains filtered or unexported fields
}
LoginToThirdPartyAppRequestValidationError is the validation error returned by LoginToThirdPartyAppRequest.Validate if the designated constraints aren't met.
func (LoginToThirdPartyAppRequestValidationError) Cause ¶ added in v1.8.0
func (e LoginToThirdPartyAppRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginToThirdPartyAppRequestValidationError) Error ¶ added in v1.8.0
func (e LoginToThirdPartyAppRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginToThirdPartyAppRequestValidationError) ErrorName ¶ added in v1.8.0
func (e LoginToThirdPartyAppRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginToThirdPartyAppRequestValidationError) Field ¶ added in v1.8.0
func (e LoginToThirdPartyAppRequestValidationError) Field() string
Field function returns field value.
func (LoginToThirdPartyAppRequestValidationError) Key ¶ added in v1.8.0
func (e LoginToThirdPartyAppRequestValidationError) Key() bool
Key function returns key value.
func (LoginToThirdPartyAppRequestValidationError) Reason ¶ added in v1.8.0
func (e LoginToThirdPartyAppRequestValidationError) Reason() string
Reason function returns reason value.
type LoginToThirdPartyAppResponse ¶ added in v1.8.0
type LoginToThirdPartyAppResponse struct { Result LoginToThirdPartyAppResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.user.v1.LoginToThirdPartyAppResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*LoginToThirdPartyAppResponse) Descriptor
deprecated
added in
v1.8.0
func (*LoginToThirdPartyAppResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginToThirdPartyAppResponse.ProtoReflect.Descriptor instead.
func (*LoginToThirdPartyAppResponse) GetResult ¶ added in v1.8.0
func (x *LoginToThirdPartyAppResponse) GetResult() LoginToThirdPartyAppResponse_Result
func (*LoginToThirdPartyAppResponse) ProtoMessage ¶ added in v1.8.0
func (*LoginToThirdPartyAppResponse) ProtoMessage()
func (*LoginToThirdPartyAppResponse) ProtoReflect ¶ added in v1.8.0
func (x *LoginToThirdPartyAppResponse) ProtoReflect() protoreflect.Message
func (*LoginToThirdPartyAppResponse) Reset ¶ added in v1.8.0
func (x *LoginToThirdPartyAppResponse) Reset()
func (*LoginToThirdPartyAppResponse) String ¶ added in v1.8.0
func (x *LoginToThirdPartyAppResponse) String() string
func (*LoginToThirdPartyAppResponse) Validate ¶ added in v1.8.0
func (m *LoginToThirdPartyAppResponse) Validate() error
Validate checks the field values on LoginToThirdPartyAppResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LoginToThirdPartyAppResponseValidationError ¶ added in v1.8.0
type LoginToThirdPartyAppResponseValidationError struct {
// contains filtered or unexported fields
}
LoginToThirdPartyAppResponseValidationError is the validation error returned by LoginToThirdPartyAppResponse.Validate if the designated constraints aren't met.
func (LoginToThirdPartyAppResponseValidationError) Cause ¶ added in v1.8.0
func (e LoginToThirdPartyAppResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginToThirdPartyAppResponseValidationError) Error ¶ added in v1.8.0
func (e LoginToThirdPartyAppResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginToThirdPartyAppResponseValidationError) ErrorName ¶ added in v1.8.0
func (e LoginToThirdPartyAppResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginToThirdPartyAppResponseValidationError) Field ¶ added in v1.8.0
func (e LoginToThirdPartyAppResponseValidationError) Field() string
Field function returns field value.
func (LoginToThirdPartyAppResponseValidationError) Key ¶ added in v1.8.0
func (e LoginToThirdPartyAppResponseValidationError) Key() bool
Key function returns key value.
func (LoginToThirdPartyAppResponseValidationError) Reason ¶ added in v1.8.0
func (e LoginToThirdPartyAppResponseValidationError) Reason() string
Reason function returns reason value.
type LoginToThirdPartyAppResponse_Result ¶ added in v1.8.0
type LoginToThirdPartyAppResponse_Result int32
const ( // This supports idempotency. The same login with the same user will result // in OK. LoginToThirdPartyAppResponse_OK LoginToThirdPartyAppResponse_Result = 0 // There is no request for the provided intent ID. LoginToThirdPartyAppResponse_REQUEST_NOT_FOUND LoginToThirdPartyAppResponse_Result = 1 // The request requires a payment. Call SubmitIntent instead. LoginToThirdPartyAppResponse_PAYMENT_REQUIRED LoginToThirdPartyAppResponse_Result = 2 // The request exists, but doesn't support login. LoginToThirdPartyAppResponse_LOGIN_NOT_SUPPORTED LoginToThirdPartyAppResponse_Result = 3 // A login with a different user already exists LoginToThirdPartyAppResponse_DIFFERENT_LOGIN_EXISTS LoginToThirdPartyAppResponse_Result = 4 // The provided account is not valid for login. It must be a relationship // account with the correct identifier specified in the original request. LoginToThirdPartyAppResponse_INVALID_ACCOUNT LoginToThirdPartyAppResponse_Result = 5 )
func (LoginToThirdPartyAppResponse_Result) Descriptor ¶ added in v1.8.0
func (LoginToThirdPartyAppResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (LoginToThirdPartyAppResponse_Result) Enum ¶ added in v1.8.0
func (x LoginToThirdPartyAppResponse_Result) Enum() *LoginToThirdPartyAppResponse_Result
func (LoginToThirdPartyAppResponse_Result) EnumDescriptor
deprecated
added in
v1.8.0
func (LoginToThirdPartyAppResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoginToThirdPartyAppResponse_Result.Descriptor instead.
func (LoginToThirdPartyAppResponse_Result) Number ¶ added in v1.8.0
func (x LoginToThirdPartyAppResponse_Result) Number() protoreflect.EnumNumber
func (LoginToThirdPartyAppResponse_Result) String ¶ added in v1.8.0
func (x LoginToThirdPartyAppResponse_Result) String() string
func (LoginToThirdPartyAppResponse_Result) Type ¶ added in v1.8.0
func (LoginToThirdPartyAppResponse_Result) Type() protoreflect.EnumType
type PhoneMetadata ¶
type PhoneMetadata struct { // State that determines whether a phone number is linked to the owner // account. A phone number is linked if we can treat it as an alias. // This is notably different from association, which answers the question // of whether the number was linked at any point in time. IsLinked bool `protobuf:"varint,1,opt,name=is_linked,json=isLinked,proto3" json:"is_linked,omitempty"` // contains filtered or unexported fields }
func (*PhoneMetadata) Descriptor
deprecated
func (*PhoneMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PhoneMetadata.ProtoReflect.Descriptor instead.
func (*PhoneMetadata) GetIsLinked ¶
func (x *PhoneMetadata) GetIsLinked() bool
func (*PhoneMetadata) ProtoMessage ¶
func (*PhoneMetadata) ProtoMessage()
func (*PhoneMetadata) ProtoReflect ¶
func (x *PhoneMetadata) ProtoReflect() protoreflect.Message
func (*PhoneMetadata) Reset ¶
func (x *PhoneMetadata) Reset()
func (*PhoneMetadata) String ¶
func (x *PhoneMetadata) String() string
func (*PhoneMetadata) Validate ¶
func (m *PhoneMetadata) Validate() error
Validate checks the field values on PhoneMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PhoneMetadataValidationError ¶
type PhoneMetadataValidationError struct {
// contains filtered or unexported fields
}
PhoneMetadataValidationError is the validation error returned by PhoneMetadata.Validate if the designated constraints aren't met.
func (PhoneMetadataValidationError) Cause ¶
func (e PhoneMetadataValidationError) Cause() error
Cause function returns cause value.
func (PhoneMetadataValidationError) Error ¶
func (e PhoneMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (PhoneMetadataValidationError) ErrorName ¶
func (e PhoneMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (PhoneMetadataValidationError) Field ¶
func (e PhoneMetadataValidationError) Field() string
Field function returns field value.
func (PhoneMetadataValidationError) Key ¶
func (e PhoneMetadataValidationError) Key() bool
Key function returns key value.
func (PhoneMetadataValidationError) Reason ¶
func (e PhoneMetadataValidationError) Reason() string
Reason function returns reason value.
type TwitterUser ¶ added in v1.16.1
type TwitterUser struct { // Public key for a token account where tips are routed TipAddress *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=tip_address,json=tipAddress,proto3" json:"tip_address,omitempty"` // The user's username on Twitter Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // The user's friendly name on Twitter Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // URL to the user's Twitter profile picture ProfilePicUrl string `protobuf:"bytes,4,opt,name=profile_pic_url,json=profilePicUrl,proto3" json:"profile_pic_url,omitempty"` // The type of Twitter verification associated with the user VerifiedType TwitterUser_VerifiedType `` /* 141-byte string literal not displayed */ // The number of followers the user has on Twitter FollowerCount uint32 `protobuf:"varint,6,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // contains filtered or unexported fields }
func (*TwitterUser) Descriptor
deprecated
added in
v1.16.1
func (*TwitterUser) Descriptor() ([]byte, []int)
Deprecated: Use TwitterUser.ProtoReflect.Descriptor instead.
func (*TwitterUser) GetFollowerCount ¶ added in v1.16.1
func (x *TwitterUser) GetFollowerCount() uint32
func (*TwitterUser) GetName ¶ added in v1.16.1
func (x *TwitterUser) GetName() string
func (*TwitterUser) GetProfilePicUrl ¶ added in v1.16.1
func (x *TwitterUser) GetProfilePicUrl() string
func (*TwitterUser) GetTipAddress ¶ added in v1.16.1
func (x *TwitterUser) GetTipAddress() *v1.SolanaAccountId
func (*TwitterUser) GetUsername ¶ added in v1.16.1
func (x *TwitterUser) GetUsername() string
func (*TwitterUser) GetVerifiedType ¶ added in v1.16.1
func (x *TwitterUser) GetVerifiedType() TwitterUser_VerifiedType
func (*TwitterUser) ProtoMessage ¶ added in v1.16.1
func (*TwitterUser) ProtoMessage()
func (*TwitterUser) ProtoReflect ¶ added in v1.16.1
func (x *TwitterUser) ProtoReflect() protoreflect.Message
func (*TwitterUser) Reset ¶ added in v1.16.1
func (x *TwitterUser) Reset()
func (*TwitterUser) String ¶ added in v1.16.1
func (x *TwitterUser) String() string
func (*TwitterUser) Validate ¶ added in v1.16.1
func (m *TwitterUser) Validate() error
Validate checks the field values on TwitterUser with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TwitterUserValidationError ¶ added in v1.16.1
type TwitterUserValidationError struct {
// contains filtered or unexported fields
}
TwitterUserValidationError is the validation error returned by TwitterUser.Validate if the designated constraints aren't met.
func (TwitterUserValidationError) Cause ¶ added in v1.16.1
func (e TwitterUserValidationError) Cause() error
Cause function returns cause value.
func (TwitterUserValidationError) Error ¶ added in v1.16.1
func (e TwitterUserValidationError) Error() string
Error satisfies the builtin error interface
func (TwitterUserValidationError) ErrorName ¶ added in v1.16.1
func (e TwitterUserValidationError) ErrorName() string
ErrorName returns error name.
func (TwitterUserValidationError) Field ¶ added in v1.16.1
func (e TwitterUserValidationError) Field() string
Field function returns field value.
func (TwitterUserValidationError) Key ¶ added in v1.16.1
func (e TwitterUserValidationError) Key() bool
Key function returns key value.
func (TwitterUserValidationError) Reason ¶ added in v1.16.1
func (e TwitterUserValidationError) Reason() string
Reason function returns reason value.
type TwitterUser_VerifiedType ¶ added in v1.16.1
type TwitterUser_VerifiedType int32
const ( TwitterUser_NONE TwitterUser_VerifiedType = 0 TwitterUser_BLUE TwitterUser_VerifiedType = 1 TwitterUser_BUSINESS TwitterUser_VerifiedType = 2 TwitterUser_GOVERNMENT TwitterUser_VerifiedType = 3 )
func (TwitterUser_VerifiedType) Descriptor ¶ added in v1.16.1
func (TwitterUser_VerifiedType) Descriptor() protoreflect.EnumDescriptor
func (TwitterUser_VerifiedType) Enum ¶ added in v1.16.1
func (x TwitterUser_VerifiedType) Enum() *TwitterUser_VerifiedType
func (TwitterUser_VerifiedType) EnumDescriptor
deprecated
added in
v1.16.1
func (TwitterUser_VerifiedType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TwitterUser_VerifiedType.Descriptor instead.
func (TwitterUser_VerifiedType) Number ¶ added in v1.16.1
func (x TwitterUser_VerifiedType) Number() protoreflect.EnumNumber
func (TwitterUser_VerifiedType) String ¶ added in v1.16.1
func (x TwitterUser_VerifiedType) String() string
func (TwitterUser_VerifiedType) Type ¶ added in v1.16.1
func (TwitterUser_VerifiedType) Type() protoreflect.EnumType
type UnimplementedIdentityServer ¶
type UnimplementedIdentityServer struct { }
UnimplementedIdentityServer must be embedded to have forward compatible implementations.
func (UnimplementedIdentityServer) GetLoginForThirdPartyApp ¶ added in v1.8.0
func (UnimplementedIdentityServer) GetLoginForThirdPartyApp(context.Context, *GetLoginForThirdPartyAppRequest) (*GetLoginForThirdPartyAppResponse, error)
func (UnimplementedIdentityServer) GetTwitterUser ¶ added in v1.14.0
func (UnimplementedIdentityServer) GetTwitterUser(context.Context, *GetTwitterUserRequest) (*GetTwitterUserResponse, error)
func (UnimplementedIdentityServer) GetUser ¶
func (UnimplementedIdentityServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedIdentityServer) LinkAccount ¶
func (UnimplementedIdentityServer) LinkAccount(context.Context, *LinkAccountRequest) (*LinkAccountResponse, error)
func (UnimplementedIdentityServer) LoginToThirdPartyApp ¶ added in v1.8.0
func (UnimplementedIdentityServer) LoginToThirdPartyApp(context.Context, *LoginToThirdPartyAppRequest) (*LoginToThirdPartyAppResponse, error)
func (UnimplementedIdentityServer) UnlinkAccount ¶
func (UnimplementedIdentityServer) UnlinkAccount(context.Context, *UnlinkAccountRequest) (*UnlinkAccountResponse, error)
func (UnimplementedIdentityServer) UpdatePreferences ¶ added in v1.13.0
func (UnimplementedIdentityServer) UpdatePreferences(context.Context, *UpdatePreferencesRequest) (*UpdatePreferencesResponse, error)
type UnlinkAccountRequest ¶
type UnlinkAccountRequest struct { // The public key of the owner account that will be unliked. OwnerAccountId *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner_account_id,json=ownerAccountId,proto3" json:"owner_account_id,omitempty"` // The signature is of serialize(UnlinkAccountRequest) without this field set // using the private key of owner_account_id. This provides an authentication // mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Types that are assignable to IdentifyingFeature: // // *UnlinkAccountRequest_PhoneNumber IdentifyingFeature isUnlinkAccountRequest_IdentifyingFeature `protobuf_oneof:"identifying_feature"` // contains filtered or unexported fields }
func (*UnlinkAccountRequest) Descriptor
deprecated
func (*UnlinkAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlinkAccountRequest.ProtoReflect.Descriptor instead.
func (*UnlinkAccountRequest) GetIdentifyingFeature ¶
func (m *UnlinkAccountRequest) GetIdentifyingFeature() isUnlinkAccountRequest_IdentifyingFeature
func (*UnlinkAccountRequest) GetOwnerAccountId ¶
func (x *UnlinkAccountRequest) GetOwnerAccountId() *v1.SolanaAccountId
func (*UnlinkAccountRequest) GetPhoneNumber ¶
func (x *UnlinkAccountRequest) GetPhoneNumber() *v1.PhoneNumber
func (*UnlinkAccountRequest) GetSignature ¶
func (x *UnlinkAccountRequest) GetSignature() *v1.Signature
func (*UnlinkAccountRequest) ProtoMessage ¶
func (*UnlinkAccountRequest) ProtoMessage()
func (*UnlinkAccountRequest) ProtoReflect ¶
func (x *UnlinkAccountRequest) ProtoReflect() protoreflect.Message
func (*UnlinkAccountRequest) Reset ¶
func (x *UnlinkAccountRequest) Reset()
func (*UnlinkAccountRequest) String ¶
func (x *UnlinkAccountRequest) String() string
func (*UnlinkAccountRequest) Validate ¶
func (m *UnlinkAccountRequest) Validate() error
Validate checks the field values on UnlinkAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UnlinkAccountRequestValidationError ¶
type UnlinkAccountRequestValidationError struct {
// contains filtered or unexported fields
}
UnlinkAccountRequestValidationError is the validation error returned by UnlinkAccountRequest.Validate if the designated constraints aren't met.
func (UnlinkAccountRequestValidationError) Cause ¶
func (e UnlinkAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (UnlinkAccountRequestValidationError) Error ¶
func (e UnlinkAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnlinkAccountRequestValidationError) ErrorName ¶
func (e UnlinkAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnlinkAccountRequestValidationError) Field ¶
func (e UnlinkAccountRequestValidationError) Field() string
Field function returns field value.
func (UnlinkAccountRequestValidationError) Key ¶
func (e UnlinkAccountRequestValidationError) Key() bool
Key function returns key value.
func (UnlinkAccountRequestValidationError) Reason ¶
func (e UnlinkAccountRequestValidationError) Reason() string
Reason function returns reason value.
type UnlinkAccountRequest_PhoneNumber ¶
type UnlinkAccountRequest_PhoneNumber struct { // The phone number associated with the owner account. PhoneNumber *v1.PhoneNumber `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3,oneof"` }
type UnlinkAccountResponse ¶
type UnlinkAccountResponse struct { Result UnlinkAccountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.user.v1.UnlinkAccountResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*UnlinkAccountResponse) Descriptor
deprecated
func (*UnlinkAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnlinkAccountResponse.ProtoReflect.Descriptor instead.
func (*UnlinkAccountResponse) GetResult ¶
func (x *UnlinkAccountResponse) GetResult() UnlinkAccountResponse_Result
func (*UnlinkAccountResponse) ProtoMessage ¶
func (*UnlinkAccountResponse) ProtoMessage()
func (*UnlinkAccountResponse) ProtoReflect ¶
func (x *UnlinkAccountResponse) ProtoReflect() protoreflect.Message
func (*UnlinkAccountResponse) Reset ¶
func (x *UnlinkAccountResponse) Reset()
func (*UnlinkAccountResponse) String ¶
func (x *UnlinkAccountResponse) String() string
func (*UnlinkAccountResponse) Validate ¶
func (m *UnlinkAccountResponse) Validate() error
Validate checks the field values on UnlinkAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UnlinkAccountResponseValidationError ¶
type UnlinkAccountResponseValidationError struct {
// contains filtered or unexported fields
}
UnlinkAccountResponseValidationError is the validation error returned by UnlinkAccountResponse.Validate if the designated constraints aren't met.
func (UnlinkAccountResponseValidationError) Cause ¶
func (e UnlinkAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (UnlinkAccountResponseValidationError) Error ¶
func (e UnlinkAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnlinkAccountResponseValidationError) ErrorName ¶
func (e UnlinkAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnlinkAccountResponseValidationError) Field ¶
func (e UnlinkAccountResponseValidationError) Field() string
Field function returns field value.
func (UnlinkAccountResponseValidationError) Key ¶
func (e UnlinkAccountResponseValidationError) Key() bool
Key function returns key value.
func (UnlinkAccountResponseValidationError) Reason ¶
func (e UnlinkAccountResponseValidationError) Reason() string
Reason function returns reason value.
type UnlinkAccountResponse_Result ¶
type UnlinkAccountResponse_Result int32
const ( UnlinkAccountResponse_OK UnlinkAccountResponse_Result = 0 // The client attempted to unlink an owner account or identifying feature // that never had a valid association. UnlinkAccountResponse_NEVER_ASSOCIATED UnlinkAccountResponse_Result = 1 )
func (UnlinkAccountResponse_Result) Descriptor ¶
func (UnlinkAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (UnlinkAccountResponse_Result) Enum ¶
func (x UnlinkAccountResponse_Result) Enum() *UnlinkAccountResponse_Result
func (UnlinkAccountResponse_Result) EnumDescriptor
deprecated
func (UnlinkAccountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use UnlinkAccountResponse_Result.Descriptor instead.
func (UnlinkAccountResponse_Result) Number ¶
func (x UnlinkAccountResponse_Result) Number() protoreflect.EnumNumber
func (UnlinkAccountResponse_Result) String ¶
func (x UnlinkAccountResponse_Result) String() string
func (UnlinkAccountResponse_Result) Type ¶
func (UnlinkAccountResponse_Result) Type() protoreflect.EnumType
type UnsafeIdentityServer ¶
type UnsafeIdentityServer interface {
// contains filtered or unexported methods
}
UnsafeIdentityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityServer will result in compilation errors.
type UpdatePreferencesRequest ¶ added in v1.13.0
type UpdatePreferencesRequest struct { // The public key of the owner account that signed this request message. OwnerAccountId *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner_account_id,json=ownerAccountId,proto3" json:"owner_account_id,omitempty"` // The data container for the copy of the contact list being added to. ContainerId *v1.DataContainerId `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // The signature is of serialize(UpdatePreferencesRequest) without this field set // using the private key of owner_account_id. Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // The user's locale, which is used for server-side localization of things like // chat messages, pushes, etc. If no locale is set, or the provided locale isn't // supported, then English is used as the default fallback. // // Note: This is required since it's the only preference. In the future, we'll add // // optional fields, where the subset of fields provided will be the ones that // are updated. Locale *v1.Locale `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"` // contains filtered or unexported fields }
func (*UpdatePreferencesRequest) Descriptor
deprecated
added in
v1.13.0
func (*UpdatePreferencesRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePreferencesRequest.ProtoReflect.Descriptor instead.
func (*UpdatePreferencesRequest) GetContainerId ¶ added in v1.13.0
func (x *UpdatePreferencesRequest) GetContainerId() *v1.DataContainerId
func (*UpdatePreferencesRequest) GetLocale ¶ added in v1.13.0
func (x *UpdatePreferencesRequest) GetLocale() *v1.Locale
func (*UpdatePreferencesRequest) GetOwnerAccountId ¶ added in v1.13.0
func (x *UpdatePreferencesRequest) GetOwnerAccountId() *v1.SolanaAccountId
func (*UpdatePreferencesRequest) GetSignature ¶ added in v1.13.0
func (x *UpdatePreferencesRequest) GetSignature() *v1.Signature
func (*UpdatePreferencesRequest) ProtoMessage ¶ added in v1.13.0
func (*UpdatePreferencesRequest) ProtoMessage()
func (*UpdatePreferencesRequest) ProtoReflect ¶ added in v1.13.0
func (x *UpdatePreferencesRequest) ProtoReflect() protoreflect.Message
func (*UpdatePreferencesRequest) Reset ¶ added in v1.13.0
func (x *UpdatePreferencesRequest) Reset()
func (*UpdatePreferencesRequest) String ¶ added in v1.13.0
func (x *UpdatePreferencesRequest) String() string
func (*UpdatePreferencesRequest) Validate ¶ added in v1.13.0
func (m *UpdatePreferencesRequest) Validate() error
Validate checks the field values on UpdatePreferencesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdatePreferencesRequestValidationError ¶ added in v1.13.0
type UpdatePreferencesRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePreferencesRequestValidationError is the validation error returned by UpdatePreferencesRequest.Validate if the designated constraints aren't met.
func (UpdatePreferencesRequestValidationError) Cause ¶ added in v1.13.0
func (e UpdatePreferencesRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePreferencesRequestValidationError) Error ¶ added in v1.13.0
func (e UpdatePreferencesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePreferencesRequestValidationError) ErrorName ¶ added in v1.13.0
func (e UpdatePreferencesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePreferencesRequestValidationError) Field ¶ added in v1.13.0
func (e UpdatePreferencesRequestValidationError) Field() string
Field function returns field value.
func (UpdatePreferencesRequestValidationError) Key ¶ added in v1.13.0
func (e UpdatePreferencesRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePreferencesRequestValidationError) Reason ¶ added in v1.13.0
func (e UpdatePreferencesRequestValidationError) Reason() string
Reason function returns reason value.
type UpdatePreferencesResponse ¶ added in v1.13.0
type UpdatePreferencesResponse struct { Result UpdatePreferencesResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.user.v1.UpdatePreferencesResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*UpdatePreferencesResponse) Descriptor
deprecated
added in
v1.13.0
func (*UpdatePreferencesResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePreferencesResponse.ProtoReflect.Descriptor instead.
func (*UpdatePreferencesResponse) GetResult ¶ added in v1.13.0
func (x *UpdatePreferencesResponse) GetResult() UpdatePreferencesResponse_Result
func (*UpdatePreferencesResponse) ProtoMessage ¶ added in v1.13.0
func (*UpdatePreferencesResponse) ProtoMessage()
func (*UpdatePreferencesResponse) ProtoReflect ¶ added in v1.13.0
func (x *UpdatePreferencesResponse) ProtoReflect() protoreflect.Message
func (*UpdatePreferencesResponse) Reset ¶ added in v1.13.0
func (x *UpdatePreferencesResponse) Reset()
func (*UpdatePreferencesResponse) String ¶ added in v1.13.0
func (x *UpdatePreferencesResponse) String() string
func (*UpdatePreferencesResponse) Validate ¶ added in v1.13.0
func (m *UpdatePreferencesResponse) Validate() error
Validate checks the field values on UpdatePreferencesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdatePreferencesResponseValidationError ¶ added in v1.13.0
type UpdatePreferencesResponseValidationError struct {
// contains filtered or unexported fields
}
UpdatePreferencesResponseValidationError is the validation error returned by UpdatePreferencesResponse.Validate if the designated constraints aren't met.
func (UpdatePreferencesResponseValidationError) Cause ¶ added in v1.13.0
func (e UpdatePreferencesResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdatePreferencesResponseValidationError) Error ¶ added in v1.13.0
func (e UpdatePreferencesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePreferencesResponseValidationError) ErrorName ¶ added in v1.13.0
func (e UpdatePreferencesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePreferencesResponseValidationError) Field ¶ added in v1.13.0
func (e UpdatePreferencesResponseValidationError) Field() string
Field function returns field value.
func (UpdatePreferencesResponseValidationError) Key ¶ added in v1.13.0
func (e UpdatePreferencesResponseValidationError) Key() bool
Key function returns key value.
func (UpdatePreferencesResponseValidationError) Reason ¶ added in v1.13.0
func (e UpdatePreferencesResponseValidationError) Reason() string
Reason function returns reason value.
type UpdatePreferencesResponse_Result ¶ added in v1.13.0
type UpdatePreferencesResponse_Result int32
const ( UpdatePreferencesResponse_OK UpdatePreferencesResponse_Result = 0 // The provided locale couldn't be parsed or recognized and is invalid. UpdatePreferencesResponse_INVALID_LOCALE UpdatePreferencesResponse_Result = 1 )
func (UpdatePreferencesResponse_Result) Descriptor ¶ added in v1.13.0
func (UpdatePreferencesResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (UpdatePreferencesResponse_Result) Enum ¶ added in v1.13.0
func (x UpdatePreferencesResponse_Result) Enum() *UpdatePreferencesResponse_Result
func (UpdatePreferencesResponse_Result) EnumDescriptor
deprecated
added in
v1.13.0
func (UpdatePreferencesResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdatePreferencesResponse_Result.Descriptor instead.
func (UpdatePreferencesResponse_Result) Number ¶ added in v1.13.0
func (x UpdatePreferencesResponse_Result) Number() protoreflect.EnumNumber
func (UpdatePreferencesResponse_Result) String ¶ added in v1.13.0
func (x UpdatePreferencesResponse_Result) String() string
func (UpdatePreferencesResponse_Result) Type ¶ added in v1.13.0
func (UpdatePreferencesResponse_Result) Type() protoreflect.EnumType
type User ¶
type User struct { // The user's ID Id *v1.UserId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The identifying features that are associated with the user View *View `protobuf:"bytes,2,opt,name=view,proto3" json:"view,omitempty"` // contains filtered or unexported fields }
User is the highest order of a form of identity within Code.
Note: Users outside Code are modelled as relationship accounts
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.
type View ¶
type View struct { // The phone number associated with a user. // // Note: This field is mandatory as of right now, since it's the only one // // supported to date. PhoneNumber *v1.PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // contains filtered or unexported fields }
View is a well-defined set of identifying features. It is contrained to having exactly one feature set at a time, for now.
func (*View) Descriptor
deprecated
func (*View) GetPhoneNumber ¶
func (x *View) GetPhoneNumber() *v1.PhoneNumber
func (*View) ProtoMessage ¶
func (*View) ProtoMessage()
func (*View) ProtoReflect ¶
func (x *View) ProtoReflect() protoreflect.Message
type ViewValidationError ¶
type ViewValidationError struct {
// contains filtered or unexported fields
}
ViewValidationError is the validation error returned by View.Validate if the designated constraints aren't met.
func (ViewValidationError) Cause ¶
func (e ViewValidationError) Cause() error
Cause function returns cause value.
func (ViewValidationError) Error ¶
func (e ViewValidationError) Error() string
Error satisfies the builtin error interface
func (ViewValidationError) ErrorName ¶
func (e ViewValidationError) ErrorName() string
ErrorName returns error name.
func (ViewValidationError) Field ¶
func (e ViewValidationError) Field() string
Field function returns field value.
func (ViewValidationError) Key ¶
func (e ViewValidationError) Key() bool
Key function returns key value.
func (ViewValidationError) Reason ¶
func (e ViewValidationError) Reason() string
Reason function returns reason value.