@kardalum/plugin-sdk 0.0.0-stage → 0.16.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 (332) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/LICENSE +202 -0
  3. package/README.md +80 -2
  4. package/dist/admin-section-registry.d.ts +34 -0
  5. package/dist/admin-section-registry.js +49 -0
  6. package/dist/built-in-serializers.d.ts +3 -0
  7. package/dist/built-in-serializers.js +18 -0
  8. package/dist/built-in-settings-schemas.d.ts +14 -0
  9. package/dist/built-in-settings-schemas.js +225 -0
  10. package/dist/built-in-value-schemas.d.ts +4 -0
  11. package/dist/built-in-value-schemas.js +47 -0
  12. package/dist/built-ins.d.ts +1 -0
  13. package/dist/built-ins.js +257 -0
  14. package/dist/capabilities.d.ts +29 -0
  15. package/dist/capabilities.js +67 -0
  16. package/dist/data-type-plugin.d.ts +28 -0
  17. package/dist/data-type-plugin.js +1 -0
  18. package/dist/datatype-validation.d.ts +26 -0
  19. package/dist/datatype-validation.js +110 -0
  20. package/dist/datatypes-entry.d.ts +4 -0
  21. package/dist/datatypes-entry.js +18 -0
  22. package/dist/define-plugin.d.ts +25 -0
  23. package/dist/define-plugin.js +51 -0
  24. package/dist/entitlement-entry.d.ts +5 -0
  25. package/dist/entitlement-entry.js +24 -0
  26. package/dist/entitlement-gate.d.ts +36 -0
  27. package/dist/entitlement-gate.js +201 -0
  28. package/dist/entitlement-types.d.ts +39 -0
  29. package/dist/entitlement-types.js +1 -0
  30. package/dist/entitlement.d.ts +57 -0
  31. package/dist/entitlement.js +170 -0
  32. package/dist/host-entry.d.ts +1 -0
  33. package/dist/host-entry.js +11 -0
  34. package/dist/icon-name.d.ts +1 -0
  35. package/dist/icon-name.js +1 -0
  36. package/dist/icons.d.ts +2 -0
  37. package/dist/icons.js +10 -0
  38. package/dist/index.d.ts +28 -0
  39. package/dist/index.js +94 -0
  40. package/dist/license-verdict-keys.d.ts +18 -0
  41. package/dist/license-verdict-keys.js +26 -0
  42. package/dist/local-host.d.ts +3 -0
  43. package/dist/local-host.js +38 -0
  44. package/dist/manifest-entry.d.ts +8 -0
  45. package/dist/manifest-entry.js +13 -0
  46. package/dist/manifest-schema.d.ts +476 -0
  47. package/dist/manifest-schema.js +823 -0
  48. package/dist/manifest.d.ts +611 -0
  49. package/dist/manifest.js +86 -0
  50. package/dist/media/media-picker.d.ts +39 -0
  51. package/dist/media/media-picker.js +447 -0
  52. package/dist/media/upload-error.d.ts +12 -0
  53. package/dist/media/upload-error.js +30 -0
  54. package/dist/plugin-context.d.ts +82 -0
  55. package/dist/plugin-context.js +77 -0
  56. package/dist/plugin-screen-context.d.ts +71 -0
  57. package/dist/plugin-screen-context.js +41 -0
  58. package/dist/read-all-pages.d.ts +23 -0
  59. package/dist/read-all-pages.js +30 -0
  60. package/dist/register-built-ins.d.ts +1 -0
  61. package/dist/register-built-ins.js +41 -0
  62. package/dist/registry.d.ts +4 -0
  63. package/dist/registry.js +17 -0
  64. package/dist/rendition-eligibility.d.ts +24 -0
  65. package/dist/rendition-eligibility.js +40 -0
  66. package/dist/richtext/block-panel.d.ts +27 -0
  67. package/dist/richtext/block-panel.js +232 -0
  68. package/dist/richtext/extensions.d.ts +19 -0
  69. package/dist/richtext/extensions.js +56 -0
  70. package/dist/richtext/insert-menu.d.ts +24 -0
  71. package/dist/richtext/insert-menu.js +142 -0
  72. package/dist/richtext/kardalum-block.d.ts +33 -0
  73. package/dist/richtext/kardalum-block.js +282 -0
  74. package/dist/richtext/style-listbox.d.ts +10 -0
  75. package/dist/richtext/style-listbox.js +69 -0
  76. package/dist/richtext/text-style-class.d.ts +18 -0
  77. package/dist/richtext/text-style-class.js +36 -0
  78. package/dist/simple-storage-value-provider.d.ts +9 -0
  79. package/dist/simple-storage-value-provider.js +96 -0
  80. package/dist/structured-storage-types.d.ts +61 -0
  81. package/dist/structured-storage-types.js +11 -0
  82. package/dist/tailwind.d.ts +1 -0
  83. package/dist/tailwind.js +5 -0
  84. package/dist/tokens/system-dark.css +75 -0
  85. package/dist/tokens/tokens.css +239 -0
  86. package/dist/tokens/tokens.json +212 -0
  87. package/dist/tokens.d.ts +1 -0
  88. package/dist/tokens.js +11 -0
  89. package/dist/ui-entry.d.ts +5 -0
  90. package/dist/ui-entry.js +42 -0
  91. package/dist/views/content-list-preview.d.ts +1 -0
  92. package/dist/views/content-list-preview.js +14 -0
  93. package/dist/views/content-list-settings-view.d.ts +1 -0
  94. package/dist/views/content-list-settings-view.js +97 -0
  95. package/dist/views/content-list-view.d.ts +19 -0
  96. package/dist/views/content-list-view.js +248 -0
  97. package/dist/views/crop-view.d.ts +55 -0
  98. package/dist/views/crop-view.js +161 -0
  99. package/dist/views/date-range-view.d.ts +6 -0
  100. package/dist/views/date-range-view.js +55 -0
  101. package/dist/views/file-upload-view.d.ts +43 -0
  102. package/dist/views/file-upload-view.js +104 -0
  103. package/dist/views/html-code-editor.d.ts +10 -0
  104. package/dist/views/html-code-editor.js +101 -0
  105. package/dist/views/html-view.d.ts +3 -0
  106. package/dist/views/html-view.js +53 -0
  107. package/dist/views/image-view.d.ts +3 -0
  108. package/dist/views/image-view.js +372 -0
  109. package/dist/views/rich-text-view.d.ts +2 -0
  110. package/dist/views/rich-text-view.js +429 -0
  111. package/node_modules/@kardalum/api-schemas/LICENSE +202 -0
  112. package/node_modules/@kardalum/api-schemas/README.md +56 -0
  113. package/node_modules/@kardalum/api-schemas/dist/action.schema.d.ts +30 -0
  114. package/node_modules/@kardalum/api-schemas/dist/action.schema.js +88 -0
  115. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.d.ts +17 -0
  116. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +25 -0
  117. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +93 -0
  118. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +88 -0
  119. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +89 -0
  120. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +60 -0
  121. package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +24 -0
  122. package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +47 -0
  123. package/node_modules/@kardalum/api-schemas/dist/auth.schema.d.ts +38 -0
  124. package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +38 -0
  125. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +542 -0
  126. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +357 -0
  127. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +158 -0
  128. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +139 -0
  129. package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +125 -0
  130. package/node_modules/@kardalum/api-schemas/dist/content-path.js +260 -0
  131. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +20 -0
  132. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +23 -0
  133. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.d.ts +152 -0
  134. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +82 -0
  135. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.d.ts +18 -0
  136. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.js +22 -0
  137. package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +17 -0
  138. package/node_modules/@kardalum/api-schemas/dist/content.schema.js +20 -0
  139. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +352 -0
  140. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +133 -0
  141. package/node_modules/@kardalum/api-schemas/dist/culture-direction.d.ts +1 -0
  142. package/node_modules/@kardalum/api-schemas/dist/culture-direction.js +9 -0
  143. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +37 -0
  144. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +32 -0
  145. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +9 -0
  146. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +32 -0
  147. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +298 -0
  148. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +138 -0
  149. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +121 -0
  150. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +147 -0
  151. package/node_modules/@kardalum/api-schemas/dist/health.schema.d.ts +6 -0
  152. package/node_modules/@kardalum/api-schemas/dist/health.schema.js +5 -0
  153. package/node_modules/@kardalum/api-schemas/dist/html-entities.d.ts +4 -0
  154. package/node_modules/@kardalum/api-schemas/dist/html-entities.js +250 -0
  155. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +113 -0
  156. package/node_modules/@kardalum/api-schemas/dist/index.js +64 -0
  157. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +15 -0
  158. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +14 -0
  159. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +73 -0
  160. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +104 -0
  161. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +682 -0
  162. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +269 -0
  163. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +177 -0
  164. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +222 -0
  165. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +77 -0
  166. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.js +53 -0
  167. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +75 -0
  168. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +117 -0
  169. package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +27 -0
  170. package/node_modules/@kardalum/api-schemas/dist/media-reference.js +279 -0
  171. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.d.ts +74 -0
  172. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.js +157 -0
  173. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +80 -0
  174. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +156 -0
  175. package/node_modules/@kardalum/api-schemas/dist/nav.schema.d.ts +23 -0
  176. package/node_modules/@kardalum/api-schemas/dist/nav.schema.js +55 -0
  177. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +846 -0
  178. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +356 -0
  179. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +20 -0
  180. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +27 -0
  181. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +249 -0
  182. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +84 -0
  183. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.d.ts +65 -0
  184. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +889 -0
  185. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +172 -0
  186. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +196 -0
  187. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +31 -0
  188. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +38 -0
  189. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +69 -0
  190. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +59 -0
  191. package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +585 -0
  192. package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +536 -0
  193. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +75 -0
  194. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +213 -0
  195. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +391 -0
  196. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +413 -0
  197. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +29 -0
  198. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +100 -0
  199. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +44 -0
  200. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +162 -0
  201. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +31 -0
  202. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +25 -0
  203. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +15 -0
  204. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +24 -0
  205. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +314 -0
  206. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +338 -0
  207. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +79 -0
  208. package/node_modules/@kardalum/api-schemas/dist/render-editing.js +50 -0
  209. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.d.ts +9 -0
  210. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +13 -0
  211. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.d.ts +2 -0
  212. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.js +16 -0
  213. package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +96 -0
  214. package/node_modules/@kardalum/api-schemas/dist/role.schema.js +75 -0
  215. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.d.ts +17 -0
  216. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.js +27 -0
  217. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +35 -0
  218. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +79 -0
  219. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +138 -0
  220. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +105 -0
  221. package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +243 -0
  222. package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +296 -0
  223. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +47 -0
  224. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +27 -0
  225. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +30 -0
  226. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +19 -0
  227. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +112 -0
  228. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +74 -0
  229. package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +41 -0
  230. package/node_modules/@kardalum/api-schemas/dist/template.schema.js +39 -0
  231. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +21 -0
  232. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +14 -0
  233. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +97 -0
  234. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +73 -0
  235. package/node_modules/@kardalum/api-schemas/package.json +35 -0
  236. package/node_modules/@kardalum/design-tokens/LICENSE +202 -0
  237. package/node_modules/@kardalum/design-tokens/README.md +29 -0
  238. package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +32 -0
  239. package/node_modules/@kardalum/design-tokens/dist/build-css.js +88 -0
  240. package/node_modules/@kardalum/design-tokens/dist/generate.d.ts +1 -0
  241. package/node_modules/@kardalum/design-tokens/dist/generate.js +18 -0
  242. package/node_modules/@kardalum/design-tokens/dist/index.d.ts +6 -0
  243. package/node_modules/@kardalum/design-tokens/dist/index.js +4 -0
  244. package/node_modules/@kardalum/design-tokens/dist/system-dark.css +75 -0
  245. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +33 -0
  246. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +54 -0
  247. package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +12 -0
  248. package/node_modules/@kardalum/design-tokens/dist/theme-css.js +42 -0
  249. package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +43 -0
  250. package/node_modules/@kardalum/design-tokens/dist/theme-types.js +1 -0
  251. package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +13 -0
  252. package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +120 -0
  253. package/node_modules/@kardalum/design-tokens/dist/themes/index.d.ts +5 -0
  254. package/node_modules/@kardalum/design-tokens/dist/themes/index.js +4 -0
  255. package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +9 -0
  256. package/node_modules/@kardalum/design-tokens/dist/themes/light.js +13 -0
  257. package/node_modules/@kardalum/design-tokens/dist/tokens.css +239 -0
  258. package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +25 -0
  259. package/node_modules/@kardalum/design-tokens/dist/tokens.js +276 -0
  260. package/node_modules/@kardalum/design-tokens/dist/tokens.json +212 -0
  261. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +91 -0
  262. package/node_modules/@kardalum/design-tokens/dist/types.js +5 -0
  263. package/node_modules/@kardalum/design-tokens/package.json +42 -0
  264. package/node_modules/@kardalum/plugin-package/LICENSE +202 -0
  265. package/node_modules/@kardalum/plugin-package/README.md +71 -0
  266. package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +111 -0
  267. package/node_modules/@kardalum/plugin-package/dist/build-reference.js +61 -0
  268. package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +103 -0
  269. package/node_modules/@kardalum/plugin-package/dist/capabilities.js +351 -0
  270. package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +50 -0
  271. package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +659 -0
  272. package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +19 -0
  273. package/node_modules/@kardalum/plugin-package/dist/envelope.js +104 -0
  274. package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +37 -0
  275. package/node_modules/@kardalum/plugin-package/dist/extract.js +199 -0
  276. package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +17 -0
  277. package/node_modules/@kardalum/plugin-package/dist/hash.js +69 -0
  278. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +13 -0
  279. package/node_modules/@kardalum/plugin-package/dist/index.js +8 -0
  280. package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +185 -0
  281. package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +236 -0
  282. package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +50 -0
  283. package/node_modules/@kardalum/plugin-package/dist/package-contract.js +115 -0
  284. package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +2 -0
  285. package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +6 -0
  286. package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +20 -0
  287. package/node_modules/@kardalum/plugin-package/dist/sample-content.js +57 -0
  288. package/node_modules/@kardalum/plugin-package/dist/types.d.ts +43 -0
  289. package/node_modules/@kardalum/plugin-package/dist/types.js +15 -0
  290. package/node_modules/@kardalum/plugin-package/package.json +54 -0
  291. package/node_modules/@kardalum/ui/LICENSE +202 -0
  292. package/node_modules/@kardalum/ui/README.md +35 -0
  293. package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +14 -0
  294. package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +38 -0
  295. package/node_modules/@kardalum/ui/dist/components/badge.d.ts +9 -0
  296. package/node_modules/@kardalum/ui/dist/components/badge.js +30 -0
  297. package/node_modules/@kardalum/ui/dist/components/button.d.ts +11 -0
  298. package/node_modules/@kardalum/ui/dist/components/button.js +37 -0
  299. package/node_modules/@kardalum/ui/dist/components/checkbox.d.ts +5 -0
  300. package/node_modules/@kardalum/ui/dist/components/checkbox.js +7 -0
  301. package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +17 -0
  302. package/node_modules/@kardalum/ui/dist/components/dialog.js +48 -0
  303. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +18 -0
  304. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +53 -0
  305. package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +30 -0
  306. package/node_modules/@kardalum/ui/dist/components/empty-state.js +9 -0
  307. package/node_modules/@kardalum/ui/dist/components/input.d.ts +4 -0
  308. package/node_modules/@kardalum/ui/dist/components/input.js +6 -0
  309. package/node_modules/@kardalum/ui/dist/components/panel.d.ts +5 -0
  310. package/node_modules/@kardalum/ui/dist/components/panel.js +6 -0
  311. package/node_modules/@kardalum/ui/dist/components/property-field.d.ts +19 -0
  312. package/node_modules/@kardalum/ui/dist/components/property-field.js +89 -0
  313. package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +17 -0
  314. package/node_modules/@kardalum/ui/dist/components/sheet.js +55 -0
  315. package/node_modules/@kardalum/ui/dist/components/skeleton.d.ts +3 -0
  316. package/node_modules/@kardalum/ui/dist/components/skeleton.js +9 -0
  317. package/node_modules/@kardalum/ui/dist/components/switch.d.ts +5 -0
  318. package/node_modules/@kardalum/ui/dist/components/switch.js +7 -0
  319. package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +34 -0
  320. package/node_modules/@kardalum/ui/dist/components/tab-strip.js +72 -0
  321. package/node_modules/@kardalum/ui/dist/components/toast.d.ts +18 -0
  322. package/node_modules/@kardalum/ui/dist/components/toast.js +42 -0
  323. package/node_modules/@kardalum/ui/dist/components/toaster.d.ts +12 -0
  324. package/node_modules/@kardalum/ui/dist/components/toaster.js +11 -0
  325. package/node_modules/@kardalum/ui/dist/components/use-toast.d.ts +17 -0
  326. package/node_modules/@kardalum/ui/dist/components/use-toast.js +62 -0
  327. package/node_modules/@kardalum/ui/dist/index.d.ts +18 -0
  328. package/node_modules/@kardalum/ui/dist/index.js +18 -0
  329. package/node_modules/@kardalum/ui/dist/lib/cn.d.ts +2 -0
  330. package/node_modules/@kardalum/ui/dist/lib/cn.js +5 -0
  331. package/node_modules/@kardalum/ui/package.json +63 -0
  332. package/package.json +146 -4
