@columnus/sdk 0.0.0-stage → 0.3.1

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 (386) hide show
  1. package/dist/blocknote-editor-FP33A6RJ.js +7 -0
  2. package/dist/blocknote-editor-FP33A6RJ.js.map +1 -0
  3. package/dist/blocknote-editor-YZEFMXLC.css +47 -0
  4. package/dist/blocknote-editor-YZEFMXLC.css.map +1 -0
  5. package/dist/blocknote-preview-6WRENQZD.css +47 -0
  6. package/dist/blocknote-preview-6WRENQZD.css.map +1 -0
  7. package/dist/blocknote-preview-QZ5SC2GJ.js +7 -0
  8. package/dist/blocknote-preview-QZ5SC2GJ.js.map +1 -0
  9. package/dist/chunk-5IPH2A64.js +23337 -0
  10. package/dist/chunk-5IPH2A64.js.map +1 -0
  11. package/dist/chunk-6LKVKI5O.js +494 -0
  12. package/dist/chunk-6LKVKI5O.js.map +1 -0
  13. package/dist/chunk-BXTTCBIK.js +11 -0
  14. package/dist/chunk-BXTTCBIK.js.map +1 -0
  15. package/dist/chunk-CKNRITN3.js +225 -0
  16. package/dist/chunk-CKNRITN3.js.map +1 -0
  17. package/dist/chunk-FKHOREJP.js +58 -0
  18. package/dist/chunk-FKHOREJP.js.map +1 -0
  19. package/dist/chunk-ICKWVUW7.js +134 -0
  20. package/dist/chunk-ICKWVUW7.js.map +1 -0
  21. package/dist/chunk-LTPU2AL3.js +18774 -0
  22. package/dist/chunk-LTPU2AL3.js.map +1 -0
  23. package/dist/chunk-PX6F3LHL.js +37 -0
  24. package/dist/chunk-PX6F3LHL.js.map +1 -0
  25. package/dist/chunk-QPQRNIKG.js +142 -0
  26. package/dist/chunk-QPQRNIKG.js.map +1 -0
  27. package/dist/chunk-UXUDOFKZ.js +4169 -0
  28. package/dist/chunk-UXUDOFKZ.js.map +1 -0
  29. package/dist/chunk-ZTWPGA37.js +68 -0
  30. package/dist/chunk-ZTWPGA37.js.map +1 -0
  31. package/dist/cms/builder/diff-view.js +70 -0
  32. package/dist/cms/builder/diff-view.js.map +1 -0
  33. package/dist/cms/builder/panel.js +1316 -0
  34. package/dist/cms/builder/panel.js.map +1 -0
  35. package/dist/cms/convex/index.css +47 -0
  36. package/dist/cms/convex/index.css.map +1 -0
  37. package/dist/cms/convex/index.js +370 -0
  38. package/dist/cms/convex/index.js.map +1 -0
  39. package/dist/cms/index.css +47 -0
  40. package/dist/cms/index.css.map +1 -0
  41. package/dist/cms/index.js +9 -0
  42. package/dist/cms/index.js.map +1 -0
  43. package/dist/cms/server/index.js +5 -0
  44. package/dist/cms/server/index.js.map +1 -0
  45. package/dist/cms/tables/tables-dialog.css +47 -0
  46. package/dist/cms/tables/tables-dialog.css.map +1 -0
  47. package/dist/cms/tables/tables-dialog.js +590 -0
  48. package/dist/cms/tables/tables-dialog.js.map +1 -0
  49. package/dist/cms/tailwind.css +4 -0
  50. package/dist/editor-54UG7BSP.css +47 -0
  51. package/dist/editor-54UG7BSP.css.map +1 -0
  52. package/dist/editor-HJ3UNV3Q.js +427 -0
  53. package/dist/editor-HJ3UNV3Q.js.map +1 -0
  54. package/dist/mcp-cli.js +61218 -0
  55. package/dist/primitives.css +143 -0
  56. package/dist/rich-text-editor/blocknote-preview-studio.css +54 -0
  57. package/dist/richtext.css +4 -0
  58. package/dist/types/cms/src/adapters/default-richtext.d.ts +24 -0
  59. package/dist/types/cms/src/adapters/projected-fields-adapter.d.ts +22 -0
  60. package/dist/types/cms/src/adapters/table-rows-context.d.ts +4 -0
  61. package/dist/types/cms/src/adapters/table-rows-richtext.d.ts +8 -0
  62. package/dist/types/cms/src/builder/annotate.d.ts +13 -0
  63. package/dist/types/cms/src/builder/diff-view.d.ts +10 -0
  64. package/dist/types/cms/src/builder/inspect.d.ts +32 -0
  65. package/dist/types/cms/src/builder/panel.d.ts +11 -0
  66. package/dist/types/cms/src/builder/sessions-menu.d.ts +37 -0
  67. package/dist/types/cms/src/builder/sidecar-json.d.ts +2 -0
  68. package/dist/types/cms/src/cache/html-cache.d.ts +12 -0
  69. package/dist/types/cms/src/chrome/changes-view.d.ts +15 -0
  70. package/dist/types/cms/src/chrome/confirm-panel.d.ts +10 -0
  71. package/dist/types/cms/src/chrome/floating-toolbar.d.ts +25 -0
  72. package/dist/types/cms/src/chrome/icons.d.ts +13 -0
  73. package/dist/types/cms/src/chrome/overlay-styles.d.ts +38 -0
  74. package/dist/types/cms/src/chrome/resolve-dialog.d.ts +26 -0
  75. package/dist/types/cms/src/chrome/session-storage.d.ts +3 -0
  76. package/dist/types/cms/src/convex/cms-convex-proposals.d.ts +19 -0
  77. package/dist/types/cms/src/convex/cms-convex-shell.d.ts +8 -0
  78. package/dist/types/cms/src/convex/cms-host-refs.d.ts +15 -0
  79. package/dist/types/cms/src/convex/index.d.ts +7 -0
  80. package/dist/types/cms/src/convex/proposal-refs.d.ts +20 -0
  81. package/dist/types/cms/src/convex/use-cms-display-fields-adapter.d.ts +17 -0
  82. package/dist/types/cms/src/convex/use-cms-display-values.d.ts +12 -0
  83. package/dist/types/cms/src/convex/use-cms-editor-auth.d.ts +12 -0
  84. package/dist/types/cms/src/convex/use-cms-storage-display.d.ts +19 -0
  85. package/dist/types/cms/src/convex/use-cms-storage-fields-adapter.d.ts +63 -0
  86. package/dist/types/cms/src/convex/use-fields-adapter-host.d.ts +4 -0
  87. package/dist/types/cms/src/create/compound-create.d.ts +56 -0
  88. package/dist/types/cms/src/draft/merge-draft.d.ts +31 -0
  89. package/dist/types/cms/src/edit/cms-compound-create.d.ts +12 -0
  90. package/dist/types/cms/src/edit/cms-create-button.d.ts +9 -0
  91. package/dist/types/cms/src/edit/edit-surface.d.ts +16 -0
  92. package/dist/types/cms/src/edit/field-editor-dialog.d.ts +22 -0
  93. package/dist/types/cms/src/edit/inplace-field-editor.d.ts +21 -0
  94. package/dist/types/cms/src/edit/inplace-switch-modal.d.ts +5 -0
  95. package/dist/types/cms/src/edit/insert-row-dialog.d.ts +20 -0
  96. package/dist/types/cms/src/index.d.ts +35 -0
  97. package/dist/types/cms/src/list/build-insert-draft.d.ts +13 -0
  98. package/dist/types/cms/src/manifest-index.d.ts +5 -0
  99. package/dist/types/cms/src/nav/content-ref-integrity.d.ts +18 -0
  100. package/dist/types/cms/src/nav/content-ref.d.ts +6 -0
  101. package/dist/types/cms/src/nav/infer-navigation-table.d.ts +20 -0
  102. package/dist/types/cms/src/nav/slugify-de.d.ts +4 -0
  103. package/dist/types/cms/src/pages/login-page.d.ts +5 -0
  104. package/dist/types/cms/src/profile/propose-gates.d.ts +12 -0
  105. package/dist/types/cms/src/profile/readable-tables.d.ts +13 -0
  106. package/dist/types/cms/src/projection/cms-projection.d.ts +63 -0
  107. package/dist/types/cms/src/proposals/types.d.ts +59 -0
  108. package/dist/types/cms/src/provider/builder-draft.d.ts +14 -0
  109. package/dist/types/cms/src/provider/cms-provider.d.ts +240 -0
  110. package/dist/types/cms/src/rich-doc/cms-rich-doc-view.d.ts +4 -0
  111. package/dist/types/cms/src/server/cookie.d.ts +11 -0
  112. package/dist/types/cms/src/server/index.d.ts +2 -0
  113. package/dist/types/cms/src/server/session.d.ts +53 -0
  114. package/dist/types/cms/src/stamps/attrs.d.ts +17 -0
  115. package/dist/types/cms/src/stamps/related.d.ts +11 -0
  116. package/dist/types/cms/src/stamps/resolve-display.d.ts +41 -0
  117. package/dist/types/cms/src/stamps/row.d.ts +41 -0
  118. package/dist/types/cms/src/stamps/stamp-media-drop.d.ts +23 -0
  119. package/dist/types/cms/src/stamps/stamp.d.ts +44 -0
  120. package/dist/types/cms/src/stamps/storage-display.d.ts +4 -0
  121. package/dist/types/cms/src/stamps/use-cms-projected-field.d.ts +6 -0
  122. package/dist/types/cms/src/stamps/use-cms-projected-table.d.ts +7 -0
  123. package/dist/types/cms/src/stamps/use-cms-related-row.d.ts +2 -0
  124. package/dist/types/cms/src/tables/tables-dialog.d.ts +6 -0
  125. package/dist/types/cms/src/tables/use-cms-grid.d.ts +78 -0
  126. package/dist/types/cms/src/tables/use-draft-commands.d.ts +35 -0
  127. package/dist/types/data-grid/src/components/balanced-preview-columns.d.ts +7 -0
  128. package/dist/types/data-grid/src/components/cell-formula-bar.d.ts +40 -0
  129. package/dist/types/data-grid/src/components/cell-renderer.d.ts +10 -0
  130. package/dist/types/data-grid/src/components/cell-selection.d.ts +72 -0
  131. package/dist/types/data-grid/src/components/column-filter-popover.d.ts +29 -0
  132. package/dist/types/data-grid/src/components/context-menu-selection.d.ts +24 -0
  133. package/dist/types/data-grid/src/components/data-grid-table.d.ts +49 -0
  134. package/dist/types/data-grid/src/components/delete-confirm-copy.d.ts +6 -0
  135. package/dist/types/data-grid/src/components/display-search-scope-notice.d.ts +4 -0
  136. package/dist/types/data-grid/src/components/draft-rows.d.ts +14 -0
  137. package/dist/types/data-grid/src/components/field-condition-editor.d.ts +71 -0
  138. package/dist/types/data-grid/src/components/fill-handle.d.ts +22 -0
  139. package/dist/types/data-grid/src/components/grid-action-bar.d.ts +8 -0
  140. package/dist/types/data-grid/src/components/grid-body-layout.d.ts +27 -0
  141. package/dist/types/data-grid/src/components/grid-body-row.d.ts +83 -0
  142. package/dist/types/data-grid/src/components/grid-editing.d.ts +158 -0
  143. package/dist/types/data-grid/src/components/grid-event-utils.d.ts +10 -0
  144. package/dist/types/data-grid/src/components/grid-filter-search-chips.d.ts +7 -0
  145. package/dist/types/data-grid/src/components/grid-filter-search-context.d.ts +135 -0
  146. package/dist/types/data-grid/src/components/grid-filter-search.d.ts +6 -0
  147. package/dist/types/data-grid/src/components/grid-row-menu.d.ts +23 -0
  148. package/dist/types/data-grid/src/components/grid-seam-island.d.ts +23 -0
  149. package/dist/types/data-grid/src/components/grid-sort-group.d.ts +25 -0
  150. package/dist/types/data-grid/src/components/grid-toolbar.d.ts +54 -0
  151. package/dist/types/data-grid/src/components/index-suggestion-banner.d.ts +11 -0
  152. package/dist/types/data-grid/src/components/inline-edit-draft.d.ts +18 -0
  153. package/dist/types/data-grid/src/components/keyboard-shortcuts-overlay.d.ts +7 -0
  154. package/dist/types/data-grid/src/components/measure-column-auto-width.d.ts +6 -0
  155. package/dist/types/data-grid/src/components/pending-edits.d.ts +25 -0
  156. package/dist/types/data-grid/src/components/perform-grid-row-delete.d.ts +27 -0
  157. package/dist/types/data-grid/src/components/query-plan-banner.d.ts +13 -0
  158. package/dist/types/data-grid/src/components/query-predicate-builder.d.ts +53 -0
  159. package/dist/types/data-grid/src/components/row-detail-dialog.d.ts +17 -0
  160. package/dist/types/data-grid/src/components/row-preview-content.d.ts +21 -0
  161. package/dist/types/data-grid/src/components/row-preview-drawer.d.ts +24 -0
  162. package/dist/types/data-grid/src/components/selection-value-chips.d.ts +12 -0
  163. package/dist/types/data-grid/src/components/selection.d.ts +46 -0
  164. package/dist/types/data-grid/src/components/table-cell-overlays.d.ts +33 -0
  165. package/dist/types/data-grid/src/components/table-color-marker.d.ts +10 -0
  166. package/dist/types/data-grid/src/components/use-column-visibility.d.ts +5 -0
  167. package/dist/types/data-grid/src/components/use-column-widths.d.ts +6 -0
  168. package/dist/types/data-grid/src/components/use-undo-redo.d.ts +46 -0
  169. package/dist/types/data-grid/src/hooks/plan-pending-edits.d.ts +41 -0
  170. package/dist/types/data-grid/src/hooks/use-grid-interactions.d.ts +100 -0
  171. package/dist/types/data-grid/src/hooks/use-grid-pending-state.d.ts +41 -0
  172. package/dist/types/data-grid/src/hooks/use-grid-selection-model.d.ts +28 -0
  173. package/dist/types/data-grid/src/hooks/use-grid-table-layout.d.ts +39 -0
  174. package/dist/types/data-grid/src/hooks/use-true-after-delay.d.ts +10 -0
  175. package/dist/types/data-grid/src/index.d.ts +47 -0
  176. package/dist/types/data-grid/src/lib/column-filter.d.ts +43 -0
  177. package/dist/types/data-grid/src/lib/display-search-scope.d.ts +2 -0
  178. package/dist/types/data-grid/src/lib/format-query-chips.d.ts +28 -0
  179. package/dist/types/data-grid/src/lib/grid-items.d.ts +63 -0
  180. package/dist/types/data-grid/src/lib/persistent-state.d.ts +6 -0
  181. package/dist/types/data-grid/src/lib/query-editor-draft.d.ts +15 -0
  182. package/dist/types/data-grid/src/lib/use-row-preview-collapsed.d.ts +9 -0
  183. package/dist/types/data-grid/src/lib/use-row-preview-title.d.ts +1 -0
  184. package/dist/types/fields/src/components/batch-edit-sheet.d.ts +10 -0
  185. package/dist/types/fields/src/components/cell-editor.d.ts +29 -0
  186. package/dist/types/fields/src/components/date-time-input.d.ts +21 -0
  187. package/dist/types/fields/src/components/date-time-picker-logic.d.ts +13 -0
  188. package/dist/types/fields/src/components/field-input-chrome.d.ts +11 -0
  189. package/dist/types/fields/src/components/field-input-inline.d.ts +30 -0
  190. package/dist/types/fields/src/components/field-input.d.ts +36 -0
  191. package/dist/types/fields/src/components/field-value-view.d.ts +10 -0
  192. package/dist/types/fields/src/components/file-array-cell.d.ts +5 -0
  193. package/dist/types/fields/src/components/file-array-upload-dialog.d.ts +19 -0
  194. package/dist/types/fields/src/components/file-cell.d.ts +5 -0
  195. package/dist/types/fields/src/components/file-input.d.ts +21 -0
  196. package/dist/types/fields/src/components/file-upload-dialog.d.ts +19 -0
  197. package/dist/types/fields/src/components/focus-text-input.d.ts +5 -0
  198. package/dist/types/fields/src/components/id-array-cell.d.ts +9 -0
  199. package/dist/types/fields/src/components/id-array-values.d.ts +1 -0
  200. package/dist/types/fields/src/components/id-cell.d.ts +4 -0
  201. package/dist/types/fields/src/components/id-picker.d.ts +28 -0
  202. package/dist/types/fields/src/components/image-array-cell.d.ts +7 -0
  203. package/dist/types/fields/src/components/image-cell.d.ts +7 -0
  204. package/dist/types/fields/src/components/image-preview-dialog.d.ts +8 -0
  205. package/dist/types/fields/src/components/media-compact-preview.d.ts +17 -0
  206. package/dist/types/fields/src/components/media-library-picker-dialog.d.ts +16 -0
  207. package/dist/types/fields/src/components/multi-id-picker.d.ts +24 -0
  208. package/dist/types/fields/src/components/picker-chrome.d.ts +28 -0
  209. package/dist/types/fields/src/components/picker-density.d.ts +5 -0
  210. package/dist/types/fields/src/components/picker-list-placeholder.d.ts +13 -0
  211. package/dist/types/fields/src/components/picker-menu-keyboard.d.ts +16 -0
  212. package/dist/types/fields/src/components/picker-menu-layout.d.ts +12 -0
  213. package/dist/types/fields/src/components/picker-menu-portal.d.ts +19 -0
  214. package/dist/types/fields/src/components/picker-option-row.d.ts +10 -0
  215. package/dist/types/fields/src/components/picker-overlay.d.ts +35 -0
  216. package/dist/types/fields/src/components/record-link-chip.d.ts +21 -0
  217. package/dist/types/fields/src/components/row-edit-panel.d.ts +38 -0
  218. package/dist/types/fields/src/components/row-editor.d.ts +21 -0
  219. package/dist/types/fields/src/components/row-popover.d.ts +11 -0
  220. package/dist/types/fields/src/components/use-flush-ref.d.ts +3 -0
  221. package/dist/types/fields/src/components/use-picker-combobox.d.ts +88 -0
  222. package/dist/types/fields/src/components/use-picker-highlight-scroll.d.ts +4 -0
  223. package/dist/types/fields/src/components/use-picker-menu-overlay.d.ts +7 -0
  224. package/dist/types/fields/src/fields-data-adapter.d.ts +111 -0
  225. package/dist/types/fields/src/fields-data-provider.d.ts +45 -0
  226. package/dist/types/fields/src/hooks/use-debounced-value.d.ts +1 -0
  227. package/dist/types/fields/src/hooks/use-row-edit-shortcuts.d.ts +15 -0
  228. package/dist/types/fields/src/index.d.ts +38 -0
  229. package/dist/types/fields/src/lib/is-row-doc-dirty.d.ts +2 -0
  230. package/dist/types/fields/src/lib/scroll-to-form-field.d.ts +6 -0
  231. package/dist/types/fields/src/media-library-query.d.ts +34 -0
  232. package/dist/types/fields/src/media-upload-limits.d.ts +18 -0
  233. package/dist/types/fields/src/record-actions-context.d.ts +17 -0
  234. package/dist/types/fields/src/storage-upload.d.ts +21 -0
  235. package/dist/types/primitives/src/components/ui/accordion.d.ts +6 -0
  236. package/dist/types/primitives/src/components/ui/alert-dialog.d.ts +12 -0
  237. package/dist/types/primitives/src/components/ui/badge.d.ts +9 -0
  238. package/dist/types/primitives/src/components/ui/button.d.ts +11 -0
  239. package/dist/types/primitives/src/components/ui/calendar.d.ts +8 -0
  240. package/dist/types/primitives/src/components/ui/card.d.ts +7 -0
  241. package/dist/types/primitives/src/components/ui/checkbox.d.ts +3 -0
  242. package/dist/types/primitives/src/components/ui/dialog.d.ts +15 -0
  243. package/dist/types/primitives/src/components/ui/dropdown-menu.d.ts +10 -0
  244. package/dist/types/primitives/src/components/ui/info-hint.d.ts +37 -0
  245. package/dist/types/primitives/src/components/ui/input.d.ts +2 -0
  246. package/dist/types/primitives/src/components/ui/label.d.ts +3 -0
  247. package/dist/types/primitives/src/components/ui/popover.d.ts +6 -0
  248. package/dist/types/primitives/src/components/ui/save-bar.d.ts +43 -0
  249. package/dist/types/primitives/src/components/ui/select.d.ts +8 -0
  250. package/dist/types/primitives/src/components/ui/separator.d.ts +3 -0
  251. package/dist/types/primitives/src/components/ui/sheet.d.ts +18 -0
  252. package/dist/types/primitives/src/components/ui/sonner.d.ts +1 -0
  253. package/dist/types/primitives/src/components/ui/switch.d.ts +3 -0
  254. package/dist/types/primitives/src/components/ui/table.d.ts +7 -0
  255. package/dist/types/primitives/src/components/ui/tabs.d.ts +6 -0
  256. package/dist/types/primitives/src/components/ui/tooltip.d.ts +6 -0
  257. package/dist/types/primitives/src/index.d.ts +28 -0
  258. package/dist/types/primitives/src/lib/animation-frame-batcher.d.ts +11 -0
  259. package/dist/types/primitives/src/lib/locale-week-start.d.ts +5 -0
  260. package/dist/types/primitives/src/lib/save-bar-logic.d.ts +52 -0
  261. package/dist/types/primitives/src/lib/use-raf-batched-pointer-drag.d.ts +31 -0
  262. package/dist/types/primitives/src/lib/use-save-bar.d.ts +36 -0
  263. package/dist/types/primitives/src/lib/use-unsaved-changes-guard.d.ts +15 -0
  264. package/dist/types/primitives/src/lib/utils.d.ts +6 -0
  265. package/dist/types/richtext/src/editor.d.ts +16 -0
  266. package/dist/types/richtext/src/host-adapter.d.ts +66 -0
  267. package/dist/types/richtext/src/index.d.ts +11 -0
  268. package/dist/types/richtext/src/markdown-editor/editor-styles.d.ts +7 -0
  269. package/dist/types/richtext/src/markdown-editor/markdown-editor-dialog.d.ts +16 -0
  270. package/dist/types/richtext/src/markdown-editor/markdown-editor.d.ts +2 -0
  271. package/dist/types/richtext/src/markdown-editor/markdown-field-input.d.ts +11 -0
  272. package/dist/types/richtext/src/markdown-editor/markdown-field-trigger.d.ts +8 -0
  273. package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers-session.d.ts +5 -0
  274. package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers.d.ts +9 -0
  275. package/dist/types/richtext/src/markdown-editor/markdown-preview.d.ts +7 -0
  276. package/dist/types/richtext/src/markdown-editor/markdown-rich-preview.d.ts +5 -0
  277. package/dist/types/richtext/src/markdown-editor/record-link-picker-session.d.ts +7 -0
  278. package/dist/types/richtext/src/markdown-editor/record-link-picker.d.ts +9 -0
  279. package/dist/types/richtext/src/markdown-editor/record-table-picker.d.ts +21 -0
  280. package/dist/types/richtext/src/markdown-editor/use-markdown-insert-pickers.d.ts +33 -0
  281. package/dist/types/richtext/src/record-table-view.d.ts +17 -0
  282. package/dist/types/richtext/src/rich-doc-view.d.ts +30 -0
  283. package/dist/types/richtext/src/rich-text-editor/blocknote-editor.d.ts +25 -0
  284. package/dist/types/richtext/src/rich-text-editor/blocknote-portaled-dropdown.d.ts +2 -0
  285. package/dist/types/richtext/src/rich-text-editor/blocknote-preview.d.ts +12 -0
  286. package/dist/types/richtext/src/rich-text-editor/record-link-inline.d.ts +15 -0
  287. package/dist/types/richtext/src/rich-text-editor/record-link-rows-context.d.ts +9 -0
  288. package/dist/types/richtext/src/rich-text-editor/record-table-block.d.ts +18 -0
  289. package/dist/types/richtext/src/rich-text-editor/studio-schema.d.ts +283 -0
  290. package/dist/types/richtext/src/rich-text-editor/studio-slash-menu.d.ts +8 -0
  291. package/dist/types/richtext/src/rich-text-editor/use-sync-blocknote-value.d.ts +2 -0
  292. package/dist/types/shared/src/apiProfile.d.ts +164 -0
  293. package/dist/types/shared/src/apiProfileDiscovery.d.ts +88 -0
  294. package/dist/types/shared/src/apiProfileSlug.d.ts +11 -0
  295. package/dist/types/shared/src/apiProfileSources.d.ts +112 -0
  296. package/dist/types/shared/src/apiProfileValidators.d.ts +310 -0
  297. package/dist/types/shared/src/apiToken.d.ts +6 -0
  298. package/dist/types/shared/src/assetFamily.d.ts +38 -0
  299. package/dist/types/shared/src/assetFieldValues.d.ts +21 -0
  300. package/dist/types/shared/src/assetGraph.d.ts +221 -0
  301. package/dist/types/shared/src/assetJobs.d.ts +99 -0
  302. package/dist/types/shared/src/assetSettings.d.ts +147 -0
  303. package/dist/types/shared/src/auditRedact.d.ts +36 -0
  304. package/dist/types/shared/src/betterAuthSession.d.ts +12 -0
  305. package/dist/types/shared/src/bffHost.d.ts +36 -0
  306. package/dist/types/shared/src/bffProtocol.d.ts +563 -0
  307. package/dist/types/shared/src/bffRedact.d.ts +30 -0
  308. package/dist/types/shared/src/ciPreviewEnv.d.ts +21 -0
  309. package/dist/types/shared/src/clipboardTransfer.d.ts +25 -0
  310. package/dist/types/shared/src/convexFacade.d.ts +44 -0
  311. package/dist/types/shared/src/convexSiteUrl.d.ts +73 -0
  312. package/dist/types/shared/src/csv.d.ts +65 -0
  313. package/dist/types/shared/src/dataTransfer.d.ts +21 -0
  314. package/dist/types/shared/src/dateValues.d.ts +21 -0
  315. package/dist/types/shared/src/deployOutput.d.ts +3 -0
  316. package/dist/types/shared/src/displayLabel.d.ts +17 -0
  317. package/dist/types/shared/src/displayTemplateGenerator.d.ts +11 -0
  318. package/dist/types/shared/src/displayTypes.d.ts +10 -0
  319. package/dist/types/shared/src/erdLayout.d.ts +27 -0
  320. package/dist/types/shared/src/facets.d.ts +109 -0
  321. package/dist/types/shared/src/failureMessage.d.ts +5 -0
  322. package/dist/types/shared/src/fieldTypeMeta.d.ts +110 -0
  323. package/dist/types/shared/src/fieldTypeText.d.ts +34 -0
  324. package/dist/types/shared/src/fieldValueEqual.d.ts +10 -0
  325. package/dist/types/shared/src/fieldValueShape.d.ts +24 -0
  326. package/dist/types/shared/src/fieldValueText.d.ts +32 -0
  327. package/dist/types/shared/src/gridQuery.d.ts +103 -0
  328. package/dist/types/shared/src/importMatch.d.ts +80 -0
  329. package/dist/types/shared/src/index.d.ts +78 -0
  330. package/dist/types/shared/src/inferIdentifier.d.ts +18 -0
  331. package/dist/types/shared/src/keyboard.d.ts +16 -0
  332. package/dist/types/shared/src/manifestDeploy.d.ts +31 -0
  333. package/dist/types/shared/src/manifestHash.d.ts +12 -0
  334. package/dist/types/shared/src/mcpOAuth.d.ts +182 -0
  335. package/dist/types/shared/src/postLoginPath.d.ts +21 -0
  336. package/dist/types/shared/src/previewDeployName.d.ts +27 -0
  337. package/dist/types/shared/src/proposalDraftMerge.d.ts +35 -0
  338. package/dist/types/shared/src/proposePolicy.d.ts +17 -0
  339. package/dist/types/shared/src/proposeRateLimit.d.ts +27 -0
  340. package/dist/types/shared/src/queryBetween.d.ts +21 -0
  341. package/dist/types/shared/src/queryConditions.d.ts +46 -0
  342. package/dist/types/shared/src/queryExecution.d.ts +12 -0
  343. package/dist/types/shared/src/queryFieldOps.d.ts +123 -0
  344. package/dist/types/shared/src/queryMerge.d.ts +30 -0
  345. package/dist/types/shared/src/queryPlan.d.ts +86 -0
  346. package/dist/types/shared/src/queryStudio.d.ts +28 -0
  347. package/dist/types/shared/src/queryTypes.d.ts +184 -0
  348. package/dist/types/shared/src/queryValidators.d.ts +233 -0
  349. package/dist/types/shared/src/readApiQuery.d.ts +10 -0
  350. package/dist/types/shared/src/readModelLimits.d.ts +23 -0
  351. package/dist/types/shared/src/recordTableColumns.d.ts +24 -0
  352. package/dist/types/shared/src/recordTablePreload.d.ts +19 -0
  353. package/dist/types/shared/src/refDisplayRequests.d.ts +17 -0
  354. package/dist/types/shared/src/refGraph.d.ts +97 -0
  355. package/dist/types/shared/src/refsRecompute.d.ts +16 -0
  356. package/dist/types/shared/src/richDoc.d.ts +80 -0
  357. package/dist/types/shared/src/rowPatchWire.d.ts +12 -0
  358. package/dist/types/shared/src/rowTrash.d.ts +26 -0
  359. package/dist/types/shared/src/savedView.d.ts +37 -0
  360. package/dist/types/shared/src/schemaGenerator.d.ts +36 -0
  361. package/dist/types/shared/src/schemaShrink.d.ts +82 -0
  362. package/dist/types/shared/src/schemaShrinkValidators.d.ts +72 -0
  363. package/dist/types/shared/src/schemaTypes.d.ts +311 -0
  364. package/dist/types/shared/src/share.d.ts +8 -0
  365. package/dist/types/shared/src/shareApiBridge.d.ts +13 -0
  366. package/dist/types/shared/src/shareGuestPolicy.d.ts +14 -0
  367. package/dist/types/shared/src/shareProposal.d.ts +141 -0
  368. package/dist/types/shared/src/shareProposalDiff.d.ts +13 -0
  369. package/dist/types/shared/src/shareScopes.d.ts +19 -0
  370. package/dist/types/shared/src/shareTokenCrypto.d.ts +9 -0
  371. package/dist/types/shared/src/shareTokens.d.ts +6 -0
  372. package/dist/types/shared/src/shareTypes.d.ts +113 -0
  373. package/dist/types/shared/src/shareWizard.d.ts +23 -0
  374. package/dist/types/shared/src/spaceBundle.d.ts +89 -0
  375. package/dist/types/shared/src/stagedApiAccess.d.ts +104 -0
  376. package/dist/types/shared/src/studioBoot.d.ts +63 -0
  377. package/dist/types/shared/src/syncChannel.d.ts +25 -0
  378. package/dist/types/shared/src/syncClampMembership.d.ts +22 -0
  379. package/dist/types/shared/src/tableSearch.d.ts +52 -0
  380. package/dist/types/shared/src/tenantHosts.d.ts +34 -0
  381. package/dist/types/shared/src/tenantSecretsCrypto.d.ts +31 -0
  382. package/dist/types/shared/src/useDebouncedCommit.d.ts +15 -0
  383. package/dist/types/shared/src/useDebouncedValue.d.ts +1 -0
  384. package/dist/types/shared/src/useModifierHeld.d.ts +2 -0
  385. package/package.json +85 -3
  386. package/README.md +0 -3
