@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,213 @@
1
+ import { z } from "zod";
2
+ import { CultureSchema } from "./content-api.schema.js";
3
+ // S290: a plugin's own strings, shipped as locales/<language>.json in its
4
+ // package and registered by the admin under the plugin's id. One file is a
5
+ // flat map from a key the plugin's code passes to t to the text. The rules
6
+ // live here once: the CLI's `locales` check applies them at the author's
7
+ // desk, and the admin's loader applies them again to every file it fetches,
8
+ // because on an installed site a package is untrusted input. Every value is
9
+ // shown as text, never as markup.
10
+ /** The largest locale file a plugin may ship, in UTF-8 bytes. */
11
+ export const PLUGIN_LOCALE_MAX_BYTES = 128 * 1024;
12
+ /** The most keys one locale file may hold. */
13
+ export const PLUGIN_LOCALE_MAX_KEYS = 2000;
14
+ export const PLUGIN_LOCALE_KEY_MAX_LENGTH = 128;
15
+ export const PLUGIN_LOCALE_VALUE_MAX_LENGTH = 4000;
16
+ /** How a refused key is explained, in the schema and in describeIssue. */
17
+ const KEY_RULE = "a key is 1 to 128 letters, digits, _ or -, in segments joined by dots";
18
+ const FORBIDDEN_KEY_SEGMENTS = new Set(["__proto__", "prototype", "constructor"]);
19
+ function isKeyCharacter(code) {
20
+ return (code >= 48 && code <= 57) || (code >= 65 && code <= 90) || (code >= 97 && code <= 122) || code === 95 || code === 45;
21
+ }
22
+ /** A key: 1 to 128 characters, dot-separated segments of ASCII letters,
23
+ * digits, "_" and "-", no empty segment, no segment named __proto__,
24
+ * prototype or constructor. One linear scan, never a regex: the key is
25
+ * untrusted, and the length cap is checked first. */
26
+ export function isPluginLocaleKey(key) {
27
+ if (key.length === 0 || key.length > PLUGIN_LOCALE_KEY_MAX_LENGTH)
28
+ return false;
29
+ let segmentStart = 0;
30
+ for (let index = 0; index <= key.length; index++) {
31
+ if (index === key.length || key.charCodeAt(index) === 46) {
32
+ if (index === segmentStart)
33
+ return false;
34
+ if (FORBIDDEN_KEY_SEGMENTS.has(key.slice(segmentStart, index)))
35
+ return false;
36
+ segmentStart = index + 1;
37
+ }
38
+ else if (!isKeyCharacter(key.charCodeAt(index))) {
39
+ return false;
40
+ }
41
+ }
42
+ return true;
43
+ }
44
+ export const PluginLocaleFileSchema = z
45
+ .record(z.string().refine(isPluginLocaleKey, { message: KEY_RULE }), z.string().max(PLUGIN_LOCALE_VALUE_MAX_LENGTH, { message: `a value is at most ${PLUGIN_LOCALE_VALUE_MAX_LENGTH} characters` }))
46
+ .refine((bundle) => Object.keys(bundle).length <= PLUGIN_LOCALE_MAX_KEYS, {
47
+ message: `a locale file holds at most ${PLUGIN_LOCALE_MAX_KEYS} keys`,
48
+ });
49
+ /** The language a file name declares ("de.json" is "de"), or null for any
50
+ * name that is not <language>.json with a language CultureSchema accepts. */
51
+ export function pluginLocaleFileLanguage(fileName) {
52
+ if (fileName.length > 40 || !fileName.endsWith(".json"))
53
+ return null;
54
+ const language = fileName.slice(0, -".json".length);
55
+ return CultureSchema.safeParse(language).success ? language : null;
56
+ }
57
+ function utf8ByteLength(text) {
58
+ let bytes = 0;
59
+ for (let index = 0; index < text.length; index++) {
60
+ const code = text.charCodeAt(index);
61
+ if (code < 0x80)
62
+ bytes += 1;
63
+ else if (code < 0x800)
64
+ bytes += 2;
65
+ else if (code >= 0xd800 && code <= 0xdbff && index + 1 < text.length) {
66
+ bytes += 4;
67
+ index++;
68
+ }
69
+ else
70
+ bytes += 3;
71
+ }
72
+ return bytes;
73
+ }
74
+ // A key echoed back in an issue is cut short: the file is untrusted and a
75
+ // key can be as long as the file itself.
76
+ const ISSUE_KEY_MAX_LENGTH = 60;
77
+ function quoteKey(key) {
78
+ const text = String(key);
79
+ return text.length > ISSUE_KEY_MAX_LENGTH ? `"${text.slice(0, ISSUE_KEY_MAX_LENGTH)}..."` : `"${text}"`;
80
+ }
81
+ /** Zod 4 reports a record key that fails its schema as one issue with code
82
+ * "invalid_key" and a generic message, so that case is phrased here with
83
+ * the key rule; every other issue keeps its own message after the key it
84
+ * sits under. */
85
+ function describeIssue(issue) {
86
+ if (issue.code === "invalid_key") {
87
+ return issue.path.length > 0 ? `invalid key ${quoteKey(issue.path[0])}: ${KEY_RULE}` : `invalid key: ${KEY_RULE}`;
88
+ }
89
+ const where = issue.path.length > 0 ? `${quoteKey(issue.path[0])}: ` : "";
90
+ return `${where}${issue.message}`;
91
+ }
92
+ /** Size first, then JSON.parse, then the schema. Never throws; an issue is
93
+ * phrased to follow "locales/<file>: ". */
94
+ export function parsePluginLocaleFile(text) {
95
+ const bytes = text.length > PLUGIN_LOCALE_MAX_BYTES ? text.length : utf8ByteLength(text);
96
+ if (bytes > PLUGIN_LOCALE_MAX_BYTES)
97
+ return { ok: false, issue: `${bytes} bytes, over the ${PLUGIN_LOCALE_MAX_BYTES}-byte limit` };
98
+ let value;
99
+ try {
100
+ value = JSON.parse(text);
101
+ }
102
+ catch {
103
+ return { ok: false, issue: "not valid JSON" };
104
+ }
105
+ if (typeof value !== "object" || value === null || Array.isArray(value)) {
106
+ return { ok: false, issue: "not a JSON object of key to text" };
107
+ }
108
+ // The keys are scanned here, before the schema, because Zod's record
109
+ // skips a "__proto__" key rather than reporting it, and JSON.parse makes
110
+ // one an own property. The count comes first so an oversized file is not
111
+ // scanned key by key.
112
+ const keys = Object.keys(value);
113
+ if (keys.length > PLUGIN_LOCALE_MAX_KEYS)
114
+ return { ok: false, issue: `a locale file holds at most ${PLUGIN_LOCALE_MAX_KEYS} keys` };
115
+ for (const key of keys) {
116
+ if (!isPluginLocaleKey(key))
117
+ return { ok: false, issue: `invalid key ${quoteKey(key)}: ${KEY_RULE}` };
118
+ }
119
+ const parsed = PluginLocaleFileSchema.safeParse(value);
120
+ if (!parsed.success)
121
+ return { ok: false, issue: describeIssue(parsed.error.issues[0]) };
122
+ return { ok: true, bundle: parsed.data };
123
+ }
124
+ // S291: the comparison between a plugin's English and another language's
125
+ // file. One function for three readers: the CLI's `locale parity` check,
126
+ // the marketplace's language line, and the admin's own locale-parity test,
127
+ // so "complete" means one thing everywhere.
128
+ /** The {{placeholder}} names in a value, trimmed and sorted: the text
129
+ * between each "{{" and the next "}}", duplicates kept. One left-to-right
130
+ * scan with indexOf, never a regex: each search starts where the last one
131
+ * ended, so the work is linear in the value's length. A value from a
132
+ * plugin's file reaches this capped at PLUGIN_LOCALE_VALUE_MAX_LENGTH by
133
+ * parsePluginLocaleFile; the admin's own files are trusted. */
134
+ export function localePlaceholders(text) {
135
+ const names = [];
136
+ let from = 0;
137
+ for (;;) {
138
+ const open = text.indexOf("{{", from);
139
+ if (open === -1)
140
+ break;
141
+ const close = text.indexOf("}}", open + 2);
142
+ if (close === -1)
143
+ break;
144
+ names.push(text.slice(open + 2, close).trim());
145
+ from = close + 2;
146
+ }
147
+ return names.sort();
148
+ }
149
+ function samePlaceholders(a, b) {
150
+ const left = localePlaceholders(a);
151
+ const right = localePlaceholders(b);
152
+ return left.length === right.length && left.every((name, index) => name === right[index]);
153
+ }
154
+ /** Holds one language's flat key-to-text map to the English one. Keys are
155
+ * looked up as own properties only. Plural-suffixed keys (items_one,
156
+ * items_other) are ordinary keys: a plugin's t does no plural selection. */
157
+ export function compareLocaleFiles(en, other) {
158
+ const extra = [];
159
+ const mismatched = [];
160
+ for (const key of Object.keys(other)) {
161
+ if (!Object.hasOwn(en, key)) {
162
+ extra.push(key);
163
+ }
164
+ else if (!samePlaceholders(en[key], other[key])) {
165
+ mismatched.push(key);
166
+ }
167
+ }
168
+ const missing = Object.keys(en).filter((key) => !Object.hasOwn(other, key));
169
+ return { extra, missing, mismatched };
170
+ }
171
+ /** The docs language of a plugin whose manifest names none. */
172
+ export const DEFAULT_DOCS_LANGUAGE = "en";
173
+ /** The longest docsLanguage a manifest may declare. */
174
+ export const DOCS_LANGUAGE_MAX_LENGTH = 35;
175
+ /** A manifest's docsLanguage: at most 35 characters, then a code under the
176
+ * site's culture rule (CultureSchema). One rule for `kardalum plugin
177
+ * validate`, the marketplace's manifest check and the stored languages, so
178
+ * a value one of them accepts is never stored as something else. The
179
+ * length is checked first, before the pattern sees the value. */
180
+ export const DocsLanguageSchema = z
181
+ .string()
182
+ .max(DOCS_LANGUAGE_MAX_LENGTH, { message: `a docs language is at most ${DOCS_LANGUAGE_MAX_LENGTH} characters` })
183
+ .pipe(CultureSchema);
184
+ /** What the marketplace stores on a version about its languages (S291):
185
+ * each UI language the package ships and whether it is complete, and the
186
+ * language its docs are written in. */
187
+ export const PluginLanguagesSchema = z
188
+ .object({
189
+ ui: z.array(z.object({ code: CultureSchema, complete: z.boolean() }).strict()).min(1),
190
+ docs: CultureSchema,
191
+ })
192
+ .strict();
193
+ /** English is always listed first and always complete: it is the fallback,
194
+ * and with no locales/ the plugin's words are in its code. Every other
195
+ * language follows by code, complete when it lacks none of en.json's keys
196
+ * (extra keys and placeholder drift are author errors `validate` fails,
197
+ * not missing words). With no readable en.json there is nothing to compare,
198
+ * so no other language is complete. `docs` is a language code the caller
199
+ * has already checked. */
200
+ export function summarizePluginLanguages(bundles, docs) {
201
+ const en = bundles.get("en");
202
+ const others = [...bundles.keys()].filter((code) => code !== "en").sort();
203
+ return {
204
+ ui: [
205
+ { code: "en", complete: true },
206
+ ...others.map((code) => ({
207
+ code,
208
+ complete: en !== undefined && compareLocaleFiles(en, bundles.get(code)).missing.length === 0,
209
+ })),
210
+ ],
211
+ docs,
212
+ };
213
+ }
@@ -0,0 +1,391 @@
1
+ import { z } from "zod";
2
+ /** S274b (spec D4): an offer on the installed-plugins list says whether a
3
+ * role with its id already exists, so the view can hide "Create role"
4
+ * without reading the roles list (which needs roles.read). */
5
+ export declare const ManagedPluginRoleOfferSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ label: z.ZodString;
8
+ actions: z.ZodArray<z.ZodString>;
9
+ created: z.ZodBoolean;
10
+ }, z.core.$strip>;
11
+ export type ManagedPluginRoleOffer = z.infer<typeof ManagedPluginRoleOfferSchema>;
12
+ /** S284b: the marketplace's classification of an installed package that is
13
+ * not the one it delivered for the licence (the verdict's `tamper`). */
14
+ export declare const PluginTamperKindSchema: z.ZodEnum<{
15
+ "foreign-package": "foreign-package";
16
+ sideloaded: "sideloaded";
17
+ "modified-on-disk": "modified-on-disk";
18
+ }>;
19
+ export type PluginTamperKind = z.infer<typeof PluginTamperKindSchema>;
20
+ export declare const ManagedPluginSchema: z.ZodObject<{
21
+ pluginId: z.ZodString;
22
+ name: z.ZodString;
23
+ type: z.ZodString;
24
+ version: z.ZodString;
25
+ trustTier: z.ZodEnum<{
26
+ verified: "verified";
27
+ unverified: "unverified";
28
+ }>;
29
+ storageType: z.ZodEnum<{
30
+ structured: "structured";
31
+ simple: "simple";
32
+ }>;
33
+ enabled: z.ZodBoolean;
34
+ licenseStatus: z.ZodNullable<z.ZodString>;
35
+ licenseReason: z.ZodNullable<z.ZodString>;
36
+ licenseReasonDetail: z.ZodNullable<z.ZodString>;
37
+ licenseLastValidatedAt: z.ZodNullable<z.ZodString>;
38
+ licenseLastValidIssuedAt: z.ZodNullable<z.ZodString>;
39
+ licenseLastAttemptError: z.ZodNullable<z.ZodString>;
40
+ boundDomain: z.ZodNullable<z.ZodString>;
41
+ lockedFromEnabled: z.ZodNullable<z.ZodBoolean>;
42
+ tamperKind: z.ZodNullable<z.ZodEnum<{
43
+ "foreign-package": "foreign-package";
44
+ sideloaded: "sideloaded";
45
+ "modified-on-disk": "modified-on-disk";
46
+ }>>;
47
+ licenseLocked: z.ZodBoolean;
48
+ buyHref: z.ZodNullable<z.ZodString>;
49
+ roleOffers: z.ZodArray<z.ZodObject<{
50
+ id: z.ZodString;
51
+ label: z.ZodString;
52
+ actions: z.ZodArray<z.ZodString>;
53
+ created: z.ZodBoolean;
54
+ }, z.core.$strip>>;
55
+ grantedRoleCount: z.ZodNumber;
56
+ updateAvailable: z.ZodNullable<z.ZodObject<{
57
+ version: z.ZodString;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>;
60
+ export type ManagedPlugin = z.infer<typeof ManagedPluginSchema>;
61
+ export declare const ManagedPluginListQuerySchema: z.ZodObject<{
62
+ cursor: z.ZodOptional<z.ZodString>;
63
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
64
+ }, z.core.$strip>;
65
+ export declare const ManagedPluginListResponseSchema: z.ZodObject<{
66
+ items: z.ZodArray<z.ZodObject<{
67
+ pluginId: z.ZodString;
68
+ name: z.ZodString;
69
+ type: z.ZodString;
70
+ version: z.ZodString;
71
+ trustTier: z.ZodEnum<{
72
+ verified: "verified";
73
+ unverified: "unverified";
74
+ }>;
75
+ storageType: z.ZodEnum<{
76
+ structured: "structured";
77
+ simple: "simple";
78
+ }>;
79
+ enabled: z.ZodBoolean;
80
+ licenseStatus: z.ZodNullable<z.ZodString>;
81
+ licenseReason: z.ZodNullable<z.ZodString>;
82
+ licenseReasonDetail: z.ZodNullable<z.ZodString>;
83
+ licenseLastValidatedAt: z.ZodNullable<z.ZodString>;
84
+ licenseLastValidIssuedAt: z.ZodNullable<z.ZodString>;
85
+ licenseLastAttemptError: z.ZodNullable<z.ZodString>;
86
+ boundDomain: z.ZodNullable<z.ZodString>;
87
+ lockedFromEnabled: z.ZodNullable<z.ZodBoolean>;
88
+ tamperKind: z.ZodNullable<z.ZodEnum<{
89
+ "foreign-package": "foreign-package";
90
+ sideloaded: "sideloaded";
91
+ "modified-on-disk": "modified-on-disk";
92
+ }>>;
93
+ licenseLocked: z.ZodBoolean;
94
+ buyHref: z.ZodNullable<z.ZodString>;
95
+ roleOffers: z.ZodArray<z.ZodObject<{
96
+ id: z.ZodString;
97
+ label: z.ZodString;
98
+ actions: z.ZodArray<z.ZodString>;
99
+ created: z.ZodBoolean;
100
+ }, z.core.$strip>>;
101
+ grantedRoleCount: z.ZodNumber;
102
+ updateAvailable: z.ZodNullable<z.ZodObject<{
103
+ version: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>>;
106
+ nextCursor: z.ZodNullable<z.ZodString>;
107
+ licenseGraceDays: z.ZodNumber;
108
+ }, z.core.$strip>;
109
+ export type ManagedPluginListResponse = z.infer<typeof ManagedPluginListResponseSchema>;
110
+ export declare const PluginIdParamsSchema: z.ZodObject<{
111
+ pluginId: z.ZodString;
112
+ }, z.core.$strip>;
113
+ export declare const UninstallPluginBodySchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
114
+ confirmStructuredDataCleanup: z.ZodOptional<z.ZodBoolean>;
115
+ removeSampleContent: z.ZodOptional<z.ZodBoolean>;
116
+ removeRoles: z.ZodOptional<z.ZodBoolean>;
117
+ }, z.core.$strict>>>;
118
+ export declare const UninstallConfirmationRequiredSchema: z.ZodObject<{
119
+ requiresConfirmation: z.ZodLiteral<true>;
120
+ snapshotGroupId: z.ZodString;
121
+ message: z.ZodString;
122
+ }, z.core.$strip>;
123
+ export declare const BundleUninstallConfirmationRequiredSchema: z.ZodObject<{
124
+ requiresConfirmation: z.ZodLiteral<true>;
125
+ memberSnapshots: z.ZodArray<z.ZodObject<{
126
+ pluginId: z.ZodString;
127
+ snapshotGroupId: z.ZodString;
128
+ }, z.core.$strip>>;
129
+ message: z.ZodString;
130
+ }, z.core.$strip>;
131
+ export declare const UninstallBlockedByDocumentTypesSchema: z.ZodObject<{
132
+ message: z.ZodString;
133
+ blockedBy: z.ZodArray<z.ZodObject<{
134
+ documentType: z.ZodString;
135
+ contentCount: z.ZodOptional<z.ZodNumber>;
136
+ }, z.core.$strip>>;
137
+ }, z.core.$strip>;
138
+ export type UninstallBlockedByDocumentTypes = z.infer<typeof UninstallBlockedByDocumentTypesSchema>;
139
+ export declare const UninstallSucceededSchema: z.ZodObject<{
140
+ snapshotGroupId: z.ZodNullable<z.ZodString>;
141
+ }, z.core.$strip>;
142
+ export type UninstallSucceeded = z.infer<typeof UninstallSucceededSchema>;
143
+ export declare const BundleUninstallSucceededSchema: z.ZodObject<{
144
+ memberSnapshots: z.ZodArray<z.ZodObject<{
145
+ pluginId: z.ZodString;
146
+ snapshotGroupId: z.ZodString;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strip>;
149
+ export type BundleUninstallSucceeded = z.infer<typeof BundleUninstallSucceededSchema>;
150
+ export declare const MarketplaceStatusResponseSchema: z.ZodObject<{
151
+ configured: z.ZodBoolean;
152
+ }, z.core.$strip>;
153
+ export type MarketplaceStatusResponse = z.infer<typeof MarketplaceStatusResponseSchema>;
154
+ export declare const LicenseRecheckResponseSchema: z.ZodObject<{
155
+ pluginId: z.ZodString;
156
+ checked: z.ZodBoolean;
157
+ status: z.ZodNullable<z.ZodString>;
158
+ reason: z.ZodNullable<z.ZodString>;
159
+ lastValidatedAt: z.ZodNullable<z.ZodString>;
160
+ }, z.core.$strip>;
161
+ export type LicenseRecheckResponse = z.infer<typeof LicenseRecheckResponseSchema>;
162
+ export declare const LicenseVerdictEnvelopeSchema: z.ZodObject<{
163
+ v: z.ZodLiteral<1>;
164
+ alg: z.ZodLiteral<"ed25519">;
165
+ typ: z.ZodLiteral<"license-verdict">;
166
+ keyId: z.ZodString;
167
+ keyHash: z.ZodString;
168
+ pluginId: z.ZodString;
169
+ domain: z.ZodString;
170
+ nonce: z.ZodString;
171
+ status: z.ZodEnum<{
172
+ invalid: "invalid";
173
+ valid: "valid";
174
+ revoked: "revoked";
175
+ }>;
176
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ issuedAt: z.ZodString;
178
+ tamper: z.ZodOptional<z.ZodEnum<{
179
+ "foreign-package": "foreign-package";
180
+ sideloaded: "sideloaded";
181
+ "modified-on-disk": "modified-on-disk";
182
+ }>>;
183
+ detail: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strip>;
185
+ export type LicenseVerdictEnvelopeWire = z.infer<typeof LicenseVerdictEnvelopeSchema>;
186
+ export declare const EntitlementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
187
+ kind: z.ZodLiteral<"exempt">;
188
+ reason: z.ZodLiteral<"non-production">;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ kind: z.ZodLiteral<"verdict">;
191
+ envelope: z.ZodObject<{
192
+ v: z.ZodLiteral<1>;
193
+ alg: z.ZodLiteral<"ed25519">;
194
+ typ: z.ZodLiteral<"license-verdict">;
195
+ keyId: z.ZodString;
196
+ keyHash: z.ZodString;
197
+ pluginId: z.ZodString;
198
+ domain: z.ZodString;
199
+ nonce: z.ZodString;
200
+ status: z.ZodEnum<{
201
+ invalid: "invalid";
202
+ valid: "valid";
203
+ revoked: "revoked";
204
+ }>;
205
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
+ issuedAt: z.ZodString;
207
+ tamper: z.ZodOptional<z.ZodEnum<{
208
+ "foreign-package": "foreign-package";
209
+ sideloaded: "sideloaded";
210
+ "modified-on-disk": "modified-on-disk";
211
+ }>>;
212
+ detail: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strip>;
214
+ signature: z.ZodString;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ kind: z.ZodLiteral<"none">;
217
+ }, z.core.$strip>], "kind">;
218
+ export type EntitlementWire = z.infer<typeof EntitlementSchema>;
219
+ export declare const EntitlementResponseSchema: z.ZodObject<{
220
+ entitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
221
+ kind: z.ZodLiteral<"exempt">;
222
+ reason: z.ZodLiteral<"non-production">;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ kind: z.ZodLiteral<"verdict">;
225
+ envelope: z.ZodObject<{
226
+ v: z.ZodLiteral<1>;
227
+ alg: z.ZodLiteral<"ed25519">;
228
+ typ: z.ZodLiteral<"license-verdict">;
229
+ keyId: z.ZodString;
230
+ keyHash: z.ZodString;
231
+ pluginId: z.ZodString;
232
+ domain: z.ZodString;
233
+ nonce: z.ZodString;
234
+ status: z.ZodEnum<{
235
+ invalid: "invalid";
236
+ valid: "valid";
237
+ revoked: "revoked";
238
+ }>;
239
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
+ issuedAt: z.ZodString;
241
+ tamper: z.ZodOptional<z.ZodEnum<{
242
+ "foreign-package": "foreign-package";
243
+ sideloaded: "sideloaded";
244
+ "modified-on-disk": "modified-on-disk";
245
+ }>>;
246
+ detail: z.ZodOptional<z.ZodString>;
247
+ }, z.core.$strip>;
248
+ signature: z.ZodString;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ kind: z.ZodLiteral<"none">;
251
+ }, z.core.$strip>], "kind">;
252
+ valid: z.ZodBoolean;
253
+ }, z.core.$strip>;
254
+ export type EntitlementResponse = z.infer<typeof EntitlementResponseSchema>;
255
+ export declare const EntitlementRefusalSchema: z.ZodObject<{
256
+ code: z.ZodLiteral<"entitlement">;
257
+ reason: z.ZodEnum<{
258
+ missing: "missing";
259
+ "invalid-signature": "invalid-signature";
260
+ "wrong-plugin": "wrong-plugin";
261
+ "not-valid": "not-valid";
262
+ expired: "expired";
263
+ }>;
264
+ message: z.ZodString;
265
+ }, z.core.$strip>;
266
+ export type EntitlementRefusal = z.infer<typeof EntitlementRefusalSchema>;
267
+ export declare const SnapshotGroupSchema: z.ZodObject<{
268
+ snapshotGroupId: z.ZodString;
269
+ takenAt: z.ZodString;
270
+ trigger: z.ZodNullable<z.ZodString>;
271
+ tableNames: z.ZodArray<z.ZodString>;
272
+ totalTableCount: z.ZodNumber;
273
+ status: z.ZodEnum<{
274
+ partial: "partial";
275
+ complete: "complete";
276
+ }>;
277
+ }, z.core.$strip>;
278
+ export type SnapshotGroup = z.infer<typeof SnapshotGroupSchema>;
279
+ export declare const SnapshotGroupListQuerySchema: z.ZodObject<{
280
+ cursor: z.ZodOptional<z.ZodString>;
281
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
282
+ }, z.core.$strip>;
283
+ export declare const SnapshotGroupListResponseSchema: z.ZodObject<{
284
+ pluginId: z.ZodString;
285
+ items: z.ZodArray<z.ZodObject<{
286
+ snapshotGroupId: z.ZodString;
287
+ takenAt: z.ZodString;
288
+ trigger: z.ZodNullable<z.ZodString>;
289
+ tableNames: z.ZodArray<z.ZodString>;
290
+ totalTableCount: z.ZodNumber;
291
+ status: z.ZodEnum<{
292
+ partial: "partial";
293
+ complete: "complete";
294
+ }>;
295
+ }, z.core.$strip>>;
296
+ nextCursor: z.ZodNullable<z.ZodString>;
297
+ }, z.core.$strip>;
298
+ export type SnapshotGroupListResponse = z.infer<typeof SnapshotGroupListResponseSchema>;
299
+ export declare const RestorePlanEntrySchema: z.ZodObject<{
300
+ tableName: z.ZodString;
301
+ snapshotGroupId: z.ZodString;
302
+ groupTakenAt: z.ZodString;
303
+ }, z.core.$strip>;
304
+ export type RestorePlanEntry = z.infer<typeof RestorePlanEntrySchema>;
305
+ export declare const RestoreConfirmationRequiredSchema: z.ZodObject<{
306
+ requiresConfirmation: z.ZodLiteral<true>;
307
+ plan: z.ZodArray<z.ZodObject<{
308
+ tableName: z.ZodString;
309
+ snapshotGroupId: z.ZodString;
310
+ groupTakenAt: z.ZodString;
311
+ }, z.core.$strip>>;
312
+ planHash: z.ZodString;
313
+ message: z.ZodString;
314
+ }, z.core.$strip>;
315
+ export type RestoreConfirmationRequired = z.infer<typeof RestoreConfirmationRequiredSchema>;
316
+ export declare const RestoreSucceededSchema: z.ZodObject<{
317
+ preRestoreSnapshotGroupId: z.ZodNullable<z.ZodString>;
318
+ restoredTables: z.ZodArray<z.ZodString>;
319
+ }, z.core.$strip>;
320
+ export type RestoreSucceeded = z.infer<typeof RestoreSucceededSchema>;
321
+ export declare const RestoreBodySchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
322
+ confirmRestore: z.ZodOptional<z.ZodBoolean>;
323
+ planHash: z.ZodOptional<z.ZodString>;
324
+ }, z.core.$strip>>>;
325
+ export declare const PluginUploadResponseSchema: z.ZodObject<{
326
+ pluginId: z.ZodString;
327
+ name: z.ZodString;
328
+ version: z.ZodString;
329
+ outcome: z.ZodEnum<{
330
+ updated: "updated";
331
+ installed: "installed";
332
+ }>;
333
+ fromVersion: z.ZodNullable<z.ZodString>;
334
+ trust: z.ZodLiteral<"unregistered">;
335
+ sampleContent: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
336
+ status: z.ZodLiteral<"none">;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ status: z.ZodLiteral<"invalid">;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ status: z.ZodLiteral<"already-present">;
341
+ path: z.ZodString;
342
+ }, z.core.$strip>, z.ZodObject<{
343
+ status: z.ZodLiteral<"skipped">;
344
+ name: z.ZodString;
345
+ message: z.ZodString;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ status: z.ZodLiteral<"added">;
348
+ count: z.ZodNumber;
349
+ }, z.core.$strip>], "status">>;
350
+ roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
351
+ id: z.ZodString;
352
+ outcome: z.ZodEnum<{
353
+ created: "created";
354
+ "already-exists": "already-exists";
355
+ failed: "failed";
356
+ }>;
357
+ }, z.core.$strip>>>;
358
+ }, z.core.$strip>;
359
+ export type PluginUploadResponse = z.infer<typeof PluginUploadResponseSchema>;
360
+ /** S274c: the upload's confirmation travels as a query flag because the
361
+ * route reads only the multipart file part. */
362
+ export declare const PluginUploadQuerySchema: z.ZodObject<{
363
+ confirmTrustDowngrade: z.ZodOptional<z.ZodEnum<{
364
+ true: "true";
365
+ false: "false";
366
+ }>>;
367
+ }, z.core.$strip>;
368
+ export type PluginUploadQuery = z.infer<typeof PluginUploadQuerySchema>;
369
+ /** The 400 an upload answers when the package fails the listing contract
370
+ * (README, cover and docs pages): every violation, one entry each, and
371
+ * `message` as the same list on one line for a caller that shows one. */
372
+ export declare const PackageRefusedSchema: z.ZodObject<{
373
+ message: z.ZodString;
374
+ reasons: z.ZodArray<z.ZodString>;
375
+ }, z.core.$strip>;
376
+ export type PackageRefused = z.infer<typeof PackageRefusedSchema>;
377
+ /** S274c: the 409 an upload over a verified plugin answers before it stores
378
+ * anything, until the retry carries confirmTrustDowngrade=true. */
379
+ export declare const TrustDowngradeConfirmationSchema: z.ZodObject<{
380
+ requiresConfirmation: z.ZodLiteral<true>;
381
+ reason: z.ZodLiteral<"trust-downgrade">;
382
+ pluginName: z.ZodString;
383
+ message: z.ZodString;
384
+ }, z.core.$strip>;
385
+ export type TrustDowngradeConfirmation = z.infer<typeof TrustDowngradeConfirmationSchema>;
386
+ export type ManagedPluginListQuery = z.infer<typeof ManagedPluginListQuerySchema>;
387
+ /** The uninstall body as a caller writes it: the object, without the null and undefined the route also accepts. */
388
+ export type UninstallPluginBody = NonNullable<z.infer<typeof UninstallPluginBodySchema>>;
389
+ export type SnapshotGroupListQuery = z.infer<typeof SnapshotGroupListQuerySchema>;
390
+ /** The restore body as a caller writes it: the object, without the null and undefined the route also accepts. */
391
+ export type RestoreBody = NonNullable<z.infer<typeof RestoreBodySchema>>;