Ask the server to save e2ee a user's PCDs and other metadata.

interface UploadEncryptedStorageRequest {
    blobKey: string;
    encryptedBlob: string;
    knownRevision?: string;
    pcd?: SerializedPCD<PCD<unknown, unknown>>;
}

Properties

blobKey: string

On the server-side, encrypted storage is keyed by the hash of the user's encryption key.

encryptedBlob: string

An encrypted and stringified version of EncryptedStorage

knownRevision?: string

Optional field allowing the client to detect and avoid conflicting updates.

If specified, this is the previous revision of stored data which the client is aware of and has included in its updates. If this does not match the latest revision available on the server, the request will fail without making any changes.

If this field is absent, the new blob is always saved, overwriting any existing revision.

pcd?: SerializedPCD<PCD<unknown, unknown>>

Generated using TypeDoc