async SetUserProfileImage({image}) {
    const libraryId = this.client.contentSpaceLibraryId;
    const objectId = Utils.AddressToObjectId(await this.WalletAddress());

    const editRequest = await this.client.EditContentObject({libraryId, objectId});

    const uploadResponse = await this.client.UploadPart({
      libraryId,
      objectId,
      writeToken: editRequest.write_token,
      data: image
    });

    await this.client.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editRequest.write_token,
      metadata: {
        image: uploadResponse.part.hash
      }
    });

    await this.client.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editRequest.write_token,
      metadataSubtree: "public",
      metadata: {
        image: uploadResponse.part.hash
      }
    });

    await this.client.FinalizeContentObject({libraryId, objectId, writeToken: editRequest.write_token});

    this.__InvalidateCache();
  }
/**
   * Set a new profile image for the current user
   *
   * @namedParams
   * @param {blob} image - The new profile image for the current user
   */
Set a new profile image for the current user
@namedParams
@param {blob} image - The new profile image for the current user
Set a new profile image for the current user @namedParams @param { blob } image - The new profile image for the current user
async SetUserProfileImage({image}) {
    const libraryId = this.client.contentSpaceLibraryId;
    const objectId = Utils.AddressToObjectId(await this.WalletAddress());
    const editRequest = await this.client.EditContentObject({libraryId, objectId});
    const uploadResponse = await this.client.UploadPart({
      libraryId,
      objectId,
      writeToken: editRequest.write_token,
      data: image
    });
    await this.client.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editRequest.write_token,
      metadata: {
        image: uploadResponse.part.hash
      }
    });
    await this.client.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editRequest.write_token,
      metadataSubtree: "public",
      metadata: {
        image: uploadResponse.part.hash
      }
    });
    await this.client.FinalizeContentObject({libraryId, objectId, writeToken: editRequest.write_token});
    this.__InvalidateCache();
  }
async SetUserProfileImage ( { image } ) { const libraryId = this . client . contentSpaceLibraryId ; const objectId = Utils . AddressToObjectId ( await this . WalletAddress ( ) ) ; const editRequest = await this . client . EditContentObject ( { libraryId , objectId } ) ; const uploadResponse = await this . client . UploadPart ( { libraryId , objectId , writeToken : editRequest . write_token , data : image } ) ; await this . client . MergeMetadata ( { libraryId , objectId , writeToken : editRequest . write_token , metadata : { image : uploadResponse . part . hash } } ) ; await this . client . MergeMetadata ( { libraryId , objectId , writeToken : editRequest . write_token , metadataSubtree : "public" , metadata : { image : uploadResponse . part . hash } } ) ; await this . client . FinalizeContentObject ( { libraryId , objectId , writeToken : editRequest . write_token } ) ; this . __InvalidateCache ( ) ; }
Set a new profile image for the current user
 @namedParams
 @param {blob} image - The new profile image for the current user
Set a new profile image for the current user @namedParams @param { blob } image - The new profile image for the current user