@sudoplatform/sudo-secure-communications
    Preparing search index...

    Interface DirectChatsModule

    Direct Chat management for the Secure Communications Service.

    interface DirectChatsModule {
        acceptInvitation(input: AcceptInvitationInput): Promise<void>;
        blockHandle(input: BlockHandleInput): Promise<void>;
        createChat(input: CreateChatInput): Promise<ChatId>;
        declineInvitation(input: DeclineInvitationInput): Promise<void>;
        listBlockedHandles(handleId: HandleId): Promise<HandleId[]>;
        listInvitations(handleId: HandleId): Promise<DirectChatInvitation[]>;
        listJoined(handleId: HandleId): Promise<DirectChat[]>;
        unblockHandle(input: UnblockHandleInput): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Accept an invitation to join a direct chat.

      Parameters

      Returns Promise<void>

    • Blocks a handle.

      Parameters

      Returns Promise<void>

    • Creates a direct chat with another handle.

      Parameters

      Returns Promise<ChatId>

      The identifier of the direct chat.

    • Decline an invitation to join a direct chat.

      Parameters

      Returns Promise<void>

    • Retrieves a list of all known blocked handles for this handle.

      Parameters

      • handleId: HandleId

        Identifier of the handle owned by this client.

      Returns Promise<HandleId[]>

      A list of the handle identifiers of the handles that are blocked.

    • Retrieves a list of all direct chats that this handle has an invitation for.

      Parameters

      • handleId: HandleId

        Identifier of the handle owned by this client.

      Returns Promise<DirectChatInvitation[]>

      A list of direct chat invitations for this handle.

    • Retrieves a list of all direct chats that this handle has joined.

      Parameters

      • handleId: HandleId

        Identifier of the handle owned by this client.

      Returns Promise<DirectChat[]>

      A list of direct chats that this handle has joined.

    • Unblocks a handle.

      Parameters

      Returns Promise<void>