UNPKG

zego-zim-react-native

Version:

Zego ZIM SDK for React Native

879 lines 50.3 kB
/** Connection state. */ export var ZIMConnectionState; (function (ZIMConnectionState) { /** Unconnected state, enter this state before logging in and after logging out. */ ZIMConnectionState[ZIMConnectionState["Disconnected"] = 0] = "Disconnected"; /** The state that the connection is being requested. It will enter this state after successful execution login function. */ ZIMConnectionState[ZIMConnectionState["Connecting"] = 1] = "Connecting"; /** The state that is successfully connected. */ ZIMConnectionState[ZIMConnectionState["Connected"] = 2] = "Connected"; /** The connection is being reconnected. */ ZIMConnectionState[ZIMConnectionState["Reconnecting"] = 3] = "Reconnecting"; })(ZIMConnectionState || (ZIMConnectionState = {})); /** The event that caused the connection status to change. */ export var ZIMConnectionEvent; (function (ZIMConnectionEvent) { /** Success. */ ZIMConnectionEvent[ZIMConnectionEvent["Success"] = 0] = "Success"; /** The user actively logs in. */ ZIMConnectionEvent[ZIMConnectionEvent["ActiveLogin"] = 1] = "ActiveLogin"; /** Connection timed out. */ ZIMConnectionEvent[ZIMConnectionEvent["LoginTimeout"] = 2] = "LoginTimeout"; /** The network connection is temporarily interrupted. */ ZIMConnectionEvent[ZIMConnectionEvent["LoginInterrupted"] = 3] = "LoginInterrupted"; /** Being kicked out. */ ZIMConnectionEvent[ZIMConnectionEvent["KickedOut"] = 4] = "KickedOut"; /** Detail description: Disconnected due to expired login token. */ ZIMConnectionEvent[ZIMConnectionEvent["TokenExpired"] = 5] = "TokenExpired"; /** The user account was unregistered. */ ZIMConnectionEvent[ZIMConnectionEvent["Unregistered"] = 6] = "Unregistered"; })(ZIMConnectionEvent || (ZIMConnectionEvent = {})); /** conversation changed event. */ export var ZIMConversationEvent; (function (ZIMConversationEvent) { /** A new conversation was added. */ ZIMConversationEvent[ZIMConversationEvent["Added"] = 0] = "Added"; /** The conversation was updated. */ ZIMConversationEvent[ZIMConversationEvent["Updated"] = 1] = "Updated"; /** The conversation was disabled. */ ZIMConversationEvent[ZIMConversationEvent["Disabled"] = 2] = "Disabled"; /** The conversation was deleted. */ ZIMConversationEvent[ZIMConversationEvent["Deleted"] = 3] = "Deleted"; })(ZIMConversationEvent || (ZIMConversationEvent = {})); /** Conversation list change action. */ export var ZIMConversationListChangeAction; (function (ZIMConversationListChangeAction) { /** A conversation was added to the list. */ ZIMConversationListChangeAction[ZIMConversationListChangeAction["Added"] = 0] = "Added"; /** A conversation was deleted from the list. */ ZIMConversationListChangeAction[ZIMConversationListChangeAction["Deleted"] = 1] = "Deleted"; /** A conversation in the list was updated. */ ZIMConversationListChangeAction[ZIMConversationListChangeAction["Updated"] = 2] = "Updated"; })(ZIMConversationListChangeAction || (ZIMConversationListChangeAction = {})); /** Enumeration of conversation notification status. */ export var ZIMConversationNotificationStatus; (function (ZIMConversationNotificationStatus) { /** Message notifications are enabled. */ ZIMConversationNotificationStatus[ZIMConversationNotificationStatus["Notify"] = 1] = "Notify"; /** Do not disturb mode is enabled. */ ZIMConversationNotificationStatus[ZIMConversationNotificationStatus["DoNotDisturb"] = 2] = "DoNotDisturb"; })(ZIMConversationNotificationStatus || (ZIMConversationNotificationStatus = {})); /** Conversation type. */ export var ZIMConversationType; (function (ZIMConversationType) { /** Unknown conversation type. */ ZIMConversationType[ZIMConversationType["Unknown"] = -1] = "Unknown"; /** Conversation type peer. */ ZIMConversationType[ZIMConversationType["Peer"] = 0] = "Peer"; /** Conversation type room. */ ZIMConversationType[ZIMConversationType["Room"] = 1] = "Room"; /** Conversation type group. */ ZIMConversationType[ZIMConversationType["Group"] = 2] = "Group"; /** Community channel conversation type. */ ZIMConversationType[ZIMConversationType["CommunityChannel"] = 3] = "CommunityChannel"; })(ZIMConversationType || (ZIMConversationType = {})); /** Identifies the SDK's state in syncing conversation list from server. */ export var ZIMConversationSyncState; (function (ZIMConversationSyncState) { /** Conversation list synchronization start status */ ZIMConversationSyncState[ZIMConversationSyncState["Started"] = 0] = "Started"; /** Conversation list synchronization completion status */ ZIMConversationSyncState[ZIMConversationSyncState["Finished"] = 1] = "Finished"; /** The synchronization of the conversation list failed. The synchronization failure may be caused by network reasons. */ ZIMConversationSyncState[ZIMConversationSyncState["Failed"] = 2] = "Failed"; })(ZIMConversationSyncState || (ZIMConversationSyncState = {})); /** When a user queries the session list, it serves as a filter item for the top session of the query. */ export var ZIMConversationPinnedFilter; (function (ZIMConversationPinnedFilter) { /** Both pinned and unpinned conversations can be queried. */ ZIMConversationPinnedFilter[ZIMConversationPinnedFilter["All"] = 0] = "All"; /** Only pinned conversations can be queried. */ ZIMConversationPinnedFilter[ZIMConversationPinnedFilter["OnlyPinned"] = 1] = "OnlyPinned"; /** Only unpinned conversations can be queried. */ ZIMConversationPinnedFilter[ZIMConversationPinnedFilter["OnlyUnpinned"] = 2] = "OnlyUnpinned"; })(ZIMConversationPinnedFilter || (ZIMConversationPinnedFilter = {})); /** Conversational search mode. */ export var ZIMConversationSearchMode; (function (ZIMConversationSearchMode) { /** Query the corresponding conversation by searching for messages that meet the criteria. */ ZIMConversationSearchMode[ZIMConversationSearchMode["MatchMessage"] = 0] = "MatchMessage"; /** Query the corresponding conversation by searching for the conversation name. */ ZIMConversationSearchMode[ZIMConversationSearchMode["MatchConversationName"] = 1] = "MatchConversationName"; })(ZIMConversationSearchMode || (ZIMConversationSearchMode = {})); /** Media file type */ export var ZIMMediaFileType; (function (ZIMMediaFileType) { /** Original file type, suitable for original images, audio files, and video files. After calling [downloadMediaFile], the SDK will update the fileLocalPath property in ZIMFileMessage. */ ZIMMediaFileType[ZIMMediaFileType["OriginalFile"] = 1] = "OriginalFile"; /** Large image type. After calling [downloadMediaFile], the SDK will update the largeImageLocalPath property in [ZIMImageMessage]. */ ZIMMediaFileType[ZIMMediaFileType["LargeImage"] = 2] = "LargeImage"; /** Image thumbnail type. After calling [downloadMediaFile], the SDK will update the thumbnailLocalPath property in [ZIMImageMessage]. */ ZIMMediaFileType[ZIMMediaFileType["Thumbnail"] = 3] = "Thumbnail"; /** The type of the first frame of the video. After calling [downloadMediaFile], the SDK will update the videoFirstFrameLocalPath property in [ZIMVideoMessage]. */ ZIMMediaFileType[ZIMMediaFileType["VideoFirstFrame"] = 4] = "VideoFirstFrame"; })(ZIMMediaFileType || (ZIMMediaFileType = {})); /** the direction of the message. */ export var ZIMMessageDirection; (function (ZIMMessageDirection) { /** The message was sent by the local user. */ ZIMMessageDirection[ZIMMessageDirection["Send"] = 0] = "Send"; /** The message was received by the local user. */ ZIMMessageDirection[ZIMMessageDirection["Receive"] = 1] = "Receive"; })(ZIMMessageDirection || (ZIMMessageDirection = {})); /** Message order. */ export var ZIMMessageOrder; (function (ZIMMessageOrder) { /** Represents message list in descending order (message list order is from new to old). */ ZIMMessageOrder[ZIMMessageOrder["Descending"] = 0] = "Descending"; /** Represents message list in ascending order (message list order is from old to new). */ ZIMMessageOrder[ZIMMessageOrder["Ascending"] = 1] = "Ascending"; })(ZIMMessageOrder || (ZIMMessageOrder = {})); /** The priority of the message. */ export var ZIMMessagePriority; (function (ZIMMessagePriority) { /** Low priority. */ ZIMMessagePriority[ZIMMessagePriority["Low"] = 1] = "Low"; /** Medium priority. */ ZIMMessagePriority[ZIMMessagePriority["Medium"] = 2] = "Medium"; /** High priority. */ ZIMMessagePriority[ZIMMessagePriority["High"] = 3] = "High"; })(ZIMMessagePriority || (ZIMMessagePriority = {})); /** . */ export var ZIMMessageQueryMode; (function (ZIMMessageQueryMode) { /** General mode. In this mode, the SDK automatically determines whether it needs to request merged message data from the server. This mode is recommended for most common scenarios. */ ZIMMessageQueryMode[ZIMMessageQueryMode["General"] = 0] = "General"; /** Server-priority query mode. */ ZIMMessageQueryMode[ZIMMessageQueryMode["PreferServer"] = 1] = "PreferServer"; /** Local-messages-only query mode. */ ZIMMessageQueryMode[ZIMMessageQueryMode["OnlyLocal"] = 2] = "OnlyLocal"; })(ZIMMessageQueryMode || (ZIMMessageQueryMode = {})); /** The status of the receipt */ export var ZIMMessageReceiptStatus; (function (ZIMMessageReceiptStatus) { /** Unknown receipt status. */ ZIMMessageReceiptStatus[ZIMMessageReceiptStatus["Unknown"] = -1] = "Unknown"; /** Not a receipt. */ ZIMMessageReceiptStatus[ZIMMessageReceiptStatus["None"] = 0] = "None"; /** Receipt in progress. */ ZIMMessageReceiptStatus[ZIMMessageReceiptStatus["Processing"] = 1] = "Processing"; /** Receipt completed. */ ZIMMessageReceiptStatus[ZIMMessageReceiptStatus["Done"] = 2] = "Done"; /** Receipt has expired. */ ZIMMessageReceiptStatus[ZIMMessageReceiptStatus["Expired"] = 3] = "Expired"; /** Receipt failed. */ ZIMMessageReceiptStatus[ZIMMessageReceiptStatus["Failed"] = 4] = "Failed"; /** Receipt delivered. */ ZIMMessageReceiptStatus[ZIMMessageReceiptStatus["Delivered"] = 5] = "Delivered"; })(ZIMMessageReceiptStatus || (ZIMMessageReceiptStatus = {})); /** Filter type for the message receipt member list. */ export var ZIMMessageReceiptFilterType; (function (ZIMMessageReceiptFilterType) { /** Read members. */ ZIMMessageReceiptFilterType[ZIMMessageReceiptFilterType["Read"] = 0] = "Read"; /** Unread members. */ ZIMMessageReceiptFilterType[ZIMMessageReceiptFilterType["Unread"] = 1] = "Unread"; /** Delivered members. */ ZIMMessageReceiptFilterType[ZIMMessageReceiptFilterType["Delivered"] = 2] = "Delivered"; })(ZIMMessageReceiptFilterType || (ZIMMessageReceiptFilterType = {})); /** Message revoke status */ export var ZIMMessageRevokeStatus; (function (ZIMMessageRevokeStatus) { /** Unknown revoke status. */ ZIMMessageRevokeStatus[ZIMMessageRevokeStatus["Unknown"] = -1] = "Unknown"; /** The message was revoked by the sender. */ ZIMMessageRevokeStatus[ZIMMessageRevokeStatus["SelfRevoke"] = 0] = "SelfRevoke"; /** The message was revoked by the system. */ ZIMMessageRevokeStatus[ZIMMessageRevokeStatus["SystemRevoke"] = 1] = "SystemRevoke"; /** The message was revoked via the server API. */ ZIMMessageRevokeStatus[ZIMMessageRevokeStatus["ServerAPIRevoke"] = 2] = "ServerAPIRevoke"; /** The message was revoked by a group administrator. */ ZIMMessageRevokeStatus[ZIMMessageRevokeStatus["GroupAdminRevoke"] = 3] = "GroupAdminRevoke"; /** The message was revoked by the group owner. */ ZIMMessageRevokeStatus[ZIMMessageRevokeStatus["GroupOwnerRevoke"] = 4] = "GroupOwnerRevoke"; /** Revoked for audit reject. */ ZIMMessageRevokeStatus[ZIMMessageRevokeStatus["AuditRejectRevoke"] = 5] = "AuditRejectRevoke"; })(ZIMMessageRevokeStatus || (ZIMMessageRevokeStatus = {})); /** The status of the message being sent. */ export var ZIMMessageSentStatus; (function (ZIMMessageSentStatus) { /** The message is being sent. */ ZIMMessageSentStatus[ZIMMessageSentStatus["Sending"] = 0] = "Sending"; /** The message was sent successfully. */ ZIMMessageSentStatus[ZIMMessageSentStatus["Success"] = 1] = "Success"; /** The message failed to send. */ ZIMMessageSentStatus[ZIMMessageSentStatus["Failed"] = 2] = "Failed"; })(ZIMMessageSentStatus || (ZIMMessageSentStatus = {})); /** The type of the message. */ export var ZIMMessageType; (function (ZIMMessageType) { /** Unknown message. */ ZIMMessageType[ZIMMessageType["Unknown"] = 0] = "Unknown"; /** Normal text message. */ ZIMMessageType[ZIMMessageType["Text"] = 1] = "Text"; /** Custom binary message. */ ZIMMessageType[ZIMMessageType["Command"] = 2] = "Command"; /** Multiple messages can be used to send multiple messages of text, rich media files, and custom messages. */ ZIMMessageType[ZIMMessageType["Multiple"] = 10] = "Multiple"; /** Image message. */ ZIMMessageType[ZIMMessageType["Image"] = 11] = "Image"; /** File message. */ ZIMMessageType[ZIMMessageType["File"] = 12] = "File"; /** Audio message. */ ZIMMessageType[ZIMMessageType["Audio"] = 13] = "Audio"; /** Video message. */ ZIMMessageType[ZIMMessageType["Video"] = 14] = "Video"; /** Barrage message. */ ZIMMessageType[ZIMMessageType["Barrage"] = 20] = "Barrage"; /** Reovked message. */ ZIMMessageType[ZIMMessageType["Revoke"] = 31] = "Revoke"; /** Tips message. */ ZIMMessageType[ZIMMessageType["Tips"] = 32] = "Tips"; /** Combined message. */ ZIMMessageType[ZIMMessageType["Combine"] = 100] = "Combine"; /** Custom message. */ ZIMMessageType[ZIMMessageType["Custom"] = 200] = "Custom"; })(ZIMMessageType || (ZIMMessageType = {})); /** The type of the revoke message. */ export var ZIMRevokeType; (function (ZIMRevokeType) { /** Unknown revoke type. */ ZIMRevokeType[ZIMRevokeType["Unknown"] = -1] = "Unknown"; /** Two-way revoke: the message is deleted for both sender and recipient. */ ZIMRevokeType[ZIMRevokeType["TwoWay"] = 0] = "TwoWay"; /** One-way revoke: the message is deleted for the sender only. */ ZIMRevokeType[ZIMRevokeType["OneWay"] = 1] = "OneWay"; })(ZIMRevokeType || (ZIMRevokeType = {})); /** Event of tips message. */ export var ZIMTipsMessageEvent; (function (ZIMTipsMessageEvent) { /** Unknown tips message event. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["Unknown"] = 0] = "Unknown"; /** The group was created. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupCreated"] = 1] = "GroupCreated"; /** The group was dismissed. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupDismissed"] = 2] = "GroupDismissed"; /** A member joined the group. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupJoined"] = 3] = "GroupJoined"; /** A member was invited to join the group. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupInvited"] = 4] = "GroupInvited"; /** A member left the group. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupLeft"] = 5] = "GroupLeft"; /** A member was kicked out of the group. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupKickedOut"] = 6] = "GroupKickedOut"; /** The group information was changed. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupInfoChanged"] = 7] = "GroupInfoChanged"; /** The group member information was changed. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupMemberInfoChanged"] = 8] = "GroupMemberInfoChanged"; /** A group message was pinned. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["GroupMessagePinned"] = 9] = "GroupMessagePinned"; /** The community was created. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["CommunityCreated"] = 101] = "CommunityCreated"; /** A member joined the community. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["CommunityJoined"] = 103] = "CommunityJoined"; /** A member was invited to join the community. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["CommunityInvited"] = 104] = "CommunityInvited"; /** A community channel was created. */ ZIMTipsMessageEvent[ZIMTipsMessageEvent["CommunityChannelCreated"] = 151] = "CommunityChannelCreated"; })(ZIMTipsMessageEvent || (ZIMTipsMessageEvent = {})); /** Type of additional information for tips messages. */ export var ZIMTipsMessageChangeInfoType; (function (ZIMTipsMessageChangeInfoType) { /** Unknown change info type. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["Unknown"] = 0] = "Unknown"; /** Group name, group avatar, and group notice have multiple changes. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupDataChanged"] = 1] = "GroupDataChanged"; /** Group notice change event. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupNoticeChanged"] = 2] = "GroupNoticeChanged"; /** Group name change event. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupNameChanged"] = 3] = "GroupNameChanged"; /** Group avatar change event. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupAvatarUrlChanged"] = 4] = "GroupAvatarUrlChanged"; /** Group mute info change event. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupMuteChanged"] = 5] = "GroupMuteChanged"; /** Group owner transfer event. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupOwnerTransferred"] = 10] = "GroupOwnerTransferred"; /** Group member role change event. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupMemberRoleChanged"] = 11] = "GroupMemberRoleChanged"; /** The group member mute status changed. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupMemberMuteChanged"] = 12] = "GroupMemberMuteChanged"; /** Group messages are pinned or unpinned event. */ ZIMTipsMessageChangeInfoType[ZIMTipsMessageChangeInfoType["GroupMessagePinInfoChanged"] = 21] = "GroupMessagePinInfoChanged"; })(ZIMTipsMessageChangeInfoType || (ZIMTipsMessageChangeInfoType = {})); /** The type of the revoke message. */ export var ZIMMessageMentionedType; (function (ZIMMessageMentionedType) { /** Unknown mention type. */ ZIMMessageMentionedType[ZIMMessageMentionedType["Unknown"] = 0] = "Unknown"; /** mention me */ ZIMMessageMentionedType[ZIMMessageMentionedType["MentionMe"] = 1] = "MentionMe"; /** mention all user */ ZIMMessageMentionedType[ZIMMessageMentionedType["MentionAll"] = 2] = "MentionAll"; /** mention all user and mention me */ ZIMMessageMentionedType[ZIMMessageMentionedType["MentionAllAndMe"] = 3] = "MentionAllAndMe"; })(ZIMMessageMentionedType || (ZIMMessageMentionedType = {})); /** Message deleted type */ export var ZIMMessageDeleteType; (function (ZIMMessageDeleteType) { /** User-initiated message deletion event. */ ZIMMessageDeleteType[ZIMMessageDeleteType["MessageListDeleted"] = 0] = "MessageListDeleted"; /** User-initiated event for deleting all messages in a conversation. */ ZIMMessageDeleteType[ZIMMessageDeleteType["ConversationAllMessagesDeleted"] = 1] = "ConversationAllMessagesDeleted"; /** User-initiated event for deleting all messages across all conversations. */ ZIMMessageDeleteType[ZIMMessageDeleteType["AllConversationMessagesDeleted"] = 2] = "AllConversationMessagesDeleted"; /** Message deletion event triggered by scheduled message self-destruction. */ ZIMMessageDeleteType[ZIMMessageDeleteType["MessagesDestructed"] = 3] = "MessagesDestructed"; })(ZIMMessageDeleteType || (ZIMMessageDeleteType = {})); /** The state of the source message to be replied. */ export var ZIMMessageRepliedInfoState; (function (ZIMMessageRepliedInfoState) { /** normal state. */ ZIMMessageRepliedInfoState[ZIMMessageRepliedInfoState["Normal"] = 0] = "Normal"; /** deleted state. */ ZIMMessageRepliedInfoState[ZIMMessageRepliedInfoState["Deleted"] = 1] = "Deleted"; /** Not found. The original message may have expired on the server or is not visible to the current user. */ ZIMMessageRepliedInfoState[ZIMMessageRepliedInfoState["NotFound"] = 2] = "NotFound"; })(ZIMMessageRepliedInfoState || (ZIMMessageRepliedInfoState = {})); /** Enumeration of message pinned status. */ export var ZIMMessagePinStatus; (function (ZIMMessagePinStatus) { /** The message is not pinned. */ ZIMMessagePinStatus[ZIMMessagePinStatus["NotPinned"] = 0] = "NotPinned"; /** The message is pinned. */ ZIMMessagePinStatus[ZIMMessagePinStatus["Pinned"] = 1] = "Pinned"; /** The message pin status was updated. */ ZIMMessagePinStatus[ZIMMessagePinStatus["Updated"] = 2] = "Updated"; })(ZIMMessagePinStatus || (ZIMMessagePinStatus = {})); /** User operation action for message reactions. */ export var ZIMMessageReactionUserChangeAction; (function (ZIMMessageReactionUserChangeAction) { /** Add message reaction. */ ZIMMessageReactionUserChangeAction[ZIMMessageReactionUserChangeAction["Added"] = 0] = "Added"; /** Delete message reaction. */ ZIMMessageReactionUserChangeAction[ZIMMessageReactionUserChangeAction["Deleted"] = 1] = "Deleted"; })(ZIMMessageReactionUserChangeAction || (ZIMMessageReactionUserChangeAction = {})); /** The event that caused the room connection status to change. */ export var ZIMRoomEvent; (function (ZIMRoomEvent) { /** Success. */ ZIMRoomEvent[ZIMRoomEvent["Success"] = 0] = "Success"; /** The network in the room is temporarily interrupted. */ ZIMRoomEvent[ZIMRoomEvent["NetworkInterrupted"] = 1] = "NetworkInterrupted"; /** The network in the room is disconnected. */ ZIMRoomEvent[ZIMRoomEvent["NetworkDisconnected"] = 2] = "NetworkDisconnected"; /** The room not exist. */ ZIMRoomEvent[ZIMRoomEvent["RoomNotExist"] = 3] = "RoomNotExist"; /** The user actively creates a room. */ ZIMRoomEvent[ZIMRoomEvent["ActiveCreate"] = 4] = "ActiveCreate"; /** Failed to create room. */ ZIMRoomEvent[ZIMRoomEvent["CreateFailed"] = 5] = "CreateFailed"; /** The user starts to enter the room. */ ZIMRoomEvent[ZIMRoomEvent["ActiveEnter"] = 6] = "ActiveEnter"; /** user failed to enter the room. */ ZIMRoomEvent[ZIMRoomEvent["EnterFailed"] = 7] = "EnterFailed"; /** user was kicked out of the room. */ ZIMRoomEvent[ZIMRoomEvent["KickedOut"] = 8] = "KickedOut"; /** The connection to the room timed out. */ ZIMRoomEvent[ZIMRoomEvent["ConnectTimeout"] = 9] = "ConnectTimeout"; /** Multi-device logins into the same room will result in the user being kicked out of the room. */ ZIMRoomEvent[ZIMRoomEvent["KickedOutByOtherDevice"] = 10] = "KickedOutByOtherDevice"; /** Switch room. */ ZIMRoomEvent[ZIMRoomEvent["ActiveSwitch"] = 11] = "ActiveSwitch"; /** Switch room failed. */ ZIMRoomEvent[ZIMRoomEvent["SwitchFailed"] = 12] = "SwitchFailed"; })(ZIMRoomEvent || (ZIMRoomEvent = {})); /** Used to indicate the user's connection status to the room. */ export var ZIMRoomState; (function (ZIMRoomState) { /** Indicates that the connection to the room is interrupted, and the [createRoom], [joinRoom], and [enterRoom] fails. If the network is disconnected for a long time, the heartbeat of the room times out, the background notifies the user that he has been kicked out of the room, or the logout will throw this status. */ ZIMRoomState[ZIMRoomState["Disconnected"] = 0] = "Disconnected"; /** connecting indicates that the connection between a room and a room is in the connecting state. When the create, join, or enter room connection is not returned, this state is thrown when the network is disconnected. */ ZIMRoomState[ZIMRoomState["Connecting"] = 1] = "Connecting"; /** connected indicates that the device is properly connected to the room. If create, join, or enter room succeeds, the state will be thrown if the network is disconnected and the room heartbeat does not time out. */ ZIMRoomState[ZIMRoomState["Connected"] = 2] = "Connected"; })(ZIMRoomState || (ZIMRoomState = {})); /** Room attributes update action. */ export var ZIMRoomAttributesUpdateAction; (function (ZIMRoomAttributesUpdateAction) { /** Set action. */ ZIMRoomAttributesUpdateAction[ZIMRoomAttributesUpdateAction["Set"] = 0] = "Set"; /** Delete the room attributes. */ ZIMRoomAttributesUpdateAction[ZIMRoomAttributesUpdateAction["Delete"] = 1] = "Delete"; })(ZIMRoomAttributesUpdateAction || (ZIMRoomAttributesUpdateAction = {})); /** The action type for room member attribute updates. */ export var ZIMRoomMemberAttributesUpdateAction; (function (ZIMRoomMemberAttributesUpdateAction) { /** Set the room member attributes. */ ZIMRoomMemberAttributesUpdateAction[ZIMRoomMemberAttributesUpdateAction["Set"] = 0] = "Set"; })(ZIMRoomMemberAttributesUpdateAction || (ZIMRoomMemberAttributesUpdateAction = {})); /** group status. */ export var ZIMGroupState; (function (ZIMGroupState) { /** The local user has left the group. */ ZIMGroupState[ZIMGroupState["Quit"] = 0] = "Quit"; /** The local user has entered the group. */ ZIMGroupState[ZIMGroupState["Enter"] = 1] = "Enter"; })(ZIMGroupState || (ZIMGroupState = {})); /** Group events. */ export var ZIMGroupEvent; (function (ZIMGroupEvent) { /** Unknown event. */ ZIMGroupEvent[ZIMGroupEvent["Unknown"] = -1] = "Unknown"; /** The group was created. */ ZIMGroupEvent[ZIMGroupEvent["Created"] = 1] = "Created"; /** The group was dismissed. */ ZIMGroupEvent[ZIMGroupEvent["Dismissed"] = 2] = "Dismissed"; /** A member joined the group. */ ZIMGroupEvent[ZIMGroupEvent["Joined"] = 3] = "Joined"; /** A member was invited to join the group. */ ZIMGroupEvent[ZIMGroupEvent["Invited"] = 4] = "Invited"; /** A member left the group. */ ZIMGroupEvent[ZIMGroupEvent["Left"] = 5] = "Left"; /** A member was kicked out of the group. */ ZIMGroupEvent[ZIMGroupEvent["KickedOut"] = 6] = "KickedOut"; })(ZIMGroupEvent || (ZIMGroupEvent = {})); /** Group member events. */ export var ZIMGroupMemberEvent; (function (ZIMGroupMemberEvent) { /** Unknown event. */ ZIMGroupMemberEvent[ZIMGroupMemberEvent["Unknown"] = -1] = "Unknown"; /** A member joined the group. */ ZIMGroupMemberEvent[ZIMGroupMemberEvent["Joined"] = 1] = "Joined"; /** A member left the group. */ ZIMGroupMemberEvent[ZIMGroupMemberEvent["Left"] = 2] = "Left"; /** A member was kicked out of the group. */ ZIMGroupMemberEvent[ZIMGroupMemberEvent["KickedOut"] = 4] = "KickedOut"; /** A member was invited to join the group. */ ZIMGroupMemberEvent[ZIMGroupMemberEvent["Invited"] = 5] = "Invited"; })(ZIMGroupMemberEvent || (ZIMGroupMemberEvent = {})); /** group membership status. */ export var ZIMGroupMemberState; (function (ZIMGroupMemberState) { /** The member has left the group. */ ZIMGroupMemberState[ZIMGroupMemberState["Quit"] = 0] = "Quit"; /** The member has entered the group. */ ZIMGroupMemberState[ZIMGroupMemberState["Enter"] = 1] = "Enter"; })(ZIMGroupMemberState || (ZIMGroupMemberState = {})); /** Enumeration of group notification status. */ export var ZIMGroupMessageNotificationStatus; (function (ZIMGroupMessageNotificationStatus) { /** Message notifications are enabled. */ ZIMGroupMessageNotificationStatus[ZIMGroupMessageNotificationStatus["Notify"] = 1] = "Notify"; /** Do not disturb mode is enabled. */ ZIMGroupMessageNotificationStatus[ZIMGroupMessageNotificationStatus["DoNotDisturb"] = 2] = "DoNotDisturb"; })(ZIMGroupMessageNotificationStatus || (ZIMGroupMessageNotificationStatus = {})); /** Group attributes update action. */ export var ZIMGroupAttributesUpdateAction; (function (ZIMGroupAttributesUpdateAction) { /** Set action. */ ZIMGroupAttributesUpdateAction[ZIMGroupAttributesUpdateAction["Set"] = 0] = "Set"; /** Delete the group attributes. */ ZIMGroupAttributesUpdateAction[ZIMGroupAttributesUpdateAction["Delete"] = 1] = "Delete"; })(ZIMGroupAttributesUpdateAction || (ZIMGroupAttributesUpdateAction = {})); /** Group mute mode. */ export var ZIMGroupMuteMode; (function (ZIMGroupMuteMode) { /** Unmute. */ ZIMGroupMuteMode[ZIMGroupMuteMode["None"] = 0] = "None"; /** Group normal members mute mode. */ ZIMGroupMuteMode[ZIMGroupMuteMode["Normal"] = 1] = "Normal"; /** Group all members mute mode. */ ZIMGroupMuteMode[ZIMGroupMuteMode["All"] = 2] = "All"; /** Customize group mute mode */ ZIMGroupMuteMode[ZIMGroupMuteMode["Custom"] = 3] = "Custom"; })(ZIMGroupMuteMode || (ZIMGroupMuteMode = {})); /** Verification mode for joining the group. */ export var ZIMGroupJoinMode; (function (ZIMGroupJoinMode) { /** Anyone can join the group directly. */ ZIMGroupJoinMode[ZIMGroupJoinMode["Any"] = 0] = "Any"; /** Requires group owner or administrator approval. */ ZIMGroupJoinMode[ZIMGroupJoinMode["Auth"] = 1] = "Auth"; /** Joining the group is prohibited. */ ZIMGroupJoinMode[ZIMGroupJoinMode["Forbid"] = 2] = "Forbid"; })(ZIMGroupJoinMode || (ZIMGroupJoinMode = {})); /** Verification mode for invite to the group. */ export var ZIMGroupInviteMode; (function (ZIMGroupInviteMode) { /** Everyone in the group can invite. */ ZIMGroupInviteMode[ZIMGroupInviteMode["Any"] = 0] = "Any"; /** Only group owners or administrators can invite. */ ZIMGroupInviteMode[ZIMGroupInviteMode["Admin"] = 1] = "Admin"; })(ZIMGroupInviteMode || (ZIMGroupInviteMode = {})); /** Verification mode for being invited to the group. */ export var ZIMGroupBeInviteMode; (function (ZIMGroupBeInviteMode) { /** The invitees enter the group directly. */ ZIMGroupBeInviteMode[ZIMGroupBeInviteMode["None"] = 0] = "None"; /** The invitee's consent is required to join the group. */ ZIMGroupBeInviteMode[ZIMGroupBeInviteMode["Auth"] = 1] = "Auth"; })(ZIMGroupBeInviteMode || (ZIMGroupBeInviteMode = {})); /** Group enter type. */ export var ZIMGroupEnterType; (function (ZIMGroupEnterType) { /** Unknown enter type. */ ZIMGroupEnterType[ZIMGroupEnterType["Unknown"] = 0] = "Unknown"; /** The user created the group. */ ZIMGroupEnterType[ZIMGroupEnterType["Created"] = 1] = "Created"; /** The user joined the group via an application. */ ZIMGroupEnterType[ZIMGroupEnterType["JoinApply"] = 2] = "JoinApply"; /** The user actively joined the group. */ ZIMGroupEnterType[ZIMGroupEnterType["Joined"] = 3] = "Joined"; /** The user was invited to join the group. */ ZIMGroupEnterType[ZIMGroupEnterType["Invited"] = 4] = "Invited"; /** The user joined the group via invitation application. */ ZIMGroupEnterType[ZIMGroupEnterType["InviteApply"] = 5] = "InviteApply"; })(ZIMGroupEnterType || (ZIMGroupEnterType = {})); /** Group application type. */ export var ZIMGroupApplicationType; (function (ZIMGroupApplicationType) { /** Unknown group application type. */ ZIMGroupApplicationType[ZIMGroupApplicationType["Unknown"] = -1] = "Unknown"; /** None. */ ZIMGroupApplicationType[ZIMGroupApplicationType["None"] = 0] = "None"; /** Join type. */ ZIMGroupApplicationType[ZIMGroupApplicationType["Join"] = 1] = "Join"; /** Invite type. */ ZIMGroupApplicationType[ZIMGroupApplicationType["Invite"] = 2] = "Invite"; /** Be invite type. */ ZIMGroupApplicationType[ZIMGroupApplicationType["BeInvite"] = 3] = "BeInvite"; })(ZIMGroupApplicationType || (ZIMGroupApplicationType = {})); /** Group application state. */ export var ZIMGroupApplicationState; (function (ZIMGroupApplicationState) { /** Unknown group application state. */ ZIMGroupApplicationState[ZIMGroupApplicationState["Unknown"] = -1] = "Unknown"; /** Awaiting response. */ ZIMGroupApplicationState[ZIMGroupApplicationState["Waiting"] = 1] = "Waiting"; /** Accepted. */ ZIMGroupApplicationState[ZIMGroupApplicationState["Accepted"] = 2] = "Accepted"; /** Rejected. */ ZIMGroupApplicationState[ZIMGroupApplicationState["Rejected"] = 3] = "Rejected"; /** Expired. */ ZIMGroupApplicationState[ZIMGroupApplicationState["Expired"] = 4] = "Expired"; /** Disabled */ ZIMGroupApplicationState[ZIMGroupApplicationState["Disabled"] = 5] = "Disabled"; })(ZIMGroupApplicationState || (ZIMGroupApplicationState = {})); /** Group application list update action. */ export var ZIMGroupApplicationListChangeAction; (function (ZIMGroupApplicationListChangeAction) { /** Add action. */ ZIMGroupApplicationListChangeAction[ZIMGroupApplicationListChangeAction["Added"] = 0] = "Added"; })(ZIMGroupApplicationListChangeAction || (ZIMGroupApplicationListChangeAction = {})); /** Call invitation mode. */ export var ZIMCallInvitationMode; (function (ZIMCallInvitationMode) { /** Unknown type, as a guaranteed enumeration value. */ ZIMCallInvitationMode[ZIMCallInvitationMode["Unknown"] = -1] = "Unknown"; /** general. */ ZIMCallInvitationMode[ZIMCallInvitationMode["General"] = 0] = "General"; /** advanced */ ZIMCallInvitationMode[ZIMCallInvitationMode["Advanced"] = 1] = "Advanced"; })(ZIMCallInvitationMode || (ZIMCallInvitationMode = {})); /** call status. */ export var ZIMCallState; (function (ZIMCallState) { /** Unknown call state. */ ZIMCallState[ZIMCallState["Unknown"] = -1] = "Unknown"; /** The call has started. */ ZIMCallState[ZIMCallState["Started"] = 1] = "Started"; /** The call has ended. */ ZIMCallState[ZIMCallState["Ended"] = 2] = "Ended"; })(ZIMCallState || (ZIMCallState = {})); /** Call user status. */ export var ZIMCallUserState; (function (ZIMCallUserState) { /** unknown */ ZIMCallUserState[ZIMCallUserState["Unknown"] = -1] = "Unknown"; /** inviting. */ ZIMCallUserState[ZIMCallUserState["Inviting"] = 0] = "Inviting"; /** accepted. */ ZIMCallUserState[ZIMCallUserState["Accepted"] = 1] = "Accepted"; /** rejected. */ ZIMCallUserState[ZIMCallUserState["Rejected"] = 2] = "Rejected"; /** cancelled. */ ZIMCallUserState[ZIMCallUserState["Cancelled"] = 3] = "Cancelled"; /** received. */ ZIMCallUserState[ZIMCallUserState["Received"] = 5] = "Received"; /** timeout. */ ZIMCallUserState[ZIMCallUserState["Timeout"] = 6] = "Timeout"; /** quit. */ ZIMCallUserState[ZIMCallUserState["Quit"] = 7] = "Quit"; /** ended. */ ZIMCallUserState[ZIMCallUserState["Ended"] = 8] = "Ended"; /** Not received. */ ZIMCallUserState[ZIMCallUserState["NotYetReceived"] = 9] = "NotYetReceived"; /** Be cancelled. */ ZIMCallUserState[ZIMCallUserState["BeCancelled"] = 10] = "BeCancelled"; })(ZIMCallUserState || (ZIMCallUserState = {})); /** User type. */ export var ZIMUserInfoType; (function (ZIMUserInfoType) { /** Basic user type. */ ZIMUserInfoType[ZIMUserInfoType["BasicUser"] = 1] = "BasicUser"; /** Room member type. */ ZIMUserInfoType[ZIMUserInfoType["RoomMember"] = 2] = "RoomMember"; /** Group member type. */ ZIMUserInfoType[ZIMUserInfoType["GroupMember"] = 3] = "GroupMember"; /** Group member brief info type. */ ZIMUserInfoType[ZIMUserInfoType["GroupSimpleMember"] = 4] = "GroupSimpleMember"; /** Friend type. */ ZIMUserInfoType[ZIMUserInfoType["Friend"] = 5] = "Friend"; /** Community member type. */ ZIMUserInfoType[ZIMUserInfoType["CommunityMember"] = 6] = "CommunityMember"; /** Community member brief info type. */ ZIMUserInfoType[ZIMUserInfoType["CommunitySimpleMember"] = 7] = "CommunitySimpleMember"; })(ZIMUserInfoType || (ZIMUserInfoType = {})); /** friend list update action. */ export var ZIMFriendListChangeAction; (function (ZIMFriendListChangeAction) { /** Add action. */ ZIMFriendListChangeAction[ZIMFriendListChangeAction["Added"] = 0] = "Added"; /** Delete action. */ ZIMFriendListChangeAction[ZIMFriendListChangeAction["Deleted"] = 1] = "Deleted"; })(ZIMFriendListChangeAction || (ZIMFriendListChangeAction = {})); /** friend application list update action. */ export var ZIMFriendApplicationListChangeAction; (function (ZIMFriendApplicationListChangeAction) { /** Add action. */ ZIMFriendApplicationListChangeAction[ZIMFriendApplicationListChangeAction["Added"] = 0] = "Added"; /** Delete action. */ ZIMFriendApplicationListChangeAction[ZIMFriendApplicationListChangeAction["Deleted"] = 1] = "Deleted"; })(ZIMFriendApplicationListChangeAction || (ZIMFriendApplicationListChangeAction = {})); /** Friend application type. */ export var ZIMFriendApplicationType; (function (ZIMFriendApplicationType) { /** Unknown friend application type. */ ZIMFriendApplicationType[ZIMFriendApplicationType["Unknown"] = -1] = "Unknown"; /** Friend application type none. */ ZIMFriendApplicationType[ZIMFriendApplicationType["None"] = 0] = "None"; /** Applications received. */ ZIMFriendApplicationType[ZIMFriendApplicationType["Received"] = 1] = "Received"; /** Application sent. */ ZIMFriendApplicationType[ZIMFriendApplicationType["Sent"] = 2] = "Sent"; /** Both parties sent friend applications to each other. */ ZIMFriendApplicationType[ZIMFriendApplicationType["Both"] = 3] = "Both"; })(ZIMFriendApplicationType || (ZIMFriendApplicationType = {})); /** Friend application state. */ export var ZIMFriendApplicationState; (function (ZIMFriendApplicationState) { /** Unknown friend application state. */ ZIMFriendApplicationState[ZIMFriendApplicationState["Unknown"] = -1] = "Unknown"; /** Awaiting response. */ ZIMFriendApplicationState[ZIMFriendApplicationState["Waiting"] = 1] = "Waiting"; /** Accepted. */ ZIMFriendApplicationState[ZIMFriendApplicationState["Accepted"] = 2] = "Accepted"; /** Rejected. */ ZIMFriendApplicationState[ZIMFriendApplicationState["Rejected"] = 3] = "Rejected"; /** The friend application has expired. */ ZIMFriendApplicationState[ZIMFriendApplicationState["Expired"] = 4] = "Expired"; /** The friend application is disabled. */ ZIMFriendApplicationState[ZIMFriendApplicationState["Disabled"] = 5] = "Disabled"; })(ZIMFriendApplicationState || (ZIMFriendApplicationState = {})); /** Check the friend relationship type. */ export var ZIMFriendRelationCheckType; (function (ZIMFriendRelationCheckType) { /** Check the friend relationship from both sides. */ ZIMFriendRelationCheckType[ZIMFriendRelationCheckType["Both"] = 0] = "Both"; /** Check the friend relationship from one side only. */ ZIMFriendRelationCheckType[ZIMFriendRelationCheckType["Single"] = 1] = "Single"; })(ZIMFriendRelationCheckType || (ZIMFriendRelationCheckType = {})); /** Delete friend type. */ export var ZIMFriendDeleteType; (function (ZIMFriendDeleteType) { /** Delete the friend from both sides. */ ZIMFriendDeleteType[ZIMFriendDeleteType["Both"] = 0] = "Both"; /** Delete the friend from one side only. */ ZIMFriendDeleteType[ZIMFriendDeleteType["Single"] = 1] = "Single"; })(ZIMFriendDeleteType || (ZIMFriendDeleteType = {})); /** Friend relationship type. */ export var ZIMUserRelationType; (function (ZIMUserRelationType) { /** Unknown relation type. */ ZIMUserRelationType[ZIMUserRelationType["Unknown"] = 0] = "Unknown"; /** No friendship from the user's perspective. */ ZIMUserRelationType[ZIMUserRelationType["SingleNo"] = 1] = "SingleNo"; /** Friendship exists from the user's perspective. */ ZIMUserRelationType[ZIMUserRelationType["SingleHave"] = 2] = "SingleHave"; /** No friendship from either side. */ ZIMUserRelationType[ZIMUserRelationType["BothAllNo"] = 3] = "BothAllNo"; /** The user has added the other as a friend, but not vice versa. */ ZIMUserRelationType[ZIMUserRelationType["BothSelfHave"] = 4] = "BothSelfHave"; /** The other party has added the user as a friend, but not vice versa. */ ZIMUserRelationType[ZIMUserRelationType["BothOtherHave"] = 5] = "BothOtherHave"; /** Both parties are friends with each other. */ ZIMUserRelationType[ZIMUserRelationType["BothAllHave"] = 6] = "BothAllHave"; })(ZIMUserRelationType || (ZIMUserRelationType = {})); /** blacklist update action. */ export var ZIMBlacklistChangeAction; (function (ZIMBlacklistChangeAction) { /** Add action. */ ZIMBlacklistChangeAction[ZIMBlacklistChangeAction["Added"] = 0] = "Added"; /** Removed action. */ ZIMBlacklistChangeAction[ZIMBlacklistChangeAction["Removed"] = 1] = "Removed"; })(ZIMBlacklistChangeAction || (ZIMBlacklistChangeAction = {})); /** Type of contact information for the VoIP initiator. */ export var ZIMCXHandleType; (function (ZIMCXHandleType) { /** Generic handle type. */ ZIMCXHandleType[ZIMCXHandleType["Generic"] = 1] = "Generic"; /** Phone number handle type. */ ZIMCXHandleType[ZIMCXHandleType["PhoneNumber"] = 2] = "PhoneNumber"; /** Email address handle type. */ ZIMCXHandleType[ZIMCXHandleType["EmailAddress"] = 3] = "EmailAddress"; })(ZIMCXHandleType || (ZIMCXHandleType = {})); /** Geofencing type. */ export var ZIMGeofencingType; (function (ZIMGeofencingType) { /** The default type. */ ZIMGeofencingType[ZIMGeofencingType["None"] = 0] = "None"; /** Federated mode. */ ZIMGeofencingType[ZIMGeofencingType["Include"] = 1] = "Include"; /** Exclusion mode. */ ZIMGeofencingType[ZIMGeofencingType["Exclude"] = 2] = "Exclude"; })(ZIMGeofencingType || (ZIMGeofencingType = {})); /** Platform on which the SDK runs. */ export var ZIMPlatformType; (function (ZIMPlatformType) { /** Windows. */ ZIMPlatformType[ZIMPlatformType["Win"] = 1] = "Win"; /** iOS. */ ZIMPlatformType[ZIMPlatformType["IPhoneOS"] = 2] = "IPhoneOS"; /** Android. */ ZIMPlatformType[ZIMPlatformType["Android"] = 3] = "Android"; /** MacOS. */ ZIMPlatformType[ZIMPlatformType["MacOS"] = 4] = "MacOS"; /** Linux. */ ZIMPlatformType[ZIMPlatformType["Linux"] = 5] = "Linux"; /** Web. */ ZIMPlatformType[ZIMPlatformType["Web"] = 6] = "Web"; /** Mini program. */ ZIMPlatformType[ZIMPlatformType["MiniProgram"] = 7] = "MiniProgram"; /** iPad. */ ZIMPlatformType[ZIMPlatformType["IPadOS"] = 9] = "IPadOS"; /** HarmonyOS (OHOS) platform. */ ZIMPlatformType[ZIMPlatformType["OHOS"] = 10] = "OHOS"; /** Platforms not mentioned above. */ ZIMPlatformType[ZIMPlatformType["Unknown"] = 32] = "Unknown"; })(ZIMPlatformType || (ZIMPlatformType = {})); /** User online status. */ export var ZIMUserOnlineStatus; (function (ZIMUserOnlineStatus) { /** Online. The user is in this state when the user is logged in and the network status is good. */ ZIMUserOnlineStatus[ZIMUserOnlineStatus["Online"] = 0] = "Online"; /** Offline. The user does not call logout to actively logout because the network is disconnected, the app is killed, the background is withdrawn, and the screen is locked. The user will be in this state after the long background link is disconnected. */ ZIMUserOnlineStatus[ZIMUserOnlineStatus["Offline"] = 1] = "Offline"; /** Log out. User active logout will be in this state. */ ZIMUserOnlineStatus[ZIMUserOnlineStatus["Logout"] = 2] = "Logout"; /** Unknown status. Guaranteed enumeration. */ ZIMUserOnlineStatus[ZIMUserOnlineStatus["Unknown"] = 99] = "Unknown"; })(ZIMUserOnlineStatus || (ZIMUserOnlineStatus = {})); /** The action type for list changes. */ export var ZIMListChangeAction; (function (ZIMListChangeAction) { /** An item was added. */ ZIMListChangeAction[ZIMListChangeAction["Added"] = 0] = "Added"; /** An item was deleted. */ ZIMListChangeAction[ZIMListChangeAction["Deleted"] = 1] = "Deleted"; })(ZIMListChangeAction || (ZIMListChangeAction = {})); /** The action type for community list changes. */ export var ZIMCommunityListChangeAction; (function (ZIMCommunityListChangeAction) { /** A community was added. */ ZIMCommunityListChangeAction[ZIMCommunityListChangeAction["Added"] = 0] = "Added"; /** A community was deleted. */ ZIMCommunityListChangeAction[ZIMCommunityListChangeAction["Deleted"] = 1] = "Deleted"; /** A community was updated. */ ZIMCommunityListChangeAction[ZIMCommunityListChangeAction["Updated"] = 2] = "Updated"; })(ZIMCommunityListChangeAction || (ZIMCommunityListChangeAction = {})); /** The enter type for community members. */ export var ZIMCommunityMemberEnterType; (function (ZIMCommunityMemberEnterType) { /** Unknown enter type. */ ZIMCommunityMemberEnterType[ZIMCommunityMemberEnterType["Unknown"] = 0] = "Unknown"; /** The member joined when the community was created. */ ZIMCommunityMemberEnterType[ZIMCommunityMemberEnterType["CommunityCreated"] = 1] = "CommunityCreated"; /** The member actively joined the community. */ ZIMCommunityMemberEnterType[ZIMCommunityMemberEnterType["CommunityJoined"] = 2] = "CommunityJoined"; /** The member was invited to join the community. */ ZIMCommunityMemberEnterType[ZIMCommunityMemberEnterType["CommunityInvited"] = 3] = "CommunityInvited"; })(ZIMCommunityMemberEnterType || (ZIMCommunityMemberEnterType = {})); /** The state change type for community members. */ export var ZIMCommunityMemberChangeState; (function (ZIMCommunityMemberChangeState) { /** The member exited the community. */ ZIMCommunityMemberChangeState[ZIMCommunityMemberChangeState["Exited"] = 0] = "Exited"; /** The member entered the community. */ ZIMCommunityMemberChangeState[ZIMCommunityMemberChangeState["Entered"] = 1] = "Entered"; })(ZIMCommunityMemberChangeState || (ZIMCommunityMemberChangeState = {})); /** The action type for community member status changes. */ export var ZIMCommunityMemberChangeAction; (function (ZIMCommunityMemberChangeAction) { /** Unknown action. */ ZIMCommunityMemberChangeAction[ZIMCommunityMemberChangeAction["Unknown"] = 0] = "Unknown"; /** The member actively joined the community. */ ZIMCommunityMemberChangeAction[ZIMCommunityMemberChangeAction["Joined"] = 1] = "Joined"; /** The member was invited to join the community. */ ZIMCommunityMemberChangeAction[ZIMCommunityMemberChangeAction["Invited"] = 2] = "Invited"; /** The member actively left the community. */ ZIMCommunityMemberChangeAction[ZIMCommunityMemberChangeAction["Left"] = 3] = "Left"; /** The member was kicked out of the community. */ ZIMCommunityMemberChangeAction[ZIMCommunityMemberChangeAction["KickedOut"] = 4] = "KickedOut"; })(ZIMCommunityMemberChangeAction || (ZIMCommunityMemberChangeAction = {})); /** The type of community channel. */ export var ZIMCommunityChannelType; (function (ZIMCommunityChannelType) { /** Unknown channel. */ ZIMCommunityChannelType[ZIMCommunityChannelType["Unknown"] = -1] = "Unknown"; /** Default channel, automatically created when the community is created. */ ZIMCommunityChannelType[ZIMCommunityChannelType["General"] = 0] = "General"; /** Public channel, visible to all members of the community. */ ZIMCommunityChannelType[ZIMCommunityChannelType["Public"] = 1] = "Public"; /** Private channel, visible only to specific members. */ ZIMCommunityChannelType[ZIMCommunityChannelType["Private"] = 2] = "Private"; })(ZIMCommunityChannelType || (ZIMCommunityChannelType = {})); /** The action type for community channel list changes. */ export var ZIMCommunityChannelListChangeAction; (function (ZIMCommunityChannelListChangeAction) { /** A community channel was added. */ ZIMCommunityChannelListChangeAction[ZIMCommunityChannelListChangeAction["Added"] = 0] = "Added"; /** A community channel was deleted. */ ZIMCommunityChannelListChangeAction[ZIMCommunityChannelListChangeAction["Deleted"] = 1] = "Deleted"; /** A community channel was updated. */ ZIMCommunityChannelListChangeAction[ZIMCommunityChannelListChangeAction["Updated"] = 2] = "Updated"; })(ZIMCommunityChannelListChangeAction || (ZIMCommunityChannelListChangeAction = {})); /** The mute mode for community channels. */ export var ZIMCommunityChannelMuteMode; (function (ZIMCommunityChannelMuteMode) { /** No mute mode. */ ZIMCommunityChannelMuteMode[ZIMCommunityChannelMuteMode["None"] = 0] = "None"; /** Normal mute mode; only administrators and the owner can speak. */ ZIMCommunityChannelMuteMode[ZIMCommunityChannelMuteMode["Normal"] = 1] = "Normal"; /** All members are muted. */ ZIMCommunityChannelMuteMode[ZIMCommunityChannelMuteMode["All"] = 2] = "All"; /** Custom mute mode. */ ZIMCommunityChannelMuteMode[ZIMCommunityChannelMuteMode["Custom"] = 3] = "Custom"; })(ZIMCommunityChannelMuteMode || (ZIMCommunityChannelMuteMode = {})); /** The mute type for community members. */ export var ZIMCommunityMemberMuteType; (function (ZIMCommunityMemberMuteType) { /** Not muted. */ ZIMCommunityMemberMuteType[ZIMCommunityMemberMuteType["None"] = 0] = "None"; /** Muted at the community level. */ ZIMCommunityMemberMuteType[ZIMCommunityMemberMuteType["Community"] = 1] = "Community"; /** Muted at the community channel level. */ ZIMCommunityMemberMuteType[ZIMCommunityMemberMuteType["Channel"] = 2] = "Channel"; })(ZIMCommunityMemberMuteType || (ZIMCommunityMemberMuteType = {})); /** The notification status for community messages. */ export var ZIMCommunityMessageNotificationStatus; (function (ZIMCommunityMessageNotificationStatus) { /** Message notifications are enabled. */ ZIMCommunityMessageNotificationStatus[ZIMCommunityMessageNotificationStatus["Notify"] = 1] = "Notify"; /** Do not disturb mode is enabled. */ ZIMCommunityMessageNotificationStatus[ZIMCommunityMessageNotificationStatus["DoNotDisturb"] = 2] = "DoNotDisturb"; })(ZIMCommunityMessageNotificationStatus || (ZIMCommunityMessageNotificationStatus = {})); /** Community member role */ export var ZIMCommunityMemberRole; (function (ZIMCommunityMemberRole) { /** Community Owner. */ ZIMCommunityMemberRole[ZIMCommunityMemberRole["Owner"]