2021-07-08 12:15:19 +00:00
|
|
|
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
|
|
|
|
package model
|
|
|
|
|
2021-12-30 04:31:51 +00:00
|
|
|
type AdminLoginInput struct {
|
|
|
|
AdminSecret string `json:"admin_secret"`
|
|
|
|
}
|
|
|
|
|
2022-01-09 13:10:30 +00:00
|
|
|
type AdminSignupInput struct {
|
|
|
|
AdminSecret string `json:"admin_secret"`
|
2021-12-30 04:31:51 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 10:13:08 +00:00
|
|
|
type AuthResponse struct {
|
2021-12-22 05:21:12 +00:00
|
|
|
Message string `json:"message"`
|
|
|
|
AccessToken *string `json:"access_token"`
|
|
|
|
ExpiresAt *int64 `json:"expires_at"`
|
|
|
|
User *User `json:"user"`
|
2021-07-28 10:13:08 +00:00
|
|
|
}
|
|
|
|
|
2022-01-17 07:42:46 +00:00
|
|
|
type DeleteUserInput struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Env struct {
|
2021-12-31 11:33:37 +00:00
|
|
|
AdminSecret *string `json:"ADMIN_SECRET"`
|
|
|
|
SMTPHost *string `json:"SMTP_HOST"`
|
|
|
|
SMTPPort *string `json:"SMTP_PORT"`
|
2022-01-08 06:13:12 +00:00
|
|
|
SMTPUsername *string `json:"SMTP_USERNAME"`
|
|
|
|
SMTPPassword *string `json:"SMTP_PASSWORD"`
|
2021-12-31 11:33:37 +00:00
|
|
|
SenderEmail *string `json:"SENDER_EMAIL"`
|
|
|
|
JwtType *string `json:"JWT_TYPE"`
|
|
|
|
JwtSecret *string `json:"JWT_SECRET"`
|
|
|
|
AllowedOrigins []string `json:"ALLOWED_ORIGINS"`
|
|
|
|
AuthorizerURL *string `json:"AUTHORIZER_URL"`
|
|
|
|
AppURL *string `json:"APP_URL"`
|
|
|
|
RedisURL *string `json:"REDIS_URL"`
|
|
|
|
CookieName *string `json:"COOKIE_NAME"`
|
|
|
|
ResetPasswordURL *string `json:"RESET_PASSWORD_URL"`
|
|
|
|
DisableEmailVerification *bool `json:"DISABLE_EMAIL_VERIFICATION"`
|
|
|
|
DisableBasicAuthentication *bool `json:"DISABLE_BASIC_AUTHENTICATION"`
|
|
|
|
DisableMagicLinkLogin *bool `json:"DISABLE_MAGIC_LINK_LOGIN"`
|
|
|
|
DisableLoginPage *bool `json:"DISABLE_LOGIN_PAGE"`
|
|
|
|
Roles []string `json:"ROLES"`
|
|
|
|
ProtectedRoles []string `json:"PROTECTED_ROLES"`
|
|
|
|
DefaultRoles []string `json:"DEFAULT_ROLES"`
|
|
|
|
JwtRoleClaim *string `json:"JWT_ROLE_CLAIM"`
|
|
|
|
GoogleClientID *string `json:"GOOGLE_CLIENT_ID"`
|
|
|
|
GoogleClientSecret *string `json:"GOOGLE_CLIENT_SECRET"`
|
|
|
|
GithubClientID *string `json:"GITHUB_CLIENT_ID"`
|
|
|
|
GithubClientSecret *string `json:"GITHUB_CLIENT_SECRET"`
|
|
|
|
FacebookClientID *string `json:"FACEBOOK_CLIENT_ID"`
|
|
|
|
FacebookClientSecret *string `json:"FACEBOOK_CLIENT_SECRET"`
|
|
|
|
OrganizationName *string `json:"ORGANIZATION_NAME"`
|
|
|
|
OrganizationLogo *string `json:"ORGANIZATION_LOGO"`
|
|
|
|
}
|
|
|
|
|
2021-07-12 18:22:16 +00:00
|
|
|
type Error struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
Reason string `json:"reason"`
|
2021-07-08 12:15:19 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 09:56:29 +00:00
|
|
|
type ForgotPasswordInput struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
2022-01-23 19:02:06 +00:00
|
|
|
type IsValidJWTQueryInput struct {
|
|
|
|
Jwt string `json:"jwt"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
}
|
|
|
|
|
2021-07-14 18:43:19 +00:00
|
|
|
type LoginInput struct {
|
2021-10-13 16:41:41 +00:00
|
|
|
Email string `json:"email"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Roles []string `json:"roles"`
|
2021-07-14 18:43:19 +00:00
|
|
|
}
|
|
|
|
|
2021-12-22 05:21:12 +00:00
|
|
|
type MagicLinkLoginInput struct {
|
2021-11-11 23:52:03 +00:00
|
|
|
Email string `json:"email"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
}
|
|
|
|
|
2021-07-28 07:55:52 +00:00
|
|
|
type Meta struct {
|
|
|
|
Version string `json:"version"`
|
2021-12-22 05:21:12 +00:00
|
|
|
IsGoogleLoginEnabled bool `json:"is_google_login_enabled"`
|
|
|
|
IsFacebookLoginEnabled bool `json:"is_facebook_login_enabled"`
|
|
|
|
IsGithubLoginEnabled bool `json:"is_github_login_enabled"`
|
|
|
|
IsEmailVerificationEnabled bool `json:"is_email_verification_enabled"`
|
|
|
|
IsBasicAuthenticationEnabled bool `json:"is_basic_authentication_enabled"`
|
|
|
|
IsMagicLinkLoginEnabled bool `json:"is_magic_link_login_enabled"`
|
2021-07-28 07:55:52 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 07:26:17 +00:00
|
|
|
type ResendVerifyEmailInput struct {
|
2021-12-23 05:01:52 +00:00
|
|
|
Email string `json:"email"`
|
|
|
|
Identifier string `json:"identifier"`
|
2021-07-18 07:26:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-07 08:41:26 +00:00
|
|
|
type ResetPasswordInput struct {
|
2021-07-21 08:06:26 +00:00
|
|
|
Token string `json:"token"`
|
|
|
|
Password string `json:"password"`
|
2021-12-22 05:21:12 +00:00
|
|
|
ConfirmPassword string `json:"confirm_password"`
|
2021-07-21 08:06:26 +00:00
|
|
|
}
|
|
|
|
|
2021-07-15 09:43:00 +00:00
|
|
|
type Response struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
2022-01-23 19:02:06 +00:00
|
|
|
type SessionQueryInput struct {
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
}
|
|
|
|
|
2021-07-15 09:43:00 +00:00
|
|
|
type SignUpInput struct {
|
2021-10-13 16:41:41 +00:00
|
|
|
Email string `json:"email"`
|
2021-12-22 05:21:12 +00:00
|
|
|
GivenName *string `json:"given_name"`
|
|
|
|
FamilyName *string `json:"family_name"`
|
|
|
|
MiddleName *string `json:"middle_name"`
|
|
|
|
Nickname *string `json:"nickname"`
|
|
|
|
Gender *string `json:"gender"`
|
|
|
|
Birthdate *string `json:"birthdate"`
|
|
|
|
PhoneNumber *string `json:"phone_number"`
|
|
|
|
Picture *string `json:"picture"`
|
2021-10-13 16:41:41 +00:00
|
|
|
Password string `json:"password"`
|
2021-12-22 05:21:12 +00:00
|
|
|
ConfirmPassword string `json:"confirm_password"`
|
2021-10-13 16:41:41 +00:00
|
|
|
Roles []string `json:"roles"`
|
2021-07-15 09:43:00 +00:00
|
|
|
}
|
|
|
|
|
2022-01-17 07:42:46 +00:00
|
|
|
type UpdateEnvInput struct {
|
2021-12-31 11:33:37 +00:00
|
|
|
AdminSecret *string `json:"ADMIN_SECRET"`
|
2022-01-17 07:50:32 +00:00
|
|
|
OldAdminSecret *string `json:"OLD_ADMIN_SECRET"`
|
2021-12-31 11:33:37 +00:00
|
|
|
SMTPHost *string `json:"SMTP_HOST"`
|
|
|
|
SMTPPort *string `json:"SMTP_PORT"`
|
|
|
|
SenderEmail *string `json:"SENDER_EMAIL"`
|
|
|
|
SenderPassword *string `json:"SENDER_PASSWORD"`
|
|
|
|
JwtType *string `json:"JWT_TYPE"`
|
|
|
|
JwtSecret *string `json:"JWT_SECRET"`
|
|
|
|
AllowedOrigins []string `json:"ALLOWED_ORIGINS"`
|
|
|
|
AuthorizerURL *string `json:"AUTHORIZER_URL"`
|
|
|
|
AppURL *string `json:"APP_URL"`
|
|
|
|
RedisURL *string `json:"REDIS_URL"`
|
|
|
|
CookieName *string `json:"COOKIE_NAME"`
|
|
|
|
ResetPasswordURL *string `json:"RESET_PASSWORD_URL"`
|
|
|
|
DisableEmailVerification *bool `json:"DISABLE_EMAIL_VERIFICATION"`
|
|
|
|
DisableBasicAuthentication *bool `json:"DISABLE_BASIC_AUTHENTICATION"`
|
|
|
|
DisableMagicLinkLogin *bool `json:"DISABLE_MAGIC_LINK_LOGIN"`
|
|
|
|
DisableLoginPage *bool `json:"DISABLE_LOGIN_PAGE"`
|
|
|
|
Roles []string `json:"ROLES"`
|
|
|
|
ProtectedRoles []string `json:"PROTECTED_ROLES"`
|
|
|
|
DefaultRoles []string `json:"DEFAULT_ROLES"`
|
|
|
|
JwtRoleClaim *string `json:"JWT_ROLE_CLAIM"`
|
|
|
|
GoogleClientID *string `json:"GOOGLE_CLIENT_ID"`
|
|
|
|
GoogleClientSecret *string `json:"GOOGLE_CLIENT_SECRET"`
|
|
|
|
GithubClientID *string `json:"GITHUB_CLIENT_ID"`
|
|
|
|
GithubClientSecret *string `json:"GITHUB_CLIENT_SECRET"`
|
|
|
|
FacebookClientID *string `json:"FACEBOOK_CLIENT_ID"`
|
|
|
|
FacebookClientSecret *string `json:"FACEBOOK_CLIENT_SECRET"`
|
|
|
|
OrganizationName *string `json:"ORGANIZATION_NAME"`
|
|
|
|
OrganizationLogo *string `json:"ORGANIZATION_LOGO"`
|
|
|
|
}
|
|
|
|
|
2021-07-18 03:55:20 +00:00
|
|
|
type UpdateProfileInput struct {
|
2021-12-22 05:21:12 +00:00
|
|
|
OldPassword *string `json:"old_password"`
|
|
|
|
NewPassword *string `json:"new_password"`
|
|
|
|
ConfirmNewPassword *string `json:"confirm_new_password"`
|
2021-07-18 03:55:20 +00:00
|
|
|
Email *string `json:"email"`
|
2021-12-22 05:21:12 +00:00
|
|
|
GivenName *string `json:"given_name"`
|
|
|
|
FamilyName *string `json:"family_name"`
|
|
|
|
MiddleName *string `json:"middle_name"`
|
|
|
|
Nickname *string `json:"nickname"`
|
|
|
|
Gender *string `json:"gender"`
|
|
|
|
Birthdate *string `json:"birthdate"`
|
|
|
|
PhoneNumber *string `json:"phone_number"`
|
|
|
|
Picture *string `json:"picture"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateUserInput struct {
|
2022-01-17 06:02:13 +00:00
|
|
|
ID string `json:"id"`
|
|
|
|
Email *string `json:"email"`
|
|
|
|
EmailVerified *bool `json:"email_verified"`
|
|
|
|
GivenName *string `json:"given_name"`
|
|
|
|
FamilyName *string `json:"family_name"`
|
|
|
|
MiddleName *string `json:"middle_name"`
|
|
|
|
Nickname *string `json:"nickname"`
|
|
|
|
Gender *string `json:"gender"`
|
|
|
|
Birthdate *string `json:"birthdate"`
|
|
|
|
PhoneNumber *string `json:"phone_number"`
|
|
|
|
Picture *string `json:"picture"`
|
|
|
|
Roles []*string `json:"roles"`
|
2021-07-15 09:43:00 +00:00
|
|
|
}
|
|
|
|
|
2021-07-08 12:15:19 +00:00
|
|
|
type User struct {
|
2021-12-22 05:21:12 +00:00
|
|
|
ID string `json:"id"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
EmailVerified bool `json:"email_verified"`
|
|
|
|
SignupMethods string `json:"signup_methods"`
|
|
|
|
GivenName *string `json:"given_name"`
|
|
|
|
FamilyName *string `json:"family_name"`
|
|
|
|
MiddleName *string `json:"middle_name"`
|
|
|
|
Nickname *string `json:"nickname"`
|
|
|
|
PreferredUsername *string `json:"preferred_username"`
|
|
|
|
Gender *string `json:"gender"`
|
|
|
|
Birthdate *string `json:"birthdate"`
|
|
|
|
PhoneNumber *string `json:"phone_number"`
|
|
|
|
PhoneNumberVerified *bool `json:"phone_number_verified"`
|
|
|
|
Picture *string `json:"picture"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
CreatedAt *int64 `json:"created_at"`
|
|
|
|
UpdatedAt *int64 `json:"updated_at"`
|
2021-07-12 18:22:16 +00:00
|
|
|
}
|
|
|
|
|
2022-01-23 19:02:06 +00:00
|
|
|
type ValidJWTResponse struct {
|
|
|
|
Valid bool `json:"valid"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
2021-07-12 18:22:16 +00:00
|
|
|
type VerificationRequest struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Identifier *string `json:"identifier"`
|
|
|
|
Token *string `json:"token"`
|
|
|
|
Email *string `json:"email"`
|
|
|
|
Expires *int64 `json:"expires"`
|
2021-12-22 05:21:12 +00:00
|
|
|
CreatedAt *int64 `json:"created_at"`
|
|
|
|
UpdatedAt *int64 `json:"updated_at"`
|
2021-07-08 12:15:19 +00:00
|
|
|
}
|
2021-07-13 20:06:11 +00:00
|
|
|
|
2021-07-18 03:55:20 +00:00
|
|
|
type VerifyEmailInput struct {
|
2021-07-13 20:06:11 +00:00
|
|
|
Token string `json:"token"`
|
|
|
|
}
|