polfan-server-js-client 0.2.78 → 0.2.80

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.
Files changed (119) hide show
  1. package/.idea/workspace.xml +46 -44
  2. package/build/index.cjs.js +62 -41
  3. package/build/index.cjs.js.map +1 -1
  4. package/build/index.umd.js +1 -1
  5. package/build/index.umd.js.map +1 -1
  6. package/build/types/Permissions.d.ts +7 -11
  7. package/build/types/state-tracker/TopicHistoryWindow.d.ts +10 -0
  8. package/build/types/types/src/schemes/commands/GetMessages.d.ts +1 -0
  9. package/package.json +1 -1
  10. package/src/Permissions.ts +8 -8
  11. package/src/state-tracker/TopicHistoryWindow.ts +382 -356
  12. package/src/types/README.md +2 -2
  13. package/src/types/package-lock.json +31 -31
  14. package/src/types/package.json +16 -16
  15. package/src/types/src/index.ts +275 -275
  16. package/src/types/src/schemes/ChatLocation.ts +4 -4
  17. package/src/types/src/schemes/Emoticon.ts +9 -9
  18. package/src/types/src/schemes/Envelope.ts +4 -4
  19. package/src/types/src/schemes/FollowedTopic.ts +6 -6
  20. package/src/types/src/schemes/Message.ts +20 -20
  21. package/src/types/src/schemes/PermissionOverwritesValue.ts +3 -3
  22. package/src/types/src/schemes/Role.ts +5 -5
  23. package/src/types/src/schemes/Room.ts +23 -23
  24. package/src/types/src/schemes/RoomMember.ts +10 -10
  25. package/src/types/src/schemes/RoomSummary.ts +13 -13
  26. package/src/types/src/schemes/Space.ts +19 -19
  27. package/src/types/src/schemes/SpaceMember.ts +6 -6
  28. package/src/types/src/schemes/SpaceSummary.ts +7 -7
  29. package/src/types/src/schemes/Topic.ts +8 -8
  30. package/src/types/src/schemes/User.ts +8 -8
  31. package/src/types/src/schemes/UserState.ts +6 -6
  32. package/src/types/src/schemes/commands/Ack.ts +5 -5
  33. package/src/types/src/schemes/commands/AssignRole.ts +7 -7
  34. package/src/types/src/schemes/commands/CreateEmoticon.ts +4 -4
  35. package/src/types/src/schemes/commands/CreateMessage.ts +9 -9
  36. package/src/types/src/schemes/commands/CreateOwner.ts +5 -5
  37. package/src/types/src/schemes/commands/CreateRole.ts +5 -5
  38. package/src/types/src/schemes/commands/CreateRoom.ts +10 -10
  39. package/src/types/src/schemes/commands/CreateSpace.ts +4 -4
  40. package/src/types/src/schemes/commands/CreateTopic.ts +13 -13
  41. package/src/types/src/schemes/commands/DeassignRole.ts +7 -7
  42. package/src/types/src/schemes/commands/DeleteEmoticon.ts +2 -2
  43. package/src/types/src/schemes/commands/DeleteOwner.ts +5 -5
  44. package/src/types/src/schemes/commands/DeleteRole.ts +4 -4
  45. package/src/types/src/schemes/commands/DeleteRoom.ts +3 -3
  46. package/src/types/src/schemes/commands/DeleteSpace.ts +3 -3
  47. package/src/types/src/schemes/commands/DeleteTopic.ts +5 -5
  48. package/src/types/src/schemes/commands/FollowTopic.ts +4 -4
  49. package/src/types/src/schemes/commands/GetComputedPermissions.ts +5 -5
  50. package/src/types/src/schemes/commands/GetDiscoverableSpaces.ts +2 -2
  51. package/src/types/src/schemes/commands/GetEmoticons.ts +2 -2
  52. package/src/types/src/schemes/commands/GetFollowedTopics.ts +4 -4
  53. package/src/types/src/schemes/commands/GetMessages.ts +7 -6
  54. package/src/types/src/schemes/commands/GetOwners.ts +4 -4
  55. package/src/types/src/schemes/commands/GetPermissionOverwriteTargets.ts +4 -4
  56. package/src/types/src/schemes/commands/GetPermissionOverwrites.ts +6 -6
  57. package/src/types/src/schemes/commands/GetRoomMembers.ts +3 -3
  58. package/src/types/src/schemes/commands/GetSession.ts +2 -2
  59. package/src/types/src/schemes/commands/GetSpaceMembers.ts +3 -3
  60. package/src/types/src/schemes/commands/GetSpaceRooms.ts +3 -3
  61. package/src/types/src/schemes/commands/GetTopics.ts +3 -3
  62. package/src/types/src/schemes/commands/JoinRoom.ts +3 -3
  63. package/src/types/src/schemes/commands/JoinSpace.ts +3 -3
  64. package/src/types/src/schemes/commands/LeaveRoom.ts +3 -3
  65. package/src/types/src/schemes/commands/LeaveSpace.ts +3 -3
  66. package/src/types/src/schemes/commands/SetPermissionOverwrites.ts +8 -8
  67. package/src/types/src/schemes/commands/UnfollowTopic.ts +4 -4
  68. package/src/types/src/schemes/commands/UpdateRole.ts +6 -6
  69. package/src/types/src/schemes/commands/UpdateRoom.ts +10 -10
  70. package/src/types/src/schemes/commands/UpdateSpace.ts +12 -12
  71. package/src/types/src/schemes/commands/UpdateTopic.ts +5 -5
  72. package/src/types/src/schemes/events/Bye.ts +5 -5
  73. package/src/types/src/schemes/events/ComputedPermissions.ts +6 -6
  74. package/src/types/src/schemes/events/DiscoverableSpaces.ts +4 -4
  75. package/src/types/src/schemes/events/EmoticonDeleted.ts +3 -3
  76. package/src/types/src/schemes/events/Emoticons.ts +6 -6
  77. package/src/types/src/schemes/events/Error.ts +4 -4
  78. package/src/types/src/schemes/events/FollowedTopicUpdated.ts +4 -4
  79. package/src/types/src/schemes/events/FollowedTopics.ts +6 -6
  80. package/src/types/src/schemes/events/Messages.ts +6 -6
  81. package/src/types/src/schemes/events/NewEmoticon.ts +4 -4
  82. package/src/types/src/schemes/events/NewMessage.ts +5 -5
  83. package/src/types/src/schemes/events/NewRole.ts +6 -6
  84. package/src/types/src/schemes/events/NewRoom.ts +6 -6
  85. package/src/types/src/schemes/events/NewTopic.ts +6 -6
  86. package/src/types/src/schemes/events/Ok.ts +2 -2
  87. package/src/types/src/schemes/events/Owners.ts +8 -8
  88. package/src/types/src/schemes/events/PermissionOverwriteTargets.ts +10 -10
  89. package/src/types/src/schemes/events/PermissionOverwrites.ts +8 -8
  90. package/src/types/src/schemes/events/PermissionOverwritesUpdated.ts +8 -8
  91. package/src/types/src/schemes/events/RoleDeleted.ts +4 -4
  92. package/src/types/src/schemes/events/RoleUpdated.ts +5 -5
  93. package/src/types/src/schemes/events/RoomDeleted.ts +3 -3
  94. package/src/types/src/schemes/events/RoomJoined.ts +5 -5
  95. package/src/types/src/schemes/events/RoomLeft.ts +6 -6
  96. package/src/types/src/schemes/events/RoomMemberJoined.ts +6 -6
  97. package/src/types/src/schemes/events/RoomMemberLeft.ts +4 -4
  98. package/src/types/src/schemes/events/RoomMemberUpdated.ts +6 -6
  99. package/src/types/src/schemes/events/RoomMembers.ts +6 -6
  100. package/src/types/src/schemes/events/RoomUpdated.ts +4 -4
  101. package/src/types/src/schemes/events/Session.ts +9 -9
  102. package/src/types/src/schemes/events/SpaceDeleted.ts +3 -3
  103. package/src/types/src/schemes/events/SpaceJoined.ts +5 -5
  104. package/src/types/src/schemes/events/SpaceLeft.ts +6 -6
  105. package/src/types/src/schemes/events/SpaceMemberJoined.ts +6 -6
  106. package/src/types/src/schemes/events/SpaceMemberLeft.ts +4 -4
  107. package/src/types/src/schemes/events/SpaceMemberUpdated.ts +7 -7
  108. package/src/types/src/schemes/events/SpaceMembers.ts +6 -6
  109. package/src/types/src/schemes/events/SpaceRooms.ts +6 -6
  110. package/src/types/src/schemes/events/SpaceUpdated.ts +4 -4
  111. package/src/types/src/schemes/events/TopicDeleted.ts +5 -5
  112. package/src/types/src/schemes/events/TopicFollowed.ts +4 -4
  113. package/src/types/src/schemes/events/TopicUnfollowed.ts +4 -4
  114. package/src/types/src/schemes/events/TopicUpdated.ts +7 -7
  115. package/src/types/src/schemes/events/Topics.ts +6 -6
  116. package/src/types/src/schemes/events/UserUpdated.ts +4 -4
  117. package/src/types/tsconfig.json +74 -74
  118. package/tests/history-window.test.ts +253 -223
  119. package/tests/permissions.test.ts +2 -2
