qarpeo 0.4.13 → 0.4.15

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 (304) hide show
  1. package/README.md +197 -191
  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 +5451 -5249
  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 +52 -36
  74. package/dist/runtime/app/composables/store.mjs +70 -11
  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/products/index.get.mjs +2 -0
  168. package/dist/runtime/server/routes/store/tax/calculate.post.d.ts +2 -1
  169. package/dist/runtime/server/routes/store/tax/calculate.post.mjs +12 -3
  170. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +4 -1
  171. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +4 -1
  172. package/dist/runtime/server/utils/ai.d.ts +38 -35
  173. package/dist/runtime/server/utils/ai.mjs +7 -11
  174. package/dist/runtime/server/utils/analytics-query.d.ts +4 -4
  175. package/dist/runtime/server/utils/auth.d.ts +25 -25
  176. package/dist/runtime/server/utils/auth.mjs +22 -8
  177. package/dist/runtime/server/utils/bots.d.ts +7 -7
  178. package/dist/runtime/server/utils/browser-utils.d.ts +26 -27
  179. package/dist/runtime/server/utils/cache.d.ts +20 -20
  180. package/dist/runtime/server/utils/cms/collections.mjs +1 -6
  181. package/dist/runtime/server/utils/cms/common.mjs +1 -0
  182. package/dist/runtime/server/utils/cms/markdown.d.ts +2 -2
  183. package/dist/runtime/server/utils/cms/markdown.mjs +5 -5
  184. package/dist/runtime/server/utils/cms/mutations.mjs +8 -23
  185. package/dist/runtime/server/utils/cms/navigation.mjs +4 -4
  186. package/dist/runtime/server/utils/cms/path.d.ts +1 -0
  187. package/dist/runtime/server/utils/cms/path.mjs +8 -2
  188. package/dist/runtime/server/utils/cms/references.mjs +1 -7
  189. package/dist/runtime/server/utils/cms/search.d.ts +2 -2
  190. package/dist/runtime/server/utils/cms/sync.mjs +4 -2
  191. package/dist/runtime/server/utils/cms/taxonomy.d.ts +2 -2
  192. package/dist/runtime/server/utils/cms.d.ts +1 -1
  193. package/dist/runtime/server/utils/cms.mjs +1 -5
  194. package/dist/runtime/server/utils/comments-filter.d.ts +9 -7
  195. package/dist/runtime/server/utils/comments.d.ts +68 -55
  196. package/dist/runtime/server/utils/comments.mjs +21 -9
  197. package/dist/runtime/server/utils/config.d.ts +2 -2
  198. package/dist/runtime/server/utils/console.d.ts +3 -5
  199. package/dist/runtime/server/utils/context.d.ts +10 -10
  200. package/dist/runtime/server/utils/crypto.d.ts +20 -20
  201. package/dist/runtime/server/utils/domains.mjs +3 -1
  202. package/dist/runtime/server/utils/drizzle.d.ts +24 -25
  203. package/dist/runtime/server/utils/drizzle.mjs +17 -17
  204. package/dist/runtime/server/utils/durable-object.d.ts +27 -25
  205. package/dist/runtime/server/utils/durable-object.mjs +3 -10
  206. package/dist/runtime/server/utils/email-inbound.d.ts +10 -10
  207. package/dist/runtime/server/utils/impersonation.d.ts +18 -18
  208. package/dist/runtime/server/utils/legacy-hash.d.ts +23 -27
  209. package/dist/runtime/server/utils/lock.d.ts +20 -23
  210. package/dist/runtime/server/utils/mail.d.ts +19 -19
  211. package/dist/runtime/server/utils/mail.mjs +4 -2
  212. package/dist/runtime/server/utils/mcp.d.ts +20 -20
  213. package/dist/runtime/server/utils/mcp.mjs +22 -38
  214. package/dist/runtime/server/utils/notifications.d.ts +49 -38
  215. package/dist/runtime/server/utils/oauth.d.ts +3 -9
  216. package/dist/runtime/server/utils/organization.d.ts +28 -28
  217. package/dist/runtime/server/utils/organization.mjs +15 -5
  218. package/dist/runtime/server/utils/passwordless.d.ts +24 -24
  219. package/dist/runtime/server/utils/payments/checkout.d.ts +12 -12
  220. package/dist/runtime/server/utils/payments/checkout.mjs +1 -3
  221. package/dist/runtime/server/utils/payments/common.d.ts +3 -3
  222. package/dist/runtime/server/utils/payments/paddle.d.ts +4 -1
  223. package/dist/runtime/server/utils/payments/polar.d.ts +4 -1
  224. package/dist/runtime/server/utils/payments/stripe.mjs +5 -7
  225. package/dist/runtime/server/utils/payments/subscriptions.d.ts +14 -14
  226. package/dist/runtime/server/utils/payments/subscriptions.mjs +2 -6
  227. package/dist/runtime/server/utils/payments/usage.mjs +1 -3
  228. package/dist/runtime/server/utils/payments/webhooks.mjs +2 -2
  229. package/dist/runtime/server/utils/queue.d.ts +54 -58
  230. package/dist/runtime/server/utils/queue.mjs +2 -6
  231. package/dist/runtime/server/utils/rag.d.ts +23 -23
  232. package/dist/runtime/server/utils/rag.mjs +10 -5
  233. package/dist/runtime/server/utils/ratelimit.d.ts +21 -18
  234. package/dist/runtime/server/utils/rbac.d.ts +13 -15
  235. package/dist/runtime/server/utils/rbac.mjs +44 -10
  236. package/dist/runtime/server/utils/realtime.d.ts +53 -52
  237. package/dist/runtime/server/utils/role-env.d.ts +5 -4
  238. package/dist/runtime/server/utils/scheduled-task.d.ts +14 -15
  239. package/dist/runtime/server/utils/session.d.ts +40 -40
  240. package/dist/runtime/server/utils/sse.d.ts +23 -33
  241. package/dist/runtime/server/utils/sse.mjs +5 -14
  242. package/dist/runtime/server/utils/sso.mjs +3 -1
  243. package/dist/runtime/server/utils/storage.d.ts +20 -22
  244. package/dist/runtime/server/utils/storage.mjs +2 -2
  245. package/dist/runtime/server/utils/store/cart.d.ts +5 -3
  246. package/dist/runtime/server/utils/store/cart.mjs +14 -10
  247. package/dist/runtime/server/utils/store/checkout.mjs +4 -1
  248. package/dist/runtime/server/utils/store/common.d.ts +1 -1
  249. package/dist/runtime/server/utils/store/common.mjs +36 -12
  250. package/dist/runtime/server/utils/store/inventory.mjs +3 -1
  251. package/dist/runtime/server/utils/store/orders.mjs +32 -24
  252. package/dist/runtime/server/utils/store/vendor.d.ts +11 -1
  253. package/dist/runtime/server/utils/store/vendor.mjs +47 -0
  254. package/dist/runtime/server/utils/store-localization.d.ts +9 -27
  255. package/dist/runtime/server/utils/store-localization.mjs +3 -3
  256. package/dist/runtime/server/utils/table-names.d.ts +15 -15
  257. package/dist/runtime/server/utils/table-names.mjs +1 -1
  258. package/dist/runtime/server/utils/tenant.d.ts +12 -12
  259. package/dist/runtime/server/utils/tenant.mjs +7 -4
  260. package/dist/runtime/server/utils/totp.d.ts +18 -18
  261. package/dist/runtime/server/utils/tracker.d.ts +5 -5
  262. package/dist/runtime/server/utils/turnstile.d.ts +9 -9
  263. package/dist/runtime/server/utils/urn.d.ts +5 -8
  264. package/dist/runtime/server/utils/workflows.d.ts +30 -31
  265. package/dist/runtime/server/utils/workflows.mjs +2 -4
  266. package/dist/runtime/server.d.ts +2 -2
  267. package/dist/runtime/service.d.ts +10 -10
  268. package/dist/runtime/test-utils.d.ts +10 -10
  269. package/dist/runtime/test-utils.mjs +9 -2
  270. package/dist/runtime/types/ai.d.ts +14 -14
  271. package/dist/runtime/types/d1.d.ts +6 -11
  272. package/dist/runtime/types/durable-object.d.ts +4 -8
  273. package/dist/runtime/types/email.d.ts +3 -9
  274. package/dist/runtime/types/index.d.ts +15 -21
  275. package/dist/runtime/types/r2.d.ts +5 -5
  276. package/dist/runtime/types/store.d.ts +7 -0
  277. package/dist/runtime/types/workflows.d.ts +5 -6
  278. package/dist/runtime/workflows.d.ts +1 -3
  279. package/dist/types/ai.d.ts +10 -17
  280. package/dist/types/auth.d.ts +5 -3
  281. package/dist/types/cache.d.ts +7 -7
  282. package/dist/types/cms.d.ts +30 -5
  283. package/dist/types/comments.d.ts +23 -21
  284. package/dist/types/console.d.ts +1 -3
  285. package/dist/types/db.d.ts +7 -7
  286. package/dist/types/index.d.ts +1 -0
  287. package/dist/types/options.d.ts +36 -24
  288. package/dist/types/site.d.ts +8 -2
  289. package/dist/types/storage.d.ts +2 -1
  290. package/dist/types/store-options.d.ts +31 -26
  291. package/dist/types/studio.d.ts +79 -0
  292. package/dist/utils/bots.d.ts +7 -3
  293. package/dist/utils/cms-table-names.d.ts +1 -1
  294. package/dist/utils/drizzle.d.ts +13 -14
  295. package/dist/utils/email-inbound.d.ts +4 -4
  296. package/dist/utils/features.d.ts +19 -5
  297. package/dist/utils/mcp.d.ts +1 -0
  298. package/dist/utils/migration-lock.d.ts +15 -29
  299. package/dist/utils/overridable-routes.d.ts +12 -0
  300. package/dist/utils/pkg.d.ts +6 -7
  301. package/dist/utils/schema-diff.d.ts +7 -11
  302. package/dist/utils/store-schema.d.ts +4 -6
  303. package/dist/utils/tools.d.ts +3 -3
  304. package/package.json +55 -5
