qarpeo 0.4.13 → 0.4.14

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 (299) hide show
  1. package/README.md +12 -6
  2. package/dist/apps/cms.d.ts +1 -1
  3. package/dist/apps/comments.d.ts +1 -1
  4. package/dist/apps/payments.d.ts +1 -1
  5. package/dist/apps/store.d.ts +1 -1
  6. package/dist/chunks/{manifest.get.mjs → tools.mjs} +445 -430
  7. package/dist/cli/index.mjs +756 -746
  8. package/dist/core/aliases.d.ts +1 -1
  9. package/dist/core/context.d.ts +1 -1
  10. package/dist/core/d1-migrate.d.ts +1 -1
  11. package/dist/core/devtools.d.ts +1 -1
  12. package/dist/core/nitro.d.ts +1 -1
  13. package/dist/core/schema.d.ts +1 -1
  14. package/dist/core/server-utils.d.ts +1 -1
  15. package/dist/core/wrangler.d.ts +1 -1
  16. package/dist/fate/index.d.ts +8 -8
  17. package/dist/fate/index.mjs +3 -1
  18. package/dist/features/agents.d.ts +1 -1
  19. package/dist/features/auth.d.ts +1 -1
  20. package/dist/features/bots.d.ts +1 -1
  21. package/dist/features/console.d.ts +1 -1
  22. package/dist/features/fate.d.ts +1 -1
  23. package/dist/features/mail.d.ts +1 -1
  24. package/dist/features/mcp.d.ts +1 -1
  25. package/dist/features/multitenant.d.ts +1 -1
  26. package/dist/features/notifications.d.ts +1 -1
  27. package/dist/features/realtime.d.ts +1 -1
  28. package/dist/features/studio.d.ts +4 -0
  29. package/dist/module.d.ts +1 -1
  30. package/dist/module.mjs +5139 -5067
  31. package/dist/primitives/ai.d.ts +1 -1
  32. package/dist/primitives/analytics.d.ts +1 -1
  33. package/dist/primitives/blob.d.ts +1 -1
  34. package/dist/primitives/browser.d.ts +1 -1
  35. package/dist/primitives/cache.d.ts +1 -1
  36. package/dist/primitives/d1.d.ts +1 -1
  37. package/dist/primitives/do.d.ts +1 -1
  38. package/dist/primitives/email.d.ts +1 -1
  39. package/dist/primitives/hyperdrive.d.ts +1 -1
  40. package/dist/primitives/kv.d.ts +1 -1
  41. package/dist/primitives/queue.d.ts +1 -1
  42. package/dist/primitives/ratelimit.d.ts +1 -1
  43. package/dist/primitives/vectorize.d.ts +1 -1
  44. package/dist/primitives/workflows.d.ts +1 -1
  45. package/dist/runtime/ai.mjs +4 -1
  46. package/dist/runtime/app/components/CMSEditor.vue +439 -0
  47. package/dist/runtime/app/components/CMSEditorImageNode.vue +90 -0
  48. package/dist/runtime/app/components/CMSEditorLinkPopover.vue +120 -0
  49. package/dist/runtime/app/components/QDropZone.vue +327 -0
  50. package/dist/runtime/app/components/QImageCropper.vue +658 -0
  51. package/dist/runtime/app/components/QImageStudio.vue +300 -0
  52. package/dist/runtime/app/components/QImg.vue +7 -4
  53. package/dist/runtime/app/composables/analytics.d.ts +8 -8
  54. package/dist/runtime/app/composables/api-tokens.d.ts +5 -5
  55. package/dist/runtime/app/composables/auth.d.ts +23 -19
  56. package/dist/runtime/app/composables/chat.d.ts +7 -6
  57. package/dist/runtime/app/composables/cms-preview.d.ts +7 -8
  58. package/dist/runtime/app/composables/cms.d.ts +6 -6
  59. package/dist/runtime/app/composables/comments.d.ts +5 -5
  60. package/dist/runtime/app/composables/comments.mjs +7 -4
  61. package/dist/runtime/app/composables/console.d.ts +6 -14
  62. package/dist/runtime/app/composables/docs-version.d.ts +8 -8
  63. package/dist/runtime/app/composables/impersonation.d.ts +5 -5
  64. package/dist/runtime/app/composables/organization.d.ts +5 -5
  65. package/dist/runtime/app/composables/passkey.d.ts +5 -5
  66. package/dist/runtime/app/composables/passwordless.d.ts +5 -5
  67. package/dist/runtime/app/composables/payments.d.ts +5 -5
  68. package/dist/runtime/app/composables/rbac.d.ts +5 -5
  69. package/dist/runtime/app/composables/site.d.ts +2 -2
  70. package/dist/runtime/app/composables/sse.d.ts +20 -33
  71. package/dist/runtime/app/composables/sse.mjs +6 -3
  72. package/dist/runtime/app/composables/storage.d.ts +6 -8
  73. package/dist/runtime/app/composables/store.d.ts +37 -36
  74. package/dist/runtime/app/composables/store.mjs +7 -6
  75. package/dist/runtime/app/composables/studio.d.ts +59 -0
  76. package/dist/runtime/app/composables/studio.mjs +129 -0
  77. package/dist/runtime/app/composables/tenant.d.ts +7 -7
  78. package/dist/runtime/app/composables/turnstile.d.ts +5 -5
  79. package/dist/runtime/app/composables/two-factor.d.ts +5 -5
  80. package/dist/runtime/app/pages/devtools/notifications.vue +1 -6
  81. package/dist/runtime/app/plugins/pwa.mjs +1 -3
  82. package/dist/runtime/app/utils/cms-editor.d.ts +25 -0
  83. package/dist/runtime/app/utils/cms-editor.mjs +43 -0
  84. package/dist/runtime/auth.d.ts +9 -9
  85. package/dist/runtime/blob.d.ts +1 -3
  86. package/dist/runtime/blob.mjs +3 -1
  87. package/dist/runtime/cache.d.ts +8 -6
  88. package/dist/runtime/cache.mjs +8 -11
  89. package/dist/runtime/db.d.ts +4 -3
  90. package/dist/runtime/drizzle.d.ts +2 -1
  91. package/dist/runtime/drizzle.mjs +2 -2
  92. package/dist/runtime/queue.d.ts +1 -0
  93. package/dist/runtime/replica.d.ts +6 -10
  94. package/dist/runtime/replica.mjs +3 -1
  95. package/dist/runtime/schema-mysql.d.ts +16 -32
  96. package/dist/runtime/schema-pg.d.ts +15 -31
  97. package/dist/runtime/schema-shared.d.ts +20 -17
  98. package/dist/runtime/schema.d.ts +21 -33
  99. package/dist/runtime/server/durable-objects/agent.mjs +4 -1
  100. package/dist/runtime/server/durable-objects/room.d.ts +4 -6
  101. package/dist/runtime/server/durable-objects/room.mjs +18 -8
  102. package/dist/runtime/server/plugins/comments.d.ts +2 -3
  103. package/dist/runtime/server/plugins/email-inbound.d.ts +1 -3
  104. package/dist/runtime/server/plugins/store.d.ts +2 -3
  105. package/dist/runtime/server/routes/__qarpeo/cloud/agents/run.post.d.ts +2 -2
  106. package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.get.mjs +10 -2
  107. package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.post.d.ts +2 -2
  108. package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.post.mjs +10 -2
  109. package/dist/runtime/server/routes/__qarpeo/cloud/cms.get.d.ts +2 -2
  110. package/dist/runtime/server/routes/__qarpeo/cloud/cms.get.mjs +7 -1
  111. package/dist/runtime/server/routes/__qarpeo/cloud/comments/moderate.post.d.ts +2 -2
  112. package/dist/runtime/server/routes/__qarpeo/cloud/comments/moderate.post.mjs +5 -1
  113. package/dist/runtime/server/routes/__qarpeo/cloud/comments.get.d.ts +1 -3
  114. package/dist/runtime/server/routes/__qarpeo/cloud/extras.get.d.ts +2 -2
  115. package/dist/runtime/server/routes/__qarpeo/cloud/extras.get.mjs +15 -4
  116. package/dist/runtime/server/routes/__qarpeo/cloud/mail/unsuppress.post.d.ts +2 -2
  117. package/dist/runtime/server/routes/__qarpeo/cloud/migrate/cms.post.mjs +13 -4
  118. package/dist/runtime/server/routes/__qarpeo/cloud/migrate/products.post.mjs +1 -1
  119. package/dist/runtime/server/routes/__qarpeo/cloud/migrate.post.d.ts +3 -3
  120. package/dist/runtime/server/routes/__qarpeo/cloud/migrate.post.mjs +22 -6
  121. package/dist/runtime/server/routes/__qarpeo/cloud/notifications/test.post.d.ts +2 -2
  122. package/dist/runtime/server/routes/__qarpeo/cloud/operations.get.d.ts +6 -5
  123. package/dist/runtime/server/routes/__qarpeo/cloud/store/order-status.post.d.ts +1 -3
  124. package/dist/runtime/server/routes/__qarpeo/cloud/store/order-status.post.mjs +14 -2
  125. package/dist/runtime/server/routes/__qarpeo/cloud/store/orders.get.d.ts +1 -3
  126. package/dist/runtime/server/routes/__qarpeo/cloud/store/orders.get.mjs +7 -1
  127. package/dist/runtime/server/routes/__qarpeo/cloud/store/products.get.d.ts +1 -3
  128. package/dist/runtime/server/routes/__qarpeo/cloud/tasks/run.post.d.ts +2 -2
  129. package/dist/runtime/server/routes/__qarpeo/cloud/users/action.post.d.ts +2 -2
  130. package/dist/runtime/server/routes/__qarpeo/cloud/users/action.post.mjs +5 -1
  131. package/dist/runtime/server/routes/__qarpeo/cloud/users.get.d.ts +6 -5
  132. package/dist/runtime/server/routes/__qarpeo/cloud/users.get.mjs +1 -3
  133. package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.mjs +2 -2
  134. package/dist/runtime/server/routes/__qarpeo/manifest.get.d.ts +2 -2
  135. package/dist/runtime/server/routes/__qarpeo/og.get.d.ts +2 -2
  136. package/dist/runtime/server/routes/__qarpeo/rbac/me.get.d.ts +2 -2
  137. package/dist/runtime/server/routes/__qarpeo/rbac/roles.delete.d.ts +2 -2
  138. package/dist/runtime/server/routes/__qarpeo/rbac/roles.delete.mjs +5 -1
  139. package/dist/runtime/server/routes/__qarpeo/rbac/roles.get.d.ts +2 -2
  140. package/dist/runtime/server/routes/__qarpeo/rbac/roles.get.mjs +1 -5
  141. package/dist/runtime/server/routes/__qarpeo/rbac/roles.post.d.ts +2 -2
  142. package/dist/runtime/server/routes/__qarpeo/rbac/roles.post.mjs +5 -1
  143. package/dist/runtime/server/routes/__qarpeo/rbac/users.post.d.ts +2 -2
  144. package/dist/runtime/server/routes/agents/[agent]/chat.post.mjs +1 -6
  145. package/dist/runtime/server/routes/agents/[agent]/clear.post.mjs +1 -6
  146. package/dist/runtime/server/routes/agents/[agent]/history.get.mjs +1 -6
  147. package/dist/runtime/server/routes/auth/2fa/disable.post.mjs +5 -1
  148. package/dist/runtime/server/routes/auth/2fa/verify.post.mjs +7 -1
  149. package/dist/runtime/server/routes/auth/magic-link/send.post.mjs +1 -1
  150. package/dist/runtime/server/routes/auth/otp/send.post.mjs +1 -1
  151. package/dist/runtime/server/routes/cms/search.get.mjs +2 -6
  152. package/dist/runtime/server/routes/comments/[id]/report.post.mjs +1 -4
  153. package/dist/runtime/server/routes/comments/[id].patch.mjs +1 -4
  154. package/dist/runtime/server/routes/comments/batch.post.mjs +1 -3
  155. package/dist/runtime/server/routes/comments/index.post.mjs +1 -5
  156. package/dist/runtime/server/routes/fate.mjs +1 -1
  157. package/dist/runtime/server/routes/mail/webhooks.post.mjs +1 -1
  158. package/dist/runtime/server/routes/sitemap.xml.get.mjs +2 -1
  159. package/dist/runtime/server/routes/storage/presigned-r2.post.d.ts +5 -6
  160. package/dist/runtime/server/routes/storage/presigned-r2.post.mjs +1 -1
  161. package/dist/runtime/server/routes/store/cart/items/[id].delete.mjs +1 -1
  162. package/dist/runtime/server/routes/store/cart/items/[id].patch.mjs +1 -1
  163. package/dist/runtime/server/routes/store/currencies.get.mjs +1 -4
  164. package/dist/runtime/server/routes/store/orders/[id].get.mjs +1 -1
  165. package/dist/runtime/server/routes/store/orders/download/[token].get.mjs +13 -4
  166. package/dist/runtime/server/routes/store/orders/index.get.mjs +1 -1
  167. package/dist/runtime/server/routes/store/tax/calculate.post.d.ts +2 -1
  168. package/dist/runtime/server/routes/store/tax/calculate.post.mjs +12 -3
  169. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +4 -1
  170. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +4 -1
  171. package/dist/runtime/server/utils/ai.d.ts +38 -35
  172. package/dist/runtime/server/utils/ai.mjs +7 -11
  173. package/dist/runtime/server/utils/analytics-query.d.ts +4 -4
  174. package/dist/runtime/server/utils/auth.d.ts +25 -25
  175. package/dist/runtime/server/utils/auth.mjs +22 -8
  176. package/dist/runtime/server/utils/bots.d.ts +7 -7
  177. package/dist/runtime/server/utils/browser-utils.d.ts +26 -27
  178. package/dist/runtime/server/utils/cache.d.ts +20 -20
  179. package/dist/runtime/server/utils/cms/collections.mjs +1 -6
  180. package/dist/runtime/server/utils/cms/common.mjs +1 -0
  181. package/dist/runtime/server/utils/cms/markdown.d.ts +2 -2
  182. package/dist/runtime/server/utils/cms/markdown.mjs +5 -5
  183. package/dist/runtime/server/utils/cms/mutations.mjs +8 -23
  184. package/dist/runtime/server/utils/cms/navigation.mjs +4 -4
  185. package/dist/runtime/server/utils/cms/path.d.ts +1 -0
  186. package/dist/runtime/server/utils/cms/path.mjs +8 -2
  187. package/dist/runtime/server/utils/cms/references.mjs +1 -7
  188. package/dist/runtime/server/utils/cms/search.d.ts +2 -2
  189. package/dist/runtime/server/utils/cms/sync.mjs +4 -2
  190. package/dist/runtime/server/utils/cms/taxonomy.d.ts +2 -2
  191. package/dist/runtime/server/utils/cms.d.ts +1 -1
  192. package/dist/runtime/server/utils/cms.mjs +1 -5
  193. package/dist/runtime/server/utils/comments-filter.d.ts +9 -7
  194. package/dist/runtime/server/utils/comments.d.ts +68 -55
  195. package/dist/runtime/server/utils/comments.mjs +21 -9
  196. package/dist/runtime/server/utils/config.d.ts +2 -2
  197. package/dist/runtime/server/utils/console.d.ts +3 -5
  198. package/dist/runtime/server/utils/context.d.ts +10 -10
  199. package/dist/runtime/server/utils/crypto.d.ts +20 -20
  200. package/dist/runtime/server/utils/domains.mjs +3 -1
  201. package/dist/runtime/server/utils/drizzle.d.ts +24 -25
  202. package/dist/runtime/server/utils/drizzle.mjs +17 -17
  203. package/dist/runtime/server/utils/durable-object.d.ts +27 -25
  204. package/dist/runtime/server/utils/durable-object.mjs +3 -10
  205. package/dist/runtime/server/utils/email-inbound.d.ts +10 -10
  206. package/dist/runtime/server/utils/impersonation.d.ts +18 -18
  207. package/dist/runtime/server/utils/legacy-hash.d.ts +23 -27
  208. package/dist/runtime/server/utils/lock.d.ts +20 -23
  209. package/dist/runtime/server/utils/mail.d.ts +19 -19
  210. package/dist/runtime/server/utils/mail.mjs +4 -2
  211. package/dist/runtime/server/utils/mcp.d.ts +20 -20
  212. package/dist/runtime/server/utils/mcp.mjs +22 -38
  213. package/dist/runtime/server/utils/notifications.d.ts +49 -38
  214. package/dist/runtime/server/utils/oauth.d.ts +3 -9
  215. package/dist/runtime/server/utils/organization.d.ts +28 -28
  216. package/dist/runtime/server/utils/organization.mjs +15 -5
  217. package/dist/runtime/server/utils/passwordless.d.ts +24 -24
  218. package/dist/runtime/server/utils/payments/checkout.d.ts +12 -12
  219. package/dist/runtime/server/utils/payments/checkout.mjs +1 -3
  220. package/dist/runtime/server/utils/payments/common.d.ts +3 -3
  221. package/dist/runtime/server/utils/payments/paddle.d.ts +4 -1
  222. package/dist/runtime/server/utils/payments/polar.d.ts +4 -1
  223. package/dist/runtime/server/utils/payments/stripe.mjs +5 -7
  224. package/dist/runtime/server/utils/payments/subscriptions.d.ts +14 -14
  225. package/dist/runtime/server/utils/payments/subscriptions.mjs +2 -6
  226. package/dist/runtime/server/utils/payments/usage.mjs +1 -3
  227. package/dist/runtime/server/utils/payments/webhooks.mjs +2 -2
  228. package/dist/runtime/server/utils/queue.d.ts +54 -58
  229. package/dist/runtime/server/utils/queue.mjs +2 -6
  230. package/dist/runtime/server/utils/rag.d.ts +23 -23
  231. package/dist/runtime/server/utils/rag.mjs +10 -5
  232. package/dist/runtime/server/utils/ratelimit.d.ts +21 -18
  233. package/dist/runtime/server/utils/rbac.d.ts +13 -15
  234. package/dist/runtime/server/utils/rbac.mjs +44 -10
  235. package/dist/runtime/server/utils/realtime.d.ts +53 -52
  236. package/dist/runtime/server/utils/role-env.d.ts +5 -4
  237. package/dist/runtime/server/utils/scheduled-task.d.ts +14 -15
  238. package/dist/runtime/server/utils/session.d.ts +40 -40
  239. package/dist/runtime/server/utils/sse.d.ts +23 -33
  240. package/dist/runtime/server/utils/sse.mjs +5 -14
  241. package/dist/runtime/server/utils/sso.mjs +3 -1
  242. package/dist/runtime/server/utils/storage.d.ts +20 -22
  243. package/dist/runtime/server/utils/storage.mjs +2 -2
  244. package/dist/runtime/server/utils/store/cart.d.ts +5 -3
  245. package/dist/runtime/server/utils/store/cart.mjs +14 -10
  246. package/dist/runtime/server/utils/store/checkout.mjs +4 -1
  247. package/dist/runtime/server/utils/store/common.d.ts +1 -1
  248. package/dist/runtime/server/utils/store/common.mjs +36 -12
  249. package/dist/runtime/server/utils/store/inventory.mjs +3 -1
  250. package/dist/runtime/server/utils/store/orders.mjs +32 -24
  251. package/dist/runtime/server/utils/store-localization.d.ts +9 -27
  252. package/dist/runtime/server/utils/store-localization.mjs +3 -3
  253. package/dist/runtime/server/utils/table-names.d.ts +15 -15
  254. package/dist/runtime/server/utils/table-names.mjs +1 -1
  255. package/dist/runtime/server/utils/tenant.d.ts +12 -12
  256. package/dist/runtime/server/utils/tenant.mjs +7 -4
  257. package/dist/runtime/server/utils/totp.d.ts +18 -18
  258. package/dist/runtime/server/utils/tracker.d.ts +5 -5
  259. package/dist/runtime/server/utils/turnstile.d.ts +9 -9
  260. package/dist/runtime/server/utils/urn.d.ts +5 -8
  261. package/dist/runtime/server/utils/workflows.d.ts +30 -31
  262. package/dist/runtime/server/utils/workflows.mjs +2 -4
  263. package/dist/runtime/server.d.ts +2 -2
  264. package/dist/runtime/service.d.ts +10 -10
  265. package/dist/runtime/test-utils.d.ts +10 -10
  266. package/dist/runtime/test-utils.mjs +9 -2
  267. package/dist/runtime/types/ai.d.ts +14 -14
  268. package/dist/runtime/types/d1.d.ts +6 -11
  269. package/dist/runtime/types/durable-object.d.ts +4 -8
  270. package/dist/runtime/types/email.d.ts +3 -9
  271. package/dist/runtime/types/index.d.ts +15 -21
  272. package/dist/runtime/types/r2.d.ts +5 -5
  273. package/dist/runtime/types/workflows.d.ts +5 -6
  274. package/dist/runtime/workflows.d.ts +1 -3
  275. package/dist/types/ai.d.ts +10 -17
  276. package/dist/types/auth.d.ts +5 -3
  277. package/dist/types/cache.d.ts +7 -7
  278. package/dist/types/cms.d.ts +30 -5
  279. package/dist/types/comments.d.ts +23 -21
  280. package/dist/types/console.d.ts +1 -3
  281. package/dist/types/db.d.ts +7 -7
  282. package/dist/types/index.d.ts +1 -0
  283. package/dist/types/options.d.ts +36 -24
  284. package/dist/types/site.d.ts +8 -2
  285. package/dist/types/storage.d.ts +2 -1
  286. package/dist/types/store-options.d.ts +10 -26
  287. package/dist/types/studio.d.ts +79 -0
  288. package/dist/utils/bots.d.ts +7 -3
  289. package/dist/utils/cms-table-names.d.ts +1 -1
  290. package/dist/utils/drizzle.d.ts +13 -14
  291. package/dist/utils/email-inbound.d.ts +4 -4
  292. package/dist/utils/features.d.ts +19 -5
  293. package/dist/utils/mcp.d.ts +1 -0
  294. package/dist/utils/migration-lock.d.ts +15 -29
  295. package/dist/utils/pkg.d.ts +6 -7
  296. package/dist/utils/schema-diff.d.ts +7 -11
  297. package/dist/utils/store-schema.d.ts +4 -6
  298. package/dist/utils/tools.d.ts +3 -3
  299. package/package.json +55 -5
