@wildo-ai/saas-frontend-lib 1.1.16 → 1.1.18

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.
Files changed (685) hide show
  1. package/LICENSE +114 -26
  2. package/LICENSE.enterprise +129 -0
  3. package/dist/esm/companion-exports.d.ts +5 -2
  4. package/dist/esm/companion-exports.d.ts.map +1 -1
  5. package/dist/esm/companion-exports.js +4 -2
  6. package/dist/esm/companion-exports.js.map +1 -1
  7. package/dist/esm/components/actions/action-bar.d.ts +16 -1
  8. package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
  9. package/dist/esm/components/actions/action-bar.js.map +1 -1
  10. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
  11. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
  12. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
  13. package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
  14. package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
  15. package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
  16. package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
  17. package/dist/esm/components/app/AppLayout_Home.js +14 -7
  18. package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
  19. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
  20. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
  21. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
  22. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
  23. package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
  24. package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
  25. package/dist/esm/components/app/DecisionInboxSection.js +15 -0
  26. package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
  27. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
  28. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
  29. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
  30. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
  31. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
  32. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
  33. package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
  34. package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
  35. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
  36. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
  37. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
  38. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
  39. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
  40. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
  41. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
  42. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
  43. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
  44. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
  45. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
  46. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
  47. package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
  48. package/dist/esm/components/auth/Auth_Main.js +5 -0
  49. package/dist/esm/components/auth/Auth_Main.js.map +1 -1
  50. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
  51. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
  52. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
  53. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
  54. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
  55. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
  56. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
  57. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
  58. package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
  59. package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
  60. package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
  61. package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
  62. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
  63. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
  64. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
  65. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
  66. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
  67. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
  68. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
  69. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
  70. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
  71. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
  72. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
  73. package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
  74. package/dist/esm/components/billing/billing-pricing-table.js +40 -7
  75. package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
  76. package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
  77. package/dist/esm/components/billing/billing-subscription-status.js +9 -1
  78. package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
  79. package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
  80. package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
  81. package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
  82. package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
  83. package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
  84. package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
  85. package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
  86. package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
  87. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  88. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  89. package/dist/esm/components/data-display/DisplayField.js +67 -45
  90. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  91. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  92. package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
  93. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  94. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  95. package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
  96. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  97. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  98. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
  99. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  100. package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
  101. package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
  102. package/dist/esm/components/data-display/approval-seal.js +10 -4
  103. package/dist/esm/components/data-display/approval-seal.js.map +1 -1
  104. package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
  105. package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
  106. package/dist/esm/components/data-display/signature-requests.js +123 -0
  107. package/dist/esm/components/data-display/signature-requests.js.map +1 -0
  108. package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
  109. package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
  110. package/dist/esm/components/feedback/empty-state-marker.js +16 -0
  111. package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
  112. package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
  113. package/dist/esm/components/feedback/empty-state.js +2 -1
  114. package/dist/esm/components/feedback/empty-state.js.map +1 -1
  115. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
  116. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
  117. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
  118. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
  119. package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
  120. package/dist/esm/components/feedback/resource-empty-state.js +2 -1
  121. package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
  122. package/dist/esm/components/flows-actors/approval.d.ts +25 -1
  123. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  124. package/dist/esm/components/flows-actors/approval.js +22 -24
  125. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  126. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  127. package/dist/esm/components/flows-actors/approval.labels.js +30 -0
  128. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  129. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  130. package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
  131. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  132. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
  133. package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
  134. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
  135. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
  136. package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
  137. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
  138. package/dist/esm/components/form/Form.d.ts +2 -0
  139. package/dist/esm/components/form/Form.d.ts.map +1 -1
  140. package/dist/esm/components/form/Form.js +1 -0
  141. package/dist/esm/components/form/Form.js.map +1 -1
  142. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  143. package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
  144. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  145. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  146. package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
  147. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  148. package/dist/esm/components/form/automated/FormField.d.ts +5 -3
  149. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  150. package/dist/esm/components/form/automated/FormField.js +38 -13
  151. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  152. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
  153. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  154. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +75 -47
  155. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  156. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
  157. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
  158. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
  159. package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
  160. package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
  161. package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
  162. package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
  163. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
  164. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  165. package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
  166. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  167. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
  168. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
  169. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
  170. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
  171. package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
  172. package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
  173. package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
  174. package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
  175. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
  176. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
  177. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
  178. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
  179. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
  180. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
  181. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
  182. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
  183. package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
  184. package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
  185. package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
  186. package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
  187. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
  188. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
  189. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
  190. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
  191. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
  192. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
  193. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
  194. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
  195. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
  196. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
  197. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
  198. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
  199. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  200. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +40 -4
  201. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  202. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
  203. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
  204. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
  205. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
  206. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
  207. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
  208. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
  209. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
  210. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
  211. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
  212. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
  213. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
  214. package/dist/esm/components/navigation/command.d.ts +5 -0
  215. package/dist/esm/components/navigation/command.d.ts.map +1 -1
  216. package/dist/esm/components/navigation/command.js.map +1 -1
  217. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
  218. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  219. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +51 -12
  220. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  221. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  222. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +21 -7
  223. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  224. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  225. package/dist/esm/components/resources/ResourceLayout_List.js +17 -7
  226. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  227. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
  228. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  229. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
  230. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  231. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  232. package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
  233. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  234. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
  235. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
  236. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
  237. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
  238. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
  239. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
  240. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
  241. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
  242. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
  243. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
  244. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
  245. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
  246. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
  247. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
  248. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  249. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
  250. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  251. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
  252. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  253. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  254. package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
  255. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  256. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  257. package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
  258. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  259. package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
  260. package/dist/esm/components/resources/skeleton/Group.js +4 -1
  261. package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
  262. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
  263. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
  264. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  265. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
  266. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
  267. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
  268. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
  269. package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
  270. package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
  271. package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
  272. package/dist/esm/components/sections/content-section.d.ts +1 -3
  273. package/dist/esm/components/sections/content-section.d.ts.map +1 -1
  274. package/dist/esm/components/sections/content-section.js.map +1 -1
  275. package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
  276. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
  277. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
  278. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
  279. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
  280. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
  281. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
  282. package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
  283. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  284. package/dist/esm/components/settings/SettingsHub.js +14 -4
  285. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  286. package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
  287. package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
  288. package/dist/esm/components/typography/document-heading-level.js +63 -0
  289. package/dist/esm/components/typography/document-heading-level.js.map +1 -0
  290. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
  291. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
  292. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
  293. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
  294. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
  295. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
  296. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
  297. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
  298. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
  299. package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
  300. package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
  301. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  302. package/dist/esm/components/views/chart-view/ChartView.js +52 -22
  303. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  304. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  305. package/dist/esm/components/views/chart-view/ChartView.labels.js +76 -3
  306. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  307. package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
  308. package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
  309. package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
  310. package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
  311. package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
  312. package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
  313. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
  314. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  315. package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
  316. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  317. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
  318. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
  319. package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
  320. package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
  321. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +47 -12
  322. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  323. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +87 -32
  324. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  325. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  326. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +8 -8
  327. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  328. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  329. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  330. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
  331. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
  332. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
  333. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
  334. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
  335. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
  336. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
  337. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +8 -2
  338. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  339. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
  340. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
  341. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
  342. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
  343. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  344. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +9 -8
  345. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  346. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
  347. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
  348. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
  349. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
  350. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  351. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +10 -11
  352. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  353. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
  354. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
  355. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
  356. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
  357. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
  358. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
  359. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  360. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +7 -3
  361. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  362. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  363. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
  364. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  365. package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
  366. package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
  367. package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
  368. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  369. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  370. package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
  371. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  372. package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
  373. package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
  374. package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
  375. package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
  376. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
  377. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  378. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
  379. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  380. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
  381. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
  382. package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
  383. package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
  384. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
  385. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
  386. package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
  387. package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
  388. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
  389. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
  390. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  391. package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
  392. package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
  393. package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
  394. package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
  395. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
  396. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
  397. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
  398. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
  399. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
  400. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
  401. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
  402. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
  403. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
  404. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
  405. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
  406. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
  407. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  408. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
  409. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  410. package/dist/esm/core/billing/BillingContext.d.ts +27 -4
  411. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  412. package/dist/esm/core/billing/BillingContext.js +61 -2
  413. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  414. package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
  415. package/dist/esm/core/billing/useBillingAction.js +3 -2
  416. package/dist/esm/core/billing/useBillingAction.js.map +1 -1
  417. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
  418. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
  419. package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
  420. package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
  421. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  422. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  423. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  424. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
  425. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  426. package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
  427. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  428. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
  429. package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
  430. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  431. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
  432. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  433. package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
  434. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  435. package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
  436. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  437. package/dist/esm/core/config/composite-view.schemas.js +1 -0
  438. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  439. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
  440. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
  441. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
  442. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
  443. package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
  444. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  445. package/dist/esm/core/config/engine-settings-destinations.js +12 -0
  446. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  447. package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
  448. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  449. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
  450. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
  451. package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
  452. package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
  453. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
  454. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  455. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  456. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
  457. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  458. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
  459. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  460. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
  461. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  462. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  463. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  464. package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
  465. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  466. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
  467. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  468. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
  469. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  470. package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
  471. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  472. package/dist/esm/core/config/verify-launcher-content.js +31 -0
  473. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  474. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  475. package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
  476. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  477. package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
  478. package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
  479. package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
  480. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  481. package/dist/esm/core/events/NotificationContext.js +19 -2
  482. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  483. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
  484. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
  485. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
  486. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
  487. package/dist/esm/core/execution/useExecution.d.ts +3 -3
  488. package/dist/esm/core/execution/useExecution.js.map +1 -1
  489. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
  490. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
  491. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
  492. package/dist/esm/core/features/FeatureGate.d.ts +13 -1
  493. package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
  494. package/dist/esm/core/features/FeatureGate.js +6 -1
  495. package/dist/esm/core/features/FeatureGate.js.map +1 -1
  496. package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
  497. package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
  498. package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
  499. package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
  500. package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
  501. package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
  502. package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
  503. package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
  504. package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
  505. package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
  506. package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
  507. package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
  508. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
  509. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
  510. package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
  511. package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
  512. package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
  513. package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
  514. package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
  515. package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
  516. package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
  517. package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
  518. package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
  519. package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
  520. package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
  521. package/dist/esm/core/features/useFeatureAvailability.js +4 -0
  522. package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
  523. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
  524. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  525. package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
  526. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  527. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
  528. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  529. package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
  530. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  531. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
  532. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
  533. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
  534. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  535. package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
  536. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  537. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
  538. package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
  539. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
  540. package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
  541. package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
  542. package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
  543. package/dist/esm/core/navigation/home-resolution.js +46 -0
  544. package/dist/esm/core/navigation/home-resolution.js.map +1 -0
  545. package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
  546. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  547. package/dist/esm/core/navigation/launcher-resolution.js +13 -18
  548. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  549. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
  550. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  551. package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
  552. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  553. package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
  554. package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
  555. package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
  556. package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
  557. package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
  558. package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
  559. package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
  560. package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
  561. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
  562. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
  563. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
  564. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
  565. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
  566. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
  567. package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
  568. package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
  569. package/dist/esm/core/navigation/view-title-resolution.js +25 -0
  570. package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
  571. package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
  572. package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
  573. package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
  574. package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
  575. package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
  576. package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
  577. package/dist/esm/core/navigation/viewer-roles.js +26 -0
  578. package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
  579. package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
  580. package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
  581. package/dist/esm/core/requests/user-interaction-clock.js +47 -0
  582. package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
  583. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  584. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  585. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  586. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +66 -10
  587. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  588. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +63 -8
  589. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  590. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  591. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
  592. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  593. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  594. package/dist/esm/core/resources/hooks/useOperationEnabled.js +45 -3
  595. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  596. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
  597. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  598. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  599. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  600. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  601. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  602. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
  603. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  604. package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
  605. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  606. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  607. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
  608. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  609. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  610. package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
  611. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  612. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  613. package/dist/esm/core/runtime/AppRouter.js +11 -33
  614. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  615. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
  616. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  617. package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
  618. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  619. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
  620. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
  621. package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
  622. package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
  623. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
  624. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  625. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
  626. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  627. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
  628. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
  629. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
  630. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
  631. package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
  632. package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
  633. package/dist/esm/core/runtime/identity-routes.js +50 -0
  634. package/dist/esm/core/runtime/identity-routes.js.map +1 -0
  635. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
  636. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  637. package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
  638. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  639. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
  640. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
  641. package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
  642. package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
  643. package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
  644. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  645. package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
  646. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  647. package/dist/esm/core/search/command-score.d.ts +33 -0
  648. package/dist/esm/core/search/command-score.d.ts.map +1 -0
  649. package/dist/esm/core/search/command-score.js +109 -0
  650. package/dist/esm/core/search/command-score.js.map +1 -0
  651. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  652. package/dist/esm/core/security/AuthSessionContext.js +4 -0
  653. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  654. package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
  655. package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
  656. package/dist/esm/core/security/StepUpAuthContext.js +7 -2
  657. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  658. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
  659. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
  660. package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
  661. package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
  662. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
  663. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
  664. package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
  665. package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
  666. package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
  667. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  668. package/dist/esm/core/ui/design-token.utils.js +24 -3
  669. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  670. package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
  671. package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
  672. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
  673. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  674. package/dist/esm/index.d.ts +19 -1
  675. package/dist/esm/index.d.ts.map +1 -1
  676. package/dist/esm/index.js +22 -1
  677. package/dist/esm/index.js.map +1 -1
  678. package/dist/esm/testing/mock-builders.d.ts +1 -1
  679. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  680. package/dist/esm/testing/mock-builders.js +1 -0
  681. package/dist/esm/testing/mock-builders.js.map +1 -1
  682. package/dist/tsconfig.build.tsbuildinfo +1 -1
  683. package/package.json +9 -6
  684. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
  685. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"launcher-items.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/launcher-items.frontend.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,WAAW,GACZ,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC;AAChG,O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AAG,CAAC,CAAC,kBAAkB,CAAC,aAAa,EAAE;IACtE,mCAAmC;IACnC,oCAAoC;IACpC,mCAAmC;IACnC,oCAAoC;CACrC,CAAC,CAAC;AAEH,0CAA0C;AAC1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC","sourcesContent":["/**\n * Launcher Item Types & Schemas\n *\n * Per-launcher content declaration model. Each launcher (sidebar, command menu,\n * quick action button, etc.) declares its own content using these types.\n *\n * `LauncherItemTargetKind` is the discriminant for `LauncherItemRef` — it tells\n * the resolution layer what kind of target a launcher item points to.\n *\n * `SidebarSectionContentKind` is the discriminant for sidebar section content —\n * determines whether a section renders a navigation list, a resource browser,\n * a guidance widget, or a custom component.\n *\n * These types are config-time types. The resolution layer (Step 2) transforms\n * them into runtime `ResolvedNavigationItem` instances.\n */\n\nimport { z } from 'zod';\nimport {\n SidebarItemDisplayPolicy,\n CommandMenuDisplayPolicy,\n QuickActionDisplayPolicy,\n HotkeyScope,\n} from './app-level-components.frontend.schemas';\nimport { HorizontalPlacement, VerticalPlacement } from '@wildo-ai/presets-components-models';\nimport { ViewportBreakpoint, ForeignKeyDisplayMode } from '@wildo-ai/zod-decorators';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport type { AppScopeValue } from '~wildo-frontend-lib/core/scope/scope.frontend.schemas';\n\n// ════════════════════════════════════════════════════════════════\n// Launcher Item Target Kind\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.launcher.item-refs facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * What kind of target a launcher item points to.\n *\n * This is a config-time concept — the resolution layer maps each kind to a\n * navigation action. Different from `NavigationContentType` which is a runtime\n * concept for zone content rendering. Both have `RESOURCE_OPERATION` but serve\n * different axes: `LauncherItemTargetKind` = what a launcher item targets,\n * `NavigationContentType` = what renders in a navigation zone.\n */\nexport enum LauncherItemTargetKind {\n /** Navigate to a resource operation (list, create, read, etc.). */\n RESOURCE_OPERATION = 'resource_operation',\n /** Navigate to an application-scoped special view. */\n VIEW = 'view',\n /** Navigate to a resource-scoped special view. */\n RESOURCE_VIEW = 'resource_view',\n /** Navigate to a framework-provided page (home, security settings, etc.). */\n ENGINE_PAGE = 'engine_page',\n /** Render a custom registered React component. */\n CUSTOM_COMPONENT = 'custom_component',\n /** Open the unified Settings Hub (overlay), optionally at a specific section. */\n SETTINGS_SECTION = 'settings_section',\n}\n/** @wildo_source:part:end saas.frontend.launcher.item-refs */\n\n// ════════════════════════════════════════════════════════════════\n// Engine Page Ref (closed enum)\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Framework-provided navigable pages.\n *\n * Closed enum — only framework pages belong here. Auth routes (login, register, etc.)\n * are NOT engine pages. Dev routes (devTest, devThemeGallery) are excluded.\n *\n * The resolution layer maps these to `CommonRoutePaths` in `routes.frontend.definitions.ts`.\n */\nexport enum EnginePageRef {\n /** Home page — maps to `CommonRoutePaths.home` (`/`) */\n HOME = 'home',\n /**\n * The decision inbox (#2527) — maps to `CommonRoutePaths.decisions` (`/decisions`). The engine places a sidebar row\n * to it for an application whose agents can wait on a person's decision (`appConfig.decisionInbox`), shown to a viewer\n * holding one of the roles a decision can wait on in ANY organization or unit, not only the current one\n * (`DecisionInboxCapability.ANSWERER`, #2577). An application may also target it from its own launcher items, and gate\n * them on that capability with `runtimeAvailability.requiredCapabilities`.\n */\n DECISIONS = 'decisions',\n // NOTE: security settings is no longer a standalone engine page — it is a\n // section panel inside the unified Settings Hub (`/settings/security` opens the\n // hub at its Security section via `SETTINGS_SECTION` / `useSettingsHubOverlaySync`).\n}\n\n/**\n * Per-engine-page metadata: route, i18n label key, standard icon.\n *\n * Single source of truth — consumed by:\n * - `launcher-resolution.ts` (route + label + icon for resolved engine pages)\n * - `verify-launcher-content.ts` (pageRef existence check)\n * - `useNavigationBehaviors.ts` (home route lookup)\n * - companion `planEnginePageUnits()` (label-key generation)\n *\n * Adding a new engine page = adding the `EnginePageRef` enum entry above\n * + one record entry here. No other touch-up needed.\n */\nexport interface EnginePageMetadata {\n /** Route path under the app. */\n route: string;\n /**\n * i18n key used to resolve the page's display label at\n * `engine.pages.<key>.title` (the companion's `planEnginePageUnits()`\n * emits matching keys for label generation).\n */\n i18nKey: string;\n /** Standard icon to render for navigation entries pointing at this page. */\n icon: StandardIconReference;\n}\n\nexport const ENGINE_PAGE_METADATA: Record<EnginePageRef, EnginePageMetadata> = {\n [EnginePageRef.HOME]: {\n route: CommonRoutePaths.home,\n i18nKey: 'engine.pages.home',\n icon: StandardIconReference.HOME,\n },\n [EnginePageRef.DECISIONS]: {\n route: CommonRoutePaths.decisions,\n i18nKey: 'engine.pages.decisions',\n icon: StandardIconReference.INBOX,\n },\n};\n\n// ════════════════════════════════════════════════════════════════\n// Activity Bar & Sidebar Enums\n// ════════════════════════════════════════════════════════════════\n\n/**\n * How the Activity Bar renders at different breakpoints.\n *\n * The activity bar is the mode selector — it shows available `AppMode`s and\n * lets the user switch between them. Its rendering varies by breakpoint.\n */\nexport enum ActivityBarRendering {\n /** Vertical icon column on the left side (desktop default). */\n VERTICAL_RAIL = 'vertical_rail',\n /** Horizontal icon row at the top (alternative desktop layout). */\n HORIZONTAL_BAR = 'horizontal_bar',\n /** Persistent bottom tab bar (mobile). */\n BOTTOM_TAB_BAR = 'bottom_tab_bar',\n}\n\n/**\n * Sidebar responsive behavior on mobile breakpoints.\n *\n * Controls how the sidebar adapts when the viewport shrinks below\n * its responsive breakpoint.\n */\nexport enum SidebarResponsivePolicy {\n /** Sidebar becomes a burger menu / drawer overlay on mobile. */\n BURGER = 'BURGER',\n /** Sidebar stays visible but auto-expands on desktop. */\n DRAWER = 'DRAWER',\n}\n\n/**\n * How the sidebar surfaces the application's HOME destination.\n *\n * Three mutually-exclusive presentations of ONE concept — an app picks the one\n * matching its shell identity, and the framework never renders two home\n * affordances at once.\n */\nexport enum SidebarHomeDisplayMode {\n /**\n * No home affordance in the sidebar at all. For apps whose home is reached\n * elsewhere (a menubar brand, a logo in the shell header) or that have no\n * meaningful home surface.\n */\n HIDDEN = 'hidden',\n /**\n * The application's brand header: its SYMBOL brand asset plus the application\n * display name, PINNED at the very top of the sidebar — above the scroll\n * region and therefore above any hosted component (e.g. the command-menu\n * search trigger). Clicking it navigates home. This is the Slack / Linear /\n * Notion shell convention: the product identity doubles as the home button,\n * so no separate \"Home\" row is needed. Collapsed to the icon rail it shows\n * the symbol alone.\n *\n * The logo resolves from the app's `brandAssets` (see `RuntimeBrandAsset` /\n * `resolveBrandAsset` in `@wildo-ai/saas-models`) for the active light/dark\n * theme; an app with no generated brand shows the name alone (and the\n * framework home icon on the collapsed rail).\n */\n BRAND_HEADER = 'brand_header',\n /**\n * A \"Home\" navigation ROW at the top of the primary navigation group, beside\n * the app's other top-level destinations. The framework default — it assumes\n * nothing about brand assets.\n */\n NAVIGATION_ITEM = 'navigation_item',\n}\n\n/** Sidebar section behavior mode — where a section's ITEMS come from. */\nexport enum SidebarSectionBehavior {\n /** Items are exactly the declared `children`. */\n STATIC = 'static',\n /** Items are produced at runtime by the section's content kind. */\n DYNAMIC = 'dynamic',\n /**\n * Items are the USER'S FAVORITED navigation items: the engine populates the\n * section from starred items across the other navigation-list sections\n * (persisted machine-locally under `LOCAL_STORAGE_KEYS.SIDEBAR_FAVORITES`),\n * REPLACING any declared `children` — author none. Declaring a FAVORITES\n * section is what enables the hover-star affordance on sidebar rows; the\n * section is hidden entirely while no favorites exist, and the engine\n * ordering policy places it right after the primary group. Declare at most\n * ONE favorites section: several would render the same favorited copies\n * (same ids) in each, and the active-row election would highlight one row\n * per duplicate id.\n */\n FAVORITES = 'favorites',\n}\n\n/** Sidebar section inline create mode. */\nexport enum SidebarSectionInlineCreate {\n NONE = 'none',\n INPUT = 'input',\n DIALOG = 'dialog',\n}\n\n/**\n * Quick Action Button placement mode.\n *\n * Replaces the literal string `\"FLOATING\"` patterns in existing schemas.\n * After container inversion (Step 4), the only placement is `FLOATING` or\n * `CONTAINED` (hosted by menubar/sidebar via `hostedComponents`).\n */\nexport enum QuickActionButtonPlacement {\n /** Floating action button overlaying the content area. */\n FLOATING = 'FLOATING',\n /** Contained within a parent component (menubar or sidebar). */\n CONTAINED = 'CONTAINED',\n}\n\n// ════════════════════════════════════════════════════════════════\n// Sidebar Section Content Kind\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.launcher.item-refs facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * What kind of content a sidebar section renders.\n *\n * This is the discriminant for the `SidebarSection` discriminated union.\n * Each content kind has its own set of properties and rendering behavior.\n */\nexport enum SidebarSectionContentKind {\n /** Traditional navigation item list (tree, collapsible, inline create). */\n NAVIGATION_LIST = 'navigation_list',\n /** Filterable resource instance list — fetches from a bound operation. */\n RESOURCE_BROWSER = 'resource_browser',\n /** Guidance/onboarding widget — renders a registered guidance component. */\n GUIDANCE_WIDGET = 'guidance_widget',\n /** Arbitrary registered React component. */\n CUSTOM_COMPONENT = 'custom_component',\n}\n\n// ════════════════════════════════════════════════════════════════\n// LauncherItemRef — Discriminated Union\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Points to a resource operation (list, create, read, etc.).\n * The resolution layer resolves this via the resource registry.\n */\nexport interface ResourceOperationItemRef {\n kind: LauncherItemTargetKind.RESOURCE_OPERATION;\n resourceType: string;\n operation: string;\n operationVariant?: string;\n}\n\n/** Points to an application-scoped special view. */\nexport interface ViewItemRef {\n kind: LauncherItemTargetKind.VIEW;\n viewRef: string;\n}\n\n/** Points to a resource-scoped special view. */\nexport interface ResourceViewItemRef {\n kind: LauncherItemTargetKind.RESOURCE_VIEW;\n resourceType: string;\n viewRef: string;\n}\n\n/** Points to a framework page (home, security settings). */\nexport interface EnginePageItemRef {\n kind: LauncherItemTargetKind.ENGINE_PAGE;\n pageRef: EnginePageRef;\n}\n\n/** Points to a registered component — engine or application (see `ComponentRegistryRef`). */\nexport interface CustomComponentItemRef {\n kind: LauncherItemTargetKind.CUSTOM_COMPONENT;\n /**\n * The name a component is REGISTERED under — an engine `FrontendComponentType` member, or an\n * application component a domain module binds in `componentRegistrations` (#549). Resolved through\n * `ComponentRegistryService` under the default preset; a ref nothing is registered under is\n * reported, never rendered as something plausible.\n */\n componentRef: string;\n}\n\n/**\n * Opens the unified Settings Hub (overlay), optionally pre-selecting a section.\n * Resolves to a `/settings` / `/settings/:sectionRef` URL navigation — the hub\n * is URL-driven (`useSettingsHubOverlaySync` reconstructs it), so every settings\n * entry point converges on one destination.\n */\nexport interface SettingsSectionItemRef {\n kind: LauncherItemTargetKind.SETTINGS_SECTION;\n /** Section to pre-open; omit to open the hub's default section. */\n sectionRef?: string;\n}\n\n/**\n * A launcher item reference — identifies WHAT a launcher item targets.\n * Discriminated on `kind`. The resolution layer dispatches on this to\n * produce a `ResolvedNavigationItem`.\n */\nexport type LauncherItemRef =\n | ResourceOperationItemRef\n | ViewItemRef\n | ResourceViewItemRef\n | EnginePageItemRef\n | CustomComponentItemRef\n | SettingsSectionItemRef;\n\n/**\n * Toolbar items are navigation-only launcher refs.\n * Custom-component materialization belongs to other app-level surfaces and is\n * intentionally excluded from the global app-level toolbar contract.\n */\nexport type ToolbarItemRef =\n | ResourceOperationItemRef\n | ViewItemRef\n | ResourceViewItemRef\n | EnginePageItemRef;\n\n// ════════════════════════════════════════════════════════════════\n// Per-Launcher Item Types\n// ════════════════════════════════════════════════════════════════\n\n/**\n * A sidebar navigation item — extends `LauncherItemRef` with sidebar-specific\n * display properties. Supports all launcher target kinds as targets.\n */\nexport type SidebarItem = LauncherItemRef & {\n displayPolicy?: SidebarItemDisplayPolicy;\n /**\n * Typed reference to a registered `NotificationBadgeDefinition` — its badge KEY,\n * `<scope>:<identifier>`, built by `buildNotificationBadgeKey` /\n * `notificationBadgeIdentityKey` from `@wildo-ai/saas-models`.\n *\n * The key, not the bare `identifier`: a definition is `(scope, identifier)`, so an identifier\n * alone names a definition only while no second scope declares the same one. Matching on it made\n * the second definition unreachable and gave it the first's count.\n *\n * The resolved definition supplies the display mode / tone / pulse, and the live count comes from\n * `useNotificationBadges`, which indexes by the same key. Reported by `verify-launcher-content`\n * when it resolves to nothing.\n */\n notificationBadgeRef?: string;\n children?: SidebarItem[];\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/** A command menu entry. */\nexport type CommandMenuCommand = LauncherItemRef & {\n /**\n * The group the command sits under. One of `CommandMenuEngineCategory`, headed by the engine's words, or the\n * application's own ref, headed by `command_categories.<category>.label` (#3122).\n */\n category?: string;\n shortcut?: string;\n /**\n * OPTIONAL extra literal match terms, appended to the localized keyword set\n * the palette already resolves for this command. These literals are NOT\n * translated — reserve them for genuinely app-specific jargon that no\n * localized label or operation-verb synonym covers (e.g. an internal codename\n * like `\"boards\"` for a Todo-Lists list command).\n *\n * You do NOT need to author generic action verbs here: for a\n * `RESOURCE_OPERATION` command the framework already folds in the LOCALIZED\n * operation-verb synonyms (`components.APPLICATION_LEVEL_COMMAND_MENU.keywords*`,\n * generated + translated by the labelling pipeline) keyed off the command's\n * core operation semantic, and the record/command noun is covered by the\n * command's already-localized label. So a French user finds \"Create Todo\" by\n * typing \"nouveau\"/\"créer\" without any literal being authored here.\n */\n searchKeywords?: string[];\n displayPolicy?: CommandMenuDisplayPolicy;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n/** @wildo_source:part:end saas.frontend.launcher.item-refs */\n\n/**\n * @wildo_source:part:start saas.frontend.command-menu.search-resource facet:layer:frontend facet:family:app-shell\n *\n * Declares one resource whose `SEARCH` operation feeds the command menu's\n * **omnibox** record-search layer. Import from `@wildo-ai/saas-frontend-lib`.\n *\n * You list these on the `[ApplicationLevelComponentType.COMMAND_MENU]`\n * config's `searchResources` array (in `frontend/src/config/app-shell.config.ts`);\n * they take effect **only** when that config also sets\n * `policy: CommandBarPolicy.OMNIBOX`. Each entry opts one resource into live,\n * debounced record search inside the Cmd+K palette.\n *\n * Unlike a {@link CommandMenuCommand} — a static, declarative navigation target\n * — this drives a live, debounced query (≥2 chars, 300ms) against the\n * resource's addressable `SEARCH` operation (falling back to `LIST`). Results\n * are labelled with the resource's own frontend label config and, on\n * selection, navigate to the record's addressable `READ` view. Name the\n * searchable set explicitly so the palette never fires queries against\n * resources the app did not opt in.\n *\n * @example\n * // In frontend/src/config/app-shell.config.ts, on [COMMAND_MENU]:\n * searchResources: [\n * { resourceType: 'todos', category: 'todos', maxResults: 5 },\n * { resourceType: 'tasks', category: 'tasks', maxResults: 5 },\n * ]\n */\nexport type CommandMenuSearchResource = {\n /** Resource type whose SEARCH operation is queried (e.g. `'todos'`). */\n resourceType: string;\n /**\n * Group/category ref the results are placed under in the palette, headed through the same words as a static\n * command's category (`command_categories.<category>.label` for the application's own ref, #3122). When omitted\n * the group is the resource's, and is headed by the resource's own title (`resources.<type>.header.title`).\n */\n category?: string;\n /** Max results fetched per resource per keystroke. Defaults to 5. */\n maxResults?: number;\n /**\n * Relative order weight of this record group in the palette result list —\n * lower renders higher. This is the SINGLE ordering axis the palette sorts\n * every group (record groups AND static command-category groups) by.\n *\n * When omitted, record groups default to a weight ABOVE the static command\n * groups, so live record matches surface FIRST while the user is searching —\n * `searchResources` array position breaks ties among record groups. Static\n * command categories sit on a higher (later) default band, sequenced among\n * themselves by `[COMMAND_MENU].categoryOrder`. Set an explicit `order` to\n * pin a record group anywhere in that merged list (e.g. a large value to push\n * a low-signal resource below the command groups, or a negative value to pin\n * it at the very top).\n */\n order?: number;\n /**\n * How each matched record renders in the palette:\n * - `SUMMARY` (default) — the resource's summary VIEW (its summary card, no\n * action bar), via `ResourceSummaryDisplayer`. Reuses the SUMMARY-mode DTO\n * the `SEARCH` operation already returns, so there is no extra fetch. This\n * is the richer, default representation.\n * - `LABEL` — a single-line resolved label (opt-out / compact fallback).\n *\n * `ID` is treated as `LABEL` here (there is no id-only palette row).\n * Reuses {@link ForeignKeyDisplayMode} — the same LABEL-vs-SUMMARY vocabulary\n * the foreign-key reference picker uses for its dropdown rows — rather than\n * inventing a parallel command-menu-only enum.\n */\n resultDisplay?: ForeignKeyDisplayMode;\n /**\n * OPTIONAL extra literal match terms appended to every result of this\n * resource for client-side fuzzy matching. NOT translated — the raw query is\n * always kept as a keyword (so server hits never drop) and the framework also\n * folds in the LOCALIZED \"search\" verb synonyms\n * (`components.APPLICATION_LEVEL_COMMAND_MENU.keywordsSearch`) for the group.\n * Reserve this field for app-specific jargon a localized label/synonym cannot\n * cover.\n */\n searchKeywords?: string[];\n};\n/** @wildo_source:part:end saas.frontend.command-menu.search-resource */\n\n/** A quick action button entry. */\nexport type QuickActionItem = LauncherItemRef & {\n displayPolicy?: QuickActionDisplayPolicy;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/**\n * A keyboard shortcut binding to a navigation target (`LauncherItemRef`).\n *\n * `description` overrides the registry/help label. When omitted, the framework uses\n * `tResourceOperation(…, 'title')` for `RESOURCE_OPERATION` targets and the resolved\n * navigation `label` for all other kinds.\n */\nexport type HotkeyBinding = LauncherItemRef & {\n shortcut: string;\n scope?: HotkeyScope;\n description?: string;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/** A toolbar item. */\nexport type ToolbarItem = ToolbarItemRef & {\n group?: string;\n /** When true, only the icon is shown (label is hidden). */\n iconOnly?: boolean;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/** A control panel item. */\nexport type ControlPanelItem = LauncherItemRef & {\n section?: string;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/**\n * A utility panel item (Gmail-style right-side panel).\n *\n * Two target kinds, because the panel hosts two genuinely different things and collapsing them\n * would have meant an untyped props bag (#504):\n *\n * - `CUSTOM_COMPONENT` names a REGISTERED component — engine or application — rendered with no\n * arguments. Until #549 the registry was typed on `FrontendComponentType` and the panel checked\n * enum membership, so an application could not name its own component here however the\n * free-string ref read; the registry key is now `ComponentRegistryRef`, and the panel asks the\n * registry whether anything is registered under the ref.\n * - `VIEW` names an application-scoped view by ref, rendered INLINE in the panel. The panel does not\n * navigate, so this is the same target a launcher item names and a different verb applied to it:\n * the kind says WHAT, the host decides HOW.\n *\n * `VIEW` exists because the content applications actually want beside the workspace is their own —\n * an actor flow, a report — and such a surface needs to know WHICH instance it is showing. A\n * component rendered with no arguments cannot be told, which is why a ref rather than a props object\n * is the right shape: it is the one parameter that identifies an instance, and it is typed.\n */\nexport type UtilityPanelItem =\n | {\n kind: LauncherItemTargetKind.CUSTOM_COMPONENT;\n /**\n * The name a component is REGISTERED under — an engine `FrontendComponentType` member, or an\n * application component a domain module binds in `componentRegistrations` (#549). Resolved through\n * `ComponentRegistryService` under the default preset; a ref nothing is registered under is\n * reported, never rendered as something plausible.\n */\n componentRef: string;\n icon: string;\n label: string;\n }\n | {\n kind: LauncherItemTargetKind.VIEW;\n /** The `ref` of an application-scoped view definition — today, a `FlowsActorsViewDefinition`. */\n viewRef: string;\n icon: string;\n label: string;\n };\n\n/**\n * How a hosted component's TRIGGER renders inside its host surface.\n *\n * The same trigger serves two very different chrome shapes: a menubar's\n * trailing cluster is a row of small icon controls, while a sidebar rail (or a\n * wide top bar) can carry a full input-like control. Declaring the appearance\n * keeps that a per-PLACEMENT decision rather than a component-wide compromise —\n * this application hosts the identical command menu in both surfaces.\n */\nexport enum HostedTriggerAppearance {\n /**\n * Full input-like \"false button\": leading glyph, placeholder text and the\n * shortcut hint. Honors `triggerWidth`. Default.\n */\n EXPANDED = 'expanded',\n /**\n * Square icon-only button sized to the chrome row — what belongs beside the\n * notification bell and the avatar. `triggerWidth` is deliberately IGNORED\n * here: a 240px icon button is dead space, not a wide control.\n */\n COMPACT = 'compact',\n}\n\n/**\n * @wildo_source:part:start saas.frontend.app-shell.hosted-components facet:layer:frontend facet:family:app-shell\n *\n * Hosts an app-level component (the Cmd+K command-menu trigger, a quick-action\n * button, the notification center, …) INSIDE the menubar via container\n * inversion. Import from `@wildo-ai/saas-frontend-lib`.\n *\n * You list these on the `[ApplicationLevelComponentType.MENUBAR]` config's\n * `hostedComponents` array (in `frontend/src/config/app-shell.config.ts`).\n * `componentType` is an `ApplicationLevelComponentType.*` member; `placement`\n * is a {@link HorizontalPlacement} (`START`/`MIDDLE`/`END`) selecting the\n * menubar zone; `breakpoint` restricts the component to one viewport\n * breakpoint. Render order follows array position in `hostedComponents`.\n *\n * The sidebar is the vertical mirror of this contract — see\n * {@link SidebarHostedComponent}. Both surfaces share ONE hosting pipeline, so\n * hosting the SAME component (e.g. the command menu) in both places yields two\n * triggers driving one shared dialog / one hotkey registration, never two.\n *\n * @example\n * // In frontend/src/config/app-shell.config.ts, on [MENUBAR]:\n * hostedComponents: [\n * { componentType: ApplicationLevelComponentType.COMMAND_MENU,\n * placement: HorizontalPlacement.START, triggerWidth: 240 },\n * { componentType: ApplicationLevelComponentType.USER_DROPDOWN,\n * placement: HorizontalPlacement.END },\n * ]\n */\nexport interface MenubarHostedComponent {\n componentType: string;\n /** Which menubar zone the component renders in. Defaults to `START`. */\n placement?: HorizontalPlacement;\n breakpoint?: ViewportBreakpoint;\n /** Override the preset name used for component resolution. Defaults to `CorePresetNames.DEFAULT`. */\n presetName?: string;\n /**\n * Per-placement width override for hosted components that render an\n * input-like trigger (today: the command-menu \"false button\"). Accepts an\n * explicit CSS length — a plain number is treated as pixels (`240` → 240px),\n * or a CSS width string (`'240px'`, `'100%'`, `'16rem'`). Applied as an\n * inline `style.width` because tailwind-merge cannot override the trigger's\n * default width utility. Omit to use the component's built-in default width.\n */\n triggerWidth?: string | number;\n /**\n * How the trigger renders here — see {@link HostedTriggerAppearance}.\n * Defaults to `EXPANDED`. A menubar's trailing cluster normally wants\n * `COMPACT`, so the control is an icon button beside the bell and the avatar;\n * a sidebar rail keeps the full input-like control. `triggerWidth` above is\n * ignored under `COMPACT`.\n */\n triggerAppearance?: HostedTriggerAppearance;\n}\n\n/**\n * Hosts an app-level component INSIDE the sidebar (container inversion — the\n * vertical mirror of {@link MenubarHostedComponent}). Import from\n * `@wildo-ai/saas-frontend-lib`.\n *\n * You list these on the `[ApplicationLevelComponentType.SIDEBAR]` config's\n * `hostedComponents` array. Both surfaces share ONE hosting pipeline\n * (`resolveHostedComponents` + the shell-level interaction owner); the only\n * difference is the placement axis: the sidebar is a vertical column, so\n * `placement` is a {@link VerticalPlacement} (`TOP` renders above the nav,\n * `BOTTOM` below it) rather than the menubar's horizontal axis. `breakpoint`\n * restricts the component to a viewport breakpoint; render order follows array\n * position in `hostedComponents`.\n *\n * @example\n * // In frontend/src/config/app-shell.config.ts, on [SIDEBAR] — the same command\n * // menu ALSO placed in the sidebar, filling the rail width:\n * hostedComponents: [\n * { componentType: ApplicationLevelComponentType.COMMAND_MENU,\n * placement: VerticalPlacement.TOP, triggerWidth: '100%' },\n * ]\n */\nexport interface SidebarHostedComponent {\n componentType: string;\n /** Which end of the sidebar column the component renders at. Defaults to `TOP`. */\n placement?: VerticalPlacement;\n breakpoint?: ViewportBreakpoint;\n /** Override the preset name used for component resolution. Defaults to `CorePresetNames.DEFAULT`. */\n presetName?: string;\n /**\n * Per-placement width override for the hosted trigger (see\n * {@link MenubarHostedComponent.triggerWidth} — number = px, or a CSS width\n * string). A sidebar trigger commonly uses `'100%'` to fill the rail; the\n * menubar copy is typically narrower.\n */\n triggerWidth?: string | number;\n /**\n * How the trigger renders here — see {@link HostedTriggerAppearance}.\n * Defaults to `EXPANDED`. A menubar's trailing cluster normally wants\n * `COMPACT`, so the control is an icon button beside the bell and the avatar;\n * a sidebar rail keeps the full input-like control. `triggerWidth` above is\n * ignored under `COMPACT`.\n */\n triggerAppearance?: HostedTriggerAppearance;\n}\n/** @wildo_source:part:end saas.frontend.app-shell.hosted-components */\n\n/** A menubar-specific launcher item (config-time declaration). */\nexport type MenubarLauncherItem = LauncherItemRef & {\n group?: string;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n /**\n * A registered `NotificationBadgeDefinition`'s badge KEY (`<scope>:<identifier>`), drawn beside the\n * item's label — the sidebar item's field of the same name, with the same resolution and the same\n * verification. A menubar-only shell had no way to show a count on a destination until this\n * existed.\n */\n notificationBadgeRef?: string;\n};\n\n/**\n * @wildo_source:part:start saas.frontend.launcher.runtime-availability facet:layer:frontend facet:family:app-shell facet:audience:app-developer\n *\n * When a launcher entry appears at all: `runtimeAvailability` on a sidebar section, a sidebar item, a command-menu\n * command, a quick action, a toolbar, control-panel or menubar item, or a hotkey. An entry that fails it is removed, not\n * shown disabled.\n *\n * - `requiredCapabilities`: runtime capabilities that must all be on (`billingEnabled`, `ssoEnabled`…).\n * - `requiredRoles`: the roles the entry is shown to (an office-only section a field technician does not see).\n *\n * Import from `@wildo-ai/saas-frontend-lib`.\n *\n * @example\n * // frontend/src/config/app-shell.config.ts: a sidebar section only office staff see\n * { contentKind: SidebarSectionContentKind.NAVIGATION_LIST, ref: 'office',\n * runtimeAvailability: { requiredRoles: ['office-manager', CORE_ORG_ROLES.ORG_ADMIN] },\n * children: [{ kind: LauncherItemTargetKind.VIEW, viewRef: 'invoices' }] }\n *\n * This is intentionally distinct from `requiredFeatures` on resolved\n * view/resource targets:\n * - `runtimeAvailability` decides whether a launcher declaration should survive\n * the app-shell filtering pass at all\n * - `requiredFeatures` stays the canonical plan/subscription gating mechanism\n * once an item has already survived launcher filtering and is being resolved\n */\nexport interface LauncherRuntimeAvailabilityConfig {\n requiredCapabilities?: string[];\n /**\n * Roles that may see this launcher item (OR semantics): the item survives only while the viewer holds at least one\n * of them, through the role hierarchy, among their application roles and their roles in the CURRENT organization\n * (#2376). An organization owner therefore sees an item gated on the administrator role, and a custom role sees\n * exactly what the roles it inherits from would. Omit for everyone.\n *\n * A RESOURCE_OPERATION item does not need it, nor a RESOURCE_BROWSER section: either is already withheld from a viewer\n * who may not perform the operation it opens — none of its own `roles`, and no organization-unit grant reaching it\n * (#2381, #2674). Declare `requiredRoles` for what the target does not say itself (a view, an engine page, a custom\n * component), or to narrow a resource row further: an operation open to every member that only office staff need in\n * their navigation.\n *\n * Presentation, never authorization: hiding an entry stops offering what would be refused; the backend still\n * enforces every operation. Decided with `userRolesSatisfyRequiredRoles`, the same decision the backend's\n * operation-role check makes and the Settings Hub's `requiredRoles` uses, so a launcher row and a settings section\n * cannot disagree about who sees them.\n */\n requiredRoles?: string[];\n}\n\nexport const LauncherRuntimeAvailabilityConfigSchema = z.object({\n requiredCapabilities: z.array(z.string()).optional(),\n requiredRoles: z.array(z.string().min(1)).optional(),\n});\n/** @wildo_source:part:end saas.frontend.launcher.runtime-availability */\n\n// ════════════════════════════════════════════════════════════════\n// Scope Condition Types (used by sidebar sections)\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Parameters passed to a `ScopeConditionFn` for evaluating section visibility.\n */\nexport interface ScopeConditionParams {\n /** Current app scope values (workspace, project, environment, etc.). */\n appScopeValues: Record<string, AppScopeValue>;\n /** Currently active mode ref, or `null` if no mode system. */\n activeMode: string | null;\n /** All defined app modes (for inspecting mode metadata). */\n availableModes: AppModeDefinition[];\n}\n\n/**\n * Predicate function that determines whether a sidebar section should be visible\n * based on the current scope and mode state.\n *\n * Returns `true` to show the section, `false` to hide it.\n * Called reactively whenever scope or mode changes.\n */\nexport type ScopeConditionFn = (params: ScopeConditionParams) => boolean;\n\n/**\n * Context provided to a `ResourceBrowser` section's `onInstanceClick` callback.\n */\nexport interface ResourceBrowserClickContext {\n resourceType: string;\n instanceId: string;\n instanceData: Record<string, unknown>;\n}\n\n// ════════════════════════════════════════════════════════════════\n// AppMode Definition\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Defines an application mode (e.g., \"explorer\", \"search\", \"admin\").\n *\n * Modes filter which sidebar sections are visible. The `ACTIVITY_BAR`\n * renders available modes as selectable icons.\n */\nexport interface AppModeDefinition {\n /** Unique reference for this mode. */\n ref: string;\n /** Display label (i18n ref). */\n label: string;\n /** Icon identifier for the activity bar. */\n icon: string;\n /** Whether this is the default mode when none is persisted. */\n isDefault?: boolean;\n /** Restrict mode visibility to specific user types. */\n visibleToUserTypes?: string[];\n}\n\n// ════════════════════════════════════════════════════════════════\n// Sidebar Section Types — Discriminated Union on `contentKind`\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.launcher.item-refs facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * Base properties shared by all sidebar section types.\n * `ref` is `string`-typed — no framework enum, apps define their own refs.\n */\nexport interface SidebarSectionBase {\n contentKind: SidebarSectionContentKind;\n /** Section reference — app-defined, used for i18n and configuration matching. */\n ref: string;\n /** Display label (i18n ref). If omitted, section renders without a header. */\n label?: string;\n /** Icon for the section header. */\n icon?: string;\n /** Whether the section header (label + icon) is rendered. Defaults to `true`. */\n showLabel?: boolean;\n /** Whether the section can be collapsed by the user. */\n collapsible?: boolean;\n /** Whether the section starts collapsed. */\n defaultCollapsed?: boolean;\n /**\n * Mode refs this section is visible in. If omitted, visible in all modes.\n * String-based — validated at startup against `appModes[].ref`.\n * The section is hidden while the active mode is not one of them.\n */\n visibleInModes?: string[];\n /**\n * Function-based visibility condition for complex scope-dependent logic.\n * Called with the current scope; the section is hidden when it returns false.\n */\n scopeCondition?: ScopeConditionFn;\n /** Declarative availability evaluated by the app-shell layer: required capabilities and the roles shown to (`requiredRoles`). */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n}\n\n/**\n * Traditional navigation item list section.\n * Supports tree hierarchy, inline create, drag-reorder (via behavior).\n */\nexport interface SidebarSection_NavigationList extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.NAVIGATION_LIST;\n children: SidebarItem[];\n behavior?: SidebarSectionBehavior;\n /**\n * Marks this section as the sidebar's PRIMARY navigation group — the app's\n * top-level destinations (the \"Home group\"). Primary sections render at the\n * top of the sidebar with no section header and never collapsible. When\n * `SIDEBAR.homeDisplayMode` is `NAVIGATION_ITEM` (the default) the framework's\n * Home row heads that same group, giving the Linear/Notion \"Inbox / My Issues\n * right under Home\" shape; the other home modes surface home elsewhere and\n * leave this group to the app's own destinations.\n *\n * This is a PLACEMENT/CHROME role, deliberately distinct from\n * `SidebarSectionBehavior` (which describes where a section's ITEMS come\n * from). Section ordering is engine policy and ignores declaration order for\n * the special roles: primary section(s) first, then non-empty\n * `SidebarSectionBehavior.FAVORITES` section(s), then the remaining sections\n * in declared order. Modules can therefore contribute a primary section\n * without the app config having to interleave it manually.\n */\n isPrimary?: boolean;\n inlineCreate?: SidebarSectionInlineCreate;\n inlineCreateResourceType?: string;\n /** Field that receives the user's input during inline creation. Defaults to `'title'`. */\n inlineCreateField?: string;\n /**\n * Whether an item's `children` are drawn as a disclosure list under it (`true`, the default — a declared hierarchy is\n * kept) or listed after it at the same level (`false`). No child row is ever hidden by this setting.\n */\n nested?: boolean;\n /**\n * With `nested: true`, how many child levels are drawn (default 1: a row's children nest, their children do not). A\n * row deeper than this is drawn at the deepest level, after its ancestor — never dropped.\n */\n maxNestingDepth?: number;\n}\n\n/**\n * Filterable resource instance list section.\n * Fetches data from a bound operation and displays resource instances.\n */\nexport interface SidebarSection_ResourceBrowser extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.RESOURCE_BROWSER;\n /** Resource type to browse. */\n resourceType: string;\n /** Override the default LIST operation (optional — defaults to LIST). */\n operation?: string;\n /** Operation variant for filtered views. */\n operationVariant?: string;\n /**\n * Operation used when the user clicks a listed instance.\n * Defaults to READ when available; otherwise falls back to the bound operation.\n */\n navigateOperation?: string;\n /** Variant for the click/navigation operation. */\n navigateOperationVariant?: string;\n /**\n * Client-side filter predicate applied after fetching.\n * Enables display restrictions (e.g., \"starred only\").\n */\n instanceFilter?: (instance: Record<string, unknown>) => boolean;\n /**\n * Custom click handler for resource instances.\n * Default: navigate to instance via `NavigationUtils.resolveResourceUrl()`.\n */\n onInstanceClick?: (context: ResourceBrowserClickContext) => void;\n}\n\n/** Guidance/onboarding widget section. */\nexport interface SidebarSection_GuidanceWidget extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.GUIDANCE_WIDGET;\n /** Reference to a registered guidance component. */\n guidanceRef: string;\n}\n\n/** Arbitrary custom component section. */\nexport interface SidebarSection_CustomComponent extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.CUSTOM_COMPONENT;\n /** The name a component is registered under — engine or application (see `ComponentRegistryRef`, #549). */\n componentRef: string;\n}\n\n/**\n * Discriminated union of all sidebar section types.\n * Narrow on `contentKind` to access type-specific properties.\n */\nexport type SidebarSection =\n | SidebarSection_NavigationList\n | SidebarSection_ResourceBrowser\n | SidebarSection_GuidanceWidget\n | SidebarSection_CustomComponent;\n/** @wildo_source:part:end saas.frontend.launcher.item-refs */\n\n// ════════════════════════════════════════════════════════════════\n// Zod Schemas\n// ════════════════════════════════════════════════════════════════\n\nexport const LauncherItemTargetKindSchema = z.enum(LauncherItemTargetKind);\nexport const EnginePageRefSchema = z.enum(EnginePageRef);\nexport const ActivityBarRenderingSchema = z.enum(ActivityBarRendering);\nexport const SidebarResponsivePolicySchema = z.enum(SidebarResponsivePolicy);\nexport const QuickActionButtonPlacementSchema = z.enum(QuickActionButtonPlacement);\nexport const SidebarSectionContentKindSchema = z.enum(SidebarSectionContentKind);\n\n/** Zod schema for `ResourceOperationItemRef`. */\nexport const ResourceOperationItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.RESOURCE_OPERATION),\n resourceType: z.string(),\n operation: z.string(),\n operationVariant: z.string().optional(),\n});\n\n/** Zod schema for `ViewItemRef`. */\nexport const ViewItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.VIEW),\n viewRef: z.string(),\n});\n\n/** Zod schema for `ResourceViewItemRef`. */\nexport const ResourceViewItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.RESOURCE_VIEW),\n resourceType: z.string(),\n viewRef: z.string(),\n});\n\n/** Zod schema for `EnginePageItemRef`. */\nexport const EnginePageItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.ENGINE_PAGE),\n pageRef: EnginePageRefSchema,\n});\n\n/** Zod schema for `CustomComponentItemRef`. */\nexport const CustomComponentItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.CUSTOM_COMPONENT),\n componentRef: z.string(),\n});\n\nexport const SettingsSectionItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.SETTINGS_SECTION),\n sectionRef: z.string().optional(),\n});\n\n/**\n * Zod schema for `LauncherItemRef` — discriminated union on `kind`.\n * Validates config-time launcher item references.\n */\nexport const LauncherItemRefSchema = z.discriminatedUnion('kind', [\n ResourceOperationItemRefSchema,\n ViewItemRefSchema,\n ResourceViewItemRefSchema,\n EnginePageItemRefSchema,\n CustomComponentItemRefSchema,\n SettingsSectionItemRefSchema,\n]);\n\n/** Zod schema for `SidebarItem`. */\nexport const SidebarItemSchema: z.ZodType<SidebarItem> = z.lazy(() =>\n LauncherItemRefSchema.and(z.object({\n displayPolicy: z.enum(SidebarItemDisplayPolicy).optional(),\n notificationBadgeRef: z.string().optional(),\n children: z.array(SidebarItemSchema).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n }))\n);\n\n/** Zod schema for `CommandMenuCommand`. */\nexport const CommandMenuCommandSchema = LauncherItemRefSchema.and(z.object({\n category: z.string().optional(),\n shortcut: z.string().optional(),\n searchKeywords: z.array(z.string()).optional(),\n displayPolicy: z.enum(CommandMenuDisplayPolicy).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/**\n * @wildo_source:part:start saas.frontend.command-menu.search-resource facet:layer:frontend facet:family:app-shell\n *\n * Zod schema for `CommandMenuSearchResource` — validates each entry in the\n * `[COMMAND_MENU].searchResources` array.\n */\nexport const CommandMenuSearchResourceSchema: z.ZodType<CommandMenuSearchResource> = z.object({\n resourceType: z.string(),\n category: z.string().optional(),\n maxResults: z.number().optional(),\n order: z.number().optional(),\n resultDisplay: z.enum([\n ForeignKeyDisplayMode.ID,\n ForeignKeyDisplayMode.LABEL,\n ForeignKeyDisplayMode.SUMMARY,\n ]).optional(),\n searchKeywords: z.array(z.string()).optional(),\n});\n/** @wildo_source:part:end saas.frontend.command-menu.search-resource */\n\n/** Zod schema for `QuickActionItem`. */\nexport const QuickActionItemSchema = LauncherItemRefSchema.and(z.object({\n displayPolicy: z.enum(QuickActionDisplayPolicy).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/** Zod schema for `HotkeyBinding`. */\nexport const HotkeyBindingSchema = LauncherItemRefSchema.and(z.object({\n shortcut: z.string(),\n scope: z.enum(HotkeyScope).optional(),\n description: z.string().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/** Zod schema for `ToolbarItemRef`. */\nexport const ToolbarItemRefSchema = z.discriminatedUnion('kind', [\n ResourceOperationItemRefSchema,\n ViewItemRefSchema,\n ResourceViewItemRefSchema,\n EnginePageItemRefSchema,\n]);\n\n/** Zod schema for `ToolbarItem`. */\nexport const ToolbarItemSchema = ToolbarItemRefSchema.and(z.object({\n group: z.string().optional(),\n iconOnly: z.boolean().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/** Zod schema for `ControlPanelItem`. */\nexport const ControlPanelItemSchema = LauncherItemRefSchema.and(z.object({\n section: z.string().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/**\n * Zod schema for `UtilityPanelItem`.\n *\n * A DISCRIMINATED union rather than one object with two optional refs: an item that carried both a\n * `componentRef` and a `viewRef`, or neither, would parse — and the render path would then have to\n * invent a precedence rule that no author wrote down.\n */\nexport const UtilityPanelItemSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal(LauncherItemTargetKind.CUSTOM_COMPONENT),\n componentRef: z.string(),\n icon: z.string(),\n label: z.string(),\n }),\n z.object({\n kind: z.literal(LauncherItemTargetKind.VIEW),\n viewRef: z.string(),\n icon: z.string(),\n label: z.string(),\n }),\n]);\n\n/**\n * @wildo_source:part:start saas.frontend.app-shell.hosted-components facet:layer:frontend facet:family:app-shell\n *\n * Zod schema for `MenubarHostedComponent` — validates each entry in the\n * `[MENUBAR].hostedComponents` array. `placement` determines which zone\n * (START/MIDDLE/END) the component renders in; `breakpoint` restricts the\n * component to a specific viewport breakpoint. Render order follows array\n * position in `hostedComponents`.\n */\nexport const MenubarHostedComponentSchema = z.object({\n componentType: z.string(),\n placement: z.enum(HorizontalPlacement).optional(),\n breakpoint: z.enum(ViewportBreakpoint).optional(),\n presetName: z.string().optional(),\n triggerWidth: z.union([z.string(), z.number()]).optional(),\n triggerAppearance: z.enum(HostedTriggerAppearance).optional(),\n});\n\n/**\n * Zod schema for `SidebarHostedComponent` — declares a component hosted within\n * the sidebar (the vertical mirror of `MenubarHostedComponentSchema`).\n * `placement` selects which end of the sidebar column the component renders at\n * (`TOP`/`BOTTOM`); `breakpoint` restricts it to a viewport breakpoint. Render\n * order follows array position in `hostedComponents`.\n */\nexport const SidebarHostedComponentSchema = z.object({\n componentType: z.string(),\n placement: z.enum(VerticalPlacement).optional(),\n breakpoint: z.enum(ViewportBreakpoint).optional(),\n presetName: z.string().optional(),\n triggerWidth: z.union([z.string(), z.number()]).optional(),\n triggerAppearance: z.enum(HostedTriggerAppearance).optional(),\n});\n/** @wildo_source:part:end saas.frontend.app-shell.hosted-components */\n\n/** Zod schema for `MenubarLauncherItem`. */\nexport const MenubarLauncherItemSchema = LauncherItemRefSchema.and(z.object({\n group: z.string().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n notificationBadgeRef: z.string().optional(),\n}));\n\n// ── Sidebar Section Schemas (discriminated union on contentKind) ──\n\nconst SidebarSectionBaseSchema = z.object({\n ref: z.string(),\n label: z.string().optional(),\n icon: z.string().optional(),\n showLabel: z.boolean().optional(),\n collapsible: z.boolean().optional(),\n defaultCollapsed: z.boolean().optional(),\n visibleInModes: z.array(z.string()).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n});\n\nexport const SidebarSection_NavigationListSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.NAVIGATION_LIST),\n children: z.array(SidebarItemSchema),\n behavior: z.enum(SidebarSectionBehavior).optional(),\n isPrimary: z.boolean().optional(),\n inlineCreate: z.enum(SidebarSectionInlineCreate).optional(),\n inlineCreateResourceType: z.string().optional(),\n inlineCreateField: z.string().optional(),\n nested: z.boolean().optional(),\n maxNestingDepth: z.number().optional(),\n});\n\nexport const SidebarSection_ResourceBrowserSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.RESOURCE_BROWSER),\n resourceType: z.string(),\n operation: z.string().optional(),\n operationVariant: z.string().optional(),\n navigateOperation: z.string().optional(),\n navigateOperationVariant: z.string().optional(),\n});\n\nexport const SidebarSection_GuidanceWidgetSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.GUIDANCE_WIDGET),\n guidanceRef: z.string(),\n});\n\nexport const SidebarSection_CustomComponentSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.CUSTOM_COMPONENT),\n componentRef: z.string(),\n});\n\n/**\n * Zod schema for `SidebarSection` — discriminated union on `contentKind`.\n *\n * Note: `scopeCondition` (on `SidebarSectionBase`), `instanceFilter`, and\n * `onInstanceClick` (on `SidebarSection_ResourceBrowser`) are function types\n * that cannot be validated by Zod. They are typed on the TypeScript interfaces\n * but excluded from the Zod schema (runtime code handles them directly).\n */\nexport const SidebarSectionSchema = z.discriminatedUnion('contentKind', [\n SidebarSection_NavigationListSchema,\n SidebarSection_ResourceBrowserSchema,\n SidebarSection_GuidanceWidgetSchema,\n SidebarSection_CustomComponentSchema,\n]);\n\n/** Zod schema for `AppModeDefinition`. */\nexport const AppModeDefinitionSchema = z.object({\n ref: z.string(),\n label: z.string(),\n icon: z.string(),\n isDefault: z.boolean().optional(),\n visibleToUserTypes: z.array(z.string()).optional(),\n});\n"]}
