qarpeo 0.1.34 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -26
- package/dist/apps/cms.d.ts +4 -0
- package/dist/apps/comments.d.ts +4 -0
- package/dist/apps/payments.d.ts +4 -0
- package/dist/apps/store.d.ts +4 -0
- package/dist/chunks/auth-schema.mjs +169 -30
- package/dist/chunks/tools.mjs +1680 -0
- package/dist/cli/index.mjs +1256 -221
- package/dist/core/aliases.d.ts +5 -0
- package/dist/core/context.d.ts +10 -0
- package/dist/core/cross-drive.d.ts +2 -0
- package/dist/core/d1-migrate.d.ts +4 -0
- package/dist/core/devtools.d.ts +4 -0
- package/dist/core/nitro.d.ts +4 -0
- package/dist/core/schema.d.ts +4 -0
- package/dist/core/server-utils.d.ts +4 -0
- package/dist/core/wrangler.d.ts +4 -0
- package/dist/dev/wrangler.d.ts +1 -0
- package/dist/fate/index.d.ts +8 -8
- package/dist/features/agents.d.ts +4 -0
- package/dist/features/auth.d.ts +4 -0
- package/dist/features/bots.d.ts +4 -0
- package/dist/features/fate.d.ts +4 -0
- package/dist/features/mail.d.ts +4 -0
- package/dist/features/mcp.d.ts +4 -0
- package/dist/features/multitenant.d.ts +4 -0
- package/dist/features/notifications.d.ts +4 -0
- package/dist/features/realtime.d.ts +4 -0
- package/dist/module.d.ts +10 -2
- package/dist/module.mjs +6313 -5114
- package/dist/primitives/ai.d.ts +4 -0
- package/dist/primitives/analytics.d.ts +4 -0
- package/dist/primitives/blob.d.ts +4 -0
- package/dist/primitives/browser.d.ts +4 -0
- package/dist/primitives/cache.d.ts +4 -0
- package/dist/primitives/d1.d.ts +4 -0
- package/dist/primitives/do.d.ts +4 -0
- package/dist/primitives/email.d.ts +4 -0
- package/dist/primitives/hyperdrive.d.ts +4 -0
- package/dist/primitives/kv.d.ts +4 -0
- package/dist/primitives/queue.d.ts +4 -0
- package/dist/primitives/ratelimit.d.ts +4 -0
- package/dist/primitives/vectorize.d.ts +4 -0
- package/dist/primitives/workflows.d.ts +4 -0
- package/dist/runtime/ai.d.ts +3 -3
- package/dist/runtime/ai.mjs +8 -1
- package/dist/runtime/app/components/RealtimeCursors.vue +2 -2
- package/dist/runtime/app/composables/ai.d.ts +56 -29
- package/dist/runtime/app/composables/analytics.d.ts +26 -106
- package/dist/runtime/app/composables/api-tokens.d.ts +31 -34
- package/dist/runtime/app/composables/auth.d.ts +147 -51
- package/dist/runtime/app/composables/auth.mjs +0 -7
- package/dist/runtime/app/composables/chat.d.ts +38 -35
- package/dist/runtime/app/composables/cms-preview.d.ts +30 -25
- package/dist/runtime/app/composables/cms.d.ts +57 -282
- package/dist/runtime/app/composables/cms.mjs +0 -35
- package/dist/runtime/app/composables/comments.d.ts +32 -5
- package/dist/runtime/app/composables/comments.mjs +29 -1
- package/dist/runtime/app/composables/docs-version.d.ts +25 -28
- package/dist/runtime/app/composables/impersonation.d.ts +22 -5
- package/dist/runtime/app/composables/organization.d.ts +38 -91
- package/dist/runtime/app/composables/passkey.d.ts +22 -6
- package/dist/runtime/app/composables/passwordless.d.ts +24 -7
- package/dist/runtime/app/composables/payments.d.ts +50 -34
- package/dist/runtime/app/composables/payments.mjs +1 -0
- package/dist/runtime/app/composables/sse.d.ts +76 -0
- package/dist/runtime/app/composables/sse.mjs +152 -0
- package/dist/runtime/app/composables/storage.d.ts +53 -65
- package/dist/runtime/app/composables/storage.mjs +17 -0
- package/dist/runtime/app/composables/store.d.ts +198 -0
- package/dist/runtime/app/composables/store.mjs +414 -0
- package/dist/runtime/app/composables/tenant.d.ts +31 -72
- package/dist/runtime/app/composables/turnstile.d.ts +16 -3
- package/dist/runtime/app/composables/two-factor.d.ts +23 -6
- package/dist/runtime/app/pages/devtools/notifications.vue +30 -27
- package/dist/runtime/app/pages/devtools/realtime.vue +19 -31
- package/dist/runtime/app/pages/devtools.vue +0 -7
- package/dist/runtime/auth.d.ts +9 -9
- package/dist/runtime/blob.d.ts +10 -1
- package/dist/runtime/blob.mjs +83 -0
- package/dist/runtime/cache.d.ts +48 -0
- package/dist/runtime/cache.mjs +92 -0
- package/dist/runtime/comments.d.ts +4 -0
- package/dist/runtime/comments.mjs +2 -0
- package/dist/runtime/db.d.ts +21 -1
- package/dist/runtime/db.mjs +54 -0
- package/dist/runtime/drizzle.d.ts +4 -2
- package/dist/runtime/drizzle.mjs +68 -1
- package/dist/runtime/durable-object.d.ts +2 -0
- package/dist/runtime/durable-object.mjs +2 -0
- package/dist/runtime/email.d.ts +1 -1
- package/dist/runtime/email.mjs +1 -1
- package/dist/runtime/kv.mjs +50 -1
- package/dist/runtime/mcp.d.ts +2 -0
- package/dist/runtime/mcp.mjs +2 -0
- package/dist/runtime/queue.d.ts +12 -2
- package/dist/runtime/queue.mjs +19 -1
- package/dist/runtime/ratelimit.d.ts +1 -0
- package/dist/runtime/ratelimit.mjs +7 -0
- package/dist/runtime/schema.d.ts +313 -0
- package/dist/runtime/schema.mjs +259 -0
- package/dist/runtime/server/db/cms-schema.d.ts +1225 -171
- package/dist/runtime/server/db/cms-schema.mjs +69 -70
- package/dist/runtime/server/db/store-schema.d.ts +4344 -0
- package/dist/runtime/server/db/store-schema.mjs +266 -0
- package/dist/runtime/server/durable-objects/agent.mjs +35 -0
- package/dist/runtime/server/durable-objects/room.mjs +0 -1
- package/dist/runtime/server/middleware/ratelimit.mjs +10 -8
- package/dist/runtime/server/plugins/comments.d.ts +7 -0
- package/dist/runtime/server/plugins/comments.mjs +7 -0
- package/dist/runtime/server/plugins/email-inbound.d.ts +5 -0
- package/dist/runtime/server/plugins/email-inbound.mjs +17 -0
- package/dist/runtime/server/plugins/store.d.ts +7 -0
- package/dist/runtime/server/plugins/store.mjs +7 -0
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.mjs +2 -2
- package/dist/runtime/server/routes/atom.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/auth/2fa/disable.post.mjs +13 -2
- package/dist/runtime/server/routes/auth/2fa/setup.post.mjs +9 -3
- package/dist/runtime/server/routes/auth/2fa/verify.post.mjs +11 -3
- package/dist/runtime/server/routes/auth/account.delete.mjs +2 -1
- package/dist/runtime/server/routes/auth/audit-logs.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/magic-link/send.post.d.ts +1 -9
- package/dist/runtime/server/routes/auth/magic-link/send.post.mjs +8 -0
- package/dist/runtime/server/routes/auth/organization/sso/[id].delete.mjs +1 -1
- package/dist/runtime/server/routes/auth/organization/sso/index.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/organization/sso/index.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/otp/send.post.d.ts +1 -9
- package/dist/runtime/server/routes/auth/otp/send.post.mjs +8 -0
- package/dist/runtime/server/routes/auth/sso/login.get.mjs +3 -3
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.mjs +2 -2
- package/dist/runtime/server/routes/auth/webauthn/login/options.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/webauthn/login/verify.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.mjs +2 -2
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/cms/bookmarks/[id].delete.mjs +1 -1
- package/dist/runtime/server/routes/cms/bookmarks/check.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/bookmarks/index.get.mjs +1 -1
- package/dist/runtime/server/routes/cms/bookmarks/index.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/deploy.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/export.post.mjs +4 -3
- package/dist/runtime/server/routes/cms/search.get.mjs +7 -5
- package/dist/runtime/server/routes/cms/sync.post.mjs +2 -1
- package/dist/runtime/server/routes/comments/[id]/react.post.mjs +1 -2
- package/dist/runtime/server/routes/comments/[id]/report.post.d.ts +1 -1
- package/dist/runtime/server/routes/comments/[id]/report.post.mjs +0 -2
- package/dist/runtime/server/routes/comments/[id].delete.mjs +8 -4
- package/dist/runtime/server/routes/comments/[id].get.d.ts +1 -1
- package/dist/runtime/server/routes/comments/[id].get.mjs +1 -2
- package/dist/runtime/server/routes/comments/[id].patch.d.ts +1 -1
- package/dist/runtime/server/routes/comments/[id].patch.mjs +6 -3
- package/dist/runtime/server/routes/comments/batch.post.d.ts +2 -0
- package/dist/runtime/server/routes/comments/batch.post.mjs +33 -0
- package/dist/runtime/server/routes/comments/index.get.d.ts +1 -1
- package/dist/runtime/server/routes/comments/index.get.mjs +6 -4
- package/dist/runtime/server/routes/comments/index.post.d.ts +1 -1
- package/dist/runtime/server/routes/comments/index.post.mjs +6 -2
- package/dist/runtime/server/routes/feed.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/sitemap.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/storage/presigned-r2.post.d.ts +17 -0
- package/dist/runtime/server/routes/storage/presigned-r2.post.mjs +29 -0
- package/dist/runtime/server/routes/store/cart/index.delete.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/index.delete.mjs +11 -0
- package/dist/runtime/server/routes/store/cart/index.get.d.ts +5 -0
- package/dist/runtime/server/routes/store/cart/index.get.mjs +14 -0
- package/dist/runtime/server/routes/store/cart/items/[id].delete.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/items/[id].delete.mjs +25 -0
- package/dist/runtime/server/routes/store/cart/items/[id].patch.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/items/[id].patch.mjs +29 -0
- package/dist/runtime/server/routes/store/cart/items.post.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/items.post.mjs +36 -0
- package/dist/runtime/server/routes/store/categories/index.get.d.ts +2 -0
- package/dist/runtime/server/routes/store/categories/index.get.mjs +8 -0
- package/dist/runtime/server/routes/store/checkout.post.d.ts +6 -0
- package/dist/runtime/server/routes/store/checkout.post.mjs +21 -0
- package/dist/runtime/server/routes/store/coupons/apply.post.d.ts +7 -0
- package/dist/runtime/server/routes/store/coupons/apply.post.mjs +18 -0
- package/dist/runtime/server/routes/store/currencies.get.d.ts +15 -0
- package/dist/runtime/server/routes/store/currencies.get.mjs +13 -0
- package/dist/runtime/server/routes/store/orders/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/store/orders/[id].get.mjs +26 -0
- package/dist/runtime/server/routes/store/orders/download/[token].get.d.ts +7 -0
- package/dist/runtime/server/routes/store/orders/download/[token].get.mjs +57 -0
- package/dist/runtime/server/routes/store/orders/index.get.d.ts +5 -0
- package/dist/runtime/server/routes/store/orders/index.get.mjs +30 -0
- package/dist/runtime/server/routes/store/products/[slug].get.d.ts +2 -0
- package/dist/runtime/server/routes/store/products/[slug].get.mjs +18 -0
- package/dist/runtime/server/routes/store/products/index.get.d.ts +5 -0
- package/dist/runtime/server/routes/store/products/index.get.mjs +33 -0
- package/dist/runtime/server/routes/store/tax/calculate.post.d.ts +9 -0
- package/dist/runtime/server/routes/store/tax/calculate.post.mjs +18 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +14 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +14 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.mjs +24 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.mjs +6 -0
- package/dist/runtime/server/utils/ai.d.ts +146 -21
- package/dist/runtime/server/utils/ai.mjs +406 -11
- package/dist/runtime/server/utils/analytics-query.d.ts +13 -58
- package/dist/runtime/server/utils/audit.d.ts +5 -4
- package/dist/runtime/server/utils/audit.mjs +25 -14
- package/dist/runtime/server/utils/auth.d.ts +29 -12
- package/dist/runtime/server/utils/auth.mjs +88 -70
- package/dist/runtime/server/utils/bots.d.ts +20 -4
- package/dist/runtime/server/utils/bots.mjs +7 -3
- package/dist/runtime/server/utils/browser-utils.d.ts +23 -23
- package/dist/runtime/server/utils/cache.d.ts +31 -10
- package/dist/runtime/server/utils/cache.mjs +130 -53
- package/dist/runtime/server/utils/cms/collections.d.ts +23 -0
- package/dist/runtime/server/utils/cms/collections.mjs +143 -0
- package/dist/runtime/server/utils/cms/common.d.ts +9 -0
- package/dist/runtime/server/utils/cms/common.mjs +28 -0
- package/dist/runtime/server/utils/cms/git.mjs +2 -2
- package/dist/runtime/server/utils/cms/navigation.d.ts +46 -0
- package/dist/runtime/server/utils/cms/navigation.mjs +683 -0
- package/dist/runtime/server/utils/cms/preview.d.ts +11 -0
- package/dist/runtime/server/utils/cms/preview.mjs +50 -0
- package/dist/runtime/server/utils/cms/search.d.ts +1 -1
- package/dist/runtime/server/utils/cms/search.mjs +11 -7
- package/dist/runtime/server/utils/cms/sync.d.ts +34 -0
- package/dist/runtime/server/utils/cms/sync.mjs +1082 -0
- package/dist/runtime/server/utils/cms/taxonomy.d.ts +103 -0
- package/dist/runtime/server/utils/cms/taxonomy.mjs +348 -0
- package/dist/runtime/server/utils/cms.d.ts +13 -249
- package/dist/runtime/server/utils/cms.mjs +108 -2350
- package/dist/runtime/server/utils/comments-filter.d.ts +45 -0
- package/dist/runtime/server/utils/comments-filter.mjs +541 -0
- package/dist/runtime/server/utils/comments.d.ts +71 -0
- package/dist/runtime/server/utils/comments.mjs +137 -61
- package/dist/runtime/server/utils/config.d.ts +4 -3
- package/dist/runtime/server/utils/config.mjs +7 -6
- package/dist/runtime/server/utils/context.d.ts +14 -0
- package/dist/runtime/server/utils/context.mjs +2 -2
- package/dist/runtime/server/utils/crypto.d.ts +44 -5
- package/dist/runtime/server/utils/crypto.mjs +18 -0
- package/dist/runtime/server/utils/domains.mjs +9 -5
- package/dist/runtime/server/utils/drizzle.d.ts +35 -3
- package/dist/runtime/server/utils/drizzle.mjs +115 -6
- package/dist/runtime/server/utils/durable-object.d.ts +106 -0
- package/dist/runtime/server/utils/durable-object.mjs +628 -0
- package/dist/runtime/server/utils/email-inbound.d.ts +29 -0
- package/dist/runtime/server/utils/email-inbound.mjs +76 -0
- package/dist/runtime/server/utils/impersonation.d.ts +32 -2
- package/dist/runtime/server/utils/impersonation.mjs +16 -13
- package/dist/runtime/server/utils/lock.d.ts +71 -0
- package/dist/runtime/server/utils/lock.mjs +139 -0
- package/dist/runtime/server/utils/mail-suppression.mjs +7 -7
- package/dist/runtime/server/utils/mail.d.ts +30 -19
- package/dist/runtime/server/utils/mcp.d.ts +44 -0
- package/dist/runtime/server/utils/mcp.mjs +308 -0
- package/dist/runtime/server/utils/notifications.d.ts +72 -7
- package/dist/runtime/server/utils/notifications.mjs +67 -55
- package/dist/runtime/server/utils/oauth.d.ts +27 -4
- package/dist/runtime/server/utils/organization.d.ts +63 -7
- package/dist/runtime/server/utils/organization.mjs +26 -21
- package/dist/runtime/server/utils/passwordless.d.ts +62 -33
- package/dist/runtime/server/utils/payments.d.ts +51 -12
- package/dist/runtime/server/utils/payments.mjs +472 -282
- package/dist/runtime/server/utils/queue.d.ts +106 -13
- package/dist/runtime/server/utils/queue.mjs +313 -28
- package/dist/runtime/server/utils/rag.d.ts +42 -14
- package/dist/runtime/server/utils/rag.mjs +169 -4
- package/dist/runtime/server/utils/ratelimit.d.ts +34 -5
- package/dist/runtime/server/utils/ratelimit.mjs +95 -14
- package/dist/runtime/server/utils/realtime.d.ts +68 -52
- package/dist/runtime/server/utils/scheduled-task.d.ts +42 -1
- package/dist/runtime/server/utils/scheduled-task.mjs +29 -0
- package/dist/runtime/server/utils/schema-fallback.d.ts +1 -1
- package/dist/runtime/server/utils/schema-fallback.mjs +1 -1
- package/dist/runtime/server/utils/session.d.ts +84 -10
- package/dist/runtime/server/utils/session.mjs +12 -10
- package/dist/runtime/server/utils/sse.d.ts +75 -0
- package/dist/runtime/server/utils/sse.mjs +147 -0
- package/dist/runtime/server/utils/sso.d.ts +1 -1
- package/dist/runtime/server/utils/storage.d.ts +53 -4
- package/dist/runtime/server/utils/storage.mjs +15 -11
- package/dist/runtime/server/utils/store-localization.d.ts +51 -0
- package/dist/runtime/server/utils/store-localization.mjs +417 -0
- package/dist/runtime/server/utils/store.d.ts +207 -0
- package/dist/runtime/server/utils/store.mjs +2227 -0
- package/dist/runtime/server/utils/table-names.d.ts +51 -0
- package/dist/runtime/server/utils/table-names.mjs +69 -0
- package/dist/runtime/server/utils/tenant.d.ts +26 -2
- package/dist/runtime/server/utils/tenant.mjs +16 -12
- package/dist/runtime/server/utils/tools-registry-fallback.d.ts +1 -0
- package/dist/runtime/server/utils/tools-registry-fallback.mjs +1 -0
- package/dist/runtime/server/utils/totp.d.ts +45 -2
- package/dist/runtime/server/utils/tracker.d.ts +10 -11
- package/dist/runtime/server/utils/turnstile.d.ts +16 -1
- package/dist/runtime/server/utils/workflows.d.ts +92 -0
- package/dist/runtime/server/utils/workflows.mjs +299 -0
- package/dist/runtime/server.d.ts +8 -1
- package/dist/runtime/server.mjs +8 -5
- package/dist/runtime/service.d.ts +10 -10
- package/dist/runtime/storage.d.ts +1 -0
- package/dist/runtime/storage.mjs +1 -0
- package/dist/runtime/store.d.ts +4 -0
- package/dist/runtime/store.mjs +2 -0
- package/dist/runtime/test-utils.d.ts +11 -10
- package/dist/runtime/test-utils.mjs +64 -4
- package/dist/runtime/types/ai.d.ts +21 -2
- package/dist/runtime/types/d1.d.ts +17 -0
- package/dist/runtime/types/drizzle.d.ts +2 -2
- package/dist/runtime/types/durable-object.d.ts +62 -2
- package/dist/runtime/types/email.d.ts +46 -0
- package/dist/runtime/types/imports.d.ts +6 -1
- package/dist/runtime/types/index.d.ts +58 -0
- package/dist/runtime/types/index.mjs +3 -0
- package/dist/runtime/types/mcp.d.ts +83 -0
- package/dist/runtime/types/mcp.mjs +0 -0
- package/dist/runtime/types/queue.d.ts +36 -0
- package/dist/runtime/types/r2.d.ts +41 -0
- package/dist/runtime/types/store.d.ts +313 -0
- package/dist/runtime/types/store.mjs +0 -0
- package/dist/runtime/types/workflows.d.ts +98 -0
- package/dist/runtime/types/workflows.mjs +0 -0
- package/dist/runtime/workflows.d.ts +5 -0
- package/dist/runtime/workflows.mjs +2 -0
- package/dist/types/ai.d.ts +721 -0
- package/dist/types/cms.d.ts +710 -0
- package/dist/types.d.ts +430 -1292
- package/dist/utils/auth-schema.d.ts +3 -2
- package/dist/utils/bots.d.ts +20 -0
- package/dist/utils/comments-schema.d.ts +5 -4
- package/dist/utils/drizzle.d.ts +83 -3
- package/dist/utils/durable-objects.d.ts +10 -0
- package/dist/utils/email-inbound.d.ts +10 -0
- package/dist/utils/local-db.d.ts +1 -3
- package/dist/utils/mcp.d.ts +24 -0
- package/dist/utils/notifications-schema.d.ts +5 -4
- package/dist/utils/payments-schema.d.ts +4 -3
- package/dist/utils/store-schema.d.ts +14 -0
- package/dist/utils/table-names.d.ts +1 -0
- package/dist/utils/tenants-schema.d.ts +4 -3
- package/dist/utils/tools.d.ts +20 -0
- package/dist/utils/workflows.d.ts +8 -0
- package/package.json +34 -4
- package/dist/chunks/wrangler.mjs +0 -897
- package/dist/runtime/app/components/AuthRegister.vue +0 -306
- package/dist/runtime/app/components/AuthSessionsList.vue +0 -137
- package/dist/runtime/app/components/AuthSignIn.vue +0 -298
- package/dist/runtime/app/components/CMSBookmarkButton.vue +0 -59
- package/dist/runtime/app/components/CMSImage.vue +0 -47
- package/dist/runtime/app/components/CMSLocaleSwitcher.vue +0 -110
- package/dist/runtime/app/components/CMSNewsletter.vue +0 -81
- package/dist/runtime/app/components/CMSPreviewBanner.vue +0 -83
- package/dist/runtime/app/components/CMSTableOfContents.vue +0 -84
- package/dist/runtime/app/components/CMSVersionBanner.vue +0 -53
- package/dist/runtime/app/components/CMSVersionSwitcher.vue +0 -140
- package/dist/runtime/app/components/Comments.vue +0 -411
- package/dist/runtime/app/components/FileUpload.vue +0 -200
- package/dist/runtime/app/components/ImpersonationBanner.vue +0 -61
- package/dist/runtime/app/components/NotificationBell.vue +0 -263
- package/dist/runtime/app/components/NotificationList.vue +0 -205
- package/dist/runtime/app/components/NotificationPrompt.vue +0 -133
- package/dist/runtime/app/components/PricingGated.vue +0 -81
- package/dist/runtime/app/components/PricingTable.vue +0 -274
- package/dist/runtime/app/components/RealtimeChat.vue +0 -164
- package/dist/runtime/app/components/RealtimePresence.vue +0 -129
- package/dist/runtime/app/components/RealtimeStatus.vue +0 -79
- package/dist/runtime/app/components/SubscriptionCard.vue +0 -207
- package/dist/runtime/app/components/UserProfile.vue +0 -558
|
@@ -1,19 +1,101 @@
|
|
|
1
|
+
import { createAuthClient } from "better-auth/vue";
|
|
2
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
1
3
|
import type { QarpeoUser, QarpeoSession, DeleteAccountOptions } from "../../types/auth";
|
|
2
4
|
/** Official Better Auth Vue Client Instance */
|
|
3
|
-
export declare const authClient:
|
|
5
|
+
export declare const authClient: ReturnType<typeof createAuthClient>;
|
|
4
6
|
/** Standard Better Auth session composable compatible with Nuxt 5 SSR hydration. */
|
|
5
|
-
export declare function useSession():
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
export declare function useSession(): Readonly<Ref<{
|
|
8
|
+
readonly data: {
|
|
9
|
+
readonly user: {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly createdAt: Date;
|
|
12
|
+
readonly updatedAt: Date;
|
|
13
|
+
readonly email: string;
|
|
14
|
+
readonly emailVerified: boolean;
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly image?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
readonly session: {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly createdAt: Date;
|
|
21
|
+
readonly updatedAt: Date;
|
|
22
|
+
readonly userId: string;
|
|
23
|
+
readonly expiresAt: Date;
|
|
24
|
+
readonly token: string;
|
|
25
|
+
readonly ipAddress?: string | null | undefined;
|
|
26
|
+
readonly userAgent?: string | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
} | null;
|
|
29
|
+
readonly isPending: boolean;
|
|
30
|
+
readonly isRefetching: boolean;
|
|
31
|
+
readonly error: import("better-auth/vue").BetterFetchError | null;
|
|
32
|
+
readonly refetch: (queryParams?: {
|
|
33
|
+
query?: import("better-auth").SessionQueryParams;
|
|
34
|
+
} | undefined) => Promise<void>;
|
|
35
|
+
}, {
|
|
36
|
+
readonly data: {
|
|
37
|
+
readonly user: {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly createdAt: Date;
|
|
40
|
+
readonly updatedAt: Date;
|
|
41
|
+
readonly email: string;
|
|
42
|
+
readonly emailVerified: boolean;
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly image?: string | null | undefined;
|
|
45
|
+
};
|
|
46
|
+
readonly session: {
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly createdAt: Date;
|
|
49
|
+
readonly updatedAt: Date;
|
|
50
|
+
readonly userId: string;
|
|
51
|
+
readonly expiresAt: Date;
|
|
52
|
+
readonly token: string;
|
|
53
|
+
readonly ipAddress?: string | null | undefined;
|
|
54
|
+
readonly userAgent?: string | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
} | null;
|
|
57
|
+
readonly isPending: boolean;
|
|
58
|
+
readonly isRefetching: boolean;
|
|
59
|
+
readonly error: import("better-auth/vue").BetterFetchError | null;
|
|
60
|
+
readonly refetch: (queryParams?: {
|
|
61
|
+
query?: import("better-auth").SessionQueryParams;
|
|
62
|
+
} | undefined) => Promise<void>;
|
|
63
|
+
}>>;
|
|
64
|
+
export interface UseUserSessionReturn {
|
|
65
|
+
/** Whether the session has completed its initial hydration check. */
|
|
66
|
+
ready: ComputedRef<boolean>;
|
|
67
|
+
/** Whether an authenticated user session is active. */
|
|
68
|
+
loggedIn: ComputedRef<boolean>;
|
|
69
|
+
/** Current authenticated user object, or null if guest. */
|
|
70
|
+
user: ComputedRef<QarpeoUser | null>;
|
|
71
|
+
/** Current active session details. */
|
|
72
|
+
session: ComputedRef<QarpeoSession | null>;
|
|
73
|
+
/** Raw session data payload from Better Auth. */
|
|
74
|
+
data: ComputedRef<any>;
|
|
75
|
+
/** Whether a session refresh or background check is pending. */
|
|
76
|
+
isPending: ComputedRef<boolean>;
|
|
77
|
+
/** Any error produced by session fetch. */
|
|
78
|
+
error: ComputedRef<any>;
|
|
79
|
+
/** Re-evaluates and refetches the active session from the server. */
|
|
14
80
|
fetch: () => Promise<void>;
|
|
81
|
+
/** Clears the current session by signing out. */
|
|
15
82
|
clear: () => Promise<void>;
|
|
16
|
-
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Headless user session composable providing reactive authentication state, user profiles, and session checks.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```vue
|
|
89
|
+
* <script setup lang="ts">
|
|
90
|
+
* const { loggedIn, user, clear } = useUserSession()
|
|
91
|
+
* </script>
|
|
92
|
+
*
|
|
93
|
+
* <template>
|
|
94
|
+
* <div v-if="loggedIn">Welcome, {{ user?.name }}! <button @click="clear">Sign Out</button></div>
|
|
95
|
+
* </template>
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare function useUserSession(): UseUserSessionReturn;
|
|
17
99
|
export interface QarpeoDeviceSession {
|
|
18
100
|
id: string;
|
|
19
101
|
clientType: string;
|
|
@@ -23,51 +105,65 @@ export interface QarpeoDeviceSession {
|
|
|
23
105
|
expiresAt: number;
|
|
24
106
|
isCurrent: boolean;
|
|
25
107
|
}
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
108
|
+
export interface SSOParams {
|
|
109
|
+
domain?: string;
|
|
110
|
+
org?: string;
|
|
111
|
+
connectionId?: string;
|
|
112
|
+
redirect?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface UseAuthReturn {
|
|
115
|
+
/** Whether an authenticated user is currently logged in. */
|
|
116
|
+
loggedIn: ComputedRef<boolean>;
|
|
117
|
+
/** Typed current user object or null. */
|
|
118
|
+
user: ComputedRef<QarpeoUser | null>;
|
|
119
|
+
/** Typed current session object or null. */
|
|
120
|
+
session: ComputedRef<QarpeoSession | null>;
|
|
121
|
+
/** Whether authentication state has been hydrated and verified. */
|
|
122
|
+
ready: ComputedRef<boolean>;
|
|
123
|
+
/** Re-validates active session state from the server. */
|
|
31
124
|
fetch: () => Promise<void>;
|
|
125
|
+
/** Clears local authentication state. */
|
|
32
126
|
clear: () => Promise<void>;
|
|
127
|
+
/** Signs out from the session and navigates to target path (defaults to redirect.logout or /login). */
|
|
33
128
|
logout: (redirect?: string) => Promise<void>;
|
|
129
|
+
/** Logs out all device sessions for the current user and redirects. */
|
|
34
130
|
logoutAll: (redirect?: string) => Promise<void>;
|
|
35
|
-
client
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
signOut:
|
|
43
|
-
|
|
44
|
-
|
|
131
|
+
/** Raw Better Auth Vue client instance. */
|
|
132
|
+
client: ReturnType<typeof createAuthClient>;
|
|
133
|
+
/** Better Auth signIn helper. */
|
|
134
|
+
signIn: (ReturnType<typeof createAuthClient>)["signIn"];
|
|
135
|
+
/** Better Auth signUp helper. */
|
|
136
|
+
signUp: (ReturnType<typeof createAuthClient>)["signUp"];
|
|
137
|
+
/** Raw Better Auth signOut without automatic route navigation. */
|
|
138
|
+
signOut: (ReturnType<typeof createAuthClient>)["signOut"];
|
|
139
|
+
/** Whether Multi-Factor Authentication is currently required to continue. */
|
|
140
|
+
mfaRequired: ComputedRef<boolean>;
|
|
141
|
+
/** Whether Multi-Factor Authentication has been successfully verified. */
|
|
142
|
+
mfaVerified: ComputedRef<boolean>;
|
|
143
|
+
/** Permanently deletes the current user account and cleans up all data. */
|
|
45
144
|
deleteAccount: (options?: DeleteAccountOptions, redirect?: string) => Promise<void>;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
sessions
|
|
53
|
-
id: string;
|
|
54
|
-
clientType: string;
|
|
55
|
-
userAgent: string | null;
|
|
56
|
-
ipAddress: string | null;
|
|
57
|
-
lastActive: number;
|
|
58
|
-
expiresAt: number;
|
|
59
|
-
isCurrent: boolean;
|
|
60
|
-
}[], QarpeoDeviceSession[] | {
|
|
61
|
-
id: string;
|
|
62
|
-
clientType: string;
|
|
63
|
-
userAgent: string | null;
|
|
64
|
-
ipAddress: string | null;
|
|
65
|
-
lastActive: number;
|
|
66
|
-
expiresAt: number;
|
|
67
|
-
isCurrent: boolean;
|
|
68
|
-
}[]>;
|
|
69
|
-
sessionsLoading: import("vue").Ref<boolean, boolean>;
|
|
145
|
+
/** Initiates Single Sign-On (SAML / OIDC) redirect. */
|
|
146
|
+
loginWithSSO: (params: SSOParams) => void;
|
|
147
|
+
/** List of all active device sessions for this user. */
|
|
148
|
+
sessions: Ref<QarpeoDeviceSession[]>;
|
|
149
|
+
/** Whether multi-device session retrieval is loading. */
|
|
150
|
+
sessionsLoading: Ref<boolean>;
|
|
151
|
+
/** Fetches all active device sessions for the authenticated user. */
|
|
70
152
|
fetchSessions: () => Promise<void>;
|
|
153
|
+
/** Revokes a specific device session by ID. */
|
|
71
154
|
revokeSession: (sessionId: string) => Promise<void>;
|
|
155
|
+
/** Revokes all active device sessions except the current one. */
|
|
72
156
|
revokeAllOthers: () => Promise<void>;
|
|
73
|
-
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Headless primary authentication composable providing full user lifecycle management,
|
|
160
|
+
* multi-device session management, enterprise MFA/SSO, and Better Auth client methods.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```vue
|
|
164
|
+
* <script setup lang="ts">
|
|
165
|
+
* const { loggedIn, user, logout, sessions, fetchSessions } = useAuth()
|
|
166
|
+
* </script>
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
export declare function useAuth(): UseAuthReturn;
|
|
@@ -112,21 +112,14 @@ export function useAuth() {
|
|
|
112
112
|
clear,
|
|
113
113
|
logout,
|
|
114
114
|
logoutAll,
|
|
115
|
-
// Better Auth methods & client
|
|
116
115
|
client: authClient,
|
|
117
116
|
signIn: authClient.signIn,
|
|
118
117
|
signUp: authClient.signUp,
|
|
119
|
-
/**
|
|
120
|
-
* Raw Better Auth signOut without automatic route navigation. See `logout()` to sign out and
|
|
121
|
-
* redirect.
|
|
122
|
-
*/
|
|
123
118
|
signOut: authClient.signOut,
|
|
124
|
-
// Enterprise Auth additions
|
|
125
119
|
mfaRequired,
|
|
126
120
|
mfaVerified,
|
|
127
121
|
deleteAccount,
|
|
128
122
|
loginWithSSO,
|
|
129
|
-
// Multi-device session management
|
|
130
123
|
sessions,
|
|
131
124
|
sessionsLoading,
|
|
132
125
|
fetchSessions,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Ref, type ComputedRef } from "vue";
|
|
1
2
|
import type { AgentMessage, AIGatewayOptions } from "../../../types";
|
|
2
3
|
export type ChatStatus = "idle" | "submitted" | "streaming" | "error";
|
|
3
4
|
export interface ToolCallPayload {
|
|
@@ -38,47 +39,49 @@ export interface UseChatOptions {
|
|
|
38
39
|
/** Callback fired on streaming error */
|
|
39
40
|
onError?: (error: Error) => void;
|
|
40
41
|
}
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
name: string;
|
|
62
|
-
arguments: any;
|
|
63
|
-
}[] | undefined;
|
|
64
|
-
toolCallId?: string | undefined;
|
|
65
|
-
createdAt?: number | undefined;
|
|
66
|
-
}[]>;
|
|
67
|
-
input: import("vue").Ref<string, string>;
|
|
68
|
-
isStreaming: import("vue").Ref<boolean, boolean>;
|
|
69
|
-
sending: import("vue").Ref<boolean, boolean>;
|
|
70
|
-
status: import("vue").Ref<ChatStatus, ChatStatus>;
|
|
71
|
-
isLoading: import("vue").ComputedRef<boolean>;
|
|
72
|
-
error: import("vue").Ref<Error | null, Error | null>;
|
|
73
|
-
sendMessage: (contentOverride?: string) => Promise<void>;
|
|
74
|
-
send: (contentOverride?: string) => Promise<void>;
|
|
42
|
+
export interface UseChatReturn {
|
|
43
|
+
/** Active message history array. */
|
|
44
|
+
messages: Ref<AgentMessage[]>;
|
|
45
|
+
/** Bound user text input value. */
|
|
46
|
+
input: Ref<string>;
|
|
47
|
+
/** Whether an AI response is currently streaming tokens. */
|
|
48
|
+
isStreaming: Ref<boolean>;
|
|
49
|
+
/** Alias for isStreaming. */
|
|
50
|
+
sending: Ref<boolean>;
|
|
51
|
+
/** Detailed lifecycle status of the conversation. */
|
|
52
|
+
status: Ref<ChatStatus>;
|
|
53
|
+
/** Whether a message has been submitted or is actively streaming. */
|
|
54
|
+
isLoading: ComputedRef<boolean>;
|
|
55
|
+
/** Last streaming or request error encountered. */
|
|
56
|
+
error: Ref<Error | null>;
|
|
57
|
+
/** Submits a user message to the agent. */
|
|
58
|
+
sendMessage: (content?: string) => Promise<void>;
|
|
59
|
+
/** Alias for sendMessage. */
|
|
60
|
+
send: (content?: string) => Promise<void>;
|
|
61
|
+
/** Form submission event handler helper. */
|
|
75
62
|
handleSubmit: (e?: Event) => Promise<void>;
|
|
63
|
+
/** Aborts ongoing streaming response. */
|
|
76
64
|
stop: () => void;
|
|
65
|
+
/** Alias for stop. */
|
|
77
66
|
abort: () => void;
|
|
67
|
+
/** Retries the last user turn. */
|
|
78
68
|
reload: () => Promise<void>;
|
|
69
|
+
/** Clears conversation messages and resets agent memory. */
|
|
79
70
|
clear: () => Promise<void>;
|
|
71
|
+
/** Fetches persisted conversation history from the server. */
|
|
80
72
|
loadHistory: () => Promise<void>;
|
|
81
|
-
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Headless AI agent conversation composable with SSE streaming, tool calls, and session persistence.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```vue
|
|
79
|
+
* <script setup lang="ts">
|
|
80
|
+
* const { messages, input, isStreaming, handleSubmit } = useChat({ agent: 'support' })
|
|
81
|
+
* </script>
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export declare function useChat(options?: UseChatOptions): UseChatReturn;
|
|
82
85
|
/**
|
|
83
86
|
* Universal Vue 3 / Nuxt 5 composable for edge agent conversations with real-time SSE streaming.
|
|
84
87
|
* Alias for `useChat`.
|
|
@@ -1,33 +1,38 @@
|
|
|
1
|
+
import { type ComputedRef } from "vue";
|
|
1
2
|
import type { CMSPreviewState } from "../../../types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
collection: {
|
|
18
|
-
value: string | null;
|
|
19
|
-
};
|
|
20
|
-
slug: {
|
|
21
|
-
value: string | null;
|
|
22
|
-
};
|
|
23
|
-
state: {
|
|
24
|
-
value: CMSPreviewState;
|
|
25
|
-
};
|
|
3
|
+
export interface UseCMSPreviewReturn {
|
|
4
|
+
/** Whether draft preview mode is currently active. */
|
|
5
|
+
isPreview: ComputedRef<boolean>;
|
|
6
|
+
/** Active HMAC draft preview verification token. */
|
|
7
|
+
token: ComputedRef<string | null>;
|
|
8
|
+
/** Expiration timestamp for preview access. */
|
|
9
|
+
expires: ComputedRef<string | null>;
|
|
10
|
+
/** Preview collection scope. */
|
|
11
|
+
collection: ComputedRef<string | null>;
|
|
12
|
+
/** Target entry slug under preview. */
|
|
13
|
+
slug: ComputedRef<string | null>;
|
|
14
|
+
/** Aggregated preview state snapshot. */
|
|
15
|
+
state: ComputedRef<CMSPreviewState>;
|
|
16
|
+
/** Enables draft preview mode with specified tokens and constraints. */
|
|
26
17
|
enable: (options?: {
|
|
27
18
|
token?: string;
|
|
28
19
|
expires?: number | string;
|
|
29
20
|
collection?: string;
|
|
30
21
|
slug?: string;
|
|
31
22
|
}) => void;
|
|
23
|
+
/** Disables preview mode, clears cookies, and removes query parameters. */
|
|
32
24
|
disable: () => any;
|
|
33
|
-
}
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Headless CMS Draft / Preview mode composable. Automatically inspects route
|
|
28
|
+
* query (?preview=true, ?preview_token=...) and cookies to expose reactive
|
|
29
|
+
* preview status, tokens, and exit helpers.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```vue
|
|
33
|
+
* <script setup lang="ts">
|
|
34
|
+
* const { isPreview, disable } = useCMSPreview()
|
|
35
|
+
* </script>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function useCMSPreview(): UseCMSPreviewReturn;
|