| | | 1 | | namespace Syki.Back.Errors; |
| | | 2 | | |
| | | 3 | | public class InvalidTwoFactorToken : SykiError |
| | | 4 | | { |
| | | 5 | | public static readonly InvalidTwoFactorToken I = new(); |
| | | 6 | | public override string Code { get; set; } = nameof(InvalidTwoFactorToken); |
| | | 7 | | public override string Message { get; set; } = "2FA token inválido."; |
| | | 8 | | } |
| | | 9 | | |
| | | 10 | | public class InvalidRoleName : SykiError |
| | | 11 | | { |
| | | 12 | | public static readonly InvalidRoleName I = new(); |
| | | 13 | | public override string Code { get; set; } = nameof(InvalidRoleName); |
| | | 14 | | public override string Message { get; set; } = "Nome de role inválido."; |
| | | 15 | | } |
| | | 16 | | |
| | | 17 | | public class InvalidRoleDescription : SykiError |
| | | 18 | | { |
| | | 19 | | public static readonly InvalidRoleDescription I = new(); |
| | | 20 | | public override string Code { get; set; } = nameof(InvalidRoleDescription); |
| | | 21 | | public override string Message { get; set; } = "Descrição de role inválida."; |
| | | 22 | | } |
| | | 23 | | |
| | | 24 | | public class InvalidPermissionsList : SykiError |
| | | 25 | | { |
| | | 26 | | public static readonly InvalidPermissionsList I = new(); |
| | | 27 | | public override string Code { get; set; } = nameof(InvalidPermissionsList); |
| | | 28 | | public override string Message { get; set; } = "Lista de permissions inválida."; |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | public class InvalidSsoProviderType : SykiError |
| | | 32 | | { |
| | | 33 | | public static readonly InvalidSsoProviderType I = new(); |
| | | 34 | | public override string Code { get; set; } = nameof(InvalidSsoProviderType); |
| | | 35 | | public override string Message { get; set; } = "Tipo de provedor SSO inválido."; |
| | | 36 | | } |
| | | 37 | | |
| | | 38 | | public class InvalidSsoAuthority : SykiError |
| | | 39 | | { |
| | | 40 | | public static readonly InvalidSsoAuthority I = new(); |
| | | 41 | | public override string Code { get; set; } = nameof(InvalidSsoAuthority); |
| | | 42 | | public override string Message { get; set; } = "URL do provedor SSO inválida."; |
| | | 43 | | } |
| | | 44 | | |
| | | 45 | | public class InvalidSsoClientId : SykiError |
| | | 46 | | { |
| | | 47 | | public static readonly InvalidSsoClientId I = new(); |
| | | 48 | | public override string Code { get; set; } = nameof(InvalidSsoClientId); |
| | | 49 | | public override string Message { get; set; } = "Client ID inválido."; |
| | | 50 | | } |
| | | 51 | | |
| | | 52 | | public class InvalidSsoClientSecret : SykiError |
| | | 53 | | { |
| | | 54 | | public static readonly InvalidSsoClientSecret I = new(); |
| | | 55 | | public override string Code { get; set; } = nameof(InvalidSsoClientSecret); |
| | | 56 | | public override string Message { get; set; } = "Client Secret inválido."; |
| | | 57 | | } |
| | | 58 | | |
| | | 59 | | public class SsoAuthorityMustBeHttps : SykiError |
| | | 60 | | { |
| | | 61 | | public static readonly SsoAuthorityMustBeHttps I = new(); |
| | | 62 | | public override string Code { get; set; } = nameof(SsoAuthorityMustBeHttps); |
| | | 63 | | public override string Message { get; set; } = "URL do provedor SSO deve usar HTTPS."; |
| | | 64 | | } |
| | | 65 | | |
| | | 66 | | public class SsoAuthorityLocalhostNotAllowed : SykiError |
| | | 67 | | { |
| | | 68 | | public static readonly SsoAuthorityLocalhostNotAllowed I = new(); |
| | | 69 | | public override string Code { get; set; } = nameof(SsoAuthorityLocalhostNotAllowed); |
| | | 70 | | public override string Message { get; set; } = "Localhost não é permitido em produção."; |
| | | 71 | | } |
| | | 72 | | |
| | | 73 | | public class SsoAuthorityPrivateIpNotAllowed : SykiError |
| | | 74 | | { |
| | | 75 | | public static readonly SsoAuthorityPrivateIpNotAllowed I = new(); |
| | | 76 | | public override string Code { get; set; } = nameof(SsoAuthorityPrivateIpNotAllowed); |
| | | 77 | | public override string Message { get; set; } = "IP privado não é permitido em produção."; |
| | | 78 | | } |
| | | 79 | | |
| | | 80 | | public class SsoAuthorityHasUserInfo : SykiError |
| | | 81 | | { |
| | | 82 | | public static readonly SsoAuthorityHasUserInfo I = new(); |
| | | 83 | | public override string Code { get; set; } = nameof(SsoAuthorityHasUserInfo); |
| | | 84 | | public override string Message { get; set; } = "URL do provedor SSO não pode conter credenciais."; |
| | | 85 | | } |
| | | 86 | | |
| | | 87 | | public class SsoAuthorityLinkLocalNotAllowed : SykiError |
| | | 88 | | { |
| | | 89 | | public static readonly SsoAuthorityLinkLocalNotAllowed I = new(); |
| | | 90 | | public override string Code { get; set; } = nameof(SsoAuthorityLinkLocalNotAllowed); |
| | | 91 | | public override string Message { get; set; } = "IP link-local não é permitido."; |
| | | 92 | | } |
| | | 93 | | |
| | | 94 | | public class SsoAuthorityLoopbackNotAllowed : SykiError |
| | | 95 | | { |
| | | 96 | | public static readonly SsoAuthorityLoopbackNotAllowed I = new(); |
| | | 97 | | public override string Code { get; set; } = nameof(SsoAuthorityLoopbackNotAllowed); |
| | | 98 | | public override string Message { get; set; } = "IP de loopback não é permitido em produção."; |
| | | 99 | | } |
| | | 100 | | |
| | | 101 | | public class SsoConfigurationNotFound : SykiError |
| | | 102 | | { |
| | | 103 | | public static readonly SsoConfigurationNotFound I = new(); |
| | | 104 | | public override string Code { get; set; } = nameof(SsoConfigurationNotFound); |
| | | 105 | | public override string Message { get; set; } = "Configuração SSO não encontrada."; |
| | | 106 | | } |
| | | 107 | | |
| | | 108 | | public class SsoNotConfiguredForDomain : SykiError |
| | | 109 | | { |
| | | 110 | | public static readonly SsoNotConfiguredForDomain I = new(); |
| | | 111 | | public override string Code { get; set; } = nameof(SsoNotConfiguredForDomain); |
| | | 112 | | public override string Message { get; set; } = "SSO não está configurado para este domínio."; |
| | | 113 | | } |
| | | 114 | | |
| | | 115 | | public class SsoAuthenticationFailed : SykiError |
| | | 116 | | { |
| | | 117 | | public static readonly SsoAuthenticationFailed I = new(); |
| | | 118 | | public override string Code { get; set; } = nameof(SsoAuthenticationFailed); |
| | | 119 | | public override string Message { get; set; } = "Falha na autenticação SSO."; |
| | | 120 | | } |
| | | 121 | | |
| | | 122 | | public class SsoLoginUserNotFound : SykiError |
| | | 123 | | { |
| | | 124 | | public static readonly SsoLoginUserNotFound I = new(); |
| | | 125 | | public override string Code { get; set; } = nameof(SsoLoginUserNotFound); |
| | | 126 | | public override string Message { get; set; } = "Usuário não pertence à organização."; |
| | | 127 | | } |
| | | 128 | | |
| | | 129 | | public class RoleNotFound : SykiError |
| | | 130 | | { |
| | | 131 | | public static readonly RoleNotFound I = new(); |
| | | 132 | | public override string Code { get; set; } = nameof(RoleNotFound); |
| | | 133 | | public override string Message { get; set; } = "Role não encontrada."; |
| | | 134 | | } |
| | | 135 | | |
| | | 136 | | public class RoleNameAlreadyExists : SykiError |
| | | 137 | | { |
| | | 138 | | public static readonly RoleNameAlreadyExists I = new(); |
| | | 139 | | public override string Code { get; set; } = nameof(RoleNameAlreadyExists); |
| | | 140 | | public override string Message { get; set; } = "Já existe uma role com esse nome."; |
| | | 141 | | } |
| | | 142 | | |
| | | 143 | | public class InvalidRoleBaseType : SykiError |
| | | 144 | | { |
| | | 145 | | public static readonly InvalidRoleBaseType I = new(); |
| | | 146 | | public override string Code { get; set; } = nameof(InvalidRoleBaseType); |
| | | 147 | | public override string Message { get; set; } = "Tipo base do perfil de acesso inválido."; |
| | | 148 | | } |
| | | 149 | | |
| | | 150 | | public class InvalidRolePermissions : SykiError |
| | | 151 | | { |
| | | 152 | | public static readonly InvalidRolePermissions I = new(); |
| | | 153 | | public override string Code { get; set; } = nameof(InvalidRolePermissions); |
| | | 154 | | public override string Message { get; set; } = "Permissões do perfil de acesso inválidas."; |
| | | 155 | | } |
| | | 156 | | |
| | | 157 | | public class InvalidPermissionsForUserType : SykiError |
| | | 158 | | { |
| | | 159 | | public static readonly InvalidPermissionsForUserType I = new(); |
| | | 160 | | public override string Code { get; set; } = nameof(InvalidPermissionsForUserType); |
| | | 161 | | public override string Message { get; set; } = "Uma ou mais permissões não são permitidas para o tipo de usuário sel |
| | | 162 | | } |
| | | 163 | | |
| | | 164 | | public class SocialLoginFailed : SykiError |
| | | 165 | | { |
| | 0 | 166 | | public static readonly SocialLoginFailed I = new(); |
| | 0 | 167 | | public override string Code { get; set; } = nameof(SocialLoginFailed); |
| | 0 | 168 | | public override string Message { get; set; } = "Falha na autenticação social. Tente novamente."; |
| | | 169 | | } |
| | | 170 | | |
| | | 171 | | public class SocialLoginEmailNotVerified : SykiError |
| | | 172 | | { |
| | | 173 | | public static readonly SocialLoginEmailNotVerified I = new(); |
| | | 174 | | public override string Code { get; set; } = nameof(SocialLoginEmailNotVerified); |
| | | 175 | | public override string Message { get; set; } = "Email não verificado pelo provedor."; |
| | | 176 | | } |
| | | 177 | | |
| | | 178 | | public class SocialLoginSsoRequired : SykiError |
| | | 179 | | { |
| | | 180 | | public static readonly SocialLoginSsoRequired I = new(); |
| | | 181 | | public override string Code { get; set; } = nameof(SocialLoginSsoRequired); |
| | | 182 | | public override string Message { get; set; } = "Sua organização requer login via SSO corporativo."; |
| | | 183 | | } |