wire-api-federation-0.1.0: The Wire server-to-server API for federation
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.Federation.API.Galley

Synopsis

Documentation

type GalleyApi Source #

Arguments

 = 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 :<|> (FedEndpointWithMods '[MakesFederatedCall 'Galley "on-conversation-updated", MakesFederatedCall 'Galley "on-mls-message-sent", MakesFederatedCall 'Brig "get-users-by-ids", MakesFederatedCall 'Brig "api-version"] "leave-conversation" LeaveConversationRequest LeaveConversationResponse :<|> (FedEndpointWithMods '[MakesFederatedCall 'Galley "on-message-sent", MakesFederatedCall 'Brig "get-user-clients"] "send-message" ProteusMessageSendRequest MessageSendResponse :<|> (FedEndpointWithMods '[MakesFederatedCall 'Galley "on-conversation-updated", MakesFederatedCall 'Galley "on-mls-message-sent", MakesFederatedCall 'Brig "get-users-by-ids", MakesFederatedCall 'Galley "on-mls-message-sent"] "update-conversation" ConversationUpdateRequest ConversationUpdateResponse :<|> (FedEndpoint "mls-welcome" MLSWelcomeRequest MLSWelcomeResponse :<|> (FedEndpointWithMods '[MakesFederatedCall 'Galley "on-conversation-updated", MakesFederatedCall 'Galley "on-mls-message-sent", MakesFederatedCall 'Galley "send-mls-message", MakesFederatedCall 'Brig "get-mls-clients"] "send-mls-message" MLSMessageSendRequest MLSMessageResponse :<|> (FedEndpointWithMods '[MakesFederatedCall 'Galley "mls-welcome", MakesFederatedCall 'Galley "on-conversation-updated", MakesFederatedCall 'Galley "on-mls-message-sent", MakesFederatedCall 'Galley "send-mls-commit-bundle", MakesFederatedCall 'Brig "get-mls-clients", MakesFederatedCall 'Brig "get-users-by-ids", MakesFederatedCall 'Brig "api-version"] "send-mls-commit-bundle" MLSMessageSendRequest MLSMessageResponse :<|> (FedEndpoint "query-group-info" GetGroupInfoRequest GetGroupInfoResponse :<|> (FedEndpointWithMods '[MakesFederatedCall 'Galley "on-typing-indicator-updated"] "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 '[MakesFederatedCall 'Galley "on-mls-message-sent", 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))))))))))))))))

Register a new conversation. This is only called on backends of users that are part of a conversation at creation time. Since MLS conversations are always created empty (i.e. they only contain the creator), this RPC is never invoked for such conversations.

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.

Constructors

ConversationCreated 

Fields

Instances

Instances details
Functor ConversationCreated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON conv => FromJSON (ConversationCreated conv) Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON conv => ToJSON (ConversationCreated conv) Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic (ConversationCreated conv) Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep (ConversationCreated conv) :: Type -> Type #

Show conv => Show (ConversationCreated conv) Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq conv => Eq (ConversationCreated conv) Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema a => ToSchema (ConversationCreated a) Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep (ConversationCreated conv) Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

data GetConversationsRequest Source #

Constructors

GetConversationsRequest 

Fields

Instances

Instances details
Arbitrary GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetConversationsRequest :: Type -> Type #

Show GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetConversationsRequest = D1 ('MetaData "GetConversationsRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "GetConversationsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "convIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ConvId])))

newtype GetConversationsResponse Source #

Instances

Instances details
Arbitrary GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetConversationsResponse :: Type -> Type #

Show GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetConversationsResponse = D1 ('MetaData "GetConversationsResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'True) (C1 ('MetaCons "GetConversationsResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "convs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RemoteConversation])))

newtype GetConversationsResponseV2 Source #

Instances

Instances details
Arbitrary GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetConversationsResponseV2 :: Type -> Type #

Show GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetConversationsResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetConversationsResponseV2 = D1 ('MetaData "GetConversationsResponseV2" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'True) (C1 ('MetaCons "GetConversationsResponseV2" 'PrefixI 'True) (S1 ('MetaSel ('Just "convs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RemoteConversationV2])))

data LeaveConversationRequest Source #

Constructors

LeaveConversationRequest 

Fields

  • convId :: ConvId

    The conversation is assumed to be owned by the target domain, which allows us to protect against relay attacks

  • leaver :: UserId

    The leaver is assumed to be owned by the origin domain, which allows us to protect against spoofing attacks

Instances

Instances details
FromJSON LeaveConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON LeaveConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic LeaveConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep LeaveConversationRequest :: Type -> Type #

Show LeaveConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq LeaveConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema LeaveConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveConversationRequest = D1 ('MetaData "LeaveConversationRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "LeaveConversationRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "convId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: S1 ('MetaSel ('Just "leaver") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId)))

newtype LeaveConversationResponse Source #

Instances

Instances details
FromJSON LeaveConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON LeaveConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic LeaveConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep LeaveConversationResponse :: Type -> Type #

Show LeaveConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq LeaveConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema LeaveConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveConversationResponse = D1 ('MetaData "LeaveConversationResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'True) (C1 ('MetaCons "LeaveConversationResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "response") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Either RemoveFromConversationError ()))))

data ProteusMessageSendRequest Source #

Constructors

ProteusMessageSendRequest 

Fields

  • convId :: ConvId

    Conversation is assumed to be owned by the target domain, this allows us to protect against relay attacks

  • sender :: UserId

    Sender is assumed to be owned by the origin domain, this allows us to protect against spoofing attacks

  • rawMessage :: Base64ByteString
     

Instances

Instances details
Arbitrary ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep ProteusMessageSendRequest :: Type -> Type #

Show ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep ProteusMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep ProteusMessageSendRequest = D1 ('MetaData "ProteusMessageSendRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "ProteusMessageSendRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "convId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: (S1 ('MetaSel ('Just "sender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "rawMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Base64ByteString))))

newtype MessageSendResponse Source #

Instances

Instances details
FromJSON MessageSendResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON MessageSendResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic MessageSendResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep MessageSendResponse :: Type -> Type #

Show MessageSendResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq MessageSendResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema MessageSendResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MessageSendResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MessageSendResponse = D1 ('MetaData "MessageSendResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'True) (C1 ('MetaCons "MessageSendResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "response") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PostOtrResponse MessageSendingStatus))))

data ConversationUpdateRequest Source #

Constructors

ConversationUpdateRequest 

Fields

  • user :: UserId

    The user that is attempting to perform the action. This is qualified implicitly by the origin domain

  • convId :: ConvId

    Id of conversation the action should be performed on. The is qualified implicity by the owning backend which receives this request.

  • action :: SomeConversationAction
     

Instances

Instances details
Arbitrary ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep ConversationUpdateRequest :: Type -> Type #

Show ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep ConversationUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep ConversationUpdateRequest = D1 ('MetaData "ConversationUpdateRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "ConversationUpdateRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: (S1 ('MetaSel ('Just "convId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeConversationAction))))

data ConversationUpdateResponse Source #

Instances

Instances details
FromJSON ConversationUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON ConversationUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic ConversationUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep ConversationUpdateResponse :: Type -> Type #

Show ConversationUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq ConversationUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema ConversationUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep ConversationUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep ConversationUpdateResponse = D1 ('MetaData "ConversationUpdateResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) ((C1 ('MetaCons "ConversationUpdateResponseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GalleyError)) :+: C1 ('MetaCons "ConversationUpdateResponseUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConversationUpdate))) :+: (C1 ('MetaCons "ConversationUpdateResponseNoChanges" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConversationUpdateResponseNonFederatingBackends" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NonFederatingBackends)) :+: C1 ('MetaCons "ConversationUpdateResponseUnreachableBackends" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnreachableBackends)))))

data MLSWelcomeRequest Source #

A wrapper around a raw welcome message

Constructors

MLSWelcomeRequest 

Fields

Instances

Instances details
Arbitrary MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep MLSWelcomeRequest :: Type -> Type #

Show MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSWelcomeRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSWelcomeRequest = D1 ('MetaData "MLSWelcomeRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "MLSWelcomeRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "originatingUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "welcomeMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Base64ByteString)) :*: (S1 ('MetaSel ('Just "recipients") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(UserId, ClientId)]) :*: S1 ('MetaSel ('Just "qualifiedConvId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Qualified ConvId)))))

data MLSWelcomeResponse Source #

Instances

Instances details
FromJSON MLSWelcomeResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON MLSWelcomeResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic MLSWelcomeResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep MLSWelcomeResponse :: Type -> Type #

Show MLSWelcomeResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq MLSWelcomeResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema MLSWelcomeResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSWelcomeResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSWelcomeResponse = D1 ('MetaData "MLSWelcomeResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "MLSWelcomeSent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MLSWelcomeMLSNotEnabled" 'PrefixI 'False) (U1 :: Type -> Type))

data MLSMessageSendRequest Source #

Constructors

MLSMessageSendRequest 

Fields

Instances

Instances details
Arbitrary MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep MLSMessageSendRequest :: Type -> Type #

Show MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSMessageSendRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSMessageSendRequest = D1 ('MetaData "MLSMessageSendRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "MLSMessageSendRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "convOrSubId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvOrSubConvId) :*: S1 ('MetaSel ('Just "sender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId)) :*: (S1 ('MetaSel ('Just "senderClient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ClientId) :*: S1 ('MetaSel ('Just "rawMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Base64ByteString))))

data MLSMessageResponse Source #

Constructors

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

Instances details
FromJSON MLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON MLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic MLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep MLSMessageResponse :: Type -> Type #

Show MLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq MLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema MLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep MLSMessageResponse = D1 ('MetaData "MLSMessageResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) ((C1 ('MetaCons "MLSMessageResponseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GalleyError)) :+: (C1 ('MetaCons "MLSMessageResponseProtocolError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "MLSMessageResponseProposalFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JSONResponse)))) :+: (C1 ('MetaCons "MLSMessageResponseUnreachableBackends" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set Domain))) :+: (C1 ('MetaCons "MLSMessageResponseUpdates" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ConversationUpdate])) :+: C1 ('MetaCons "MLSMessageResponseNonFederatingBackends" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NonFederatingBackends)))))

data GetGroupInfoRequest Source #

Constructors

GetGroupInfoRequest 

Fields

  • conv :: ConvOrSubConvId

    Conversation (or subconversation) is assumed to be owned by the target domain, this allows us to protect against relay attacks

  • sender :: UserId

    Sender is assumed to be owned by the origin domain, this allows us to protect against spoofing attacks

Instances

Instances details
Arbitrary GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetGroupInfoRequest :: Type -> Type #

Show GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetGroupInfoRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetGroupInfoRequest = D1 ('MetaData "GetGroupInfoRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "GetGroupInfoRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "conv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvOrSubConvId) :*: S1 ('MetaSel ('Just "sender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId)))

data GetGroupInfoResponse Source #

Instances

Instances details
FromJSON GetGroupInfoResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetGroupInfoResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetGroupInfoResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetGroupInfoResponse :: Type -> Type #

Show GetGroupInfoResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetGroupInfoResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetGroupInfoResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetGroupInfoResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetGroupInfoResponse = D1 ('MetaData "GetGroupInfoResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "GetGroupInfoResponseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GalleyError)) :+: C1 ('MetaCons "GetGroupInfoResponseState" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Base64ByteString)))

data TypingDataUpdateRequest Source #

Instances

Instances details
FromJSON TypingDataUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON TypingDataUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic TypingDataUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep TypingDataUpdateRequest :: Type -> Type #

Show TypingDataUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq TypingDataUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema TypingDataUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep TypingDataUpdateRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep TypingDataUpdateRequest = D1 ('MetaData "TypingDataUpdateRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "TypingDataUpdateRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "typingStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypingStatus) :*: (S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "convId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId))))

data TypingDataUpdateResponse Source #

Instances

Instances details
FromJSON TypingDataUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON TypingDataUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic TypingDataUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep TypingDataUpdateResponse :: Type -> Type #

Show TypingDataUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq TypingDataUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema TypingDataUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep TypingDataUpdateResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep TypingDataUpdateResponse = D1 ('MetaData "TypingDataUpdateResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "TypingDataUpdateSuccess" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypingDataUpdated)) :+: C1 ('MetaCons "TypingDataUpdateError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GalleyError)))

data TypingDataUpdated Source #

Constructors

TypingDataUpdated 

Fields

Instances

Instances details
FromJSON TypingDataUpdated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON TypingDataUpdated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic TypingDataUpdated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep TypingDataUpdated :: Type -> Type #

Show TypingDataUpdated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq TypingDataUpdated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema TypingDataUpdated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep TypingDataUpdated Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep TypingDataUpdated = D1 ('MetaData "TypingDataUpdated" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "TypingDataUpdated" 'PrefixI 'True) ((S1 ('MetaSel ('Just "time") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "origUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Qualified UserId))) :*: (S1 ('MetaSel ('Just "convId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: (S1 ('MetaSel ('Just "usersInConv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [UserId]) :*: S1 ('MetaSel ('Just "typingStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypingStatus)))))

data GetSubConversationsRequest Source #

Instances

Instances details
FromJSON GetSubConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetSubConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetSubConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetSubConversationsRequest :: Type -> Type #

Show GetSubConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetSubConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetSubConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetSubConversationsRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetSubConversationsRequest = D1 ('MetaData "GetSubConversationsRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "GetSubConversationsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "gsreqUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: (S1 ('MetaSel ('Just "gsreqConv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: S1 ('MetaSel ('Just "gsreqSubConv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SubConvId))))

data GetSubConversationsResponse Source #

Instances

Instances details
FromJSON GetSubConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetSubConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetSubConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetSubConversationsResponse :: Type -> Type #

Show GetSubConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetSubConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetSubConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetSubConversationsResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetSubConversationsResponse = D1 ('MetaData "GetSubConversationsResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "GetSubConversationsResponseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GalleyError)) :+: C1 ('MetaCons "GetSubConversationsResponseSuccess" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PublicSubConversation)))

data DeleteSubConversationFedRequest Source #

Instances

Instances details
FromJSON DeleteSubConversationFedRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON DeleteSubConversationFedRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic DeleteSubConversationFedRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep DeleteSubConversationFedRequest :: Type -> Type #

Show DeleteSubConversationFedRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq DeleteSubConversationFedRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema DeleteSubConversationFedRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep DeleteSubConversationFedRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep DeleteSubConversationFedRequest = D1 ('MetaData "DeleteSubConversationFedRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "DeleteSubConversationFedRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dscreqUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "dscreqConv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId)) :*: (S1 ('MetaSel ('Just "dscreqSubConv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SubConvId) :*: (S1 ('MetaSel ('Just "dscreqGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GroupId) :*: S1 ('MetaSel ('Just "dscreqEpoch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Epoch)))))

data DeleteSubConversationResponse Source #

Instances

Instances details
FromJSON DeleteSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON DeleteSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic DeleteSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep DeleteSubConversationResponse :: Type -> Type #

Show DeleteSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq DeleteSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema DeleteSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep DeleteSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep DeleteSubConversationResponse = D1 ('MetaData "DeleteSubConversationResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "DeleteSubConversationResponseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GalleyError)) :+: C1 ('MetaCons "DeleteSubConversationResponseSuccess" 'PrefixI 'False) (U1 :: Type -> Type))

data LeaveSubConversationRequest Source #

Instances

Instances details
Arbitrary LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep LeaveSubConversationRequest :: Type -> Type #

Show LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveSubConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveSubConversationRequest = D1 ('MetaData "LeaveSubConversationRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "LeaveSubConversationRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lscrUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "lscrClient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ClientId)) :*: (S1 ('MetaSel ('Just "lscrConv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: S1 ('MetaSel ('Just "lscrSubConv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SubConvId))))

data LeaveSubConversationResponse Source #

Instances

Instances details
FromJSON LeaveSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON LeaveSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic LeaveSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep LeaveSubConversationResponse :: Type -> Type #

Show LeaveSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq LeaveSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema LeaveSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveSubConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep LeaveSubConversationResponse = D1 ('MetaData "LeaveSubConversationResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "LeaveSubConversationResponseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GalleyError)) :+: (C1 ('MetaCons "LeaveSubConversationResponseProtocolError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "LeaveSubConversationResponseOk" 'PrefixI 'False) (U1 :: Type -> Type)))

data GetOne2OneConversationRequest Source #

Instances

Instances details
Arbitrary GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetOne2OneConversationRequest :: Type -> Type #

Show GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetOne2OneConversationRequest Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetOne2OneConversationRequest = D1 ('MetaData "GetOne2OneConversationRequest" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "GetOne2OneConversationRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "goocSenderUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "goocReceiverUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId)))

data GetOne2OneConversationResponse Source #

Constructors

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

Instances details
Arbitrary GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetOne2OneConversationResponse :: Type -> Type #

Show GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetOne2OneConversationResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetOne2OneConversationResponse = D1 ('MetaData "GetOne2OneConversationResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "GetOne2OneConversationOk" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteConversation)) :+: (C1 ('MetaCons "GetOne2OneConversationBackendMismatch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GetOne2OneConversationNotConnected" 'PrefixI 'False) (U1 :: Type -> Type)))

data GetOne2OneConversationResponseV2 Source #

Constructors

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

Instances details
FromJSON GetOne2OneConversationResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON GetOne2OneConversationResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic GetOne2OneConversationResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep GetOne2OneConversationResponseV2 :: Type -> Type #

Show GetOne2OneConversationResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq GetOne2OneConversationResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema GetOne2OneConversationResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetOne2OneConversationResponseV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep GetOne2OneConversationResponseV2 = D1 ('MetaData "GetOne2OneConversationResponseV2" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) ((C1 ('MetaCons "GetOne2OneConversationV2Ok" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteMLSOne2OneConversation)) :+: C1 ('MetaCons "GetOne2OneConversationV2BackendMismatch" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GetOne2OneConversationV2NotConnected" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GetOne2OneConversationV2MLSNotEnabled" 'PrefixI 'False) (U1 :: Type -> Type)))

data RemoteConvMembers Source #

Constructors

RemoteConvMembers 

Instances

Instances details
Arbitrary RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep RemoteConvMembers :: Type -> Type #

Show RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteConvMembers Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteConvMembers = D1 ('MetaData "RemoteConvMembers" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "RemoteConvMembers" 'PrefixI 'True) (S1 ('MetaSel ('Just "selfRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RoleName) :*: S1 ('MetaSel ('Just "others") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [OtherMember])))

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.

Constructors

RemoteConversation 

Fields

Instances

Instances details
Arbitrary RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep RemoteConversation :: Type -> Type #

Show RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteConversation = D1 ('MetaData "RemoteConversation" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "RemoteConversation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConversationMetadata)) :*: (S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteConvMembers) :*: S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Versioned 'V5 Protocol)))))

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.

Constructors

RemoteConversationV2 

Fields

Instances

Instances details
Arbitrary RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

FromJSON RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep RemoteConversationV2 :: Type -> Type #

Show RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteConversationV2 Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteConversationV2 = D1 ('MetaData "RemoteConversationV2" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "RemoteConversationV2" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConvId) :*: S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConversationMetadata)) :*: (S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteConvMembers) :*: S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Protocol))))

data RemoteMLSOne2OneConversation Source #

Instances

Instances details
FromJSON RemoteMLSOne2OneConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON RemoteMLSOne2OneConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic RemoteMLSOne2OneConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep RemoteMLSOne2OneConversation :: Type -> Type #

Show RemoteMLSOne2OneConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq RemoteMLSOne2OneConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema RemoteMLSOne2OneConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteMLSOne2OneConversation Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteMLSOne2OneConversation = D1 ('MetaData "RemoteMLSOne2OneConversation" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "RemoteMLSOne2OneConversation" 'PrefixI 'True) (S1 ('MetaSel ('Just "conversation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteConversationV2) :*: S1 ('MetaSel ('Just "publicKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MLSKeysByPurpose MLSPublicKeys))))

data RemoveFromConversationError Source #

Error outcomes of the leave-conversation RPC.

Instances

Instances details
FromJSON RemoveFromConversationError Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON RemoveFromConversationError Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic RemoveFromConversationError Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep RemoveFromConversationError :: Type -> Type #

Show RemoveFromConversationError Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq RemoveFromConversationError Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema RemoveFromConversationError Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoveFromConversationError Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoveFromConversationError = D1 ('MetaData "RemoveFromConversationError" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "RemoveFromConversationErrorRemovalNotAllowed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RemoveFromConversationErrorNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RemoveFromConversationErrorUnchanged" 'PrefixI 'False) (U1 :: Type -> Type)))

data RemoteMLSMessageResponse Source #

Instances

Instances details
FromJSON RemoteMLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToJSON RemoteMLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Generic RemoteMLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Associated Types

type Rep RemoteMLSMessageResponse :: Type -> Type #

Show RemoteMLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

Eq RemoteMLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

ToSchema RemoteMLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteMLSMessageResponse Source # 
Instance details

Defined in Wire.API.Federation.API.Galley

type Rep RemoteMLSMessageResponse = D1 ('MetaData "RemoteMLSMessageResponse" "Wire.API.Federation.API.Galley" "wire-api-federation-0.1.0-ARZyNQKMq4lCWdaEdWVlig" 'False) (C1 ('MetaCons "RemoteMLSMessageOk" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RemoteMLSMessageMLSNotEnabled" 'PrefixI 'False) (U1 :: Type -> Type))