@tolinax/ayoune-interfaces 2026.61.0 → 2026.61.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.
@@ -7933,56 +7933,21 @@ const modelsAndRights = [
7933
7933
  updateBy: "_id",
7934
7934
  availableInSDK: false,
7935
7935
  },
7936
- // ─── Desktop Client — client-side feature gating ─────────────────────
7937
- // Pseudo-entity holding the full catalogue of feature rights for the
7938
- // aYOUne Desktop Client. No DB model`readOnly: true` so
7939
- // registerModuleRights only registers the base right + childRights (no
7940
- // .new/.edit/.delete variants). Admins toggle individual features per
7941
- // role; the desktop-client renderer reads user.rights from the startup
7942
- // response and filters its nav accordingly.
7936
+ // ─── Desktop Client module states + rights per view ──────────────
7937
+ // desktopclient is a module in its own right (module: "desktopclient").
7938
+ // Each nav entry in the desktop client IS a state registered via
7939
+ // registerModuleStates at config-api boot, same pattern as every other
7940
+ // module. The right string mirrors the state title, e.g. `desktopclient.sync`
7941
+ // ayounestates has the main state at that title, ayounepackages.modules
7942
+ // carries it as a grantable right, and ayouneroles auto-sync via
7943
+ // registerModuleRights('desktopclient', ..., additionalRights).
7943
7944
  //
7944
- // Cross-linked API rights per feature are documented alongside each
7945
- // child. The `.view` rights grant access to the renderer surface;
7946
- // actions within each feature still check the underlying API's rights
7947
- // (e.g. `desktopclient.machines` gates the /machines page, but the RDP
7948
- // launch still requires `config.computingentities`).
7949
- {
7950
- plural: "DesktopClient",
7951
- singular: "DesktopClient",
7952
- module: "desktopclient",
7953
- right: "desktopclient",
7954
- readOnly: true,
7955
- importable: false,
7956
- allowDuplicate: false,
7957
- updateBy: "_id",
7958
- availableInSDK: false,
7959
- labelKey: "desktopclient.label",
7960
- descriptionKey: "desktopclient.description",
7961
- childRights: [
7962
- // Shell
7963
- "desktopclient.view", // base — required to launch the app at all
7964
- "desktopclient.home", // dashboard tiles
7965
- "desktopclient.settings", // settings page
7966
- "desktopclient.machine-mode", // headless agent mode (unattended VM)
7967
- // Feature modules (each gates a top-level nav entry)
7968
- "desktopclient.sync", // paired: sync-api.* rights
7969
- "desktopclient.machines", // paired: config.computingentities
7970
- "desktopclient.nfc", // paired: config.nfcactions, config.nfcprofiles
7971
- "desktopclient.barcode", // renderer-only, no API right
7972
- "desktopclient.iot", // paired: config.iotdevices
7973
- "desktopclient.communication", // paired: chat.*, communication.*
7974
- "desktopclient.printers", // paired: config.printers
7975
- "desktopclient.process-agent", // paired: config.computingentities
7976
- "desktopclient.devops", // paired: devops.*
7977
- "desktopclient.terminal", // CLI runner — paired: whatever `ay` hits
7978
- // Cross-app integrations
7979
- "desktopclient.copilot", // AI copilot sidebar panel
7980
- "desktopclient.notifications", // native toast / notification-bell
7981
- "desktopclient.quick-actions", // tray quick-action shortcuts
7982
- "desktopclient.yubikey", // YubiKey approval dialog
7983
- "desktopclient.clipboard-sync", // cross-device clipboard
7984
- ],
7985
- },
7945
+ // No pseudo-entities desktopclient has no DB-backed entities. The
7946
+ // state catalogue lives in
7947
+ // domains/config/api/src/lib/registerDesktopClientStates.ts
7948
+ // and the right catalogue is the `desktopClientRights` export there
7949
+ // (single source of truth, passed to registerModuleRights as
7950
+ // additionalRights).
7986
7951
  ];
7987
7952
  exports.modelsAndRights = modelsAndRights;
7988
7953
  exports.default = modelsAndRights;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2026.61.0",
3
+ "version": "2026.61.1",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",