@@ -432,33 +432,24 @@ export interface AutoRagSyncR2Result {
432
432
  }
433
433
  export interface AutoRag {
434
434
  /**
435
- * Ingest and index raw text, a document object, or an R2 file into Vectorize with zero manual pipelines.
435
+ * Ingest and index raw text, a document object, or an R2 file into Vectorize with zero manual
436
+ * pipelines.
436
437
  *
437
438
  * Automatically chunks text, computes embeddings via Workers AI GPU, and upserts into Vectorize.
438
439
  */
439
440
  index(input: AutoRagIndexable, options?: AutoRagIndexOptions): Promise<AutoRagIndexResult>;
440
- /**
441
- * Semantic vector search across indexed knowledge using Workers AI embeddings and Vectorize.
442
- */
441
+ /** Semantic vector search across indexed knowledge using Workers AI embeddings and Vectorize. */
443
442
  search(query: string, options?: AutoRagSearchOptions): Promise<AutoRagSearchResult>;
444
- /**
445
- * Directly answer a question using grounded RAG retrieval + LLM synthesis.
446
- */
443
+ /** Directly answer a question using grounded RAG retrieval + LLM synthesis. */
447
444
  answer(query: string, options?: AutoRagAnswerOptions): Promise<AutoRagAnswerResult>;
448
- /**
449
- * Delete a document and all its chunks from the index.
450
- */
445
+ /** Delete a document and all its chunks from the index. */
451
446
  delete(documentId: string, options?: {
452
447
  maxChunks?: number;
453
448
  event?: any;
454
449
  }): Promise<void>;
455
- /**
456
- * Automatically sync and index text/markdown files stored in an R2 bucket into Vectorize.
457
- */
450
+ /** Automatically sync and index text/markdown files stored in an R2 bucket into Vectorize. */
458
451
  syncR2(options?: AutoRagSyncR2Options): Promise<AutoRagSyncR2Result>;
459
- /**
460
- * Expose AutoRAG as a tool for autonomous agents.
461
- */
452
+ /** Expose AutoRAG as a tool for autonomous agents. */
462
453
  asTool(options?: {
463
454
  name?: string;
464
455
  description?: string;
@@ -502,7 +493,8 @@ export interface GenerateObjectOptions<T = any> {
502
493
  /** Optional system prompt to instruct the model. */
503
494
  system?: string;
504
495
  /**
505
- * Zod schema (e.g. `z.object({...})`) or plain JSON Schema defining the expected output structure.
496
+ * Zod schema (e.g. `z.object({...})`) or plain JSON Schema defining the expected output
497
+ * structure.
506
498
  */
507
499
  schema: any;
508
500
  /** Optional name for the JSON schema (default: "response"). */
@@ -525,6 +517,7 @@ export interface GenerateObjectOptions<T = any> {
525
517
  gateway?: AIGatewayOptions;
526
518
  /**
527
519
  * Extraction mode:
520
+ *
528
521
  * - "auto": Uses native JSON schema constrained decoding if supported, with prompt fallback
529
522
  * - "json_schema": Strict Workers AI `response_format: { type: "json_schema", ... }`
530
523
  * - "json_object": Workers AI `response_format: { type: "json_object" }`
@@ -21,11 +21,13 @@ export interface RateLimitConfig {
21
21
  export interface EmailInboundOptions {
22
22
  /**
23
23
  * Whether Cloudflare Inbound Email handling is enabled.
24
+ *
24
25
  * @default true
25
26
  */
26
27
  enabled?: boolean;
27
28
  /**
28
- * Custom directory or file path for email handlers (defaults to auto-discovering server/email.ts, server/email/*.ts).
29
+ * Custom directory or file path for email handlers (defaults to auto-discovering server/email.ts,
30
+ * server/email/*.ts).
29
31
  */
30
32
  dir?: string;
31
33
  }
@@ -52,8 +54,8 @@ export interface EmailOptions {
52
54
  */
53
55
  binding?: string;
54
56
  /**
55
- * Cloudflare Inbound Email configuration.
56
- * When enabled, routes incoming emails to your server/email handler.
57
+ * Cloudflare Inbound Email configuration. When enabled, routes incoming emails to your
58
+ * server/email handler.
57
59
  */
58
60
  inbound?: boolean | EmailInboundOptions;
59
61
  }
@@ -1,19 +1,19 @@
1
1
  export interface CachedFunctionOptions<Args extends any[] = any[]> {
2
2
  /**
3
- * Unique cache key string or key generator function.
4
- * If omitted, defaults to `name` or the function name.
3
+ * Unique cache key string or key generator function. If omitted, defaults to `name` or the
4
+ * function name.
5
5
  */
6
6
  key?: string | ((...args: Args) => string);
7
- /**
8
- * Key prefix or function name. Matches Nitro defineCachedFunction convention.
9
- */
7
+ /** Key prefix or function name. Matches Nitro defineCachedFunction convention. */
10
8
  name?: string;
11
9
  /**
12
- * Custom key generator function based on arguments. Matches Nitro defineCachedFunction convention.
10
+ * Custom key generator function based on arguments. Matches Nitro defineCachedFunction
11
+ * convention.
13
12
  */
14
13
  getKey?: (...args: Args) => string;
15
14
  /**
16
- * Maximum age / TTL duration (e.g. 300, '5m', '1h', '7d'). Matches Nitro defineCachedFunction convention.
15
+ * Maximum age / TTL duration (e.g. 300, '5m', '1h', '7d'). Matches Nitro defineCachedFunction
16
+ * convention.
17
17
  *
18
18
  * @default 3600
19
19
  */
@@ -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
  *
@@ -1,3 +1,13 @@
1
+ export interface StoreRoutesOptions {
2
+ products?: boolean;
3
+ categories?: boolean;
4
+ cart?: boolean;
5
+ coupons?: boolean;
6
+ checkout?: boolean;
7
+ orders?: boolean;
8
+ currencies?: boolean;
9
+ tax?: boolean;
10
+ }
1
11
  export interface StoreOptions {
2
12
  /**
3
13
  * Default 3-letter currency code (ISO 4217).
@@ -11,21 +21,28 @@ export interface StoreOptions {
11
21
  * @default "/api/store"
12
22
  */
13
23
  prefix?: string;
24
+ /**
25
+ * Enable or selectively disable auto-mounted Store REST API routes. Set to `false` to disable all
26
+ * injected routes (keep utils & composables only), or pass an object to disable specific route
27
+ * groups.
28
+ *
29
+ * Routes defined in your app's `server/` directory at the same path and method also automatically
30
+ * override the built-in route.
31
+ *
32
+ * @default true
33
+ */
34
+ routes?: boolean | StoreRoutesOptions;
14
35
  /**
15
36
  * Cookie expiration in seconds for anonymous guest carts.
16
37
  *
17
38
  * @default 2592000 (30 days)
18
39
  */
19
40
  cartCookieTtl?: number;
20
- /**
21
- * Cart configuration.
22
- */
41
+ /** Cart configuration. */
23
42
  cart?: {
24
43
  maxAgeDays?: number;
25
44
  };
26
- /**
27
- * Checkout configuration (tax, shipping).
28
- */
45
+ /** Checkout configuration (tax, shipping). */
29
46
  checkout?: {
30
47
  taxRate?: number;
31
48
  shippingRates?: Array<{
@@ -34,9 +51,7 @@ export interface StoreOptions {
34
51
  amount: number;
35
52
  }>;
36
53
  };
37
- /**
38
- * Multi-currency, FX exchange rates, and rule-based edge tax/VAT settings.
39
- */
54
+ /** Multi-currency, FX exchange rates, and rule-based edge tax/VAT settings. */
40
55
  localization?: {
41
56
  /** Base store currency (ISO 4217). Default: "USD" */
42
57
  defaultCurrency?: string;
@@ -58,9 +73,7 @@ export interface StoreOptions {
58
73
  b2bReverseCharge?: boolean;
59
74
  };
60
75
  };
61
- /**
62
- * Discount coupon configuration.
63
- */
76
+ /** Discount coupon configuration. */
64
77
  discounts?: {
65
78
  enabled?: boolean;
66
79
  };
@@ -70,9 +83,7 @@ export interface StoreOptions {
70
83
  * @default "single"
71
84
  */
72
85
  mode?: "single" | "multi-vendor";
73
- /**
74
- * Multi-vendor marketplace configuration. Active when `mode === "multi-vendor"`.
75
- */
86
+ /** Multi-vendor marketplace configuration. Active when `mode === "multi-vendor"`. */
76
87
  multiVendor?: {
77
88
  /** Default platform commission rate (e.g. 0.10 for 10% platform fee). @default 0 */
78
89
  commissionRate?: number;
@@ -81,16 +92,12 @@ export interface StoreOptions {
81
92
  /** Whether newly created products by vendors require approval before publishing. @default false */
82
93
  requireApproval?: boolean;
83
94
  };
84
- /**
85
- * Digital product download security settings.
86
- */
95
+ /** Digital product download security settings. */
87
96
  downloads?: {
88
97
  expiresInHours?: number;
89
98
  maxDownloads?: number;
90
99
  };
91
- /**
92
- * Inventory stock tracking configuration.
93
- */
100
+ /** Inventory stock tracking configuration. */
94
101
  inventory?: {
95
102
  /** Track inventory levels and prevent overselling. @default true */
96
103
  trackStock?: boolean;
@@ -99,9 +106,7 @@ export interface StoreOptions {
99
106
  /** Quantity at or below which the product is marked low-stock. @default 5 */
100
107
  lowStockThreshold?: number;
101
108
  };
102
- /**
103
- * Digital product download security settings.
104
- */
109
+ /** Digital product download security settings. */
105
110
  digitalProducts?: {
106
111
  /** Expiration window for presigned download URLs in hours. @default 24 */
107
112
  downloadLinkTtlHours?: number;
@@ -109,8 +114,8 @@ export interface StoreOptions {
109
114
  maxDownloadsPerItem?: number;
110
115
  };
111
116
  /**
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.
117
+ * Granular table name overrides or global table prefix for all store tables. Respects the same
118
+ * prefix/tables mechanics as `tablePrefix` on the root config.
114
119
  */
115
120
  tablePrefix?: boolean | string;
116
121
  tables?: Record<string, string>;