@@ -4,7 +4,7 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Add possibility to pass custom headers in AbstractRestClient" />
7
+ <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Improve hasOldest behavior when resetToLatest used" />
8
8
  <option name="SHOW_DIALOG" value="false" />
9
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -49,33 +49,33 @@
49
49
  <option name="hideEmptyMiddlePackages" value="true" />
50
50
  <option name="showLibraryContents" value="true" />
51
51
  </component>
52
- <component name="PropertiesComponent">{
53
- &quot;keyToString&quot;: {
54
- &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
55
- &quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager&quot;: &quot;true&quot;,
56
- &quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252&quot;: &quot;true&quot;,
57
- &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
58
- &quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
59
- &quot;com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1&quot;: &quot;true&quot;,
60
- &quot;git-widget-placeholder&quot;: &quot;master&quot;,
61
- &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
62
- &quot;junie.onboarding.icon.badge.shown&quot;: &quot;true&quot;,
63
- &quot;last_opened_file_path&quot;: &quot;//wsl.localhost/Debian/home/jarek/polfan-js-client-library&quot;,
64
- &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
65
- &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
66
- &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
67
- &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
68
- &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
69
- &quot;to.speed.mode.migration.done&quot;: &quot;true&quot;,
70
- &quot;ts.external.directory.path&quot;: &quot;\\\\wsl.localhost\\Debian\\home\\jarek\\polfan-js-client-library\\node_modules\\typescript\\lib&quot;,
71
- &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
52
+ <component name="PropertiesComponent"><![CDATA[{
53
+ "keyToString": {
54
+ "RunOnceActivity.ShowReadmeOnStart": "true",
55
+ "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
56
+ "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
57
+ "RunOnceActivity.git.unshallow": "true",
58
+ "RunOnceActivity.typescript.service.memoryLimit.init": "true",
59
+ "com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
60
+ "git-widget-placeholder": "master",
61
+ "ignore.virus.scanning.warn.message": "true",
62
+ "junie.onboarding.icon.badge.shown": "true",
63
+ "last_opened_file_path": "//wsl.localhost/Debian/home/jarek/polfan-js-client-library",
64
+ "node.js.detected.package.eslint": "true",
65
+ "node.js.detected.package.tslint": "true",
66
+ "node.js.selected.package.eslint": "(autodetect)",
67
+ "node.js.selected.package.tslint": "(autodetect)",
68
+ "nodejs_package_manager_path": "npm",
69
+ "to.speed.mode.migration.done": "true",
70
+ "ts.external.directory.path": "\\\\wsl.localhost\\Debian\\home\\jarek\\polfan-js-client-library\\node_modules\\typescript\\lib",
71
+ "vue.rearranger.settings.migration": "true"
72
72
  }
73
- }</component>
73
+ }]]></component>
74
74
  <component name="SharedIndexes">
75
75
  <attachedChunks>
76
76
  <set>
77
- <option value="bundled-js-predefined-d6986cc7102b-c7e53b3be11b-JavaScript-PS-253.28294.257" />
78
- <option value="bundled-php-predefined-a98d8de5180a-09080813851e-com.jetbrains.php.sharedIndexes-PS-253.28294.257" />
77
+ <option value="bundled-js-predefined-d6986cc7102b-9b0f141eb926-JavaScript-PS-253.29346.257" />
78
+ <option value="bundled-php-predefined-a98d8de5180a-0e0d91225499-com.jetbrains.php.sharedIndexes-PS-253.29346.257" />
79
79
  </set>
80
80
  </attachedChunks>
81
81
  </component>
@@ -165,22 +165,8 @@
165
165
  <workItem from="1767393276255" duration="3395000" />
166
166
  <workItem from="1767552416580" duration="351000" />
167
167
  <workItem from="1767552978469" duration="268000" />
168
- </task>
169
- <task id="LOCAL-00025" summary="Private rooms and space summaries">
170
- <option name="closed" value="true" />
171
- <created>1742760583473</created>
172
- <option name="number" value="00025" />
173
- <option name="presentableId" value="LOCAL-00025" />
174
- <option name="project" value="LOCAL" />
175
- <updated>1742760583473</updated>
176
- </task>
177
- <task id="LOCAL-00026" summary="Private rooms and space summaries">
178
- <option name="closed" value="true" />
179
- <created>1742760630283</created>
180
- <option name="number" value="00026" />
181
- <option name="presentableId" value="LOCAL-00026" />
182
- <option name="project" value="LOCAL" />
183
- <updated>1742760630283</updated>
168
+ <workItem from="1768071515045" duration="2510000" />
169
+ <workItem from="1769020050643" duration="4890000" />
184
170
  </task>
185
171
  <task id="LOCAL-00027" summary="Custom nicks support">
186
172
  <option name="closed" value="true" />
@@ -558,7 +544,23 @@
558
544
  <option name="project" value="LOCAL" />
559
545
  <updated>1767553240417</updated>
560
546
  </task>
561
- <option name="localTasksCounter" value="74" />
547
+ <task id="LOCAL-00074" summary="Fix URL parameter handling in GET and DELETE requests">
548
+ <option name="closed" value="true" />
549
+ <created>1768238042270</created>
550
+ <option name="number" value="00074" />
551
+ <option name="presentableId" value="LOCAL-00074" />
552
+ <option name="project" value="LOCAL" />
553
+ <updated>1768238042270</updated>
554
+ </task>
555
+ <task id="LOCAL-00075" summary="Improve hasOldest behavior when resetToLatest used">
556
+ <option name="closed" value="true" />
557
+ <created>1769023135404</created>
558
+ <option name="number" value="00075" />
559
+ <option name="presentableId" value="LOCAL-00075" />
560
+ <option name="project" value="LOCAL" />
561
+ <updated>1769023135404</updated>
562
+ </task>
563
+ <option name="localTasksCounter" value="76" />
562
564
  <servers />
563
565
  </component>
564
566
  <component name="TypeScriptGeneratedFilesManager">
@@ -576,8 +578,6 @@
576
578
  </option>
577
579
  </component>
578
580
  <component name="VcsManagerConfiguration">
579
- <MESSAGE value="Update schemes" />
580
- <MESSAGE value="Fix for incorrectly emitted RoomUpdated event" />
581
581
  <MESSAGE value="Relationships support" />
582
582
  <MESSAGE value="Update a relationship scheme" />
583
583
  <MESSAGE value="Fix a relationship type" />
@@ -601,7 +601,9 @@
601
601
  <MESSAGE value="Fix permission check (caching overwrites)" />
602
602
  <MESSAGE value="Remove AuthClient, export AbstractRestClient" />
603
603
  <MESSAGE value="Add possibility to pass custom headers in AbstractRestClient" />
604
- <option name="LAST_COMMIT_MESSAGE" value="Add possibility to pass custom headers in AbstractRestClient" />
604
+ <MESSAGE value="Fix URL parameter handling in GET and DELETE requests" />
605
+ <MESSAGE value="Improve hasOldest behavior when resetToLatest used" />
606
+ <option name="LAST_COMMIT_MESSAGE" value="Improve hasOldest behavior when resetToLatest used" />
605
607
  </component>
606
608
  <component name="github-copilot-workspace">
607
609
  <instructionFileLocations>
@@ -665,22 +665,22 @@ function TopicHistoryWindow_toPropertyKey(t) { var i = TopicHistoryWindow_toPrim
665
665
  function TopicHistoryWindow_toPrimitive(t, r) { if ("object" != TopicHistoryWindow_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != TopicHistoryWindow_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
666
666
 
667
667
  var WindowState = /*#__PURE__*/function (WindowState) {
668
- /**
669
- * The latest messages (those received live) are available in the history window, history has not been fetched.
668
+ /**
669
+ * The latest messages (those received live) are available in the history window, history has not been fetched.
670
670
  */
671
671
  WindowState[WindowState["LIVE"] = 0] = "LIVE";
672
- /**
673
- * The latest messages has been fetched and are available in the history window.
672
+ /**
673
+ * The latest messages has been fetched and are available in the history window.
674
674
  */
675
675
  WindowState[WindowState["LATEST"] = 1] = "LATEST";
676
- /**
677
- * The historical messages have been fetched and are available in the history window.
678
- * Latest messages are not available and will not be available.
676
+ /**
677
+ * The historical messages have been fetched and are available in the history window.
678
+ * Latest messages are not available and will not be available.
679
679
  */
680
680
  WindowState[WindowState["PAST"] = 2] = "PAST";
681
- /**
682
- * The oldest messages have been fetched and are available in the history window.
683
- * Next attempts to fetch previous messages will result with no-op.
681
+ /**
682
+ * The oldest messages have been fetched and are available in the history window.
683
+ * Next attempts to fetch previous messages will result with no-op.
684
684
  */
685
685
  WindowState[WindowState["OLDEST"] = 3] = "OLDEST";
686
686
  return WindowState;
@@ -697,6 +697,8 @@ var TraversableRemoteCollection = /*#__PURE__*/function (_ObservableIndexedObj)
697
697
  current: WindowState.LIVE,
698
698
  ongoing: undefined,
699
699
  limit: 50,
700
+ fetchLimit: 50,
701
+ lastFetchCount: 0,
700
702
  oldestId: null
701
703
  });
702
704
  return _this;
@@ -705,26 +707,42 @@ var TraversableRemoteCollection = /*#__PURE__*/function (_ObservableIndexedObj)
705
707
  return TopicHistoryWindow_createClass(TraversableRemoteCollection, [{
706
708
  key: "state",
707
709
  get:
708
- /**
709
- * Current mode od collection window. To change mode, call one of available fetch methods.
710
+ /**
711
+ * Current mode od collection window. To change mode, call one of available fetch methods.
710
712
  */
711
713
  function get() {
712
714
  return this.internalState.current;
713
715
  }
714
716
  }, {
715
- key: "limit",
717
+ key: "fetchLimit",
716
718
  get:
717
- /**
718
- * Maximum numer of items stored in window.
719
- * Null for unlimited.
719
+ /**
720
+ * Number of items to fetch per request.
720
721
  */
721
722
  function get() {
723
+ return this.internalState.fetchLimit;
724
+ }
725
+
726
+ /**
727
+ * Sets number of items to fetch per request.
728
+ */,
729
+ set: function set(value) {
730
+ this.internalState.fetchLimit = value;
731
+ }
732
+
733
+ /**
734
+ * Maximum numer of items stored in window.
735
+ * Null for unlimited.
736
+ */
737
+ }, {
738
+ key: "limit",
739
+ get: function get() {
722
740
  return this.internalState.limit;
723
741
  }
724
742
 
725
- /**
726
- * Maximum numer of items stored in window.
727
- * Null for unlimited.
743
+ /**
744
+ * Maximum numer of items stored in window.
745
+ * Null for unlimited.
728
746
  */,
729
747
  set: function set(value) {
730
748
  this.internalState.limit = value;
@@ -737,7 +755,7 @@ var TraversableRemoteCollection = /*#__PURE__*/function (_ObservableIndexedObj)
737
755
  }, {
738
756
  key: "hasOldest",
739
757
  get: function get() {
740
- return this.state === WindowState.OLDEST || this.internalState.oldestId !== null && this.has(this.internalState.oldestId);
758
+ return this.state === WindowState.OLDEST || this.state === WindowState.LATEST && this.length < this.fetchLimit || this.internalState.oldestId !== null && this.has(this.internalState.oldestId);
741
759
  }
742
760
  }, {
743
761
  key: "resetToLatest",
@@ -759,6 +777,7 @@ var TraversableRemoteCollection = /*#__PURE__*/function (_ObservableIndexedObj)
759
777
  return this.fetchLatestItems();
760
778
  case 3:
761
779
  result = _context.v;
780
+ this.internalState.lastFetchCount = result.length;
762
781
  case 4:
763
782
  _context.p = 4;
764
783
  this.internalState.ongoing = undefined;
@@ -797,6 +816,7 @@ var TraversableRemoteCollection = /*#__PURE__*/function (_ObservableIndexedObj)
797
816
  return this.fetchItemsBefore();
798
817
  case 3:
799
818
  result = _context2.v;
819
+ this.internalState.lastFetchCount = result ? result.length : 0;
800
820
  case 4:
801
821
  _context2.p = 4;
802
822
  this.internalState.ongoing = undefined;
@@ -856,6 +876,7 @@ var TraversableRemoteCollection = /*#__PURE__*/function (_ObservableIndexedObj)
856
876
  return this.fetchItemsAfter();
857
877
  case 3:
858
878
  result = _context3.v;
879
+ this.internalState.lastFetchCount = result ? result.length : 0;
859
880
  case 4:
860
881
  _context3.p = 4;
861
882
  this.internalState.ongoing = undefined;
@@ -935,8 +956,8 @@ var TraversableRemoteCollection = /*#__PURE__*/function (_ObservableIndexedObj)
935
956
  this.set.apply(this, TopicHistoryWindow_toConsumableArray(result));
936
957
  }
937
958
 
938
- /**
939
- * Return array with messages of count that matching limit.
959
+ /**
960
+ * Return array with messages of count that matching limit.
940
961
  */
941
962
  }, {
942
963
  key: "trimItemsArrayToLimit",
@@ -959,8 +980,8 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
959
980
  var bindEvents = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
960
981
  TopicHistoryWindow_classCallCheck(this, TopicHistoryWindow);
961
982
  _this2 = TopicHistoryWindow_callSuper(this, TopicHistoryWindow, ['id']);
962
- /**
963
- * Reexported available window modes enum.
983
+ /**
984
+ * Reexported available window modes enum.
964
985
  */
965
986
  TopicHistoryWindow_defineProperty(_this2, "WindowState", WindowState);
966
987
  _this2.roomId = roomId;
@@ -1079,9 +1100,9 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
1079
1100
  }
1080
1101
  return fetchPrevious;
1081
1102
  }()
1082
- /**
1083
- * For internal use.
1084
- * @internal
1103
+ /**
1104
+ * For internal use.
1105
+ * @internal
1085
1106
  */
1086
1107
  }, {
1087
1108
  key: "_updateMessageReference",
@@ -1136,7 +1157,8 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
1136
1157
  roomId: this.roomId,
1137
1158
  topicId: this.topicId
1138
1159
  },
1139
- after: afterId
1160
+ after: afterId,
1161
+ limit: this.internalState.fetchLimit
1140
1162
  });
1141
1163
  case 2:
1142
1164
  result = _context0.v;
@@ -1177,7 +1199,8 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
1177
1199
  roomId: this.roomId,
1178
1200
  topicId: this.topicId
1179
1201
  },
