@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.
- package/data/modelsAndRights.js +14 -49
- package/package.json +1 -1
package/data/modelsAndRights.js
CHANGED
|
@@ -7933,56 +7933,21 @@ const modelsAndRights = [
|
|
|
7933
7933
|
updateBy: "_id",
|
|
7934
7934
|
availableInSDK: false,
|
|
7935
7935
|
},
|
|
7936
|
-
// ─── Desktop Client —
|
|
7937
|
-
//
|
|
7938
|
-
//
|
|
7939
|
-
//
|
|
7940
|
-
// .
|
|
7941
|
-
//
|
|
7942
|
-
//
|
|
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
|
-
//
|
|
7945
|
-
//
|
|
7946
|
-
//
|
|
7947
|
-
//
|
|
7948
|
-
//
|
|
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;
|