-
Notifications
You must be signed in to change notification settings - Fork 654
Expand file tree
/
Copy patherrorcode_gen.go
More file actions
107 lines (105 loc) · 7.83 KB
/
errorcode_gen.go
File metadata and controls
107 lines (105 loc) · 7.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package apierrors
//go:generate go test -run TestGenerate -args -generate
//go:generate go fmt
var errorCodesMap = map[string]string{
"anonymous_provider_disabled": "ErrorCodeAnonymousProviderDisabled",
"bad_code_verifier": "ErrorCodeBadCodeVerifier",
"bad_json": "ErrorCodeBadJSON",
"bad_jwt": "ErrorCodeBadJWT",
"bad_oauth_callback": "ErrorCodeBadOAuthCallback",
"bad_oauth_state": "ErrorCodeBadOAuthState",
"captcha_failed": "ErrorCodeCaptchaFailed",
"conflict": "ErrorCodeConflict",
"current_password_invalid": "ErrorCodeCurrentPasswordMismatch",
"current_password_required": "ErrorCodeCurrentPasswordRequired",
"custom_provider_not_found": "ErrorCodeCustomProviderNotFound",
"email_address_invalid": "ErrorCodeEmailAddressInvalid",
"email_address_not_authorized": "ErrorCodeEmailAddressNotAuthorized",
"email_address_not_provided": "ErrorCodeEmailAddressNotProvided",
"email_conflict_identity_not_deletable": "ErrorCodeEmailConflictIdentityNotDeletable",
"email_exists": "ErrorCodeEmailExists",
"email_not_confirmed": "ErrorCodeEmailNotConfirmed",
"email_provider_disabled": "ErrorCodeEmailProviderDisabled",
"feature_disabled": "ErrorCodeFeatureDisabled",
"flow_state_expired": "ErrorCodeFlowStateExpired",
"flow_state_not_found": "ErrorCodeFlowStateNotFound",
"hook_payload_invalid_content_type": "ErrorCodeHookPayloadInvalidContentType",
"hook_payload_over_size_limit": "ErrorCodeHookPayloadOverSizeLimit",
"hook_timeout": "ErrorCodeHookTimeout",
"hook_timeout_after_retry": "ErrorCodeHookTimeoutAfterRetry",
"identity_already_exists": "ErrorCodeIdentityAlreadyExists",
"identity_not_found": "ErrorCodeIdentityNotFound",
"insufficient_aal": "ErrorCodeInsufficientAAL",
"invalid_credentials": "ErrorCodeInvalidCredentials",
"invite_not_found": "ErrorCodeInviteNotFound",
"manual_linking_disabled": "ErrorCodeManualLinkingDisabled",
"mfa_challenge_expired": "ErrorCodeMFAChallengeExpired",
"mfa_factor_name_conflict": "ErrorCodeMFAFactorNameConflict",
"mfa_factor_not_found": "ErrorCodeMFAFactorNotFound",
"mfa_ip_address_mismatch": "ErrorCodeMFAIPAddressMismatch",
"mfa_phone_enroll_not_enabled": "ErrorCodeMFAPhoneEnrollDisabled",
"mfa_phone_verify_not_enabled": "ErrorCodeMFAPhoneVerifyDisabled",
"mfa_totp_enroll_not_enabled": "ErrorCodeMFATOTPEnrollDisabled",
"mfa_totp_verify_not_enabled": "ErrorCodeMFATOTPVerifyDisabled",
"mfa_verification_failed": "ErrorCodeMFAVerificationFailed",
"mfa_verification_rejected": "ErrorCodeMFAVerificationRejected",
"mfa_verified_factor_exists": "ErrorCodeMFAVerifiedFactorExists",
"mfa_webauthn_enroll_not_enabled": "ErrorCodeMFAWebAuthnEnrollDisabled",
"mfa_webauthn_verify_not_enabled": "ErrorCodeMFAWebAuthnVerifyDisabled",
"no_authorization": "ErrorCodeNoAuthorization",
"not_admin": "ErrorCodeNotAdmin",
"oauth_authorization_not_found": "ErrorCodeOAuthAuthorizationNotFound",
"oauth_client_not_found": "ErrorCodeOAuthClientNotFound",
"oauth_client_state_expired": "ErrorCodeOAuthClientStateExpired",
"oauth_client_state_not_found": "ErrorCodeOAuthClientStateNotFound",
"oauth_consent_not_found": "ErrorCodeOAuthConsentNotFound",
"oauth_dynamic_client_registration_disabled": "ErrorCodeOAuthDynamicClientRegistrationDisabled",
"oauth_invalid_state": "ErrorCodeOAuthInvalidState",
"oauth_provider_not_supported": "ErrorCodeOAuthProviderNotSupported",
"otp_disabled": "ErrorCodeOTPDisabled",
"otp_expired": "ErrorCodeOTPExpired",
"over_custom_provider_quota": "ErrorCodeOverCustomProviderQuota",
"over_email_send_rate_limit": "ErrorCodeOverEmailSendRateLimit",
"over_request_rate_limit": "ErrorCodeOverRequestRateLimit",
"over_sms_send_rate_limit": "ErrorCodeOverSMSSendRateLimit",
"phone_exists": "ErrorCodePhoneExists",
"phone_not_confirmed": "ErrorCodePhoneNotConfirmed",
"phone_provider_disabled": "ErrorCodePhoneProviderDisabled",
"provider_disabled": "ErrorCodeProviderDisabled",
"provider_email_needs_verification": "ErrorCodeProviderEmailNeedsVerification",
"reauthentication_needed": "ErrorCodeReauthenticationNeeded",
"reauthentication_not_valid": "ErrorCodeReauthenticationNotValid",
"refresh_token_already_used": "ErrorCodeRefreshTokenAlreadyUsed",
"refresh_token_not_found": "ErrorCodeRefreshTokenNotFound",
"request_timeout": "ErrorCodeRequestTimeout",
"same_password": "ErrorCodeSamePassword",
"saml_assertion_no_email": "ErrorCodeSAMLAssertionNoEmail",
"saml_assertion_no_user_id": "ErrorCodeSAMLAssertionNoUserID",
"saml_entity_id_mismatch": "ErrorCodeSAMLEntityIDMismatch",
"saml_idp_already_exists": "ErrorCodeSAMLIdPAlreadyExists",
"saml_idp_not_found": "ErrorCodeSAMLIdPNotFound",
"saml_metadata_fetch_failed": "ErrorCodeSAMLMetadataFetchFailed",
"saml_provider_disabled": "ErrorCodeSAMLProviderDisabled",
"saml_relay_state_expired": "ErrorCodeSAMLRelayStateExpired",
"saml_relay_state_not_found": "ErrorCodeSAMLRelayStateNotFound",
"session_expired": "ErrorCodeSessionExpired",
"session_not_found": "ErrorCodeSessionNotFound",
"signup_disabled": "ErrorCodeSignupDisabled",
"single_identity_not_deletable": "ErrorCodeSingleIdentityNotDeletable",
"sms_send_failed": "ErrorCodeSMSSendFailed",
"sso_domain_already_exists": "ErrorCodeSSODomainAlreadyExists",
"sso_provider_disabled": "ErrorCodeSSOProviderDisabled",
"sso_provider_not_found": "ErrorCodeSSOProviderNotFound",
"too_many_enrolled_mfa_factors": "ErrorCodeTooManyEnrolledMFAFactors",
"unexpected_audience": "ErrorCodeUnexpectedAudience",
"unexpected_failure": "ErrorCodeUnexpectedFailure",
"unknown": "ErrorCodeUnknown",
"user_already_exists": "ErrorCodeUserAlreadyExists",
"user_banned": "ErrorCodeUserBanned",
"user_not_found": "ErrorCodeUserNotFound",
"user_sso_managed": "ErrorCodeUserSSOManaged",
"validation_failed": "ErrorCodeValidationFailed",
"weak_password": "ErrorCodeWeakPassword",
"web3_provider_disabled": "ErrorCodeWeb3ProviderDisabled",
"web3_unsupported_chain": "ErrorCodeWeb3UnsupportedChain",
}