@crossworks/client-types 0.703.1 → 0.705.0

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.703.1",
3
+ "version": "0.705.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/dto/grants.ts CHANGED
@@ -54,7 +54,8 @@ export type GrantsResponse = {
54
54
  /** "Add workspace": live workspaces where the caller is a Moderator that
55
55
  * the item is not granted to yet. Empty unless `mayManage`. */
56
56
  addable: GrantWorkspaceRef[];
57
- /** The caller moderates the item's home. */
57
+ /** The caller moderates the item's home, or is an Admin user who reads
58
+ * the item. */
58
59
  mayManage: boolean;
59
60
  /** The caller may open or close the item's public link: the item can
60
61
  * carry one, and the caller may edit it (an app: home Moderator). */
@@ -254,8 +255,14 @@ export type ItemCaps = {
254
255
  /** The caller may change it (a Moderator of its home, or a grant with
255
256
  * Write on, in the caller's own workspaces); never for a read-only copy. */
256
257
  mayEdit?: boolean;
257
- /** The caller may delete or move it (a Moderator of its home). */
258
+ /** The caller may delete it, share it, and move it anywhere (a Moderator
259
+ * of its home, or an Admin user who reads it). */
258
260
  mayManage?: boolean;
261
+ /** The caller may move it: mayManage, or a
262
+ * Moderator of a workspace that holds it, to a folder that workspace
263
+ * holds too. Never on a read-only copy. Absent from a brain before it:
264
+ * read mayManage. */
265
+ mayMove?: boolean;
259
266
  /** A read-only snapshot copy of an accepted item (data.snapshot_of):
260
267
  * nobody edits it, moves it out of its private workspace or shares it;
261
268
  * its author may delete it. Absent on every other item. */