@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
@@ -50,7 +50,7 @@ export declare const PluginTamperKindSchema: z.ZodEnum<{
50
50
  }>;
51
51
  export type PluginTamperKind = z.infer<typeof PluginTamperKindSchema>;
52
52
  /** M32 I (R12): what switching a plugin off does, derived from what it declares. */
53
- export declare const SWITCH_OFF_EFFECTS: readonly ["keepsSiteContent", "hidesScreens", "stopsServerCode", "stopsTemplateExtensions", "providersFallBack"];
53
+ export declare const SWITCH_OFF_EFFECTS: readonly ["keepsSiteContent", "hidesScreens", "stopsServerCode", "stopsTemplateExtensions", "providersFallBack", "richTextItemsFallBack"];
54
54
  export type SwitchOffEffect = (typeof SWITCH_OFF_EFFECTS)[number];
55
55
  export declare const ManagedPluginSchema: z.ZodObject<{
56
56
  switchOffEffects: z.ZodArray<z.ZodEnum<{
@@ -59,7 +59,13 @@ export declare const ManagedPluginSchema: z.ZodObject<{
59
59
  stopsServerCode: "stopsServerCode";
60
60
  stopsTemplateExtensions: "stopsTemplateExtensions";
61
61
  providersFallBack: "providersFallBack";
62
+ richTextItemsFallBack: "richTextItemsFallBack";
62
63
  }>>;
64
+ optionalUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
+ pluginId: z.ZodString;
66
+ name: z.ZodString;
67
+ contracts: z.ZodArray<z.ZodString>;
68
+ }, z.core.$strict>>>;
63
69
  pluginId: z.ZodString;
64
70
  readOnly: z.ZodOptional<z.ZodObject<{
65
71
  code: z.ZodLiteral<"plugin_read_only">;
@@ -118,10 +124,12 @@ export declare const ManagedPluginSchema: z.ZodObject<{
118
124
  licenseTermEndsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
125
  licenseProviderRoles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
120
126
  search: "search";
127
+ signIn: "signIn";
128
+ mail: "mail";
129
+ consent: "consent";
121
130
  formProtection: "formProtection";
122
131
  mediaStore: "mediaStore";
123
- mail: "mail";
124
- signIn: "signIn";
132
+ signInStep: "signInStep";
125
133
  }>>>>;
126
134
  licenseStoredFiles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
127
135
  licenseSignInOnlyWayCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -168,6 +176,7 @@ export declare const ManagedPluginSchema: z.ZodObject<{
168
176
  }, z.core.$strip>>>;
169
177
  secretCount: z.ZodOptional<z.ZodNumber>;
170
178
  settingsCount: z.ZodOptional<z.ZodNumber>;
179
+ servicesDeclared: z.ZodOptional<z.ZodBoolean>;
171
180
  taskCount: z.ZodOptional<z.ZodNumber>;
172
181
  grantedRoleCount: z.ZodNumber;
173
182
  updateAvailable: z.ZodNullable<z.ZodObject<{
@@ -189,7 +198,13 @@ export declare const ManagedPluginListResponseSchema: z.ZodObject<{
189
198
  stopsServerCode: "stopsServerCode";
190
199
  stopsTemplateExtensions: "stopsTemplateExtensions";
191
200
  providersFallBack: "providersFallBack";
201
+ richTextItemsFallBack: "richTextItemsFallBack";
192
202
  }>>;
203
+ optionalUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
204
+ pluginId: z.ZodString;
205
+ name: z.ZodString;
206
+ contracts: z.ZodArray<z.ZodString>;
207
+ }, z.core.$strict>>>;
193
208
  pluginId: z.ZodString;
194
209
  readOnly: z.ZodOptional<z.ZodObject<{
195
210
  code: z.ZodLiteral<"plugin_read_only">;
@@ -248,10 +263,12 @@ export declare const ManagedPluginListResponseSchema: z.ZodObject<{
248
263
  licenseTermEndsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
264
  licenseProviderRoles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
250
265
  search: "search";
266
+ signIn: "signIn";
267
+ mail: "mail";
268
+ consent: "consent";
251
269
  formProtection: "formProtection";
252
270
  mediaStore: "mediaStore";
253
- mail: "mail";
254
- signIn: "signIn";
271
+ signInStep: "signInStep";
255
272
  }>>>>;
256
273
  licenseStoredFiles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
257
274
  licenseSignInOnlyWayCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -298,6 +315,7 @@ export declare const ManagedPluginListResponseSchema: z.ZodObject<{
298
315
  }, z.core.$strip>>>;
299
316
  secretCount: z.ZodOptional<z.ZodNumber>;
300
317
  settingsCount: z.ZodOptional<z.ZodNumber>;
318
+ servicesDeclared: z.ZodOptional<z.ZodBoolean>;
301
319
  taskCount: z.ZodOptional<z.ZodNumber>;
302
320
  grantedRoleCount: z.ZodNumber;
303
321
  updateAvailable: z.ZodNullable<z.ZodObject<{
@@ -322,6 +340,7 @@ export declare const PluginIdParamsSchema: z.ZodObject<{
322
340
  export declare const UninstallPluginBodySchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
323
341
  confirmStructuredDataCleanup: z.ZodOptional<z.ZodBoolean>;
324
342
  removeSampleContent: z.ZodOptional<z.ZodBoolean>;
343
+ samplePageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
325
344
  removeRoles: z.ZodOptional<z.ZodBoolean>;
326
345
  keepSnapshot: z.ZodOptional<z.ZodBoolean>;
327
346
  }, z.core.$strict>>>;
@@ -338,14 +357,6 @@ export declare const BundleUninstallConfirmationRequiredSchema: z.ZodObject<{
338
357
  }, z.core.$strip>>;
339
358
  message: z.ZodString;
340
359
  }, z.core.$strip>;
341
- export declare const UninstallBlockedByDocumentTypesSchema: z.ZodObject<{
342
- message: z.ZodString;
343
- blockedBy: z.ZodArray<z.ZodObject<{
344
- documentType: z.ZodString;
345
- contentCount: z.ZodOptional<z.ZodNumber>;
346
- }, z.core.$strip>>;
347
- }, z.core.$strip>;
348
- export type UninstallBlockedByDocumentTypes = z.infer<typeof UninstallBlockedByDocumentTypesSchema>;
349
360
  export declare const UninstallSucceededSchema: z.ZodObject<{
350
361
  snapshotGroupId: z.ZodNullable<z.ZodString>;
351
362
  dataTypesSnapshotGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -596,8 +607,8 @@ export type EntitlementResponse = z.infer<typeof EntitlementResponseSchema>;
596
607
  export declare const EntitlementRefusalSchema: z.ZodObject<{
597
608
  code: z.ZodLiteral<"entitlement">;
598
609
  reason: z.ZodEnum<{
599
- missing: "missing";
600
610
  expired: "expired";
611
+ missing: "missing";
601
612
  "invalid-signature": "invalid-signature";
602
613
  "wrong-plugin": "wrong-plugin";
603
614
  "not-valid": "not-valid";
@@ -615,6 +626,10 @@ export declare const SnapshotGroupSchema: z.ZodObject<{
615
626
  partial: "partial";
616
627
  complete: "complete";
617
628
  }>;
629
+ records: z.ZodOptional<z.ZodObject<{
630
+ settings: z.ZodBoolean;
631
+ userFields: z.ZodBoolean;
632
+ }, z.core.$strict>>;
618
633
  }, z.core.$strip>;
619
634
  export type SnapshotGroup = z.infer<typeof SnapshotGroupSchema>;
620
635
  export declare const SnapshotGroupListQuerySchema: z.ZodObject<{
@@ -629,6 +644,12 @@ export declare const SnapshotSettingsRecordSchema: z.ZodObject<{
629
644
  fields: z.ZodArray<z.ZodString>;
630
645
  }, z.core.$strict>;
631
646
  export type SnapshotSettingsRecord = z.infer<typeof SnapshotSettingsRecordSchema>;
647
+ /** M35 U1 (D1): the newest account field record an uninstall took: when, and how many people it holds. */
648
+ export declare const SnapshotUserFieldsRecordSchema: z.ZodObject<{
649
+ takenAt: z.ZodString;
650
+ people: z.ZodNumber;
651
+ }, z.core.$strict>;
652
+ export type SnapshotUserFieldsRecord = z.infer<typeof SnapshotUserFieldsRecordSchema>;
632
653
  export declare const SnapshotGroupListResponseSchema: z.ZodObject<{
633
654
  pluginId: z.ZodString;
634
655
  items: z.ZodArray<z.ZodObject<{
@@ -641,6 +662,10 @@ export declare const SnapshotGroupListResponseSchema: z.ZodObject<{
641
662
  partial: "partial";
642
663
  complete: "complete";
643
664
  }>;
665
+ records: z.ZodOptional<z.ZodObject<{
666
+ settings: z.ZodBoolean;
667
+ userFields: z.ZodBoolean;
668
+ }, z.core.$strict>>;
644
669
  }, z.core.$strip>>;
645
670
  nextCursor: z.ZodNullable<z.ZodString>;
646
671
  settings: z.ZodOptional<z.ZodObject<{
@@ -653,6 +678,10 @@ export declare const SnapshotGroupListResponseSchema: z.ZodObject<{
653
678
  fields: z.ZodArray<z.ZodString>;
654
679
  }, z.core.$strict>>;
655
680
  }, z.core.$strict>>;
681
+ userFields: z.ZodOptional<z.ZodNullable<z.ZodObject<{
682
+ takenAt: z.ZodString;
683
+ people: z.ZodNumber;
684
+ }, z.core.$strict>>>;
656
685
  }, z.core.$strip>;
657
686
  export type SnapshotGroupListResponse = z.infer<typeof SnapshotGroupListResponseSchema>;
658
687
  export declare const RestorePlanEntrySchema: z.ZodObject<{
@@ -672,6 +701,16 @@ export declare const RestoreSettingsPlanSchema: z.ZodObject<{
672
701
  }>>;
673
702
  }, z.core.$strict>;
674
703
  export type RestoreSettingsPlan = z.infer<typeof RestoreSettingsPlanSchema>;
704
+ export declare const RestoreUserFieldsPlanSchema: z.ZodObject<{
705
+ snapshotGroupId: z.ZodString;
706
+ people: z.ZodNumber;
707
+ }, z.core.$strict>;
708
+ export type RestoreUserFieldsPlan = z.infer<typeof RestoreUserFieldsPlanSchema>;
709
+ export declare const RestoreConnectionsPlanSchema: z.ZodObject<{
710
+ snapshotGroupId: z.ZodString;
711
+ connections: z.ZodNumber;
712
+ }, z.core.$strict>;
713
+ export type RestoreConnectionsPlan = z.infer<typeof RestoreConnectionsPlanSchema>;
675
714
  export declare const RestoreConfirmationRequiredSchema: z.ZodObject<{
676
715
  requiresConfirmation: z.ZodLiteral<true>;
677
716
  plan: z.ZodArray<z.ZodObject<{
@@ -689,6 +728,14 @@ export declare const RestoreConfirmationRequiredSchema: z.ZodObject<{
689
728
  replacedSettings: "replacedSettings";
690
729
  }>>;
691
730
  }, z.core.$strict>>>;
731
+ userFields: z.ZodOptional<z.ZodNullable<z.ZodObject<{
732
+ snapshotGroupId: z.ZodString;
733
+ people: z.ZodNumber;
734
+ }, z.core.$strict>>>;
735
+ connections: z.ZodOptional<z.ZodNullable<z.ZodObject<{
736
+ snapshotGroupId: z.ZodString;
737
+ connections: z.ZodNumber;
738
+ }, z.core.$strict>>>;
692
739
  planHash: z.ZodString;
693
740
  message: z.ZodString;
694
741
  }, z.core.$strip>;
@@ -722,6 +769,7 @@ export declare const SnapshotGroupDeleteConfirmationSchema: z.ZodObject<{
722
769
  tableNames: z.ZodArray<z.ZodString>;
723
770
  settings: z.ZodBoolean;
724
771
  dataTypes: z.ZodBoolean;
772
+ userFields: z.ZodBoolean;
725
773
  message: z.ZodString;
726
774
  }, z.core.$strip>;
727
775
  export type SnapshotGroupDeleteConfirmation = z.infer<typeof SnapshotGroupDeleteConfirmationSchema>;
@@ -730,6 +778,7 @@ export declare const SnapshotGroupDeletedSchema: z.ZodObject<{
730
778
  removedTables: z.ZodArray<z.ZodString>;
731
779
  removedSettings: z.ZodBoolean;
732
780
  removedDataTypes: z.ZodBoolean;
781
+ removedUserFields: z.ZodBoolean;
733
782
  }, z.core.$strip>;
734
783
  export type SnapshotGroupDeleted = z.infer<typeof SnapshotGroupDeletedSchema>;
735
784
  export declare const DataTypeRestoreSkipReasonSchema: z.ZodEnum<{
@@ -898,6 +947,19 @@ export declare const PluginUpdateRefusedSchema: z.ZodObject<{
898
947
  signInSwitchedOff: z.ZodArray<z.ZodString>;
899
948
  }, z.core.$strip>;
900
949
  export type PluginUpdateRefused = z.infer<typeof PluginUpdateRefusedSchema>;
950
+ /** M35 C4a and C4b (design D13, D18): the 409 an update answers when it changes the shape of a declared rich text item
951
+ * (`rich_text_item_shape_changed`: pages may hold the item in its old shape) or whether one is editorial
952
+ * (`rich_text_item_editorial_changed`: stored items keep the old flag). The update is refused before any write; the
953
+ * code names the refusal and `richTextItems` the item names it concerns. */
954
+ export declare const PluginRichTextShapeRefusedSchema: z.ZodObject<{
955
+ message: z.ZodString;
956
+ code: z.ZodEnum<{
957
+ rich_text_item_shape_changed: "rich_text_item_shape_changed";
958
+ rich_text_item_editorial_changed: "rich_text_item_editorial_changed";
959
+ }>;
960
+ richTextItems: z.ZodArray<z.ZodString>;
961
+ }, z.core.$strip>;
962
+ export type PluginRichTextShapeRefused = z.infer<typeof PluginRichTextShapeRefusedSchema>;
901
963
  /** S274c: the 409 an upload over a verified plugin answers before it stores
902
964
  * anything, until the retry carries confirmTrustDowngrade=true. */
903
965
  export declare const TrustDowngradeConfirmationSchema: z.ZodObject<{
@@ -968,11 +1030,14 @@ export declare const PluginProviderInUseSchema: z.ZodObject<{
968
1030
  message: z.ZodString;
969
1031
  chosen: z.ZodArray<z.ZodEnum<{
970
1032
  search: "search";
1033
+ mail: "mail";
1034
+ consent: "consent";
971
1035
  formProtection: "formProtection";
972
1036
  mediaStore: "mediaStore";
973
- mail: "mail";
974
1037
  }>>;
975
1038
  storedFiles: z.ZodNumber;
976
1039
  signIn: z.ZodArray<z.ZodString>;
1040
+ callers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1041
+ signInSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
977
1042
  }, z.core.$strip>;
978
1043
  export type PluginProviderInUse = z.infer<typeof PluginProviderInUseSchema>;
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { UNINSTALL_SAMPLE_PAGES_MAX } from "./plugin-kept-parts.js";
2
3
  import { END_EFFECTS, LicenseVerdictEndWireSchema } from "./sale-conditions.schema.js";
3
4
  import { PluginReadOnlyNoticeSchema } from "./plugin-read-only.schema.js";
4
5
  import { ActionStringSchema } from "./action.schema.js";
@@ -9,6 +10,7 @@ import { InstallRoleOutcomeSchema } from "./plugin-install-record.schema.js";
9
10
  import { SampleContentOutcomeSchema } from "./sample-content-outcome.schema.js";
10
11
  import { SignInSwitchedOffSchema } from "./install-sign-in-switched-off.schema.js";
11
12
  import { InstallWarningsSchema } from "./install-warnings.schema.js";
13
+ import { RICH_TEXT_NODES_PER_PLUGIN_MAX } from "./plugin-rich-text.js";
12
14
  import { STORAGE_TYPES } from "./plugin-vocabulary.js";
13
15
  import { SITE_REACH_RESETS_MAX } from "./licensing.schema.js";
14
16
  import { PROVIDER_KINDS, PROVIDER_TABLE_KINDS } from "./plugin-providers.js";
@@ -74,9 +76,12 @@ export const ActionOfferAppliedResponseSchema = z.object({ action: ActionStringS
74
76
  * not the one it delivered for the licence (the verdict's `tamper`). */
75
77
  export const PluginTamperKindSchema = z.enum(["foreign-package", "sideloaded", "modified-on-disk"]);
76
78
  /** M32 I (R12): what switching a plugin off does, derived from what it declares. */
77
- export const SWITCH_OFF_EFFECTS = ["keepsSiteContent", "hidesScreens", "stopsServerCode", "stopsTemplateExtensions", "providersFallBack"];
79
+ export const SWITCH_OFF_EFFECTS = ["keepsSiteContent", "hidesScreens", "stopsServerCode", "stopsTemplateExtensions", "providersFallBack", "richTextItemsFallBack"];
78
80
  export const ManagedPluginSchema = z.object({
79
81
  switchOffEffects: z.array(z.enum(SWITCH_OFF_EFFECTS)),
82
+ // M35 B1a (design 4.9): the switched-on plugins that use this one optionally and would lose it at a
83
+ // switch-off or uninstall; the admin warns, nothing is refused. Experimental.
84
+ optionalUsers: z.array(z.object({ pluginId: z.string(), name: z.string(), contracts: z.array(z.string()) }).strict()).optional(),
80
85
  pluginId: z.string(),
81
86
  // S318: present only when the licence term lapsed (the plugin is read-only).
82
87
  readOnly: PluginReadOnlyNoticeSchema.optional(),
@@ -147,7 +152,7 @@ export const ManagedPluginSchema = z.object({
147
152
  .array(z.enum(PROVIDER_TABLE_KINDS))
148
153
  .nullable()
149
154
  .optional()
150
- .describe("For a licensed plugin, the roles it holds on this site: each kind it is the chosen provider of, mediaStore when its stores keep files, signIn when one of its sign-in providers is switched on. Null for a plugin with no licence."),
155
+ .describe("For a licensed plugin, the roles it holds on this site: each kind it is the chosen provider of, mediaStore when its stores keep files, signIn when one of its sign-in providers is switched on, signInStep when one of its sign-in steps is switched on. Null for a plugin with no licence."),
151
156
  licenseStoredFiles: z.number().int().nonnegative().nullable().optional().describe("For a licensed plugin, the files its media stores keep. Null for a plugin with no licence."),
152
157
  licenseSignInOnlyWayCount: z
153
158
  .number()
@@ -221,6 +226,8 @@ export const ManagedPluginSchema = z.object({
221
226
  .nonnegative()
222
227
  .optional()
223
228
  .describe("How many plugin settings fields the plugin's attached manifest declares (0 when it declares none or is not attached). Values are never listed here."),
229
+ // M35 B1a: whether the attached manifest offers, uses, owns or raises anything, so the admin offers Connections.
230
+ servicesDeclared: z.boolean().optional().describe("Whether the plugin's attached manifest declares service contracts, offers, uses or plugin events. Experimental."),
224
231
  taskCount: z
225
232
  .number()
226
233
  .int()
@@ -313,9 +320,16 @@ export const PluginIdParamsSchema = z.object({
313
320
  export const UninstallPluginBodySchema = z
314
321
  .object({
315
322
  confirmStructuredDataCleanup: z.boolean().optional(),
316
- // S293: the uninstall mirror; absent means true, and each only acts on
317
- // what the install record holds.
323
+ // S293: the uninstall mirror; each only acts on what the install record holds. M35
324
+ // (2026-11-22): removeSampleContent absent means false (nothing is moved to the Recycle Bin);
325
+ // true moves the sample pages the owner has not edited, or exactly samplePageIds. Nothing is
326
+ // ever deleted for good. removeRoles absent means true.
318
327
  removeSampleContent: z.boolean().optional(),
328
+ samplePageIds: z
329
+ .array(z.string().min(1))
330
+ .max(UNINSTALL_SAMPLE_PAGES_MAX)
331
+ .optional()
332
+ .describe("The recorded sample pages to move to the Recycle Bin, edited or not. Read only with removeSampleContent; an id the install record does not hold is ignored."),
319
333
  removeRoles: z.boolean().optional(),
320
334
  // M33 K13: absent means true. False deletes the snapshot the uninstall took (its tables, its
321
335
  // settings values and its data type record, and the ones its unconfirmed attempts took since
@@ -351,25 +365,6 @@ export const BundleUninstallConfirmationRequiredSchema = z.object({
351
365
  })),
352
366
  message: z.string(),
353
367
  });
354
- // F1 QA fix wave: the content-guard 409: a single-plugin uninstall()
355
- // blocked because one or more of its tracked document types still have
356
- // content or templates referencing them. Distinct from the two
357
- // confirmation schemas above (those are "confirm to proceed," this is a
358
- // terminal refusal the caller must resolve by hand, never retried with a
359
- // flag) and from the bare ApiErrorSchema (that still covers every OTHER
360
- // refusal this route can throw, e.g. a bundle member blocked by an outside
361
- // dependent); a separate shape so `blockedBy` only ever appears when the
362
- // server actually has a list of named blockers to put in it.
363
- // contentCount is optional: the guard only knows a count for the
364
- // "has-content" reason, not "has-templates" (document-type-service.ts's
365
- // DocumentTypeInUseError never carries one for that reason either).
366
- export const UninstallBlockedByDocumentTypesSchema = z.object({
367
- message: z.string(),
368
- blockedBy: z.array(z.object({
369
- documentType: z.string(),
370
- contentCount: z.number().int().nonnegative().optional(),
371
- })),
372
- });
373
368
  // Task 6: the 200 success body for a single-plugin DELETE: the CONFIRMED
374
369
  // pass's freshly-minted snapshotGroupId (the gate site already took it;
375
370
  // this just stops discarding it), null for a simple-storage plugin (never
@@ -558,6 +553,10 @@ export const SnapshotGroupSchema = z.object({
558
553
  tableNames: z.array(z.string()),
559
554
  totalTableCount: z.number().int(),
560
555
  status: z.enum(["complete", "partial"]),
556
+ /** M35 U1 (D1): present when the group holds an uninstall's records beside or instead of tables: the
557
+ * plugin settings values (named only to a caller who may change the plugin's settings) and the
558
+ * account field values. A group of records alone has no tables, and is listed so it can be deleted. */
559
+ records: z.object({ settings: z.boolean(), userFields: z.boolean() }).strict().optional(),
561
560
  });
562
561
  export const SnapshotGroupListQuerySchema = z.object({
563
562
  cursor: z.string().uuid().optional(),
@@ -568,12 +567,19 @@ export const RESTORE_SOURCES = ["snapshots", "replacedSettings"];
568
567
  export const SnapshotSettingsRecordSchema = z
569
568
  .object({ takenAt: z.string(), fields: z.array(z.string()) })
570
569
  .strict();
570
+ /** M35 U1 (D1): the newest account field record an uninstall took: when, and how many people it holds. */
571
+ export const SnapshotUserFieldsRecordSchema = z
572
+ .object({ takenAt: z.string(), people: z.number().int().nonnegative() })
573
+ .strict();
571
574
  export const SnapshotGroupListResponseSchema = z.object({
572
575
  pluginId: z.string(),
573
576
  items: z.array(SnapshotGroupSchema), // newest first
574
577
  nextCursor: z.string().nullable(),
575
578
  /** M32 I3 (B9): the settings records restore can use, field ids only, never a value. */
576
579
  settings: z.object({ recorded: SnapshotSettingsRecordSchema.nullable(), replaced: SnapshotSettingsRecordSchema.nullable() }).strict().optional(),
580
+ /** M35 U1 (D1): the account field record a restore fills back, to every caller; null when there is
581
+ * none or the plugin is not installed (the restore plan's rule). */
582
+ userFields: SnapshotUserFieldsRecordSchema.nullable().optional(),
577
583
  });
578
584
  // S154 Task 5: the UNION restore plan: the newest available snapshot copy
579
585
  // of each DISTINCT table this plugin has ever snapshotted, chosen
@@ -599,6 +605,25 @@ export const RestoreSettingsPlanSchema = z
599
605
  source: z.enum(RESTORE_SOURCES).optional(),
600
606
  })
601
607
  .strict();
608
+ // M35 U1 (D1): the account field values a restore fills back: how many people the newest record an
609
+ // uninstall took holds. Each is written only for a person who still has an account and has none set
610
+ // for the plugin since, never over a value. Null when there is no record or the plugin is not installed.
611
+ export const RestoreUserFieldsPlanSchema = z
612
+ .object({
613
+ /** The group of the record filled back, so a confirm made before a newer record landed is refused. */
614
+ snapshotGroupId: z.string(),
615
+ people: z.number().int().nonnegative(),
616
+ })
617
+ .strict();
618
+ // M35 B1a (W16): the approved connections a restore writes back: how many the newest record an
619
+ // uninstall took holds. Each is written only when its two plugins are installed and it is missing.
620
+ export const RestoreConnectionsPlanSchema = z
621
+ .object({
622
+ /** The group of the record written back, so a confirm made before a newer record landed is refused. */
623
+ snapshotGroupId: z.string(),
624
+ connections: z.number().int().nonnegative(),
625
+ })
626
+ .strict();
602
627
  // 409 payload for an unconfirmed restore: nothing has been touched yet,
603
628
  // the plan is offered for the admin to review before confirming. planHash
604
629
  // (S161, S154 rider) is a stable digest of this exact plan: the confirm
@@ -612,6 +637,10 @@ export const RestoreConfirmationRequiredSchema = z.object({
612
637
  plan: z.array(RestorePlanEntrySchema),
613
638
  // M32 F4d (D2): optional so an answer from a server before it still reads; planHash covers it.
614
639
  settings: RestoreSettingsPlanSchema.nullable().optional(),
640
+ // M35 U1 (D1): optional as `settings` is, so an answer from a server before it still reads; planHash covers it.
641
+ userFields: RestoreUserFieldsPlanSchema.nullable().optional(),
642
+ // M35 B1a: optional as userFields is; planHash covers it.
643
+ connections: RestoreConnectionsPlanSchema.nullable().optional(),
615
644
  planHash: z.string(),
616
645
  message: z.string(),
617
646
  });
@@ -661,6 +690,7 @@ export const SnapshotGroupDeleteConfirmationSchema = z.object({
661
690
  tableNames: z.array(z.string()),
662
691
  settings: z.boolean().describe("Whether the group holds the plugin's settings values an uninstall recorded."),
663
692
  dataTypes: z.boolean().describe("Whether the group holds the data type record an uninstall wrote."),
693
+ userFields: z.boolean().describe("Whether the group holds the account field values an uninstall recorded."),
664
694
  message: z.string(),
665
695
  });
666
696
  export const SnapshotGroupDeletedSchema = z.object({
@@ -668,6 +698,7 @@ export const SnapshotGroupDeletedSchema = z.object({
668
698
  removedTables: z.array(z.string()),
669
699
  removedSettings: z.boolean(),
670
700
  removedDataTypes: z.boolean(),
701
+ removedUserFields: z.boolean(),
671
702
  });
672
703
  // S314c5 (D1, D2): restoring the data types an uninstall recorded (the row under the trigger
673
704
  // "uninstall-data-types" in the snapshot table), in the two-step form of the table restore above:
@@ -778,6 +809,15 @@ export const PluginUpdateRefusedSchema = z.object({
778
809
  rollbackFailures: z.number().int().positive().optional(),
779
810
  signInSwitchedOff: SignInSwitchedOffSchema,
780
811
  });
812
+ /** M35 C4a and C4b (design D13, D18): the 409 an update answers when it changes the shape of a declared rich text item
813
+ * (`rich_text_item_shape_changed`: pages may hold the item in its old shape) or whether one is editorial
814
+ * (`rich_text_item_editorial_changed`: stored items keep the old flag). The update is refused before any write; the
815
+ * code names the refusal and `richTextItems` the item names it concerns. */
816
+ export const PluginRichTextShapeRefusedSchema = z.object({
817
+ message: z.string(),
818
+ code: z.enum(["rich_text_item_shape_changed", "rich_text_item_editorial_changed"]),
819
+ richTextItems: z.array(z.string()).max(RICH_TEXT_NODES_PER_PLUGIN_MAX),
820
+ });
781
821
  /** S274c: the 409 an upload over a verified plugin answers before it stores
782
822
  * anything, until the retry carries confirmTrustDowngrade=true. */
783
823
  export const TrustDowngradeConfirmationSchema = z.object({
@@ -821,4 +861,8 @@ export const PluginProviderInUseSchema = z.object({
821
861
  storedFiles: z.number().int().nonnegative(),
822
862
  /** M32 F4b (D41): the ids of the plugin's sign-in providers that are switched on (switch them off in Server settings first). */
823
863
  signIn: z.array(z.string()),
864
+ /** M35 U1 (W51): the plugins whose own form protection choice names one of its providers (choose another for them first). */
865
+ callers: z.array(z.string()).optional(),
866
+ /** M35 U3a (D10): the ids of the plugin's sign-in steps that are switched on. */
867
+ signInSteps: z.array(z.string()).optional(),
824
868
  });
@@ -2,7 +2,7 @@ import type { PluginLabel } from "./plugin-labels.js";
2
2
  /** The contribution kinds that sit behind a named action. The SDK classifies
3
3
  * these on its CONTRIBUTION_RULES table; its test pins that table to this
4
4
  * list, so the two cannot drift apart silently. */
5
- export declare const ACTION_GATED_CONTRIBUTION_KEYS: readonly ["adminSections", "railEntries", "dashboardWidgets", "apiRoutes", "editorPanels", "treeActions"];
5
+ export declare const ACTION_GATED_CONTRIBUTION_KEYS: readonly ["adminSections", "railEntries", "dashboardWidgets", "apiRoutes", "editorPanels", "treeActions", "contentColumns", "treeBadges", "listFilters", "bulkActions", "adminSlots"];
6
6
  /** S293 (S283's decision, 2026-10-13-s293-the-wizard-installed-design.md 3.9):
7
7
  * the built-in rights an offered role may grant beside the plugin's own
8
8
  * actions: the read right of each built-in section a rail entry may join
@@ -19,8 +19,9 @@ export type PluginActionOfferTarget = (typeof PLUGIN_ACTION_OFFER_TARGETS)[numbe
19
19
  /**
20
20
  * M33 K29: whether an offer's box starts ticked, derived from the declarations and never declared
21
21
  * (operator question 5 of the SEO design). Ticked when only editor panels, admin sections (their
22
- * rail entries included), rail entries, dashboard widgets and `GET` routes name the action;
23
- * unticked when a route of any other method names it, or a tree action does (it acts on a page).
22
+ * rail entries included), rail entries, dashboard widgets, content list columns, tree badges, list
23
+ * filters, admin slots (M35 C2) and `GET` routes name the action; unticked when a route of any
24
+ * other method names it, or a tree action or a bulk action does (each acts on pages).
24
25
  * Read defensively, as deriveCapabilities reads a manifest.
25
26
  */
26
27
  export declare function actionOfferTicked(contributions: unknown, actionId: string): boolean;
@@ -42,4 +43,10 @@ export interface ActionDeclarationInput {
42
43
  }>;
43
44
  contributions?: unknown;
44
45
  }
46
+ /** M35 C3 (W28): the contribution keys whose entries mount a plugin view, each gated by the action it names.
47
+ * An `apiRoutes` action opens no view, and content columns, tree badges and list filters draw host markup
48
+ * from data, so none of them admits a reader of the plugin's view settings. */
49
+ export declare const VIEW_BEARING_ACTION_KEYS: readonly ["adminSections", "railEntries", "dashboardWidgets", "editorPanels", "treeActions", "bulkActions", "adminSlots"];
50
+ /** M35 C3 (W28): the actions that open one of the plugin's views (a section's rail entries included). Read defensively. */
51
+ export declare function viewActionsOf(contributions: unknown): string[];
45
52
  export declare function checkActionDeclarations(manifest: ActionDeclarationInput): ActionDeclarationIssue[];
@@ -10,7 +10,11 @@ import { isPluginActionFor } from "./action.schema.js";
10
10
  /** The contribution kinds that sit behind a named action. The SDK classifies
11
11
  * these on its CONTRIBUTION_RULES table; its test pins that table to this
12
12
  * list, so the two cannot drift apart silently. */
13
- export const ACTION_GATED_CONTRIBUTION_KEYS = ["adminSections", "railEntries", "dashboardWidgets", "apiRoutes", "editorPanels", "treeActions"];
13
+ export const ACTION_GATED_CONTRIBUTION_KEYS = [
14
+ "adminSections", "railEntries", "dashboardWidgets", "apiRoutes", "editorPanels", "treeActions",
15
+ // M35 C2 (W5, W26): each names the action a person must hold to see it.
16
+ "contentColumns", "treeBadges", "listFilters", "bulkActions", "adminSlots",
17
+ ];
14
18
  /** S293 (S283's decision, 2026-10-13-s293-the-wizard-installed-design.md 3.9):
15
19
  * the built-in rights an offered role may grant beside the plugin's own
16
20
  * actions: the read right of each built-in section a rail entry may join
@@ -26,14 +30,16 @@ const OFFERABLE_LIST = `${OFFERABLE_BUILT_IN_ACTIONS.slice(0, -1).map((action) =
26
30
  * One target per action, from this fixed list. */
27
31
  export const PLUGIN_ACTION_OFFER_TARGETS = ["content.read", "content.update", "content.publish", "media.read"];
28
32
  /** The gated kinds whose naming an action keeps its offer ticked: each shows something (a panel,
29
- * a section and its rail, a rail entry, a widget) and changes nothing itself. A GET route is the
30
- * one route kind beside them. */
31
- const SHOWING_KINDS = new Set(["adminSections", "railEntries", "dashboardWidgets", "editorPanels"]);
33
+ * a section and its rail, a rail entry, a widget, and since M35 C2 a content list column, a tree
34
+ * badge, a list filter and a panel in a core screen) and changes nothing itself. A GET route is
35
+ * the one route kind beside them. */
36
+ const SHOWING_KINDS = new Set(["adminSections", "railEntries", "dashboardWidgets", "editorPanels", "contentColumns", "treeBadges", "listFilters", "adminSlots"]);
32
37
  /**
33
38
  * M33 K29: whether an offer's box starts ticked, derived from the declarations and never declared
34
39
  * (operator question 5 of the SEO design). Ticked when only editor panels, admin sections (their
35
- * rail entries included), rail entries, dashboard widgets and `GET` routes name the action;
36
- * unticked when a route of any other method names it, or a tree action does (it acts on a page).
40
+ * rail entries included), rail entries, dashboard widgets, content list columns, tree badges, list
41
+ * filters, admin slots (M35 C2) and `GET` routes name the action; unticked when a route of any
42
+ * other method names it, or a tree action or a bulk action does (each acts on pages).
37
43
  * Read defensively, as deriveCapabilities reads a manifest.
38
44
  */
39
45
  export function actionOfferTicked(contributions, actionId) {
@@ -53,12 +59,12 @@ export function actionOfferTicked(contributions, actionId) {
53
59
  }
54
60
  return true;
55
61
  }
56
- function referencedActions(contributions) {
62
+ function referencedActions(contributions, keys = ACTION_GATED_CONTRIBUTION_KEYS) {
57
63
  const referenced = new Set();
58
64
  if (!contributions || typeof contributions !== "object")
59
65
  return referenced;
60
66
  const record = contributions;
61
- for (const key of ACTION_GATED_CONTRIBUTION_KEYS) {
67
+ for (const key of keys) {
62
68
  const entries = record[key];
63
69
  if (!Array.isArray(entries))
64
70
  continue;
@@ -79,8 +85,27 @@ function referencedActions(contributions) {
79
85
  }
80
86
  }
81
87
  }
88
+ // M35 C4b (design D16): a rich text button view names its action inside richTextExtensions.buttons[].does, not as a
89
+ // top-level `action`, so it is read here for both the declared-action rule and the view actions.
90
+ const rich = record.richTextExtensions;
91
+ const buttons = rich !== null && typeof rich === "object" ? rich.buttons : undefined;
92
+ if (Array.isArray(buttons)) {
93
+ for (const button of buttons) {
94
+ const action = button?.does?.action;
95
+ if (typeof action === "string")
96
+ referenced.add(action);
97
+ }
98
+ }
82
99
  return referenced;
83
100
  }
101
+ /** M35 C3 (W28): the contribution keys whose entries mount a plugin view, each gated by the action it names.
102
+ * An `apiRoutes` action opens no view, and content columns, tree badges and list filters draw host markup
103
+ * from data, so none of them admits a reader of the plugin's view settings. */
104
+ export const VIEW_BEARING_ACTION_KEYS = ["adminSections", "railEntries", "dashboardWidgets", "editorPanels", "treeActions", "bulkActions", "adminSlots"];
105
+ /** M35 C3 (W28): the actions that open one of the plugin's views (a section's rail entries included). Read defensively. */
106
+ export function viewActionsOf(contributions) {
107
+ return [...referencedActions(contributions, VIEW_BEARING_ACTION_KEYS)];
108
+ }
84
109
  export function checkActionDeclarations(manifest) {
85
110
  const issues = [];
86
111
  const referenced = referencedActions(manifest.contributions);
@@ -72,7 +72,8 @@ export declare function apiRouteRawBodyProblem(route: {
72
72
  * skips an entry whose method is not in the list because "the schema reports
73
73
  * it"; the door has no such schema, so `"get"` published. An absent `access` is
74
74
  * the documented default and stays valid; an unknown string is an error.
75
- * M33 K4: `rawBody`, when given, is `true` on a POST, PUT or PATCH route. */
75
+ * M33 K4: `rawBody`, when given, is `true` on a POST, PUT or PATCH route.
76
+ * M35 B3: `uploads`, when given, is a good declaration on a POST, PUT or PATCH route without rawBody. */
76
77
  export declare function checkApiRouteTiers(manifest: {
77
78
  contributions?: unknown;
78
79
  }): ApiRouteDeclarationIssue[];
@@ -1,4 +1,5 @@
1
1
  import { API_ROUTE_ACCESS_TIERS } from "./plugin-vocabulary.js";
2
+ import { API_ROUTE_UPLOAD_METHODS, routeUploadsProblem } from "./plugin-uploads.js";
2
3
  // S295 (2026-10-14-s295-routes-fastify-knows-about-design.md 3.1): the rule for
3
4
  // what a plugin may declare as an apiRoute's address, as plain data, so the
4
5
  // SDK's manifest schema (and through it `kardalum plugin validate`), the
@@ -200,7 +201,8 @@ export function apiRouteRawBodyProblem(route) {
200
201
  * skips an entry whose method is not in the list because "the schema reports
201
202
  * it"; the door has no such schema, so `"get"` published. An absent `access` is
202
203
  * the documented default and stays valid; an unknown string is an error.
203
- * M33 K4: `rawBody`, when given, is `true` on a POST, PUT or PATCH route. */
204
+ * M33 K4: `rawBody`, when given, is `true` on a POST, PUT or PATCH route.
205
+ * M35 B3: `uploads`, when given, is a good declaration on a POST, PUT or PATCH route without rawBody. */
204
206
  export function checkApiRouteTiers(manifest) {
205
207
  const contributions = manifest.contributions;
206
208
  const routes = contributions !== null && typeof contributions === "object" ? contributions.apiRoutes : undefined;
@@ -223,6 +225,10 @@ export function checkApiRouteTiers(manifest) {
223
225
  const rawBody = apiRouteRawBodyProblem(route);
224
226
  if (rawBody !== null)
225
227
  issues.push({ path: [...base, "rawBody"], message: rawBody });
228
+ // M35 B3 (W17): files, on a POST, PUT or PATCH route without rawBody, within the upload limits.
229
+ const uploads = routeUploadsProblem(route, API_ROUTE_UPLOAD_METHODS, "route");
230
+ if (uploads !== null)
231
+ issues.push({ path: [...base, "uploads"], message: uploads });
226
232
  });
227
233
  return issues;
228
234
  }
@@ -84,10 +84,10 @@ export declare const PluginOutboundRequestsSchema: z.ZodObject<{
84
84
  en: z.ZodString;
85
85
  }, z.core.$catchall<z.ZodString>>, unknown>;
86
86
  methods: z.ZodArray<z.ZodEnum<{
87
- GET: "GET";
88
87
  POST: "POST";
89
88
  PUT: "PUT";
90
89
  PATCH: "PATCH";
90
+ GET: "GET";
91
91
  DELETE: "DELETE";
92
92
  HEAD: "HEAD";
93
93
  }>>;