@kardalum/plugin-sdk 0.19.0 → 0.20.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 (366) hide show
  1. package/CHANGELOG.md +211 -0
  2. package/README.md +19 -0
  3. package/dist/admin-section-registry.d.ts +16 -1
  4. package/dist/admin-section-registry.js +23 -0
  5. package/dist/built-in-editor-ids.d.ts +1 -1
  6. package/dist/built-in-editor-ids.js +2 -20
  7. package/dist/built-in-settings-schemas.d.ts +10 -0
  8. package/dist/built-in-settings-schemas.js +86 -0
  9. package/dist/built-in-value-schemas.js +35 -0
  10. package/dist/built-ins.js +38 -7
  11. package/dist/capabilities.d.ts +11 -1
  12. package/dist/capabilities.js +55 -3
  13. package/dist/cli.d.ts +66 -0
  14. package/dist/cli.js +22 -0
  15. package/dist/content-library.d.ts +85 -0
  16. package/dist/content-library.js +15 -0
  17. package/dist/content-picker/page-picker-sheet.d.ts +13 -0
  18. package/dist/content-picker/page-picker-sheet.js +105 -0
  19. package/dist/content-picker/page-tree.d.ts +25 -0
  20. package/dist/content-picker/page-tree.js +132 -0
  21. package/dist/data-type-plugin.d.ts +7 -1
  22. package/dist/datatype-validation.d.ts +4 -9
  23. package/dist/datatype-validation.js +139 -1
  24. package/dist/entitlement-entry.d.ts +1 -1
  25. package/dist/entitlement-entry.js +1 -1
  26. package/dist/entitlement-gate.d.ts +14 -0
  27. package/dist/entitlement-gate.js +64 -7
  28. package/dist/entitlement-plan.d.ts +6 -0
  29. package/dist/entitlement-plan.js +10 -0
  30. package/dist/entitlement-types.d.ts +36 -12
  31. package/dist/entitlement.d.ts +31 -4
  32. package/dist/entitlement.js +58 -17
  33. package/dist/hook-entry.d.ts +5 -0
  34. package/dist/hook-entry.js +30 -0
  35. package/dist/host-entry.d.ts +1 -1
  36. package/dist/host-entry.js +1 -1
  37. package/dist/index.d.ts +36 -4
  38. package/dist/index.js +50 -3
  39. package/dist/mail.d.ts +30 -0
  40. package/dist/mail.js +1 -0
  41. package/dist/manifest-entry.d.ts +29 -4
  42. package/dist/manifest-entry.js +39 -2
  43. package/dist/manifest-schema.d.ts +443 -29
  44. package/dist/manifest-schema.js +285 -23
  45. package/dist/manifest.d.ts +450 -51
  46. package/dist/manifest.js +1 -1
  47. package/dist/media/media-picker.js +31 -18
  48. package/dist/media/upload-error.d.ts +5 -1
  49. package/dist/media/upload-error.js +14 -2
  50. package/dist/media-library.d.ts +32 -0
  51. package/dist/media-library.js +15 -0
  52. package/dist/nested-field-host.d.ts +76 -0
  53. package/dist/nested-field-host.js +90 -0
  54. package/dist/notify.d.ts +12 -4
  55. package/dist/notify.js +1 -1
  56. package/dist/outbound.d.ts +47 -0
  57. package/dist/outbound.js +1 -0
  58. package/dist/plugin-context.d.ts +5 -0
  59. package/dist/plugin-screen-context.d.ts +112 -0
  60. package/dist/plugin-screen-context.js +26 -0
  61. package/dist/providers.d.ts +268 -0
  62. package/dist/providers.js +74 -0
  63. package/dist/read-all-pages.d.ts +5 -0
  64. package/dist/read-all-pages.js +3 -2
  65. package/dist/richtext/block-panel.js +11 -6
  66. package/dist/richtext/insert-menu.js +9 -6
  67. package/dist/richtext/style-listbox.js +6 -4
  68. package/dist/sdk-strings.d.ts +285 -0
  69. package/dist/sdk-strings.js +347 -0
  70. package/dist/sealing.d.ts +14 -0
  71. package/dist/sealing.js +1 -0
  72. package/dist/simple-storage-value-provider.js +24 -24
  73. package/dist/structured-storage-types.d.ts +309 -9
  74. package/dist/text-entry.d.ts +1 -0
  75. package/dist/text-entry.js +6 -0
  76. package/dist/tokens/tailwind-theme.css +5 -0
  77. package/dist/tokens/tokens.css +15 -3
  78. package/dist/tokens/tokens.json +8 -3
  79. package/dist/views/asset-view.js +4 -1
  80. package/dist/views/content-list-preview.js +3 -1
  81. package/dist/views/content-list-settings-view.js +11 -7
  82. package/dist/views/content-list-view.d.ts +5 -3
  83. package/dist/views/content-list-view.js +38 -34
  84. package/dist/views/content-picker-view.d.ts +3 -0
  85. package/dist/views/content-picker-view.js +143 -0
  86. package/dist/views/crop-view.d.ts +4 -6
  87. package/dist/views/crop-view.js +22 -13
  88. package/dist/views/date-range-view.js +4 -1
  89. package/dist/views/file-upload-view.d.ts +5 -7
  90. package/dist/views/file-upload-view.js +16 -7
  91. package/dist/views/group-view.d.ts +8 -0
  92. package/dist/views/group-view.js +123 -0
  93. package/dist/views/html-view.js +7 -6
  94. package/dist/views/image-view.js +37 -19
  95. package/dist/views/link-view.d.ts +3 -0
  96. package/dist/views/link-view.js +150 -0
  97. package/dist/views/options-list-view.d.ts +3 -0
  98. package/dist/views/options-list-view.js +104 -0
  99. package/dist/views/repeatable-list-view.d.ts +3 -0
  100. package/dist/views/repeatable-list-view.js +113 -0
  101. package/dist/views/rich-text-view.js +28 -13
  102. package/dist/views/suggest-key.d.ts +17 -0
  103. package/dist/views/suggest-key.js +55 -0
  104. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +215 -0
  105. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +179 -0
  106. package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.d.ts +12 -0
  107. package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.js +10 -0
  108. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +10 -0
  109. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +5 -0
  110. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +7 -1
  111. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +4 -2
  112. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +1 -0
  113. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +27 -0
  114. package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
  115. package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +126 -0
  116. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +115 -3
  117. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +58 -11
  118. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +57 -2
  119. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +137 -0
  120. package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +1 -1
  121. package/node_modules/@kardalum/api-schemas/dist/content-path.js +1 -1
  122. package/node_modules/@kardalum/api-schemas/dist/content-search.schema.d.ts +50 -0
  123. package/node_modules/@kardalum/api-schemas/dist/content-search.schema.js +42 -0
  124. package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.d.ts +37 -0
  125. package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.js +19 -0
  126. package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.d.ts +23 -0
  127. package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.js +13 -0
  128. package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +3 -0
  129. package/node_modules/@kardalum/api-schemas/dist/content.schema.js +10 -0
  130. package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.d.ts +41 -0
  131. package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.js +86 -0
  132. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +10 -5
  133. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +7 -4
  134. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +25 -0
  135. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +8 -0
  136. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +1 -1
  137. package/node_modules/@kardalum/api-schemas/dist/data-type-issue.d.ts +35 -0
  138. package/node_modules/@kardalum/api-schemas/dist/data-type-issue.js +60 -0
  139. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +180 -15
  140. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +41 -5
  141. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +24 -6
  142. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +90 -5
  143. package/node_modules/@kardalum/api-schemas/dist/form-protection.d.ts +23 -0
  144. package/node_modules/@kardalum/api-schemas/dist/form-protection.js +12 -0
  145. package/node_modules/@kardalum/api-schemas/dist/graphql-limits.d.ts +12 -0
  146. package/node_modules/@kardalum/api-schemas/dist/graphql-limits.js +14 -0
  147. package/node_modules/@kardalum/api-schemas/dist/held-embed-words.d.ts +23 -0
  148. package/node_modules/@kardalum/api-schemas/dist/held-embed-words.js +70 -0
  149. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +117 -41
  150. package/node_modules/@kardalum/api-schemas/dist/index.js +89 -26
  151. package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.d.ts +9 -0
  152. package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.js +9 -0
  153. package/node_modules/@kardalum/api-schemas/dist/legal-anchors.d.ts +8 -0
  154. package/node_modules/@kardalum/api-schemas/dist/legal-anchors.js +9 -0
  155. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +63 -0
  156. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +54 -0
  157. package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +224 -0
  158. package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +404 -0
  159. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +8 -0
  160. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +4 -0
  161. package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.d.ts +145 -0
  162. package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.js +154 -0
  163. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +312 -8
  164. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +43 -3
  165. package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +15 -0
  166. package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +14 -0
  167. package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.d.ts +131 -0
  168. package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.js +272 -0
  169. package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.d.ts +84 -0
  170. package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.js +138 -0
  171. package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.d.ts +20 -0
  172. package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.js +49 -0
  173. package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.d.ts +211 -0
  174. package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.js +424 -0
  175. package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +78 -0
  176. package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.js +27 -0
  177. package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.d.ts +70 -0
  178. package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.js +43 -0
  179. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +22 -0
  180. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +13 -1
  181. package/node_modules/@kardalum/api-schemas/dist/media-move.schema.d.ts +75 -0
  182. package/node_modules/@kardalum/api-schemas/dist/media-move.schema.js +53 -0
  183. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +2 -2
  184. package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +2 -0
  185. package/node_modules/@kardalum/api-schemas/dist/media-reference.js +55 -0
  186. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +1 -0
  187. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +4 -0
  188. package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.d.ts +204 -0
  189. package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.js +370 -0
  190. package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +53 -0
  191. package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +284 -0
  192. package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +5 -5
  193. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +1 -2
  194. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +1 -2
  195. package/node_modules/@kardalum/api-schemas/dist/notification-kinds.d.ts +145 -0
  196. package/node_modules/@kardalum/api-schemas/dist/notification-kinds.js +177 -0
  197. package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +258 -7
  198. package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +96 -5
  199. package/node_modules/@kardalum/api-schemas/dist/page-address.d.ts +10 -0
  200. package/node_modules/@kardalum/api-schemas/dist/page-address.js +7 -0
  201. package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.d.ts +34 -0
  202. package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.js +60 -0
  203. package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +28 -3
  204. package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +55 -8
  205. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +12 -0
  206. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +13 -0
  207. package/node_modules/@kardalum/api-schemas/dist/plugin-caller.d.ts +23 -0
  208. package/node_modules/@kardalum/api-schemas/dist/plugin-caller.js +16 -0
  209. package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.d.ts +76 -0
  210. package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.js +316 -0
  211. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +42 -0
  212. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +74 -0
  213. package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.d.ts +31 -0
  214. package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.js +131 -0
  215. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +26 -2
  216. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +26 -2
  217. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -5
  218. package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.d.ts +228 -0
  219. package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.js +41 -0
  220. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +26 -0
  221. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +55 -0
  222. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +40 -0
  223. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +124 -0
  224. package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.d.ts +41 -0
  225. package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.js +51 -0
  226. package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.d.ts +32 -0
  227. package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.js +102 -0
  228. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +107 -0
  229. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +213 -0
  230. package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.d.ts +5 -0
  231. package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.js +21 -0
  232. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +4 -0
  233. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +3 -0
  234. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +44 -0
  235. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +38 -1
  236. package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +237 -2
  237. package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +205 -6
  238. package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +26 -0
  239. package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +29 -1
  240. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +32 -8
  241. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +120 -14
  242. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +335 -6
  243. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +242 -2
  244. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +16 -1
  245. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +34 -1
  246. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.d.ts +40 -0
  247. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.js +139 -0
  248. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +22 -1
  249. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +31 -1
  250. package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.d.ts +25 -0
  251. package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.js +43 -0
  252. package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +107 -0
  253. package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.js +150 -0
  254. package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.d.ts +5 -0
  255. package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.js +7 -0
  256. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +310 -0
  257. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +430 -0
  258. package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +4 -0
  259. package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +2 -0
  260. package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.d.ts +45 -0
  261. package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.js +99 -0
  262. package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.d.ts +68 -0
  263. package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.js +114 -0
  264. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +342 -0
  265. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +400 -0
  266. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +180 -0
  267. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +612 -0
  268. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +7 -0
  269. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +47 -4
  270. package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.d.ts +45 -0
  271. package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -0
  272. package/node_modules/@kardalum/api-schemas/dist/plural-rules.d.ts +9 -0
  273. package/node_modules/@kardalum/api-schemas/dist/plural-rules.js +41 -0
  274. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +41 -0
  275. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +100 -12
  276. package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.d.ts +189 -0
  277. package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.js +164 -0
  278. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +4 -4
  279. package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
  280. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +6 -0
  281. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +82 -0
  282. package/node_modules/@kardalum/api-schemas/dist/rich-text-text.d.ts +66 -0
  283. package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +497 -0
  284. package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.d.ts +82 -0
  285. package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.js +99 -0
  286. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +13 -0
  287. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +28 -0
  288. package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +91 -1
  289. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +90 -8
  290. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +59 -1
  291. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +110 -0
  292. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +34 -2
  293. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +384 -0
  294. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +616 -0
  295. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +3 -3
  296. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +1 -1
  297. package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.d.ts +13 -0
  298. package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.js +26 -0
  299. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +66 -0
  300. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +160 -0
  301. package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +1 -0
  302. package/node_modules/@kardalum/api-schemas/dist/template.schema.js +3 -0
  303. package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.d.ts +13 -0
  304. package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.js +29 -0
  305. package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.d.ts +13 -0
  306. package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.js +6 -0
  307. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +58 -1
  308. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +34 -3
  309. package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +5 -1
  310. package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +4 -3
  311. package/node_modules/@kardalum/api-schemas/package.json +1 -0
  312. package/node_modules/@kardalum/design-tokens/dist/build-css.js +6 -0
  313. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +5 -0
  314. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -1
  315. package/node_modules/@kardalum/design-tokens/dist/tokens.css +15 -3
  316. package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +1 -1
  317. package/node_modules/@kardalum/design-tokens/dist/tokens.js +12 -3
  318. package/node_modules/@kardalum/design-tokens/dist/tokens.json +8 -3
  319. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +1 -1
  320. package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +21 -2
  321. package/node_modules/@kardalum/plugin-package/dist/build-reference.js +8 -2
  322. package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
  323. package/node_modules/@kardalum/plugin-package/dist/capabilities.js +355 -22
  324. package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
  325. package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +2 -0
  326. package/node_modules/@kardalum/plugin-package/dist/cms-range.d.ts +17 -0
  327. package/node_modules/@kardalum/plugin-package/dist/cms-range.js +353 -0
  328. package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.d.ts +2 -0
  329. package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.js +26 -0
  330. package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +1 -1
  331. package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +3 -2
  332. package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.d.ts +2 -0
  333. package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +34 -0
  334. package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +2 -2
  335. package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.d.ts +2 -0
  336. package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +27 -0
  337. package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.d.ts +2 -0
  338. package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.js +22 -0
  339. package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +1 -0
  340. package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +1 -0
  341. package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +47 -5
  342. package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.d.ts +27 -0
  343. package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +95 -0
  344. package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +9 -4
  345. package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.d.ts +3 -0
  346. package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.js +68 -0
  347. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +3 -0
  348. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +298 -0
  349. package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +25 -4
  350. package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +91 -2
  351. package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.d.ts +6 -0
  352. package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +140 -0
  353. package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.d.ts +2 -0
  354. package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +36 -0
  355. package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +1 -0
  356. package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +21 -1
  357. package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +10 -0
  358. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -2
  359. package/node_modules/@kardalum/plugin-package/dist/index.js +2 -1
  360. package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +75 -0
  361. package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +123 -0
  362. package/node_modules/@kardalum/ui/dist/components/switch.js +1 -1
  363. package/node_modules/@kardalum/ui/dist/components/tooltip.js +1 -2
  364. package/node_modules/@kardalum/ui/dist/components/truncated-text.d.ts +6 -1
  365. package/node_modules/@kardalum/ui/dist/components/truncated-text.js +5 -4
  366. package/package.json +12 -2
