Skip to content

Commit

Permalink
Merge pull request #184 from xmtp/cv/update-permissions-intents
Browse files Browse the repository at this point in the history
feat: added intent for updating admin lists
  • Loading branch information
cameronvoell authored May 24, 2024
2 parents 7119f9c + b532dba commit 2c9e723
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions proto/mls/database/intents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,28 @@ message UpdateMetadataData {
}
}

// Type of update to admin lists
enum AdminListUpdateType {
ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED = 0;
ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN = 1;
ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN = 2;
ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN = 3;
ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN = 4;
}

// The data required to update group admin/super admin lists
message UpdateAdminListsData {
// V1 of UpdateAdminListsPublishData
message V1 {
AdminListUpdateType admin_list_update_type = 1;
string inbox_id = 2;
}

oneof version {
V1 v1 = 1;
}
}

// Generic data-type for all post-commit actions
message PostCommitAction {
// An installation
Expand Down

0 comments on commit 2c9e723

Please sign in to comment.