@@ -0,0 +1,356 @@
1
+ import { z } from "zod";
2
+ import { ApiErrorSchema } from "./api-error.schema.js";
3
+ // S275, the restriction model: the shared vocabulary for per-node content
4
+ // access. A node can be marked "restricted" for an action, with grants to
5
+ // roles or users, inherited down the content tree; "open" reopens a subtree.
6
+ // The database adapter, the decision function and the routes all import these
7
+ // names, so none of them can drift. Spec:
8
+ // 2026-10-05-s275-the-restriction-model-design.md.
9
+ /** The five actions a node can be restricted for. Each is also a core action
10
+ * (the test pins that), so the vocabulary cannot drift from the roles. */
11
+ export const RESTRICTABLE_ACTIONS = [
12
+ "content.read",
13
+ "content.create",
14
+ "content.update",
15
+ "content.publish",
16
+ "content.delete",
17
+ ];
18
+ const RESTRICTABLE_SET = new Set(RESTRICTABLE_ACTIONS);
19
+ export function isRestrictableAction(action) {
20
+ return RESTRICTABLE_SET.has(action);
21
+ }
22
+ /** Bounds, so a decision never walks or loads an unbounded set. */
23
+ export const MAX_RESTRICTED_NODES = 1000;
24
+ /** The same count with the trash: how many nodes, live or trashed, may carry
25
+ * an entry. The entries of trashed nodes restrict nothing a user can reach
26
+ * and are not counted by MAX_RESTRICTED_NODES, but every content request
27
+ * still loads them, so this is the constant that bounds that load: 1,250
28
+ * nodes of five actions each keeps the worst load of one request under the
29
+ * 200 ms the node access bench stops at (apps/server/perf/node-access-bound.ts). */
30
+ export const MAX_RESTRICTED_NODES_WITH_TRASH = 1250;
31
+ export const MAX_GRANTS_PER_ENTRY = 50;
32
+ /** The longest role id or user id a grant can name. */
33
+ export const NODE_ACCESS_SUBJECT_ID_MAX = 191;
34
+ export const NodeAccessModeSchema = z.enum(["restricted", "open"]);
35
+ export const NodeAccessSubjectKindSchema = z.enum(["role", "user"]);
36
+ export const NodeAccessGrantSchema = z.object({
37
+ subjectKind: NodeAccessSubjectKindSchema,
38
+ subjectId: z.string().min(1).max(NODE_ACCESS_SUBJECT_ID_MAX),
39
+ });
40
+ /** One node's entry for one action. An open entry never has grants. */
41
+ export const NodeAccessEntrySchema = z
42
+ .object({
43
+ action: z.enum(RESTRICTABLE_ACTIONS),
44
+ mode: NodeAccessModeSchema,
45
+ grants: z.array(NodeAccessGrantSchema).max(MAX_GRANTS_PER_ENTRY),
46
+ })
47
+ .refine((entry) => entry.mode !== "open" || entry.grants.length === 0, {
48
+ message: "An open entry has no grants",
49
+ path: ["grants"],
50
+ })
51
+ .refine((entry) => new Set(entry.grants.map((g) => `${g.subjectKind}:${g.subjectId}`)).size === entry.grants.length, { message: "A subject is granted once per entry", path: ["grants"] });
52
+ export const NodeAccessReasonSchema = z.enum([
53
+ "admin",
54
+ "role-lacks-action",
55
+ "unrestricted",
56
+ "reopened",
57
+ "granted",
58
+ "not-granted",
59
+ ]);
60
+ export const NodeAccessDecisionSchema = z.object({
61
+ allowed: z.boolean(),
62
+ reason: NodeAccessReasonSchema,
63
+ decidedAt: z.object({ nodeId: z.string(), path: z.string() }).optional(),
64
+ via: NodeAccessGrantSchema.optional(),
65
+ });
66
+ // S276, what a content response carries: the node decision for each
67
+ // restrictable action, and the body of a refusal a node decision caused.
68
+ export const NODE_ACCESS_REFUSED_MESSAGE = "You do not have access to this content";
69
+ // S278b: who decided, said so that a screen can word it without a second
70
+ // request, and naming only what the subject may read. Spec:
71
+ // 2026-10-08-s278b-the-admin-shows-the-rules-design.md.
72
+ /** A grant of a deciding entry as a sentence names it: the role label (the id
73
+ * when the role is gone), or the user's display name. A user's email is never
74
+ * sent here: a user with no name, or one that is gone, has a null label, and
75
+ * a screen says "a user". */
76
+ export const DecidingEntryGrantSchema = z.object({
77
+ subjectKind: NodeAccessSubjectKindSchema,
78
+ subjectId: z.string(),
79
+ label: z.string().nullable(),
80
+ });
81
+ /** The entry that decided, or that a node inherits: the node it is on, its
82
+ * mode and its grants, labelled. `path` and `name` are null when the subject
83
+ * may not read that node (A2, D6): its id is all that is said of it. */
84
+ export const DecidingEntrySchema = z.object({
85
+ nodeId: z.string(),
86
+ path: z.string().nullable(),
87
+ name: z.string().nullable(),
88
+ mode: NodeAccessModeSchema,
89
+ grants: z.array(DecidingEntryGrantSchema),
90
+ });
91
+ /** Why one action is refused on a row: a restriction that does not name the
92
+ * subject (`decidedAt` is its entry), or a role that lacks the action
93
+ * (`decidedAt` is null: no node decided it). */
94
+ export const NodeAccessDenialSchema = z.object({
95
+ reason: z.enum(["not-granted", "role-lacks-action"]),
96
+ decidedAt: DecidingEntrySchema.nullable(),
97
+ });
98
+ /** The node decision for each restrictable action, for the subject making the
99
+ * request. `create` is creating a child under the node. `denied` has one key
100
+ * per false flag, saying why; an action that is allowed has no key. */
101
+ export const NodeAccessFlagsSchema = z.object({
102
+ read: z.boolean(),
103
+ create: z.boolean(),
104
+ update: z.boolean(),
105
+ publish: z.boolean(),
106
+ delete: z.boolean(),
107
+ denied: z.partialRecord(z.enum(RESTRICTABLE_ACTIONS), NodeAccessDenialSchema),
108
+ });
109
+ /** The decision a refusal body carries: its reason, and where it was decided
110
+ * as a labelled entry (null when no node decided it, which is a role that
111
+ * lacks the action). */
112
+ export const NodeAccessRefusalDecisionSchema = z.object({
113
+ allowed: z.boolean(),
114
+ reason: NodeAccessReasonSchema,
115
+ decidedAt: DecidingEntrySchema.nullable(),
116
+ });
117
+ /** The body of a 403 that a node decision caused. `action` is the one that was refused. */
118
+ export const NodeAccessRefusalSchema = z.object({
119
+ message: z.string(),
120
+ action: z.enum(RESTRICTABLE_ACTIONS),
121
+ access: NodeAccessRefusalDecisionSchema,
122
+ });
123
+ /** A content route's 403: a node refusal, or the role gate's plain error. The
124
+ * refusal is listed first so it is the one a body with `access` serialises as
125
+ * (a plain object schema would strip `access`). */
126
+ export const ContentForbiddenSchema = z.union([NodeAccessRefusalSchema, ApiErrorSchema]);
127
+ /** Every flag true and nothing denied: what the admin role gets, and what a
128
+ * row has when nothing is restricted. */
129
+ export const ALL_NODE_ACCESS = Object.freeze({
130
+ read: true,
131
+ create: true,
132
+ update: true,
133
+ publish: true,
134
+ delete: true,
135
+ denied: Object.freeze({}),
136
+ });
137
+ /** The flag key for a restrictable action: "content.read" gives "read". */
138
+ export function nodeAccessFlagKey(action) {
139
+ return action.slice(action.lastIndexOf(".") + 1);
140
+ }
141
+ // S278, the permissions tab: what a node has and inherits for each action,
142
+ // the one save that replaces all five, its refusals, and the search for the
143
+ // roles and users a restriction can name. Spec:
144
+ // 2026-10-07-s278-the-permissions-tab-design.md.
145
+ /** A grant as the tab shows it: who it names, and whether that role or user still exists. */
146
+ export const PermissionGrantViewSchema = z.object({
147
+ subjectKind: NodeAccessSubjectKindSchema,
148
+ subjectId: z.string(),
149
+ /** The role label, or the user name; the id when the subject is gone. */
150
+ label: z.string(),
151
+ /** The email of a user; null for a role, and for a subject that is gone. */
152
+ detail: z.string().nullable(),
153
+ exists: z.boolean(),
154
+ });
155
+ /** One action of one node: its own entry, and what it inherits. */
156
+ export const NodePermissionRowSchema = z.object({
157
+ action: z.enum(RESTRICTABLE_ACTIONS),
158
+ own: z
159
+ .object({
160
+ mode: NodeAccessModeSchema,
161
+ grants: z.array(PermissionGrantViewSchema),
162
+ /** True for an "open again" entry that opens nothing any more: no entry
163
+ * above restricts the action now (`inherited` is null). It has no
164
+ * effect, a save keeps it when it is sent back unchanged, and the
165
+ * screen offers to clear it. Always false for a restricted entry. */
166
+ stale: z.boolean(),
167
+ })
168
+ .nullable(),
169
+ /** The nearest entry strictly above when it restricts; null when there is
170
+ * none, or when the nearest above opens the action again. */
171
+ inherited: z
172
+ .object({
173
+ nodeId: z.string(),
174
+ path: z.string(),
175
+ name: z.string(),
176
+ grants: z.array(PermissionGrantViewSchema),
177
+ })
178
+ .nullable(),
179
+ /** True when the asker may not change this row: a restriction on this
180
+ * action, here or above, refuses them (the decision's `not-granted`), so a
181
+ * save that changes the row is refused with `row-locked`. Never true for
182
+ * the admin role, nor for an asker whose role lacks the action (a grant
183
+ * only narrows, so there is nothing they could give themselves). */
184
+ locked: z.boolean(),
185
+ });
186
+ /** The five rows, in the order of RESTRICTABLE_ACTIONS. */
187
+ export const NodePermissionsResponseSchema = z.object({
188
+ nodeId: z.string(),
189
+ rows: z.array(NodePermissionRowSchema).length(RESTRICTABLE_ACTIONS.length),
190
+ });
191
+ /** One action as the tab saves it: null for no entry on this node. */
192
+ export const NodePermissionInputSchema = z.object({
193
+ action: z.enum(RESTRICTABLE_ACTIONS),
194
+ entry: z
195
+ .object({ mode: NodeAccessModeSchema, grants: z.array(NodeAccessGrantSchema).max(MAX_GRANTS_PER_ENTRY) })
196
+ .nullable(),
197
+ });
198
+ /** The whole save: each of the five actions exactly once, in any order. */
199
+ export const SaveNodePermissionsRequestSchema = z
200
+ .object({ rows: z.array(NodePermissionInputSchema).length(RESTRICTABLE_ACTIONS.length) })
201
+ .superRefine((body, ctx) => {
202
+ if (new Set(body.rows.map((row) => row.action)).size !== body.rows.length) {
203
+ ctx.addIssue({ code: "custom", message: "Each of the five actions is given exactly once", path: ["rows"] });
204
+ }
205
+ body.rows.forEach((row, i) => {
206
+ if (row.entry === null)
207
+ return;
208
+ if (row.entry.mode === "open" && row.entry.grants.length > 0) {
209
+ ctx.addIssue({ code: "custom", message: "An open entry has no grants", path: ["rows", i, "entry", "grants"] });
210
+ }
211
+ const named = new Set(row.entry.grants.map((g) => `${g.subjectKind}:${g.subjectId}`));
212
+ if (named.size !== row.entry.grants.length) {
213
+ ctx.addIssue({ code: "custom", message: "A subject is granted once per entry", path: ["rows", i, "entry", "grants"] });
214
+ }
215
+ });
216
+ });
217
+ /** The body of a save the server refused. `action` is the row at fault, when
218
+ * one is. `reason` is what a screen words the refusal by in its own
219
+ * language; `message` is the same in English, for a reader without one.
220
+ * `limit` is the limit of live pages with restrictions, `limit-with-trash`
221
+ * the one that counts the trash too: what frees a place differs. */
222
+ export const NodePermissionsRefusalSchema = z.object({
223
+ message: z.string(),
224
+ reason: z.enum(["unknown-subject", "nothing-to-reopen", "limit", "limit-with-trash", "self-lockout", "row-locked"]),
225
+ action: z.enum(RESTRICTABLE_ACTIONS).nullable(),
226
+ });
227
+ /** A role or a user a restriction can name. */
228
+ export const PermissionSubjectSchema = z.object({
229
+ subjectKind: NodeAccessSubjectKindSchema,
230
+ subjectId: z.string(),
231
+ label: z.string(),
232
+ detail: z.string().nullable(),
233
+ });
234
+ export const PermissionSubjectsResponseSchema = z.object({
235
+ items: z.array(PermissionSubjectSchema),
236
+ nextCursor: z.string().nullable(),
237
+ });
238
+ /** The longest search text the subjects route takes. */
239
+ export const PERMISSION_SUBJECT_QUERY_MAX = 100;
240
+ /** The longest cursor the subjects route takes: a marker for the stretch, a colon, then a role id or a user id. */
241
+ export const PERMISSION_SUBJECT_CURSOR_MAX = 200;
242
+ export const PermissionSubjectsQuerySchema = z.object({
243
+ q: z.string().max(PERMISSION_SUBJECT_QUERY_MAX).optional(),
244
+ cursor: z.string().min(1).max(PERMISSION_SUBJECT_CURSOR_MAX).optional(),
245
+ limit: z.coerce.number().int().min(1).max(50).default(20),
246
+ });
247
+ // S278b Task 2: what a move would change in what a page inherits (D10), and
248
+ // the clear of every restriction on a trashed page and the trashed pages
249
+ // under it (D8).
250
+ /** The destination of a move whose impact is asked: a parent id, or empty or absent for the top level. */
251
+ export const MoveImpactQuerySchema = z.object({
252
+ targetParentId: z.union([z.literal(""), z.string().uuid()]).optional(),
253
+ });
254
+ /** Per action, the entry the page inherits where it is (`now`) and the one it
255
+ * would inherit under the destination (`after`), each null when no entry is
256
+ * above. Only the actions where they differ are listed; an empty list means
257
+ * the move changes nothing the page inherits. The page's own entries travel
258
+ * with it and are not compared. */
259
+ export const MoveImpactResponseSchema = z.object({
260
+ changes: z.array(z.object({
261
+ action: z.enum(RESTRICTABLE_ACTIONS),
262
+ now: DecidingEntrySchema.nullable(),
263
+ after: DecidingEntrySchema.nullable(),
264
+ })),
265
+ });
266
+ /** The answer of a clear: how many pages had restrictions removed. */
267
+ export const ClearRestrictionsResponseSchema = z.object({ clearedNodes: z.number().int() });
268
+ // S279: why can this user not do this. Three read-only routes, all for a
269
+ // holder of content.managePermissions: the decision's own trace for a
270
+ // subject (a user, or a role explained as a holder of it with no user
271
+ // grants), the same for an operation, and who may do what on a page. A page
272
+ // the asker may not read is sent with `path` and `name` null, wherever it
273
+ // appears (A2, D11). Spec:
274
+ // 2026-10-08-s279-the-explain-view-design.md.
275
+ /** The subject an explanation is about. */
276
+ export const ExplainSubjectQuerySchema = z.object({
277
+ subjectKind: NodeAccessSubjectKindSchema,
278
+ subjectId: z.string().min(1).max(NODE_ACCESS_SUBJECT_ID_MAX),
279
+ });
280
+ /** One requirement as the decision evaluated it, labelled for the asker.
281
+ * `roleAction` is the role action checked (content.restore for a restore's
282
+ * Delete row). `decidedAt` is the deciding entry in S278b's shape (labels,
283
+ * never emails), null when no entry decided. `askedAt` is where the
284
+ * requirement was asked: the page itself, a page under it, or the
285
+ * destination; the top level has the empty id and the path "/".
286
+ * `subjectListed` is true when the subject, or the subject's role, is among
287
+ * the deciding entry's grants as stored. */
288
+ export const AccessTraceViewSchema = z.object({
289
+ action: z.enum(RESTRICTABLE_ACTIONS),
290
+ roleAction: z.string(),
291
+ roleActionLabel: z.string(),
292
+ roleHoldsAction: z.boolean(),
293
+ allowed: z.boolean(),
294
+ reason: NodeAccessReasonSchema,
295
+ decidedAt: DecidingEntrySchema.nullable(),
296
+ askedAt: z.object({
297
+ nodeId: z.string(),
298
+ path: z.string().nullable(),
299
+ name: z.string().nullable(),
300
+ kind: z.enum(["node", "below", "destination"]),
301
+ }),
302
+ ownEntry: z.boolean(),
303
+ orphan: z.boolean(),
304
+ subjectListed: z.boolean(),
305
+ });
306
+ /** The five actions on one page for one subject, in the order of RESTRICTABLE_ACTIONS. */
307
+ export const ExplainResponseSchema = z.object({
308
+ subject: z.object({
309
+ subjectKind: NodeAccessSubjectKindSchema,
310
+ subjectId: z.string(),
311
+ label: z.string(),
312
+ roleId: z.string(),
313
+ roleLabel: z.string(),
314
+ }),
315
+ rows: z.array(AccessTraceViewSchema).length(RESTRICTABLE_ACTIONS.length),
316
+ });
317
+ /** An operation to explain. `targetParentId` is the destination of a move or a copy: empty or absent for the top level, else a page id (as MoveImpactQuerySchema has it). */
318
+ export const ExplainOperationQuerySchema = ExplainSubjectQuerySchema.extend({
319
+ operation: z.enum(["move", "copy", "delete", "restore"]),
320
+ targetParentId: z.union([z.literal(""), z.string().uuid()]).optional(),
321
+ });
322
+ /** Every requirement of the operation in the order it is checked, and the index of the first refused (null when all are allowed). */
323
+ export const ExplainOperationResponseSchema = z.object({
324
+ requirements: z.array(AccessTraceViewSchema),
325
+ firstRefused: z.number().int().nullable(),
326
+ });
327
+ /** The longest list of pages opened again below that who-can sends; `total` counts them all. */
328
+ export const OPENED_BELOW_MAX = 50;
329
+ /** Who may do each action on a page once roles and restrictions are both
330
+ * counted (D6), and the pages under it that open an action restricted here
331
+ * or above again (D7). `unrestricted` means every role holding the action,
332
+ * and `allowed` is then empty. */
333
+ export const WhoCanResponseSchema = z.object({
334
+ rows: z
335
+ .array(z.object({
336
+ action: z.enum(RESTRICTABLE_ACTIONS),
337
+ unrestricted: z.boolean(),
338
+ allowed: z.array(z.object({ subjectKind: NodeAccessSubjectKindSchema, subjectId: z.string(), label: z.string() })),
339
+ withoutEffect: z.array(z.object({
340
+ subjectKind: NodeAccessSubjectKindSchema,
341
+ subjectId: z.string(),
342
+ label: z.string().nullable(),
343
+ why: z.enum(["role-lacks-action", "removed"]),
344
+ })),
345
+ }))
346
+ .length(RESTRICTABLE_ACTIONS.length),
347
+ openedBelow: z.object({
348
+ items: z.array(z.object({
349
+ nodeId: z.string(),
350
+ path: z.string().nullable(),
351
+ name: z.string().nullable(),
352
+ actions: z.array(z.enum(RESTRICTABLE_ACTIONS)),
353
+ })),
354
+ total: z.number().int(),
355
+ }),
356
+ });
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ export declare const PluginActionDeclarationSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ label: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type PluginActionDeclaration = z.infer<typeof PluginActionDeclarationSchema>;
7
+ /** A role a plugin offers. Never applied unasked: the operator accepts it
8
+ * on the install screen or later from the installed-plugins view, and the
9
+ * result is an ordinary editable role. */
10
+ export declare const PluginRoleOfferSchema: z.ZodObject<{
11
+ id: z.ZodString;
12
+ label: z.ZodString;
13
+ actions: z.ZodArray<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ export type PluginRoleOffer = z.infer<typeof PluginRoleOfferSchema>;
16
+ export declare const OfferedRoleParamsSchema: z.ZodObject<{
17
+ pluginId: z.ZodString;
18
+ roleId: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export type OfferedRoleParams = z.infer<typeof OfferedRoleParamsSchema>;
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ import { ActionStringSchema } from "./action.schema.js";
3
+ import { RoleIdSchema } from "./role.schema.js";
4
+ // S273: what a plugin declares about permissions. These two shapes are the
5
+ // one definition the SDK manifest schema, the marketplace listing and the
6
+ // installed-plugin list all reuse, so a label an author wrote reaches the
7
+ // install screen and the Roles screen unchanged.
8
+ /** A label is what the role editor and the install screen show; nothing
9
+ * ever shows an operator a raw action string. Capped for MySQL's
10
+ * VARCHAR(191) with room to spare. */
11
+ const ActionLabelSchema = z.string().trim().min(1).max(120);
12
+ export const PluginActionDeclarationSchema = z.object({
13
+ id: ActionStringSchema,
14
+ label: ActionLabelSchema,
15
+ });
16
+ /** A role a plugin offers. Never applied unasked: the operator accepts it
17
+ * on the install screen or later from the installed-plugins view, and the
18
+ * result is an ordinary editable role. */
19
+ export const PluginRoleOfferSchema = z.object({
20
+ id: RoleIdSchema,
21
+ label: ActionLabelSchema,
22
+ actions: z.array(ActionStringSchema).min(1),
23
+ });
24
+ export const OfferedRoleParamsSchema = z.object({
25
+ pluginId: z.string().min(1),
26
+ roleId: RoleIdSchema,
27
+ });
@@ -0,0 +1,249 @@
1
+ import { z } from "zod";
2
+ export declare const PluginDocsPageRefSchema: z.ZodObject<{
3
+ slug: z.ZodString;
4
+ role: z.ZodEnum<{
5
+ overview: "overview";
6
+ setup: "setup";
7
+ configuration: "configuration";
8
+ guide: "guide";
9
+ troubleshooting: "troubleshooting";
10
+ }>;
11
+ title: z.ZodString;
12
+ path: z.ZodString;
13
+ }, z.core.$strip>;
14
+ export type PluginDocsPageRef = z.infer<typeof PluginDocsPageRefSchema>;
15
+ export declare const PluginDocsIndexItemSchema: z.ZodObject<{
16
+ pluginId: z.ZodString;
17
+ name: z.ZodString;
18
+ version: z.ZodString;
19
+ enabled: z.ZodBoolean;
20
+ pages: z.ZodArray<z.ZodObject<{
21
+ slug: z.ZodString;
22
+ role: z.ZodEnum<{
23
+ overview: "overview";
24
+ setup: "setup";
25
+ configuration: "configuration";
26
+ guide: "guide";
27
+ troubleshooting: "troubleshooting";
28
+ }>;
29
+ title: z.ZodString;
30
+ path: z.ZodString;
31
+ }, z.core.$strip>>;
32
+ referencePages: z.ZodArray<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ export type PluginDocsIndexItem = z.infer<typeof PluginDocsIndexItemSchema>;
35
+ export declare const PluginDocsIndexResponseSchema: z.ZodObject<{
36
+ items: z.ZodArray<z.ZodObject<{
37
+ pluginId: z.ZodString;
38
+ name: z.ZodString;
39
+ version: z.ZodString;
40
+ enabled: z.ZodBoolean;
41
+ pages: z.ZodArray<z.ZodObject<{
42
+ slug: z.ZodString;
43
+ role: z.ZodEnum<{
44
+ overview: "overview";
45
+ setup: "setup";
46
+ configuration: "configuration";
47
+ guide: "guide";
48
+ troubleshooting: "troubleshooting";
49
+ }>;
50
+ title: z.ZodString;
51
+ path: z.ZodString;
52
+ }, z.core.$strip>>;
53
+ referencePages: z.ZodArray<z.ZodString>;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>;
56
+ export type PluginDocsIndexResponse = z.infer<typeof PluginDocsIndexResponseSchema>;
57
+ export declare const PluginDocsPageParamsSchema: z.ZodObject<{
58
+ pluginId: z.ZodString;
59
+ slug: z.ZodString;
60
+ }, z.core.$strip>;
61
+ export type PluginDocsPageParams = z.infer<typeof PluginDocsPageParamsSchema>;
62
+ export declare const PluginDocsPluginParamsSchema: z.ZodObject<{
63
+ pluginId: z.ZodString;
64
+ }, z.core.$strip>;
65
+ export type PluginDocsPluginParams = z.infer<typeof PluginDocsPluginParamsSchema>;
66
+ export declare const PluginDocsPageResponseSchema: z.ZodObject<{
67
+ pluginId: z.ZodString;
68
+ version: z.ZodString;
69
+ slug: z.ZodString;
70
+ role: z.ZodEnum<{
71
+ overview: "overview";
72
+ setup: "setup";
73
+ configuration: "configuration";
74
+ guide: "guide";
75
+ troubleshooting: "troubleshooting";
76
+ }>;
77
+ title: z.ZodString;
78
+ path: z.ZodString;
79
+ markdown: z.ZodString;
80
+ }, z.core.$strip>;
81
+ export type PluginDocsPageResponse = z.infer<typeof PluginDocsPageResponseSchema>;
82
+ export declare const PluginReferenceSourceSchema: z.ZodEnum<{
83
+ package: "package";
84
+ live: "live";
85
+ }>;
86
+ export type PluginReferenceSource = z.infer<typeof PluginReferenceSourceSchema>;
87
+ /** S289: "live" is built from the manifest the server has attached; "package"
88
+ * is the package's reference.json, used only when no manifest is attached. */
89
+ export declare const PluginDocsReferenceResponseSchema: z.ZodObject<{
90
+ pluginId: z.ZodString;
91
+ version: z.ZodString;
92
+ source: z.ZodEnum<{
93
+ package: "package";
94
+ live: "live";
95
+ }>;
96
+ reference: z.ZodObject<{
97
+ actions: z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ label: z.ZodString;
100
+ }, z.core.$strip>>;
101
+ roles: z.ZodArray<z.ZodObject<{
102
+ id: z.ZodString;
103
+ label: z.ZodString;
104
+ actions: z.ZodArray<z.ZodString>;
105
+ }, z.core.$strip>>;
106
+ apiRoutes: z.ZodArray<z.ZodObject<{
107
+ method: z.ZodString;
108
+ path: z.ZodString;
109
+ access: z.ZodString;
110
+ action: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strict>>;
112
+ capabilities: z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ mediation: z.ZodEnum<{
115
+ mediated: "mediated";
116
+ promised: "promised";
117
+ }>;
118
+ payload: z.ZodObject<{
119
+ count: z.ZodNumber;
120
+ details: z.ZodArray<z.ZodString>;
121
+ }, z.core.$strict>;
122
+ }, z.core.$strict>>;
123
+ documentTypes: z.ZodArray<z.ZodObject<{
124
+ name: z.ZodString;
125
+ kind: z.ZodString;
126
+ fields: z.ZodArray<z.ZodUnknown>;
127
+ }, z.core.$loose>>;
128
+ dataTypes: z.ZodArray<z.ZodObject<{
129
+ id: z.ZodString;
130
+ name: z.ZodString;
131
+ }, z.core.$loose>>;
132
+ templates: z.ZodArray<z.ZodObject<{
133
+ name: z.ZodString;
134
+ alias: z.ZodString;
135
+ kind: z.ZodString;
136
+ documentType: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strict>>;
138
+ settingsPages: z.ZodArray<z.ZodObject<{
139
+ id: z.ZodString;
140
+ name: z.ZodString;
141
+ action: z.ZodString;
142
+ }, z.core.$strict>>;
143
+ adminSections: z.ZodArray<z.ZodObject<{
144
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
145
+ rail: z.ZodArray<z.ZodObject<{
146
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
147
+ id: z.ZodString;
148
+ action: z.ZodString;
149
+ }, z.core.$strict>>;
150
+ id: z.ZodString;
151
+ action: z.ZodString;
152
+ }, z.core.$strict>>;
153
+ railEntries: z.ZodArray<z.ZodObject<{
154
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
155
+ section: z.ZodString;
156
+ id: z.ZodString;
157
+ action: z.ZodString;
158
+ }, z.core.$strict>>;
159
+ dashboardWidgets: z.ZodArray<z.ZodObject<{
160
+ name: z.ZodString;
161
+ id: z.ZodString;
162
+ action: z.ZodString;
163
+ }, z.core.$strict>>;
164
+ editorToolbar: z.ZodArray<z.ZodObject<{
165
+ label: z.ZodString;
166
+ id: z.ZodString;
167
+ action: z.ZodString;
168
+ }, z.core.$strict>>;
169
+ contentTreeActions: z.ZodArray<z.ZodObject<{
170
+ label: z.ZodString;
171
+ id: z.ZodString;
172
+ action: z.ZodString;
173
+ }, z.core.$strict>>;
174
+ hooks: z.ZodArray<z.ZodString>;
175
+ scheduledTasks: z.ZodArray<z.ZodObject<{
176
+ id: z.ZodString;
177
+ name: z.ZodString;
178
+ cron: z.ZodString;
179
+ }, z.core.$strict>>;
180
+ migrations: z.ZodArray<z.ZodObject<{
181
+ id: z.ZodString;
182
+ name: z.ZodString;
183
+ }, z.core.$strict>>;
184
+ assertions: z.ZodArray<z.ZodObject<{
185
+ key: z.ZodString;
186
+ reason: z.ZodString;
187
+ }, z.core.$strict>>;
188
+ installOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
189
+ step: z.ZodRecord<z.ZodString, z.ZodString>;
190
+ id: z.ZodString;
191
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
192
+ kind: z.ZodString;
193
+ choices: z.ZodArray<z.ZodObject<{
194
+ id: z.ZodString;
195
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
196
+ }, z.core.$strict>>;
197
+ default: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>;
198
+ required: z.ZodBoolean;
199
+ }, z.core.$strict>>>;
200
+ }, z.core.$strict>;
201
+ }, z.core.$strip>;
202
+ export type PluginDocsReferenceResponse = z.infer<typeof PluginDocsReferenceResponseSchema>;
203
+ export declare const PluginDocsSearchItemSchema: z.ZodObject<{
204
+ pluginId: z.ZodString;
205
+ pluginName: z.ZodString;
206
+ slug: z.ZodString;
207
+ title: z.ZodString;
208
+ headings: z.ZodArray<z.ZodObject<{
209
+ text: z.ZodString;
210
+ level: z.ZodNumber;
211
+ }, z.core.$strip>>;
212
+ text: z.ZodString;
213
+ }, z.core.$strip>;
214
+ export type PluginDocsSearchItem = z.infer<typeof PluginDocsSearchItemSchema>;
215
+ export declare const PluginDocsSearchIndexResponseSchema: z.ZodObject<{
216
+ items: z.ZodArray<z.ZodObject<{
217
+ pluginId: z.ZodString;
218
+ pluginName: z.ZodString;
219
+ slug: z.ZodString;
220
+ title: z.ZodString;
221
+ headings: z.ZodArray<z.ZodObject<{
222
+ text: z.ZodString;
223
+ level: z.ZodNumber;
224
+ }, z.core.$strip>>;
225
+ text: z.ZodString;
226
+ }, z.core.$strip>>;
227
+ partial: z.ZodBoolean;
228
+ }, z.core.$strip>;
229
+ export type PluginDocsSearchIndexResponse = z.infer<typeof PluginDocsSearchIndexResponseSchema>;
230
+ export declare const MARKETPLACE_DOCS_SEARCH_MAX_QUERY = 100;
231
+ export declare const MARKETPLACE_DOCS_SEARCH_MAX_RESULTS = 20;
232
+ export declare const MarketplaceDocsSearchQuerySchema: z.ZodObject<{
233
+ q: z.ZodString;
234
+ }, z.core.$strip>;
235
+ export type MarketplaceDocsSearchQuery = z.infer<typeof MarketplaceDocsSearchQuerySchema>;
236
+ export declare const MarketplaceDocsSearchResultSchema: z.ZodObject<{
237
+ slug: z.ZodString;
238
+ title: z.ZodString;
239
+ snippet: z.ZodString;
240
+ }, z.core.$strip>;
241
+ export type MarketplaceDocsSearchResult = z.infer<typeof MarketplaceDocsSearchResultSchema>;
242
+ export declare const MarketplaceDocsSearchResponseSchema: z.ZodObject<{
243
+ results: z.ZodArray<z.ZodObject<{
244
+ slug: z.ZodString;
245
+ title: z.ZodString;
246
+ snippet: z.ZodString;
247
+ }, z.core.$strip>>;
248
+ }, z.core.$strip>;
249
+ export type MarketplaceDocsSearchResponse = z.infer<typeof MarketplaceDocsSearchResponseSchema>;