wire-api-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.Error.Galley

Synopsis

Documentation

data GalleyError Source #

Constructors

InvalidAction 
InvalidTargetAccess 
TeamNotFound 
TeamMemberNotFound 
NotATeamMember 
NonBindingTeam 
BroadcastLimitExceeded 
UserBindingExists 
NoAddToBinding 
TooManyTeamMembers 
TooManyTeamAdmins 
MissingPermission (Maybe Perm) 
ActionDenied Action 
NotConnected 
InvalidOperation 
InvalidTarget 
ConvNotFound 
ConvAccessDenied 
ConvInvalidProtocolTransition 
MLSNotEnabled 
MLSNonEmptyMemberList 
MLSDuplicatePublicKey 
MLSInvalidLeafNodeIndex 
MLSUnsupportedMessage 
MLSProposalNotFound 
MLSUnsupportedProposal 
MLSProtocolErrorTag 
MLSClientMismatch 
MLSStaleMessage 
MLSCommitMissingReferences 
MLSSelfRemovalNotAllowed 
MLSGroupConversationMismatch 
MLSClientSenderUserMismatch 
MLSWelcomeMismatch 
MLSMissingGroupInfo 
MLSUnexpectedSenderClient 
MLSSubConvUnsupportedConvType 
MLSSubConvClientNotInParent 
MLSMigrationCriteriaNotSatisfied 
MLSFederatedOne2OneNotSupported 
MLSLegalholdIncompatible

MLS and federation are incompatible with legalhold - this error is thrown if a user tries to create an MLS group while being under legalhold

NoBindingTeamMembers 
NoBindingTeam 
NotAOneMemberTeam 
TooManyMembers 
ConvMemberNotFound 
GuestLinksDisabled 
CodeNotFound 
InvalidConversationPassword 
CreateConversationCodeConflict 
InvalidPermissions 
InvalidTeamStatusUpdate 
AccessDenied 
CustomBackendNotFound 
DeleteQueueFull 
TeamSearchVisibilityNotEnabled 
CannotEnableLegalHoldServiceLargeTeam 
MissingLegalholdConsent 
MissingLegalholdConsentOldClients 
NoUserLegalHoldConsent 
LegalHoldNotEnabled 
LegalHoldDisableUnimplemented 
LegalHoldServiceInvalidKey 
LegalHoldServiceBadResponse 
UserLegalHoldAlreadyEnabled 
LegalHoldServiceNotRegistered 
LegalHoldCouldNotBlockConnections 
UserLegalHoldIllegalOperation 
TooManyTeamMembersOnTeamWithLegalhold 
NoLegalHoldDeviceAllocated 
UserLegalHoldNotPending 
BulkGetMemberLimitExceeded 
InvalidTeamNotificationId 

Instances

Instances details
FromJSON GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

ToJSON GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

Generic GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

Associated Types

type Rep GalleyError :: Type -> Type #

Show GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

Eq GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

ToSchema GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

SingKind GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

Associated Types

type Demote GalleyError = (r :: Type) Source #