1
+ {"version":3,"file":"launcher-items.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/launcher-items.frontend.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,WAAW,GACZ,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AAGtG,mEAAmE;AACnE,4BAA4B;AAC5B,mEAAmE;AAEnE,yIAAyI;AACzI;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,sBAaX;AAbD,WAAY,sBAAsB;IAChC,mEAAmE;IACnE,mEAAyC,CAAA;IACzC,sDAAsD;IACtD,uCAAa,CAAA;IACb,kDAAkD;IAClD,yDAA+B,CAAA;IAC/B,6EAA6E;IAC7E,qDAA2B,CAAA;IAC3B,kDAAkD;IAClD,+DAAqC,CAAA;IACrC,iFAAiF;IACjF,+DAAqC,CAAA;AACvC,CAAC,EAbW,sBAAsB,KAAtB,sBAAsB,QAajC;AACD,8DAA8D;AAE9D,mEAAmE;AACnE,gCAAgC;AAChC,mEAAmE;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C","sourcesContent":["/**\n * Launcher Item Types & Schemas\n *\n * Per-launcher content declaration model. Each launcher (sidebar, command menu,\n * quick action button, etc.) declares its own content using these types.\n *\n * `LauncherItemTargetKind` is the discriminant for `LauncherItemRef` — it tells\n * the resolution layer what kind of target a launcher item points to.\n *\n * `SidebarSectionContentKind` is the discriminant for sidebar section content —\n * determines whether a section renders a navigation list, a resource browser,\n * a guidance widget, or a custom component.\n *\n * These types are config-time types. The resolution layer (Step 2) transforms\n * them into runtime `ResolvedNavigationItem` instances.\n */\n\nimport { z } from 'zod';\nimport {\n SidebarItemDisplayPolicy,\n CommandMenuDisplayPolicy,\n QuickActionDisplayPolicy,\n HotkeyScope,\n} from './app-level-components.frontend.schemas';\nimport { HorizontalPlacement, VerticalPlacement } from '@wildo-ai/presets-components-models';\nimport { ViewportBreakpoint, ForeignKeyDisplayMode } from '@wildo-ai/zod-decorators';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport type { AppScopeValue } from '~wildo-frontend-lib/core/scope/scope.frontend.schemas';\n\n// ════════════════════════════════════════════════════════════════\n// Launcher Item Target Kind\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.launcher.item-refs facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * What kind of target a launcher item points to.\n *\n * This is a config-time concept — the resolution layer maps each kind to a\n * navigation action. Different from `NavigationContentType` which is a runtime\n * concept for zone content rendering. Both have `RESOURCE_OPERATION` but serve\n * different axes: `LauncherItemTargetKind` = what a launcher item targets,\n * `NavigationContentType` = what renders in a navigation zone.\n */\nexport enum LauncherItemTargetKind {\n /** Navigate to a resource operation (list, create, read, etc.). */\n RESOURCE_OPERATION = 'resource_operation',\n /** Navigate to an application-scoped special view. */\n VIEW = 'view',\n /** Navigate to a resource-scoped special view. */\n RESOURCE_VIEW = 'resource_view',\n /** Navigate to a framework-provided page (home, security settings, etc.). */\n ENGINE_PAGE = 'engine_page',\n /** Render a custom registered React component. */\n CUSTOM_COMPONENT = 'custom_component',\n /** Open the unified Settings Hub (overlay), optionally at a specific section. */\n SETTINGS_SECTION = 'settings_section',\n}\n/** @wildo_source:part:end saas.frontend.launcher.item-refs */\n\n// ════════════════════════════════════════════════════════════════\n// Engine Page Ref (closed enum)\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Framework-provided navigable pages.\n *\n * Closed enum — only framework pages belong here. Auth routes (login, register, etc.)\n * are NOT engine pages. Dev routes (devTest, devThemeGallery) are excluded.\n *\n * The resolution layer maps these to `CommonRoutePaths` in `routes.frontend.definitions.ts`.\n */\nexport enum EnginePageRef {\n /** Home page — maps to `CommonRoutePaths.home` (`/`) */\n HOME = 'home',\n /**\n * The decision inbox (#2527) — maps to `CommonRoutePaths.decisions` (`/decisions`). The engine places a sidebar row\n * to it for an application whose agents can wait on a person's decision (`appConfig.decisionInbox`), shown to a viewer\n * holding one of the roles a decision can wait on in ANY organization or unit, not only the current one\n * (`DecisionInboxCapability.ANSWERER`, #2577). An application may also target it from its own launcher items, and gate\n * them on that capability with `runtimeAvailability.requiredCapabilities`.\n */\n DECISIONS = 'decisions',\n // NOTE: security settings is no longer a standalone engine page — it is a\n // section panel inside the unified Settings Hub (`/settings/security` opens the\n // hub at its Security section via `SETTINGS_SECTION` / `useSettingsHubOverlaySync`).\n}\n\n/**\n * Per-engine-page metadata: route, i18n label key, standard icon.\n *\n * Single source of truth — consumed by:\n * - `launcher-resolution.ts` (route + label + icon for resolved engine pages)\n * - `verify-launcher-content.ts` (pageRef existence check)\n * - `useNavigationBehaviors.ts` (home route lookup)\n * - companion `planEnginePageUnits()` (label-key generation)\n *\n * Adding a new engine page = adding the `EnginePageRef` enum entry above\n * + one record entry here. No other touch-up needed.\n */\nexport interface EnginePageMetadata {\n /** Route path under the app. */\n route: string;\n /**\n * i18n key used to resolve the page's display label at\n * `engine.pages.<key>.title` (the companion's `planEnginePageUnits()`\n * emits matching keys for label generation).\n */\n i18nKey: string;\n /** Standard icon to render for navigation entries pointing at this page. */\n icon: StandardIconReference;\n}\n\nexport const ENGINE_PAGE_METADATA: Record<EnginePageRef, EnginePageMetadata> = {\n [EnginePageRef.HOME]: {\n route: CommonRoutePaths.home,\n i18nKey: 'engine.pages.home',\n icon: StandardIconReference.HOME,\n },\n [EnginePageRef.DECISIONS]: {\n route: CommonRoutePaths.decisions,\n i18nKey: 'engine.pages.decisions',\n icon: StandardIconReference.INBOX,\n },\n};\n\n// ════════════════════════════════════════════════════════════════\n// Activity Bar & Sidebar Enums\n// ════════════════════════════════════════════════════════════════\n\n/**\n * How the Activity Bar renders at different breakpoints.\n *\n * The activity bar is the mode selector — it shows available `AppMode`s and\n * lets the user switch between them. Its rendering varies by breakpoint.\n */\nexport enum ActivityBarRendering {\n /** Vertical icon column on the left side (desktop default). */\n VERTICAL_RAIL = 'vertical_rail',\n /** Horizontal icon row at the top (alternative desktop layout). */\n HORIZONTAL_BAR = 'horizontal_bar',\n /** Persistent bottom tab bar (mobile). */\n BOTTOM_TAB_BAR = 'bottom_tab_bar',\n}\n\n/**\n * Sidebar responsive behavior on mobile breakpoints.\n *\n * Controls how the sidebar adapts when the viewport shrinks below\n * its responsive breakpoint.\n */\nexport enum SidebarResponsivePolicy {\n /** Sidebar becomes a burger menu / drawer overlay on mobile. */\n BURGER = 'BURGER',\n /** Sidebar stays visible but auto-expands on desktop. */\n DRAWER = 'DRAWER',\n}\n\n/**\n * How the sidebar surfaces the application's HOME destination.\n *\n * Three mutually-exclusive presentations of ONE concept — an app picks the one\n * matching its shell identity, and the framework never renders two home\n * affordances at once.\n */\nexport enum SidebarHomeDisplayMode {\n /**\n * No home affordance in the sidebar at all. For apps whose home is reached\n * elsewhere (a menubar brand, a logo in the shell header) or that have no\n * meaningful home surface.\n */\n HIDDEN = 'hidden',\n /**\n * The application's brand header: its SYMBOL brand asset plus the application\n * display name, PINNED at the very top of the sidebar — above the scroll\n * region and therefore above any hosted component (e.g. the command-menu\n * search trigger). Clicking it navigates home. This is the Slack / Linear /\n * Notion shell convention: the product identity doubles as the home button,\n * so no separate \"Home\" row is needed. Collapsed to the icon rail it shows\n * the symbol alone.\n *\n * The logo resolves from the app's `brandAssets` (see `RuntimeBrandAsset` /\n * `resolveBrandAsset` in `@wildo-ai/saas-models`) for the active light/dark\n * theme; an app with no generated brand shows the name alone (and the\n * framework home icon on the collapsed rail).\n */\n BRAND_HEADER = 'brand_header',\n /**\n * A \"Home\" navigation ROW at the top of the primary navigation group, beside\n * the app's other top-level destinations. The framework default — it assumes\n * nothing about brand assets.\n */\n NAVIGATION_ITEM = 'navigation_item',\n}\n\n/** Sidebar section behavior mode — where a section's ITEMS come from. */\nexport enum SidebarSectionBehavior {\n /** Items are exactly the declared `children`. */\n STATIC = 'static',\n /** Items are produced at runtime by the section's content kind. */\n DYNAMIC = 'dynamic',\n /**\n * Items are the USER'S FAVORITED navigation items: the engine populates the\n * section from starred items across the other navigation-list sections\n * (persisted machine-locally under `LOCAL_STORAGE_KEYS.SIDEBAR_FAVORITES`),\n * REPLACING any declared `children` — author none. Declaring a FAVORITES\n * section is what enables the hover-star affordance on sidebar rows; the\n * section is hidden entirely while no favorites exist, and the engine\n * ordering policy places it right after the primary group. Declare at most\n * ONE favorites section: several would render the same favorited copies\n * (same ids) in each, and the active-row election would highlight one row\n * per duplicate id.\n */\n FAVORITES = 'favorites',\n}\n\n/** Sidebar section inline create mode. */\nexport enum SidebarSectionInlineCreate {\n NONE = 'none',\n INPUT = 'input',\n DIALOG = 'dialog',\n}\n\n/**\n * Quick Action Button placement mode.\n *\n * Replaces the literal string `\"FLOATING\"` patterns in existing schemas.\n * After container inversion (Step 4), the only placement is `FLOATING` or\n * `CONTAINED` (hosted by menubar/sidebar via `hostedComponents`).\n */\nexport enum QuickActionButtonPlacement {\n /** Floating action button overlaying the content area. */\n FLOATING = 'FLOATING',\n /** Contained within a parent component (menubar or sidebar). */\n CONTAINED = 'CONTAINED',\n}\n\n// ════════════════════════════════════════════════════════════════\n// Sidebar Section Content Kind\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.launcher.item-refs facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * What kind of content a sidebar section renders.\n *\n * This is the discriminant for the `SidebarSection` discriminated union.\n * Each content kind has its own set of properties and rendering behavior.\n */\nexport enum SidebarSectionContentKind {\n /** Traditional navigation item list (tree, collapsible, inline create). */\n NAVIGATION_LIST = 'navigation_list',\n /** Filterable resource instance list — fetches from a bound operation. */\n RESOURCE_BROWSER = 'resource_browser',\n /** Guidance/onboarding widget — renders a registered guidance component. */\n GUIDANCE_WIDGET = 'guidance_widget',\n /** Arbitrary registered React component. */\n CUSTOM_COMPONENT = 'custom_component',\n}\n\n// ════════════════════════════════════════════════════════════════\n// LauncherItemRef — Discriminated Union\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Points to a resource operation (list, create, read, etc.).\n * The resolution layer resolves this via the resource registry.\n */\nexport interface ResourceOperationItemRef {\n kind: LauncherItemTargetKind.RESOURCE_OPERATION;\n resourceType: string;\n operation: string;\n operationVariant?: string;\n}\n\n/** Points to an application-scoped special view. */\nexport interface ViewItemRef {\n kind: LauncherItemTargetKind.VIEW;\n viewRef: string;\n}\n\n/** Points to a resource-scoped special view. */\nexport interface ResourceViewItemRef {\n kind: LauncherItemTargetKind.RESOURCE_VIEW;\n resourceType: string;\n viewRef: string;\n}\n\n/** Points to a framework page (home, security settings). */\nexport interface EnginePageItemRef {\n kind: LauncherItemTargetKind.ENGINE_PAGE;\n pageRef: EnginePageRef;\n}\n\n/** Points to a registered component — engine or application (see `ComponentRegistryRef`). */\nexport interface CustomComponentItemRef {\n kind: LauncherItemTargetKind.CUSTOM_COMPONENT;\n /**\n * The name a component is REGISTERED under — an engine `FrontendComponentType` member, or an\n * application component a domain module binds in `componentRegistrations`. Resolved through\n * `ComponentRegistryService` under the default preset; a ref nothing is registered under is\n * reported, never rendered as something plausible.\n */\n componentRef: string;\n}\n\n/**\n * Opens the unified Settings Hub (overlay), optionally pre-selecting a section.\n * Resolves to a `/settings` / `/settings/:sectionRef` URL navigation — the hub\n * is URL-driven (`useSettingsHubOverlaySync` reconstructs it), so every settings\n * entry point converges on one destination.\n */\nexport interface SettingsSectionItemRef {\n kind: LauncherItemTargetKind.SETTINGS_SECTION;\n /** Section to pre-open; omit to open the hub's default section. */\n sectionRef?: string;\n}\n\n/**\n * A launcher item reference — identifies WHAT a launcher item targets.\n * Discriminated on `kind`. The resolution layer dispatches on this to\n * produce a `ResolvedNavigationItem`.\n */\nexport type LauncherItemRef =\n | ResourceOperationItemRef\n | ViewItemRef\n | ResourceViewItemRef\n | EnginePageItemRef\n | CustomComponentItemRef\n | SettingsSectionItemRef;\n\n/**\n * Toolbar items are navigation-only launcher refs.\n * Custom-component materialization belongs to other app-level surfaces and is\n * intentionally excluded from the global app-level toolbar contract.\n */\nexport type ToolbarItemRef =\n | ResourceOperationItemRef\n | ViewItemRef\n | ResourceViewItemRef\n | EnginePageItemRef;\n\n// ════════════════════════════════════════════════════════════════\n// Per-Launcher Item Types\n// ════════════════════════════════════════════════════════════════\n\n/**\n * A sidebar navigation item — extends `LauncherItemRef` with sidebar-specific\n * display properties. Supports all launcher target kinds as targets.\n */\nexport type SidebarItem = LauncherItemRef & {\n displayPolicy?: SidebarItemDisplayPolicy;\n /**\n * Typed reference to a registered `NotificationBadgeDefinition` — its badge KEY,\n * `<scope>:<identifier>`, built by `buildNotificationBadgeKey` /\n * `notificationBadgeIdentityKey` from `@wildo-ai/saas-models`.\n *\n * The key, not the bare `identifier`: a definition is `(scope, identifier)`, so an identifier\n * alone names a definition only while no second scope declares the same one. Matching on it made\n * the second definition unreachable and gave it the first's count.\n *\n * The resolved definition supplies the display mode / tone / pulse, and the live count comes from\n * `useNotificationBadges`, which indexes by the same key. Reported by `verify-launcher-content`\n * when it resolves to nothing.\n */\n notificationBadgeRef?: string;\n children?: SidebarItem[];\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/** A command menu entry. */\nexport type CommandMenuCommand = LauncherItemRef & {\n /**\n * The group the command sits under. One of `CommandMenuEngineCategory`, headed by the engine's words, or the\n * application's own ref, headed by `command_categories.<category>.label`.\n */\n category?: string;\n shortcut?: string;\n /**\n * OPTIONAL extra literal match terms, appended to the localized keyword set\n * the palette already resolves for this command. These literals are NOT\n * translated — reserve them for genuinely app-specific jargon that no\n * localized label or operation-verb synonym covers (e.g. an internal codename\n * like `\"boards\"` for a Todo-Lists list command).\n *\n * You do NOT need to author generic action verbs here: for a\n * `RESOURCE_OPERATION` command the framework already folds in the LOCALIZED\n * operation-verb synonyms (`components.APPLICATION_LEVEL_COMMAND_MENU.keywords*`,\n * generated + translated by the labelling pipeline) keyed off the command's\n * core operation semantic, and the record/command noun is covered by the\n * command's already-localized label. So a French user finds \"Create Todo\" by\n * typing \"nouveau\"/\"créer\" without any literal being authored here.\n */\n searchKeywords?: string[];\n displayPolicy?: CommandMenuDisplayPolicy;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n/** @wildo_source:part:end saas.frontend.launcher.item-refs */\n\n/**\n * @wildo_source:part:start saas.frontend.command-menu.search-resource facet:layer:frontend facet:family:app-shell\n *\n * Declares one resource whose `SEARCH` operation feeds the command menu's\n * **omnibox** record-search layer. Import from `@wildo-ai/saas-frontend-lib`.\n *\n * You list these on the `[ApplicationLevelComponentType.COMMAND_MENU]`\n * config's `searchResources` array (in `frontend/src/config/app-shell.config.ts`);\n * they take effect **only** when that config also sets\n * `policy: CommandBarPolicy.OMNIBOX`. Each entry opts one resource into live,\n * debounced record search inside the Cmd+K palette.\n *\n * Unlike a {@link CommandMenuCommand} — a static, declarative navigation target\n * — this drives a live, debounced query (≥2 chars, 300ms) against the\n * resource's addressable `SEARCH` operation (falling back to `LIST`). Results\n * are labelled with the resource's own frontend label config and, on\n * selection, navigate to the record's addressable `READ` view. Name the\n * searchable set explicitly so the palette never fires queries against\n * resources the app did not opt in.\n *\n * @example\n * // In frontend/src/config/app-shell.config.ts, on [COMMAND_MENU]:\n * searchResources: [\n * { resourceType: 'todos', category: 'todos', maxResults: 5 },\n * { resourceType: 'tasks', category: 'tasks', maxResults: 5 },\n * ]\n */\nexport type CommandMenuSearchResource = {\n /** Resource type whose SEARCH operation is queried (e.g. `'todos'`). */\n resourceType: string;\n /**\n * Group/category ref the results are placed under in the palette, headed through the same words as a static\n * command's category (`command_categories.<category>.label` for the application's own ref). When omitted\n * the group is the resource's, and is headed by the resource's own title (`resources.<type>.header.title`).\n */\n category?: string;\n /** Max results fetched per resource per keystroke. Defaults to 5. */\n maxResults?: number;\n /**\n * Relative order weight of this record group in the palette result list —\n * lower renders higher. This is the SINGLE ordering axis the palette sorts\n * every group (record groups AND static command-category groups) by.\n *\n * When omitted, record groups default to a weight ABOVE the static command\n * groups, so live record matches surface FIRST while the user is searching —\n * `searchResources` array position breaks ties among record groups. Static\n * command categories sit on a higher (later) default band, sequenced among\n * themselves by `[COMMAND_MENU].categoryOrder`. Set an explicit `order` to\n * pin a record group anywhere in that merged list (e.g. a large value to push\n * a low-signal resource below the command groups, or a negative value to pin\n * it at the very top).\n */\n order?: number;\n /**\n * How each matched record renders in the palette:\n * - `SUMMARY` (default) — the resource's summary VIEW (its summary card, no\n * action bar), via `ResourceSummaryDisplayer`. Reuses the SUMMARY-mode DTO\n * the `SEARCH` operation already returns, so there is no extra fetch. This\n * is the richer, default representation.\n * - `LABEL` — a single-line resolved label (opt-out / compact fallback).\n *\n * `ID` is treated as `LABEL` here (there is no id-only palette row).\n * Reuses {@link ForeignKeyDisplayMode} — the same LABEL-vs-SUMMARY vocabulary\n * the foreign-key reference picker uses for its dropdown rows — rather than\n * inventing a parallel command-menu-only enum.\n */\n resultDisplay?: ForeignKeyDisplayMode;\n /**\n * OPTIONAL extra literal match terms appended to every result of this\n * resource for client-side fuzzy matching. NOT translated — the raw query is\n * always kept as a keyword (so server hits never drop) and the framework also\n * folds in the LOCALIZED \"search\" verb synonyms\n * (`components.APPLICATION_LEVEL_COMMAND_MENU.keywordsSearch`) for the group.\n * Reserve this field for app-specific jargon a localized label/synonym cannot\n * cover.\n */\n searchKeywords?: string[];\n};\n/** @wildo_source:part:end saas.frontend.command-menu.search-resource */\n\n/** A quick action button entry. */\nexport type QuickActionItem = LauncherItemRef & {\n displayPolicy?: QuickActionDisplayPolicy;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/**\n * A keyboard shortcut binding to a navigation target (`LauncherItemRef`).\n *\n * `description` overrides the registry/help label. When omitted, the framework uses\n * `tResourceOperation(…, 'title')` for `RESOURCE_OPERATION` targets and the resolved\n * navigation `label` for all other kinds.\n */\nexport type HotkeyBinding = LauncherItemRef & {\n shortcut: string;\n scope?: HotkeyScope;\n description?: string;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/** A toolbar item. */\nexport type ToolbarItem = ToolbarItemRef & {\n group?: string;\n /** When true, only the icon is shown (label is hidden). */\n iconOnly?: boolean;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/** A control panel item. */\nexport type ControlPanelItem = LauncherItemRef & {\n section?: string;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n};\n\n/**\n * A utility panel item (Gmail-style right-side panel).\n *\n * Two target kinds, because the panel hosts two genuinely different things and collapsing them\n * would have meant an untyped props bag (#504):\n *\n * - `CUSTOM_COMPONENT` names a REGISTERED component — engine or application — rendered with no\n * arguments. Until #549 the registry was typed on `FrontendComponentType` and the panel checked\n * enum membership, so an application could not name its own component here however the\n * free-string ref read; the registry key is now `ComponentRegistryRef`, and the panel asks the\n * registry whether anything is registered under the ref.\n * - `VIEW` names an application-scoped view by ref, rendered INLINE in the panel. The panel does not\n * navigate, so this is the same target a launcher item names and a different verb applied to it:\n * the kind says WHAT, the host decides HOW.\n *\n * `VIEW` exists because the content applications actually want beside the workspace is their own —\n * an actor flow, a report — and such a surface needs to know WHICH instance it is showing. A\n * component rendered with no arguments cannot be told, which is why a ref rather than a props object\n * is the right shape: it is the one parameter that identifies an instance, and it is typed.\n */\nexport type UtilityPanelItem =\n | {\n kind: LauncherItemTargetKind.CUSTOM_COMPONENT;\n /**\n * The name a component is REGISTERED under — an engine `FrontendComponentType` member, or an\n * application component a domain module binds in `componentRegistrations` (#549). Resolved through\n * `ComponentRegistryService` under the default preset; a ref nothing is registered under is\n * reported, never rendered as something plausible.\n */\n componentRef: string;\n icon: string;\n label: string;\n }\n | {\n kind: LauncherItemTargetKind.VIEW;\n /** The `ref` of an application-scoped view definition — today, a `FlowsActorsViewDefinition`. */\n viewRef: string;\n icon: string;\n label: string;\n };\n\n/**\n * How a hosted component's TRIGGER renders inside its host surface.\n *\n * The same trigger serves two very different chrome shapes: a menubar's\n * trailing cluster is a row of small icon controls, while a sidebar rail (or a\n * wide top bar) can carry a full input-like control. Declaring the appearance\n * keeps that a per-PLACEMENT decision rather than a component-wide compromise —\n * this application hosts the identical command menu in both surfaces.\n */\nexport enum HostedTriggerAppearance {\n /**\n * Full input-like \"false button\": leading glyph, placeholder text and the\n * shortcut hint. Honors `triggerWidth`. Default.\n */\n EXPANDED = 'expanded',\n /**\n * Square icon-only button sized to the chrome row — what belongs beside the\n * notification bell and the avatar. `triggerWidth` is deliberately IGNORED\n * here: a 240px icon button is dead space, not a wide control.\n */\n COMPACT = 'compact',\n}\n\n/**\n * @wildo_source:part:start saas.frontend.app-shell.hosted-components facet:layer:frontend facet:family:app-shell\n *\n * Hosts an app-level component (the Cmd+K command-menu trigger, a quick-action\n * button, the notification center, …) INSIDE the menubar via container\n * inversion. Import from `@wildo-ai/saas-frontend-lib`.\n *\n * You list these on the `[ApplicationLevelComponentType.MENUBAR]` config's\n * `hostedComponents` array (in `frontend/src/config/app-shell.config.ts`).\n * `componentType` is an `ApplicationLevelComponentType.*` member; `placement`\n * is a {@link HorizontalPlacement} (`START`/`MIDDLE`/`END`) selecting the\n * menubar zone; `breakpoint` restricts the component to one viewport\n * breakpoint. Render order follows array position in `hostedComponents`.\n *\n * The sidebar is the vertical mirror of this contract — see\n * {@link SidebarHostedComponent}. Both surfaces share ONE hosting pipeline, so\n * hosting the SAME component (e.g. the command menu) in both places yields two\n * triggers driving one shared dialog / one hotkey registration, never two.\n *\n * @example\n * // In frontend/src/config/app-shell.config.ts, on [MENUBAR]:\n * hostedComponents: [\n * { componentType: ApplicationLevelComponentType.COMMAND_MENU,\n * placement: HorizontalPlacement.START, triggerWidth: 240 },\n * { componentType: ApplicationLevelComponentType.USER_DROPDOWN,\n * placement: HorizontalPlacement.END },\n * ]\n */\nexport interface MenubarHostedComponent {\n componentType: string;\n /** Which menubar zone the component renders in. Defaults to `START`. */\n placement?: HorizontalPlacement;\n breakpoint?: ViewportBreakpoint;\n /** Override the preset name used for component resolution. Defaults to `CorePresetNames.DEFAULT`. */\n presetName?: string;\n /**\n * Per-placement width override for hosted components that render an\n * input-like trigger (today: the command-menu \"false button\"). Accepts an\n * explicit CSS length — a plain number is treated as pixels (`240` → 240px),\n * or a CSS width string (`'240px'`, `'100%'`, `'16rem'`). Applied as an\n * inline `style.width` because tailwind-merge cannot override the trigger's\n * default width utility. Omit to use the component's built-in default width.\n */\n triggerWidth?: string | number;\n /**\n * How the trigger renders here — see {@link HostedTriggerAppearance}.\n * Defaults to `EXPANDED`. A menubar's trailing cluster normally wants\n * `COMPACT`, so the control is an icon button beside the bell and the avatar;\n * a sidebar rail keeps the full input-like control. `triggerWidth` above is\n * ignored under `COMPACT`.\n */\n triggerAppearance?: HostedTriggerAppearance;\n}\n\n/**\n * Hosts an app-level component INSIDE the sidebar (container inversion — the\n * vertical mirror of {@link MenubarHostedComponent}). Import from\n * `@wildo-ai/saas-frontend-lib`.\n *\n * You list these on the `[ApplicationLevelComponentType.SIDEBAR]` config's\n * `hostedComponents` array. Both surfaces share ONE hosting pipeline\n * (`resolveHostedComponents` + the shell-level interaction owner); the only\n * difference is the placement axis: the sidebar is a vertical column, so\n * `placement` is a {@link VerticalPlacement} (`TOP` renders above the nav,\n * `BOTTOM` below it) rather than the menubar's horizontal axis. `breakpoint`\n * restricts the component to a viewport breakpoint; render order follows array\n * position in `hostedComponents`.\n *\n * @example\n * // In frontend/src/config/app-shell.config.ts, on [SIDEBAR] — the same command\n * // menu ALSO placed in the sidebar, filling the rail width:\n * hostedComponents: [\n * { componentType: ApplicationLevelComponentType.COMMAND_MENU,\n * placement: VerticalPlacement.TOP, triggerWidth: '100%' },\n * ]\n */\nexport interface SidebarHostedComponent {\n componentType: string;\n /** Which end of the sidebar column the component renders at. Defaults to `TOP`. */\n placement?: VerticalPlacement;\n breakpoint?: ViewportBreakpoint;\n /** Override the preset name used for component resolution. Defaults to `CorePresetNames.DEFAULT`. */\n presetName?: string;\n /**\n * Per-placement width override for the hosted trigger (see\n * {@link MenubarHostedComponent.triggerWidth} — number = px, or a CSS width\n * string). A sidebar trigger commonly uses `'100%'` to fill the rail; the\n * menubar copy is typically narrower.\n */\n triggerWidth?: string | number;\n /**\n * How the trigger renders here — see {@link HostedTriggerAppearance}.\n * Defaults to `EXPANDED`. A menubar's trailing cluster normally wants\n * `COMPACT`, so the control is an icon button beside the bell and the avatar;\n * a sidebar rail keeps the full input-like control. `triggerWidth` above is\n * ignored under `COMPACT`.\n */\n triggerAppearance?: HostedTriggerAppearance;\n}\n/** @wildo_source:part:end saas.frontend.app-shell.hosted-components */\n\n/** A menubar-specific launcher item (config-time declaration). */\nexport type MenubarLauncherItem = LauncherItemRef & {\n group?: string;\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n /**\n * A registered `NotificationBadgeDefinition`'s badge KEY (`<scope>:<identifier>`), drawn beside the\n * item's label — the sidebar item's field of the same name, with the same resolution and the same\n * verification. A menubar-only shell had no way to show a count on a destination until this\n * existed.\n */\n notificationBadgeRef?: string;\n};\n\n/**\n * @wildo_source:part:start saas.frontend.launcher.runtime-availability facet:layer:frontend facet:family:app-shell facet:audience:app-developer\n *\n * When a launcher entry appears at all: `runtimeAvailability` on a sidebar section, a sidebar item, a command-menu\n * command, a quick action, a toolbar, control-panel or menubar item, or a hotkey. An entry that fails it is removed, not\n * shown disabled.\n *\n * - `requiredCapabilities`: runtime capabilities that must all be on (`billingEnabled`, `ssoEnabled`…).\n * - `requiredRoles`: the roles the entry is shown to (an office-only section a field technician does not see).\n *\n * Import from `@wildo-ai/saas-frontend-lib`.\n *\n * @example\n * // frontend/src/config/app-shell.config.ts: a sidebar section only office staff see\n * { contentKind: SidebarSectionContentKind.NAVIGATION_LIST, ref: 'office',\n * runtimeAvailability: { requiredRoles: ['office-manager', CORE_ORG_ROLES.ORG_ADMIN] },\n * children: [{ kind: LauncherItemTargetKind.VIEW, viewRef: 'invoices' }] }\n *\n * This is intentionally distinct from `requiredFeatures` on resolved\n * view/resource targets:\n * - `runtimeAvailability` decides whether a launcher declaration should survive\n * the app-shell filtering pass at all\n * - `requiredFeatures` stays the canonical plan/subscription gating mechanism\n * once an item has already survived launcher filtering and is being resolved\n */\nexport interface LauncherRuntimeAvailabilityConfig {\n requiredCapabilities?: string[];\n /**\n * Roles that may see this launcher item (OR semantics): the item survives only while the viewer holds at least one\n * of them, through the role hierarchy, among their application roles and their roles in the CURRENT organization.\n * An organization owner therefore sees an item gated on the administrator role, and a custom role sees\n * exactly what the roles it inherits from would. Omit for everyone.\n *\n * A RESOURCE_OPERATION item does not need it, nor a RESOURCE_BROWSER section: either is already withheld from a viewer\n * who may not perform the operation it opens — none of its own `roles`, and no organization-unit grant reaching it.\n * Declare `requiredRoles` for what the target does not say itself (a view, an engine page, a custom\n * component), or to narrow a resource row further: an operation open to every member that only office staff need in\n * their navigation.\n *\n * Presentation, never authorization: hiding an entry stops offering what would be refused; the backend still\n * enforces every operation. Decided with `userRolesSatisfyRequiredRoles`, the same decision the backend's\n * operation-role check makes and the Settings Hub's `requiredRoles` uses, so a launcher row and a settings section\n * cannot disagree about who sees them.\n */\n requiredRoles?: string[];\n}\n\nexport const LauncherRuntimeAvailabilityConfigSchema = z.object({\n requiredCapabilities: z.array(z.string()).optional(),\n requiredRoles: z.array(z.string().min(1)).optional(),\n});\n/** @wildo_source:part:end saas.frontend.launcher.runtime-availability */\n\n// ════════════════════════════════════════════════════════════════\n// Scope Condition Types (used by sidebar sections)\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Parameters passed to a `ScopeConditionFn` for evaluating section visibility.\n */\nexport interface ScopeConditionParams {\n /** Current app scope values (workspace, project, environment, etc.). */\n appScopeValues: Record<string, AppScopeValue>;\n /** Currently active mode ref, or `null` if no mode system. */\n activeMode: string | null;\n /** All defined app modes (for inspecting mode metadata). */\n availableModes: AppModeDefinition[];\n}\n\n/**\n * Predicate function that determines whether a sidebar section should be visible\n * based on the current scope and mode state.\n *\n * Returns `true` to show the section, `false` to hide it.\n * Called reactively whenever scope or mode changes.\n */\nexport type ScopeConditionFn = (params: ScopeConditionParams) => boolean;\n\n/**\n * Context provided to a `ResourceBrowser` section's `onInstanceClick` callback.\n */\nexport interface ResourceBrowserClickContext {\n resourceType: string;\n instanceId: string;\n instanceData: Record<string, unknown>;\n}\n\n// ════════════════════════════════════════════════════════════════\n// AppMode Definition\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Defines an application mode (e.g., \"explorer\", \"search\", \"admin\").\n *\n * Modes filter which sidebar sections are visible. The `ACTIVITY_BAR`\n * renders available modes as selectable icons.\n */\nexport interface AppModeDefinition {\n /** Unique reference for this mode. */\n ref: string;\n /** Display label (i18n ref). */\n label: string;\n /** Icon identifier for the activity bar. */\n icon: string;\n /** Whether this is the default mode when none is persisted. */\n isDefault?: boolean;\n /** Restrict mode visibility to specific user types. */\n visibleToUserTypes?: string[];\n}\n\n// ════════════════════════════════════════════════════════════════\n// Sidebar Section Types — Discriminated Union on `contentKind`\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.launcher.item-refs facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * Base properties shared by all sidebar section types.\n * `ref` is `string`-typed — no framework enum, apps define their own refs.\n */\nexport interface SidebarSectionBase {\n contentKind: SidebarSectionContentKind;\n /** Section reference — app-defined, used for i18n and configuration matching. */\n ref: string;\n /** Display label (i18n ref). If omitted, section renders without a header. */\n label?: string;\n /** Icon for the section header. */\n icon?: string;\n /** Whether the section header (label + icon) is rendered. Defaults to `true`. */\n showLabel?: boolean;\n /** Whether the section can be collapsed by the user. */\n collapsible?: boolean;\n /** Whether the section starts collapsed. */\n defaultCollapsed?: boolean;\n /**\n * Mode refs this section is visible in. If omitted, visible in all modes.\n * String-based — validated at startup against `appModes[].ref`.\n * The section is hidden while the active mode is not one of them.\n */\n visibleInModes?: string[];\n /**\n * Function-based visibility condition for complex scope-dependent logic.\n * Called with the current scope; the section is hidden when it returns false.\n */\n scopeCondition?: ScopeConditionFn;\n /** Declarative availability evaluated by the app-shell layer: required capabilities and the roles shown to (`requiredRoles`). */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n}\n\n/**\n * Traditional navigation item list section.\n * Supports tree hierarchy, inline create, drag-reorder (via behavior).\n */\nexport interface SidebarSection_NavigationList extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.NAVIGATION_LIST;\n children: SidebarItem[];\n behavior?: SidebarSectionBehavior;\n /**\n * Marks this section as the sidebar's PRIMARY navigation group — the app's\n * top-level destinations (the \"Home group\"). Primary sections render at the\n * top of the sidebar with no section header and never collapsible. When\n * `SIDEBAR.homeDisplayMode` is `NAVIGATION_ITEM` (the default) the framework's\n * Home row heads that same group, giving the Linear/Notion \"Inbox / My Issues\n * right under Home\" shape; the other home modes surface home elsewhere and\n * leave this group to the app's own destinations.\n *\n * This is a PLACEMENT/CHROME role, deliberately distinct from\n * `SidebarSectionBehavior` (which describes where a section's ITEMS come\n * from). Section ordering is engine policy and ignores declaration order for\n * the special roles: primary section(s) first, then non-empty\n * `SidebarSectionBehavior.FAVORITES` section(s), then the remaining sections\n * in declared order. Modules can therefore contribute a primary section\n * without the app config having to interleave it manually.\n */\n isPrimary?: boolean;\n inlineCreate?: SidebarSectionInlineCreate;\n inlineCreateResourceType?: string;\n /** Field that receives the user's input during inline creation. Defaults to `'title'`. */\n inlineCreateField?: string;\n /**\n * Whether an item's `children` are drawn as a disclosure list under it (`true`, the default — a declared hierarchy is\n * kept) or listed after it at the same level (`false`). No child row is ever hidden by this setting.\n */\n nested?: boolean;\n /**\n * With `nested: true`, how many child levels are drawn (default 1: a row's children nest, their children do not). A\n * row deeper than this is drawn at the deepest level, after its ancestor — never dropped.\n */\n maxNestingDepth?: number;\n}\n\n/**\n * Filterable resource instance list section.\n * Fetches data from a bound operation and displays resource instances.\n */\nexport interface SidebarSection_ResourceBrowser extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.RESOURCE_BROWSER;\n /** Resource type to browse. */\n resourceType: string;\n /** Override the default LIST operation (optional — defaults to LIST). */\n operation?: string;\n /** Operation variant for filtered views. */\n operationVariant?: string;\n /**\n * Operation used when the user clicks a listed instance.\n * Defaults to READ when available; otherwise falls back to the bound operation.\n */\n navigateOperation?: string;\n /** Variant for the click/navigation operation. */\n navigateOperationVariant?: string;\n /**\n * Client-side filter predicate applied after fetching.\n * Enables display restrictions (e.g., \"starred only\").\n */\n instanceFilter?: (instance: Record<string, unknown>) => boolean;\n /**\n * Custom click handler for resource instances.\n * Default: navigate to instance via `NavigationUtils.resolveResourceUrl()`.\n */\n onInstanceClick?: (context: ResourceBrowserClickContext) => void;\n}\n\n/** Guidance/onboarding widget section. */\nexport interface SidebarSection_GuidanceWidget extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.GUIDANCE_WIDGET;\n /** Reference to a registered guidance component. */\n guidanceRef: string;\n}\n\n/** Arbitrary custom component section. */\nexport interface SidebarSection_CustomComponent extends SidebarSectionBase {\n contentKind: SidebarSectionContentKind.CUSTOM_COMPONENT;\n /** The name a component is registered under — engine or application (see `ComponentRegistryRef`). */\n componentRef: string;\n}\n\n/**\n * Discriminated union of all sidebar section types.\n * Narrow on `contentKind` to access type-specific properties.\n */\nexport type SidebarSection =\n | SidebarSection_NavigationList\n | SidebarSection_ResourceBrowser\n | SidebarSection_GuidanceWidget\n | SidebarSection_CustomComponent;\n/** @wildo_source:part:end saas.frontend.launcher.item-refs */\n\n// ════════════════════════════════════════════════════════════════\n// Zod Schemas\n// ════════════════════════════════════════════════════════════════\n\nexport const LauncherItemTargetKindSchema = z.enum(LauncherItemTargetKind);\nexport const EnginePageRefSchema = z.enum(EnginePageRef);\nexport const ActivityBarRenderingSchema = z.enum(ActivityBarRendering);\nexport const SidebarResponsivePolicySchema = z.enum(SidebarResponsivePolicy);\nexport const QuickActionButtonPlacementSchema = z.enum(QuickActionButtonPlacement);\nexport const SidebarSectionContentKindSchema = z.enum(SidebarSectionContentKind);\n\n/** Zod schema for `ResourceOperationItemRef`. */\nexport const ResourceOperationItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.RESOURCE_OPERATION),\n resourceType: z.string(),\n operation: z.string(),\n operationVariant: z.string().optional(),\n});\n\n/** Zod schema for `ViewItemRef`. */\nexport const ViewItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.VIEW),\n viewRef: z.string(),\n});\n\n/** Zod schema for `ResourceViewItemRef`. */\nexport const ResourceViewItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.RESOURCE_VIEW),\n resourceType: z.string(),\n viewRef: z.string(),\n});\n\n/** Zod schema for `EnginePageItemRef`. */\nexport const EnginePageItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.ENGINE_PAGE),\n pageRef: EnginePageRefSchema,\n});\n\n/** Zod schema for `CustomComponentItemRef`. */\nexport const CustomComponentItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.CUSTOM_COMPONENT),\n componentRef: z.string(),\n});\n\nexport const SettingsSectionItemRefSchema = z.object({\n kind: z.literal(LauncherItemTargetKind.SETTINGS_SECTION),\n sectionRef: z.string().optional(),\n});\n\n/**\n * Zod schema for `LauncherItemRef` — discriminated union on `kind`.\n * Validates config-time launcher item references.\n */\nexport const LauncherItemRefSchema = z.discriminatedUnion('kind', [\n ResourceOperationItemRefSchema,\n ViewItemRefSchema,\n ResourceViewItemRefSchema,\n EnginePageItemRefSchema,\n CustomComponentItemRefSchema,\n SettingsSectionItemRefSchema,\n]);\n\n/** Zod schema for `SidebarItem`. */\nexport const SidebarItemSchema: z.ZodType<SidebarItem> = z.lazy(() =>\n LauncherItemRefSchema.and(z.object({\n displayPolicy: z.enum(SidebarItemDisplayPolicy).optional(),\n notificationBadgeRef: z.string().optional(),\n children: z.array(SidebarItemSchema).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n }))\n);\n\n/** Zod schema for `CommandMenuCommand`. */\nexport const CommandMenuCommandSchema = LauncherItemRefSchema.and(z.object({\n category: z.string().optional(),\n shortcut: z.string().optional(),\n searchKeywords: z.array(z.string()).optional(),\n displayPolicy: z.enum(CommandMenuDisplayPolicy).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/**\n * @wildo_source:part:start saas.frontend.command-menu.search-resource facet:layer:frontend facet:family:app-shell\n *\n * Zod schema for `CommandMenuSearchResource` — validates each entry in the\n * `[COMMAND_MENU].searchResources` array.\n */\nexport const CommandMenuSearchResourceSchema: z.ZodType<CommandMenuSearchResource> = z.object({\n resourceType: z.string(),\n category: z.string().optional(),\n maxResults: z.number().optional(),\n order: z.number().optional(),\n resultDisplay: z.enum([\n ForeignKeyDisplayMode.ID,\n ForeignKeyDisplayMode.LABEL,\n ForeignKeyDisplayMode.SUMMARY,\n ]).optional(),\n searchKeywords: z.array(z.string()).optional(),\n});\n/** @wildo_source:part:end saas.frontend.command-menu.search-resource */\n\n/** Zod schema for `QuickActionItem`. */\nexport const QuickActionItemSchema = LauncherItemRefSchema.and(z.object({\n displayPolicy: z.enum(QuickActionDisplayPolicy).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/** Zod schema for `HotkeyBinding`. */\nexport const HotkeyBindingSchema = LauncherItemRefSchema.and(z.object({\n shortcut: z.string(),\n scope: z.enum(HotkeyScope).optional(),\n description: z.string().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/** Zod schema for `ToolbarItemRef`. */\nexport const ToolbarItemRefSchema = z.discriminatedUnion('kind', [\n ResourceOperationItemRefSchema,\n ViewItemRefSchema,\n ResourceViewItemRefSchema,\n EnginePageItemRefSchema,\n]);\n\n/** Zod schema for `ToolbarItem`. */\nexport const ToolbarItemSchema = ToolbarItemRefSchema.and(z.object({\n group: z.string().optional(),\n iconOnly: z.boolean().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/** Zod schema for `ControlPanelItem`. */\nexport const ControlPanelItemSchema = LauncherItemRefSchema.and(z.object({\n section: z.string().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n}));\n\n/**\n * Zod schema for `UtilityPanelItem`.\n *\n * A DISCRIMINATED union rather than one object with two optional refs: an item that carried both a\n * `componentRef` and a `viewRef`, or neither, would parse — and the render path would then have to\n * invent a precedence rule that no author wrote down.\n */\nexport const UtilityPanelItemSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal(LauncherItemTargetKind.CUSTOM_COMPONENT),\n componentRef: z.string(),\n icon: z.string(),\n label: z.string(),\n }),\n z.object({\n kind: z.literal(LauncherItemTargetKind.VIEW),\n viewRef: z.string(),\n icon: z.string(),\n label: z.string(),\n }),\n]);\n\n/**\n * @wildo_source:part:start saas.frontend.app-shell.hosted-components facet:layer:frontend facet:family:app-shell\n *\n * Zod schema for `MenubarHostedComponent` — validates each entry in the\n * `[MENUBAR].hostedComponents` array. `placement` determines which zone\n * (START/MIDDLE/END) the component renders in; `breakpoint` restricts the\n * component to a specific viewport breakpoint. Render order follows array\n * position in `hostedComponents`.\n */\nexport const MenubarHostedComponentSchema = z.object({\n componentType: z.string(),\n placement: z.enum(HorizontalPlacement).optional(),\n breakpoint: z.enum(ViewportBreakpoint).optional(),\n presetName: z.string().optional(),\n triggerWidth: z.union([z.string(), z.number()]).optional(),\n triggerAppearance: z.enum(HostedTriggerAppearance).optional(),\n});\n\n/**\n * Zod schema for `SidebarHostedComponent` — declares a component hosted within\n * the sidebar (the vertical mirror of `MenubarHostedComponentSchema`).\n * `placement` selects which end of the sidebar column the component renders at\n * (`TOP`/`BOTTOM`); `breakpoint` restricts it to a viewport breakpoint. Render\n * order follows array position in `hostedComponents`.\n */\nexport const SidebarHostedComponentSchema = z.object({\n componentType: z.string(),\n placement: z.enum(VerticalPlacement).optional(),\n breakpoint: z.enum(ViewportBreakpoint).optional(),\n presetName: z.string().optional(),\n triggerWidth: z.union([z.string(), z.number()]).optional(),\n triggerAppearance: z.enum(HostedTriggerAppearance).optional(),\n});\n/** @wildo_source:part:end saas.frontend.app-shell.hosted-components */\n\n/** Zod schema for `MenubarLauncherItem`. */\nexport const MenubarLauncherItemSchema = LauncherItemRefSchema.and(z.object({\n group: z.string().optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n notificationBadgeRef: z.string().optional(),\n}));\n\n// ── Sidebar Section Schemas (discriminated union on contentKind) ──\n\nconst SidebarSectionBaseSchema = z.object({\n ref: z.string(),\n label: z.string().optional(),\n icon: z.string().optional(),\n showLabel: z.boolean().optional(),\n collapsible: z.boolean().optional(),\n defaultCollapsed: z.boolean().optional(),\n visibleInModes: z.array(z.string()).optional(),\n runtimeAvailability: LauncherRuntimeAvailabilityConfigSchema.optional(),\n});\n\nexport const SidebarSection_NavigationListSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.NAVIGATION_LIST),\n children: z.array(SidebarItemSchema),\n behavior: z.enum(SidebarSectionBehavior).optional(),\n isPrimary: z.boolean().optional(),\n inlineCreate: z.enum(SidebarSectionInlineCreate).optional(),\n inlineCreateResourceType: z.string().optional(),\n inlineCreateField: z.string().optional(),\n nested: z.boolean().optional(),\n maxNestingDepth: z.number().optional(),\n});\n\nexport const SidebarSection_ResourceBrowserSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.RESOURCE_BROWSER),\n resourceType: z.string(),\n operation: z.string().optional(),\n operationVariant: z.string().optional(),\n navigateOperation: z.string().optional(),\n navigateOperationVariant: z.string().optional(),\n});\n\nexport const SidebarSection_GuidanceWidgetSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.GUIDANCE_WIDGET),\n guidanceRef: z.string(),\n});\n\nexport const SidebarSection_CustomComponentSchema = SidebarSectionBaseSchema.extend({\n contentKind: z.literal(SidebarSectionContentKind.CUSTOM_COMPONENT),\n componentRef: z.string(),\n});\n\n/**\n * Zod schema for `SidebarSection` — discriminated union on `contentKind`.\n *\n * Note: `scopeCondition` (on `SidebarSectionBase`), `instanceFilter`, and\n * `onInstanceClick` (on `SidebarSection_ResourceBrowser`) are function types\n * that cannot be validated by Zod. They are typed on the TypeScript interfaces\n * but excluded from the Zod schema (runtime code handles them directly).\n */\nexport const SidebarSectionSchema = z.discriminatedUnion('contentKind', [\n SidebarSection_NavigationListSchema,\n SidebarSection_ResourceBrowserSchema,\n SidebarSection_GuidanceWidgetSchema,\n SidebarSection_CustomComponentSchema,\n]);\n\n/** Zod schema for `AppModeDefinition`. */\nexport const AppModeDefinitionSchema = z.object({\n ref: z.string(),\n label: z.string(),\n icon: z.string(),\n isDefault: z.boolean().optional(),\n visibleToUserTypes: z.array(z.string()).optional(),\n});\n"]}
@@ -32,7 +32,7 @@
32
32
  import { ResourcePrimaryScope } from '@wildo-ai/saas-models';
