Skip to content

Commit

Permalink
Add a comment separating the archive operations by API version (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Rothenberger authored Aug 2, 2023
1 parent b216e19 commit 1bc7bf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/internet_identity_interface/src/archive/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use serde_bytes::ByteBuf;

#[derive(Eq, PartialEq, Clone, Debug, CandidType, Deserialize)]
pub enum Operation {
// V1 API
#[serde(rename = "register_anchor")]
RegisterAnchor { device: DeviceDataWithoutAlias },
#[serde(rename = "add_device")]
Expand All @@ -23,6 +24,9 @@ pub enum Operation {
},
#[serde(rename = "remove_device")]
RemoveDevice { device: PublicKey },

// V2 API
// See the II candid interface for more details.
#[serde(rename = "identity_metadata_replace")]
IdentityMetadataReplace { metadata_keys: Vec<String> },
}
Expand Down

0 comments on commit 1bc7bf6

Please sign in to comment.