mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00

* feat: added license manager and feature flags * feat: completed org domain api * chore: checking in saml auth handler code * feat: added signup with sso * feat: added login support for admins * feat: added pem support for certificate * ci(build-workflow): 👷 include EE query-service * fix: 🐛 update package name * chore(ee): 🔧 LD_FLAGS related changes Signed-off-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: nityanandagohain <nityanandagohain@gmail.com>
62 lines
1.5 KiB
Go
62 lines
1.5 KiB
Go
package model
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
var (
|
|
ErrorTokenExpired = errors.New("Token is expired")
|
|
)
|
|
|
|
type InviteRequest struct {
|
|
Name string `json:"name"`
|
|
Email string `json:"email"`
|
|
Role string `json:"role"`
|
|
}
|
|
|
|
type InviteResponse struct {
|
|
Email string `json:"email"`
|
|
InviteToken string `json:"inviteToken"`
|
|
}
|
|
|
|
type InvitationResponseObject struct {
|
|
Email string `json:"email" db:"email"`
|
|
Name string `json:"name" db:"name"`
|
|
Token string `json:"token" db:"token"`
|
|
CreatedAt int64 `json:"createdAt" db:"created_at"`
|
|
Role string `json:"role" db:"role"`
|
|
Organization string `json:"organization" db:"organization"`
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
RefreshToken string `json:"refreshToken"`
|
|
}
|
|
|
|
type UserJwtObject struct {
|
|
AccessJwt string `json:"accessJwt"`
|
|
AccessJwtExpiry int64 `json:"accessJwtExpiry"`
|
|
RefreshJwt string `json:"refreshJwt"`
|
|
RefreshJwtExpiry int64 `json:"refreshJwtExpiry"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
UserJwtObject
|
|
UserId string `json:"userId"`
|
|
}
|
|
|
|
type ChangePasswordRequest struct {
|
|
UserId string `json:"userId"`
|
|
OldPassword string `json:"oldPassword"`
|
|
NewPassword string `json:"newPassword"`
|
|
}
|
|
|
|
type ResetPasswordEntry struct {
|
|
UserId string `json:"userId" db:"user_id"`
|
|
Token string `json:"token" db:"token"`
|
|
}
|
|
|
|
type UserRole struct {
|
|
UserId string `json:"user_id"`
|
|
GroupName string `json:"group_name"`
|
|
}
|