wire-api-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.Error.Brig

Documentation

data BrigError Source #

Constructors

UserNotFound 
InvalidUser 
InvalidCode 
BadCredentials 
MissingAuth 
DeleteCodePending 
OwnerDeletingSelf 
TooManyClients 
MalformedPrekeys 
CodeAuthenticationFailed 
CodeAuthenticationRequired 
MissingLegalholdConsent 
MissingLegalholdConsentOldClients 
ConnectionLimitReached 
UnknownClient 
ClientNotFound 
NotConnected 
InvalidTransition 
NoIdentity 
NoUser 
HandleExists 
InvalidHandle 
HandleNotFound 
UserCreationRestricted 
AllowlistError 
InvalidInvitationCode 
MissingIdentity 
BlacklistedEmail 
InvalidEmail 
InvalidActivationCodeWrongUser 
InvalidActivationCodeWrongCode 
TooManyTeamMembers 
MLSNotEnabled 
MLSIdentityMismatch 
MLSProtocolError 
MLSDuplicatePublicKey 
InvalidPhone 
PasswordExists 
AccountSuspended 
AccountEphemeral 
AccountPending 
UserKeyExists 
EmailExists 
NameManagedByScim 
HandleManagedByScim 
LocaleManagedByScim 
LastIdentity 
NoPassword 
ChangePasswordMustDiffer 
TooManyTeamInvitations 
CannotJoinMultipleTeams 
InsufficientTeamPermissions 
KeyPackageDecodingError 
InvalidKeyPackageRef 
CustomerExtensionBlockedDomain 
PasswordResetInProgress 
InvalidPasswordResetKey 
InvalidPasswordResetCode 
ResetPasswordMustDiffer 
NoEmail 
NotificationNotFound 
PendingInvitationNotFound 
ConflictingInvitations 
AccessDenied 
InvalidConversation 
TooManyConversationMembers 
ServiceDisabled 
InvalidBot 
InvalidServiceKey 
ServiceNotFound 
VerificationCodeThrottled 
InvalidProvider 
ProviderNotFound 
TeamsNotFederating 
PasswordIsStale 
TooManyProperties 
PropertyKeyTooLarge 
PropertyValueTooLarge 
UserAlreadyInATeam 
MLSServicesNotAllowed 

Instances

Instances details
(Typeable (MapError e), KnownError (MapError e)) => IsSwaggerError (e :: BrigError) Source # 
Instance details

Defined in Wire.API.Error.Brig

AsUnion HeadInvitationsResponses HeadInvitationByEmailResult Source # 
Instance details

Defined in Wire.API.Team.Invitation

AsUnion UpgradePersonalToTeamResponses (Either UpgradePersonalToTeamError CreateUserTeam) Source # 
Instance details

Defined in Wire.API.User

AsUnion (MessageNotSentResponses a) (MessageNotSent a) Source # 
Instance details

Defined in Wire.API.Routes.Public.Galley.Messaging

