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

    Interface NotificationsModule

    Notification related methods for the Secure Communications Service.

    interface NotificationsModule {
        clearRecipientChatRules(
            input: ClearRecipientChatRulesInput,
        ): Promise<void>;
        getDecodedInfo(
            input: GetDecodedInfoInput,
        ): Promise<NotificationInfo | undefined>;
        getSettings(input: GetSettingsInput): Promise<NotificationSettings>;
        setDefaultChatRules(input: SetDefaultChatRulesInput): Promise<void>;
        setDefaultEventRules(input: SetDefaultEventRulesInput): Promise<void>;
        setRecipientChatRules(input: SetRecipientChatRulesInput): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Clear the notification rule for a specific recipient.

      Parameters

      Returns Promise<void>

    • Decode a remote notification content into a NotificationInfo.

      Parameters

      Returns Promise<NotificationInfo | undefined>

      The decoded notification info, or undefined if the notification content is not a valid notification.

    • Set the default notification rules for all recipients (direct chats, groups, channels).

      Parameters

      Returns Promise<void>

    • Set the default notification rules for events (e.g. invitations).

      Parameters

      Returns Promise<void>

    • Set the notification rule for a specific recipient (which will take precedence over the default chat rules).

      Parameters

      Returns Promise<void>