@tolinax/ayoune-interfaces 2026.60.0 → 2026.61.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/data/modelsAndRights.js +50 -0
- package/package.json +1 -1
package/data/modelsAndRights.js
CHANGED
|
@@ -7933,6 +7933,56 @@ 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.
|
|
7943
|
+
//
|
|
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
|
+
},
|
|
7936
7986
|
];
|
|
7937
7987
|
exports.modelsAndRights = modelsAndRights;
|
|
7938
7988
|
exports.default = modelsAndRights;
|