mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
428ef4acdb
* fix: move user by id to query side * fix: move get passwordless to query side # Conflicts: # internal/user/repository/eventsourcing/eventstore.go * fix: move get passwordless to query side * remove user eventstore * remove unused models * org changes * org changes * fix: move org queries to query side * fix: remove org eventstore * fix: remove org eventstore * fix: remove org eventstore * remove project from es v1 * project cleanup * project cleanup * fix: remove org eventstore * fix: remove iam eventstore Co-authored-by: Livio Amstutz <livio.a@gmail.com>
43 lines
1.3 KiB
Go
43 lines
1.3 KiB
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
key_model "github.com/caos/zitadel/internal/key/model"
|
|
|
|
"github.com/caos/zitadel/internal/user/model"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
myUserRepo
|
|
|
|
UserSessionUserIDsByAgentID(ctx context.Context, agentID string) ([]string, error)
|
|
|
|
UserByID(ctx context.Context, userID string) (*model.UserView, error)
|
|
UserByLoginName(ctx context.Context, loginName string) (*model.UserView, error)
|
|
|
|
MachineKeyByID(ctx context.Context, keyID string) (*key_model.AuthNKeyView, error)
|
|
}
|
|
|
|
type myUserRepo interface {
|
|
MyUser(ctx context.Context) (*model.UserView, error)
|
|
|
|
MyProfile(ctx context.Context) (*model.Profile, error)
|
|
|
|
MyEmail(ctx context.Context) (*model.Email, error)
|
|
|
|
MyPhone(ctx context.Context) (*model.Phone, error)
|
|
|
|
MyAddress(ctx context.Context) (*model.Address, error)
|
|
|
|
SearchMyExternalIDPs(ctx context.Context, request *model.ExternalIDPSearchRequest) (*model.ExternalIDPSearchResponse, error)
|
|
|
|
MyUserMFAs(ctx context.Context) ([]*model.MultiFactor, error)
|
|
|
|
GetMyPasswordless(ctx context.Context) ([]*model.WebAuthNView, error)
|
|
|
|
MyUserChanges(ctx context.Context, lastSequence uint64, limit uint64, sortAscending bool) (*model.UserChanges, error)
|
|
|
|
SearchMyUserMemberships(ctx context.Context, request *model.UserMembershipSearchRequest) (*model.UserMembershipSearchResponse, error)
|
|
}
|