Retrieves a list of maps that were shared with the user and the user still has access to.
Promise resolving to an array of [Principal, ByteBuf]
pairs representing accessible map identifiers.
Retrieves all accessible maps with their encrypted values.
Promise resolving to an array of encrypted map data
Retrieves an encrypted value from a map.
Promise resolving to the encrypted value if it exists, or an error if the operation fails
Retrieves all encrypted values from a specific map.
The principal of the map owner
The name/identifier of the map
Promise resolving to an array of key-value pairs, or an error if the operation fails
Fetches an encrypted VetKey.
Promise resolving to the encrypted VetKey bytes, or an error if the operation fails
Retrieves a list of non-empty maps owned by the caller.
Promise resolving to an array of map names
Gets all users that have access to a map and their access rights.
The principal of the map owner
The name/identifier of the map
Promise resolving to an array of user-access rights pairs, or an error if the operation fails
Checks a user's access rights.
The principal of the map owner
The name/identifier of the map
The principal of the user to check rights for
Promise resolving to the user's access rights if they exist, or an error if the operation fails
Retrieves the public verification key for validating encrypted VetKeys.
Promise resolving to the verification key bytes
Stores an encrypted value in a map.
Promise resolving to the previous value if it existed, or an error if the operation fails
Removes a value from a map.
Promise resolving to the removed value if it existed, or an error if the operation fails
Revokes a user's access.
The principal of the map owner
The name/identifier of the map
The principal of the user to remove
Promise resolving to the previous access rights if they existed, or an error if the operation fails
Grants or modifies access rights for a user.
The principal of the map owner
The name/identifier of the map
The principal of the user to grant/modify rights for
The access rights to grant
Promise resolving to the previous access rights if they existed, or an error if the operation fails
An interface that maps
EncryptedMaps
calls to IC canister calls that will call the respective method of the backendEncryptedMaps
. For example,get_user_rights
will call theget_user_rights
method of the backendEncryptedMaps
.