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.
- package/README.md +197 -191
- package/dist/apps/cms.d.ts +1 -1
- package/dist/apps/comments.d.ts +1 -1
- package/dist/apps/payments.d.ts +1 -1
- package/dist/apps/store.d.ts +1 -1
- package/dist/chunks/{manifest.get.mjs → tools.mjs} +445 -430
- package/dist/cli/index.mjs +756 -746
- package/dist/core/aliases.d.ts +1 -1
- package/dist/core/context.d.ts +1 -1
- package/dist/core/d1-migrate.d.ts +1 -1
- package/dist/core/devtools.d.ts +1 -1
- package/dist/core/nitro.d.ts +1 -1
- package/dist/core/schema.d.ts +1 -1
- package/dist/core/server-utils.d.ts +1 -1
- package/dist/core/wrangler.d.ts +1 -1
- package/dist/fate/index.d.ts +8 -8
- package/dist/fate/index.mjs +3 -1
- package/dist/features/agents.d.ts +1 -1
- package/dist/features/auth.d.ts +1 -1
- package/dist/features/bots.d.ts +1 -1
- package/dist/features/console.d.ts +1 -1
- package/dist/features/fate.d.ts +1 -1
- package/dist/features/mail.d.ts +1 -1
- package/dist/features/mcp.d.ts +1 -1
- package/dist/features/multitenant.d.ts +1 -1
- package/dist/features/notifications.d.ts +1 -1
- package/dist/features/realtime.d.ts +1 -1
- package/dist/features/studio.d.ts +4 -0
- package/dist/module.d.ts +1 -1
- package/dist/module.mjs +5451 -5249
- package/dist/primitives/ai.d.ts +1 -1
- package/dist/primitives/analytics.d.ts +1 -1
- package/dist/primitives/blob.d.ts +1 -1
- package/dist/primitives/browser.d.ts +1 -1
- package/dist/primitives/cache.d.ts +1 -1
- package/dist/primitives/d1.d.ts +1 -1
- package/dist/primitives/do.d.ts +1 -1
- package/dist/primitives/email.d.ts +1 -1
- package/dist/primitives/hyperdrive.d.ts +1 -1
- package/dist/primitives/kv.d.ts +1 -1
- package/dist/primitives/queue.d.ts +1 -1
- package/dist/primitives/ratelimit.d.ts +1 -1
- package/dist/primitives/vectorize.d.ts +1 -1
- package/dist/primitives/workflows.d.ts +1 -1
- package/dist/runtime/ai.mjs +4 -1
- package/dist/runtime/app/components/CMSEditor.vue +439 -0
- package/dist/runtime/app/components/CMSEditorImageNode.vue +90 -0
- package/dist/runtime/app/components/CMSEditorLinkPopover.vue +120 -0
- package/dist/runtime/app/components/QDropZone.vue +327 -0
- package/dist/runtime/app/components/QImageCropper.vue +658 -0
- package/dist/runtime/app/components/QImageStudio.vue +300 -0
- package/dist/runtime/app/components/QImg.vue +7 -4
- package/dist/runtime/app/composables/analytics.d.ts +8 -8
- package/dist/runtime/app/composables/api-tokens.d.ts +5 -5
- package/dist/runtime/app/composables/auth.d.ts +23 -19
- package/dist/runtime/app/composables/chat.d.ts +7 -6
- package/dist/runtime/app/composables/cms-preview.d.ts +7 -8
- package/dist/runtime/app/composables/cms.d.ts +6 -6
- package/dist/runtime/app/composables/comments.d.ts +5 -5
- package/dist/runtime/app/composables/comments.mjs +7 -4
- package/dist/runtime/app/composables/console.d.ts +6 -14
- package/dist/runtime/app/composables/docs-version.d.ts +8 -8
- package/dist/runtime/app/composables/impersonation.d.ts +5 -5
- package/dist/runtime/app/composables/organization.d.ts +5 -5
- package/dist/runtime/app/composables/passkey.d.ts +5 -5
- package/dist/runtime/app/composables/passwordless.d.ts +5 -5
- package/dist/runtime/app/composables/payments.d.ts +5 -5
- package/dist/runtime/app/composables/rbac.d.ts +5 -5
- package/dist/runtime/app/composables/site.d.ts +2 -2
- package/dist/runtime/app/composables/sse.d.ts +20 -33
- package/dist/runtime/app/composables/sse.mjs +6 -3
- package/dist/runtime/app/composables/storage.d.ts +6 -8
- package/dist/runtime/app/composables/store.d.ts +52 -36
- package/dist/runtime/app/composables/store.mjs +70 -11
- package/dist/runtime/app/composables/studio.d.ts +59 -0
- package/dist/runtime/app/composables/studio.mjs +129 -0
- package/dist/runtime/app/composables/tenant.d.ts +7 -7
- package/dist/runtime/app/composables/turnstile.d.ts +5 -5
- package/dist/runtime/app/composables/two-factor.d.ts +5 -5
- package/dist/runtime/app/pages/devtools/notifications.vue +1 -6
- package/dist/runtime/app/plugins/pwa.mjs +1 -3
- package/dist/runtime/app/utils/cms-editor.d.ts +25 -0
- package/dist/runtime/app/utils/cms-editor.mjs +43 -0
- package/dist/runtime/auth.d.ts +9 -9
- package/dist/runtime/blob.d.ts +1 -3
- package/dist/runtime/blob.mjs +3 -1
- package/dist/runtime/cache.d.ts +8 -6
- package/dist/runtime/cache.mjs +8 -11
- package/dist/runtime/db.d.ts +4 -3
- package/dist/runtime/drizzle.d.ts +2 -1
- package/dist/runtime/drizzle.mjs +2 -2
- package/dist/runtime/queue.d.ts +1 -0
- package/dist/runtime/replica.d.ts +6 -10
- package/dist/runtime/replica.mjs +3 -1
- package/dist/runtime/schema-mysql.d.ts +16 -32
- package/dist/runtime/schema-pg.d.ts +15 -31
- package/dist/runtime/schema-shared.d.ts +20 -17
- package/dist/runtime/schema.d.ts +21 -33
- package/dist/runtime/server/durable-objects/agent.mjs +4 -1
- package/dist/runtime/server/durable-objects/room.d.ts +4 -6
- package/dist/runtime/server/durable-objects/room.mjs +18 -8
- package/dist/runtime/server/plugins/comments.d.ts +2 -3
- package/dist/runtime/server/plugins/email-inbound.d.ts +1 -3
- package/dist/runtime/server/plugins/store.d.ts +2 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/agents/run.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.get.mjs +10 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.post.mjs +10 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms.get.mjs +7 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/comments/moderate.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/comments/moderate.post.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/comments.get.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/extras.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/extras.get.mjs +15 -4
- package/dist/runtime/server/routes/__qarpeo/cloud/mail/unsuppress.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate/cms.post.mjs +13 -4
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate/products.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate.post.d.ts +3 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate.post.mjs +22 -6
- package/dist/runtime/server/routes/__qarpeo/cloud/notifications/test.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/operations.get.d.ts +6 -5
- package/dist/runtime/server/routes/__qarpeo/cloud/store/order-status.post.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/store/order-status.post.mjs +14 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/store/orders.get.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/store/orders.get.mjs +7 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/store/products.get.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/tasks/run.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/users/action.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/users/action.post.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/users.get.d.ts +6 -5
- package/dist/runtime/server/routes/__qarpeo/cloud/users.get.mjs +1 -3
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.mjs +2 -2
- package/dist/runtime/server/routes/__qarpeo/manifest.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/og.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/me.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.delete.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.delete.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.get.mjs +1 -5
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.post.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/rbac/users.post.d.ts +2 -2
- package/dist/runtime/server/routes/agents/[agent]/chat.post.mjs +1 -6
- package/dist/runtime/server/routes/agents/[agent]/clear.post.mjs +1 -6
- package/dist/runtime/server/routes/agents/[agent]/history.get.mjs +1 -6
- package/dist/runtime/server/routes/auth/2fa/disable.post.mjs +5 -1
- package/dist/runtime/server/routes/auth/2fa/verify.post.mjs +7 -1
- package/dist/runtime/server/routes/auth/magic-link/send.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/otp/send.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/search.get.mjs +2 -6
- package/dist/runtime/server/routes/comments/[id]/report.post.mjs +1 -4
- package/dist/runtime/server/routes/comments/[id].patch.mjs +1 -4
- package/dist/runtime/server/routes/comments/batch.post.mjs +1 -3
- package/dist/runtime/server/routes/comments/index.post.mjs +1 -5
- package/dist/runtime/server/routes/fate.mjs +1 -1
- package/dist/runtime/server/routes/mail/webhooks.post.mjs +1 -1
- package/dist/runtime/server/routes/sitemap.xml.get.mjs +2 -1
- package/dist/runtime/server/routes/storage/presigned-r2.post.d.ts +5 -6
- package/dist/runtime/server/routes/storage/presigned-r2.post.mjs +1 -1
- package/dist/runtime/server/routes/store/cart/items/[id].delete.mjs +1 -1
- package/dist/runtime/server/routes/store/cart/items/[id].patch.mjs +1 -1
- package/dist/runtime/server/routes/store/currencies.get.mjs +1 -4
- package/dist/runtime/server/routes/store/orders/[id].get.mjs +1 -1
- package/dist/runtime/server/routes/store/orders/download/[token].get.mjs +13 -4
- package/dist/runtime/server/routes/store/orders/index.get.mjs +1 -1
- package/dist/runtime/server/routes/store/products/index.get.mjs +2 -0
- package/dist/runtime/server/routes/store/tax/calculate.post.d.ts +2 -1
- package/dist/runtime/server/routes/store/tax/calculate.post.mjs +12 -3
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +4 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +4 -1
- package/dist/runtime/server/utils/ai.d.ts +38 -35
- package/dist/runtime/server/utils/ai.mjs +7 -11
- package/dist/runtime/server/utils/analytics-query.d.ts +4 -4
- package/dist/runtime/server/utils/auth.d.ts +25 -25
- package/dist/runtime/server/utils/auth.mjs +22 -8
- package/dist/runtime/server/utils/bots.d.ts +7 -7
- package/dist/runtime/server/utils/browser-utils.d.ts +26 -27
- package/dist/runtime/server/utils/cache.d.ts +20 -20
- package/dist/runtime/server/utils/cms/collections.mjs +1 -6
- package/dist/runtime/server/utils/cms/common.mjs +1 -0
- package/dist/runtime/server/utils/cms/markdown.d.ts +2 -2
- package/dist/runtime/server/utils/cms/markdown.mjs +5 -5
- package/dist/runtime/server/utils/cms/mutations.mjs +8 -23
- package/dist/runtime/server/utils/cms/navigation.mjs +4 -4
- package/dist/runtime/server/utils/cms/path.d.ts +1 -0
- package/dist/runtime/server/utils/cms/path.mjs +8 -2
- package/dist/runtime/server/utils/cms/references.mjs +1 -7
- package/dist/runtime/server/utils/cms/search.d.ts +2 -2
- package/dist/runtime/server/utils/cms/sync.mjs +4 -2
- package/dist/runtime/server/utils/cms/taxonomy.d.ts +2 -2
- package/dist/runtime/server/utils/cms.d.ts +1 -1
- package/dist/runtime/server/utils/cms.mjs +1 -5
- package/dist/runtime/server/utils/comments-filter.d.ts +9 -7
- package/dist/runtime/server/utils/comments.d.ts +68 -55
- package/dist/runtime/server/utils/comments.mjs +21 -9
- package/dist/runtime/server/utils/config.d.ts +2 -2
- package/dist/runtime/server/utils/console.d.ts +3 -5
- package/dist/runtime/server/utils/context.d.ts +10 -10
- package/dist/runtime/server/utils/crypto.d.ts +20 -20
- package/dist/runtime/server/utils/domains.mjs +3 -1
- package/dist/runtime/server/utils/drizzle.d.ts +24 -25
- package/dist/runtime/server/utils/drizzle.mjs +17 -17
- package/dist/runtime/server/utils/durable-object.d.ts +27 -25
- package/dist/runtime/server/utils/durable-object.mjs +3 -10
- package/dist/runtime/server/utils/email-inbound.d.ts +10 -10
- package/dist/runtime/server/utils/impersonation.d.ts +18 -18
- package/dist/runtime/server/utils/legacy-hash.d.ts +23 -27
- package/dist/runtime/server/utils/lock.d.ts +20 -23
- package/dist/runtime/server/utils/mail.d.ts +19 -19
- package/dist/runtime/server/utils/mail.mjs +4 -2
- package/dist/runtime/server/utils/mcp.d.ts +20 -20
- package/dist/runtime/server/utils/mcp.mjs +22 -38
- package/dist/runtime/server/utils/notifications.d.ts +49 -38
- package/dist/runtime/server/utils/oauth.d.ts +3 -9
- package/dist/runtime/server/utils/organization.d.ts +28 -28
- package/dist/runtime/server/utils/organization.mjs +15 -5
- package/dist/runtime/server/utils/passwordless.d.ts +24 -24
- package/dist/runtime/server/utils/payments/checkout.d.ts +12 -12
- package/dist/runtime/server/utils/payments/checkout.mjs +1 -3
- package/dist/runtime/server/utils/payments/common.d.ts +3 -3
- package/dist/runtime/server/utils/payments/paddle.d.ts +4 -1
- package/dist/runtime/server/utils/payments/polar.d.ts +4 -1
- package/dist/runtime/server/utils/payments/stripe.mjs +5 -7
- package/dist/runtime/server/utils/payments/subscriptions.d.ts +14 -14
- package/dist/runtime/server/utils/payments/subscriptions.mjs +2 -6
- package/dist/runtime/server/utils/payments/usage.mjs +1 -3
- package/dist/runtime/server/utils/payments/webhooks.mjs +2 -2
- package/dist/runtime/server/utils/queue.d.ts +54 -58
- package/dist/runtime/server/utils/queue.mjs +2 -6
- package/dist/runtime/server/utils/rag.d.ts +23 -23
- package/dist/runtime/server/utils/rag.mjs +10 -5
- package/dist/runtime/server/utils/ratelimit.d.ts +21 -18
- package/dist/runtime/server/utils/rbac.d.ts +13 -15
- package/dist/runtime/server/utils/rbac.mjs +44 -10
- package/dist/runtime/server/utils/realtime.d.ts +53 -52
- package/dist/runtime/server/utils/role-env.d.ts +5 -4
- package/dist/runtime/server/utils/scheduled-task.d.ts +14 -15
- package/dist/runtime/server/utils/session.d.ts +40 -40
- package/dist/runtime/server/utils/sse.d.ts +23 -33
- package/dist/runtime/server/utils/sse.mjs +5 -14
- package/dist/runtime/server/utils/sso.mjs +3 -1
- package/dist/runtime/server/utils/storage.d.ts +20 -22
- package/dist/runtime/server/utils/storage.mjs +2 -2
- package/dist/runtime/server/utils/store/cart.d.ts +5 -3
- package/dist/runtime/server/utils/store/cart.mjs +14 -10
- package/dist/runtime/server/utils/store/checkout.mjs +4 -1
- package/dist/runtime/server/utils/store/common.d.ts +1 -1
- package/dist/runtime/server/utils/store/common.mjs +36 -12
- package/dist/runtime/server/utils/store/inventory.mjs +3 -1
- package/dist/runtime/server/utils/store/orders.mjs +32 -24
- package/dist/runtime/server/utils/store/vendor.d.ts +11 -1
- package/dist/runtime/server/utils/store/vendor.mjs +47 -0
- package/dist/runtime/server/utils/store-localization.d.ts +9 -27
- package/dist/runtime/server/utils/store-localization.mjs +3 -3
- package/dist/runtime/server/utils/table-names.d.ts +15 -15
- package/dist/runtime/server/utils/table-names.mjs +1 -1
- package/dist/runtime/server/utils/tenant.d.ts +12 -12
- package/dist/runtime/server/utils/tenant.mjs +7 -4
- package/dist/runtime/server/utils/totp.d.ts +18 -18
- package/dist/runtime/server/utils/tracker.d.ts +5 -5
- package/dist/runtime/server/utils/turnstile.d.ts +9 -9
- package/dist/runtime/server/utils/urn.d.ts +5 -8
- package/dist/runtime/server/utils/workflows.d.ts +30 -31
- package/dist/runtime/server/utils/workflows.mjs +2 -4
- package/dist/runtime/server.d.ts +2 -2
- package/dist/runtime/service.d.ts +10 -10
- package/dist/runtime/test-utils.d.ts +10 -10
- package/dist/runtime/test-utils.mjs +9 -2
- package/dist/runtime/types/ai.d.ts +14 -14
- package/dist/runtime/types/d1.d.ts +6 -11
- package/dist/runtime/types/durable-object.d.ts +4 -8
- package/dist/runtime/types/email.d.ts +3 -9
- package/dist/runtime/types/index.d.ts +15 -21
- package/dist/runtime/types/r2.d.ts +5 -5
- package/dist/runtime/types/store.d.ts +7 -0
- package/dist/runtime/types/workflows.d.ts +5 -6
- package/dist/runtime/workflows.d.ts +1 -3
- package/dist/types/ai.d.ts +10 -17
- package/dist/types/auth.d.ts +5 -3
- package/dist/types/cache.d.ts +7 -7
- package/dist/types/cms.d.ts +30 -5
- package/dist/types/comments.d.ts +23 -21
- package/dist/types/console.d.ts +1 -3
- package/dist/types/db.d.ts +7 -7
- package/dist/types/index.d.ts +1 -0
- package/dist/types/options.d.ts +36 -24
- package/dist/types/site.d.ts +8 -2
- package/dist/types/storage.d.ts +2 -1
- package/dist/types/store-options.d.ts +31 -26
- package/dist/types/studio.d.ts +79 -0
- package/dist/utils/bots.d.ts +7 -3
- package/dist/utils/cms-table-names.d.ts +1 -1
- package/dist/utils/drizzle.d.ts +13 -14
- package/dist/utils/email-inbound.d.ts +4 -4
- package/dist/utils/features.d.ts +19 -5
- package/dist/utils/mcp.d.ts +1 -0
- package/dist/utils/migration-lock.d.ts +15 -29
- package/dist/utils/overridable-routes.d.ts +12 -0
- package/dist/utils/pkg.d.ts +6 -7
- package/dist/utils/schema-diff.d.ts +7 -11
- package/dist/utils/store-schema.d.ts +4 -6
- package/dist/utils/tools.d.ts +3 -3
- package/package.json +55 -5
package/dist/types/ai.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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" }`
|
package/dist/types/auth.d.ts
CHANGED
|
@@ -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,
|
|
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
|
-
*
|
|
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
|
}
|
package/dist/types/cache.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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
|
|
15
|
+
* Maximum age / TTL duration (e.g. 300, '5m', '1h', '7d'). Matches Nitro defineCachedFunction
|
|
16
|
+
* convention.
|
|
17
17
|
*
|
|
18
18
|
* @default 3600
|
|
19
19
|
*/
|
package/dist/types/cms.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
*/
|
package/dist/types/comments.d.ts
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Moderation configuration for the Qarpeo Comments system.
|
|
3
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
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
|
-
*
|
|
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
|
/**
|
package/dist/types/console.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/types/db.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* databases: ["analytics", "warehouse"]
|
|
26
|
+
* ```
|
|
27
27
|
*/
|
|
28
28
|
databases?: string[] | Record<string, SecondaryDatabaseConfig>;
|
|
29
29
|
}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/options.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
54
|
-
* -
|
|
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
|
-
*
|
|
72
|
-
*
|
|
75
|
+
* ```ts
|
|
76
|
+
* qarpeo: {
|
|
73
77
|
* tablePrefix: "q_",
|
|
74
78
|
* tables: {
|
|
75
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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,
|
|
345
|
+
* Website-injected `/console` staff & operations workspace plumbing (RBAC guards, composables,
|
|
346
|
+
* and nav builder).
|
|
335
347
|
*
|
|
336
348
|
* @default false
|
|
337
349
|
*/
|
package/dist/types/site.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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;
|
package/dist/types/storage.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
*
|
|
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>;
|