138 lines
4.4 KiB
Go
138 lines
4.4 KiB
Go
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
type AuthResponse struct {
|
|
Message string `json:"message"`
|
|
AccessToken *string `json:"access_token"`
|
|
ExpiresAt *int64 `json:"expires_at"`
|
|
User *User `json:"user"`
|
|
}
|
|
|
|
type DeleteUserInput struct {
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type Error struct {
|
|
Message string `json:"message"`
|
|
Reason string `json:"reason"`
|
|
}
|
|
|
|
type ForgotPasswordInput struct {
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type LoginInput struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Roles []string `json:"roles"`
|
|
}
|
|
|
|
type MagicLinkLoginInput struct {
|
|
Email string `json:"email"`
|
|
Roles []string `json:"roles"`
|
|
}
|
|
|
|
type Meta struct {
|
|
Version string `json:"version"`
|
|
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"`
|
|
}
|
|
|
|
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 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"`
|
|
}
|
|
|
|
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"`
|
|
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 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"`
|
|
}
|
|
|
|
type VerifyEmailInput struct {
|
|
Token string `json:"token"`
|
|
}
|