mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-06 00:02:48 +02:00
Update analytics-events to v0.14.0
This commit is contained in:
@@ -30,11 +30,21 @@ data class Error(
|
||||
*/
|
||||
val context: String? = null,
|
||||
/**
|
||||
* Which crypto module is the client currently using.
|
||||
* DEPRECATED: Which crypto module is the client currently using.
|
||||
*/
|
||||
val cryptoModule: CryptoModule? = null,
|
||||
/**
|
||||
* Which crypto backend is the client currently using.
|
||||
*/
|
||||
val cryptoSDK: CryptoSDK? = null,
|
||||
val domain: Domain,
|
||||
val name: Name,
|
||||
/**
|
||||
* UTDs can be permanent or temporary. If temporary, this field will
|
||||
* contain the time it took to decrypt the message in milliseconds. If
|
||||
* permanent should be -1
|
||||
*/
|
||||
val timeToDecryptMillis: Int? = null,
|
||||
) : VectorAnalyticsEvent {
|
||||
|
||||
enum class Domain {
|
||||
@@ -56,6 +66,19 @@ data class Error(
|
||||
VoipUserMediaFailed,
|
||||
}
|
||||
|
||||
enum class CryptoSDK {
|
||||
|
||||
/**
|
||||
* Legacy crypto backend specific to each platform.
|
||||
*/
|
||||
Legacy,
|
||||
|
||||
/**
|
||||
* Cross-platform crypto backend written in Rust.
|
||||
*/
|
||||
Rust,
|
||||
}
|
||||
|
||||
enum class CryptoModule {
|
||||
|
||||
/**
|
||||
@@ -75,8 +98,10 @@ data class Error(
|
||||
return mutableMapOf<String, Any>().apply {
|
||||
context?.let { put("context", it) }
|
||||
cryptoModule?.let { put("cryptoModule", it.name) }
|
||||
cryptoSDK?.let { put("cryptoSDK", it.name) }
|
||||
put("domain", domain.name)
|
||||
put("name", name.name)
|
||||
timeToDecryptMillis?.let { put("timeToDecryptMillis", it) }
|
||||
}.takeIf { it.isNotEmpty() }
|
||||
}
|
||||
}
|
||||
|
@@ -85,11 +85,28 @@ data class Interaction(
|
||||
*/
|
||||
MobileRoomAddHome,
|
||||
|
||||
/**
|
||||
* User switched the favourite toggle on Room Details screen.
|
||||
*/
|
||||
MobileRoomFavouriteToggle,
|
||||
|
||||
/**
|
||||
* User tapped on Leave Room button on Room Details screen.
|
||||
*/
|
||||
MobileRoomLeave,
|
||||
|
||||
/**
|
||||
* User adjusted their favourite rooms using the context menu on a room
|
||||
* in the room list.
|
||||
*/
|
||||
MobileRoomListRoomContextMenuFavouriteToggle,
|
||||
|
||||
/**
|
||||
* User adjusted their unread rooms using the context menu on a room in
|
||||
* the room list.
|
||||
*/
|
||||
MobileRoomListRoomContextMenuUnreadToggle,
|
||||
|
||||
/**
|
||||
* User tapped on Threads button on Room screen.
|
||||
*/
|
||||
@@ -306,6 +323,18 @@ data class Interaction(
|
||||
*/
|
||||
WebRoomListRoomTileContextMenuLeaveItem,
|
||||
|
||||
/**
|
||||
* User marked a message as read using the context menu on a room tile
|
||||
* in the room list in Element Web/Desktop.
|
||||
*/
|
||||
WebRoomListRoomTileContextMenuMarkRead,
|
||||
|
||||
/**
|
||||
* User marked a room as unread using the context menu on a room tile in
|
||||
* the room list in Element Web/Desktop.
|
||||
*/
|
||||
WebRoomListRoomTileContextMenuMarkUnread,
|
||||
|
||||
/**
|
||||
* User accessed room settings using the context menu on a room tile in
|
||||
* the room list in Element Web/Desktop.
|
||||
@@ -408,6 +437,18 @@ data class Interaction(
|
||||
*/
|
||||
WebThreadViewBackButton,
|
||||
|
||||
/**
|
||||
* User clicked on the Threads Activity Centre button of Element
|
||||
* Web/Desktop.
|
||||
*/
|
||||
WebThreadsActivityCentreButton,
|
||||
|
||||
/**
|
||||
* User clicked on a room in the Threads Activity Centre of Element
|
||||
* Web/Desktop.
|
||||
*/
|
||||
WebThreadsActivityCentreRoomItem,
|
||||
|
||||
/**
|
||||
* User selected a thread in the Threads panel in Element Web/Desktop.
|
||||
*/
|
||||
|
@@ -41,12 +41,12 @@ data class PollCreation(
|
||||
|
||||
enum class Action {
|
||||
/**
|
||||
* Newly created poll.
|
||||
* Newly created poll
|
||||
*/
|
||||
Create,
|
||||
|
||||
/**
|
||||
* Edit of an existing poll.
|
||||
* Edit of an existing poll
|
||||
*/
|
||||
Edit,
|
||||
}
|
||||
|
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright (c) 2021 New Vector Ltd
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package im.vector.app.features.analytics.plan
|
||||
|
||||
import im.vector.app.features.analytics.itf.VectorAnalyticsEvent
|
||||
|
||||
// GENERATED FILE, DO NOT EDIT. FOR MORE INFORMATION VISIT
|
||||
// https://github.com/matrix-org/matrix-analytics-events/
|
||||
|
||||
/**
|
||||
* Triggered when a moderation action is performed within a room.
|
||||
*/
|
||||
data class RoomModeration(
|
||||
/**
|
||||
* The action that was performed.
|
||||
*/
|
||||
val action: Action,
|
||||
/**
|
||||
* When the action sets a particular power level, this is the suggested
|
||||
* role for that the power level.
|
||||
*/
|
||||
val role: Role? = null,
|
||||
) : VectorAnalyticsEvent {
|
||||
|
||||
enum class Action {
|
||||
/**
|
||||
* Banned a room member.
|
||||
*/
|
||||
BanMember,
|
||||
|
||||
/**
|
||||
* Changed a room member's power level.
|
||||
*/
|
||||
ChangeMemberRole,
|
||||
|
||||
/**
|
||||
* Changed the power level required to ban room members.
|
||||
*/
|
||||
ChangePermissionsBanMembers,
|
||||
|
||||
/**
|
||||
* Changed the power level required to invite users to the room.
|
||||
*/
|
||||
ChangePermissionsInviteUsers,
|
||||
|
||||
/**
|
||||
* Changed the power level required to kick room members.
|
||||
*/
|
||||
ChangePermissionsKickMembers,
|
||||
|
||||
/**
|
||||
* Changed the power level required to redact messages in the room.
|
||||
*/
|
||||
ChangePermissionsRedactMessages,
|
||||
|
||||
/**
|
||||
* Changed the power level required to set the room's avatar.
|
||||
*/
|
||||
ChangePermissionsRoomAvatar,
|
||||
|
||||
/**
|
||||
* Changed the power level required to set the room's name.
|
||||
*/
|
||||
ChangePermissionsRoomName,
|
||||
|
||||
/**
|
||||
* Changed the power level required to set the room's topic.
|
||||
*/
|
||||
ChangePermissionsRoomTopic,
|
||||
|
||||
/**
|
||||
* Changed the power level required to send messages in the room.
|
||||
*/
|
||||
ChangePermissionsSendMessages,
|
||||
|
||||
/**
|
||||
* Kicked a room member.
|
||||
*/
|
||||
KickMember,
|
||||
|
||||
/**
|
||||
* Reset all of the room permissions back to their default values.
|
||||
*/
|
||||
ResetPermissions,
|
||||
|
||||
/**
|
||||
* Unbanned a room member.
|
||||
*/
|
||||
UnbanMember,
|
||||
}
|
||||
|
||||
enum class Role {
|
||||
|
||||
/**
|
||||
* A power level of 100.
|
||||
*/
|
||||
Administrator,
|
||||
|
||||
/**
|
||||
* A power level of 50.
|
||||
*/
|
||||
Moderator,
|
||||
|
||||
/**
|
||||
* Any other power level.
|
||||
*/
|
||||
Other,
|
||||
|
||||
/**
|
||||
* A power level of 0.
|
||||
*/
|
||||
User,
|
||||
}
|
||||
|
||||
override fun getName() = "RoomModeration"
|
||||
|
||||
override fun getProperties(): Map<String, Any>? {
|
||||
return mutableMapOf<String, Any>().apply {
|
||||
put("action", action.name)
|
||||
role?.let { put("role", it.name) }
|
||||
}.takeIf { it.isNotEmpty() }
|
||||
}
|
||||
}
|
@@ -252,6 +252,12 @@ data class ViewRoom(
|
||||
*/
|
||||
WebSpacePanelNotificationBadge,
|
||||
|
||||
/**
|
||||
* Room accessed via interacting with the Threads Activity Centre in
|
||||
* Element Web/Desktop.
|
||||
*/
|
||||
WebThreadsActivityCentre,
|
||||
|
||||
/**
|
||||
* Room accessed via Element Web/Desktop's Unified Search modal.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user