289 lines
11 KiB
Go
289 lines
11 KiB
Go
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
type AdminLoginInput struct {
|
|
AdminSecret string `json:"admin_secret"`
|
|
}
|
|
|
|
type AdminSignupInput struct {
|
|
AdminSecret string `json:"admin_secret"`
|
|
}
|
|
|
|
type AuthResponse struct {
|
|
Message string `json:"message"`
|
|
AccessToken *string `json:"access_token"`
|
|
IDToken *string `json:"id_token"`
|
|
RefreshToken *string `json:"refresh_token"`
|
|
ExpiresIn *int64 `json:"expires_in"`
|
|
User *User `json:"user"`
|
|
}
|
|
|
|
type DeleteUserInput struct {
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type Env struct {
|
|
AdminSecret *string `json:"ADMIN_SECRET"`
|
|
DatabaseName string `json:"DATABASE_NAME"`
|
|
DatabaseURL string `json:"DATABASE_URL"`
|
|
DatabaseType string `json:"DATABASE_TYPE"`
|
|
ClientID string `json:"CLIENT_ID"`
|
|
ClientSecret string `json:"CLIENT_SECRET"`
|
|
CustomAccessTokenScript *string `json:"CUSTOM_ACCESS_TOKEN_SCRIPT"`
|
|
SMTPHost *string `json:"SMTP_HOST"`
|
|
SMTPPort *string `json:"SMTP_PORT"`
|
|
SMTPUsername *string `json:"SMTP_USERNAME"`
|
|
SMTPPassword *string `json:"SMTP_PASSWORD"`
|
|
SenderEmail *string `json:"SENDER_EMAIL"`
|
|
JwtType *string `json:"JWT_TYPE"`
|
|
JwtSecret *string `json:"JWT_SECRET"`
|
|
JwtPrivateKey *string `json:"JWT_PRIVATE_KEY"`
|
|
JwtPublicKey *string `json:"JWT_PUBLIC_KEY"`
|
|
AllowedOrigins []string `json:"ALLOWED_ORIGINS"`
|
|
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"`
|
|
DisableSignUp *bool `json:"DISABLE_SIGN_UP"`
|
|
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"`
|
|
}
|
|
|
|
type Error struct {
|
|
Message string `json:"message"`
|
|
Reason string `json:"reason"`
|
|
}
|
|
|
|
type ForgotPasswordInput struct {
|
|
Email string `json:"email"`
|
|
State *string `json:"state"`
|
|
RedirectURI *string `json:"redirect_uri"`
|
|
}
|
|
|
|
type InviteMemberInput struct {
|
|
Emails []string `json:"emails"`
|
|
RedirectURI *string `json:"redirect_uri"`
|
|
}
|
|
|
|
type LoginInput struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Roles []string `json:"roles"`
|
|
Scope []string `json:"scope"`
|
|
}
|
|
|
|
type MagicLinkLoginInput struct {
|
|
Email string `json:"email"`
|
|
Roles []string `json:"roles"`
|
|
Scope []string `json:"scope"`
|
|
State *string `json:"state"`
|
|
RedirectURI *string `json:"redirect_uri"`
|
|
}
|
|
|
|
type Meta struct {
|
|
Version string `json:"version"`
|
|
ClientID string `json:"client_id"`
|
|
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"`
|
|
IsSignUpEnabled bool `json:"is_sign_up_enabled"`
|
|
}
|
|
|
|
type OAuthRevokeInput struct {
|
|
RefreshToken string `json:"refresh_token"`
|
|
}
|
|
|
|
type PaginatedInput struct {
|
|
Pagination *PaginationInput `json:"pagination"`
|
|
}
|
|
|
|
type Pagination struct {
|
|
Limit int64 `json:"limit"`
|
|
Page int64 `json:"page"`
|
|
Offset int64 `json:"offset"`
|
|
Total int64 `json:"total"`
|
|
}
|
|
|
|
type PaginationInput struct {
|
|
Limit *int64 `json:"limit"`
|
|
Page *int64 `json:"page"`
|
|
}
|
|
|
|
type ResendVerifyEmailInput struct {
|
|
Email string `json:"email"`
|
|
Identifier string `json:"identifier"`
|
|
}
|
|
|
|
type ResetPasswordInput struct {
|
|
Token string `json:"token"`
|
|
Password string `json:"password"`
|
|
ConfirmPassword string `json:"confirm_password"`
|
|
}
|
|
|
|
type Response struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type SessionQueryInput struct {
|
|
Roles []string `json:"roles"`
|
|
Scope []string `json:"scope"`
|
|
}
|
|
|
|
type SignUpInput struct {
|
|
Email string `json:"email"`
|
|
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"`
|
|
Password string `json:"password"`
|
|
ConfirmPassword string `json:"confirm_password"`
|
|
Roles []string `json:"roles"`
|
|
Scope []string `json:"scope"`
|
|
RedirectURI *string `json:"redirect_uri"`
|
|
}
|
|
|
|
type UpdateEnvInput struct {
|
|
AdminSecret *string `json:"ADMIN_SECRET"`
|
|
CustomAccessTokenScript *string `json:"CUSTOM_ACCESS_TOKEN_SCRIPT"`
|
|
OldAdminSecret *string `json:"OLD_ADMIN_SECRET"`
|
|
SMTPHost *string `json:"SMTP_HOST"`
|
|
SMTPPort *string `json:"SMTP_PORT"`
|
|
SMTPUsername *string `json:"SMTP_USERNAME"`
|
|
SMTPPassword *string `json:"SMTP_PASSWORD"`
|
|
SenderEmail *string `json:"SENDER_EMAIL"`
|
|
JwtType *string `json:"JWT_TYPE"`
|
|
JwtSecret *string `json:"JWT_SECRET"`
|
|
JwtPrivateKey *string `json:"JWT_PRIVATE_KEY"`
|
|
JwtPublicKey *string `json:"JWT_PUBLIC_KEY"`
|
|
AllowedOrigins []string `json:"ALLOWED_ORIGINS"`
|
|
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"`
|
|
DisableSignUp *bool `json:"DISABLE_SIGN_UP"`
|
|
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"`
|
|
}
|
|
|
|
type UpdateProfileInput struct {
|
|
OldPassword *string `json:"old_password"`
|
|
NewPassword *string `json:"new_password"`
|
|
ConfirmNewPassword *string `json:"confirm_new_password"`
|
|
Email *string `json:"email"`
|
|
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 {
|
|
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"`
|
|
}
|
|
|
|
type User struct {
|
|
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"`
|
|
}
|
|
|
|
type Users struct {
|
|
Pagination *Pagination `json:"pagination"`
|
|
Users []*User `json:"users"`
|
|
}
|
|
|
|
type ValidateJWTTokenInput struct {
|
|
TokenType string `json:"token_type"`
|
|
Token string `json:"token"`
|
|
Roles []string `json:"roles"`
|
|
}
|
|
|
|
type ValidateJWTTokenResponse struct {
|
|
IsValid bool `json:"is_valid"`
|
|
}
|
|
|
|
type VerificationRequest struct {
|
|
ID string `json:"id"`
|
|
Identifier *string `json:"identifier"`
|
|
Token *string `json:"token"`
|
|
Email *string `json:"email"`
|
|
Expires *int64 `json:"expires"`
|
|
CreatedAt *int64 `json:"created_at"`
|
|
UpdatedAt *int64 `json:"updated_at"`
|
|
Nonce *string `json:"nonce"`
|
|
RedirectURI *string `json:"redirect_uri"`
|
|
}
|
|
|
|
type VerificationRequests struct {
|
|
Pagination *Pagination `json:"pagination"`
|
|
VerificationRequests []*VerificationRequest `json:"verification_requests"`
|
|
}
|
|
|
|
type VerifyEmailInput struct {
|
|
Token string `json:"token"`
|
|
}
|