[PM-29842] Add organization event types for item migration acceptance and rejection (#6273)

This commit is contained in:
Patrick Honkonen
2025-12-16 10:38:16 -05:00
committed by GitHub
parent 7f032a8732
commit 7c929c3713
2 changed files with 26 additions and 0 deletions

View File

@@ -114,4 +114,24 @@ sealed class OrganizationEvent {
override val type: OrganizationEventType
get() = OrganizationEventType.USER_CLIENT_EXPORTED_VAULT
}
/**
* Tracks when a user's personal ciphers have been migrated to their organization's My Items
* folder as required by the organization's personal vault ownership policy.
*/
data object ItemOrganizationAccepted : OrganizationEvent() {
override val cipherId: String? = null
override val type: OrganizationEventType
get() = OrganizationEventType.ORGANIZATION_ITEM_ORGANIZATION_ACCEPTED
}
/**
* Tracks when a user chooses to leave an organization instead of migrating their personal
* ciphers to their organization's My Items folder.
*/
data object ItemOrganizationDeclined : OrganizationEvent() {
override val cipherId: String? = null
override val type: OrganizationEventType
get() = OrganizationEventType.ORGANIZATION_ITEM_ORGANIZATION_DECLINED
}
}

View File

@@ -126,6 +126,12 @@ enum class OrganizationEventType {
@SerialName("1601")
ORGANIZATION_PURGED_VAULT,
@SerialName("1618")
ORGANIZATION_ITEM_ORGANIZATION_ACCEPTED,
@SerialName("1619")
ORGANIZATION_ITEM_ORGANIZATION_DECLINED,
}
@Keep