33
33
  import type { RequiredFeaturesConfig } from '@wildo-ai/saas-models';
34
34
  import { type LauncherRuntimeAvailabilityContext } from '../../core/navigation/launcher-runtime-availability';
35
- import { type LauncherEffectiveRoles } from '../../core/navigation/launcher-resolution';
35
+ import { type LauncherEffectiveRoles } from '../../core/navigation/viewer-roles';
36
36
  import type { ResolvedSettingsHubConfig } from './settings-hub.frontend.schemas';
37
37
  /** The current primary-scope values used to evaluate category scope availability. */
38
38
  export interface SettingsScopeIds {
@@ -1 +1 @@
1
- {"version":3,"file":"settings-hub-gating.frontend.utils.d.ts","sourceRoot":"","sources":["../../../../src/core/config/settings-hub-gating.frontend.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAyB,KAAK,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAE7H,OAAO,KAAK,EACV,yBAAyB,EAG1B,MAAM,iCAAiC,CAAC;AAEzC,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,qEAAqE;AACrE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,8DAA8D;IAC9D,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,yHAAyH;IACzH,cAAc,EAAE,kCAAkC,CAAC;IACnD,6GAA6G;IAC7G,yBAAyB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,oBAAoB,GAAG,SAAS,EACvC,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAaT;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,EACnC,cAAc,EAAE,sBAAsB,GACrC,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE,sBAAsB,GAAG,SAAS,EACpD,eAAe,EAAE,MAAM,EAAE,GACxB,OAAO,CAYT;AAED;;;GAGG;AACH,wBAAgB,oCAAoC,CAClD,0BAA0B,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACzD,yBAAyB,EAAE,SAAS,MAAM,EAAE,GAC3C,OAAO,CAET;AA6BD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,yBAAyB,EACjC,MAAM,EAAE,wBAAwB,GAC/B,yBAAyB,CA4B3B"}
1
+ {"version":3,"file":"settings-hub-gating.frontend.utils.d.ts","sourceRoot":"","sources":["../../../../src/core/config/settings-hub-gating.frontend.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAyB,KAAK,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAEtH,OAAO,KAAK,EACV,yBAAyB,EAG1B,MAAM,iCAAiC,CAAC;AAEzC,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,qEAAqE;AACrE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,8DAA8D;IAC9D,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,yHAAyH;IACzH,cAAc,EAAE,kCAAkC,CAAC;IACnD,6GAA6G;IAC7G,yBAAyB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,oBAAoB,GAAG,SAAS,EACvC,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAaT;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,EACnC,cAAc,EAAE,sBAAsB,GACrC,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE,sBAAsB,GAAG,SAAS,EACpD,eAAe,EAAE,MAAM,EAAE,GACxB,OAAO,CAYT;AAED;;;GAGG;AACH,wBAAgB,oCAAoC,CAClD,0BAA0B,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACzD,yBAAyB,EAAE,SAAS,MAAM,EAAE,GAC3C,OAAO,CAET;AA6BD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,yBAAyB,EACjC,MAAM,EAAE,wBAAwB,GAC/B,yBAAyB,CA4B3B"}
@@ -31,7 +31,7 @@
31
31
  */
32
32
  import { ResourcePrimaryScope } from '@wildo-ai/saas-models';
33
33
  import { isLauncherRuntimeAvailabilitySatisfied, } from '../../core/navigation/launcher-runtime-availability.js';
34
- import { viewerHoldsOneOfRoles } from '../../core/navigation/launcher-resolution.js';
34
+ import { viewerHoldsOneOfRoles } from '../../core/navigation/viewer-roles.js';
35
35
  import { SettingsSectionTargetKind } from './settings-hub.frontend.schemas.js';
36
36
  /**
37
37
  * Whether a category's primary scope currently has a value. A category without a
@@ -1 +1 @@
1
- {"version":3,"file":"settings-hub-gating.frontend.utils.js","sourceRoot":"","sources":["../../../../src/core/config/settings-hub-gating.frontend.utils.ts"],"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AAE,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,4DAA4D;IAC5D,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;IAC3F,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAC3D,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CACxC,CAAC;IAEF,MAAM,iBAAiB,GACrB,MAAM,CAAC,iBAAiB,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,KAAK,MAAM,CAAC,iBAAiB,CAAC;QACnG,CAAC,CAAC,MAAM,CAAC,iBAAiB;QAC1B,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAE9B,OAAO;QACL,UAAU,EAAE,iBAAiB;QAC7B,QAAQ,EAAE,eAAe;QACzB,iBAAiB;KAClB,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Settings Hub — Section Gating (\"face to right management of the user\")\n *\n * Pure, React-free evaluation of which categories/sections the current user may\n * see. Kept separate from the {@link useVisibleSettingsHubConfig} hook so the\n * gating decisions are unit-testable without a React tree.\n *\n * Four orthogonal gates, mirroring the framework's existing launcher/view gating\n * semantics so settings sections behave identically to every other gated surface:\n *\n * 1. **Scope** — a category bound to a {@link ResourcePrimaryScope} is hidden\n * when that scope has no current value (e.g. the `ORGANIZATIONS` category is\n * hidden when no organization is selected). Scope-agnostic categories always\n * pass.\n * 2. **Capability** — `runtimeAvailability.requiredCapabilities` evaluated via\n * the SAME {@link isLauncherRuntimeAvailabilitySatisfied} the sidebar/command\n * menu use (e.g. `billingEnabled`).\n * 3. **Role** — `requiredRoles` (OR semantics) evaluated against the merged\n * app-level + current-organization role set (`buildFeaturePolicyRoles`).\n * 4. **Feature** — `requiredFeatures` ({@link RequiredFeaturesConfig}) boolean\n * presence check against the resolved feature list. `limitChecks` are\n * intentionally ignored: a settings section is shown or hidden, never\n * \"over-limit\".\n *\n * A SUB_TABS section's tabs then pass the capability gate one by one (#2649): a\n * tab whose `runtimeAvailability` fails is left out, and a section left with no\n * tab is left out with it.\n *\n * @see settings-hub.frontend.schemas.ts — the gated section contract\n * @see useVisibleSettingsHubConfig.ts — the hook that wires live signals into this\n */\n\nimport { ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport type { RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport {\n isLauncherRuntimeAvailabilitySatisfied,\n type LauncherRuntimeAvailabilityContext,\n} from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { viewerHoldsOneOfRoles, type LauncherEffectiveRoles } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport { SettingsSectionTargetKind } from './settings-hub.frontend.schemas';\nimport type {\n ResolvedSettingsHubConfig,\n SettingsCategory,\n SettingsSection,\n} from './settings-hub.frontend.schemas';\n\n/** The current primary-scope values used to evaluate category scope availability. */\nexport interface SettingsScopeIds {\n currentUserId?: string | null;\n currentOrganizationId?: string | null;\n currentApplicationId?: string | null;\n currentAnonymousUserId?: string | null;\n}\n\n/** Everything the pure filter needs to decide section visibility. */\nexport interface SettingsHubGatingContext {\n scopeIds: SettingsScopeIds;\n /** Resolved boolean feature identifiers currently enabled. */\n enabledFeatures: string[];\n /** Runtime-capability context (reused verbatim from the launcher layer). Its `effectiveRoles` decide `requiredRoles`. */\n runtimeContext: LauncherRuntimeAvailabilityContext;\n /** The engine capabilities the application enables (`AppConfiguration_Shared.enabledEngineCapabilities`). */\n enabledEngineCapabilities: readonly string[];\n}\n\n/**\n * Whether a category's primary scope currently has a value. A category without a\n * `scope` is scope-agnostic and always available.\n */\nexport function isSettingsScopeAvailable(\n scope: ResourcePrimaryScope | undefined,\n scopeIds: SettingsScopeIds,\n): boolean {\n switch (scope) {\n case undefined:\n return true;\n case ResourcePrimaryScope.USER_SELF:\n return Boolean(scopeIds.currentUserId);\n case ResourcePrimaryScope.ORGANIZATIONS:\n return Boolean(scopeIds.currentOrganizationId);\n case ResourcePrimaryScope.APPLICATION:\n return Boolean(scopeIds.currentApplicationId);\n case ResourcePrimaryScope.ANONYMOUS:\n return Boolean(scopeIds.currentAnonymousUserId);\n }\n}\n\n/**\n * Whether the viewer may see a section with these `requiredRoles`: the app shell's ONE role-visibility decision\n * ({@link viewerHoldsOneOfRoles}, OR through the role hierarchy), shared with every launcher item (#2376).\n *\n * It used to compare role names with no hierarchy, so an owner failed a gate naming only the administrator role,\n * while a launcher row and the backend would have let them through.\n */\nexport function hasRequiredSettingsRoles(\n requiredRoles: string[] | undefined,\n effectiveRoles: LauncherEffectiveRoles,\n): boolean {\n return viewerHoldsOneOfRoles(requiredRoles, effectiveRoles);\n}\n\n/**\n * Boolean feature gate mirroring {@link RequiredFeaturesConfig} semantics\n * (shorthand `string[]` = OR; full form honours `mode`). `limitChecks` are not\n * evaluated for visibility. A section with no `requiredFeatures` is open.\n */\nexport function areSettingsFeaturesSatisfied(\n requiredFeatures: RequiredFeaturesConfig | undefined,\n enabledFeatures: string[],\n): boolean {\n if (!requiredFeatures) return true;\n\n const featureList = Array.isArray(requiredFeatures)\n ? requiredFeatures\n : (requiredFeatures.features ?? []);\n if (featureList.length === 0) return true;\n\n const mode = Array.isArray(requiredFeatures) ? 'OR' : (requiredFeatures.mode ?? 'OR');\n return mode === 'OR'\n ? featureList.some(feature => enabledFeatures.includes(feature))\n : featureList.every(feature => enabledFeatures.includes(feature));\n}\n\n/**\n * Engine-capability gate (#2314): a section that serves engine capabilities appears only while the application\n * enables every one of them. A section declaring none is open.\n */\nexport function areSettingsEngineCapabilitiesEnabled(\n requiredEngineCapabilities: readonly string[] | undefined,\n enabledEngineCapabilities: readonly string[],\n): boolean {\n return (requiredEngineCapabilities ?? []).every(capability => enabledEngineCapabilities.includes(capability));\n}\n\n/** A section passes every gate except its category's scope (checked at the category level). */\nfunction isSectionVisible(section: SettingsSection, gating: SettingsHubGatingContext): boolean {\n return (\n areSettingsEngineCapabilitiesEnabled(section.requiredEngineCapabilities, gating.enabledEngineCapabilities) &&\n isLauncherRuntimeAvailabilitySatisfied(section.runtimeAvailability, gating.runtimeContext) &&\n hasRequiredSettingsRoles(section.requiredRoles, gating.runtimeContext.effectiveRoles) &&\n areSettingsFeaturesSatisfied(section.requiredFeatures, gating.enabledFeatures)\n );\n}\n\n/**\n * The section with only the sub-tabs whose own `runtimeAvailability` holds (#2649), or `null` when a SUB_TABS section\n * keeps none: an empty tab strip is a section with nothing in it, which the rail does not offer.\n *\n * Gated HERE, in the one pure filter, rather than where the strip renders, so every reader of the gated config agrees\n * on what a section shows: the strip, the default tab a link falls back to, and the width the overlay derives from the\n * section's targets (`settings-hub-presentation.frontend.utils.ts`).\n */\nfunction withVisibleSubTabs(section: SettingsSection, gating: SettingsHubGatingContext): SettingsSection | null {\n if (section.target.kind !== SettingsSectionTargetKind.SUB_TABS) return section;\n const subTabs = section.target.subTabs.filter(subTab =>\n isLauncherRuntimeAvailabilitySatisfied(subTab.runtimeAvailability, gating.runtimeContext),\n );\n if (subTabs.length === 0) return null;\n return subTabs.length === section.target.subTabs.length ? section : { ...section, target: { ...section.target, subTabs } };\n}\n\n/**\n * Filter a raw {@link ResolvedSettingsHubConfig} down to what the current user may see.\n *\n * Categories are dropped when their scope is unavailable OR when every one of\n * their sections is gated out (an empty rail group would be visual noise). The\n * `defaultSectionRef` is recomputed when the configured default is no longer\n * visible, so the hub never tries to open a section the user cannot access.\n */\nexport function filterSettingsHubConfig(\n config: ResolvedSettingsHubConfig,\n gating: SettingsHubGatingContext,\n): ResolvedSettingsHubConfig {\n const scopedCategories: SettingsCategory[] = config.categories.filter(category =>\n isSettingsScopeAvailable(category.scope, gating.scopeIds),\n );\n const scopedCategoryRefs = new Set(scopedCategories.map(category => category.ref));\n\n const visibleSections = config.sections.flatMap((section) => {\n if (!scopedCategoryRefs.has(section.categoryRef) || !isSectionVisible(section, gating)) return [];\n const gatedSection = withVisibleSubTabs(section, gating);\n return gatedSection ? [gatedSection] : [];\n });\n\n // Drop categories that ended up with zero visible sections.\n const populatedCategoryRefs = new Set(visibleSections.map(section => section.categoryRef));\n const visibleCategories = scopedCategories.filter(category =>\n populatedCategoryRefs.has(category.ref),\n );\n\n const defaultSectionRef =\n config.defaultSectionRef && visibleSections.some(section => section.ref === config.defaultSectionRef)\n ? config.defaultSectionRef\n : visibleSections[0]?.ref;\n\n return {\n categories: visibleCategories,\n sections: visibleSections,\n defaultSectionRef,\n };\n}\n"]}
1
+ {"version":3,"file":"settings-hub-gating.frontend.utils.js","sourceRoot":"","sources":["../../../../src/core/config/settings-hub-gating.frontend.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACL,sCAAsC,GAEvC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAA+B,MAAM,kDAAkD,CAAC;AACtH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AA0B5E;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAuC,EACvC,QAA0B;IAE1B,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC;QACd,KAAK,oBAAoB,CAAC,SAAS;YACjC,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACzC,KAAK,oBAAoB,CAAC,aAAa;YACrC,OAAO,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QACjD,KAAK,oBAAoB,CAAC,WAAW;YACnC,OAAO,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;QAChD,KAAK,oBAAoB,CAAC,SAAS;YACjC,OAAO,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC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,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnF,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1D,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC;YAAE,OAAO,EAAE,CAAC;QAClG,MAAM,YAAY,GAAG,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACzD,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,4DAA4D;IAC5D,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;IAC3F,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAC3D,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CACxC,CAAC;IAEF,MAAM,iBAAiB,GACrB,MAAM,CAAC,iBAAiB,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,KAAK,MAAM,CAAC,iBAAiB,CAAC;QACnG,CAAC,CAAC,MAAM,CAAC,iBAAiB;QAC1B,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAE9B,OAAO;QACL,UAAU,EAAE,iBAAiB;QAC7B,QAAQ,EAAE,eAAe;QACzB,iBAAiB;KAClB,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Settings Hub — Section Gating (\"face to right management of the user\")\n *\n * Pure, React-free evaluation of which categories/sections the current user may\n * see. Kept separate from the {@link useVisibleSettingsHubConfig} hook so the\n * gating decisions are unit-testable without a React tree.\n *\n * Four orthogonal gates, mirroring the framework's existing launcher/view gating\n * semantics so settings sections behave identically to every other gated surface:\n *\n * 1. **Scope** — a category bound to a {@link ResourcePrimaryScope} is hidden\n * when that scope has no current value (e.g. the `ORGANIZATIONS` category is\n * hidden when no organization is selected). Scope-agnostic categories always\n * pass.\n * 2. **Capability** — `runtimeAvailability.requiredCapabilities` evaluated via\n * the SAME {@link isLauncherRuntimeAvailabilitySatisfied} the sidebar/command\n * menu use (e.g. `billingEnabled`).\n * 3. **Role** — `requiredRoles` (OR semantics) evaluated against the merged\n * app-level + current-organization role set (`buildFeaturePolicyRoles`).\n * 4. **Feature** — `requiredFeatures` ({@link RequiredFeaturesConfig}) boolean\n * presence check against the resolved feature list. `limitChecks` are\n * intentionally ignored: a settings section is shown or hidden, never\n * \"over-limit\".\n *\n * A SUB_TABS section's tabs then pass the capability gate one by one (#2649): a\n * tab whose `runtimeAvailability` fails is left out, and a section left with no\n * tab is left out with it.\n *\n * @see settings-hub.frontend.schemas.ts — the gated section contract\n * @see useVisibleSettingsHubConfig.ts — the hook that wires live signals into this\n */\n\nimport { ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport type { RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport {\n isLauncherRuntimeAvailabilitySatisfied,\n type LauncherRuntimeAvailabilityContext,\n} from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { viewerHoldsOneOfRoles, type LauncherEffectiveRoles } from '~wildo-frontend-lib/core/navigation/viewer-roles';\nimport { SettingsSectionTargetKind } from './settings-hub.frontend.schemas';\nimport type {\n ResolvedSettingsHubConfig,\n SettingsCategory,\n SettingsSection,\n} from './settings-hub.frontend.schemas';\n\n/** The current primary-scope values used to evaluate category scope availability. */\nexport interface SettingsScopeIds {\n currentUserId?: string | null;\n currentOrganizationId?: string | null;\n currentApplicationId?: string | null;\n currentAnonymousUserId?: string | null;\n}\n\n/** Everything the pure filter needs to decide section visibility. */\nexport interface SettingsHubGatingContext {\n scopeIds: SettingsScopeIds;\n /** Resolved boolean feature identifiers currently enabled. */\n enabledFeatures: string[];\n /** Runtime-capability context (reused verbatim from the launcher layer). Its `effectiveRoles` decide `requiredRoles`. */\n runtimeContext: LauncherRuntimeAvailabilityContext;\n /** The engine capabilities the application enables (`AppConfiguration_Shared.enabledEngineCapabilities`). */\n enabledEngineCapabilities: readonly string[];\n}\n\n/**\n * Whether a category's primary scope currently has a value. A category without a\n * `scope` is scope-agnostic and always available.\n */\nexport function isSettingsScopeAvailable(\n scope: ResourcePrimaryScope | undefined,\n scopeIds: SettingsScopeIds,\n): boolean {\n switch (scope) {\n case undefined:\n return true;\n case ResourcePrimaryScope.USER_SELF:\n return Boolean(scopeIds.currentUserId);\n case ResourcePrimaryScope.ORGANIZATIONS:\n return Boolean(scopeIds.currentOrganizationId);\n case ResourcePrimaryScope.APPLICATION:\n return Boolean(scopeIds.currentApplicationId);\n case ResourcePrimaryScope.ANONYMOUS:\n return Boolean(scopeIds.currentAnonymousUserId);\n }\n}\n\n/**\n * Whether the viewer may see a section with these `requiredRoles`: the app shell's ONE role-visibility decision\n * ({@link viewerHoldsOneOfRoles}, OR through the role hierarchy), shared with every launcher item (#2376).\n *\n * It used to compare role names with no hierarchy, so an owner failed a gate naming only the administrator role,\n * while a launcher row and the backend would have let them through.\n */\nexport function hasRequiredSettingsRoles(\n requiredRoles: string[] | undefined,\n effectiveRoles: LauncherEffectiveRoles,\n): boolean {\n return viewerHoldsOneOfRoles(requiredRoles, effectiveRoles);\n}\n\n/**\n * Boolean feature gate mirroring {@link RequiredFeaturesConfig} semantics\n * (shorthand `string[]` = OR; full form honours `mode`). `limitChecks` are not\n * evaluated for visibility. A section with no `requiredFeatures` is open.\n */\nexport function areSettingsFeaturesSatisfied(\n requiredFeatures: RequiredFeaturesConfig | undefined,\n enabledFeatures: string[],\n): boolean {\n if (!requiredFeatures) return true;\n\n const featureList = Array.isArray(requiredFeatures)\n ? requiredFeatures\n : (requiredFeatures.features ?? []);\n if (featureList.length === 0) return true;\n\n const mode = Array.isArray(requiredFeatures) ? 'OR' : (requiredFeatures.mode ?? 'OR');\n return mode === 'OR'\n ? featureList.some(feature => enabledFeatures.includes(feature))\n : featureList.every(feature => enabledFeatures.includes(feature));\n}\n\n/**\n * Engine-capability gate (#2314): a section that serves engine capabilities appears only while the application\n * enables every one of them. A section declaring none is open.\n */\nexport function areSettingsEngineCapabilitiesEnabled(\n requiredEngineCapabilities: readonly string[] | undefined,\n enabledEngineCapabilities: readonly string[],\n): boolean {\n return (requiredEngineCapabilities ?? []).every(capability => enabledEngineCapabilities.includes(capability));\n}\n\n/** A section passes every gate except its category's scope (checked at the category level). */\nfunction isSectionVisible(section: SettingsSection, gating: SettingsHubGatingContext): boolean {\n return (\n areSettingsEngineCapabilitiesEnabled(section.requiredEngineCapabilities, gating.enabledEngineCapabilities) &&\n isLauncherRuntimeAvailabilitySatisfied(section.runtimeAvailability, gating.runtimeContext) &&\n hasRequiredSettingsRoles(section.requiredRoles, gating.runtimeContext.effectiveRoles) &&\n areSettingsFeaturesSatisfied(section.requiredFeatures, gating.enabledFeatures)\n );\n}\n\n/**\n * The section with only the sub-tabs whose own `runtimeAvailability` holds (#2649), or `null` when a SUB_TABS section\n * keeps none: an empty tab strip is a section with nothing in it, which the rail does not offer.\n *\n * Gated HERE, in the one pure filter, rather than where the strip renders, so every reader of the gated config agrees\n * on what a section shows: the strip, the default tab a link falls back to, and the width the overlay derives from the\n * section's targets (`settings-hub-presentation.frontend.utils.ts`).\n */\nfunction withVisibleSubTabs(section: SettingsSection, gating: SettingsHubGatingContext): SettingsSection | null {\n if (section.target.kind !== SettingsSectionTargetKind.SUB_TABS) return section;\n const subTabs = section.target.subTabs.filter(subTab =>\n isLauncherRuntimeAvailabilitySatisfied(subTab.runtimeAvailability, gating.runtimeContext),\n );\n if (subTabs.length === 0) return null;\n return subTabs.length === section.target.subTabs.length ? section : { ...section, target: { ...section.target, subTabs } };\n}\n\n/**\n * Filter a raw {@link ResolvedSettingsHubConfig} down to what the current user may see.\n *\n * Categories are dropped when their scope is unavailable OR when every one of\n * their sections is gated out (an empty rail group would be visual noise). The\n * `defaultSectionRef` is recomputed when the configured default is no longer\n * visible, so the hub never tries to open a section the user cannot access.\n */\nexport function filterSettingsHubConfig(\n config: ResolvedSettingsHubConfig,\n gating: SettingsHubGatingContext,\n): ResolvedSettingsHubConfig {\n const scopedCategories: SettingsCategory[] = config.categories.filter(category =>\n isSettingsScopeAvailable(category.scope, gating.scopeIds),\n );\n const scopedCategoryRefs = new Set(scopedCategories.map(category => category.ref));\n\n const visibleSections = config.sections.flatMap((section) => {\n if (!scopedCategoryRefs.has(section.categoryRef) || !isSectionVisible(section, gating)) return [];\n const gatedSection = withVisibleSubTabs(section, gating);\n return gatedSection ? [gatedSection] : [];\n });\n\n // Drop categories that ended up with zero visible sections.\n const populatedCategoryRefs = new Set(visibleSections.map(section => section.categoryRef));\n const visibleCategories = scopedCategories.filter(category =>\n populatedCategoryRefs.has(category.ref),\n );\n\n const defaultSectionRef =\n config.defaultSectionRef && visibleSections.some(section => section.ref === config.defaultSectionRef)\n ? config.defaultSectionRef\n : visibleSections[0]?.ref;\n\n return {\n categories: visibleCategories,\n sections: visibleSections,\n defaultSectionRef,\n };\n}\n"]}
@@ -211,7 +211,7 @@ export interface SettingsSubTab {
211
211
  /** What this sub-tab renders. Sub-tabs hold leaf targets only. */
212
212
  target: SettingsLeafTarget;
213
213
  /**
214
- * Declarative runtime capability gating for this one tab, the same contract as the section's own (#2649). A tab
214
+ * Declarative runtime capability gating for this one tab, the same contract as the section's own. A tab
215
215
  * whose capabilities are off is left out of the section, and a section left with no tab is left out of the rail.
216
216
  *
217
217
  * For a section whose tabs are not all meaningful in every state: the SCIM section shows its tokens wherever the
@@ -260,13 +260,13 @@ export interface SettingsCategory {
260
260
  /** Sort order among categories in the rail (lower = higher). */
261
261
  order?: number;
262
262
  /**
263
- * Sub-categories of this category's rail (#2329): People, Security & access, Integrations and the like. A placement
263
+ * Sub-categories of this category's rail: People, Security & access, Integrations and the like. A placement
264
264
  * names one through `groupRef`; the rail draws each group's heading above its sections, ungrouped sections first.
265
265
  * Declared like categories, so the application arranges its own rail.
266
266
  */
267
267
  groups?: SettingsCategoryGroup[];
268
268
  }
269
- /** One sub-category of a {@link SettingsCategory}'s rail (#2329). */
269
+ /** One sub-category of a {@link SettingsCategory}'s rail. */
270
270
  export interface SettingsCategoryGroup {
271
271
  /** Group reference, unique within its category; named by `SettingsPlacement.groupRef`. */
272
272
  ref: string;
@@ -313,9 +313,11 @@ export interface SettingsDestination {
313
313
  requiredRoles?: string[];
314
314
  /** Optional CoreFeature id this destination's content is ENTITLED by (soft gate — renders an upgrade prompt). */
315
315
  entitlementFeatureId?: string;
316
+ /** See {@link SettingsSection.entitlementWithholdsContent}. */
317
+ entitlementWithholdsContent?: boolean;
316
318
  /**
317
- * Engine capabilities this destination serves, ALL of which the application must enable for it to appear
318
- * (#2314). A section about a capability the application does not have is noise at best, and at worst a page whose
319
+ * Engine capabilities this destination serves, ALL of which the application must enable for it to appear.
320
+ * A section about a capability the application does not have is noise at best, and at worst a page whose
319
321
  * actions fail: agent work review without a language model, email domains without inbound email. Read from the
320
322
  * application's declared `engineCapabilities` (`AppConfiguration_Shared.enabledEngineCapabilities`), so it is the
321
323
  * same whoever is looking.
@@ -341,7 +343,7 @@ export interface SettingsPlacement {
341
343
  destinationRef: string;
342
344
  /** Which category (rail group) this destination sits under. */
343
345
  categoryRef: string;
344
- /** Which of that category's `groups` it sits under (#2329). Omit to place it above the groups. Refused at DEV startup when unknown. */
346
+ /** Which of that category's `groups` it sits under. Omit to place it above the groups. Refused at DEV startup when unknown. */
345
347
  groupRef?: string;
346
348
  /** Sort order within the category, or within its group (lower = higher). */
347
349
  order?: number;
@@ -414,6 +416,15 @@ export interface SettingsSection {
414
416
  * sold by no plan, renders the kept-configuration notice alone.
415
417
  */
416
418
  entitlementFeatureId?: string;
419
+ /**
420
+ * Whether the feature named by {@link entitlementFeatureId} sells the section's CONTENT itself, rather than a
421
+ * configuration the section holds. Reading the organization's audit log is the example: there is nothing configured
422
+ * to keep, and the content is exactly what the backend refuses without the feature. When true, an organization that
423
+ * is not entitled sees the feature's own prompt (`unavailabilityPolicy`) IN PLACE of the content, with no
424
+ * kept-configuration notice; when absent, the section keeps the notice-and-content shape a configuration section needs
425
+ * so that removing access stays possible under a lapse.
426
+ */
427
+ entitlementWithholdsContent?: boolean;
417
428
  /** Engine capabilities the destination serves; see {@link SettingsDestination.requiredEngineCapabilities}. */
418
429
  requiredEngineCapabilities?: readonly EngineCapability[];
419
430
  }
@@ -1 +1 @@
1
- {"version":3,"file":"settings-hub.frontend.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/settings-hub.frontend.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAM3F,oEAAoE;AACpE;;;;;;;GAOG;AACH,oBAAY,yBAAyB;IACnC,iEAAiE;IACjE,YAAY,iBAAiB;IAC7B,+FAA+F;IAC/F,kBAAkB,uBAAuB;IACzC,sFAAsF;IACtF,gBAAgB,qBAAqB;IACrC,0GAA0G;IAC1G,QAAQ,aAAa;CACtB;AACD,kEAAkE;AAMlE;;;;;;;;;;GAUG;AACH,oBAAY,gBAAgB;IAC1B,wGAAwG;IACxG,QAAQ,aAAa;IACrB,qEAAqE;IACrE,UAAU,eAAe;IACzB,oFAAoF;IACpF,WAAW,gBAAgB;IAC3B;;;;;;;;;;;OAWG;IACH,OAAO,YAAY;IACnB;;;;;;;;;;;;OAYG;IACH,kBAAkB,uBAAuB;IACzC;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AU,EAAE,gBAAgB,EAAE,CAAC;IAC/B;;;;;;OAMG;IACH,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AACD,kEAAkE"}
1
+ {"version":3,"file":"settings-hub.frontend.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/settings-hub.frontend.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAM3F,oEAAoE;AACpE;;;;;;;GAOG;AACH,oBAAY,yBAAyB;IACnC,iEAAiE;IACjE,YAAY,iBAAiB;IAC7B,+FAA+F;IAC/F,kBAAkB,uBAAuB;IACzC,sFAAsF;IACtF,gBAAgB,qBAAqB;IACrC,0GAA0G;IAC1G,QAAQ,aAAa;CACtB;AACD,kEAAkE;AAMlE;;;;;;;;;;GAUG;AACH,oBAAY,gBAAgB;IAC1B,wGAAwG;IACxG,QAAQ,aAAa;IACrB,qEAAqE;IACrE,UAAU,eAAe;IACzB,oFAAoF;IACpF,WAAW,gBAAgB;IAC3B;;;;;;;;;;;OAWG;IACH,OAAO,YAAY;IACnB;;;;;;;;;;;;OAYG;IACH,kBAAkB,uBAAuB;IACzC;;;;;;;OAOG;IACH,+BAA+B,oCAAoC;IACnE;;;;;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