Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3350539
D10969.id36724.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
899 B
Referenced Files
None
Subscribers
None
D10969.id36724.diff
View Options
diff --git a/lib/types/thread-types.js b/lib/types/thread-types.js
--- a/lib/types/thread-types.js
+++ b/lib/types/thread-types.js
@@ -33,6 +33,7 @@
import { type ThreadType, threadTypeValidator } from './thread-types-enum.js';
import type { ClientUpdateInfo, ServerUpdateInfo } from './update-types.js';
import type { UserInfo, UserInfos } from './user-types.js';
+import type { SpecialRole } from '../permissions/special-roles.js';
import { type ThreadEntity } from '../utils/entity-text.js';
import { tID, tShape } from '../utils/validation-utils.js';
@@ -64,6 +65,14 @@
isDefault: t.Boolean,
});
+export type ServerLegacyRoleInfo = {
+ +id: string,
+ +name: string,
+ +permissions: ThreadRolePermissionsBlob,
+ +isDefault: boolean,
+ +specialRole: ?SpecialRole,
+};
+
export type LegacyThreadCurrentUserInfo = {
+role: ?string,
+permissions: ThreadPermissionsInfo,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 11:00 PM (17 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2572097
Default Alt Text
D10969.id36724.diff (899 B)
Attached To
Mode
D10969: [lib] Introduce `ServerLegacyRoleInfo`
Attached
Detach File
Event Timeline
Log In to Comment