mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-19 22:37:35 +00:00
ae840f364c
* begin authn keys * single table for state change * add key type * begin authn keys query * query * tests * fix merge * remove wrong migration version * improve filter * Update projection.go * cleanup
48 lines
1.6 KiB
Go
48 lines
1.6 KiB
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"github.com/caos/zitadel/internal/domain"
|
|
"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)
|
|
|
|
SearchUsers(ctx context.Context, request *model.UserSearchRequest) (*model.UserSearchResponse, error)
|
|
|
|
SearchUserMetadata(ctx context.Context, userID string) (*domain.MetadataSearchResponse, 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, retention time.Duration) (*model.UserChanges, error)
|
|
|
|
SearchMyUserMemberships(ctx context.Context, request *model.UserMembershipSearchRequest) (*model.UserMembershipSearchResponse, error)
|
|
|
|
GetMyMetadataByKey(ctx context.Context, key string) (*domain.Metadata, error)
|
|
SearchMyMetadata(ctx context.Context, req *domain.MetadataSearchRequest) (*domain.MetadataSearchResponse, error)
|
|
}
|