Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- type GalleyApi = FedEndpoint "on-conversation-created" (ConversationCreated ConvId) EmptyResponse :<|> (Named "get-conversations@v1" (UnnamedFedEndpointWithMods '[Until 'V2] "get-conversations" GetConversationsRequest GetConversationsResponse) :<|> (FedEndpointWithMods '[From 'V2] "get-conversations" GetConversationsRequest GetConversationsResponseV2 :<|> (FedEndpoint "leave-conversation" LeaveConversationRequest LeaveConversationResponse :<|> (FedEndpoint "send-message" ProteusMessageSendRequest MessageSendResponse :<|> (FedEndpoint "update-conversation" ConversationUpdateRequest ConversationUpdateResponse :<|> (FedEndpoint "mls-welcome" MLSWelcomeRequest MLSWelcomeResponse :<|> (FedEndpoint "send-mls-message" MLSMessageSendRequest MLSMessageResponse :<|> (FedEndpoint "send-mls-commit-bundle" MLSMessageSendRequest MLSMessageResponse :<|> (FedEndpoint "query-group-info" GetGroupInfoRequest GetGroupInfoResponse :<|> (FedEndpointWithMods '[] "update-typing-indicator" TypingDataUpdateRequest TypingDataUpdateResponse :<|> (FedEndpoint "on-typing-indicator-updated" TypingDataUpdated EmptyResponse :<|> (FedEndpointWithMods '[From 'V1] "get-sub-conversation" GetSubConversationsRequest GetSubConversationsResponse :<|> (FedEndpointWithMods '[From 'V1] "delete-sub-conversation" DeleteSubConversationFedRequest DeleteSubConversationResponse :<|> (FedEndpointWithMods '[From 'V1] "leave-sub-conversation" LeaveSubConversationRequest LeaveSubConversationResponse :<|> (Named "get-one2one-conversation@v1" (UnnamedFedEndpointWithMods '[From 'V1, Until 'V2] "get-one2one-conversation" GetOne2OneConversationRequest GetOne2OneConversationResponse) :<|> (FedEndpointWithMods '[From 'V2] "get-one2one-conversation" GetOne2OneConversationRequest GetOne2OneConversationResponseV2 :<|> GalleyNotificationAPI))))))))))))))))
- data ConversationCreated conv = ConversationCreated {
- time :: UTCTime
- origUserId :: UserId
- cnvId :: conv
- cnvType :: ConvType
- cnvAccess :: [Access]
- cnvAccessRoles :: Set AccessRole
- cnvName :: Maybe Text
- nonCreatorMembers :: Set OtherMember
- messageTimer :: Maybe Milliseconds
- receiptMode :: Maybe ReceiptMode
- protocol :: Protocol
- data GetConversationsRequest = GetConversationsRequest {}
- newtype GetConversationsResponse = GetConversationsResponse {
- convs :: [RemoteConversation]
- newtype GetConversationsResponseV2 = GetConversationsResponseV2 {}
- data LeaveConversationRequest = LeaveConversationRequest {}
- newtype LeaveConversationResponse = LeaveConversationResponse {}
- data ProteusMessageSendRequest = ProteusMessageSendRequest {}
- newtype MessageSendResponse = MessageSendResponse {}
- data ConversationUpdateRequest = ConversationUpdateRequest {}
- data ConversationUpdateResponse
- data MLSWelcomeRequest = MLSWelcomeRequest {}
- data MLSWelcomeResponse
- data MLSMessageSendRequest = MLSMessageSendRequest {}
- data MLSMessageResponse
- data GetGroupInfoRequest = GetGroupInfoRequest {
- conv :: ConvOrSubConvId
- sender :: UserId
- data GetGroupInfoResponse
- data TypingDataUpdateRequest = TypingDataUpdateRequest {
- typingStatus :: TypingStatus
- userId :: UserId
- convId :: ConvId
- data TypingDataUpdateResponse
- data TypingDataUpdated = TypingDataUpdated {
- time :: UTCTime
- origUserId :: Qualified UserId
- convId :: ConvId
- usersInConv :: [UserId]
- typingStatus :: TypingStatus
- data GetSubConversationsRequest = GetSubConversationsRequest {}
- data GetSubConversationsResponse
- data DeleteSubConversationFedRequest = DeleteSubConversationFedRequest {}
- data DeleteSubConversationResponse
- data LeaveSubConversationRequest = LeaveSubConversationRequest {}
- data LeaveSubConversationResponse
- data GetOne2OneConversationRequest = GetOne2OneConversationRequest {}
- data GetOne2OneConversationResponse
- data GetOne2OneConversationResponseV2
- data RemoteConvMembers = RemoteConvMembers {
- selfRole :: RoleName
- others :: [OtherMember]
- data RemoteConversation = RemoteConversation {}
- data RemoteConversationV2 = RemoteConversationV2 {}
- data RemoteMLSOne2OneConversation = RemoteMLSOne2OneConversation {}
- data RemoveFromConversationError
- data RemoteMLSMessageResponse
- swaggerDoc :: OpenApi
- remoteConversationFromV2 :: RemoteConversationV2 -> RemoteConversation
- remoteConversationToV2 :: RemoteConversation -> RemoteConversationV2
- getConversationsResponseToV2 :: GetConversationsResponse -> GetConversationsResponseV2
- getConversationsResponseFromV2 :: GetConversationsResponseV2 -> GetConversationsResponse
- ccRemoteOrigUserId :: ConversationCreated (Remote ConvId) -> Remote UserId
- module Wire.API.Federation.API.Galley.Notifications
Documentation
For conventions see docsdeveloper/federation-api-conventions.md
data ConversationCreated conv Source #
A record type describing a new federated conversation
FUTUREWORK: Think about extracting common conversation metadata into a separarate data type that can be reused in several data types in this module.
ConversationCreated | |
|
Instances
data GetConversationsRequest Source #
Instances
newtype GetConversationsResponse Source #
Instances
newtype GetConversationsResponseV2 Source #
Instances
data LeaveConversationRequest Source #
Instances
newtype LeaveConversationResponse Source #
Instances
data ProteusMessageSendRequest Source #
ProteusMessageSendRequest | |
|
Instances
newtype MessageSendResponse Source #
Instances
data ConversationUpdateRequest Source #
Instances
data ConversationUpdateResponse Source #
Instances
data MLSWelcomeRequest Source #
A wrapper around a raw welcome message
MLSWelcomeRequest | |
|
Instances
data MLSWelcomeResponse Source #
Instances
data MLSMessageSendRequest Source #
MLSMessageSendRequest | |
|
Instances
data MLSMessageResponse Source #
MLSMessageResponseError GalleyError | |
MLSMessageResponseProtocolError Text | |
MLSMessageResponseProposalFailure JSONResponse | |
MLSMessageResponseUnreachableBackends (Set Domain) | The conversation-owning backend could not reach some of the backends that have users in the conversation when processing a commit. |
MLSMessageResponseUpdates [ConversationUpdate] | If the list of unreachable users is non-empty, it corresponds to users that an application message could not be sent to. |
MLSMessageResponseNonFederatingBackends NonFederatingBackends |
Instances
data GetGroupInfoRequest Source #
GetGroupInfoRequest | |
|
Instances
data GetGroupInfoResponse Source #
Instances
data TypingDataUpdateRequest Source #
Instances
data TypingDataUpdateResponse Source #
Instances
data TypingDataUpdated Source #
TypingDataUpdated | |
|
Instances
data GetSubConversationsRequest Source #
Instances
data GetSubConversationsResponse Source #
GetSubConversationsResponseError GalleyError | |
GetSubConversationsResponseSuccess PublicSubConversation |
Instances
data DeleteSubConversationFedRequest Source #
DeleteSubConversationFedRequest | |
|
Instances
data DeleteSubConversationResponse Source #
Instances
data LeaveSubConversationRequest Source #
LeaveSubConversationRequest | |
|
Instances
data LeaveSubConversationResponse Source #
LeaveSubConversationResponseError GalleyError | |
LeaveSubConversationResponseProtocolError Text | |
LeaveSubConversationResponseOk |
Instances
data GetOne2OneConversationRequest Source #
Instances
data GetOne2OneConversationResponse Source #
GetOne2OneConversationOk RemoteConversation | |
GetOne2OneConversationBackendMismatch | This is returned when the local backend is asked for a 1-1 conversation that should reside on the other backend. |
GetOne2OneConversationNotConnected | This is returned when a 1-1 conversation between two unconnected users is requested. |
Instances
data GetOne2OneConversationResponseV2 Source #
GetOne2OneConversationV2Ok RemoteMLSOne2OneConversation | |
GetOne2OneConversationV2BackendMismatch | This is returned when the local backend is asked for a 1-1 conversation that should reside on the other backend. |
GetOne2OneConversationV2NotConnected | This is returned when a 1-1 conversation between two unconnected users is requested. |
GetOne2OneConversationV2MLSNotEnabled |
Instances
data RemoteConvMembers Source #
Instances
data RemoteConversation Source #
A conversation hosted on a remote backend. This contains the same
information as a Conversation
, with the exception that conversation status
fields (muted/archived/hidden) are omitted, since they are not known by the
remote backend.
RemoteConversation | |
|
Instances
data RemoteConversationV2 Source #
A conversation hosted on a remote backend. This contains the same
information as a Conversation
, with the exception that conversation status
fields (muted/archived/hidden) are omitted, since they are not known by the
remote backend.
RemoteConversationV2 | |
|
Instances
data RemoteMLSOne2OneConversation Source #
Instances
data RemoveFromConversationError Source #
Error outcomes of the leave-conversation RPC.
RemoveFromConversationErrorRemovalNotAllowed | |
RemoveFromConversationErrorNotFound | |
RemoveFromConversationErrorUnchanged |
Instances
data RemoteMLSMessageResponse Source #
Instances
swaggerDoc :: OpenApi Source #