@crossworks/client-types 0.300.20 → 0.300.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.300.20",
3
+ "version": "0.300.23",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -21,8 +21,10 @@ export const WORKSPACE_AREAS: readonly WorkspaceArea[] = [
21
21
  'keys',
22
22
  ];
23
23
 
24
- /** What a workspace is, for its default icon: the Admin workspace, the
25
- * Team workspace, a login's private workspace, or any other. */
24
+ /** What a workspace is, for its default icon: the Admin workspace, a
25
+ * login's private workspace, or any other. 'team' (the built-in Team
26
+ * workspace) comes only from a brain before migration 0286: Team is a
27
+ * normal workspace since (its icon was set to the one 'team' drew). */
26
28
  export type WorkspaceKind = 'admin' | 'team' | 'private' | 'other';
27
29
 
28
30
  /**
@@ -50,12 +52,13 @@ export type Workspace = WorkspaceLook & {
50
52
  assistant: { id: string; name: string } | null;
51
53
  /** The Admin workspace: its users manage the brain (requireArea). */
52
54
  isAdmin: boolean;
53
- /** Admin or Team, the built-in workspaces: they cannot be renamed or
54
- * archived (hide Rename and Archive there). Their connectors are
55
- * attached here like any workspace's since W5b2. */
55
+ /** The built-in workspace: Admin only since migration 0286 (Team too
56
+ * before). It cannot be renamed or archived (hide Rename and Archive
57
+ * there). Its connectors are attached here like any workspace's since
58
+ * W5b2. */
56
59
  builtIn: boolean;
57
- /** Every Admin workspace user is a Moderator here (the Team workspace);
58
- * only an Admin user may remove or demote one of them. */
60
+ /** Always false since migration 0286 (it marked the built-in Team
61
+ * workspace, where every Admin workspace user was a Moderator). */
59
62
  adminModerated: boolean;
60
63
  archived: boolean;
61
64
  userCount: number;
@@ -78,9 +81,9 @@ export type WorkspaceUser = {
78
81
  name: string | null;
79
82
  email: string;
80
83
  moderator: boolean;
81
- /** A Moderator here because they are an Admin user and the workspace is
82
- * Admin-moderated: nobody may remove or demote them here (409
83
- * admin_kept); they stop being one by leaving the Admin workspace. */
84
+ /** Always false since migration 0286 (a Moderator of the Admin-moderated
85
+ * Team workspace by being an Admin user). Only an Admin user ticks or
86
+ * clears Moderator now (403 admin_only for anyone else). */
84
87
  adminViaArea: boolean;
85
88
  /** Who added them ("Added by NAME on DATE", plan S1): `name` is the
86
89
  * display name or else the email. null when unknown (the adder's login