type MapError 'AccessDenied Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'AccessDenied = 'StaticError 403 "access-denied" "Access denied."
type MapError 'AccountEphemeral Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'AccountEphemeral = 'StaticError 403 "ephemeral" "Account ephemeral"
type MapError 'AccountPending Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'AccountPending = 'StaticError 403 "pending-activation" "Account pending activation"
type MapError 'AccountSuspended Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'AccountSuspended = 'StaticError 403 "suspended" "Account suspended"
type MapError 'AllowlistError Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'AllowlistError = 'StaticError 403 "unauthorized" "Unauthorized e-mail address"
type MapError 'BadCredentials Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'BadCredentials = 'StaticError 403 "invalid-credentials" "Authentication failed"
type MapError 'BlacklistedEmail Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'BlacklistedEmail = 'StaticError 403 "blacklisted-email" "The given e-mail address has been blacklisted due to a permanent bounce or a complaint."
type MapError 'CannotJoinMultipleTeams Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'CannotJoinMultipleTeams = 'StaticError 403 "cannot-join-multiple-teams" "Cannot accept invitations from multiple teams"
type MapError 'ChangePasswordMustDiffer Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ChangePasswordMustDiffer = 'StaticError 409 "password-must-differ" "For password change, new and old password must be different."
type MapError 'ClientNotFound Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ClientNotFound = 'StaticError 404 "client-not-found" "Client not found"
type MapError 'CodeAuthenticationFailed Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'CodeAuthenticationFailed = 'StaticError 403 "code-authentication-failed" "Code authentication failed"
type MapError 'CodeAuthenticationRequired Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'CodeAuthenticationRequired = 'StaticError 403 "code-authentication-required" "Code authentication is required"
type MapError 'ConflictingInvitations Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ConflictingInvitations = 'StaticError 409 "conflicting-invitations" "Multiple conflicting invitations to different teams exists."
type MapError 'ConnectionLimitReached Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ConnectionLimitReached = 'StaticError 403 "connection-limit" "Too many sent/accepted connections"
type MapError 'CustomerExtensionBlockedDomain Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'CustomerExtensionBlockedDomain = 'StaticError 451 "domain-blocked-for-registration" "[Customer extension] the email domain example.com that you are attempting to register a user with has been blocked for creating wire users. Please contact your IT department."
type MapError 'DeleteCodePending Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'DeleteCodePending = 'StaticError 403 "pending-delete" "A verification code for account deletion is still pending"
type MapError 'EmailExists Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'EmailExists = 'StaticError 409 "email-exists" "The given e-mail address is in use."
type MapError 'HandleExists Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'HandleExists = 'StaticError 409 "handle-exists" "The given handle is already taken"
type MapError 'HandleManagedByScim Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'HandleManagedByScim = 'StaticError 403 "managed-by-scim" "Updating handle is not allowed, because it is managed by SCIM, or E2EId is enabled"
type MapError 'HandleNotFound Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'HandleNotFound = 'StaticError 404 "not-found" "Handle not found"
type MapError 'InsufficientTeamPermissions Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InsufficientTeamPermissions = 'StaticError 403 "insufficient-permissions" "Insufficient team permissions"
type MapError 'InvalidActivationCodeWrongCode Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidActivationCodeWrongCode = 'StaticError 404 "invalid-code" "Invalid activation code"
type MapError 'InvalidActivationCodeWrongUser Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidActivationCodeWrongUser = 'StaticError 404 "invalid-code" "User does not exist"
type MapError 'InvalidBot Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidBot = 'StaticError 403 "invalid-bot" "The targeted user is not a bot."
type MapError 'InvalidCode Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidCode = 'StaticError 403 "invalid-code" "Invalid verification code"
type MapError 'InvalidConversation Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidConversation = 'StaticError 403 "invalid-conversation" "The operation is not allowed in this conversation."
type MapError 'InvalidEmail Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidEmail = 'StaticError 400 "invalid-email" "Invalid e-mail address."
type MapError 'InvalidHandle Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidHandle = 'StaticError 400 "invalid-handle" "The given handle is invalid (less than 2 or more than 256 characters; chars not in \"a-z0-9_.-\"; or on the blocklist)"
type MapError 'InvalidInvitationCode Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidInvitationCode = 'StaticError 400 "invalid-invitation-code" "Invalid invitation code."
type MapError 'InvalidKeyPackageRef Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidKeyPackageRef = 'StaticError 409 "invalid-reference" "Key package's reference does not match its data"
type MapError 'InvalidPasswordResetCode Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidPasswordResetCode = 'StaticError 400 "invalid-code" "Invalid password reset code."
type MapError 'InvalidPasswordResetKey Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidPasswordResetKey = 'StaticError 400 "invalid-key" "Invalid email or mobile number for password reset."
type MapError 'InvalidPhone Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidPhone = 'StaticError 400 "invalid-phone" "Invalid mobile phone number"
type MapError 'InvalidProvider Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidProvider = 'StaticError 403 "invalid-provider" "The provider does not exist."
type MapError 'InvalidServiceKey Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidServiceKey = 'StaticError 400 "invalid-service-key" "Invalid service key."
type MapError 'InvalidTransition Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidTransition = 'StaticError 403 "bad-conn-update" "Invalid status transition"
type MapError 'InvalidUser Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'InvalidUser = 'StaticError 400 "invalid-user" "Invalid user"
type MapError 'KeyPackageDecodingError Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'KeyPackageDecodingError = 'StaticError 409 "decoding-error" "Key package could not be TLS-decoded"
type MapError 'LastIdentity Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'LastIdentity = 'StaticError 403 "last-identity" "The last user identity cannot be removed."
type MapError 'LocaleManagedByScim Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'LocaleManagedByScim = 'StaticError 403 "managed-by-scim" "Updating locale is not allowed, because it is managed by SCIM, or E2EId is enabled"
type MapError 'MLSDuplicatePublicKey Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MLSDuplicatePublicKey = 'StaticError 400 "mls-duplicate-public-key" "MLS public key for the given signature scheme already exists"
type MapError 'MLSIdentityMismatch Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MLSIdentityMismatch = 'StaticError 403 "mls-identity-mismatch" "Key package credential does not match qualified client ID"
type MapError 'MLSNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MLSNotEnabled = 'StaticError 400 "mls-not-enabled" "MLS is not configured on this backend. See docs.wire.com for instructions on how to enable it"
type MapError 'MLSProtocolError Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MLSProtocolError = 'StaticError 400 "mls-protocol-error" "MLS protocol error"
type MapError 'MLSServicesNotAllowed Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MLSServicesNotAllowed = 'StaticError 409 "mls-services-not-allowed" "Services not allowed in MLS"
type MapError 'MalformedPrekeys Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MalformedPrekeys = 'StaticError 400 "bad-request" "Malformed prekeys uploaded"
type MapError 'MissingAuth Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MissingAuth = 'StaticError 403 "missing-auth" "Re-authentication via password required"
type MapError 'MissingIdentity Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MissingIdentity = 'StaticError 403 "missing-identity" "Using an invitation code requires registering the given email."
type MapError 'MissingLegalholdConsent Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MissingLegalholdConsent = 'StaticError 403 "missing-legalhold-consent" "Failed to connect to a user or to invite a user to a group because somebody is under legalhold and somebody else has not granted consent"
type MapError 'MissingLegalholdConsentOldClients Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'MissingLegalholdConsentOldClients = 'StaticError 403 "missing-legalhold-consent-old-clients" "Failed to connect to a user or to invite a user to a group because somebody is under legalhold and somebody else has old clients that do not support legalhold's UI requirements"
type MapError 'NameManagedByScim Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'NameManagedByScim = 'StaticError 403 "managed-by-scim" "Updating name is not allowed, because it is managed by SCIM, or E2EId is enabled"
type MapError 'NoEmail Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'NoEmail = 'StaticError 403 "no-email" "This operation requires the user to have a verified email address."
type MapError 'NoIdentity Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'NoIdentity = 'StaticError 403 "no-identity" "The user has no verified email"
type MapError 'NoPassword Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'NoPassword = 'StaticError 403 "no-password" "The user has no password."
type MapError 'NotConnected Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'NotConnected = 'StaticError 403 "not-connected" "Users are not connected"
type MapError 'NotificationNotFound Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'NotificationNotFound = 'StaticError 404 "not-found" "Notification not found."
type MapError 'OwnerDeletingSelf Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'OwnerDeletingSelf = 'StaticError 403 "no-self-delete-for-team-owner" "Team owners are not allowed to delete themselves; ask a fellow owner"
type MapError 'PasswordExists Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'PasswordExists = 'StaticError 403 "password-exists" "The operation is not permitted because the user has a password set"
type MapError 'PasswordIsStale Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'PasswordIsStale = 'StaticError 403 "password-is-stale" "The password is too old, please update your password."
type MapError 'PasswordResetInProgress Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'PasswordResetInProgress = 'StaticError 409 "code-exists" "A password reset is already in progress."
type MapError 'PendingInvitationNotFound Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'PendingInvitationNotFound = 'StaticError 404 "not-found" "No pending invitations exists."
type MapError 'PropertyKeyTooLarge Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'PropertyKeyTooLarge = 'StaticError 403 "property-key-too-large" "The property key is too large."
type MapError 'PropertyValueTooLarge Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'PropertyValueTooLarge = 'StaticError 403 "property-value-too-large" "The property value is too large"
type MapError 'ProviderNotFound Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ProviderNotFound = 'StaticError 404 "not-found" "Provider not found."
type MapError 'ResetPasswordMustDiffer Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ResetPasswordMustDiffer = 'StaticError 409 "password-must-differ" "For password reset, new and old password must be different."
type MapError 'ServiceDisabled Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ServiceDisabled = 'StaticError 403 "service-disabled" "The desired service is currently disabled."
type MapError 'ServiceNotFound Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'ServiceNotFound = 'StaticError 404 "not-found" "Service not found."
type MapError 'TeamsNotFederating Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'TeamsNotFederating = 'StaticError 403 "team-not-federating" "The target user is owned by a federated backend, but is not in an allow-listed team"
type MapError 'TooManyClients Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'TooManyClients = 'StaticError 403 "too-many-clients" "Too many clients"
type MapError 'TooManyConversationMembers Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'TooManyConversationMembers = 'StaticError 403 "too-many-members" "Maximum number of members per conversation reached."
type MapError 'TooManyProperties Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'TooManyProperties = 'StaticError 403 "too-many-properties" "Too many properties"
type MapError 'TooManyTeamInvitations Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'TooManyTeamInvitations = 'StaticError 403 "too-many-team-invitations" "Too many team invitations for this team"
type MapError 'TooManyTeamMembers Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'TooManyTeamMembers = 'StaticError 403 "too-many-team-members" "Too many members in this team."
type MapError 'UnknownClient Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'UnknownClient = 'StaticError 403 "unknown-client" "Unknown Client"
type MapError 'UserAlreadyInATeam Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'UserAlreadyInATeam = 'StaticError 403 "user-already-in-a-team" "Switching teams is not allowed"
type MapError 'UserCreationRestricted Source #

docsreferenceuser/registration.md {#RefRestrictRegistration}.

Instance details

Defined in Wire.API.Error.Brig

type MapError 'UserCreationRestricted = 'StaticError 403 "user-creation-restricted" "This instance does not allow creation of personal users or teams."
type MapError 'UserKeyExists Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'UserKeyExists = 'StaticError 409 "key-exists" "The given e-mail address is in use."
type MapError 'UserNotFound Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'UserNotFound = 'StaticError 404 "not-found" "User not found"
type MapError 'VerificationCodeThrottled Source # 
Instance details

Defined in Wire.API.Error.Brig

type MapError 'VerificationCodeThrottled = 'StaticError 429 "too-many-requests" "Too many request to generate a verification code."