@@ -261,6 +261,26 @@ export interface CMSRevisionsConfig {
261
261
  */
262
262
  max?: number;
263
263
  }
264
+ export interface CMSEditorOptions {
265
+ /**
266
+ * Enable the built-in rich-text editor (`<CMSEditor>` / `<QCMSEditor>`).
267
+ *
268
+ * @default true
269
+ */
270
+ enabled?: boolean;
271
+ /**
272
+ * Default upload endpoint for images dropped or uploaded in the editor.
273
+ *
274
+ * @default "/api/storage/upload"
275
+ */
276
+ uploadEndpoint?: string;
277
+ /**
278
+ * Default placeholder text inside the editor.
279
+ *
280
+ * @default "Write something amazing..."
281
+ */
282
+ placeholder?: string;
283
+ }
264
284
  export interface CMSOptions {
265
285
  /**
266
286
  * Expose built-in REST API endpoints for the CMS at `apiPath` (e.g. `/api/cms/*`). When `false`
@@ -311,6 +331,13 @@ export interface CMSOptions {
311
331
  * @default true
312
332
  */
313
333
  cache?: boolean;
334
+ /**
335
+ * Built-in TipTap rich-text editor (`<CMSEditor>` / `<QCMSEditor>`). Requires `@tiptap/core`,
336
+ * `@tiptap/pm`, `@tiptap/starter-kit`, `@tiptap/vue-3` (run `qp add editor`).
337
+ *
338
+ * @default false
339
+ */
340
+ editor?: boolean | CMSEditorOptions;
314
341
  /** Collections schema definitions. */
315
342
  collections?: Record<string, CMSCollectionConfig>;
316
343
  /**
@@ -385,13 +412,11 @@ export interface CMSOptions {
385
412
  comments?: CMSCommentsConfig;
386
413
  plugins?: CMSPluginOptions;
387
414
  }
388
- /**
389
- * Comments configuration options for CMS entries.
390
- */
415
+ /** Comments configuration options for CMS entries. */
391
416
  export interface CMSCommentsConfig {
392
417
  /**
393
- * Whether anonymous comments are automatically approved without moderation.
394
- * When `false` (default), comments start in `pending` status.
418
+ * Whether anonymous comments are automatically approved without moderation. When `false`
419
+ * (default), comments start in `pending` status.
395
420
  *
396
421
  * @default false
397
422
  */
@@ -1,47 +1,48 @@
1
1
  /**
2
- * Moderation configuration for the Qarpeo Comments system.
3
- * Controls adult content filtering, link limits, and keyword blocks.
2
+ * Moderation configuration for the Qarpeo Comments system. Controls adult content filtering, link
3
+ * limits, and keyword blocks.
4
4
  */
5
5
  export interface CommentsModerationConfig {
6
6
  /**
7
7
  * Action to take when a comment violates moderation rules.
8
+ *
8
9
  * - `"reject"` (default): Immediately throws HTTP 400 Bad Request.
9
- * - `"quarantine"`: Accepts the submission but marks its status as `"spam"` and records
10
- * moderation violation details in metadata so moderators can review it.
10
+ * - `"quarantine"`: Accepts the submission but marks its status as `"spam"` and records moderation
11
+ * violation details in metadata so moderators can review it.
11
12
  *
12
13
  * @default "reject"
13
14
  */
14
15
  action?: "reject" | "quarantine";
15
16
  /**
16
- * Block links to adult websites and domains with adult TLDs.
17
- * Uses an O(1) hash-set lookup and adult TLD regex; zero performance cost.
17
+ * Block links to adult websites and domains with adult TLDs. Uses an O(1) hash-set lookup and
18
+ * adult TLD regex; zero performance cost.
18
19
  *
19
20
  * @default true
20
21
  */
21
22
  blockAdultContent?: boolean;
22
23
  /**
23
- * Maximum number of URLs a single comment may contain.
24
- * Set to `0` to disallow all links.
24
+ * Maximum number of URLs a single comment may contain. Set to `0` to disallow all links.
25
25
  *
26
26
  * @default 2
27
27
  */
28
28
  maxLinks?: number;
29
29
  /**
30
- * Additional apex domains to block (e.g. `["myspamsite.com"]`).
31
- * Each entry is matched against the extracted root domain of every link.
30
+ * Additional apex domains to block (e.g. `["myspamsite.com"]`). Each entry is matched against the
31
+ * extracted root domain of every link.
32
32
  */
33
33
  blockedDomains?: string[];
34
34
  /**
35
- * Substrings that, if found in comment text, cause a moderation violation.
36
- * Case-insensitive. Applies after obfuscation normalization.
35
+ * Substrings that, if found in comment text, cause a moderation violation. Case-insensitive.
36
+ * Applies after obfuscation normalization.
37
37
  */
38
38
  blockedKeywords?: string[];
39
39
  /**
40
- * Time window in milliseconds to detect identical duplicate comments on the same target.
41
- * If a duplicate is detected within this window from the same author/IP:
40
+ * Time window in milliseconds to detect identical duplicate comments on the same target. If a
41
+ * duplicate is detected within this window from the same author/IP:
42
+ *
42
43
  * - With action "reject": throws HTTP 400.
43
- * - With action "quarantine": stores comment with status "spam".
44
- * Set to 0 to disable duplicate detection.
44
+ * - With action "quarantine": stores comment with status "spam". Set to 0 to disable duplicate
45
+ * detection.
45
46
  *
46
47
  * @default 300000 (5 minutes)
47
48
  */
@@ -50,8 +51,8 @@ export interface CommentsModerationConfig {
50
51
  /** Configuration options for the Qarpeo Comments system */
51
52
  export interface CommentsOptions {
52
53
  /**
53
- * Require authenticated session to submit comments.
54
- * When false (default), anonymous/public users can post comments.
54
+ * Require authenticated session to submit comments. When false (default), anonymous/public users
55
+ * can post comments.
55
56
  *
56
57
  * @default false
57
58
  */
@@ -96,7 +97,8 @@ export interface CommentsOptions {
96
97
  */
97
98
  turnstile?: boolean;
98
99
  /**
99
- * Allowed reaction identifiers on comments, or boolean to enable default reactions (like, heart, fire).
100
+ * Allowed reaction identifiers on comments, or boolean to enable default reactions (like, heart,
101
+ * fire).
100
102
  *
101
103
  * @default true
102
104
  */
@@ -116,8 +118,8 @@ export interface CommentsOptions {
116
118
  */
117
119
  roles?: string[];
118
120
  /**
119
- * Content moderation: adult-site blocking, link count limits, and keyword filtering.
120
- * When omitted, adult content filtering is enabled with up to 2 links allowed.
121
+ * Content moderation: adult-site blocking, link count limits, and keyword filtering. When
122
+ * omitted, adult content filtering is enabled with up to 2 links allowed.
121
123
  */
122
124
  moderation?: CommentsModerationConfig;
123
125
  /**
@@ -60,8 +60,6 @@ export interface ConsoleOptions {
60
60
  * @default "/unauthorized"
61
61
  */
62
62
  unauthorizedPath?: string;
63
- /**
64
- * Additional or overridden console navigation items.
65
- */
63
+ /** Additional or overridden console navigation items. */
66
64
  nav?: ConsoleNavItem[];
67
65
  }
@@ -14,16 +14,16 @@ export interface DbOptions {
14
14
  /**
15
15
  * Additional zero-config databases (D1 or Hyperdrive).
16
16
  *
17
- * Accepts an array of database names (e.g. `["analytics", "tenants"]`)
18
- * or a record with custom configuration.
17
+ * Accepts an array of database names (e.g. `["analytics", "tenants"]`) or a record with custom
18
+ * configuration.
19
19
  *
20
- * Automatically generates wrangler D1 / Hyperdrive bindings and provisions
21
- * isolated local dev SQLite databases without manual `wrangler.jsonc`.
20
+ * Automatically generates wrangler D1 / Hyperdrive bindings and provisions isolated local dev
21
+ * SQLite databases without manual `wrangler.jsonc`.
22
22
  *
23
23
  * @example
24
- * ```ts
25
- * databases: ["analytics", "warehouse"]
26
- * ```
24
+ * ```ts
25
+ * databases: ["analytics", "warehouse"]
26
+ * ```
27
27
  */
28
28
  databases?: string[] | Record<string, SecondaryDatabaseConfig>;
29
29
  }
@@ -1,5 +1,6 @@
1
1
  export * from "./auth";
2
2
  export * from "./storage";
3
+ export * from "./studio";
3
4
  export * from "./jobs";
4
5
  export * from "./ratelimit";
5
6
  export * from "./analytics";
@@ -1,6 +1,6 @@
1
1
  import type { Nuxt } from "@nuxt/schema";
2
- import type { WorkflowsOptions } from "../runtime/types/workflows";
3
2
  import type { DurableObjectsOptions } from "../runtime/types/durable-object";
3
+ import type { WorkflowsOptions } from "../runtime/types/workflows";
4
4
  import type { AgentsOptions, BotsOptions, McpOptions } from "./ai";
5
5
  import type { AnalyticsOptions } from "./analytics";
6
6
  import type { AuthOptions, EmailOptions } from "./auth";
@@ -9,9 +9,8 @@ import type { CMSOptions } from "./cms";
9
9
  import type { CommentsOptions } from "./comments";
10
10
  import type { ConsoleOptions } from "./console";
11
11
  import type { DbOptions } from "./db";
12
- import type { JobsOptions } from "./jobs";
13
12
  import type { MailOptions } from "./email";
14
- import type { MultitenantOptions } from "./tenant";
13
+ import type { JobsOptions } from "./jobs";
15
14
  import type { NotificationsOptions } from "./notifications";
16
15
  import type { PaymentsOptions } from "./payments";
17
16
  import type { AppRateLimitOptions } from "./ratelimit";
@@ -19,6 +18,8 @@ import type { RealtimeOptions } from "./realtime";
19
18
  import type { QarpeoSiteConfig } from "./site";
20
19
  import type { BlobOptions } from "./storage";
21
20
  import type { QarpeoTablesConfig, StoreOptions } from "./store-options";
21
+ import type { StudioOptions } from "./studio";
22
+ import type { MultitenantOptions } from "./tenant";
22
23
  /** Fate Relay-style data fetching options */
23
24
  export interface FateOptions {
24
25
  /**
@@ -34,8 +35,8 @@ export interface FateOptions {
34
35
  */
35
36
  viewsDir?: string;
36
37
  /**
37
- * Require an authenticated user session on the Fate endpoint.
38
- * Set to `false` only if all mounted Fate views are intentionally public.
38
+ * Require an authenticated user session on the Fate endpoint. Set to `false` only if all mounted
39
+ * Fate views are intentionally public.
39
40
  *
40
41
  * @default true
41
42
  */
@@ -43,15 +44,18 @@ export interface FateOptions {
43
44
  }
44
45
  export interface QarpeoOptions {
45
46
  /**
46
- * Automatically install missing pinned feature dependencies in `nuxt dev`.
47
- * Set to `false` to disable dev-time auto-installation and install manually via `qp add <feature>`.
47
+ * Automatically install missing pinned feature dependencies in `nuxt dev`. Set to `false` to
48
+ * disable dev-time auto-installation and install manually via `qp add <feature>`.
48
49
  *
49
50
  * @default true
50
51
  */
51
52
  autoInstall?: boolean;
52
53
  /**
53
- * Database table prefix for Qarpeo-managed tables (comments, payments, notifications, CMS, multi-tenancy, audit logs).
54
- * - `false` or `""` (default): clean singular table names (`comment`, `customer`, `subscription`, `cms_entry`, `audit_log`)
54
+ * Database table prefix for Qarpeo-managed tables (comments, payments, notifications, CMS,
55
+ * multi-tenancy, audit logs).
56
+ *
57
+ * - `false` or `""` (default): clean singular table names (`comment`, `customer`, `subscription`,
58
+ * `cms_entry`, `audit_log`)
55
59
  * - `true`: standard `qarpeo_` prefix (`qarpeo_comment`, `qarpeo_customer`)
56
60
  * - `string`: custom prefix e.g. `"q_"` (`q_comment`, `q_customer`)
57
61
  *
@@ -68,14 +72,14 @@ export interface QarpeoOptions {
68
72
  * Granular table name overrides. Takes precedence over `tablePrefix`.
69
73
  *
70
74
  * @example
71
- * ```ts
72
- * qarpeo: {
75
+ * ```ts
76
+ * qarpeo: {
73
77
  * tablePrefix: "q_",
74
78
  * tables: {
75
- * user: "profiles", // overrides to "profiles" instead of "q_user"
79
+ * user: "profiles", // overrides to "profiles" instead of "q_user"
80
+ * }
76
81
  * }
77
- * }
78
- * ```
82
+ * ```
79
83
  */
80
84
  tables?: QarpeoTablesConfig;
81
85
  /** Project & site metadata (name, url, SEO, branding) */
@@ -139,8 +143,8 @@ export interface QarpeoOptions {
139
143
  */
140
144
  browser?: boolean;
141
145
  /**
142
- * Enable Cloudflare Durable Objects binding for stateful, low-latency coordination, presence,
143
- * and modern RPC methods.
146
+ * Enable Cloudflare Durable Objects binding for stateful, low-latency coordination, presence, and
147
+ * modern RPC methods.
144
148
  *
145
149
  * @default false
146
150
  */
@@ -207,6 +211,14 @@ export interface QarpeoOptions {
207
211
  * @default false
208
212
  */
209
213
  blob?: boolean | BlobOptions;
214
+ /**
215
+ * Enable Qarpeo Media Studio tools (`<QDropZone>`, `<QImageCropper>`, `<QImageStudio>`,
216
+ * `useStudioUpload()`). Zero-dependency, SSR-safe media upload, cropping, and optimization
217
+ * components wired to Qarpeo Blob.
218
+ *
219
+ * @default false
220
+ */
221
+ studio?: boolean | StudioOptions;
210
222
  /**
211
223
  * Enable Hybrid Edge Content Management System powered by D1 + R2 + Auth (Tier 2).
212
224
  *
@@ -233,8 +245,8 @@ export interface QarpeoOptions {
233
245
  */
234
246
  jobs?: boolean | JobsOptions;
235
247
  /**
236
- * Enable Cloudflare Workflows durable execution engine (Tier 2).
237
- * Auto-scans `server/workflows/` and exposes `defineWorkflow()` and `useWorkflow()`.
248
+ * Enable Cloudflare Workflows durable execution engine (Tier 2). Auto-scans `server/workflows/`
249
+ * and exposes `defineWorkflow()` and `useWorkflow()`.
238
250
  *
239
251
  * @default false
240
252
  */
@@ -255,16 +267,15 @@ export interface QarpeoOptions {
255
267
  */
256
268
  agents?: boolean | AgentsOptions;
257
269
  /**
258
- * Enable Edge Bots & Webhooks Suite. Auto-discovers bot webhook handlers in `server/bots/` or `server/bot/`,
259
- * exposing them at `/api/bots/<name>`.
270
+ * Enable Edge Bots & Webhooks Suite. Auto-discovers bot webhook handlers in `server/bots/` or
271
+ * `server/bot/`, exposing them at `/api/bots/<name>`.
260
272
  *
261
273
  * @default false (auto-activates when files exist in `server/bots/` or `server/bot/`)
262
274
  */
263
275
  bots?: boolean | BotsOptions;
264
276
  /**
265
- * Enable Model Context Protocol (MCP) Edge Servers & Client.
266
- * Auto-discovers MCP server definition files in `server/mcp/` or `server/mcp.ts`,
267
- * exposing them at `/mcp` or `/mcp/<name>`.
277
+ * Enable Model Context Protocol (MCP) Edge Servers & Client. Auto-discovers MCP server definition
278
+ * files in `server/mcp/` or `server/mcp.ts`, exposing them at `/mcp` or `/mcp/<name>`.
268
279
  *
269
280
  * @default false (auto-activates when files exist in `server/mcp/` or `server/mcp.ts`)
270
281
  */
@@ -331,7 +342,8 @@ export interface QarpeoOptions {
331
342
  */
332
343
  store?: boolean | StoreOptions;
333
344
  /**
334
- * Website-injected `/console` staff & operations workspace plumbing (RBAC guards, composables, and nav builder).
345
+ * Website-injected `/console` staff & operations workspace plumbing (RBAC guards, composables,
346
+ * and nav builder).
335
347
  *
336
348
  * @default false
337
349
  */
@@ -129,7 +129,10 @@ export interface SiteRobotsConfig {
129
129
  disallow?: string[];
130
130
  /** Paths to allow in robots.txt. Defaults to ["/"] */
131
131
  allow?: string[];
132
- /** Block major AI training/scraping bots (GPTBot, CCBot, ClaudeBot, Google-Extended, etc.). Default: false */
132
+ /**
133
+ * Block major AI training/scraping bots (GPTBot, CCBot, ClaudeBot, Google-Extended, etc.).
134
+ * Default: false
135
+ */
133
136
  blockAiBots?: boolean;
134
137
  }
135
138
  export interface SiteSitemapUrl {
@@ -212,7 +215,10 @@ export interface QarpeoSiteConfig {
212
215
  feed?: boolean | SiteFeedConfig;
213
216
  /** Auto-inject WebSite JSON-LD schema on root page. Default: true */
214
217
  schemaOrg?: boolean;
215
- /** Optional site search URL template for WebSite SearchAction JSON-LD (e.g. "/search?q={search_term_string}") */
218
+ /**
219
+ * Optional site search URL template for WebSite SearchAction JSON-LD (e.g.
220
+ * "/search?q={search_term_string}")
221
+ */
216
222
  searchUrl?: string;
217
223
  /** Enforce or strip trailing slash in canonical URLs. Default: false (strip trailing slash) */
218
224
  trailingSlash?: boolean;
@@ -93,7 +93,8 @@ export interface StorageOptions {
93
93
  };
94
94
  /**
95
95
  * Automatically integrate `<QImg>` with Nuxt UI components (`<UAvatar>`, `<UCard>`, etc.) so
96
- * their `src` props resolve R2 storage keys without custom slots via `#build/ui-image-component`.
96
+ * their `src` props resolve R2 storage keys without custom slots via
97
+ * `#build/ui-image-component`.
97
98
  *
98
99
  * Set to `false` to opt out of automatic Nuxt UI image integration.
99
100
  *
@@ -17,15 +17,11 @@ export interface StoreOptions {
17
17
  * @default 2592000 (30 days)
18
18
  */
19
19
  cartCookieTtl?: number;
20
- /**
21
- * Cart configuration.
22
- */
20
+ /** Cart configuration. */
23
21
  cart?: {
24
22
  maxAgeDays?: number;
25
23
  };
26
- /**
27
- * Checkout configuration (tax, shipping).
28
- */
24
+ /** Checkout configuration (tax, shipping). */
29
25
  checkout?: {
30
26
  taxRate?: number;
31
27
  shippingRates?: Array<{
@@ -34,9 +30,7 @@ export interface StoreOptions {
34
30
  amount: number;
35
31
  }>;
36
32
  };
37
- /**
38
- * Multi-currency, FX exchange rates, and rule-based edge tax/VAT settings.
39
- */
33
+ /** Multi-currency, FX exchange rates, and rule-based edge tax/VAT settings. */
40
34
  localization?: {
41
35
  /** Base store currency (ISO 4217). Default: "USD" */
42
36
  defaultCurrency?: string;
@@ -58,9 +52,7 @@ export interface StoreOptions {
58
52
  b2bReverseCharge?: boolean;
59
53
  };
60
54
  };
61
- /**
62
- * Discount coupon configuration.
63
- */
55
+ /** Discount coupon configuration. */
64
56
  discounts?: {
65
57
  enabled?: boolean;
66
58
  };
@@ -70,9 +62,7 @@ export interface StoreOptions {
70
62
  * @default "single"
71
63
  */
72
64
  mode?: "single" | "multi-vendor";
73
- /**
74
- * Multi-vendor marketplace configuration. Active when `mode === "multi-vendor"`.
75
- */
65
+ /** Multi-vendor marketplace configuration. Active when `mode === "multi-vendor"`. */
76
66
  multiVendor?: {
77
67
  /** Default platform commission rate (e.g. 0.10 for 10% platform fee). @default 0 */
78
68
  commissionRate?: number;
@@ -81,16 +71,12 @@ export interface StoreOptions {
81
71
  /** Whether newly created products by vendors require approval before publishing. @default false */
82
72
  requireApproval?: boolean;
83
73
  };
84
- /**
85
- * Digital product download security settings.
86
- */
74
+ /** Digital product download security settings. */
87
75
  downloads?: {
88
76
  expiresInHours?: number;
89
77
  maxDownloads?: number;
90
78
  };
91
- /**
92
- * Inventory stock tracking configuration.
93
- */
79
+ /** Inventory stock tracking configuration. */
94
80
  inventory?: {
95
81
  /** Track inventory levels and prevent overselling. @default true */
96
82
  trackStock?: boolean;
@@ -99,9 +85,7 @@ export interface StoreOptions {
99
85
  /** Quantity at or below which the product is marked low-stock. @default 5 */
100
86
  lowStockThreshold?: number;
101
87
  };
102
- /**
103
- * Digital product download security settings.
104
- */
88
+ /** Digital product download security settings. */
105
89
  digitalProducts?: {
106
90
  /** Expiration window for presigned download URLs in hours. @default 24 */
107
91
  downloadLinkTtlHours?: number;
@@ -109,8 +93,8 @@ export interface StoreOptions {
109
93
  maxDownloadsPerItem?: number;
110
94
  };
111
95
  /**
112
- * Granular table name overrides or global table prefix for all store tables.
113
- * Respects the same prefix/tables mechanics as `tablePrefix` on the root config.
96
+ * Granular table name overrides or global table prefix for all store tables. Respects the same
97
+ * prefix/tables mechanics as `tablePrefix` on the root config.
114
98
  */
115
99
  tablePrefix?: boolean | string;
116
100
  tables?: Record<string, string>;
@@ -0,0 +1,79 @@
1
+ export type StudioTool = "crop" | "rotate" | "apply" | "cancel" | "reset" | "download" | "upload" | "none";
2
+ export type CropShape = "rect" | "round";
3
+ export interface StudioCropResult {
4
+ /** X offset in original image pixels */
5
+ x: number;
6
+ /** Y offset in original image pixels */
7
+ y: number;
8
+ /** Width of the cropped region in original image pixels */
9
+ width: number;
10
+ /** Height of the cropped region in original image pixels */
11
+ height: number;
12
+ /** Cropped image as a Base64 data URL */
13
+ dataUrl: string;
14
+ /** Final output width after scaling */
15
+ outWidth?: number;
16
+ /** Final output height after scaling */
17
+ outHeight?: number;
18
+ }
19
+ export interface StudioAspectPreset {
20
+ label: string;
21
+ /**
22
+ * Aspect ratio value (width / height). Supports literals: 'aspect-square', 'aspect-video',
23
+ * 'aspect-auto' Or custom ratios: '3/2', '16:9', '1' Or raw numbers. `null` means free crop.
24
+ */
25
+ value: "aspect-square" | "aspect-video" | "aspect-auto" | (string & {}) | number | null;
26
+ }
27
+ export interface StudioCropConfig {
28
+ aspect?: "aspect-square" | "aspect-video" | "aspect-auto" | (string & {}) | number | null;
29
+ presets?: StudioAspectPreset[];
30
+ shape?: CropShape;
31
+ fixed?: boolean;
32
+ naked?: boolean;
33
+ size?: number;
34
+ width?: number;
35
+ height?: number;
36
+ /** Output format, defaults to 'image/webp' or 'image/png' for round */
37
+ format?: "image/jpeg" | "image/png" | "image/webp" | (string & {});
38
+ /** Output quality for jpeg/webp between 0 and 1 */
39
+ quality?: number;
40
+ }
41
+ export interface StudioZoomConfig {
42
+ /** Min zoom scale. Default is auto (fits crop) */
43
+ min?: number;
44
+ /** Max zoom scale. Default is 10 */
45
+ max?: number;
46
+ /** Sensitivity of mouse wheel. Default is 0.05 */
47
+ step?: number;
48
+ }
49
+ export interface StudioToolbarConfig {
50
+ show?: boolean;
51
+ items?: StudioTool[];
52
+ }
53
+ export interface StudioExportConfig {
54
+ formats?: ("image/jpeg" | "image/png" | "image/webp" | (string & {}))[];
55
+ defaultFormat?: string;
56
+ quality?: number;
57
+ }
58
+ export interface StudioImageOptions {
59
+ /** Enable image studio components (<QDropZone>, <QImageCropper>, <QImageStudio>). Default: true */
60
+ enabled?: boolean;
61
+ /** Default export format. Default: 'image/webp' */
62
+ defaultFormat?: "image/jpeg" | "image/png" | "image/webp";
63
+ /** Default export quality (0-1). Default: 0.9 */
64
+ quality?: number;
65
+ /** Maximum file size in bytes (e.g. 5 * 1024 * 1024). */
66
+ maxFileSize?: number;
67
+ }
68
+ export interface StudioOptions {
69
+ /** Enable or disable Qarpeo Studio tools. Default: true when studio is configured */
70
+ enabled?: boolean;
71
+ /** Image upload, cropper, and studio tools. Default: true */
72
+ image?: boolean | StudioImageOptions;
73
+ /** Reserved for future video studio tools */
74
+ video?: boolean;
75
+ /** Reserved for future audio studio tools */
76
+ audio?: boolean;
77
+ /** Reserved for future PDF studio tools */
78
+ pdf?: boolean;
79
+ }
@@ -1,6 +1,9 @@
1
1
  import type { LayerLike } from "./drizzle.js";
2
2
  export interface DiscoveredBot {
3
- /** Name of the bot derived from the filename e.g. "telegram" from "telegram.ts" or "telegram.post.ts" */
3
+ /**
4
+ * Name of the bot derived from the filename e.g. "telegram" from "telegram.ts" or
5
+ * "telegram.post.ts"
6
+ */
4
7
  name: string;
5
8
  /** Absolute path to the source file */
6
9
  file: string;
@@ -14,7 +17,8 @@ export interface BotDiscoveryOptions {
14
17
  path?: string;
15
18
  }
16
19
  /**
17
- * Searches across all Nuxt layers for edge bot & webhook definition files inside `server/bots/` or `server/bot/`.
18
- * Automatically registers each file as a webhook handler mounted at `/api/bots/<name>`.
20
+ * Searches across all Nuxt layers for edge bot & webhook definition files inside `server/bots/` or
21
+ * `server/bot/`. Automatically registers each file as a webhook handler mounted at
22
+ * `/api/bots/<name>`.
19
23
  */
20
24
  export declare function findBotFiles(layers: readonly LayerLike[], options?: BotDiscoveryOptions): DiscoveredBot[];
@@ -1,4 +1,4 @@
1
- import type { CMSOptions } from "../types";
2
1
  import { type TableResolveOptions } from "../runtime/server/utils/table-names";
2
+ import type { CMSOptions } from "../types";
3
3
  export declare const ALL_CMS_TABLE_NAMES: readonly ["cms_collection", "cms_entry", "cms_revision", "cms_category", "cms_tag", "cms_bookmark", "cms_subscriber"];
4
4
  export declare function getActiveCmsTableNames(cms?: boolean | CMSOptions, prefixOrOptions?: boolean | string | TableResolveOptions): string[];
@@ -26,12 +26,12 @@ export interface SchemaExports {
26
26
  * Converts a plural table name to its singular form.
27
27
  *
28
28
  * @example
29
- * users -> user
30
- * posts -> post
31
- * categories -> category
32
- * addresses -> address
33
- * orderItems -> orderItem
34
- * usersTable -> user
29
+ * users -> user
30
+ * posts -> post
31
+ * categories -> category
32
+ * addresses -> address
33
+ * orderItems -> orderItem
34
+ * usersTable -> user
35
35
  */
36
36
  export declare function singularize(name: string): string;
37
37
  export declare function toPascalCase(str: string): string;
@@ -104,19 +104,18 @@ export interface DiscoveredDatabase {
104
104
  /** Checks if a directory contains any valid schema files. */
105
105
  export declare function hasDatabaseSchema(dirPath: string): boolean;
106
106
  /**
107
- * Discovers all databases configured or present across Nuxt layers.
108
- * Follows the strict rule: every database must have a folder with valid schema files,
109
- * or be configured in options.db.databases.
107
+ * Discovers all databases configured or present across Nuxt layers. Follows the strict rule: every
108
+ * database must have a folder with valid schema files, or be configured in options.db.databases.
110
109
  */
111
110
  export declare function discoverDatabases(layers: readonly LayerLike[], options?: any): DiscoveredDatabase[];
112
111
  /**
113
- * Resolves a specific database target by name, dirName, or binding.
114
- * If targetDbName is omitted, returns the primary database.
112
+ * Resolves a specific database target by name, dirName, or binding. If targetDbName is omitted,
113
+ * returns the primary database.
115
114
  */
116
115
  export declare function resolveDatabaseTarget(layers: readonly LayerLike[], targetDbName?: string, options?: any): DiscoveredDatabase;
117
116
  /**
118
- * Searches across all Nuxt layers for Drizzle database schema files.
119
- * If targetDb is passed, returns schemas only for that target database.
120
- * If targetDb is omitted, returns all discovered schema files across all databases.
117
+ * Searches across all Nuxt layers for Drizzle database schema files. If targetDb is passed, returns
118
+ * schemas only for that target database. If targetDb is omitted, returns all discovered schema
119
+ * files across all databases.
121
120
  */
122
121
  export declare function findSchemaFiles(layers: readonly LayerLike[], targetDb?: string): string[];
@@ -2,9 +2,9 @@ import type { LayerLike } from "./drizzle.js";
2
2
  /**
3
3
  * Searches across all Nuxt layers for inbound email handler files:
4
4
  *
5
- * - server/email.ts
6
- * - server/email/index.ts
7
- * - server/email/incoming.ts
8
- * - server/email/*.ts
5
+ * - Server/email.ts
6
+ * - Server/email/index.ts
7
+ * - Server/email/incoming.ts
8
+ * - Server/email/*.ts
9
9
  */
10
10
  export declare function findEmailHandlerFiles(layers: readonly LayerLike[], customDir?: string): string[];