2021-07-08 12:15:19 +00:00
|
|
|
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
|
|
|
|
package model
|
|
|
|
|
2022-07-17 06:37:17 +00:00
|
|
|
type AddEmailTemplateRequest struct {
|
2022-11-09 17:18:12 +00:00
|
|
|
EventName string `json:"event_name"`
|
|
|
|
Subject string `json:"subject"`
|
|
|
|
Template string `json:"template"`
|
|
|
|
Design *string `json:"design"`
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
2022-07-10 16:19:33 +00:00
|
|
|
type AddWebhookRequest struct {
|
2023-03-26 02:18:06 +00:00
|
|
|
EventName string `json:"event_name"`
|
|
|
|
EventDescription *string `json:"event_description"`
|
|
|
|
Endpoint string `json:"endpoint"`
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
Headers map[string]interface{} `json:"headers"`
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
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 {
|
2023-09-06 05:56:22 +00:00
|
|
|
Message string `json:"message"`
|
|
|
|
ShouldShowEmailOtpScreen *bool `json:"should_show_email_otp_screen"`
|
|
|
|
ShouldShowMobileOtpScreen *bool `json:"should_show_mobile_otp_screen"`
|
|
|
|
ShouldShowMobileTotpScreen *bool `json:"should_show_mobile_totp_screen"`
|
|
|
|
ShouldShowTotpScreen *bool `json:"should_show_totp_screen"`
|
|
|
|
AccessToken *string `json:"access_token"`
|
|
|
|
IDToken *string `json:"id_token"`
|
|
|
|
RefreshToken *string `json:"refresh_token"`
|
|
|
|
ExpiresIn *int64 `json:"expires_in"`
|
|
|
|
User *User `json:"user"`
|
|
|
|
TotpBase64url *string `json:"totpBase64URL"`
|
|
|
|
TokenTotp *string `json:"tokenTOTP"`
|
2021-07-28 10:13:08 +00:00
|
|
|
}
|
|
|
|
|
2022-07-17 06:37:17 +00:00
|
|
|
type DeleteEmailTemplateRequest struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
}
|
|
|
|
|
2022-01-17 07:42:46 +00:00
|
|
|
type DeleteUserInput struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
2022-07-15 04:42:24 +00:00
|
|
|
type EmailTemplate struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
EventName string `json:"event_name"`
|
|
|
|
Template string `json:"template"`
|
2022-08-11 11:15:59 +00:00
|
|
|
Design string `json:"design"`
|
2022-07-29 10:45:57 +00:00
|
|
|
Subject string `json:"subject"`
|
2022-07-15 04:42:24 +00:00
|
|
|
CreatedAt *int64 `json:"created_at"`
|
|
|
|
UpdatedAt *int64 `json:"updated_at"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type EmailTemplates struct {
|
|
|
|
Pagination *Pagination `json:"pagination"`
|
2022-08-09 03:37:47 +00:00
|
|
|
EmailTemplates []*EmailTemplate `json:"email_templates"`
|
2022-07-15 04:42:24 +00:00
|
|
|
}
|
|
|
|
|
2022-01-17 07:42:46 +00:00
|
|
|
type Env struct {
|
2022-08-02 08:42:36 +00:00
|
|
|
AccessTokenExpiryTime *string `json:"ACCESS_TOKEN_EXPIRY_TIME"`
|
|
|
|
AdminSecret *string `json:"ADMIN_SECRET"`
|
|
|
|
DatabaseName *string `json:"DATABASE_NAME"`
|
|
|
|
DatabaseURL *string `json:"DATABASE_URL"`
|
|
|
|
DatabaseType *string `json:"DATABASE_TYPE"`
|
|
|
|
DatabaseUsername *string `json:"DATABASE_USERNAME"`
|
|
|
|
DatabasePassword *string `json:"DATABASE_PASSWORD"`
|
|
|
|
DatabaseHost *string `json:"DATABASE_HOST"`
|
|
|
|
DatabasePort *string `json:"DATABASE_PORT"`
|
|
|
|
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"`
|
2022-10-25 02:48:29 +00:00
|
|
|
SMTPLocalName *string `json:"SMTP_LOCAL_NAME"`
|
2022-08-02 08:42:36 +00:00
|
|
|
SenderEmail *string `json:"SENDER_EMAIL"`
|
2023-05-15 21:46:22 +00:00
|
|
|
SenderName *string `json:"SENDER_NAME"`
|
2022-08-02 08:42:36 +00:00
|
|
|
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"`
|
|
|
|
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"`
|
|
|
|
DisableRedisForEnv bool `json:"DISABLE_REDIS_FOR_ENV"`
|
|
|
|
DisableStrongPassword bool `json:"DISABLE_STRONG_PASSWORD"`
|
2022-08-03 17:50:23 +00:00
|
|
|
DisableMultiFactorAuthentication bool `json:"DISABLE_MULTI_FACTOR_AUTHENTICATION"`
|
2022-08-02 08:42:36 +00:00
|
|
|
EnforceMultiFactorAuthentication bool `json:"ENFORCE_MULTI_FACTOR_AUTHENTICATION"`
|
|
|
|
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"`
|
|
|
|
LinkedinClientID *string `json:"LINKEDIN_CLIENT_ID"`
|
|
|
|
LinkedinClientSecret *string `json:"LINKEDIN_CLIENT_SECRET"`
|
|
|
|
AppleClientID *string `json:"APPLE_CLIENT_ID"`
|
|
|
|
AppleClientSecret *string `json:"APPLE_CLIENT_SECRET"`
|
2022-08-13 07:05:00 +00:00
|
|
|
TwitterClientID *string `json:"TWITTER_CLIENT_ID"`
|
|
|
|
TwitterClientSecret *string `json:"TWITTER_CLIENT_SECRET"`
|
2023-02-25 23:53:02 +00:00
|
|
|
MicrosoftClientID *string `json:"MICROSOFT_CLIENT_ID"`
|
|
|
|
MicrosoftClientSecret *string `json:"MICROSOFT_CLIENT_SECRET"`
|
|
|
|
MicrosoftActiveDirectoryTenantID *string `json:"MICROSOFT_ACTIVE_DIRECTORY_TENANT_ID"`
|
2022-08-02 08:42:36 +00:00
|
|
|
OrganizationName *string `json:"ORGANIZATION_NAME"`
|
|
|
|
OrganizationLogo *string `json:"ORGANIZATION_LOGO"`
|
2022-10-02 16:31:22 +00:00
|
|
|
AppCookieSecure bool `json:"APP_COOKIE_SECURE"`
|
|
|
|
AdminCookieSecure bool `json:"ADMIN_COOKIE_SECURE"`
|
2023-04-01 12:06:07 +00:00
|
|
|
DefaultAuthorizeResponseType *string `json:"DEFAULT_AUTHORIZE_RESPONSE_TYPE"`
|
|
|
|
DefaultAuthorizeResponseMode *string `json:"DEFAULT_AUTHORIZE_RESPONSE_MODE"`
|
2023-08-29 06:25:27 +00:00
|
|
|
DisablePlayground bool `json:"DISABLE_PLAYGROUND"`
|
2023-09-01 14:06:47 +00:00
|
|
|
DisableMailOtpLogin bool `json:"DISABLE_MAIL_OTP_LOGIN"`
|
|
|
|
DisableTotpLogin bool `json:"DISABLE_TOTP_LOGIN"`
|
2021-12-31 11:33:37 +00:00
|
|
|
}
|
|
|
|
|
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 {
|
2022-03-08 07:06:26 +00:00
|
|
|
Email string `json:"email"`
|
|
|
|
State *string `json:"state"`
|
|
|
|
RedirectURI *string `json:"redirect_uri"`
|
2021-07-18 09:56:29 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 13:51:52 +00:00
|
|
|
type GenerateJWTKeysInput struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GenerateJWTKeysResponse struct {
|
|
|
|
Secret *string `json:"secret"`
|
|
|
|
PublicKey *string `json:"public_key"`
|
|
|
|
PrivateKey *string `json:"private_key"`
|
|
|
|
}
|
|
|
|
|
2023-01-05 14:46:41 +00:00
|
|
|
type GetUserRequest struct {
|
2023-05-20 04:19:18 +00:00
|
|
|
ID *string `json:"id"`
|
|
|
|
Email *string `json:"email"`
|
2023-01-05 14:46:41 +00:00
|
|
|
}
|
|
|
|
|
2022-03-15 03:23:48 +00:00
|
|
|
type InviteMemberInput struct {
|
|
|
|
Emails []string `json:"emails"`
|
|
|
|
RedirectURI *string `json:"redirect_uri"`
|
|
|
|
}
|
|
|
|
|
2023-04-19 11:46:27 +00:00
|
|
|
type InviteMembersResponse struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
Users []*User `json:"Users"`
|
|
|
|
}
|
|
|
|
|
2022-07-06 05:08:21 +00:00
|
|
|
type ListWebhookLogRequest struct {
|
2022-07-11 14:10:54 +00:00
|
|
|
Pagination *PaginationInput `json:"pagination"`
|
|
|
|
WebhookID *string `json:"webhook_id"`
|
2022-07-06 05:08:21 +00:00
|
|
|
}
|
|
|
|
|
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"`
|
2022-03-02 12:12:31 +00:00
|
|
|
Scope []string `json:"scope"`
|
2022-11-12 18:24:37 +00:00
|
|
|
State *string `json:"state"`
|
2021-07-14 18:43:19 +00:00
|
|
|
}
|
|
|
|
|
2021-12-22 05:21:12 +00:00
|
|
|
type MagicLinkLoginInput struct {
|
2022-03-08 07:06:26 +00:00
|
|
|
Email string `json:"email"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
Scope []string `json:"scope"`
|
|
|
|
State *string `json:"state"`
|
|
|
|
RedirectURI *string `json:"redirect_uri"`
|
2021-11-11 23:52:03 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 07:55:52 +00:00
|
|
|
type Meta struct {
|
|
|
|
Version string `json:"version"`
|
2022-02-26 15:06:22 +00:00
|
|
|
ClientID string `json:"client_id"`
|
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"`
|
2022-06-06 16:38:32 +00:00
|
|
|
IsLinkedinLoginEnabled bool `json:"is_linkedin_login_enabled"`
|
2022-06-12 09:19:48 +00:00
|
|
|
IsAppleLoginEnabled bool `json:"is_apple_login_enabled"`
|
2022-08-13 07:05:00 +00:00
|
|
|
IsTwitterLoginEnabled bool `json:"is_twitter_login_enabled"`
|
2023-02-25 23:53:02 +00:00
|
|
|
IsMicrosoftLoginEnabled bool `json:"is_microsoft_login_enabled"`
|
2021-12-22 05:21:12 +00:00
|
|
|
IsEmailVerificationEnabled bool `json:"is_email_verification_enabled"`
|
|
|
|
IsBasicAuthenticationEnabled bool `json:"is_basic_authentication_enabled"`
|
|
|
|
IsMagicLinkLoginEnabled bool `json:"is_magic_link_login_enabled"`
|
2022-03-16 17:19:18 +00:00
|
|
|
IsSignUpEnabled bool `json:"is_sign_up_enabled"`
|
2022-06-18 10:01:57 +00:00
|
|
|
IsStrongPasswordEnabled bool `json:"is_strong_password_enabled"`
|
2022-08-03 17:50:23 +00:00
|
|
|
IsMultiFactorAuthEnabled bool `json:"is_multi_factor_auth_enabled"`
|
2021-07-28 07:55:52 +00:00
|
|
|
}
|
|
|
|
|
2022-12-24 21:52:42 +00:00
|
|
|
type MobileLoginInput struct {
|
|
|
|
PhoneNumber string `json:"phone_number"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
Scope []string `json:"scope"`
|
|
|
|
State *string `json:"state"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MobileSignUpInput struct {
|
2023-08-14 06:31:37 +00:00
|
|
|
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"`
|
|
|
|
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled"`
|
|
|
|
State *string `json:"state"`
|
|
|
|
AppData map[string]interface{} `json:"app_data"`
|
2022-12-21 17:44:24 +00:00
|
|
|
}
|
|
|
|
|
2022-03-08 13:19:42 +00:00
|
|
|
type OAuthRevokeInput struct {
|
|
|
|
RefreshToken string `json:"refresh_token"`
|
|
|
|
}
|
|
|
|
|
2022-01-25 05:27:40 +00:00
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2022-07-29 08:19:46 +00:00
|
|
|
type ResendOTPRequest struct {
|
2023-07-23 04:33:37 +00:00
|
|
|
Email *string `json:"email"`
|
|
|
|
PhoneNumber *string `json:"phone_number"`
|
|
|
|
State *string `json:"state"`
|
2022-07-29 08:19:46 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 07:26:17 +00:00
|
|
|
type ResendVerifyEmailInput struct {
|
2022-11-15 16:15:08 +00:00
|
|
|
Email string `json:"email"`
|
|
|
|
Identifier string `json:"identifier"`
|
|
|
|
State *string `json:"state"`
|
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"`
|
|
|
|
}
|
|
|
|
|
2023-06-11 12:59:18 +00:00
|
|
|
type SMSVerificationRequests struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
CodeExpiresAt int64 `json:"code_expires_at"`
|
|
|
|
PhoneNumber string `json:"phone_number"`
|
|
|
|
CreatedAt int64 `json:"created_at"`
|
|
|
|
UpdatedAt *int64 `json:"updated_at"`
|
|
|
|
}
|
|
|
|
|
2022-01-23 19:02:06 +00:00
|
|
|
type SessionQueryInput struct {
|
|
|
|
Roles []string `json:"roles"`
|
2022-03-02 12:12:31 +00:00
|
|
|
Scope []string `json:"scope"`
|
2022-01-23 19:02:06 +00:00
|
|
|
}
|
|
|
|
|
2021-07-15 09:43:00 +00:00
|
|
|
type SignUpInput struct {
|
2023-08-14 06:31:37 +00:00
|
|
|
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"`
|
|
|
|
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled"`
|
|
|
|
State *string `json:"state"`
|
|
|
|
AppData map[string]interface{} `json:"app_data"`
|
2021-07-15 09:43:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-10 16:19:33 +00:00
|
|
|
type TestEndpointRequest struct {
|
2023-08-01 18:34:07 +00:00
|
|
|
Endpoint string `json:"endpoint"`
|
|
|
|
EventName string `json:"event_name"`
|
|
|
|
EventDescription *string `json:"event_description"`
|
|
|
|
Headers map[string]interface{} `json:"headers"`
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type TestEndpointResponse struct {
|
2022-07-17 11:35:35 +00:00
|
|
|
HTTPStatus *int64 `json:"http_status"`
|
|
|
|
Response *string `json:"response"`
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 08:43:55 +00:00
|
|
|
type UpdateAccessInput struct {
|
|
|
|
UserID string `json:"user_id"`
|
2021-07-15 09:43:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-17 06:37:17 +00:00
|
|
|
type UpdateEmailTemplateRequest struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
EventName *string `json:"event_name"`
|
|
|
|
Template *string `json:"template"`
|
2022-07-29 10:45:57 +00:00
|
|
|
Subject *string `json:"subject"`
|
2022-08-11 11:15:59 +00:00
|
|
|
Design *string `json:"design"`
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
2022-01-17 07:42:46 +00:00
|
|
|
type UpdateEnvInput struct {
|
2022-08-02 08:42:36 +00:00
|
|
|
AccessTokenExpiryTime *string `json:"ACCESS_TOKEN_EXPIRY_TIME"`
|
|
|
|
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"`
|
2022-10-25 02:48:29 +00:00
|
|
|
SMTPLocalName *string `json:"SMTP_LOCAL_NAME"`
|
2022-08-02 08:42:36 +00:00
|
|
|
SenderEmail *string `json:"SENDER_EMAIL"`
|
2023-05-15 21:46:22 +00:00
|
|
|
SenderName *string `json:"SENDER_NAME"`
|
2022-08-02 08:42:36 +00:00
|
|
|
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"`
|
|
|
|
ResetPasswordURL *string `json:"RESET_PASSWORD_URL"`
|
2022-10-02 16:31:22 +00:00
|
|
|
AppCookieSecure *bool `json:"APP_COOKIE_SECURE"`
|
|
|
|
AdminCookieSecure *bool `json:"ADMIN_COOKIE_SECURE"`
|
2022-08-02 08:42:36 +00:00
|
|
|
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"`
|
|
|
|
DisableRedisForEnv *bool `json:"DISABLE_REDIS_FOR_ENV"`
|
|
|
|
DisableStrongPassword *bool `json:"DISABLE_STRONG_PASSWORD"`
|
2022-08-03 17:50:23 +00:00
|
|
|
DisableMultiFactorAuthentication *bool `json:"DISABLE_MULTI_FACTOR_AUTHENTICATION"`
|
2022-08-02 08:42:36 +00:00
|
|
|
EnforceMultiFactorAuthentication *bool `json:"ENFORCE_MULTI_FACTOR_AUTHENTICATION"`
|
|
|
|
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"`
|
|
|
|
LinkedinClientID *string `json:"LINKEDIN_CLIENT_ID"`
|
|
|
|
LinkedinClientSecret *string `json:"LINKEDIN_CLIENT_SECRET"`
|
|
|
|
AppleClientID *string `json:"APPLE_CLIENT_ID"`
|
|
|
|
AppleClientSecret *string `json:"APPLE_CLIENT_SECRET"`
|
2022-08-13 07:05:00 +00:00
|
|
|
TwitterClientID *string `json:"TWITTER_CLIENT_ID"`
|
|
|
|
TwitterClientSecret *string `json:"TWITTER_CLIENT_SECRET"`
|
2023-02-25 23:53:02 +00:00
|
|
|
MicrosoftClientID *string `json:"MICROSOFT_CLIENT_ID"`
|
|
|
|
MicrosoftClientSecret *string `json:"MICROSOFT_CLIENT_SECRET"`
|
|
|
|
MicrosoftActiveDirectoryTenantID *string `json:"MICROSOFT_ACTIVE_DIRECTORY_TENANT_ID"`
|
2022-08-02 08:42:36 +00:00
|
|
|
OrganizationName *string `json:"ORGANIZATION_NAME"`
|
|
|
|
OrganizationLogo *string `json:"ORGANIZATION_LOGO"`
|
2023-04-01 12:06:07 +00:00
|
|
|
DefaultAuthorizeResponseType *string `json:"DEFAULT_AUTHORIZE_RESPONSE_TYPE"`
|
|
|
|
DefaultAuthorizeResponseMode *string `json:"DEFAULT_AUTHORIZE_RESPONSE_MODE"`
|
2023-08-29 06:25:27 +00:00
|
|
|
DisablePlayground *bool `json:"DISABLE_PLAYGROUND"`
|
2023-09-01 14:06:47 +00:00
|
|
|
DisableMailOtpLogin *bool `json:"DISABLE_MAIL_OTP_LOGIN"`
|
|
|
|
DisableTotpLogin *bool `json:"DISABLE_TOTP_LOGIN"`
|
2021-12-31 11:33:37 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 03:55:20 +00:00
|
|
|
type UpdateProfileInput struct {
|
2023-08-14 06:31:37 +00:00
|
|
|
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"`
|
|
|
|
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled"`
|
|
|
|
AppData map[string]interface{} `json:"app_data"`
|
2021-12-22 05:21:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateUserInput struct {
|
2023-08-14 06:31:37 +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"`
|
|
|
|
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled"`
|
|
|
|
AppData map[string]interface{} `json:"app_data"`
|
2021-07-15 09:43:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-10 16:19:33 +00:00
|
|
|
type UpdateWebhookRequest struct {
|
2023-03-26 02:18:06 +00:00
|
|
|
ID string `json:"id"`
|
|
|
|
EventName *string `json:"event_name"`
|
|
|
|
EventDescription *string `json:"event_description"`
|
|
|
|
Endpoint *string `json:"endpoint"`
|
|
|
|
Enabled *bool `json:"enabled"`
|
|
|
|
Headers map[string]interface{} `json:"headers"`
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
2021-07-08 12:15:19 +00:00
|
|
|
type User struct {
|
2023-08-14 06:31:37 +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"`
|
|
|
|
RevokedTimestamp *int64 `json:"revoked_timestamp"`
|
|
|
|
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled"`
|
|
|
|
AppData map[string]interface{} `json:"app_data"`
|
2021-07-12 18:22:16 +00:00
|
|
|
}
|
|
|
|
|
2022-01-25 05:27:40 +00:00
|
|
|
type Users struct {
|
|
|
|
Pagination *Pagination `json:"pagination"`
|
|
|
|
Users []*User `json:"users"`
|
|
|
|
}
|
|
|
|
|
2022-03-24 08:01:56 +00:00
|
|
|
type ValidateJWTTokenInput struct {
|
|
|
|
TokenType string `json:"token_type"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ValidateJWTTokenResponse struct {
|
2022-11-01 04:42:01 +00:00
|
|
|
IsValid bool `json:"is_valid"`
|
|
|
|
Claims map[string]interface{} `json:"claims"`
|
2022-03-24 08:01:56 +00:00
|
|
|
}
|
|
|
|
|
2023-07-12 16:42:17 +00:00
|
|
|
type ValidateSessionInput struct {
|
|
|
|
Cookie string `json:"cookie"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ValidateSessionResponse struct {
|
2023-08-19 15:14:38 +00:00
|
|
|
IsValid bool `json:"is_valid"`
|
|
|
|
User *User `json:"user"`
|
2023-07-12 16:42:17 +00:00
|
|
|
}
|
|
|
|
|
2021-07-12 18:22:16 +00:00
|
|
|
type VerificationRequest struct {
|
2022-03-08 07:06:26 +00:00
|
|
|
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"`
|
2021-07-08 12:15:19 +00:00
|
|
|
}
|
2021-07-13 20:06:11 +00:00
|
|
|
|
2022-01-25 05:27:40 +00:00
|
|
|
type VerificationRequests struct {
|
|
|
|
Pagination *Pagination `json:"pagination"`
|
|
|
|
VerificationRequests []*VerificationRequest `json:"verification_requests"`
|
|
|
|
}
|
|
|
|
|
2021-07-18 03:55:20 +00:00
|
|
|
type VerifyEmailInput struct {
|
2022-11-12 18:24:37 +00:00
|
|
|
Token string `json:"token"`
|
|
|
|
State *string `json:"state"`
|
2021-07-13 20:06:11 +00:00
|
|
|
}
|
2022-07-06 05:08:21 +00:00
|
|
|
|
2022-07-23 11:14:39 +00:00
|
|
|
type VerifyOTPRequest struct {
|
2023-07-13 06:09:22 +00:00
|
|
|
Email *string `json:"email"`
|
|
|
|
PhoneNumber *string `json:"phone_number"`
|
|
|
|
Otp string `json:"otp"`
|
|
|
|
State *string `json:"state"`
|
2022-07-23 11:14:39 +00:00
|
|
|
}
|
|
|
|
|
2023-09-06 05:56:22 +00:00
|
|
|
type VerifyTOTPRequest struct {
|
|
|
|
Otp string `json:"otp"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
State *string `json:"state"`
|
|
|
|
}
|
|
|
|
|
2022-07-06 05:08:21 +00:00
|
|
|
type Webhook struct {
|
2023-03-26 02:18:06 +00:00
|
|
|
ID string `json:"id"`
|
|
|
|
EventName *string `json:"event_name"`
|
|
|
|
EventDescription *string `json:"event_description"`
|
|
|
|
Endpoint *string `json:"endpoint"`
|
|
|
|
Enabled *bool `json:"enabled"`
|
|
|
|
Headers map[string]interface{} `json:"headers"`
|
|
|
|
CreatedAt *int64 `json:"created_at"`
|
|
|
|
UpdatedAt *int64 `json:"updated_at"`
|
2022-07-06 05:08:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebhookLog struct {
|
|
|
|
ID string `json:"id"`
|
2022-07-08 13:39:23 +00:00
|
|
|
HTTPStatus *int64 `json:"http_status"`
|
2022-07-06 05:08:21 +00:00
|
|
|
Response *string `json:"response"`
|
|
|
|
Request *string `json:"request"`
|
|
|
|
WebhookID *string `json:"webhook_id"`
|
|
|
|
CreatedAt *int64 `json:"created_at"`
|
|
|
|
UpdatedAt *int64 `json:"updated_at"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebhookLogs struct {
|
|
|
|
Pagination *Pagination `json:"pagination"`
|
|
|
|
WebhookLogs []*WebhookLog `json:"webhook_logs"`
|
|
|
|
}
|
|
|
|
|
2022-07-10 16:19:33 +00:00
|
|
|
type WebhookRequest struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
}
|
|
|
|
|
2022-07-06 05:08:21 +00:00
|
|
|
type Webhooks struct {
|
|
|
|
Pagination *Pagination `json:"pagination"`
|
|
|
|
Webhooks []*Webhook `json:"webhooks"`
|
|
|
|
}
|