@cometchat/chat-sdk-javascript 4.0.4-beta1 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CometChat.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  */
10
10
  export function init(appId: string): CometChat;
11
11
  export as namespace CometChat;
12
+ export as namespace CometChatNotifications;
12
13
 
13
14
  export class CometChat {
14
15
  static GroupType: typeof GroupType;
@@ -1967,6 +1968,78 @@ export class CometChat {
1967
1968
  static markAsInteracted(messageId: string | any, elementId: string): Promise<string>;
1968
1969
  }
1969
1970
 
1971
+ export class CometChatNotifications {
1972
+ static MessagesOptions: typeof MessagesOptions;
1973
+ static RepliesOptions: typeof RepliesOptions;
1974
+ static ReactionsOptions: typeof ReactionsOptions;
1975
+ static MemberActionsOptions: typeof MemberActionsOptions;
1976
+ static DayOfWeek: typeof DayOfWeek;
1977
+ static DNDOptions: typeof DNDOptions;
1978
+ static MutedConversationType: typeof MutedConversationType;
1979
+ static PushPlatforms: typeof PushPlatforms;
1980
+ static DaySchedule: typeof DaySchedule;
1981
+ static PushPreferences: typeof PushPreferences;
1982
+ static GroupPreferences: typeof GroupPreferences;
1983
+ static OneOnOnePreferences: typeof OneOnOnePreferences;
1984
+ static MutePreferences: typeof MutePreferences;
1985
+ static MutedConversation: typeof MutedConversation;
1986
+ static UnmutedConversation: typeof UnmutedConversation;
1987
+ /**
1988
+ * Function to get preferences set for the logged-in user.
1989
+ * @returns {Promise<PushPreferences>}
1990
+ * @memberof CometChatNotifications
1991
+ */
1992
+ static fetchPushPreferences(): Promise<PushPreferences>;
1993
+ /**
1994
+ * Function to update preferences for the logged-in user.
1995
+ * @param {PushPreferences} pushPreferences
1996
+ * @returns {Promise<PushPreferences>}
1997
+ * @memberof CometChatNotifications
1998
+ */
1999
+ static updatePushPreferences(pushPreferences: PushPreferences): Promise<PushPreferences>;
2000
+ /**
2001
+ * Function to reset preferences for the logged-in user.
2002
+ * @returns {Promise<PushPreferences>}
2003
+ * @memberof CometChatNotifications
2004
+ */
2005
+ static resetPushPreferences(): Promise<PushPreferences>;
2006
+ /**
2007
+ * Function to register push token for the current authToken of the logged-in user.
2008
+ * @returns {Promise<string>}
2009
+ * @param {string} pushToken
2010
+ * @param {PushPlatforms} platform
2011
+ * @param {string} providerId - Optional, default value is `default`.
2012
+ * @memberof CometChatNotifications
2013
+ */
2014
+ static registerPushToken(pushToken: string, platform: PushPlatforms, providerId?: string): Promise<string>;
2015
+ /**
2016
+ * Function to unregister push token registered for the current authToken of the logged-in user.
2017
+ * @returns {Promise<string>}
2018
+ * @memberof CometChatNotifications
2019
+ */
2020
+ static unregisterPushToken(): Promise<string>;
2021
+ /**
2022
+ * Function to mute conversations for the logged-in user.
2023
+ * @returns {Promise<string>}
2024
+ * @param {MutedConversation[]} mutedConversations
2025
+ * @memberof CometChatNotifications
2026
+ */
2027
+ static muteConversations(mutedConversations: MutedConversation[]): Promise<string>;
2028
+ /**
2029
+ * Function to unmute conversations for the logged-in user.
2030
+ * @returns {Promise<string>}
2031
+ * @param {UnmutedConversation[]} unmutedConversations
2032
+ * @memberof CometChatNotifications
2033
+ */
2034
+ static unmuteConversations(unmutedConversations: UnmutedConversation[]): Promise<string>;
2035
+ /**
2036
+ * Function to retrieve list of muted conversations for the logged-in user.
2037
+ * @returns {Promise<MutedConversation[]>}
2038
+ * @memberof CometChatNotifications
2039
+ */
2040
+ static getMutedConversations(): Promise<MutedConversation[]>;
2041
+ }
2042
+
1970
2043
  /**
1971
2044
  *
1972
2045
  * @module CometChatException
@@ -3693,6 +3766,7 @@ export class Group {
3693
3766
  private joinedAt;
3694
3767
  private membersCount;
3695
3768
  private tags;
3769
+ private isBanned;
3696
3770
  /**
3697
3771
  * Creates an instance of Group.
3698
3772
  * @param {string} guid
@@ -3858,6 +3932,11 @@ export class Group {
3858
3932
  * @returns {string[]}
3859
3933
  */
3860
3934
  getTags(): Array<String>;
3935
+ /**
3936
+ * Method to check if the logged-in user is banned from the group or not.
3937
+ * @returns {boolean} status of the logged-in user as banned or not.
3938
+ */
3939
+ isBannedFromGroup(): boolean;
3861
3940
  }