@@ -42,3 +42,16 @@ export type ParsedSampleContentFile = {
42
42
  * would also answer .strict()'s unknown root key, and a misspelt key would
43
43
  * read "must be a JSON object" instead of being named. */
44
44
  export declare function parseSampleContentFile(raw: unknown): ParsedSampleContentFile;
45
+ /** M32 J (J10): a string that is exactly `{{page:<slug>}}` names another page
46
+ * of the same file, declared before or after it, and becomes its id. */
47
+ export declare const SAMPLE_PAGE_TOKEN_PREFIX = "{{page:";
48
+ export declare const SAMPLE_PAGE_TOKEN_SUFFIX = "}}";
49
+ /** M32 J (J10): how deep a page token is read in a node's data (the data itself is depth 0); one
50
+ * deeper is not a token to the check, and the seeder leaves it as written. */
51
+ export declare const SAMPLE_PAGE_TOKEN_DEPTH_MAX = 32;
52
+ /** M32 J (J10): the slug a whole-string page token names, or null. No pattern: a prefix, a suffix, a slice. */
53
+ export declare function readSamplePageToken(value: unknown): string | null;
54
+ /** M32 J (J10): every token's slug in a node's data, in walk order, the walk's depth capped. */
55
+ export declare function samplePageTokens(data: unknown, depth?: number): string[];
56
+ /** M32 J (J10): the top-level fields the seeder leaves out at create and saves in a second version. */
57
+ export declare function sampleDeferredFieldIds(data: Record<string, unknown>): string[];
@@ -95,3 +95,31 @@ export function parseSampleContentFile(raw) {
95
95
  return { ok: true, file: result.data };
96
96
  return { ok: false, errors: result.error.issues.map((issue) => (issue.path.length > 0 ? `${pathText(issue.path)}: ${issue.message}` : issue.message)) };
97
97
  }
98
+ /** M32 J (J10): a string that is exactly `{{page:<slug>}}` names another page
99
+ * of the same file, declared before or after it, and becomes its id. */
100
+ export const SAMPLE_PAGE_TOKEN_PREFIX = "{{page:";
101
+ export const SAMPLE_PAGE_TOKEN_SUFFIX = "}}";
102
+ /** M32 J (J10): how deep a page token is read in a node's data (the data itself is depth 0); one
103
+ * deeper is not a token to the check, and the seeder leaves it as written. */
104
+ export const SAMPLE_PAGE_TOKEN_DEPTH_MAX = 32;
105
+ /** M32 J (J10): the slug a whole-string page token names, or null. No pattern: a prefix, a suffix, a slice. */
106
+ export function readSamplePageToken(value) {
107
+ if (typeof value !== "string" || !value.startsWith(SAMPLE_PAGE_TOKEN_PREFIX) || !value.endsWith(SAMPLE_PAGE_TOKEN_SUFFIX))
108
+ return null;
109
+ const slug = value.slice(SAMPLE_PAGE_TOKEN_PREFIX.length, value.length - SAMPLE_PAGE_TOKEN_SUFFIX.length);
110
+ return slug.length > 0 && !slug.includes("}") && !slug.includes("{") ? slug : null;
111
+ }
112
+ /** M32 J (J10): every token's slug in a node's data, in walk order, the walk's depth capped. */
113
+ export function samplePageTokens(data, depth = 0) {
114
+ const slug = readSamplePageToken(data);
115
+ if (slug !== null)
116
+ return [slug];
117
+ if (depth >= SAMPLE_PAGE_TOKEN_DEPTH_MAX || data === null || typeof data !== "object")
118
+ return [];
119
+ const values = Array.isArray(data) ? data : Object.values(data);
120
+ return values.flatMap((value) => samplePageTokens(value, depth + 1));
121
+ }
122
+ /** M32 J (J10): the top-level fields the seeder leaves out at create and saves in a second version. */
123
+ export function sampleDeferredFieldIds(data) {
124
+ return Object.keys(data).filter((fieldId) => samplePageTokens(data[fieldId]).length > 0);
125
+ }
@@ -11,10 +11,10 @@ export declare const SandboxAttachResponseSchema: z.ZodObject<{
11
11
  version: z.ZodString;
12
12
  outcome: z.ZodEnum<{
13
13
  updated: "updated";
14
+ ready: "ready";
14
15
  installed: "installed";
15
16
  activated: "activated";
16
17
  "already-active": "already-active";
17
- ready: "ready";
18
18
  }>;
19
19
  packagePath: z.ZodString;
20
20
  }, z.core.$strip>;
@@ -47,6 +47,19 @@ export declare const SandboxLocalPluginSchema: z.ZodObject<{
47
47
  actions: z.ZodArray<z.ZodString>;
48
48
  default: z.ZodLiteral<false>;
49
49
  }, z.core.$strict>>;
50
+ offers: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ action: z.ZodString;
52
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
53
+ en: z.ZodString;
54
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
55
+ target: z.ZodEnum<{
56
+ "content.read": "content.read";
57
+ "content.update": "content.update";
58
+ "content.publish": "content.publish";
59
+ "media.read": "media.read";
60
+ }>;
61
+ default: z.ZodBoolean;
62
+ }, z.core.$strict>>>;
50
63
  steps: z.ZodArray<z.ZodObject<{
51
64
  id: z.ZodString;
52
65
  label: z.ZodPreprocess<z.ZodObject<{
@@ -106,12 +119,85 @@ export declare const SandboxLocalPluginSchema: z.ZodObject<{
106
119
  }, z.core.$catchall<z.ZodString>>, unknown>>;
107
120
  }, z.core.$strict>], "kind">>;