SingI 'AccessDenied Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'BroadcastLimitExceeded Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'BulkGetMemberLimitExceeded Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'CannotEnableLegalHoldServiceLargeTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'CodeNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'ConvAccessDenied Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'ConvInvalidProtocolTransition Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'ConvMemberNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'ConvNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'CreateConversationCodeConflict Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'CustomBackendNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'DeleteQueueFull Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'GuestLinksDisabled Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidAction Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidConversationPassword Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidOperation Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidPermissions Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidTarget Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidTargetAccess Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidTeamNotificationId Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'InvalidTeamStatusUpdate Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'LegalHoldCouldNotBlockConnections Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'LegalHoldDisableUnimplemented Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'LegalHoldNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'LegalHoldServiceBadResponse Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'LegalHoldServiceInvalidKey Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'LegalHoldServiceNotRegistered Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSClientMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSClientSenderUserMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSCommitMissingReferences Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSDuplicatePublicKey Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSFederatedOne2OneNotSupported Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSGroupConversationMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSInvalidLeafNodeIndex Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSLegalholdIncompatible Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSMigrationCriteriaNotSatisfied Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSMissingGroupInfo Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSNonEmptyMemberList Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSProposalNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSProtocolErrorTag Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSSelfRemovalNotAllowed Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSStaleMessage Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSSubConvClientNotInParent Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSSubConvUnsupportedConvType Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSUnexpectedSenderClient Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSUnsupportedMessage Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSUnsupportedProposal Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MLSWelcomeMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MissingLegalholdConsent Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'MissingLegalholdConsentOldClients Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NoAddToBinding Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NoBindingTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NoBindingTeamMembers Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NoLegalHoldDeviceAllocated Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NoUserLegalHoldConsent Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NonBindingTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NotAOneMemberTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NotATeamMember Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'NotConnected Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'TeamMemberNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'TeamNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'TeamSearchVisibilityNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'TooManyMembers Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'TooManyTeamAdmins Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'TooManyTeamMembers Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'TooManyTeamMembersOnTeamWithLegalhold Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'UserBindingExists Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'UserLegalHoldAlreadyEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'UserLegalHoldIllegalOperation Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI 'UserLegalHoldNotPending Source # 
Instance details

Defined in Wire.API.Error.Galley

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

Defined in Wire.API.Error.Galley

SingI1 'ActionDenied Source # 
Instance details

Defined in Wire.API.Error.Galley

Methods