3862
3941
 
3863
3942
  export class MessageListener {
@@ -5145,6 +5224,46 @@ export class TypingIndicator {
5145
5224
  export class CustomMessage extends BaseMessage implements Message {
5146
5225
  protected data?: Object;
5147
5226
  constructor(...args: any[]);
5227
+ /**
5228
+ * Retrieves the preview text for a custom message to be displayed in the Conversation List.
5229
+ * This method allows for a textual representation of the custom message that can be used
5230
+ * as a conversation snippet or preview, enhancing the user experience by providing context.
5231
+ * @returns {string} The text to display as the conversation preview.
5232
+ */
5233
+ getConversationText(): string;
5234
+ /**
5235
+ * Sets the preview text for a custom message to be displayed in the Conversation List.
5236
+ * This method allows for a textual representation of the custom message that can be used
5237
+ * as a conversation snippet or preview, enhancing the user experience by providing context.
5238
+ * @param {string} text The text to set as the conversation preview.
5239
+ */
5240
+ setConversationText(text: string): void;
5241
+ /**
5242
+ * Determines whether the custom message should be considered as the last message
5243
+ * in the conversation, potentially changing the order of conversations.
5244
+ * This method indicates if sending a custom message will update the conversation's last message,
5245
+ * which may affect the conversation's position in the list based on the sorting order.
5246
+ * @returns {boolean} A boolean value indicating whether sending the custom message triggers an update
5247
+ * to the last message of the conversation, potentially altering the conversation order.
5248
+ */
5249
+ willUpdateConversation(): boolean;
5250
+ /**
5251
+ * Set the flag to determine if the conversation should be updated.
5252
+ * @param {boolean} updateConversation The flag to set if the conversation should be updated.
5253
+ */
5254
+ shouldUpdateConversation(updateConversation: boolean): void;
5255
+ /**
5256
+ * Determines whether a push notification should be sent for the custom message.
5257
+ * This method checks if the current custom message configuration specifies that a push notification
5258
+ * is warranted when the message is sent.
5259
+ * @returns {boolean} A boolean value indicating whether to send a push notification for the custom message.
5260
+ */
5261
+ willSendNotification(): boolean;
5262
+ /**
5263
+ * Set the flag to determine if a notification should be sent.
5264
+ * @param {boolean} sendNotification The flag to set if a notification should be sent.
5265
+ */
5266
+ shouldSendNotification(sendNotification: boolean): void;
5148
5267
  /**
5149
5268
  * Method to get custom data of the message.
5150
5269
  * @returns {Object}
@@ -6424,6 +6543,422 @@ export class Reaction {
6424
6543
  setReactedBy(reactedBy: User): void;
6425
6544
  }
6426
6545
 
6546
+ /** Push Notification Preferences Enums */
6547
+ export enum MessagesOptions {
6548
+ DONT_SUBSCRIBE,
6549
+ SUBSCRIBE_TO_ALL,
6550
+ SUBSCRIBE_TO_MENTIONS
6551
+ }
6552
+ export enum RepliesOptions {
6553
+ DONT_SUBSCRIBE,
6554
+ SUBSCRIBE_TO_ALL,
6555
+ SUBSCRIBE_TO_MENTIONS
6556
+ }
6557
+ export enum ReactionsOptions {
6558
+ DONT_SUBSCRIBE,
6559
+ SUBSCRIBE_TO_REACTIONS_ON_OWN_MESSAGES,
6560
+ SUBSCRIBE_TO_REACTIONS_ON_ALL_MESSAGES
6561
+ }
6562
+ export enum MemberActionsOptions {
6563
+ DONT_SUBSCRIBE,
6564
+ SUBSCRIBE
6565
+ }
6566
+ export enum DNDOptions {
6567
+ DISABLED,
6568
+ ENABLED
6569
+ }
6570
+ export enum DayOfWeek {
6571
+ MONDAY = "monday",
6572
+ TUESDAY = "tuesday",
6573
+ WEDNESDAY = "wednesday",
6574
+ THURSDAY = "thursday",
6575
+ FRIDAY = "friday",
6576
+ SATURDAY = "saturday",
6577
+ SUNDAY = "sunday"
6578
+ }
6579
+ export enum MutedConversationType {
6580
+ ONE_ON_ONE = "oneOnOne",
6581
+ GROUP = "group"
6582
+ }
6583
+ export enum PushPlatforms {
6584
+ FCM_WEB = "fcm_web"
6585
+ }
6586
+ export const APIConstants: {
6587
+ KEY_GROUP_PREFERENCES: string;
6588
+ KEY_GROUP_MESSAGES: string;
6589
+ KEY_GROUP_REACTIONS: string;
6590
+ KEY_GROUP_REPLIES: string;
6591
+ KEY_GROUP_MEMBER_ADDED: string;
6592
+ KEY_GROUP_MEMBER_LEFT: string;
6593
+ KEY_GROUP_MEMBER_JOINED: string;
6594
+ KEY_GROUP_MEMBER_KICKED: string;
6595
+ KEY_GROUP_MEMBER_BANNED: string;
6596
+ KEY_GROUP_MEMBER_UNBANNED: string;
6597
+ KEY_GROUP_MEMBER_SCOPE_CHANGED: string;
6598
+ KEY_MUTE_PREFERENCES: string;
6599
+ KEY_MUTE_DND: string;
6600
+ KEY_MUTE_SCHEDULE: string;
6601
+ KEY_ONE_ON_ONE_PREFERENCES: string;
6602
+ KEY_ONE_ON_ONE_MESSAGES: string;
6603
+ KEY_ONE_ON_ONE_REACTIONS: string;
6604
+ KEY_ONE_ON_ONE_REPLIES: string;
6605
+ KEY_USE_PRIVACY_TEMPLATE: string;
6606
+ KEY_PROVIDER_ID: string;
6607
+ KEY_TIMEZONE: string;
6608
+ KEY_PLATFORM: string;
6609
+ KEY_FCM_TOKEN: string;
6610
+ KEY_CONVERSATIONS: string;
6611
+ KEY_GET_PREFERENCES: string;
6612
+ KEY_UPDATE_PREFERENCES: string;
6613
+ KEY_RESET_PREFERENCES: string;
6614
+ KEY_REGISTER_TOKEN: string;
6615
+ KEY_UNREGISTER_TOKEN: string;
6616
+ KEY_MUTE_CONVERSATIONS: string;
6617
+ KEY_UNMUTE_CONVERSATIONS: string;
6618
+ KEY_GET_MUTED_CONVERSATIONS: string;
6619
+ KEY_MUTED_CONVERSATIONS: string;
6620
+ KEY_FROM: string;
6621
+ KEY_TO: string;
6622
+ };
6623
+ export const APIResponseConstants: {
6624
+ TOKEN_REGISTER_SUCCESS: string;
6625
+ TOKEN_REGISTER_ERROR: string;
6626
+ TOKEN_UNREGISTER_SUCCESS: string;
6627
+ TOKEN_UNREGISTER_ERROR: string;
6628
+ MUTE_CONVERSATION_SUCCESS: string;
6629
+ MUTE_CONVERSATION_ERROR: string;
6630
+ UNMUTE_CONVERSATION_SUCCESS: string;
6631
+ UNMUTE_CONVERSATION_ERROR: string;
6632
+ };
6633
+ export const DEFAULT_PROVIDER_ID = "default";
6634
+
6635
+ export class DaySchedule {
6636
+ constructor(from: number, to: number, dnd: boolean);
6637
+ /**
6638
+ * Get the from value of Day Schedule.
6639
+ * @returns {number}
6640
+ */
6641
+ getFrom(): number;
6642
+ /**
6643
+ * @param {number} from
6644
+ * Set the from value of Day Schedule.
6645
+ */
6646
+ setFrom(from: number): void;
6647
+ /**
6648
+ * Get the to value of Day Schedule.
6649
+ * @returns {number}
6650
+ */
6651
+ getTo(): number;
6652
+ /**
6653
+ * @param {number} to
6654
+ * Set the to value of Day Schedule.
6655
+ */
6656
+ setTo(to: number): void;
6657
+ /**
6658
+ * Get the value of DND of Day Schedule.
6659
+ * @returns {boolean}
6660
+ */
6661
+ getDND(): boolean;
6662
+ /**
6663
+ * @param {boolean} dnd
6664
+ * Set the value of DND of Day Schedule.
6665
+ */
6666
+ setDND(dnd: boolean): void;
6667
+ }
6668
+
6669
+ /**
6670
+ *
6671
+ * @module GroupPreferences
6672
+ */
6673
+ export class GroupPreferences {
6674
+ /**
6675
+ * Get the messages preferences for groups.
6676
+ * @returns {MessagesOptions}
6677
+ */
6678
+ getMessagesPreference(): MessagesOptions;
6679
+ /**
6680
+ * Get the replies preferences for groups.
6681
+ * @returns {RepliesOptions}
6682
+ */
6683
+ getRepliesPreference(): RepliesOptions;
6684
+ /**
6685
+ * Get the reactions preferences for groups.
6686
+ * @returns {ReactionsOptions}
6687
+ */
6688
+ getReactionsPreference(): ReactionsOptions;
6689
+ /**
6690
+ * Get the member left preferences for groups.
6691
+ * @returns {MemberActionsOptions}
6692
+ */
6693
+ getMemberLeftPreference(): MemberActionsOptions;
6694
+ /**
6695
+ * Get the member added preferences for groups.
6696
+ * @returns {MemberActionsOptions}
6697
+ */
6698
+ getMemberAddedPreference(): MemberActionsOptions;
6699
+ /**
6700
+ * Get the member joined preferences for groups.
6701
+ * @returns {MemberActionsOptions}
6702
+ */
6703
+ getMemberJoinedPreference(): MemberActionsOptions;
6704
+ /**
6705
+ * Get the member kicked preferences for groups.
6706
+ * @returns {MemberActionsOptions}
6707
+ */
6708
+ getMemberKickedPreference(): MemberActionsOptions;
6709
+ /**
6710
+ * Get the member banned preferences for groups.
6711
+ * @returns {MemberActionsOptions}
6712
+ */
6713
+ getMemberBannedPreference(): MemberActionsOptions;
6714
+ /**
6715
+ * Get the member unbanned preferences for groups.
6716
+ * @returns {MemberActionsOptions}
6717
+ */
6718
+ getMemberUnbannedPreference(): MemberActionsOptions;
6719
+ /**
6720
+ * Get the member scope change preferences for groups.
6721
+ * @returns {MemberActionsOptions}
6722
+ */
6723
+ getMemberScopeChangedPreference(): MemberActionsOptions;
6724
+ /**
6725
+ * @param {MessagesOptions} messagesPreference
6726
+ * Set messages preference for groups.
6727
+ */
6728
+ setMessagesPreference(messagesPreference: MessagesOptions): void;
6729
+ /**
6730
+ * @param {RepliesOptions} repliesPreference
6731
+ * Set replies preference for groups.
6732
+ */
6733
+ setRepliesPreference(repliesPreference: RepliesOptions): void;
6734
+ /**
6735
+ * @param {ReactionsOptions} reactionsPreference
6736
+ * Set reactions preference for groups.
6737
+ */
6738
+ setReactionsPreference(reactionsPreference: ReactionsOptions): void;
6739
+ /**
6740
+ * @param {MemberActionsOptions} memberLeftPreference
6741
+ * Set member left preference for groups.
6742
+ */
6743
+ setMemberLeftPreference(memberLeftPreference: MemberActionsOptions): void;
6744
+ /**
6745
+ * @param {MemberActionsOptions} memberAddedPreference
6746
+ * Set member added preference for groups.
6747
+ */
6748
+ setMemberAddedPreference(memberAddedPreference: MemberActionsOptions): void;
6749
+ /**
6750
+ * @param {MemberActionsOptions} memberJoinedPreference
6751
+ * Set member joined preference for groups.
6752
+ */
6753
+ setMemberJoinedPreference(memberJoinedPreference: MemberActionsOptions): void;
6754
+ /**
6755
+ * @param {MemberActionsOptions} memberKickedPreference
6756
+ * Set member kicked preference for groups.
6757
+ */
6758
+ setMemberKickedPreference(memberKickedPreference: MemberActionsOptions): void;
6759
+ /**
6760
+ * @param {MemberActionsOptions} memberBannedPreference
6761
+ * Set member banned preference for groups.
6762
+ */
6763
+ setMemberBannedPreference(memberBannedPreference: MemberActionsOptions): void;
6764
+ /**
6765
+ * @param {MemberActionsOptions} memberUnbannedPreference
6766
+ * Set member unbanned preference for groups.
6767
+ */
6768
+ setMemberUnbannedPreference(memberUnbannedPreference: MemberActionsOptions): void;
6769
+ /**
6770
+ * @param {MemberActionsOptions} memberScopeChangedPreference
6771
+ * Set member scope change preference for groups.
6772
+ */
6773
+ setMemberScopeChangedPreference(memberScopeChangedPreference: MemberActionsOptions): void;
6774
+ /**
6775
+ * @param {Object} jsonData
6776
+ * Convert JSON object to GroupPreferences.
6777
+ */
6778
+ static fromJSON(jsonData: Object): GroupPreferences;
6779
+ }
6780
+
6781
+ export class MutedConversation {
6782
+ /**
6783
+ * Get the id of muted conversation
6784
+ * @returns {string}
6785
+ */
6786
+ getId(): string;
6787
+ /**
6788
+ * Set the id of muted conversation
6789
+ * @param {string} id
6790
+ */
6791
+ setId(id: string): void;
6792
+ /**
6793
+ * Get the conversation type of muted conversation.
6794
+ * @returns {MutedConversationType}
6795
+ */
6796
+ getType(): MutedConversationType;
6797
+ /**
6798
+ * Set the conversation type of muted conversation.
6799
+ * @param {MutedConversationType} type
6800
+ */
6801
+ setType(type: MutedConversationType): void;
6802
+ /**
6803
+ * Get the date until which the conversation should be muted.
6804
+ * @returns {number}
6805
+ */
6806
+ getUntil(): number;
6807
+ /**
6808
+ * Set the date until which the conversation should be muted.
6809
+ * @param {number} until
6810
+ */
6811
+ setUntil(until: number): void;
6812
+ }
6813
+
6814
+ export class MutePreferences {
6815
+ /**
6816
+ * Get the DND preferences.
6817
+ * @returns {DNDOptions}
6818
+ */
6819
+ getDNDPreference(): DNDOptions;
6820
+ /**
6821
+ * @param {DNDOptions} dndPreferences
6822
+ * Set DND preferences.
6823
+ */
6824
+ setDNDPreference(dndPreferences: DNDOptions): void;
6825
+ /**
6826
+ * Get the schedule preferences.
6827
+ * @returns {Map<DayOfWeek, DaySchedule>}
6828
+ */
6829
+ getSchedulePreference(): Map<DayOfWeek, DaySchedule>;
6830
+ /**
6831
+ * @param {Map<DayOfWeek, DaySchedule>} schedule
6832
+ * Set the schedule preferences.
6833
+ */
6834
+ setSchedulePreference(schedule: Map<DayOfWeek, DaySchedule>): void;
6835
+ /**
6836
+ * Get the schedule for a day.
6837
+ * @returns {DaySchedule}
6838
+ */
6839
+ getScheduleFor(day: DayOfWeek): DaySchedule;
6840
+ /**
6841
+ * @param {DayOfWeek} day
6842
+ * @param {DaySchedule} schedule
6843
+ * Set the schedule for a day.
6844
+ */
6845
+ setScheduleFor(day: DayOfWeek, schedule: DaySchedule): void;
6846
+ /**
6847
+ * @param {Object} jsonData
6848
+ * Convert JSON object to MutePreferences.
6849
+ */
6850
+ static fromJSON(jsonData: Object): MutePreferences;
6851
+ }
6852
+
6853
+ export class OneOnOnePreferences {
6854
+ /**
6855
+ * Get the reactions preferences for groups.
6856
+ * @returns {ReactionsOptions}
6857
+ */
6858
+ getReactionsPreference(): ReactionsOptions;
6859
+ /**
6860
+ * @param {ReactionsOptions} reactionsPreference
6861
+ * Set reactions preference for groups.
6862
+ */
6863
+ setReactionsPreference(reactionsPreference: ReactionsOptions): void;
6864
+ /**
6865
+ * Get the replies preferences for groups.
6866
+ * @returns {RepliesOptions}
6867
+ */
6868
+ getRepliesPreference(): RepliesOptions;
6869
+ /**
6870
+ * @param {RepliesOptions} repliesPreference
6871
+ * Set replies preference for groups.
6872
+ */
6873
+ setRepliesPreference(repliesPreference: RepliesOptions): void;
6874
+ /**
6875
+ * Get the messages preferences for groups.
6876
+ * @returns {MessagesOptions}
6877
+ */
6878
+ getMessagesPreference(): MessagesOptions;
6879
+ /**
6880
+ * @param {MessagesOptions} messagesPreference
6881
+ * Set messages preference for groups.
6882
+ */
6883
+ setMessagesPreference(messagesPreference: MessagesOptions): void;
6884
+ /**
6885
+ * @param {Object} jsonData
6886
+ * Convert JSON object to OneOnOnePreferences.
6887
+ */
6888
+ static fromJSON(jsonData: Object): OneOnOnePreferences;
6889
+ }
6890
+
6891
+ export class PushPreferences {
6892
+ /**
6893
+ * Get the OneOnOne preferences.
6894
+ * @returns {OneOnOnePreferences}
6895
+ */
6896
+ getOneOnOnePreferences(): OneOnOnePreferences;
6897
+ /**
6898
+ * @param {OneOnOnePreferences} oneOnOnePreferences
6899
+ * Set the OneOnOne preferences.
6900
+ */
6901
+ setOneOnOnePreferences(oneOnOnePreferences: OneOnOnePreferences): void;
6902
+ /**
6903
+ * Get the Muted preferences.
6904
+ * @returns {MutePreferences}
6905
+ */
6906
+ getMutePreferences(): MutePreferences;
6907
+ /**
6908
+ * @param {MutePreferences} mutePreferences
6909
+ * Set the Mute preferences.
6910
+ */
6911
+ setMutePreferences(mutePreferences: MutePreferences): void;
6912
+ /**
6913
+ * Get the Group preferences.
6914
+ * @returns {GroupPreferences}
6915
+ */
6916
+ getGroupPreferences(): GroupPreferences;
6917
+ /**
6918
+ * @param {GroupPreferences} groupPreferences
6919
+ * Set the Group preferences.
6920
+ */
6921
+ setGroupPreferences(groupPreferences: GroupPreferences): void;
6922
+ /**
6923
+ * Returns whether to use privacy template or not.
6924
+ * @returns {boolean}
6925
+ */
6926
+ getUsePrivacyTemplate(): boolean;
6927
+ /**
6928
+ * @param {boolean} usePrivacyTemplate
6929
+ * Set whether to use privacy template or not.
6930
+ */
6931
+ setUsePrivacyTemplate(usePrivacyTemplate: boolean): void;
6932
+ /**
6933
+ * @param {Object} jsonData
6934
+ * Convert JSON object to PushPreferences.
6935
+ */
6936
+ static fromJSON(jsonData: Object): PushPreferences;
6937
+ }
6938
+
6939
+ export class UnmutedConversation {
6940
+ /**
6941
+ * Get the id of unmuted conversation
6942
+ * @returns {string}
6943
+ */
6944
+ getId(): string;
6945
+ /**
6946
+ * Set the id of unmuted conversation
6947
+ * @param {string} id
6948
+ */
6949
+ setId(id: string): void;
6950
+ /**
6951
+ * Get the conversation type of unmuted conversation.
6952
+ * @returns {MutedConversationType}
6953
+ */
6954
+ getType(): MutedConversationType;
6955
+ /**
6956
+ * Set the conversation type of unmuted conversation.
6957
+ * @param {MutedConversationType} type
6958
+ */
6959
+ setType(type: MutedConversationType): void;
6960
+ }
6961
+
6427
6962
  /**
6428
6963
  *
6429
6964
  *