package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Feb 5, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateAPIKeyRequest struct {
Name string `json:"name" validate:"required"`
ExpiresInDays int `json:"expires_in_days"`
}
type ListUsersResponse struct {
Users []*user.User `json:"users"`
Total int `json:"total"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
type LoginRequest struct {
Username string `json:"username" validate:"required"`
Password string `json:"password" validate:"required"`
}
type OAuthLinkRequest struct {
UserID string `json:"user_id" validate:"required"`
Provider string `json:"provider" validate:"required"`
ProviderUserID string `json:"provider_user_id" validate:"required"`
UserInfo map[string]interface{} `json:"user_info" validate:"required"`
}
type TokenResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int64 `json:"expires_in"`
RequiresPasswordChange bool `json:"requires_password_change"`
RedirectURI string `json:"redirect_uri,omitempty"`
}
type UpdatePasswordRequest struct {
NewPassword string `json:"new_password" validate:"required,min=8"`
}
type UserSearchResult struct {
ID string `json:"id"`
Username string `json:"username"`
Name string `json:"name"`
ProfilePicture *string `json:"profile_picture,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.