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

    Class DefaultChannelsModule

    Channel management for the Secure Communications Service.

    Implements

    Index

    Constructors

    • Parameters

      • apiClient: ApiClient
      • sessionManager: SessionManager
      • mediaCredentialManager: MediaCredentialManager
      • secureCommsServiceConfig: {
            advancedSearchEnabled: boolean;
            homeServer: string;
            publicMediaBucket: string;
            region: string;
            roomMediaBucket: string;
            serviceEndpointUrl: string;
        }

      Returns DefaultChannelsModule

    Methods

    • Bans a handle from a channel. Must have a higher role than the target handle to perform this action.

      Parameters

      Returns Promise<void>

    • Create a new channel.

      Invites handles to the newly created channel if a list of handle identifiers are supplied in the input.

      Parameters

      Returns Promise<Channel>

      The newly created channel.

    • Delete an existing channel.

      Note: The channel needs to be private before deleting due to technical constraints.

      Note: The handle has to have a higher power level than everyone else in the channel in order to delete it for others. This usually means that only the host of a channel can delete it.

      Parameters

      Returns Promise<void>

    • Retrieve an individual channel by the channel's identifier.

      Parameters

      Returns Promise<Channel | undefined>

      The channel matching the input identifier, or undefined if not found.

    • Batch retrieve channels with a list of channel identifiers.

      Parameters

      Returns Promise<Channel[]>

      List of channels matching the supplied identifiers, less any identifiers that did not correspond to a channel.

    • Add this handle to an existing channel by identifier. Only public channels can be joined without an invitation.

      Parameters

      Returns Promise<void>

    • Kicks a handle from a channel. Must have a higher role than the target handle to perform this action. Can kick yourself.

      Parameters

      Returns Promise<void>

    • Remove this handle from a specified channel by identifier.

      Parameters

      Returns Promise<void>

    • Retrieve a list of all channels the handle has an active invitation for.

      Parameters

      • handleId: HandleId

        Identifier of the handle owned by this client.

      Returns Promise<Channel[]>

      A list of channels this handle has been invited to.

    • Retrieve a list of all channels the handle is included in as a member.

      Parameters

      • handleId: HandleId

        Identifier of the handle owned by this client.

      Returns Promise<Channel[]>

      A list of channels containing all of the handle's joined channels.

    • Retrieve all channels this handle has sent an invitation request for.

      Parameters

      • handleId: HandleId

        Identifier of the handle owned by this client.

      Returns Promise<Channel[]>

      A list of channels the handle has requested an invite to.

    • Unbans a handle from a channel. Must have a higher role than the target handle to perform this action.

      Parameters

      Returns Promise<void>

    • Updates the channel role for a specific member of a channel. Must have a higher role than the target handle to perform this action. Can downgrade your own role.

      Parameters

      Returns Promise<void>