mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
26c8113930
* feat: change user command side * feat: change user command side * feat: use states on write model * feat: command and query side in auth api * feat: auth commands * feat: check external idp id * feat: user state check * fix: error messages * fix: is active state
39 lines
1.6 KiB
Go
39 lines
1.6 KiB
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/caos/zitadel/internal/user/model"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
UserByID(ctx context.Context, id string) (*model.UserView, error)
|
|
SearchUsers(ctx context.Context, request *model.UserSearchRequest) (*model.UserSearchResponse, error)
|
|
|
|
GetUserByLoginNameGlobal(ctx context.Context, email string) (*model.UserView, error)
|
|
IsUserUnique(ctx context.Context, userName, email string) (bool, error)
|
|
|
|
UserChanges(ctx context.Context, id string, lastSequence uint64, limit uint64, sortAscending bool) (*model.UserChanges, error)
|
|
|
|
ProfileByID(ctx context.Context, userID string) (*model.Profile, error)
|
|
|
|
UserMFAs(ctx context.Context, userID string) ([]*model.MultiFactor, error)
|
|
|
|
GetPasswordless(ctx context.Context, userID string) ([]*model.WebAuthNToken, error)
|
|
|
|
SearchExternalIDPs(ctx context.Context, request *model.ExternalIDPSearchRequest) (*model.ExternalIDPSearchResponse, error)
|
|
|
|
SearchMachineKeys(ctx context.Context, request *model.MachineKeySearchRequest) (*model.MachineKeySearchResponse, error)
|
|
GetMachineKey(ctx context.Context, userID, keyID string) (*model.MachineKeyView, error)
|
|
AddMachineKey(ctx context.Context, key *model.MachineKey) (*model.MachineKey, error)
|
|
RemoveMachineKey(ctx context.Context, userID, keyID string) error
|
|
|
|
EmailByID(ctx context.Context, userID string) (*model.Email, error)
|
|
|
|
PhoneByID(ctx context.Context, userID string) (*model.Phone, error)
|
|
|
|
AddressByID(ctx context.Context, userID string) (*model.Address, error)
|
|
|
|
SearchUserMemberships(ctx context.Context, request *model.UserMembershipSearchRequest) (*model.UserMembershipSearchResponse, error)
|
|
}
|