@milaboratories/pl-middle-layer 2.6.4 → 2.7.1

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": "@milaboratories/pl-middle-layer",
3
- "version": "2.6.4",
3
+ "version": "2.7.1",
4
4
  "description": "Pl Middle Layer",
5
5
  "keywords": [],
6
6
  "license": "UNLICENSED",
@@ -22,30 +22,30 @@
22
22
  "@milaboratories/columns-collection-driver": "0.3.0",
23
23
  "@milaboratories/computable": "2.9.10",
24
24
  "@milaboratories/helpers": "1.14.7",
25
- "@milaboratories/pf-driver": "1.9.18",
26
- "@milaboratories/pf-spec-driver": "1.6.0",
27
- "@milaboratories/pframes-rs-node": "1.2.0",
28
- "@milaboratories/pl-client": "3.25.0",
25
+ "@milaboratories/pf-driver": "1.9.19",
26
+ "@milaboratories/pf-spec-driver": "1.6.1",
27
+ "@milaboratories/pframes-rs-node": "1.3.1",
28
+ "@milaboratories/pl-client": "3.26.1",
29
29
  "@milaboratories/pl-crash-recorder": "0.3.12",
30
- "@milaboratories/pl-drivers": "2.0.5",
31
- "@milaboratories/pl-errors": "1.4.65",
32
- "@milaboratories/pl-http": "1.2.6",
33
- "@milaboratories/pl-model-backend": "1.4.50",
30
+ "@milaboratories/pl-drivers": "2.0.7",
31
+ "@milaboratories/pl-errors": "1.4.67",
32
+ "@milaboratories/pl-http": "1.2.7",
33
+ "@milaboratories/pl-model-backend": "1.4.52",
34
34
  "@milaboratories/pl-model-common": "1.56.0",
35
35
  "@milaboratories/pl-model-middle-layer": "1.40.0",
36
- "@milaboratories/pl-tree": "1.18.4",
36
+ "@milaboratories/pl-tree": "1.18.6",
37
37
  "@milaboratories/resolve-helper": "1.1.3",
38
38
  "@milaboratories/ts-helpers": "1.9.1",
39
- "@platforma-sdk/block-tools": "2.20.1",
39
+ "@platforma-sdk/block-tools": "2.20.3",
40
40
  "@platforma-sdk/model": "1.90.2",
41
- "@platforma-sdk/workflow-tengo": "6.22.3",
41
+ "@platforma-sdk/workflow-tengo": "6.22.4",
42
42
  "canonicalize": "~2.1.0",
43
43
  "denque": "^2.1.0",
44
44
  "es-toolkit": "^1.39.10",
45
45
  "lru-cache": "^11.5.3",
46
46
  "quickjs-emscripten": "0.32.0",
47
47
  "semver": "^7.7.2",
48
- "undici": "~7.30.1",
48
+ "undici": "~7.30.2",
49
49
  "utility-types": "^3.11.0",
50
50
  "yaml": "^2.9.1",
51
51
  "zod": "~3.25.76"
@@ -304,6 +304,17 @@ export class MiddleLayer {
304
304
  return this.pl.currentUserRole;
305
305
  }
306
306
 
307
+ /**
308
+ * Whether the UI can offer the "pick a user" recipient picker: the authenticated user can list
309
+ * the users of the server. The server decides per role (`userListing:v2` + the session's
310
+ * `can_list_users`); an older `userListing:v1` backend lets all roles list users. When false,
311
+ * the UI offers paste-a-login. Not a security boundary: listUsers still gets PERMISSION_DENIED
312
+ * (see `isPermissionDenied` from pl-client) if the server says no.
313
+ */
314
+ public get userListingAvailable(): boolean {
315
+ return this.pl.canListUsers;
316
+ }
317
+
307
318
  /**
308
319
  * Whether the UI offers share-with-everybody — no role policy lives in the UI:
309
320
  * serverCapabilities.has("publicGrants:v1") && canGrantToEveryone(currentUserRole)