liftSing :: forall (x :: k1). Sing x -> Sing ('ActionDenied x) Source #

SingI n => SingI ('ActionDenied n :: GalleyError) Source # 
Instance details

Defined in Wire.API.Error.Galley

Methods

sing :: Sing ('ActionDenied n) Source #

SingI n => SingI ('MissingPermission n :: GalleyError) Source # 
Instance details

Defined in Wire.API.Error.Galley

SingI1 'MissingPermission Source # 
Instance details

Defined in Wire.API.Error.Galley

Methods

liftSing :: forall (x :: k1). Sing x -> Sing ('MissingPermission x) Source #

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

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

KnownError (MapError e) => APIError (Tagged e ()) Source # 
Instance details

Defined in Wire.API.Error.Galley

type Rep GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

type Rep GalleyError = D1 ('MetaData "GalleyError" "Wire.API.Error.Galley" "wire-api-0.1.0-3915FetN8WgFcCGrbk6Vve" 'False) ((((((C1 ('MetaCons "InvalidAction" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InvalidTargetAccess" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TeamNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TeamMemberNotFound" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NotATeamMember" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NonBindingTeam" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BroadcastLimitExceeded" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UserBindingExists" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NoAddToBinding" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "TooManyTeamMembers" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TooManyTeamAdmins" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MissingPermission" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Perm))) :+: C1 ('MetaCons "ActionDenied" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Action)))) :+: ((C1 ('MetaCons "NotConnected" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InvalidOperation" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "InvalidTarget" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConvNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConvAccessDenied" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "ConvInvalidProtocolTransition" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSNotEnabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MLSNonEmptyMemberList" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSDuplicatePublicKey" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MLSInvalidLeafNodeIndex" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSUnsupportedMessage" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MLSProposalNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MLSUnsupportedProposal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSProtocolErrorTag" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "MLSClientMismatch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSStaleMessage" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MLSCommitMissingReferences" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSSelfRemovalNotAllowed" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MLSGroupConversationMismatch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSClientSenderUserMismatch" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MLSWelcomeMismatch" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MLSMissingGroupInfo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSUnexpectedSenderClient" 'PrefixI 'False) (U1 :: Type -> Type))))))) :+: (((((C1 ('MetaCons "MLSSubConvUnsupportedConvType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSSubConvClientNotInParent" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MLSMigrationCriteriaNotSatisfied" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSFederatedOne2OneNotSupported" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MLSLegalholdIncompatible" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NoBindingTeamMembers" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NoBindingTeam" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NotAOneMemberTeam" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TooManyMembers" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "ConvMemberNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GuestLinksDisabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CodeNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InvalidConversationPassword" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "CreateConversationCodeConflict" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InvalidPermissions" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "InvalidTeamStatusUpdate" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AccessDenied" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CustomBackendNotFound" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "DeleteQueueFull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TeamSearchVisibilityNotEnabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CannotEnableLegalHoldServiceLargeTeam" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MissingLegalholdConsent" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MissingLegalholdConsentOldClients" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NoUserLegalHoldConsent" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LegalHoldNotEnabled" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LegalHoldDisableUnimplemented" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LegalHoldServiceInvalidKey" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "LegalHoldServiceBadResponse" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserLegalHoldAlreadyEnabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LegalHoldServiceNotRegistered" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LegalHoldCouldNotBlockConnections" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserLegalHoldIllegalOperation" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "TooManyTeamMembersOnTeamWithLegalhold" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NoLegalHoldDeviceAllocated" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UserLegalHoldNotPending" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BulkGetMemberLimitExceeded" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InvalidTeamNotificationId" 'PrefixI 'False) (U1 :: Type -> Type))))))))
type Demote GalleyError Source # 
Instance details

Defined in Wire.API.Error.Galley

type Sing Source # 
Instance details

Defined in Wire.API.Error.Galley

type Sing
type ErrorEffect (e :: GalleyError) Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'AccessDenied Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'AccessDenied = 'StaticError 403 "access-denied" "You do not have permission to access this resource"
type MapError 'BroadcastLimitExceeded Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'BroadcastLimitExceeded = 'StaticError 400 "too-many-users-to-broadcast" "Too many users to fan out the broadcast event to"
type MapError 'BulkGetMemberLimitExceeded Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'BulkGetMemberLimitExceeded = 'StaticError 400 "too-many-uids" (AppendSymbol (AppendSymbol "Can only process " (Show_ HardTruncationLimit)) " user ids per request.")
type MapError 'CannotEnableLegalHoldServiceLargeTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'CannotEnableLegalHoldServiceLargeTeam = 'StaticError 403 "too-large-team-for-legalhold" "Cannot enable legalhold on large teams (reason: for removing LH from team, we need to iterate over all members, which is only supported for teams with less than 2k members)"
type MapError 'CodeNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'CodeNotFound = 'StaticError 404 "no-conversation-code" "Conversation code not found"
type MapError 'ConvAccessDenied Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'ConvAccessDenied = 'StaticError 403 "access-denied" "Conversation access denied"
type MapError 'ConvInvalidProtocolTransition Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'ConvInvalidProtocolTransition = 'StaticError 403 "invalid-protocol-transition" "Protocol transition is invalid"
type MapError 'ConvMemberNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'ConvMemberNotFound = 'StaticError 404 "no-conversation-member" "Conversation member not found"
type MapError 'ConvNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'ConvNotFound = 'StaticError 404 "no-conversation" "Conversation not found"
type MapError 'CreateConversationCodeConflict Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'CreateConversationCodeConflict = 'StaticError 409 "create-conv-code-conflict" "Conversation code already exists with a different password setting than the requested one."
type MapError 'CustomBackendNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'CustomBackendNotFound = 'StaticError 404 "custom-backend-not-found" "Custom backend not found"
type MapError 'DeleteQueueFull Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'DeleteQueueFull = 'StaticError 503 "queue-full" "The delete queue is full; no further delete requests can be processed at the moment"
type MapError 'GuestLinksDisabled Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'GuestLinksDisabled = 'StaticError 409 "guest-links-disabled" "The guest link feature is disabled and all guest links have been revoked"
type MapError 'InvalidAction Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidAction = 'StaticError 400 "invalid-actions" "The specified actions are invalid"
type MapError 'InvalidConversationPassword Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidConversationPassword = 'StaticError 403 "invalid-conversation-password" "Invalid conversation password"
type MapError 'InvalidOperation Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidOperation = 'StaticError 403 "invalid-op" "Invalid operation"
type MapError 'InvalidPermissions Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidPermissions = 'StaticError 403 "invalid-permissions" "The specified permissions are invalid"
type MapError 'InvalidTarget Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidTarget = 'StaticError 403 "invalid-op" "Invalid target"
type MapError 'InvalidTargetAccess Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidTargetAccess = 'StaticError 403 "invalid-op" "Invalid target access"
type MapError 'InvalidTeamNotificationId Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidTeamNotificationId = 'StaticError 400 "invalid-notification-id" "Could not parse notification id (must be UUIDv1)."
type MapError 'InvalidTeamStatusUpdate Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'InvalidTeamStatusUpdate = 'StaticError 403 "invalid-team-status-update" "Cannot use this endpoint to update the team to the given status."
type MapError 'LegalHoldCouldNotBlockConnections Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldCouldNotBlockConnections = 'StaticError 500 "legalhold-internal" "legal hold service: could not block connections when resolving policy conflicts."
type MapError 'LegalHoldDisableUnimplemented Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldDisableUnimplemented = 'StaticError 403 "legalhold-disable-unimplemented" "legal hold cannot be disabled for whitelisted teams"
type MapError 'LegalHoldNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldNotEnabled = 'StaticError 403 "legalhold-not-enabled" "legal hold is not enabled for this team"
type MapError 'LegalHoldServiceBadResponse Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldServiceBadResponse = 'StaticError 400 "legalhold-status-bad" "legal hold service: invalid response"
type MapError 'LegalHoldServiceInvalidKey Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldServiceInvalidKey = 'StaticError 400 "legalhold-invalid-key" "legal hold service pubkey is invalid"
type MapError 'LegalHoldServiceNotRegistered Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldServiceNotRegistered = 'StaticError 400 "legalhold-not-registered" "legal hold service has not been registered for this team"
type MapError 'MLSClientMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSClientMismatch = 'StaticError 409 "mls-client-mismatch" "A proposal of type Add or Remove does not apply to the full list of clients for a user"
type MapError 'MLSClientSenderUserMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSClientSenderUserMismatch = 'StaticError 400 "mls-client-sender-user-mismatch" "User ID resolved from Client ID does not match message's sender user ID"
type MapError 'MLSCommitMissingReferences Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSCommitMissingReferences = 'StaticError 400 "mls-commit-missing-references" "The commit is not referencing all pending proposals"
type MapError 'MLSDuplicatePublicKey Source # 
Instance details

Defined in Wire.API.Error.Galley

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

Defined in Wire.API.Error.Galley

type MapError 'MLSFederatedOne2OneNotSupported = 'StaticError 400 "mls-federated-one2one-not-supported" "Federated One2One MLS conversations are only supported in API version >= 6"
type MapError 'MLSGroupConversationMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSGroupConversationMismatch = 'StaticError 400 "mls-group-conversation-mismatch" "Conversation ID resolved from Group ID does not match submitted Conversation ID"
type MapError 'MLSInvalidLeafNodeIndex Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSInvalidLeafNodeIndex = 'StaticError 400 "mls-invalid-leaf-node-index" "A referenced leaf node index points to a blank or non-existing node"
type MapError 'MLSLegalholdIncompatible Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSLegalholdIncompatible = 'StaticError 409 "mls-legal-hold-not-allowed" "A user who is under legal-hold may not participate in MLS conversations"
type MapError 'MLSMigrationCriteriaNotSatisfied Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSMigrationCriteriaNotSatisfied = 'StaticError 400 "mls-migration-criteria-not-satisfied" "The migration criteria for mixed to MLS protocol transition are not satisfied for this conversation"
type MapError 'MLSMissingGroupInfo Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSMissingGroupInfo = 'StaticError 404 "mls-missing-group-info" "The conversation has no group information"
type MapError 'MLSNonEmptyMemberList Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSNonEmptyMemberList = 'StaticError 400 "non-empty-member-list" "Attempting to add group members outside MLS"
type MapError 'MLSNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

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 'MLSProposalNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSProposalNotFound = 'StaticError 404 "mls-proposal-not-found" "A proposal referenced in a commit message could not be found"
type MapError 'MLSProtocolErrorTag Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSSelfRemovalNotAllowed Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSSelfRemovalNotAllowed = 'StaticError 400 "mls-self-removal-not-allowed" "Self removal from group is not allowed"
type MapError 'MLSStaleMessage Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSStaleMessage = 'StaticError 409 "mls-stale-message" "The conversation epoch in a message is too old"
type MapError 'MLSSubConvClientNotInParent Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSSubConvClientNotInParent = 'StaticError 403 "mls-subconv-join-parent-missing" "MLS client cannot join the subconversation because it is not member of the parent conversation"
type MapError 'MLSSubConvUnsupportedConvType Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSSubConvUnsupportedConvType = 'StaticError 403 "mls-subconv-unsupported-convtype" "MLS subconversations are only supported for regular conversations"
type MapError 'MLSUnsupportedMessage Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSUnsupportedMessage = 'StaticError 422 "mls-unsupported-message" "Attempted to send a message with an unsupported combination of content type and wire format"
type MapError 'MLSUnsupportedProposal Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSUnsupportedProposal = 'StaticError 422 "mls-unsupported-proposal" "Unsupported proposal type"
type MapError 'MLSWelcomeMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSWelcomeMismatch = 'StaticError 400 "mls-welcome-mismatch" "The list of targets of a welcome message does not match the list of new clients in a group"
type MapError 'MissingLegalholdConsent Source # 
Instance details

Defined in Wire.API.Error.Galley

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.Galley

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 'NoAddToBinding Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NoAddToBinding = 'StaticError 403 "binding-team" "Cannot add users to binding teams, invite only"
type MapError 'NoBindingTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NoBindingTeam = 'StaticError 403 "no-binding-team" "Operation allowed only on binding teams"
type MapError 'NoBindingTeamMembers Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NoBindingTeamMembers = 'StaticError 403 "non-binding-team-members" "Both users must be members of the same binding team"
type MapError 'NoLegalHoldDeviceAllocated Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NoLegalHoldDeviceAllocated = 'StaticError 404 "legalhold-no-device-allocated" "no legal hold device is registered for this user. POST /teams/:tid/legalhold/:uid/ to start the flow."
type MapError 'NoUserLegalHoldConsent Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NoUserLegalHoldConsent = 'StaticError 409 "legalhold-no-consent" "user has not given consent to using legal hold"
type MapError 'NonBindingTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NonBindingTeam = 'StaticError 404 "non-binding-team" "Not a member of a binding team"
type MapError 'NotAOneMemberTeam Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NotAOneMemberTeam = 'StaticError 403 "not-one-member-team" "Can only delete teams with a single member"
type MapError 'NotATeamMember Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'NotATeamMember = 'StaticError 403 "no-team-member" "Requesting user is not a team member"
type MapError 'NotConnected Source # 
Instance details

Defined in Wire.API.Error.Galley

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

Defined in Wire.API.Error.Galley

type MapError 'TeamMemberNotFound = 'StaticError 404 "no-team-member" "Team member not found"
type MapError 'TeamNotFound Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'TeamNotFound = 'StaticError 404 "no-team" "Team not found"
type MapError 'TeamSearchVisibilityNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'TeamSearchVisibilityNotEnabled = 'StaticError 403 "team-search-visibility-not-enabled" "Custom search is not available for this team"
type MapError 'TooManyMembers Source # 
Instance details

Defined in Wire.API.Error.Galley

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

Defined in Wire.API.Error.Galley

type MapError 'TooManyTeamAdmins = 'StaticError 403 "too-many-team-admins" "Maximum number of admins per team reached"
type MapError 'TooManyTeamMembers Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'TooManyTeamMembers = 'StaticError 403 "too-many-team-members" "Maximum number of members per team reached"
type MapError 'TooManyTeamMembersOnTeamWithLegalhold Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'TooManyTeamMembersOnTeamWithLegalhold = 'StaticError 403 "too-many-members-for-legalhold" "cannot add more members to team when legalhold service is enabled."
type MapError 'UserBindingExists Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'UserBindingExists = 'StaticError 403 "binding-exists" "User already bound to a different team"
type MapError 'UserLegalHoldAlreadyEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'UserLegalHoldAlreadyEnabled = 'StaticError 409 "legalhold-already-enabled" "legal hold is already enabled for this user"
type MapError 'UserLegalHoldIllegalOperation Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'UserLegalHoldIllegalOperation = 'StaticError 500 "legalhold-illegal-op" "internal server error: inconsistent change of user's legalhold state"
type MapError 'UserLegalHoldNotPending Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'UserLegalHoldNotPending = 'StaticError 412 "legalhold-not-pending" "legal hold cannot be approved without being in a pending state"
type MapError ('ActionDenied action :: GalleyError) Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError ('ActionDenied action :: GalleyError) = 'StaticError 403 "action-denied" (AppendSymbol (AppendSymbol "Insufficient authorization (missing " (ActionName action)) ")")
type MapError ('MissingPermission mperm :: GalleyError) Source # 
Instance details

Defined in Wire.API.Error.Galley

type OperationDenied = 'MissingPermission 'Nothing Source #

Convenience synonym for an operation denied error with an unspecified permission.

type MLSProtocolError = Tagged 'MLSProtocolErrorTag Text Source #

An MLS protocol error with associated text.

mlsProtocolError :: Text -> MLSProtocolError Source #

Create an MLS protocol error value.

data AuthenticationError Source #

Instances

Instances details
IsSwaggerError AuthenticationError Source # 
Instance details

Defined in Wire.API.Error.Galley

Member (Error DynError :: (Type -> Type) -> Type -> Type) r => ServerEffect (Error AuthenticationError :: (Type -> Type) -> Type -> Type) r Source # 
Instance details

Defined in Wire.API.Error.Galley

type ErrorEffect AuthenticationError Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'ReAuthFailed Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'ReAuthFailed = 'StaticError 403 "access-denied" "This operation requires reauthentication"
type MapError 'VerificationCodeAuthFailed Source # 
Instance details

Defined in Wire.API.Error.Galley

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

Defined in Wire.API.Error.Galley

type MapError 'VerificationCodeRequired = 'StaticError 403 "code-authentication-required" "Verification code required"

data TeamFeatureError Source #

Instances

Instances details
IsSwaggerError TeamFeatureError Source # 
Instance details

Defined in Wire.API.Error.Galley

Member (Error DynError :: (Type -> Type) -> Type -> Type) r => ServerEffect (Error TeamFeatureError :: (Type -> Type) -> Type -> Type) r Source # 
Instance details

Defined in Wire.API.Error.Galley

type ErrorEffect TeamFeatureError Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'AppLockInactivityTimeoutTooLow Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'AppLockInactivityTimeoutTooLow = 'StaticError 400 "inactivity-timeout-too-low" "Applock inactivity timeout must be at least 30 seconds"
type MapError 'DisableSsoNotImplemented Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'DisableSsoNotImplemented = 'StaticError 403 "not-implemented" "The SSO feature flag is disabled by default. It can only be enabled once for any team, never disabled.\n\nRationale: there are two services in the backend that need to keep their status in sync: galley (teams),\nand spar (SSO). Galley keeps track of team features. If galley creates an idp, the feature flag is\nchecked. For authentication, spar avoids this expensive check and assumes that the idp can only have\nbeen created if the SSO is enabled. This assumption does not hold any more if the switch is turned off\nagain, so we do not support this.\n\nIt is definitely feasible to change this. If you have a use case, please contact customer support, or\nopen an issue on https://github.com/wireapp/wire-server."
type MapError 'FeatureLocked Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'FeatureLocked = 'StaticError 409 "feature-locked" "Feature config cannot be updated (e.g. because it is configured to be locked, or because you need to upgrade your plan)"
type MapError 'LegalHoldFeatureFlagNotEnabled Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldFeatureFlagNotEnabled = 'StaticError 403 "legalhold-not-enabled" "Legal hold is not enabled for this wire instance"
type MapError 'LegalHoldWhitelistedOnly Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'LegalHoldWhitelistedOnly = 'StaticError 403 "legalhold-whitelisted-only" "Legal hold is enabled for teams via server config and cannot be changed here"
type MapError 'MLSE2EIDMissingCrlProxy Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSE2EIDMissingCrlProxy = 'StaticError 400 "mls-e2eid-missing-crl-proxy" "The field 'crlProxy' is missing in the request payload"
type MapError 'MLSProtocolMismatch Source # 
Instance details

Defined in Wire.API.Error.Galley

type MapError 'MLSProtocolMismatch = 'StaticError 400 "mls-protocol-mismatch" "The default protocol needs to be part of the supported protocols"

data NonFederatingBackends Source #

This is returned when adding members to the conversation is not possible because the backends involved do not form a fully connected graph.

Instances

Instances details
FromJSON NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

ToJSON NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Generic NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Associated Types

type Rep NonFederatingBackends :: Type -> Type #

Show NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Eq NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

ToSchema NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

ToSchema NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

APIError NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

IsSwaggerError NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Member (Error JSONResponse :: (Type -> Type) -> Type -> Type) r => ServerEffect (Error NonFederatingBackends :: (Type -> Type) -> Type -> Type) r Source # 
Instance details

Defined in Wire.API.Error.Galley

type Rep NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

type Rep NonFederatingBackends = D1 ('MetaData "NonFederatingBackends" "Wire.API.Error.Galley" "wire-api-0.1.0-3915FetN8WgFcCGrbk6Vve" 'False) (C1 ('MetaCons "NonFederatingBackends" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Domain) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Domain)))
type ErrorEffect NonFederatingBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

data UnreachableBackends Source #

This is returned when adding members to the conversation is not possible because the backends involved do not form a fully connected graph.

Constructors

UnreachableBackends 

Fields

Instances

Instances details
FromJSON UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

ToJSON UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Generic UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Associated Types

type Rep UnreachableBackends :: Type -> Type #

Show UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Eq UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

ToSchema UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

ToSchema UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

APIError UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

IsSwaggerError UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

Member (Error JSONResponse :: (Type -> Type) -> Type -> Type) r => ServerEffect (Error UnreachableBackends :: (Type -> Type) -> Type -> Type) r Source # 
Instance details

Defined in Wire.API.Error.Galley

type Rep UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

type Rep UnreachableBackends = D1 ('MetaData "UnreachableBackends" "Wire.API.Error.Galley" "wire-api-0.1.0-3915FetN8WgFcCGrbk6Vve" 'False) (C1 ('MetaCons "UnreachableBackends" 'PrefixI 'True) (S1 ('MetaSel ('Just "backends") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Domain])))
type ErrorEffect UnreachableBackends Source # 
Instance details

Defined in Wire.API.Error.Galley

newtype UnreachableBackendsLegacy Source #

A newtype wrapper to preserve backward compatibility of the error response for older versions.