@kardalum/plugin-sdk 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/admin-section-registry.d.ts +33 -1
  3. package/dist/admin-section-registry.js +67 -0
  4. package/dist/capabilities.js +46 -1
  5. package/dist/consent-entry.d.ts +11 -0
  6. package/dist/consent-entry.js +18 -0
  7. package/dist/content-library.d.ts +17 -0
  8. package/dist/content-list-extensions.d.ts +50 -0
  9. package/dist/content-list-extensions.js +11 -0
  10. package/dist/content-picker/page-picker-sheet.d.ts +2 -0
  11. package/dist/content-picker/page-picker-sheet.js +1 -1
  12. package/dist/content-picker/page-picker.d.ts +18 -0
  13. package/dist/content-picker/page-picker.js +20 -0
  14. package/dist/datatype-validation.js +10 -2
  15. package/dist/datatypes-entry.d.ts +1 -0
  16. package/dist/datatypes-entry.js +2 -0
  17. package/dist/entitlement-types.d.ts +18 -1
  18. package/dist/host-entry.d.ts +7 -1
  19. package/dist/host-entry.js +14 -1
  20. package/dist/index.d.ts +35 -7
  21. package/dist/index.js +46 -5
  22. package/dist/mail.d.ts +6 -2
  23. package/dist/manifest-entry.d.ts +22 -4
  24. package/dist/manifest-entry.js +25 -1
  25. package/dist/manifest-schema.d.ts +570 -31
  26. package/dist/manifest-schema.js +240 -12
  27. package/dist/manifest.d.ts +757 -32
  28. package/dist/manifest.js +8 -4
  29. package/dist/plugin-context.d.ts +47 -0
  30. package/dist/plugin-context.js +27 -0
  31. package/dist/plugin-permissions.d.ts +18 -0
  32. package/dist/plugin-permissions.js +25 -0
  33. package/dist/plugin-screen-context.d.ts +152 -11
  34. package/dist/plugin-screen-context.js +30 -0
  35. package/dist/providers.d.ts +47 -2
  36. package/dist/render-page.d.ts +15 -0
  37. package/dist/render-page.js +20 -0
  38. package/dist/richtext/block-panel.d.ts +12 -1
  39. package/dist/richtext/block-panel.js +27 -21
  40. package/dist/richtext/button-view.d.ts +11 -0
  41. package/dist/richtext/button-view.js +45 -0
  42. package/dist/richtext/content-guard.d.ts +4 -0
  43. package/dist/richtext/content-guard.js +27 -0
  44. package/dist/richtext/editor-handle.d.ts +34 -0
  45. package/dist/richtext/editor-handle.js +225 -0
  46. package/dist/richtext/extensions.d.ts +6 -0
  47. package/dist/richtext/extensions.js +16 -0
  48. package/dist/richtext/insert-menu.d.ts +6 -1
  49. package/dist/richtext/insert-menu.js +38 -18
  50. package/dist/richtext/item-attributes.d.ts +6 -0
  51. package/dist/richtext/item-attributes.js +19 -0
  52. package/dist/richtext/item-panel.d.ts +25 -0
  53. package/dist/richtext/item-panel.js +118 -0
  54. package/dist/richtext/item-view.d.ts +58 -0
  55. package/dist/richtext/item-view.js +172 -0
  56. package/dist/richtext/mark-form.d.ts +10 -0
  57. package/dist/richtext/mark-form.js +38 -0
  58. package/dist/richtext/paste-choice.d.ts +9 -0
  59. package/dist/richtext/paste-choice.js +13 -0
  60. package/dist/richtext/plugin-items.d.ts +72 -0
  61. package/dist/richtext/plugin-items.js +562 -0
  62. package/dist/richtext/plugin-mark-tooltips.d.ts +5 -0
  63. package/dist/richtext/plugin-mark-tooltips.js +44 -0
  64. package/dist/richtext/plugin-toolbar.d.ts +57 -0
  65. package/dist/richtext/plugin-toolbar.js +186 -0
  66. package/dist/richtext/rich-item-icons.d.ts +5 -0
  67. package/dist/richtext/rich-item-icons.js +42 -0
  68. package/dist/richtext/rich-items.d.ts +42 -0
  69. package/dist/richtext/rich-items.js +68 -0
  70. package/dist/richtext/rich-text-view-host.d.ts +24 -0
  71. package/dist/richtext/rich-text-view-host.js +11 -0
  72. package/dist/richtext/toolbar-button.d.ts +16 -0
  73. package/dist/richtext/toolbar-button.js +9 -0
  74. package/dist/richtext/url-paste.d.ts +20 -0
  75. package/dist/richtext/url-paste.js +82 -0
  76. package/dist/richtext-html-entry.d.ts +5 -0
  77. package/dist/richtext-html-entry.js +11 -0
  78. package/dist/sdk-strings.d.ts +59 -0
  79. package/dist/sdk-strings.js +64 -0
  80. package/dist/service-contract.d.ts +17 -0
  81. package/dist/service-contract.js +39 -0
  82. package/dist/services.d.ts +114 -0
  83. package/dist/services.js +1 -0
  84. package/dist/structured-storage-types.d.ts +124 -4
  85. package/dist/tailwind.js +10 -5
  86. package/dist/template-reads.d.ts +16 -0
  87. package/dist/template-reads.js +21 -0
  88. package/dist/testing-entry.d.ts +38 -0
  89. package/dist/testing-entry.js +173 -0
  90. package/dist/text-entry.d.ts +1 -1
  91. package/dist/text-entry.js +3 -2
  92. package/dist/tokens/system-dark.css +1 -0
  93. package/dist/tokens/tailwind-theme.css +2 -0
  94. package/dist/tokens/tokens.css +4 -0
  95. package/dist/tokens/tokens.json +5 -1
  96. package/dist/uploads.d.ts +43 -0
  97. package/dist/uploads.js +1 -0
  98. package/dist/user-library.d.ts +51 -0
  99. package/dist/user-library.js +15 -0
  100. package/dist/view-helpers.d.ts +18 -0
  101. package/dist/view-helpers.js +64 -0
  102. package/dist/views/content-list-view.js +207 -8
  103. package/dist/views/content-picker-view.js +1 -1
  104. package/dist/views/rich-text-view.d.ts +2 -0
  105. package/dist/views/rich-text-view.js +182 -24
  106. package/dist/views/unreadable-rich-text.d.ts +17 -0
  107. package/dist/views/unreadable-rich-text.js +40 -0
  108. package/dist/visitors.d.ts +81 -0
  109. package/dist/visitors.js +1 -0
  110. package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.d.ts +21 -0
  111. package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.js +39 -0
  112. package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.d.ts +2 -0
  113. package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.js +31 -0
  114. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +127 -8
  115. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +82 -7
  116. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +5 -1
  117. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +2 -2
  118. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +7 -0
  119. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +11 -0
  120. package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +1 -1
  121. package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +18 -0
  122. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +80 -0
  123. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +41 -2
  124. package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.d.ts +213 -0
  125. package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.js +234 -0
  126. package/node_modules/@kardalum/api-schemas/dist/contribution-issues.d.ts +11 -0
  127. package/node_modules/@kardalum/api-schemas/dist/contribution-issues.js +14 -0
  128. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +50 -13
  129. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +19 -10
  130. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +77 -0
  131. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +37 -0
  132. package/node_modules/@kardalum/api-schemas/dist/experimental-points.d.ts +19 -0
  133. package/node_modules/@kardalum/api-schemas/dist/experimental-points.js +250 -0
  134. package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.d.ts +29 -0
  135. package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.js +31 -0
  136. package/node_modules/@kardalum/api-schemas/dist/html-scan.d.ts +22 -0
  137. package/node_modules/@kardalum/api-schemas/dist/html-scan.js +122 -0
  138. package/node_modules/@kardalum/api-schemas/dist/html-start-tags.d.ts +48 -0
  139. package/node_modules/@kardalum/api-schemas/dist/html-start-tags.js +381 -0
  140. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +52 -14
  141. package/node_modules/@kardalum/api-schemas/dist/index.js +53 -9
  142. package/node_modules/@kardalum/api-schemas/dist/json-depth.d.ts +3 -0
  143. package/node_modules/@kardalum/api-schemas/dist/json-depth.js +20 -0
  144. package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +4 -2
  145. package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +6 -1
  146. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +178 -2
  147. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +10 -0
  148. package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +3 -3
  149. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +16 -0
  150. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +4 -0
  151. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +4 -0
  152. package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +7 -0
  153. package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +51 -2
  154. package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.d.ts +87 -0
  155. package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.js +44 -0
  156. package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.d.ts +11 -0
  157. package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.js +61 -0
  158. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +4 -2
  159. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +12 -2
  160. package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.d.ts +136 -0
  161. package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.js +254 -0
  162. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.d.ts +22 -0
  163. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.js +66 -0
  164. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.d.ts +130 -0
  165. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.js +173 -0
  166. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.d.ts +16 -0
  167. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.js +112 -0
  168. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.d.ts +70 -0
  169. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.js +380 -0
  170. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.d.ts +3 -0
  171. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.js +68 -0
  172. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +18 -0
  173. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +18 -0
  174. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +5 -2
  175. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +10 -2
  176. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +48 -1
  177. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +5 -2
  178. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +6 -4
  179. package/node_modules/@kardalum/api-schemas/dist/plugin-events.d.ts +24 -0
  180. package/node_modules/@kardalum/api-schemas/dist/plugin-events.js +53 -0
  181. package/node_modules/@kardalum/api-schemas/dist/plugin-guards.d.ts +112 -0
  182. package/node_modules/@kardalum/api-schemas/dist/plugin-guards.js +118 -0
  183. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +12 -0
  184. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +3 -0
  185. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +2 -0
  186. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +3 -0
  187. package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +67 -0
  188. package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +15 -0
  189. package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.d.ts +138 -0
  190. package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.js +110 -0
  191. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +80 -15
  192. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +67 -23
  193. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +10 -3
  194. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +33 -8
  195. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +2 -1
  196. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +7 -1
  197. package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +1 -1
  198. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +43 -7
  199. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +36 -5
  200. package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.d.ts +638 -0
  201. package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.js +533 -0
  202. package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.d.ts +36 -0
  203. package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.js +32 -0
  204. package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.d.ts +193 -0
  205. package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.js +123 -0
  206. package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.d.ts +209 -0
  207. package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.js +372 -0
  208. package/node_modules/@kardalum/api-schemas/dist/plugin-services.d.ts +90 -0
  209. package/node_modules/@kardalum/api-schemas/dist/plugin-services.js +204 -0
  210. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +10 -0
  211. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +10 -1
  212. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +171 -4
  213. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +406 -42
  214. package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.d.ts +69 -0
  215. package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.js +149 -0
  216. package/node_modules/@kardalum/api-schemas/dist/plugin-styles.d.ts +5 -0
  217. package/node_modules/@kardalum/api-schemas/dist/plugin-styles.js +13 -0
  218. package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.d.ts +96 -0
  219. package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.js +185 -0
  220. package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.d.ts +213 -0
  221. package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.js +131 -0
  222. package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.d.ts +54 -0
  223. package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.js +154 -0
  224. package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.d.ts +37 -0
  225. package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.js +124 -0
  226. package/node_modules/@kardalum/api-schemas/dist/render-cache.d.ts +126 -0
  227. package/node_modules/@kardalum/api-schemas/dist/render-cache.js +263 -0
  228. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +303 -0
  229. package/node_modules/@kardalum/api-schemas/dist/render-editing.js +61 -0
  230. package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.d.ts +14 -0
  231. package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.js +108 -0
  232. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +66 -1
  233. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +465 -7
  234. package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +15 -118
  235. package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +110 -0
  236. package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +36 -0
  237. package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.d.ts +64 -0
  238. package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.js +38 -0
  239. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +9 -2
  240. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +7 -2
  241. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +26 -0
  242. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +19 -0
  243. package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.d.ts +724 -0
  244. package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.js +408 -0
  245. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +5 -3
  246. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +3 -1
  247. package/node_modules/@kardalum/api-schemas/dist/site-consent.d.ts +77 -0
  248. package/node_modules/@kardalum/api-schemas/dist/site-consent.js +122 -0
  249. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +4 -0
  250. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +28 -0
  251. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +33 -0
  252. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +26 -1
  253. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +14 -0
  254. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +2 -0
  255. package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.d.ts +482 -0
  256. package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.js +380 -0
  257. package/node_modules/@kardalum/api-schemas/dist/visitor-groups.d.ts +109 -0
  258. package/node_modules/@kardalum/api-schemas/dist/visitor-groups.js +62 -0
  259. package/node_modules/@kardalum/api-schemas/package.json +1 -0
  260. package/node_modules/@kardalum/design-tokens/dist/build-css.js +9 -1
  261. package/node_modules/@kardalum/design-tokens/dist/system-dark.css +1 -0
  262. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +2 -0
  263. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -0
  264. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
  265. package/node_modules/@kardalum/design-tokens/dist/tokens.css +4 -0
  266. package/node_modules/@kardalum/design-tokens/dist/tokens.js +6 -0
  267. package/node_modules/@kardalum/design-tokens/dist/tokens.json +5 -1
  268. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +4 -0
  269. package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +17 -0
  270. package/node_modules/@kardalum/plugin-package/dist/build-reference.js +9 -0
  271. package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +1 -1
  272. package/node_modules/@kardalum/plugin-package/dist/capabilities.js +276 -19
  273. package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
  274. package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +23 -0
  275. package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.d.ts +17 -0
  276. package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.js +39 -0
  277. package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.d.ts +23 -0
  278. package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.js +351 -0
  279. package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +2 -0
  280. package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +1 -1
  281. package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +21 -8
  282. package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +1 -1
  283. package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +23 -10
  284. package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +3 -2
  285. package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +2 -0
  286. package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +2 -0
  287. package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +30 -2
  288. package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +6 -2
  289. package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +6 -0
  290. package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +6 -0
  291. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +2 -0
  292. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +24 -6
  293. package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +15 -0
  294. package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.d.ts +2 -0
  295. package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.js +173 -0
  296. package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +1 -1
  297. package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +14 -4
  298. package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.d.ts +3 -0
  299. package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.js +35 -0
  300. package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.d.ts +3 -0
  301. package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.js +71 -0
  302. package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +44 -11
  303. package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +7 -0
  304. package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.d.ts +3 -0
  305. package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.js +36 -0
  306. package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.d.ts +3 -0
  307. package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.js +33 -0
  308. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -0
  309. package/node_modules/@kardalum/plugin-package/dist/index.js +5 -0
  310. package/node_modules/@kardalum/plugin-package/dist/public-suffix.d.ts +7 -0
  311. package/node_modules/@kardalum/plugin-package/dist/public-suffix.js +23 -0
  312. package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.d.ts +1 -0
  313. package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.js +27 -0
  314. package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.d.ts +2 -0
  315. package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.js +28 -0
  316. package/node_modules/@kardalum/plugin-package/package.json +4 -0
  317. package/node_modules/@kardalum/ui/dist/components/select.d.ts +6 -0
  318. package/node_modules/@kardalum/ui/dist/components/select.js +7 -0
  319. package/node_modules/@kardalum/ui/dist/components/textarea.d.ts +6 -0
  320. package/node_modules/@kardalum/ui/dist/components/textarea.js +7 -0
  321. package/node_modules/@kardalum/ui/dist/index.d.ts +2 -0
  322. package/node_modules/@kardalum/ui/dist/index.js +2 -0
  323. package/package.json +15 -3