108
121
  }, z.core.$strict>>;
122
+ settings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
123
+ type: z.ZodLiteral<"text">;
124
+ default: z.ZodOptional<z.ZodString>;
125
+ maxLength: z.ZodOptional<z.ZodNumber>;
126
+ multiline: z.ZodOptional<z.ZodBoolean>;
127
+ id: z.ZodString;
128
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
129
+ en: z.ZodString;
130
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
131
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
132
+ en: z.ZodString;
133
+ }, z.core.$catchall<z.ZodString>>, unknown>]>>;
134
+ askAtInstall: z.ZodOptional<z.ZodBoolean>;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ type: z.ZodLiteral<"number">;
137
+ default: z.ZodOptional<z.ZodNumber>;
138
+ min: z.ZodOptional<z.ZodNumber>;
139
+ max: z.ZodOptional<z.ZodNumber>;
140
+ integer: z.ZodOptional<z.ZodBoolean>;
141
+ id: z.ZodString;
142
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
143
+ en: z.ZodString;
144
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
145
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
146
+ en: z.ZodString;
147
+ }, z.core.$catchall<z.ZodString>>, unknown>]>>;
148
+ askAtInstall: z.ZodOptional<z.ZodBoolean>;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ type: z.ZodLiteral<"onOff">;
151
+ default: z.ZodOptional<z.ZodBoolean>;
152
+ id: z.ZodString;
153
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
154
+ en: z.ZodString;
155
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
156
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
157
+ en: z.ZodString;
158
+ }, z.core.$catchall<z.ZodString>>, unknown>]>>;
159
+ askAtInstall: z.ZodOptional<z.ZodBoolean>;
160
+ }, z.core.$strict>, z.ZodObject<{
161
+ type: z.ZodLiteral<"choice">;
162
+ default: z.ZodOptional<z.ZodString>;
163
+ choices: z.ZodArray<z.ZodObject<{
164
+ value: z.ZodString;
165
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
166
+ en: z.ZodString;
167
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
168
+ }, z.core.$strict>>;
169
+ id: z.ZodString;
170
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
171
+ en: z.ZodString;
172
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
173
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
174
+ en: z.ZodString;
175
+ }, z.core.$catchall<z.ZodString>>, unknown>]>>;
176
+ askAtInstall: z.ZodOptional<z.ZodBoolean>;
177
+ }, z.core.$strict>, z.ZodObject<{
178
+ type: z.ZodLiteral<"secret">;
179
+ secret: z.ZodString;
180
+ id: z.ZodString;
181
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
182
+ en: z.ZodString;
183
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
184
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
185
+ en: z.ZodString;
186
+ }, z.core.$catchall<z.ZodString>>, unknown>]>>;
187
+ askAtInstall: z.ZodOptional<z.ZodBoolean>;
188
+ }, z.core.$strict>], "type">>>;
109
189
  }, z.core.$strict>;
