polfan-server-js-client 0.4.2 → 0.4.3
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/.idea/shelf/Uncommitted_changes_before_Update_at_08_09_2026_17_04_[Changes]/shelved.patch +0 -0
- package/.idea/shelf/Uncommitted_changes_before_Update_at_08_09_2026_17_04__Changes_.xml +4 -0
- package/.idea/workspace.xml +36 -21
- package/build/index.cjs.js +20 -0
- package/build/index.cjs.js.map +1 -1
- package/build/index.umd.js +1 -1
- package/build/index.umd.js.map +1 -1
- package/build/types/Permissions.d.ts +4 -0
- package/build/types/index.d.ts +2 -2
- package/build/types/types/src/index.d.ts +3 -3
- package/build/types/types/src/schemes/Message.d.ts +10 -0
- package/build/types/types/src/schemes/Role.d.ts +14 -0
- package/build/types/types/src/schemes/commands/CreateRole.d.ts +1 -0
- package/build/types/types/src/schemes/commands/UpdateRole.d.ts +1 -0
- package/package.json +1 -1
- package/src/Permissions.ts +1 -0
- package/src/index.ts +2 -1
- package/src/types/src/index.ts +4 -2
- package/src/types/src/schemes/Message.ts +11 -0
- package/src/types/src/schemes/Role.ts +16 -1
- package/src/types/src/schemes/commands/CreateRole.ts +1 -0
- package/src/types/src/schemes/commands/UpdateRole.ts +1 -0
- package/tests/space-roles.test.ts +5 -5
package/.idea/shelf/Uncommitted_changes_before_Update_at_08_09_2026_17_04_[Changes]/shelved.patch
ADDED
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<changelist name="Uncommitted_changes_before_Update_at_08_09_2026_17_04_[Changes]" date="1788879866780" recycled="true" deleted="true">
|
|
2
|
+
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_08_09_2026_17_04_[Changes]/shelved.patch" />
|
|
3
|
+
<option name="DESCRIPTION" value="Uncommitted changes before Update at 08.09.2026 17:04 [Changes]" />
|
|
4
|
+
</changelist>
|
package/.idea/workspace.xml
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
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="
|
|
7
|
+
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Bump version This reverts commit b9ff2004">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/src/types" beforeDir="false" afterPath="$PROJECT_DIR$/src/types" afterDir="false" />
|
|
9
|
+
</list>
|
|
8
10
|
<option name="SHOW_DIALOG" value="false" />
|
|
9
11
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
12
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
<execution />
|
|
15
17
|
</component>
|
|
16
18
|
<component name="EmbeddingIndexingInfo">
|
|
17
|
-
<option name="cachedIndexableFilesCount" value="
|
|
19
|
+
<option name="cachedIndexableFilesCount" value="223" />
|
|
18
20
|
</component>
|
|
19
21
|
<component name="Git.Rebase.Settings">
|
|
20
22
|
<option name="NEW_BASE" value="master" />
|
|
@@ -28,10 +30,10 @@
|
|
|
28
30
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
29
31
|
<map>
|
|
30
32
|
<entry key="$PROJECT_DIR$" value="claude/chat-reactions-polls-system-hwea5i" />
|
|
31
|
-
<entry key="$PROJECT_DIR$/src/types" value="
|
|
33
|
+
<entry key="$PROJECT_DIR$/src/types" value="claude/chat-reactions-polls-system-hwea5i" />
|
|
32
34
|
</map>
|
|
33
35
|
</option>
|
|
34
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR
|
|
36
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/src/types" />
|
|
35
37
|
<option name="RESET_MODE" value="HARD" />
|
|
36
38
|
<option name="ROOT_SYNC" value="DONT_SYNC" />
|
|
37
39
|
</component>
|
|
@@ -44,12 +46,12 @@
|
|
|
44
46
|
<component name="GitRewordedCommitMessages">
|
|
45
47
|
<option name="commitMessagesMapping">
|
|
46
48
|
<RewordedCommitMessageMapping>
|
|
47
|
-
<option name="originalMessage" value="
|
|
48
|
-
<option name="rewordedMessage" value="
|
|
49
|
+
<option name="originalMessage" value="Role flags and the MentionAllRoles permission Re-exports the RoleFlag enum and registers the new permission bit, plus the types submodule bump carrying `Role.flags`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018QUxtDbWJMFih7bKH6thpn" />
|
|
50
|
+
<option name="rewordedMessage" value="Role flags and the MentionAllRoles permission" />
|
|
49
51
|
</RewordedCommitMessageMapping>
|
|
50
52
|
</option>
|
|
51
53
|
<option name="currentCommit" value="1" />
|
|
52
|
-
<option name="onto" value="
|
|
54
|
+
<option name="onto" value="54de756e28152bbda67a6480b48df607e3425e4a" />
|
|
53
55
|
</component>
|
|
54
56
|
<component name="GithubPullRequestsUISettings">{
|
|
55
57
|
"selectedUrlAndAccountId": {
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
84
86
|
"codeWithMe.voiceChat.enabledByDefault": "false",
|
|
85
87
|
"com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
|
|
86
|
-
"git-widget-placeholder": "
|
|
88
|
+
"git-widget-placeholder": "main",
|
|
87
89
|
"git.auto.fetch.suggestion.counter": "3",
|
|
88
90
|
"ignore.virus.scanning.warn.message": "true",
|
|
89
91
|
"junie.onboarding.icon.badge.shown": "true",
|
|
@@ -253,15 +255,10 @@
|
|
|
253
255
|
<workItem from="1786526830597" duration="598000" />
|
|
254
256
|
<workItem from="1787125977456" duration="278000" />
|
|
255
257
|
<workItem from="1787576741803" duration="2076000" />
|
|
256
|
-
<workItem from="1787648458595" duration="
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
<
|
|
260
|
-
<created>1765145134871</created>
|
|
261
|
-
<option name="number" value="00067" />
|
|
262
|
-
<option name="presentableId" value="LOCAL-00067" />
|
|
263
|
-
<option name="project" value="LOCAL" />
|
|
264
|
-
<updated>1765145134871</updated>
|
|
258
|
+
<workItem from="1787648458595" duration="3034000" />
|
|
259
|
+
<workItem from="1787994100244" duration="588000" />
|
|
260
|
+
<workItem from="1788873818076" duration="1523000" />
|
|
261
|
+
<workItem from="1788879390791" duration="635000" />
|
|
265
262
|
</task>
|
|
266
263
|
<task id="LOCAL-00068" summary="Improve reconnect on timeout">
|
|
267
264
|
<option name="closed" value="true" />
|
|
@@ -647,7 +644,15 @@
|
|
|
647
644
|
<option name="project" value="LOCAL" />
|
|
648
645
|
<updated>1787581107970</updated>
|
|
649
646
|
</task>
|
|
650
|
-
<
|
|
647
|
+
<task id="LOCAL-00116" summary="Bump version This reverts commit b9ff2004">
|
|
648
|
+
<option name="closed" value="true" />
|
|
649
|
+
<created>1787649696666</created>
|
|
650
|
+
<option name="number" value="00116" />
|
|
651
|
+
<option name="presentableId" value="LOCAL-00116" />
|
|
652
|
+
<option name="project" value="LOCAL" />
|
|
653
|
+
<updated>1787649696666</updated>
|
|
654
|
+
</task>
|
|
655
|
+
<option name="localTasksCounter" value="117" />
|
|
651
656
|
<servers />
|
|
652
657
|
</component>
|
|
653
658
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -664,6 +669,11 @@
|
|
|
664
669
|
<option value="master" />
|
|
665
670
|
</option>
|
|
666
671
|
</RecentGroup>
|
|
672
|
+
<RecentGroup>
|
|
673
|
+
<option name="FILTER_VALUES">
|
|
674
|
+
<option value="claude/role-flags-separation-mentions-g6v7s0" />
|
|
675
|
+
</option>
|
|
676
|
+
</RecentGroup>
|
|
667
677
|
<RecentGroup>
|
|
668
678
|
<option name="FILTER_VALUES">
|
|
669
679
|
<option value="claude/chat-reactions-polls-system-hwea5i" />
|
|
@@ -699,6 +709,11 @@
|
|
|
699
709
|
<entry key="MAIN">
|
|
700
710
|
<value>
|
|
701
711
|
<State>
|
|
712
|
+
<option name="CUSTOM_BOOLEAN_PROPERTIES">
|
|
713
|
+
<map>
|
|
714
|
+
<entry key="Show.Git.Branches" value="true" />
|
|
715
|
+
</map>
|
|
716
|
+
</option>
|
|
702
717
|
<option name="FILTERS">
|
|
703
718
|
<map>
|
|
704
719
|
<entry key="branch">
|
|
@@ -717,8 +732,6 @@
|
|
|
717
732
|
</option>
|
|
718
733
|
</component>
|
|
719
734
|
<component name="VcsManagerConfiguration">
|
|
720
|
-
<MESSAGE value="Fix room member update event handle" />
|
|
721
|
-
<MESSAGE value="Fix room member update event handle" />
|
|
722
735
|
<MESSAGE value="Add jumpTo message support" />
|
|
723
736
|
<MESSAGE value="Adjust to followed topics changes in protocol" />
|
|
724
737
|
<MESSAGE value="SetSessionData command support" />
|
|
@@ -742,7 +755,9 @@
|
|
|
742
755
|
<MESSAGE value="User presence status support" />
|
|
743
756
|
<MESSAGE value="Reacting changes" />
|
|
744
757
|
<MESSAGE value="Revert "User presence status support" This reverts commit b9ff2004" />
|
|
745
|
-
<
|
|
758
|
+
<MESSAGE value="Bump version This reverts commit b9ff2004" />
|
|
759
|
+
<MESSAGE value="Role flags and the MentionAllRoles permission" />
|
|
760
|
+
<option name="LAST_COMMIT_MESSAGE" value="Role flags and the MentionAllRoles permission" />
|
|
746
761
|
</component>
|
|
747
762
|
<component name="XSLT-Support.FileAssociations.UIState">
|
|
748
763
|
<expand />
|
package/build/index.cjs.js
CHANGED
|
@@ -48,6 +48,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
48
48
|
ObservableIndexedObjectCollection: () => (/* reexport */ ObservableIndexedObjectCollection),
|
|
49
49
|
PermissionDefinition: () => (/* reexport */ PermissionDefinition),
|
|
50
50
|
Permissions: () => (/* reexport */ Permissions),
|
|
51
|
+
RoleFlag: () => (/* reexport */ RoleFlag),
|
|
51
52
|
UserStatus: () => (/* reexport */ UserStatus),
|
|
52
53
|
WebApiChatClient: () => (/* reexport */ WebApiChatClient),
|
|
53
54
|
WebSocketChatClient: () => (/* reexport */ WebSocketChatClient),
|
|
@@ -4326,6 +4327,10 @@ Permissions_defineProperty(Permissions, "list", {
|
|
|
4326
4327
|
CreatePolls: {
|
|
4327
4328
|
value: 1 << 22,
|
|
4328
4329
|
maxLayer: Layer.Topic
|
|
4330
|
+
},
|
|
4331
|
+
MentionAllRoles: {
|
|
4332
|
+
value: 1 << 23,
|
|
4333
|
+
maxLayer: Layer.Topic
|
|
4329
4334
|
}
|
|
4330
4335
|
});
|
|
4331
4336
|
;// ./src/state-tracker/PermissionsManager.ts
|
|
@@ -6134,6 +6139,21 @@ var FilesClient = /*#__PURE__*/function (_AbstractRestClient) {
|
|
|
6134
6139
|
}()
|
|
6135
6140
|
}]);
|
|
6136
6141
|
}(AbstractRestClient);
|
|
6142
|
+
;// ./src/types/src/schemes/Role.ts
|
|
6143
|
+
/**
|
|
6144
|
+
* Bit flags of a role, stored in {@link Role.flags}.
|
|
6145
|
+
*
|
|
6146
|
+
* - `SeparateOnMembersList` - available holders of the role are listed in their
|
|
6147
|
+
* own group of the members list, headed by the role name.
|
|
6148
|
+
* - `MentionableByEveryone` - anybody may mention the role with notification
|
|
6149
|
+
* effects; without it the mention is decorative only, unless the author holds
|
|
6150
|
+
* the `MentionAllRoles` permission.
|
|
6151
|
+
*/
|
|
6152
|
+
var RoleFlag = /*#__PURE__*/function (RoleFlag) {
|
|
6153
|
+
RoleFlag[RoleFlag["SeparateOnMembersList"] = 1] = "SeparateOnMembersList";
|
|
6154
|
+
RoleFlag[RoleFlag["MentionableByEveryone"] = 2] = "MentionableByEveryone";
|
|
6155
|
+
return RoleFlag;
|
|
6156
|
+
}({});
|
|
6137
6157
|
;// ./src/types/src/schemes/User.ts
|
|
6138
6158
|
/**
|
|
6139
6159
|
* Availability of a user, aggregated over all of their sessions.
|