@supernova-studio/client 0.55.2 → 0.55.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6447,6 +6447,7 @@ var DTOUser = z230.object({
6447
6447
  var DTOUserGetResponse = z230.object({
6448
6448
  user: DTOUser
6449
6449
  });
6450
+ var DTOUserProfileUpdate = UserProfileUpdate;
6450
6451
 
6451
6452
  // src/api/dto/users/authenticated-user.ts
6452
6453
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
@@ -6549,6 +6550,12 @@ var UsersEndpoint = class {
6549
6550
  delete(uid) {
6550
6551
  return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
6551
6552
  }
6553
+ updateProfile(uid, body) {
6554
+ return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
6555
+ method: "PUT",
6556
+ body
6557
+ });
6558
+ }
6552
6559
  };
6553
6560
 
6554
6561
  // src/api/endpoints/workspace-invites.ts
@@ -6929,7 +6936,8 @@ var VersionRoomBaseYDoc = class {
6929
6936
  const map = this.documentationPageContentHashesYMap;
6930
6937
  const result = {};
6931
6938
  map.forEach((hash2, key) => {
6932
- result[key] = hash2;
6939
+ if (typeof hash2 === "string")
6940
+ result[key] = hash2;
6933
6941
  });
6934
6942
  return result;
6935
6943
  }
@@ -11459,6 +11467,13 @@ var BackendVersionRoomYDoc = class {
11459
11467
  transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
11460
11468
  });
11461
11469
  }
11470
+ getDocumentationPageContentHashes() {
11471
+ const versionDoc = new VersionRoomBaseYDoc(this.yDoc);
11472
+ const validHashes = Object.entries(versionDoc.getDocumentationPageContentHashes()).filter((e) => {
11473
+ return e[1].length < 100;
11474
+ });
11475
+ return Object.fromEntries(validHashes);
11476
+ }
11462
11477
  };
11463
11478
  export {
11464
11479
  BackendVersionRoomYDoc,
@@ -11668,6 +11683,7 @@ export {
11668
11683
  DTOUserOnboardingDepartment,
11669
11684
  DTOUserOnboardingJobLevel,
11670
11685
  DTOUserProfile,
11686
+ DTOUserProfileUpdate,
11671
11687
  DTOUserProfileUpdatePayload,
11672
11688
  DTOUserProfileUpdateResponse,
11673
11689
  DTOUserSource,