@@ -20,7 +20,7 @@ export declare const CORE_ACTIONS: readonly [{
20
20
  readonly adminGatedToday: false;
21
21
  readonly label: "View content and mint preview links";
22
22
  readonly keyNote: "On the management API this also reads drafts, every saved version and preview links, not only published content.";
23
- readonly route: "GET /api/manage/v1/content/by-path, GET /api/manage/v1/content/by-address, GET /api/manage/v1/content/:id, GET /api/manage/v1/content/roots, GET /api/manage/v1/content/:id/children, GET /api/manage/v1/content/:id/list, GET /api/manage/v1/content/search, GET /api/manage/v1/content/:id/url-impact, GET /api/manage/v1/content/:id/move-impact, GET /api/manage/v1/content/:id/versions, GET /api/manage/v1/content/:id/versions/latest, GET /api/manage/v1/content/:id/versions/:version, POST /api/manage/v1/content/:id/preview-token, GET /api/manage/v1/home/drafts, GET /api/manage/v1/home/recent-edits, GET /api/manage/v1/home/published, GET /api/plugins/:pluginId/storage/:contentId/:fieldId";
23
+ readonly route: "GET /api/manage/v1/content/by-path, GET /api/manage/v1/content/by-address, GET /api/manage/v1/content/:id, GET /api/manage/v1/content/roots, GET /api/manage/v1/content/:id/children, GET /api/manage/v1/content/:id/list, GET /api/manage/v1/content/search, GET /api/manage/v1/content/:id/url-impact, GET /api/manage/v1/content/:id/move-impact, GET /api/manage/v1/content/:id/versions, GET /api/manage/v1/content/:id/versions/latest, GET /api/manage/v1/content/:id/versions/:version, POST /api/manage/v1/content/:id/preview-token, GET /api/manage/v1/home/drafts, GET /api/manage/v1/home/recent-edits, GET /api/manage/v1/home/published, GET /api/plugins/:pluginId/storage/:contentId/:fieldId, GET /api/manage/v1/content/:id/audience";
24
24
  }, {
25
25
  readonly action: "content.create";
26
26
  readonly adminGatedToday: false;
@@ -62,6 +62,18 @@ export declare const CORE_ACTIONS: readonly [{
62
62
  readonly label: "Manage permissions on content";
63
63
  readonly keyNote: "Reads and changes which roles and users may reach which page.";
64
64
  readonly route: "GET /api/manage/v1/content/:id/permissions, PUT /api/manage/v1/content/:id/permissions, GET /api/manage/v1/content/permission-subjects, DELETE /api/manage/v1/content/:id/restrictions, GET /api/manage/v1/content/:id/explain, GET /api/manage/v1/content/:id/explain-operation, GET /api/manage/v1/content/:id/who-can";
65
+ }, {
66
+ readonly action: "content.audience";
67
+ readonly adminGatedToday: true;
68
+ readonly label: "Choose who may see a page on the public site";
69
+ readonly keyNote: "Makes pages and everything under them members-only, or public again.";
70
+ readonly route: "PUT /api/manage/v1/content/:id/audience";
71
+ }, {
72
+ readonly action: "content.readGated";
73
+ readonly adminGatedToday: true;
74
+ readonly label: "Read members-only pages through the delivery API";
75
+ readonly keyNote: "A key holding it reads every page a visitor would need to sign in for. Give it to a headless front end's server, never to a browser.";
76
+ readonly route: "GET /api/v1/content, GET /api/v1/content/:id, GET /api/v1/content/by-path, GET /api/v1/content/by-address, GET /api/v1/content/roots, GET /api/v1/content/:id/children, POST /api/v1/graphql";
65
77
  }, {
66
78
  readonly action: "media.read";
67
79
  readonly adminGatedToday: false;
@@ -207,23 +219,23 @@ export declare const CORE_ACTIONS: readonly [{
207
219
  }, {
208
220
  readonly action: "render.read";
209
221
  readonly adminGatedToday: true;
210
- readonly label: "View text styles and embeddable blocks";
211
- readonly route: "GET /api/manage/v1/render/text-styles, GET /api/manage/v1/render/blocks";
222
+ readonly label: "View text styles, embeddable blocks and rich text items";
223
+ readonly route: "GET /api/manage/v1/render/text-styles, GET /api/manage/v1/render/blocks, GET /api/manage/v1/render/rich-items";
212
224
  }, {
213
225
  readonly action: "render.preview";
214
226
  readonly adminGatedToday: true;
215
- readonly label: "Render a block preview";
216
- readonly route: "POST /api/manage/v1/render/block";
227
+ readonly label: "Render a block or rich text item preview";
228
+ readonly route: "POST /api/manage/v1/render/block, POST /api/manage/v1/render/rich-item";
217
229
  }, {
218
230
  readonly action: "settings.read";
219
231
  readonly adminGatedToday: false;
220
232
  readonly label: "View settings";
221
- readonly route: "GET /api/manage/v1/settings/render, GET /api/manage/v1/settings/cultures, GET /api/manage/v1/settings/sites, GET /api/manage/v1/settings/nav, GET /api/manage/v1/settings/audit-retention, GET /api/manage/v1/home/news, GET /api/manage/v1/settings/notification-retention, GET /api/manage/v1/settings/server, GET /api/manage/v1/settings/ai-context";
233
+ readonly route: "GET /api/manage/v1/settings/render, GET /api/manage/v1/settings/cultures, GET /api/manage/v1/settings/sites, GET /api/manage/v1/settings/nav, GET /api/manage/v1/settings/audit-retention, GET /api/manage/v1/home/news, GET /api/manage/v1/settings/notification-retention, GET /api/manage/v1/settings/server, GET /api/manage/v1/settings/security, GET /api/manage/v1/settings/ai-context, GET /api/manage/v1/visitor-accounts/sites, GET /api/manage/v1/visitor-accounts/sites/:siteId, GET /api/manage/v1/visitor-accounts/sites/:siteId/groups";
222
234
  }, {
223
235
  readonly action: "settings.update";
224
236
  readonly adminGatedToday: true;
225
237
  readonly label: "Change settings";
226
- readonly route: "PUT /api/manage/v1/settings/render, PUT /api/manage/v1/settings/cultures, PUT /api/manage/v1/settings/nav, PUT /api/manage/v1/settings/notification-retention, PUT /api/manage/v1/settings/server, PUT /api/manage/v1/settings/ai-context, POST /api/manage/v1/settings/site-reach/reset";
238
+ readonly route: "PUT /api/manage/v1/settings/render, PUT /api/manage/v1/settings/cultures, PUT /api/manage/v1/settings/nav, PUT /api/manage/v1/settings/notification-retention, PUT /api/manage/v1/settings/server, PUT /api/manage/v1/settings/ai-context, POST /api/manage/v1/settings/site-reach/reset, POST /api/manage/v1/visitor-accounts/sites/:siteId/groups, PATCH /api/manage/v1/visitor-accounts/groups/:groupId, DELETE /api/manage/v1/visitor-accounts/groups/:groupId";
227
239
  }, {
228
240
  readonly action: "sites.manage";
229
241
  readonly adminGatedToday: true;
@@ -238,7 +250,8 @@ export declare const CORE_ACTIONS: readonly [{
238
250
  readonly action: "users.read";
239
251
  readonly adminGatedToday: true;
240
252
  readonly label: "View users";
241
- readonly route: "GET /api/manage/v1/users";
253
+ readonly keyNote: "Reads every account, and each person's account fields of every active plugin.";
254
+ readonly route: "GET /api/manage/v1/users, GET /api/manage/v1/users/:id, GET /api/manage/v1/users/:id/fields";
242
255
  }, {
243
256
  readonly action: "users.create";
244
257
  readonly adminGatedToday: true;
@@ -249,14 +262,38 @@ export declare const CORE_ACTIONS: readonly [{
249
262
  readonly action: "users.update";
250
263
  readonly adminGatedToday: true;
251
264
  readonly label: "Change user roles";
252
- readonly keyNote: "Changes what a person may do by changing their role, and disables or enables an account. A key is refused the admin role and an administrator's account.";
253
- readonly route: "PATCH /api/manage/v1/users/:id/role, PATCH /api/manage/v1/users/:id/disabled";
265
+ readonly keyNote: "Changes what a person may do by changing their role, disables or enables an account, and changes a person's account field values. A key is refused the admin role and an administrator's account.";
266
+ readonly route: "PATCH /api/manage/v1/users/:id/role, PATCH /api/manage/v1/users/:id/disabled, PUT /api/manage/v1/users/:id/fields/:pluginId";
254
267
  }, {
255
268
  readonly action: "users.delete";
256
269
  readonly adminGatedToday: true;
257
270
  readonly label: "Delete users";
258
271
  readonly keyNote: "Removes a person's account and ends their sessions. A key is refused when the account is an administrator's.";
259
272
  readonly route: "DELETE /api/manage/v1/users/:id";
273
+ }, {
274
+ readonly action: "visitors.read";
275
+ readonly adminGatedToday: true;
276
+ readonly label: "View visitor accounts";
277
+ readonly keyNote: "Reads every site's visitor accounts: email, name, status, dates and the names of their sign-in methods. Never a password or a session.";
278
+ readonly route: "GET /api/manage/v1/visitors/sites, GET /api/manage/v1/visitors, GET /api/manage/v1/visitors/:id, GET /api/manage/v1/visitors/groups, GET /api/manage/v1/visitors/erasures";
279
+ }, {
280
+ readonly action: "visitors.manage";
281
+ readonly adminGatedToday: true;
282
+ readonly label: "Manage visitor accounts";
283
+ readonly keyNote: "A key is refused here: approving, disabling, inviting, ending sessions and sending reset links take a session.";
284
+ readonly route: "POST /api/manage/v1/visitors/:id/approve, PATCH /api/manage/v1/visitors/:id/disabled, POST /api/manage/v1/visitors/:id/sessions/end, POST /api/manage/v1/visitors/:id/reset-link, POST /api/manage/v1/visitors/invitations, PUT /api/manage/v1/visitors/:id/groups/:groupId, DELETE /api/manage/v1/visitors/:id/groups/:groupId";
285
+ }, {
286
+ readonly action: "visitors.delete";
287
+ readonly adminGatedToday: true;
288
+ readonly label: "Delete visitor accounts";
289
+ readonly keyNote: "Deletes a visitor account and everything the core keeps of it, at once and for good. A key may do this, for a site's own data request tools.";
290
+ readonly route: "DELETE /api/manage/v1/visitors/:id";
291
+ }, {
292
+ readonly action: "visitors.export";
293
+ readonly adminGatedToday: true;
294
+ readonly label: "Export a visitor's data";
295
+ readonly keyNote: "Answers one visitor account's data as JSON, for a data request that arrived by post or mail.";
296
+ readonly route: "GET /api/manage/v1/visitors/:id/export";
260
297
  }, {
261
298
  readonly action: "roles.read";
262
299
  readonly adminGatedToday: true;
@@ -336,7 +373,7 @@ export declare const CORE_ACTIONS: readonly [{
336
373
  readonly action: "plugins.read";
337
374
  readonly adminGatedToday: true;
338
375
  readonly label: "View installed plugins";
339
- readonly route: "GET /api/manage/v1/plugins, GET /api/manage/v1/marketplace/status, GET /api/manage/v1/plugins/:pluginId/snapshot-groups, GET /api/manage/v1/plugins/:pluginId/install-record, GET /api/manage/v1/plugin-docs, GET /api/manage/v1/plugin-docs/search-index, GET /api/manage/v1/plugin-docs/:pluginId/pages/:slug, GET /api/manage/v1/plugin-docs/:pluginId/reference, GET /api/manage/v1/home/plugin-fees";
376
+ readonly route: "GET /api/manage/v1/plugins, GET /api/manage/v1/marketplace/status, GET /api/manage/v1/plugins/:pluginId/snapshot-groups, GET /api/manage/v1/plugins/:pluginId/install-record, GET /api/manage/v1/plugin-docs, GET /api/manage/v1/plugin-docs/search-index, GET /api/manage/v1/plugin-docs/:pluginId/pages/:slug, GET /api/manage/v1/plugin-docs/:pluginId/reference, GET /api/manage/v1/home/plugin-fees, GET /api/manage/v1/plugins/:pluginId/connections";
340
377
  }, {
341
378
  readonly action: "plugins.browse";
342
379
  readonly adminGatedToday: true;
@@ -347,12 +384,12 @@ export declare const CORE_ACTIONS: readonly [{
347
384
  readonly adminGatedToday: true;
348
385
  readonly label: "Install plugins";
349
386
  readonly keyNote: "Puts code into the server process. An unsigned package is not refused.";
350
- readonly route: "POST /api/manage/v1/marketplace/install, POST /api/manage/v1/plugins/upload";
387
+ readonly route: "POST /api/manage/v1/marketplace/install, POST /api/manage/v1/plugins/upload, POST /api/manage/v1/plugins/connections/preview";
351
388
  }, {
352
389
  readonly action: "plugins.update";
353
390
  readonly adminGatedToday: true;
354
391
  readonly label: "Enable or disable plugins";
355
- readonly route: "POST /api/manage/v1/plugins/:pluginId/activate, POST /api/manage/v1/plugins/:pluginId/deactivate, POST /api/manage/v1/plugins/:pluginId/license/recheck";
392
+ readonly route: "POST /api/manage/v1/plugins/:pluginId/activate, POST /api/manage/v1/plugins/:pluginId/deactivate, POST /api/manage/v1/plugins/:pluginId/license/recheck, PUT /api/manage/v1/plugins/:pluginId/connections";
356
393
  }, {
357
394
  readonly action: "plugins.delete";
358
395
  readonly adminGatedToday: true;
@@ -28,7 +28,7 @@
28
28
  // string. The role editor renders this, the same way CAPABILITY_LABELS
29
29
  // renders capabilities.
30
30
  export const CORE_ACTIONS = [
31
- { action: "content.read", adminGatedToday: false, label: "View content and mint preview links", keyNote: "On the management API this also reads drafts, every saved version and preview links, not only published content.", route: "GET /api/manage/v1/content/by-path, GET /api/manage/v1/content/by-address, GET /api/manage/v1/content/:id, GET /api/manage/v1/content/roots, GET /api/manage/v1/content/:id/children, GET /api/manage/v1/content/:id/list, GET /api/manage/v1/content/search, GET /api/manage/v1/content/:id/url-impact, GET /api/manage/v1/content/:id/move-impact, GET /api/manage/v1/content/:id/versions, GET /api/manage/v1/content/:id/versions/latest, GET /api/manage/v1/content/:id/versions/:version, POST /api/manage/v1/content/:id/preview-token, GET /api/manage/v1/home/drafts, GET /api/manage/v1/home/recent-edits, GET /api/manage/v1/home/published, GET /api/plugins/:pluginId/storage/:contentId/:fieldId" },
31
+ { action: "content.read", adminGatedToday: false, label: "View content and mint preview links", keyNote: "On the management API this also reads drafts, every saved version and preview links, not only published content.", route: "GET /api/manage/v1/content/by-path, GET /api/manage/v1/content/by-address, GET /api/manage/v1/content/:id, GET /api/manage/v1/content/roots, GET /api/manage/v1/content/:id/children, GET /api/manage/v1/content/:id/list, GET /api/manage/v1/content/search, GET /api/manage/v1/content/:id/url-impact, GET /api/manage/v1/content/:id/move-impact, GET /api/manage/v1/content/:id/versions, GET /api/manage/v1/content/:id/versions/latest, GET /api/manage/v1/content/:id/versions/:version, POST /api/manage/v1/content/:id/preview-token, GET /api/manage/v1/home/drafts, GET /api/manage/v1/home/recent-edits, GET /api/manage/v1/home/published, GET /api/plugins/:pluginId/storage/:contentId/:fieldId, GET /api/manage/v1/content/:id/audience" },
32
32
  { action: "content.create", adminGatedToday: false, label: "Create and copy content", route: "POST /api/manage/v1/content, POST /api/manage/v1/content/:id/copy" },
33
33
  { action: "content.update", adminGatedToday: false, label: "Edit, move and reorder content", route: "PUT /api/manage/v1/content/:id, POST /api/manage/v1/content/:id/move, POST /api/manage/v1/content/roots/reorder, POST /api/manage/v1/content/:id/children/reorder, PUT /api/plugins/:pluginId/storage/:contentId/:fieldId" },
34
34
  { action: "content.publish", adminGatedToday: false, label: "Publish content", route: "POST /api/manage/v1/content/:id/publish, POST /api/manage/v1/content/:id/publish-all" },
@@ -43,6 +43,10 @@ export const CORE_ACTIONS = [
43
43
  // there was no earlier gate to read; admin-gated because it decides who
44
44
  // may reach a page at all.
45
45
  { action: "content.managePermissions", adminGatedToday: true, label: "Manage permissions on content", keyNote: "Reads and changes which roles and users may reach which page.", route: "GET /api/manage/v1/content/:id/permissions, PUT /api/manage/v1/content/:id/permissions, GET /api/manage/v1/content/permission-subjects, DELETE /api/manage/v1/content/:id/restrictions, GET /api/manage/v1/content/:id/explain, GET /api/manage/v1/content/:id/explain-operation, GET /api/manage/v1/content/:id/who-can" },
46
+ // M35 U2b (W8): a page's audience on the public site, and the delivery read of members-only pages.
47
+ // content.readGated is asked in the delivery handlers (routes/delivery-audience.ts), not by a route guard.
48
+ { action: "content.audience", adminGatedToday: true, label: "Choose who may see a page on the public site", keyNote: "Makes pages and everything under them members-only, or public again.", route: "PUT /api/manage/v1/content/:id/audience" },
49
+ { action: "content.readGated", adminGatedToday: true, label: "Read members-only pages through the delivery API", keyNote: "A key holding it reads every page a visitor would need to sign in for. Give it to a headless front end's server, never to a browser.", route: "GET /api/v1/content, GET /api/v1/content/:id, GET /api/v1/content/by-path, GET /api/v1/content/by-address, GET /api/v1/content/roots, GET /api/v1/content/:id/children, POST /api/v1/graphql" },
46
50
  { action: "media.read", adminGatedToday: false, label: "View media", keyNote: "Lists and reads every media file with its versions, references and cuts, private files included, each with a working signed link.", route: "GET /api/manage/v1/media, GET /api/manage/v1/media/:id, GET /api/manage/v1/media/:id/versions, GET /api/manage/v1/media/:id/references, GET /api/manage/v1/media/:id/renditions, GET /api/manage/v1/media/folders" },
47
51
  // S303 (2026-10-17-s303-the-api-documented-design.md 3.4): split from media.read. The trash lists reach more
48
52
  // than the library does, so a key holding media.read no longer gets them. media.link is the action of the
@@ -74,12 +78,12 @@ export const CORE_ACTIONS = [
74
78
  { action: "assets.update", adminGatedToday: true, label: "Edit and rename site assets", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "PUT /api/manage/v1/assets/content, PATCH /api/manage/v1/assets/rename, POST /api/manage/v1/assets/versions/:version/current, POST /api/manage/v1/assets/restore" },
75
79
  { action: "assets.delete", adminGatedToday: true, label: "Delete site assets", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "DELETE /api/manage/v1/assets" },
76
80
  { action: "assets.sync", adminGatedToday: true, label: "Sync site assets from disk", keyNote: "Changes code the server serves from the admin's own origin: with managementApi.use this is as strong as an admin session.", route: "POST /api/manage/v1/assets/sync" },
77
- { action: "render.read", adminGatedToday: true, label: "View text styles and embeddable blocks", route: "GET /api/manage/v1/render/text-styles, GET /api/manage/v1/render/blocks" },
78
- { action: "render.preview", adminGatedToday: true, label: "Render a block preview", route: "POST /api/manage/v1/render/block" },
81
+ { action: "render.read", adminGatedToday: true, label: "View text styles, embeddable blocks and rich text items", route: "GET /api/manage/v1/render/text-styles, GET /api/manage/v1/render/blocks, GET /api/manage/v1/render/rich-items" },
82
+ { action: "render.preview", adminGatedToday: true, label: "Render a block or rich text item preview", route: "POST /api/manage/v1/render/block, POST /api/manage/v1/render/rich-item" },
79
83
  // S300a: the app bar's order read in the shell (GET /api/settings/nav) is open to every signed-in user on purpose (S281) and asks no action;
80
84
  // its management read (GET /api/manage/v1/settings/nav, S309) asks settings.read, and its write is settings.update.
81
- { action: "settings.read", adminGatedToday: false, label: "View settings", route: "GET /api/manage/v1/settings/render, GET /api/manage/v1/settings/cultures, GET /api/manage/v1/settings/sites, GET /api/manage/v1/settings/nav, GET /api/manage/v1/settings/audit-retention, GET /api/manage/v1/home/news, GET /api/manage/v1/settings/notification-retention, GET /api/manage/v1/settings/server, GET /api/manage/v1/settings/ai-context" },
82
- { action: "settings.update", adminGatedToday: true, label: "Change settings", route: "PUT /api/manage/v1/settings/render, PUT /api/manage/v1/settings/cultures, PUT /api/manage/v1/settings/nav, PUT /api/manage/v1/settings/notification-retention, PUT /api/manage/v1/settings/server, PUT /api/manage/v1/settings/ai-context, POST /api/manage/v1/settings/site-reach/reset" },
85
+ { action: "settings.read", adminGatedToday: false, label: "View settings", route: "GET /api/manage/v1/settings/render, GET /api/manage/v1/settings/cultures, GET /api/manage/v1/settings/sites, GET /api/manage/v1/settings/nav, GET /api/manage/v1/settings/audit-retention, GET /api/manage/v1/home/news, GET /api/manage/v1/settings/notification-retention, GET /api/manage/v1/settings/server, GET /api/manage/v1/settings/security, GET /api/manage/v1/settings/ai-context, GET /api/manage/v1/visitor-accounts/sites, GET /api/manage/v1/visitor-accounts/sites/:siteId, GET /api/manage/v1/visitor-accounts/sites/:siteId/groups" },
86
+ { action: "settings.update", adminGatedToday: true, label: "Change settings", route: "PUT /api/manage/v1/settings/render, PUT /api/manage/v1/settings/cultures, PUT /api/manage/v1/settings/nav, PUT /api/manage/v1/settings/notification-retention, PUT /api/manage/v1/settings/server, PUT /api/manage/v1/settings/ai-context, POST /api/manage/v1/settings/site-reach/reset, POST /api/manage/v1/visitor-accounts/sites/:siteId/groups, PATCH /api/manage/v1/visitor-accounts/groups/:groupId, DELETE /api/manage/v1/visitor-accounts/groups/:groupId" },
83
87
  // S277d: a site's domains and the choice of default site. New with the
84
88
  // Site tab, so there was no earlier gate to read; admin-gated because it
85
89
  // decides which content every address of the install shows.
@@ -88,10 +92,15 @@ export const CORE_ACTIONS = [
88
92
  // action so a key that may read the sites does not hold the power to change
89
93
  // them (sites.manage), and does not hold the rest of the settings reads either.
90
94
  { action: "sites.read", adminGatedToday: true, label: "View the sites and their addresses", route: "GET /api/v1/sites" },
91
- { action: "users.read", adminGatedToday: true, label: "View users", route: "GET /api/manage/v1/users" },
95
+ { action: "users.read", adminGatedToday: true, label: "View users", keyNote: "Reads every account, and each person's account fields of every active plugin.", route: "GET /api/manage/v1/users, GET /api/manage/v1/users/:id, GET /api/manage/v1/users/:id/fields" },
92
96
  { action: "users.create", adminGatedToday: true, label: "Invite users", keyNote: "A key is refused here: creating a user takes a session, so this matters only to a session's role.", route: "POST /api/manage/v1/users" },
93
- { action: "users.update", adminGatedToday: true, label: "Change user roles", keyNote: "Changes what a person may do by changing their role, and disables or enables an account. A key is refused the admin role and an administrator's account.", route: "PATCH /api/manage/v1/users/:id/role, PATCH /api/manage/v1/users/:id/disabled" },
97
+ { action: "users.update", adminGatedToday: true, label: "Change user roles", keyNote: "Changes what a person may do by changing their role, disables or enables an account, and changes a person's account field values. A key is refused the admin role and an administrator's account.", route: "PATCH /api/manage/v1/users/:id/role, PATCH /api/manage/v1/users/:id/disabled, PUT /api/manage/v1/users/:id/fields/:pluginId" },
94
98
  { action: "users.delete", adminGatedToday: true, label: "Delete users", keyNote: "Removes a person's account and ends their sessions. A key is refused when the account is an administrator's.", route: "DELETE /api/manage/v1/users/:id" },
99
+ // M35 U2a (W8): site visitor accounts, never admin users. Session-only where a write makes or changes a login.
100
+ { action: "visitors.read", adminGatedToday: true, label: "View visitor accounts", keyNote: "Reads every site's visitor accounts: email, name, status, dates and the names of their sign-in methods. Never a password or a session.", route: "GET /api/manage/v1/visitors/sites, GET /api/manage/v1/visitors, GET /api/manage/v1/visitors/:id, GET /api/manage/v1/visitors/groups, GET /api/manage/v1/visitors/erasures" },
101
+ { action: "visitors.manage", adminGatedToday: true, label: "Manage visitor accounts", keyNote: "A key is refused here: approving, disabling, inviting, ending sessions and sending reset links take a session.", route: "POST /api/manage/v1/visitors/:id/approve, PATCH /api/manage/v1/visitors/:id/disabled, POST /api/manage/v1/visitors/:id/sessions/end, POST /api/manage/v1/visitors/:id/reset-link, POST /api/manage/v1/visitors/invitations, PUT /api/manage/v1/visitors/:id/groups/:groupId, DELETE /api/manage/v1/visitors/:id/groups/:groupId" },
102
+ { action: "visitors.delete", adminGatedToday: true, label: "Delete visitor accounts", keyNote: "Deletes a visitor account and everything the core keeps of it, at once and for good. A key may do this, for a site's own data request tools.", route: "DELETE /api/manage/v1/visitors/:id" },
103
+ { action: "visitors.export", adminGatedToday: true, label: "Export a visitor's data", keyNote: "Answers one visitor account's data as JSON, for a data request that arrived by post or mail.", route: "GET /api/manage/v1/visitors/:id/export" },
95
104
  // S272: new with the role editor, so there was no requireAdmin gate to
96
105
  // read. Marked admin-gated because granting the role editor to the seeded
97
106
  // editor would let that role grant itself anything.
@@ -131,10 +140,10 @@ export const CORE_ACTIONS = [
131
140
  label: "Let API keys use the management API", keyNote: "Lets a key call the management API with the actions it also holds. Never give it to a key that ships in a browser.",
132
141
  route: "GET /api/manage/v1/*, POST /api/manage/v1/*, PUT /api/manage/v1/*, PATCH /api/manage/v1/*, DELETE /api/manage/v1/*",
133
142
  },
134
- { action: "plugins.read", adminGatedToday: true, label: "View installed plugins", route: "GET /api/manage/v1/plugins, GET /api/manage/v1/marketplace/status, GET /api/manage/v1/plugins/:pluginId/snapshot-groups, GET /api/manage/v1/plugins/:pluginId/install-record, GET /api/manage/v1/plugin-docs, GET /api/manage/v1/plugin-docs/search-index, GET /api/manage/v1/plugin-docs/:pluginId/pages/:slug, GET /api/manage/v1/plugin-docs/:pluginId/reference, GET /api/manage/v1/home/plugin-fees" },
143
+ { action: "plugins.read", adminGatedToday: true, label: "View installed plugins", route: "GET /api/manage/v1/plugins, GET /api/manage/v1/marketplace/status, GET /api/manage/v1/plugins/:pluginId/snapshot-groups, GET /api/manage/v1/plugins/:pluginId/install-record, GET /api/manage/v1/plugin-docs, GET /api/manage/v1/plugin-docs/search-index, GET /api/manage/v1/plugin-docs/:pluginId/pages/:slug, GET /api/manage/v1/plugin-docs/:pluginId/reference, GET /api/manage/v1/home/plugin-fees, GET /api/manage/v1/plugins/:pluginId/connections" },
135
144
  { action: "plugins.browse", adminGatedToday: true, label: "Browse the plugin marketplace", route: "GET /api/manage/v1/marketplace/listings, GET /api/manage/v1/marketplace/listings/:pluginId" },
136
- { action: "plugins.install", adminGatedToday: true, label: "Install plugins", keyNote: "Puts code into the server process. An unsigned package is not refused.", route: "POST /api/manage/v1/marketplace/install, POST /api/manage/v1/plugins/upload" },
137
- { action: "plugins.update", adminGatedToday: true, label: "Enable or disable plugins", route: "POST /api/manage/v1/plugins/:pluginId/activate, POST /api/manage/v1/plugins/:pluginId/deactivate, POST /api/manage/v1/plugins/:pluginId/license/recheck" },
145
+ { action: "plugins.install", adminGatedToday: true, label: "Install plugins", keyNote: "Puts code into the server process. An unsigned package is not refused.", route: "POST /api/manage/v1/marketplace/install, POST /api/manage/v1/plugins/upload, POST /api/manage/v1/plugins/connections/preview" },
146
+ { action: "plugins.update", adminGatedToday: true, label: "Enable or disable plugins", route: "POST /api/manage/v1/plugins/:pluginId/activate, POST /api/manage/v1/plugins/:pluginId/deactivate, POST /api/manage/v1/plugins/:pluginId/license/recheck, PUT /api/manage/v1/plugins/:pluginId/connections" },
138
147
  { action: "plugins.delete", adminGatedToday: true, label: "Uninstall plugins", keyNote: "Removes an installed plugin from the site.", route: "DELETE /api/manage/v1/plugins/:pluginId" },
139
148
  { action: "plugins.restore", adminGatedToday: true, label: "Restore a plugin from a snapshot", route: "POST /api/manage/v1/plugins/:pluginId/snapshot-groups/restore, POST /api/manage/v1/plugins/:pluginId/data-types/restore" },
140
149
  { action: "snapshots.read", adminGatedToday: true, label: "View snapshots", route: "GET /api/manage/v1/snapshots" },
@@ -381,6 +381,12 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
381
381
  collection: z.ZodOptional<z.ZodBoolean>;
382
382
  retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
383
383
  ownedBy: z.ZodNullable<z.ZodString>;
384
+ ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
385
+ on: "on";
386
+ uninstalled: "uninstalled";
387
+ off: "off";
388
+ }>>>;
389
+ ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
390
  version: z.ZodNumber;
385
391
  }, z.core.$strict>, z.ZodObject<{
386
392
  id: z.ZodString;
@@ -410,6 +416,12 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
410
416
  }, z.core.$strict>>>;
411
417
  help: z.ZodOptional<z.ZodString>;
412
418
  ownedBy: z.ZodNullable<z.ZodString>;
419
+ ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
420
+ on: "on";
421
+ uninstalled: "uninstalled";
422
+ off: "off";
423
+ }>>>;
424
+ ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
425
  version: z.ZodNumber;
414
426
  }, z.core.$strict>, z.ZodObject<{
415
427
  id: z.ZodString;
@@ -441,6 +453,12 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
441
453
  sortOrder: z.ZodOptional<z.ZodNumber>;
442
454
  catchAll: z.ZodOptional<z.ZodBoolean>;
443
455
  ownedBy: z.ZodNullable<z.ZodString>;
456
+ ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
457
+ on: "on";
458
+ uninstalled: "uninstalled";
459
+ off: "off";
460
+ }>>>;
461
+ ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
462
  version: z.ZodNumber;
445
463
  }, z.core.$strict>], "kind">;
446
464
  export type DocumentTypeListItem = z.infer<typeof DocumentTypeListItemSchema>;
@@ -482,6 +500,12 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
482
500
  collection: z.ZodOptional<z.ZodBoolean>;
483
501
  retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
484
502
  ownedBy: z.ZodNullable<z.ZodString>;
503
+ ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
504
+ on: "on";
505
+ uninstalled: "uninstalled";
506
+ off: "off";
507
+ }>>>;
508
+ ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
509
  version: z.ZodNumber;
486
510
  }, z.core.$strict>, z.ZodObject<{
487
511
  id: z.ZodString;
@@ -511,6 +535,12 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
511
535
  }, z.core.$strict>>>;
512
536
  help: z.ZodOptional<z.ZodString>;
513
537
  ownedBy: z.ZodNullable<z.ZodString>;
538
+ ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
539
+ on: "on";
540
+ uninstalled: "uninstalled";
541
+ off: "off";
542
+ }>>>;
543
+ ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
544
  version: z.ZodNumber;
515
545
  }, z.core.$strict>, z.ZodObject<{
516
546
  id: z.ZodString;
@@ -542,6 +572,12 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
542
572
  sortOrder: z.ZodOptional<z.ZodNumber>;
543
573
  catchAll: z.ZodOptional<z.ZodBoolean>;
544
574
  ownedBy: z.ZodNullable<z.ZodString>;
575
+ ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
576
+ on: "on";
577
+ uninstalled: "uninstalled";
578
+ off: "off";
579
+ }>>>;
580
+ ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
581
  version: z.ZodNumber;
546
582
  }, z.core.$strict>], "kind">>;
547
583
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -551,3 +587,44 @@ export declare const DeleteDocumentTypeResponseSchema: z.ZodObject<{
551
587
  success: z.ZodLiteral<true>;
552
588
  }, z.core.$strip>;
553
589
  export type DeleteDocumentTypeResponse = z.infer<typeof DeleteDocumentTypeResponseSchema>;
590
+ /** M35 (2026-11-22): why DELETE /document-types/:id refused (409), one code each, so the admin
591
+ * words each in its own language and falls back to `message`. Nothing is ever purged: a type its
592
+ * trashed pages still name is refused with has_trashed_pages, the count counted no further than
593
+ * DOCUMENT_TYPE_TRASHED_COUNT_LIMIT (countCapped then says there are at least that many). */
594
+ export declare const DOCUMENT_TYPE_DELETE_BLOCKED_CODES: readonly ["has_content", "has_trashed_pages", "has_templates", "has_media", "only_catch_all"];
595
+ export declare const DocumentTypeDeleteBlockedSchema: z.ZodObject<{
596
+ message: z.ZodString;
597
+ code: z.ZodEnum<{
598
+ has_content: "has_content";
599
+ has_trashed_pages: "has_trashed_pages";
600
+ has_templates: "has_templates";
601
+ has_media: "has_media";
602
+ only_catch_all: "only_catch_all";
603
+ }>;
604
+ count: z.ZodOptional<z.ZodNumber>;
605
+ countCapped: z.ZodOptional<z.ZodBoolean>;
606
+ }, z.core.$strip>;
607
+ export type DocumentTypeDeleteBlocked = z.infer<typeof DocumentTypeDeleteBlockedSchema>;
608
+ /** M35 (2026-11-22, operator approval): GET /document-types/:id/trashed-pages, the trashed pages
609
+ * that hold a type the delete refused, in path order, KEEP_PREVIEW_PAGE_SIZE at a time. The cursor
610
+ * is the last row's position (encodeContentWalkCursor). */
611
+ export declare const DocumentTypeTrashedPagesQuerySchema: z.ZodObject<{
612
+ cursor: z.ZodOptional<z.ZodString>;
613
+ }, z.core.$strip>;
614
+ export declare const DocumentTypeTrashedPageSchema: z.ZodObject<{
615
+ id: z.ZodString;
616
+ title: z.ZodString;
617
+ path: z.ZodString;
618
+ deletedAt: z.ZodString;
619
+ }, z.core.$strip>;
620
+ export declare const DocumentTypeTrashedPagesResponseSchema: z.ZodObject<{
621
+ items: z.ZodArray<z.ZodObject<{
622
+ id: z.ZodString;
623
+ title: z.ZodString;
624
+ path: z.ZodString;
625
+ deletedAt: z.ZodString;
626
+ }, z.core.$strip>>;
627
+ nextCursor: z.ZodNullable<z.ZodString>;
628
+ }, z.core.$strip>;
629
+ export type DocumentTypeTrashedPage = z.infer<typeof DocumentTypeTrashedPageSchema>;
630
+ export type DocumentTypeTrashedPagesResponse = z.infer<typeof DocumentTypeTrashedPagesResponseSchema>;
@@ -1,4 +1,7 @@
1
1
  import { z } from "zod";
2
+ import { ApiErrorSchema } from "./api-error.schema.js";
3
+ import { CONTENT_WALK_CURSOR_MAX, decodeContentWalkCursor } from "./content-reads.schema.js";
4
+ import { KEEP_PREVIEW_PAGE_SIZE, KeptPartStateSchema } from "./plugin-kept-parts.js";
2
5
  import { DocumentTypeDefinitionSchema, FieldDefinitionSchema, HelpForAiSchema, TabDefinitionSchema, TreeRulesSchema, } from "./document-type.schema.js";
3
6
  // Shared by create AND update: duplicate field keys within one document
4
7
  // type would silently collide in ContentVersion.data later, and a tabId
@@ -206,6 +209,10 @@ export const DocumentTypeListQuerySchema = z.object({
206
209
  * can say which plugin a type came from before it is deleted. */
207
210
  const OWNED_BY = {
208
211
  ownedBy: z.string().min(1).nullable(),
212
+ /** M35: where the providing plugin stands (null for the operator's own): on, off, or uninstalled with the type kept. */
213
+ ownerState: KeptPartStateSchema.nullable().optional(),
214
+ /** M35: the providing plugin's display name, the name it had when an uninstall kept the type. */
215
+ ownerName: z.string().nullable().optional(),
209
216
  // M33 core (M14 callers): the row version read with the type, sent back on the PUT.
210
217
  version: DocumentTypeVersionSchema,
211
218
  };
@@ -222,3 +229,33 @@ export const DocumentTypeListResponseSchema = z.object({
222
229
  export const DeleteDocumentTypeResponseSchema = z.object({
223
230
  success: z.literal(true),
224
231
  });
232
+ /** M35 (2026-11-22): why DELETE /document-types/:id refused (409), one code each, so the admin
233
+ * words each in its own language and falls back to `message`. Nothing is ever purged: a type its
234
+ * trashed pages still name is refused with has_trashed_pages, the count counted no further than
235
+ * DOCUMENT_TYPE_TRASHED_COUNT_LIMIT (countCapped then says there are at least that many). */
236
+ export const DOCUMENT_TYPE_DELETE_BLOCKED_CODES = ["has_content", "has_trashed_pages", "has_templates", "has_media", "only_catch_all"];
237
+ export const DocumentTypeDeleteBlockedSchema = ApiErrorSchema.extend({
238
+ code: z.enum(DOCUMENT_TYPE_DELETE_BLOCKED_CODES),
239
+ count: z.number().int().nonnegative().optional(),
240
+ countCapped: z.boolean().optional(),
241
+ });
242
+ /** M35 (2026-11-22, operator approval): GET /document-types/:id/trashed-pages, the trashed pages
243
+ * that hold a type the delete refused, in path order, KEEP_PREVIEW_PAGE_SIZE at a time. The cursor
244
+ * is the last row's position (encodeContentWalkCursor). */
245
+ export const DocumentTypeTrashedPagesQuerySchema = z.object({
246
+ cursor: z
247
+ .string()
248
+ .max(CONTENT_WALK_CURSOR_MAX)
249
+ .refine((value) => decodeContentWalkCursor(value) !== null, { message: "cursor must be a nextCursor this list answered" })
250
+ .optional(),
251
+ });
252
+ export const DocumentTypeTrashedPageSchema = z.object({
253
+ id: z.string(),
254
+ title: z.string(),
255
+ path: z.string(),
256
+ deletedAt: z.string(),
257
+ });
258
+ export const DocumentTypeTrashedPagesResponseSchema = z.object({
259
+ items: z.array(DocumentTypeTrashedPageSchema).max(KEEP_PREVIEW_PAGE_SIZE),
260
+ nextCursor: z.string().nullable(),
261
+ });
@@ -0,0 +1,19 @@
1
+ /** One experimental point, and the month 35 session that added it. Its id is one of seven forms: a manifest
2
+ * path (`contributions.<key>` or `contributions.<key>.<field>`), an SDK export
3
+ * (`@kardalum/plugin-sdk/<subpath>#<name>`), a template tag's arguments (`liquid:<tag>#<arguments>`), an
4
+ * HTTP route (`<METHOD> <path>`), a template variable (`liquid:kardalum.<name>`, M35 U2a), a page fact a
5
+ * template reads (`liquid:page.<name>`, M35 P4), or an account template alias (`liquid:<alias>`, M35 U2b). */
6
+ export interface ExperimentalPoint {
7
+ readonly id: string;
8
+ readonly session: string;
9
+ }
10
+ /** M35 B1a (design 4.14): the experimental point of a hook on another plugin's event, `<plugin id>:<name>`. */
11
+ export declare const PLUGIN_EVENT_HOOK_POINT = "contributions.hooks.<plugin id>:<name>";
12
+ /** M35 P3 (W18): the experimental point of a site route that answers after the pages (a parameter, a "*" or a dotless GET). */
13
+ export declare const SITE_ROUTE_PATTERN_POINT = "contributions.siteRoutes.<pattern>";
14
+ export declare const EXPERIMENTAL_POINTS: readonly ExperimentalPoint[];
15
+ /** The experimental manifest points a manifest (live or manifest.json) declares, in list order, each as
16
+ * `<key>` or `<key>.<field>`. The ids are this file's own constants, so splitting them is safe. */
17
+ export declare function experimentalPointsDeclared(manifest: {
18
+ contributions?: unknown;
19
+ }): string[];