@@ -0,0 +1,99 @@
1
+ export declare const ASSET_JOB_KINDS: readonly ["extract", "rendition"];
2
+ export type AssetJobKind = (typeof ASSET_JOB_KINDS)[number];
3
+ export declare const ASSET_JOB_STATUSES: readonly ["pending", "claimed", "done", "failed", "dead_letter"];
4
+ export type AssetJobStatus = (typeof ASSET_JOB_STATUSES)[number];
5
+ /** R12: five attempts, then the job is parked in the dead-letter queue. */
6
+ export declare const ASSET_JOB_MAX_ATTEMPTS = 5;
7
+ /** R11: per-job wall clock. The lease must outlast it (see below). */
8
+ export declare const ASSET_JOB_TIMEOUT_MS = 600000;
9
+ /**
10
+ * Derived lock: 15 minutes, comfortably above the 10 minute job timeout so a
11
+ * slow but healthy worker is never reclaimed out from under itself.
12
+ */
13
+ export declare const ASSET_JOB_LEASE_MS: number;
14
+ /**
15
+ * K1 ceiling. A reclaim hands the attempt back (R12) because a dead machine
16
+ * never got its try — but a job that *kills* whichever worker claims it would
17
+ * then cycle forever. After this many reclaims the job is dead-lettered so it
18
+ * surfaces in Retry instead of silently holding a worker slot.
19
+ */
20
+ export declare const ASSET_JOB_MAX_RECLAIMS = 5;
21
+ /**
22
+ * Delay before a failed job becomes claimable again. `attempts` is the count
23
+ * *including* the attempt that just failed, so the first failure waits 15s.
24
+ * Returns null once the job has exhausted its attempts.
25
+ */
26
+ export declare function assetJobRetryDelayMs(attempts: number): number | null;
27
+ /** R12: a failure either schedules a retry or dead-letters the job. */
28
+ export declare function assetJobFailureOutcome(attempts: number, now: number): {
29
+ status: "pending";
30
+ runAfter: number;
31
+ } | {
32
+ status: "dead_letter";
33
+ };
34
+ /**
35
+ * What to do with a claim whose lease elapsed. The attempt is refunded (R12 —
36
+ * the worker died, the job never got its try), but reclaims are counted so a
37
+ * job that reliably kills its worker still reaches the dead-letter queue (K1).
38
+ */
39
+ export declare function assetJobReclaimOutcome(reclaims: number): {
40
+ status: "pending";
41
+ } | {
42
+ status: "dead_letter";
43
+ };
44
+ /**
45
+ * A claim is stale once its lease has elapsed. Reclaiming does **not** burn an
46
+ * attempt (R12) — the worker died, the job never got its try.
47
+ */
48
+ export declare function assetJobLeaseExpired(leaseUntil: number | undefined, now: number): boolean;
49
+ /**
50
+ * One durable job row, as the kernel stores it and the worker sees it. Every
51
+ * layer derives its row/snapshot shape from this instead of re-listing the
52
+ * union members.
53
+ */
54
+ export type AssetJob = {
55
+ jobId: string;
56
+ assetId: string;
57
+ versionId: string;
58
+ kind: AssetJobKind;
59
+ nodeId?: string;
60
+ /** K3: the node parameters this job was queued for. */
61
+ fingerprint?: string;
62
+ status: AssetJobStatus;
63
+ attempts: number;
64
+ /** Lease reclaims, capped separately from attempts (K1). */
65
+ reclaims?: number;
66
+ runAfter: number;
67
+ leaseUntil?: number;
68
+ lastError?: string;
69
+ createdAt: number;
70
+ /** Set on claim; kept after complete / dead-letter. */
71
+ claimedAt?: number;
72
+ /** Set on complete and dead-letter. Absent while the job may retry. */
73
+ completedAt?: number;
74
+ };
75
+ /**
76
+ * When the worker should next wake for a job that is pending but still inside
77
+ * its retry backoff. `null` means nothing is waiting on the clock.
78
+ *
79
+ * The subscribed query cannot do this filtering itself: Convex invalidates a
80
+ * subscription when its read set changes, never when time passes, so a query
81
+ * that filtered on `Date.now()` would leave a matured retry unnoticed until an
82
+ * unrelated write happened to touch the table.
83
+ */
84
+ export declare function nextAssetJobWakeAt(jobs: readonly Pick<AssetJob, "status" | "runAfter">[], now: number): number | null;
85
+ /**
86
+ * Stable identity for one unit of work (R8): one `extract` per version, one
87
+ * `rendition` per node per version. Used to keep enqueue idempotent.
88
+ */
89
+ export declare function assetJobKey(input: {
90
+ versionId: string;
91
+ kind: AssetJobKind;
92
+ nodeId?: string;
93
+ /**
94
+ * K3: a rendition's render-affecting parameters. Two jobs for the same node
95
+ * with different parameters are different units of work, so a graph edit is
96
+ * never swallowed by an outstanding job for the old parameters.
97
+ */
98
+ fingerprint?: string;
99
+ }): string;
@@ -0,0 +1,147 @@
1
+ import type { AssetFamily } from "./assetFamily.ts";
2
+ import type { AssetRenditionNode } from "./assetGraph.ts";
3
+ import { type Table } from "./schemaTypes.ts";
4
+ export declare const DEFAULT_MEDIA_WARN_BYTES: number;
5
+ export declare const DEFAULT_MEDIA_REJECT_BYTES: number;
6
+ export type MediaUploadCaps = {
7
+ warnBytes: number;
8
+ rejectBytes: number;
9
+ };
10
+ export declare const DEFAULT_MEDIA_UPLOAD_CAPS: MediaUploadCaps;
11
+ export type MediaUploadLimit = {
12
+ level: "warn";
13
+ message: string;
14
+ } | {
15
+ level: "reject";
16
+ message: string;
17
+ };
18
+ export declare function formatMediaBytes(bytes: number): string;
19
+ /** Returns a stable validation message for settings forms and server-side writes. */
20
+ export declare function mediaUploadCapsError(caps: MediaUploadCaps): string | null;
21
+ /** Determine whether a client should ask for confirmation or reject immediately. */
22
+ export declare function mediaUploadLimit(size: number, caps: MediaUploadCaps): MediaUploadLimit | null;
23
+ /** A schema table bound to a family or profile, with its required fields. */
24
+ export type AssetSchemaBinding = {
25
+ schemaTable: string;
26
+ requiredFields?: string[];
27
+ defaultValues?: unknown;
28
+ };
29
+ /**
30
+ * Tables named by stored bindings that the manifest no longer has as asset-kind tables:
31
+ * bindings are validated when saved, but a later schema deploy can drop or retype them.
32
+ */
33
+ export declare function staleAssetSchemaTables(manifest: {
34
+ tables: readonly Pick<Table, "name" | "kind">[];
35
+ }, bindings: readonly Pick<AssetSchemaBinding, "schemaTable">[]): string[];
36
+ /** R3: which graph node each Studio delivery slot resolves to. */
37
+ export type AssetSlotMapping = {
38
+ compact?: string;
39
+ preview?: string;
40
+ };
41
+ export type AssetRebuildStatus = {
42
+ pending: {
43
+ family: AssetFamily;
44
+ rebuild: string[];
45
+ removed: string[];
46
+ }[];
47
+ cursor?: string | null;
48
+ startedAt: number;
49
+ assetsExamined: number;
50
+ enqueued: number;
51
+ };
52
+ export type AssetSettings = MediaUploadCaps & {
53
+ familyGraphs: Partial<Record<AssetFamily, AssetRenditionNode[]>>;
54
+ familySchemas: Partial<Record<AssetFamily, AssetSchemaBinding[]>>;
55
+ /** R3: Studio delivery slots → graph node id, per family. */
56
+ slots?: Partial<Record<AssetFamily, AssetSlotMapping>>;
57
+ /** R10: rebuild work a graph save signed up for, drained by cron. */
58
+ rebuildStatus?: AssetRebuildStatus;
59
+ updatedAt: number;
60
+ };
61
+ export type AssetProfile = {
62
+ slug: string;
63
+ name: string;
64
+ families?: AssetFamily[];
65
+ schemas: AssetSchemaBinding[];
66
+ extraNodes: AssetRenditionNode[];
67
+ createdAt: number;
68
+ updatedAt: number;
69
+ };
70
+ /** G21 default image graph: preview 2000 contain WebP q80, siblings thumb 400 and thumbSm 200. */
71
+ export declare const DEFAULT_IMAGE_GRAPH: AssetRenditionNode[];
72
+ /** R3 seed: grid/CMS stamp/library take `thumbSm`, Media detail takes `preview`. */
73
+ export declare const DEFAULT_ASSET_SLOTS: Partial<Record<AssetFamily, AssetSlotMapping>>;
74
+ /**
75
+ * The settings a tenant starts with. The component seeds a row from this and
76
+ * the Studio form falls back to it, so a fresh tenant and an unsaved form agree
77
+ * on what the defaults are.
78
+ */
79
+ export declare function defaultAssetSettings(): Omit<AssetSettings, "updatedAt">;
80
+ /**
81
+ * What every reader should see when a tenant has never saved Media settings.
82
+ *
83
+ * The component seeds a row from `defaultAssetSettings`, but until something
84
+ * writes one `getSettings` answers `null` — and a caller reading that as "no
85
+ * graphs, no caps" concludes the tenant builds nothing, which is the opposite
86
+ * of what a fresh tenant is supposed to do. `updatedAt: 0` because there is no
87
+ * save to report.
88
+ */
89
+ export declare function unsavedAssetSettings(): AssetSettings;
90
+ /**
91
+ * Slot mapping Studio/CMS should apply for a family.
92
+ *
93
+ * Matches the graph builder: a never-saved tenant (or a settings row with no
94
+ * slots for that family) gets the seed defaults. An explicit empty mapping
95
+ * `{ image: {} }` is an opt-out and stays empty so unset still means original.
96
+ */
97
+ export declare function resolveFamilySlotMapping(settings: AssetSettings | null | undefined, family: AssetFamily | undefined): AssetSlotMapping | undefined;
98
+ /**
99
+ * One immutable version of an asset's original, as the component stores it and
100
+ * every reader projects it.
101
+ *
102
+ * The host's component-API declaration used to name only `versionId` and
103
+ * `originalStorageId` while Media detail declared its own copy with `size` and
104
+ * `createdAt` — two descriptions of one payload that already disagreed.
105
+ */
106
+ export type AssetVersionSnapshot = {
107
+ versionId: string;
108
+ assetId: string;
109
+ originalStorageId: string;
110
+ contentType?: string;
111
+ filename?: string;
112
+ size: number;
113
+ createdAt: number;
114
+ };
115
+ /**
116
+ * One live rendition of an asset — mirrors `renditionSnapshotValidator` in the
117
+ * component. Declared once here so the host's component-API declaration and the
118
+ * Media detail panel cannot drift apart, as the version snapshot once did.
119
+ */
120
+ export type AssetRenditionRow = {
121
+ nodeId: string;
122
+ versionId: string;
123
+ storageId: string;
124
+ format: string;
125
+ width: number;
126
+ height: number;
127
+ bytes: number;
128
+ createdAt: number;
129
+ obsoleteAt?: number;
130
+ };
131
+ /** G27: one indexed placement of an asset in a tenant row. */
132
+ export type AssetRefRow = {
133
+ fromTable: string;
134
+ fromId: string;
135
+ fieldName: string;
136
+ /** `null` for a scalar field; the position for an array placement. */
137
+ arrayIndex: number | null;
138
+ };
139
+ /** One attached metadata table, projected for the Media detail editor. */
140
+ export type AssetMetadataRow = {
141
+ table: string;
142
+ fields: Record<string, unknown>;
143
+ hasStoredRow: boolean;
144
+ requiredFields: string[];
145
+ /** Two active bindings disagree on a default; an editor must choose (G33). */
146
+ conflictingDefaultFields: string[];
147
+ };
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Redact audit payloads before persistence (invite-floor security).
3
+ * Keeps actor/action/timestamp/entity metadata and field names — never raw values.
4
+ */
5
+ import { REDACTED } from "./bffRedact.ts";
6
+ export type RedactedRowAuditSide = {
7
+ fieldKeys: string[];
8
+ changedFields?: string[];
9
+ };
10
+ export type RedactedManifestAuditSummary = {
11
+ tableNames: string[];
12
+ fieldsByTable: Record<string, string[]>;
13
+ };
14
+ /** Replace a row document with field-key metadata only. */
15
+ export declare function redactRowAuditSide(doc: unknown): RedactedRowAuditSide | null | undefined;
16
+ /** Redact before/after row snapshots for audit persistence. */
17
+ export declare function redactRowAuditPayload(entry: {
18
+ before?: unknown;
19
+ after?: unknown;
20
+ }): {
21
+ before?: RedactedRowAuditSide | null;
22
+ after?: RedactedRowAuditSide | null;
23
+ };
24
+ /** Summarize a manifest for audit: table and field names only. */
25
+ export declare function summarizeManifestForAudit(manifest: unknown): RedactedManifestAuditSummary;
26
+ /** Table names from a persisted schema-audit side (legacy or redacted). */
27
+ export declare function manifestTableNamesFromAuditSide(side: unknown): string[];
28
+ /** Redact schema audit before/after payloads (manifests, deploy logs, errors). */
29
+ export declare function redactSchemaAuditPayload(entry: {
30
+ before?: unknown;
31
+ after?: unknown;
32
+ }): {
33
+ before?: unknown;
34
+ after?: unknown;
35
+ };
36
+ export { REDACTED };
@@ -0,0 +1,12 @@
1
+ export declare function isConvexJwt(token: string): boolean;
2
+ /** A JWT's `exp` in ms, read without verifying; 0 when it has none or is unreadable. */
3
+ export declare function jwtExpiresAt(token: string): number;
4
+ export declare function isJwtExpired(token: string, skewSec?: number): boolean;
5
+ export type SignInViaEmailOtpOptions = {
6
+ siteUrl: string;
7
+ email: string;
8
+ otp?: string;
9
+ /** Browser origin trusted by Better Auth, required for cross-origin server-side probes. */
10
+ origin?: string;
11
+ };
12
+ export declare function signInViaEmailOtp({ siteUrl, email, otp, origin, }: SignInViaEmailOtpOptions): Promise<string>;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Trusted request host headers for Columnus BFF tenant resolution (D35/D41).
3
+ * Prefer Forwarded / X-Forwarded-Host when present, else Host.
4
+ * Always trust these headers in the web/BFF process — operators must not expose
5
+ * the container publicly without Traefik/tunnel in front.
6
+ */
7
+ export type RequestHostHeaders = {
8
+ /** RFC 7239 `Forwarded` header value. */
9
+ forwarded?: string | null;
10
+ /** `X-Forwarded-Host` header value. */
11
+ xForwardedHost?: string | null;
12
+ /** `Host` header value. */
13
+ host?: string | null;
14
+ };
15
+ export type TrustedHostResult = {
16
+ ok: true;
17
+ hostname: string;
18
+ } | {
19
+ ok: false;
20
+ error: string;
21
+ };
22
+ /**
23
+ * Extract a single host value from a header that may be multi-valued.
24
+ * Returns null when empty; rejects comma-separated lists as ambiguous.
25
+ */
26
+ export declare function singleHeaderHostValue(raw: string | null | undefined): TrustedHostResult | null;
27
+ /**
28
+ * Parse the `host=` parameter from an RFC 7239 Forwarded header entry.
29
+ * Quoted values are unescaped; ports are stripped via hostnameFromHostHeader.
30
+ */
31
+ export declare function hostFromForwardedHeader(forwarded: string): TrustedHostResult | null;
32
+ /**
33
+ * Resolve the trusted request hostname for tenant identity (D3/D35/D41).
34
+ * Never accepts a client-supplied tenant slug — only host headers.
35
+ */
36
+ export declare function extractTrustedHostname(headers: RequestHostHeaders): TrustedHostResult;