1180
- before: beforeId
1202
+ before: beforeId,
1203
+ limit: this.internalState.fetchLimit
1181
1204
  });
1182
1205
  case 2:
1183
1206
  result = _context1.v;
@@ -1209,7 +1232,8 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
1209
1232
  location: {
1210
1233
  roomId: this.roomId,
1211
1234
  topicId: this.topicId
1212
- }
1235
+ },
1236
+ limit: this.internalState.fetchLimit
1213
1237
  });
1214
1238
  case 1:
1215
1239
  result = _context10.v;
@@ -3116,14 +3140,11 @@ Permissions_defineProperty(Permissions, "list", {
3116
3140
  value: 1 << 2,
3117
3141
  maxLayer: Layer.Space
3118
3142
  },
3119
- ManageSpaceRoles: {
3143
+ ManageRoles: {
3120
3144
  value: 1 << 3,
3121
3145
  maxLayer: Layer.Space
3122
3146
  },
3123
- ManageRoom: {
3124
- value: 1 << 4,
3125
- maxLayer: Layer.Room
3126
- },
3147
+ //ManageRoom: {value: 1 << 4, maxLayer: Layer.Room},
3127
3148
  CreateTopics: {
3128
3149
  value: 1 << 5,
3129
3150
  maxLayer: Layer.Room
@@ -3132,11 +3153,11 @@ Permissions_defineProperty(Permissions, "list", {
3132
3153
  value: 1 << 6,
3133
3154
  maxLayer: Layer.Topic
3134
3155
  },
3135
- ManageSpaceMembers: {
3156
+ ManageMemberProfiles: {
3136
3157
  value: 1 << 7,
3137
3158
  maxLayer: Layer.Space
3138
3159
  },
3139
- ManageRoomMembers: {
3160
+ ManageMemberRoles: {
3140
3161
  value: 1 << 8,
3141
3162
  maxLayer: Layer.Room
3142
3163
  },
@@ -3148,11 +3169,11 @@ Permissions_defineProperty(Permissions, "list", {
3148
3169
  value: 1 << 10,
3149
3170
  maxLayer: Layer.Topic
3150
3171
  },
3151
- CreateSpaceRooms: {
3172
+ CreateRooms: {
3152
3173
  value: 1 << 11,
3153
3174
  maxLayer: Layer.Space
3154
3175
  },
3155
- ManageSpaceRooms: {
3176
+ ManageRoom: {
3156
3177
  value: 1 << 12,
3157
3178
  maxLayer: Layer.Space
3158
3179
  },
@@ -3160,11 +3181,11 @@ Permissions_defineProperty(Permissions, "list", {
3160
3181
  value: 1 << 13,
3161
3182
  maxLayer: Layer.Space
3162
3183
  },
3163
- ManageEmoticon: {
3184
+ ManageEmoticons: {
3164
3185
  value: 1 << 14,
3165
3186
  maxLayer: Layer.Space
3166
3187
  },
3167
- ManageBan: {
3188
+ ManageBans: {
3168
3189
  value: 1 << 15,
3169
3190
  maxLayer: Layer.Room
3170
3191
  },