110
190
  actions: z.ZodArray<z.ZodObject<{
111
191
  id: z.ZodString;
112
192
  label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
113
193
  en: z.ZodString;
114
194
  }, z.core.$catchall<z.ZodString>>, unknown>]>;
195
+ offerTo: z.ZodOptional<z.ZodEnum<{
196
+ "content.read": "content.read";
197
+ "content.update": "content.update";
198
+ "content.publish": "content.publish";
199
+ "media.read": "media.read";
200
+ }>>;
115
201
  }, z.core.$strip>>;
116
202
  }, z.core.$strict>;
117
203
  export declare const SandboxLocalPluginInstallRequestSchema: z.ZodObject<{
@@ -119,7 +205,11 @@ export declare const SandboxLocalPluginInstallRequestSchema: z.ZodObject<{
119
205
  answers: z.ZodObject<{
120
206
  sampleContent: z.ZodOptional<z.ZodBoolean>;
121
207
  roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ grants: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
209
  options: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>, unknown>>;
210
+ settings: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
211
+ secret: z.ZodString;
212
+ }, z.core.$strict>]>>, unknown>>;
123
213
  }, z.core.$strict>;
124
214
  }, z.core.$strict>;
125
215
  export type SandboxLocalPlugin = z.infer<typeof SandboxLocalPluginSchema>;
