Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + type AdminPluginConfig struct + Enabled bool + ImpersonationMaxExpiresIn time.Duration + func (config *AdminPluginConfig) ApplyDefaults() + type AdminSessionState struct + CreatedAt time.Time + ImpersonationExpiresAt *time.Time + ImpersonationReason *string + ImpersonatorUserID *string + RevokedAt *time.Time + RevokedByUserID *string + RevokedReason *string + SessionID string + UpdatedAt time.Time + type AdminUserSession struct + Session models.Session + State *AdminSessionState + type AdminUserState struct + Banned bool + BannedAt *time.Time + BannedByUserID *string + BannedReason *string + BannedUntil *time.Time + CreatedAt time.Time + UpdatedAt time.Time + UserID string + type BanUserRequest struct + BannedUntil *time.Time + Reason *string + type BanUserResponse struct + State *AdminUserState + type CreateAccountRequest struct + AccessToken *string + AccessTokenExpiresAt *time.Time + AccountID string + IDToken *string + Password *string + ProviderID string + RefreshToken *string + RefreshTokenExpiresAt *time.Time + Scope *string + type CreateAccountResponse struct + Account *models.Account + type CreateSessionStateRequest struct + ImpersonationExpiresAt *time.Time + ImpersonationReason *string + ImpersonatorUserID *string + Revoke bool + RevokedReason *string + type CreateUserRequest struct + Email string + EmailVerified *bool + Image *string + Metadata json.RawMessage + Name string + type CreateUserResponse struct + User *models.User + type CreateUserStateRequest struct + Banned bool + BannedReason *string + BannedUntil *time.Time + type DeleteAccountResponse struct + Message string + type DeleteSessionStateResponse struct + Message string + type DeleteUserResponse struct + Message string + type DeleteUserStateResponse struct + Message string + type GetAccountByIDResponse struct + Account *models.Account + type GetImpersonationByIDResponse struct + Impersonation *Impersonation + type GetSessionStateResponse struct + State *AdminSessionState + type GetUserByIDResponse struct + User *models.User + type GetUserStateResponse struct + State *AdminUserState + type Impersonation struct + ActorSessionID *string + ActorUserID string + CreatedAt time.Time + EndedAt *time.Time + EndedByUserID *string + ExpiresAt time.Time + ID string + ImpersonationSessionID *string + Reason string + StartedAt time.Time + TargetUserID string + UpdatedAt time.Time + type RevokeSessionRequest struct + Reason *string + type RevokeSessionResponse struct + State *AdminSessionState + type StartImpersonationRequest struct + ExpiresInSeconds *int + Reason string + TargetUserID string + type StartImpersonationResponse struct + Impersonation *Impersonation + type StartImpersonationResult struct + Impersonation *Impersonation + SessionID *string + SessionToken *string + type StopImpersonationRequest struct + ImpersonationID *string + type StopImpersonationResponse struct + Message string + type UnbanUserResponse struct + State *AdminUserState + type UpdateAccountRequest struct + AccessToken *string + AccessTokenExpiresAt *time.Time + AccountID *string + IDToken *string + Password *string + ProviderID *string + RefreshToken *string + RefreshTokenExpiresAt *time.Time + Scope *string + type UpdateAccountResponse struct + Account *models.Account + type UpdateUserRequest struct + Email *string + EmailVerified *bool + Image *string + Metadata json.RawMessage + Name *string + type UpdateUserResponse struct + User *models.User + type UpsertSessionStateRequest struct + ImpersonationExpiresAt *time.Time + ImpersonationReason *string + ImpersonatorUserID *string + Revoke bool + RevokedReason *string + type UpsertSessionStateResponse struct + State *AdminSessionState + type UpsertUserStateRequest struct + Banned bool + BannedReason *string + BannedUntil *time.Time + type UpsertUserStateResponse struct + State *AdminUserState + type UserAccountsResponse struct + Accounts []models.Account + type UsersPage struct + NextCursor *string + Users []models.User