@@ -20,8 +20,23 @@ export declare const RATE_LIMIT_FLOORS_PER_MINUTE: {
20
20
  * the burst as well as the rate (S359 fix wave): a window under a minute still allows the
21
21
  * per-minute floor in one window, because a cold admin load is many requests in under a second. */
22
22
  export declare function rateLimitFloorMax(floorPerMinute: number, windowSeconds: number): number;
23
- export declare const LIVE_SERVER_SETTING_KEYS: readonly ["previewTokenTtl", "previewBaseUrl", "publicUrl", "mediaMaxSize", "licenseCheckIntervalHours", "licenseStaleWarnDays", "maxAssetBytes", "maxTemplateBytes", "licenseGraceDays", "rateLimitKeyMax", "rateLimitIpMax", "rateLimitWindowSeconds", "rateLimitDocsMax", "rateLimitDocsWindowSeconds", "rateLimitMediaMax", "rateLimitMediaWindowSeconds", "rateLimitRenderMax", "rateLimitRenderWindowSeconds", "rateLimitAdminMax", "rateLimitAdminWindowSeconds"];
23
+ export declare const PROVIDER_SETTING_KEYS: readonly ["formProtectionProvider", "searchProvider", "mediaStore", "mailSender", "formProtectionMinSeconds", "formProtectionSendsPerWindow", "formProtectionWindowSeconds"];
24
+ export type ProviderSettingKey = (typeof PROVIDER_SETTING_KEYS)[number];
25
+ export declare function isProviderSettingKey(key: string): key is ProviderSettingKey;
26
+ /** D3, D17: each key's default: the built-in provider, and the constants F's protection fixed. */
27
+ export declare const PROVIDER_SETTING_DEFAULTS: Readonly<{
28
+ readonly formProtectionProvider: "core";
29
+ readonly searchProvider: "core";
30
+ readonly mediaStore: "core";
31
+ readonly mailSender: "core";
32
+ readonly formProtectionMinSeconds: 3;
33
+ readonly formProtectionSendsPerWindow: 5;
34
+ readonly formProtectionWindowSeconds: 600;
35
+ }>;
36
+ export declare const LIVE_SERVER_SETTING_KEYS: readonly ["previewTokenTtl", "previewBaseUrl", "publicUrl", "mediaMaxSize", "licenseCheckIntervalHours", "licenseStaleWarnDays", "maxAssetBytes", "maxTemplateBytes", "licenseGraceDays", "mcpEnabled", "aiConnectionIdleDays", "rateLimitKeyMax", "rateLimitIpMax", "rateLimitWindowSeconds", "rateLimitDocsMax", "rateLimitDocsWindowSeconds", "rateLimitMediaMax", "rateLimitMediaWindowSeconds", "rateLimitRenderMax", "rateLimitRenderWindowSeconds", "rateLimitAdminMax", "rateLimitAdminWindowSeconds", "formProtectionProvider", "searchProvider", "mediaStore", "mailSender", "formProtectionMinSeconds", "formProtectionSendsPerWindow", "formProtectionWindowSeconds"];
24
37
  export declare const LiveServerSettingKeySchema: z.ZodEnum<{
38
+ mediaStore: "mediaStore";
39
+ publicUrl: "publicUrl";
25
40
  licenseGraceDays: "licenseGraceDays";
26
41
  licenseStaleWarnDays: "licenseStaleWarnDays";
27
42
  rateLimitKeyMax: "rateLimitKeyMax";
@@ -35,13 +50,20 @@ export declare const LiveServerSettingKeySchema: z.ZodEnum<{
35
50
  rateLimitRenderWindowSeconds: "rateLimitRenderWindowSeconds";
36
51
  rateLimitAdminMax: "rateLimitAdminMax";
37
52
  rateLimitAdminWindowSeconds: "rateLimitAdminWindowSeconds";
53
+ formProtectionProvider: "formProtectionProvider";
54
+ searchProvider: "searchProvider";
55
+ mailSender: "mailSender";
56
+ formProtectionMinSeconds: "formProtectionMinSeconds";
57
+ formProtectionSendsPerWindow: "formProtectionSendsPerWindow";
58
+ formProtectionWindowSeconds: "formProtectionWindowSeconds";
38
59
  previewTokenTtl: "previewTokenTtl";
39
60
  previewBaseUrl: "previewBaseUrl";
40
- publicUrl: "publicUrl";
41
61
  mediaMaxSize: "mediaMaxSize";
42
62
  licenseCheckIntervalHours: "licenseCheckIntervalHours";
43
63
  maxAssetBytes: "maxAssetBytes";
44
64
  maxTemplateBytes: "maxTemplateBytes";
65
+ mcpEnabled: "mcpEnabled";
66
+ aiConnectionIdleDays: "aiConnectionIdleDays";
45
67
  }>;
46
68
  export type LiveServerSettingKey = z.infer<typeof LiveServerSettingKeySchema>;
47
69
  export declare const ServerSettingSourceSchema: z.ZodEnum<{
@@ -50,6 +72,21 @@ export declare const ServerSettingSourceSchema: z.ZodEnum<{
50
72
  environment: "environment";
51
73
  }>;
52
74
  export type ServerSettingSource = z.infer<typeof ServerSettingSourceSchema>;
75
+ /** M32 F4 (D17): the bounds of the built-in form protection's three limits, for the schema and the admin's help text. */
76
+ export declare const FORM_PROTECTION_LIMIT_BOUNDS: Readonly<{
77
+ readonly formProtectionMinSeconds: Readonly<{
78
+ min: 1;
79
+ max: 60;
80
+ }>;
81
+ readonly formProtectionSendsPerWindow: Readonly<{
82
+ min: 1;
83
+ max: 100;
84
+ }>;
85
+ readonly formProtectionWindowSeconds: Readonly<{
86
+ min: 60;
87
+ max: 86400;
88
+ }>;
89
+ }>;
53
90
  export declare const LiveServerSettingValueSchemas: {
54
91
  readonly previewTokenTtl: z.ZodNumber;
55
92
  readonly previewBaseUrl: z.ZodPipe<z.ZodString, z.ZodURL>;
@@ -60,6 +97,8 @@ export declare const LiveServerSettingValueSchemas: {
60
97
  readonly maxAssetBytes: z.ZodNumber;
61
98
  readonly maxTemplateBytes: z.ZodNumber;
62
99
  readonly licenseGraceDays: z.ZodNumber;
100
+ readonly mcpEnabled: z.ZodBoolean;
101
+ readonly aiConnectionIdleDays: z.ZodNumber;
63
102
  readonly rateLimitKeyMax: z.ZodNumber;
64
103
  readonly rateLimitIpMax: z.ZodNumber;
65
104
  readonly rateLimitWindowSeconds: z.ZodNumber;
@@ -71,6 +110,13 @@ export declare const LiveServerSettingValueSchemas: {
71
110
  readonly rateLimitRenderWindowSeconds: z.ZodNumber;
72
111
  readonly rateLimitAdminMax: z.ZodNumber;
73
112
  readonly rateLimitAdminWindowSeconds: z.ZodNumber;
113
+ readonly formProtectionProvider: z.ZodString;
114
+ readonly searchProvider: z.ZodString;
115
+ readonly mediaStore: z.ZodString;
116
+ readonly mailSender: z.ZodString;
117
+ readonly formProtectionMinSeconds: z.ZodNumber;
118
+ readonly formProtectionSendsPerWindow: z.ZodNumber;
119
+ readonly formProtectionWindowSeconds: z.ZodNumber;
74
120
  };
75
121
  export interface LiveServerSettingValues {
76
122
  previewTokenTtl: number;
@@ -82,6 +128,8 @@ export interface LiveServerSettingValues {
82
128
  maxAssetBytes: number;
83
129
  maxTemplateBytes: number;
84
130
  licenseGraceDays: number;
131
+ mcpEnabled: boolean;
132
+ aiConnectionIdleDays: number;
85
133
  rateLimitKeyMax: number;
86
134
  rateLimitIpMax: number;
87
135
  rateLimitWindowSeconds: number;
@@ -93,6 +141,13 @@ export interface LiveServerSettingValues {
93
141
  rateLimitRenderWindowSeconds: number;
94
142
  rateLimitAdminMax: number;
95
143
  rateLimitAdminWindowSeconds: number;
144
+ formProtectionProvider: string;
145
+ searchProvider: string;
146
+ mediaStore: string;
147
+ mailSender: string;
148
+ formProtectionMinSeconds: number;
149
+ formProtectionSendsPerWindow: number;
150
+ formProtectionWindowSeconds: number;
96
151
  }
97
152
  /** A key left out is unchanged; null clears the stored value (back to the environment). */
98
153
  export declare const UpdateServerSettingsRequestSchema: z.ZodObject<{
@@ -105,6 +160,8 @@ export declare const UpdateServerSettingsRequestSchema: z.ZodObject<{
105
160
  maxAssetBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
106
161
  maxTemplateBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
162
  licenseGraceDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
163
+ mcpEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
164
+ aiConnectionIdleDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
108
165
  rateLimitKeyMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
109
166
  rateLimitIpMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
167
  rateLimitWindowSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -116,10 +173,19 @@ export declare const UpdateServerSettingsRequestSchema: z.ZodObject<{
116
173
  rateLimitRenderWindowSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
174
  rateLimitAdminMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
118
175
  rateLimitAdminWindowSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
176
+ formProtectionProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ searchProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ mediaStore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
+ mailSender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ formProtectionMinSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
181
+ formProtectionSendsPerWindow: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
182
+ formProtectionWindowSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
119
183
  }, z.core.$strict>;
120
184
  export type UpdateServerSettingsRequest = z.infer<typeof UpdateServerSettingsRequestSchema>;
121
185
  export declare const LiveServerSettingRowSchema: z.ZodObject<{
122
186
  key: z.ZodEnum<{
187
+ mediaStore: "mediaStore";
188
+ publicUrl: "publicUrl";
123
189
  licenseGraceDays: "licenseGraceDays";
124
190
  licenseStaleWarnDays: "licenseStaleWarnDays";
125
191
  rateLimitKeyMax: "rateLimitKeyMax";
@@ -133,23 +199,30 @@ export declare const LiveServerSettingRowSchema: z.ZodObject<{
133
199
  rateLimitRenderWindowSeconds: "rateLimitRenderWindowSeconds";
134
200
  rateLimitAdminMax: "rateLimitAdminMax";
135
201
  rateLimitAdminWindowSeconds: "rateLimitAdminWindowSeconds";
202
+ formProtectionProvider: "formProtectionProvider";
203
+ searchProvider: "searchProvider";
204
+ mailSender: "mailSender";
205
+ formProtectionMinSeconds: "formProtectionMinSeconds";
206
+ formProtectionSendsPerWindow: "formProtectionSendsPerWindow";
207
+ formProtectionWindowSeconds: "formProtectionWindowSeconds";
136
208
  previewTokenTtl: "previewTokenTtl";
137
209
  previewBaseUrl: "previewBaseUrl";
138
- publicUrl: "publicUrl";
139
210
  mediaMaxSize: "mediaMaxSize";
140
211
  licenseCheckIntervalHours: "licenseCheckIntervalHours";
141
212
  maxAssetBytes: "maxAssetBytes";
142
213
  maxTemplateBytes: "maxTemplateBytes";
214
+ mcpEnabled: "mcpEnabled";
215
+ aiConnectionIdleDays: "aiConnectionIdleDays";
143
216
  }>;
144
217
  envName: z.ZodString;
145
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>;
218
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
146
219
  source: z.ZodEnum<{
147
220
  default: "default";
148
221
  stored: "stored";
149
222
  environment: "environment";
150
223
  }>;
151
224
  environment: z.ZodNullable<z.ZodString>;
152
- defaultValue: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>;
225
+ defaultValue: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
153
226
  envLine: z.ZodNullable<z.ZodString>;
154
227
  }, z.core.$strip>;
155
228
  export declare const RestartOnlySettingRowSchema: z.ZodObject<{
@@ -163,6 +236,8 @@ export declare const RestartOnlySettingRowSchema: z.ZodObject<{
163
236
  export declare const ServerSettingsResponseSchema: z.ZodObject<{
164
237
  live: z.ZodArray<z.ZodObject<{
165
238
  key: z.ZodEnum<{
239
+ mediaStore: "mediaStore";
240
+ publicUrl: "publicUrl";
166
241
  licenseGraceDays: "licenseGraceDays";
167
242
  licenseStaleWarnDays: "licenseStaleWarnDays";
168
243
  rateLimitKeyMax: "rateLimitKeyMax";
@@ -176,23 +251,30 @@ export declare const ServerSettingsResponseSchema: z.ZodObject<{
176
251
  rateLimitRenderWindowSeconds: "rateLimitRenderWindowSeconds";
177
252
  rateLimitAdminMax: "rateLimitAdminMax";
178
253
  rateLimitAdminWindowSeconds: "rateLimitAdminWindowSeconds";
254
+ formProtectionProvider: "formProtectionProvider";
255
+ searchProvider: "searchProvider";
256
+ mailSender: "mailSender";
257
+ formProtectionMinSeconds: "formProtectionMinSeconds";
258
+ formProtectionSendsPerWindow: "formProtectionSendsPerWindow";
259
+ formProtectionWindowSeconds: "formProtectionWindowSeconds";
179
260
  previewTokenTtl: "previewTokenTtl";
180
261
  previewBaseUrl: "previewBaseUrl";
181
- publicUrl: "publicUrl";
182
262
  mediaMaxSize: "mediaMaxSize";
183
263
  licenseCheckIntervalHours: "licenseCheckIntervalHours";
184
264
  maxAssetBytes: "maxAssetBytes";
185
265
  maxTemplateBytes: "maxTemplateBytes";
266
+ mcpEnabled: "mcpEnabled";
267
+ aiConnectionIdleDays: "aiConnectionIdleDays";
186
268
  }>;
187
269
  envName: z.ZodString;
188
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>;
270
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
189
271
  source: z.ZodEnum<{
190
272
  default: "default";
191
273
  stored: "stored";
192
274
  environment: "environment";
193
275
  }>;
194
276
  environment: z.ZodNullable<z.ZodString>;
195
- defaultValue: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>;
277
+ defaultValue: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
196
278
  envLine: z.ZodNullable<z.ZodString>;
197
279
  }, z.core.$strip>>;
198
280
  restartOnly: z.ZodArray<z.ZodObject<{
@@ -1,5 +1,8 @@
1
1
  import { z } from "zod";
2
2
  import { strictUrl } from "./strict-url.js";
3
+ import { AiConnectionIdleDaysSchema } from "./ai-connections.schema.js";
4
+ import { FORM_PROTECTION_MAX_PER_WINDOW, FORM_PROTECTION_MIN_SECONDS, FORM_PROTECTION_WINDOW_SECONDS } from "./form-protection.js";
5
+ import { CORE_PROVIDER_KEY, ProviderChoiceSchema } from "./plugin-providers.js";
3
6
  // S358 (S236 spec): the operational settings an administrator may change without a
4
7
  // restart. The list is closed on purpose (S236 spec section 8: never a general env
5
8
  // editor); a key outside it is refused by the strict request schema.
@@ -42,6 +45,31 @@ export function rateLimitFloorMax(floorPerMinute, windowSeconds) {
42
45
  }
43
46
  const RateLimitMaxSchema = z.number().int().min(1).max(RATE_LIMIT_MAX_CEILING);
44
47
  const RateLimitWindowSchema = z.number().int().min(1).max(RATE_LIMIT_WINDOW_CEILING_SECONDS);
48
+ // M32 F4 (D3, D17): which provider serves each kind, and the built-in form protection's limits.
49
+ // All six are session only: a choice decides what code receives every published page, every
50
+ // upload or every form send, and the limits throttle the site's own forms, so a key never sets them.
51
+ export const PROVIDER_SETTING_KEYS = [
52
+ "formProtectionProvider",
53
+ "searchProvider",
54
+ "mediaStore",
55
+ "mailSender",
56
+ "formProtectionMinSeconds",
57
+ "formProtectionSendsPerWindow",
58
+ "formProtectionWindowSeconds",
59
+ ];
60
+ export function isProviderSettingKey(key) {
61
+ return PROVIDER_SETTING_KEYS.includes(key);
62
+ }
63
+ /** D3, D17: each key's default: the built-in provider, and the constants F's protection fixed. */
64
+ export const PROVIDER_SETTING_DEFAULTS = Object.freeze({
65
+ formProtectionProvider: CORE_PROVIDER_KEY,
66
+ searchProvider: CORE_PROVIDER_KEY,
67
+ mediaStore: CORE_PROVIDER_KEY,
68
+ mailSender: CORE_PROVIDER_KEY,
69
+ formProtectionMinSeconds: FORM_PROTECTION_MIN_SECONDS,
70
+ formProtectionSendsPerWindow: FORM_PROTECTION_MAX_PER_WINDOW,
71
+ formProtectionWindowSeconds: FORM_PROTECTION_WINDOW_SECONDS,
72
+ });
45
73
  export const LIVE_SERVER_SETTING_KEYS = [
46
74
  "previewTokenTtl",
47
75
  "previewBaseUrl",
@@ -52,7 +80,13 @@ export const LIVE_SERVER_SETTING_KEYS = [
52
80
  "maxAssetBytes",
53
81
  "maxTemplateBytes",
54
82
  "licenseGraceDays",
83
+ // M31.5 B (D2): the AI address /api/mcp, off by default; the first boolean setting.
84
+ "mcpEnabled",
85
+ // M31.5 C (D5): how many days an AI connection made by signing in may go unused.
86
+ "aiConnectionIdleDays",
55
87
  ...RATE_LIMIT_SETTING_KEYS,
88
+ // M32 F4 (D3, D17): the provider choices and the form protection limits, session only.
89
+ ...PROVIDER_SETTING_KEYS,
56
90
  ];
57
91
  export const LiveServerSettingKeySchema = z.enum(LIVE_SERVER_SETTING_KEYS);
58
92
  export const ServerSettingSourceSchema = z.enum(["stored", "environment", "default"]);
@@ -75,6 +109,12 @@ function isPlainBaseUrl(value) {
75
109
  const BaseUrlSchema = strictUrl({ protocol: /^https?$/, max: 2048, error: BASE_URL_MESSAGE }).refine(isPlainBaseUrl, {
76
110
  message: BASE_URL_MESSAGE,
77
111
  });
112
+ /** M32 F4 (D17): the bounds of the built-in form protection's three limits, for the schema and the admin's help text. */
113
+ export const FORM_PROTECTION_LIMIT_BOUNDS = Object.freeze({
114
+ formProtectionMinSeconds: Object.freeze({ min: 1, max: 60 }),
115
+ formProtectionSendsPerWindow: Object.freeze({ min: 1, max: 100 }),
116
+ formProtectionWindowSeconds: Object.freeze({ min: 60, max: 86_400 }),
117
+ });
78
118
  export const LiveServerSettingValueSchemas = {
79
119
  previewTokenTtl: z.number().int().min(60).max(2_592_000),
80
120
  previewBaseUrl: BaseUrlSchema,
@@ -85,6 +125,8 @@ export const LiveServerSettingValueSchemas = {
85
125
  maxAssetBytes: z.number().int().min(1).max(MAX_ASSET_BYTES_CEILING),
86
126
  maxTemplateBytes: z.number().int().min(1).max(MAX_TEMPLATE_BYTES_CEILING),
87
127
  licenseGraceDays: z.number().int().min(1).max(LICENSE_GRACE_DAYS_MAX),
128
+ mcpEnabled: z.boolean(),
129
+ aiConnectionIdleDays: AiConnectionIdleDaysSchema,
88
130
  rateLimitKeyMax: RateLimitMaxSchema,
89
131
  rateLimitIpMax: RateLimitMaxSchema,
90
132
  rateLimitWindowSeconds: RateLimitWindowSchema,
@@ -96,6 +138,13 @@ export const LiveServerSettingValueSchemas = {
96
138
  rateLimitRenderWindowSeconds: RateLimitWindowSchema,
97
139
  rateLimitAdminMax: RateLimitMaxSchema,
98
140
  rateLimitAdminWindowSeconds: RateLimitWindowSchema,
141
+ formProtectionProvider: ProviderChoiceSchema,
142
+ searchProvider: ProviderChoiceSchema,
143
+ mediaStore: ProviderChoiceSchema,
144
+ mailSender: ProviderChoiceSchema,
145
+ formProtectionMinSeconds: z.number().int().min(FORM_PROTECTION_LIMIT_BOUNDS.formProtectionMinSeconds.min).max(FORM_PROTECTION_LIMIT_BOUNDS.formProtectionMinSeconds.max),
146
+ formProtectionSendsPerWindow: z.number().int().min(FORM_PROTECTION_LIMIT_BOUNDS.formProtectionSendsPerWindow.min).max(FORM_PROTECTION_LIMIT_BOUNDS.formProtectionSendsPerWindow.max),
147
+ formProtectionWindowSeconds: z.number().int().min(FORM_PROTECTION_LIMIT_BOUNDS.formProtectionWindowSeconds.min).max(FORM_PROTECTION_LIMIT_BOUNDS.formProtectionWindowSeconds.max),
99
148
  };
100
149
  /** A key left out is unchanged; null clears the stored value (back to the environment). */
101
150
  export const UpdateServerSettingsRequestSchema = z
@@ -109,6 +158,8 @@ export const UpdateServerSettingsRequestSchema = z
109
158
  maxAssetBytes: LiveServerSettingValueSchemas.maxAssetBytes.nullable().optional(),
110
159
  maxTemplateBytes: LiveServerSettingValueSchemas.maxTemplateBytes.nullable().optional(),
111
160
  licenseGraceDays: LiveServerSettingValueSchemas.licenseGraceDays.nullable().optional(),
161
+ mcpEnabled: LiveServerSettingValueSchemas.mcpEnabled.nullable().optional(),
162
+ aiConnectionIdleDays: LiveServerSettingValueSchemas.aiConnectionIdleDays.nullable().optional(),
112
163
  rateLimitKeyMax: LiveServerSettingValueSchemas.rateLimitKeyMax.nullable().optional(),
113
164
  rateLimitIpMax: LiveServerSettingValueSchemas.rateLimitIpMax.nullable().optional(),
114
165
  rateLimitWindowSeconds: LiveServerSettingValueSchemas.rateLimitWindowSeconds.nullable().optional(),
@@ -120,10 +171,17 @@ export const UpdateServerSettingsRequestSchema = z
120
171
  rateLimitRenderWindowSeconds: LiveServerSettingValueSchemas.rateLimitRenderWindowSeconds.nullable().optional(),
121
172
  rateLimitAdminMax: LiveServerSettingValueSchemas.rateLimitAdminMax.nullable().optional(),
122
173
  rateLimitAdminWindowSeconds: LiveServerSettingValueSchemas.rateLimitAdminWindowSeconds.nullable().optional(),
174
+ formProtectionProvider: LiveServerSettingValueSchemas.formProtectionProvider.nullable().optional(),
175
+ searchProvider: LiveServerSettingValueSchemas.searchProvider.nullable().optional(),
176
+ mediaStore: LiveServerSettingValueSchemas.mediaStore.nullable().optional(),
177
+ mailSender: LiveServerSettingValueSchemas.mailSender.nullable().optional(),
178
+ formProtectionMinSeconds: LiveServerSettingValueSchemas.formProtectionMinSeconds.nullable().optional(),
179
+ formProtectionSendsPerWindow: LiveServerSettingValueSchemas.formProtectionSendsPerWindow.nullable().optional(),
180
+ formProtectionWindowSeconds: LiveServerSettingValueSchemas.formProtectionWindowSeconds.nullable().optional(),
123
181
  })
124
182
  .strict()
125
183
  .refine((change) => Object.keys(change).length > 0, { message: "Name at least one setting to change." });
126
- const SettingValueSchema = z.union([z.number(), z.string(), z.null()]);
184
+ const SettingValueSchema = z.union([z.number(), z.string(), z.boolean(), z.null()]);
127
185
  export const LiveServerSettingRowSchema = z.object({
128
186
  key: LiveServerSettingKeySchema,
129
187
  envName: z.string(),
@@ -8,6 +8,56 @@ export declare const BundledTemplateSchema: z.ZodObject<{
8
8
  sampleContentDescription: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
9
9
  en: z.ZodString;
10
10
  }, z.core.$catchall<z.ZodString>>, unknown>>;
11
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ type: z.ZodEnum<{
14
+ number: "number";
15
+ secret: "secret";
16
+ text: "text";
17
+ choice: "choice";
18
+ onOff: "onOff";
19
+ }>;
20
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
21
+ en: z.ZodString;
22
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
23
+ description: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
24
+ en: z.ZodString;
25
+ }, z.core.$catchall<z.ZodString>>, unknown>]>>;
26
+ askAtInstall: z.ZodBoolean;
27
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
28
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
29
+ set: z.ZodOptional<z.ZodBoolean>;
30
+ stored: z.ZodOptional<z.ZodBoolean>;
31
+ secret: z.ZodOptional<z.ZodString>;
32
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ value: z.ZodString;
34
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
35
+ en: z.ZodString;
36
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
37
+ }, z.core.$strict>>>;
38
+ min: z.ZodOptional<z.ZodNumber>;
39
+ max: z.ZodOptional<z.ZodNumber>;
40
+ integer: z.ZodOptional<z.ZodBoolean>;
41
+ maxLength: z.ZodOptional<z.ZodNumber>;
42
+ multiline: z.ZodOptional<z.ZodBoolean>;
43
+ }, z.core.$strict>>>;
44
+ formReplies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
+ label: z.ZodString;
46
+ description: z.ZodOptional<z.ZodString>;
47
+ }, z.core.$strip>>>;
48
+ offers: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ action: z.ZodString;
50
+ label: z.ZodString;
51
+ target: z.ZodEnum<{
52
+ "content.read": "content.read";
53
+ "content.update": "content.update";
54
+ "content.publish": "content.publish";
55
+ "media.read": "media.read";
56
+ }>;
57
+ default: z.ZodBoolean;
58
+ roles: z.ZodArray<z.ZodString>;
59
+ rolesIfCreated: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ }, z.core.$strip>>>;
11
61
  }, z.core.$strip>;
12
62
  export type BundledTemplate = z.infer<typeof BundledTemplateSchema>;
13
63
  export declare const SetupHandoffFailedStageSchema: z.ZodEnum<{
@@ -27,6 +77,56 @@ export declare const SetupStatusResponseSchema: z.ZodObject<{
27
77
  sampleContentDescription: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
28
78
  en: z.ZodString;
29
79
  }, z.core.$catchall<z.ZodString>>, unknown>>;
80
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
+ id: z.ZodString;
82
+ type: z.ZodEnum<{
83
+ number: "number";
84
+ secret: "secret";
85
+ text: "text";
86
+ choice: "choice";
87
+ onOff: "onOff";
88
+ }>;
89
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
90
+ en: z.ZodString;
91
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
92
+ description: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
93
+ en: z.ZodString;
94
+ }, z.core.$catchall<z.ZodString>>, unknown>]>>;
95
+ askAtInstall: z.ZodBoolean;
96
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
97
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
98
+ set: z.ZodOptional<z.ZodBoolean>;
99
+ stored: z.ZodOptional<z.ZodBoolean>;
100
+ secret: z.ZodOptional<z.ZodString>;
101
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
+ value: z.ZodString;
103
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
104
+ en: z.ZodString;
105
+ }, z.core.$catchall<z.ZodString>>, unknown>]>;
106
+ }, z.core.$strict>>>;
107
+ min: z.ZodOptional<z.ZodNumber>;
108
+ max: z.ZodOptional<z.ZodNumber>;
109
+ integer: z.ZodOptional<z.ZodBoolean>;
110
+ maxLength: z.ZodOptional<z.ZodNumber>;
111
+ multiline: z.ZodOptional<z.ZodBoolean>;
112
+ }, z.core.$strict>>>;
113
+ formReplies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
114
+ label: z.ZodString;
115
+ description: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strip>>>;
117
+ offers: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ action: z.ZodString;
119
+ label: z.ZodString;
120
+ target: z.ZodEnum<{
121
+ "content.read": "content.read";
122
+ "content.update": "content.update";
123
+ "content.publish": "content.publish";
124
+ "media.read": "media.read";
125
+ }>;
126
+ default: z.ZodBoolean;
127
+ roles: z.ZodArray<z.ZodString>;
128
+ rolesIfCreated: z.ZodOptional<z.ZodArray<z.ZodString>>;
129
+ }, z.core.$strip>>>;
30
130
  }, z.core.$strip>>;
31
131
  databaseConfigured: z.ZodBoolean;
32
132
  handoffFailed: z.ZodOptional<z.ZodEnum<{
@@ -41,8 +141,13 @@ export declare const SetupStarterSelectionSchema: z.ZodObject<{
41
141
  answers: z.ZodOptional<z.ZodObject<{
42
142
  sampleContent: z.ZodOptional<z.ZodBoolean>;
43
143
  roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ grants: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
145
  options: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>, unknown>>;
146
+ settings: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
147
+ secret: z.ZodString;
148
+ }, z.core.$strict>]>>, unknown>>;
45
149
  }, z.core.$strict>>;
150
+ formReplies: z.ZodOptional<z.ZodBoolean>;
46
151
  }, z.core.$strict>;
47
152
  export type SetupStarterSelection = z.infer<typeof SetupStarterSelectionSchema>;
48
153
  export declare const SetupCompleteRequestSchema: z.ZodObject<{
@@ -74,8 +179,13 @@ export declare const SetupCompleteRequestSchema: z.ZodObject<{
74
179
  answers: z.ZodOptional<z.ZodObject<{
75
180
  sampleContent: z.ZodOptional<z.ZodBoolean>;
76
181
  roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ grants: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
183
  options: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>, unknown>>;
184
+ settings: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
185
+ secret: z.ZodString;
186
+ }, z.core.$strict>]>>, unknown>>;
78
187
  }, z.core.$strict>>;
188
+ formReplies: z.ZodOptional<z.ZodBoolean>;
79
189
  }, z.core.$strict>>;
80
190
  }, z.core.$strip>;
81
191
  export type SetupCompleteRequest = z.infer<typeof SetupCompleteRequestSchema>;