qarpeo 0.1.9 → 0.1.10
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/dist/cli/index.mjs +1 -1
- package/dist/dev/env.d.ts +12 -0
- package/dist/dev/wrangler.d.ts +18 -0
- package/dist/module.d.ts +17 -0
- package/dist/module.mjs +137 -156
- package/dist/runtime/ai.d.ts +25 -0
- package/dist/runtime/analytics.d.ts +24 -0
- package/dist/runtime/app/composables/analytics.d.ts +125 -0
- package/dist/runtime/app/composables/api-tokens.d.ts +49 -0
- package/dist/runtime/app/composables/auth.d.ts +58 -0
- package/dist/runtime/app/composables/chat.d.ts +69 -0
- package/dist/runtime/app/composables/cms-preview.d.ts +33 -0
- package/dist/runtime/app/composables/cms.d.ts +307 -0
- package/dist/runtime/app/composables/docs-version.d.ts +35 -0
- package/dist/runtime/app/composables/impersonation.d.ts +14 -0
- package/dist/runtime/app/composables/notifications.d.ts +35 -0
- package/dist/runtime/app/composables/organization.d.ts +127 -0
- package/dist/runtime/app/composables/passkey.d.ts +6 -0
- package/dist/runtime/app/composables/passwordless.d.ts +7 -0
- package/dist/runtime/app/composables/payments.d.ts +43 -0
- package/dist/runtime/app/composables/realtime.d.ts +96 -0
- package/dist/runtime/app/composables/site.d.ts +35 -0
- package/dist/runtime/app/composables/storage.d.ts +60 -0
- package/dist/runtime/app/composables/tenant.d.ts +82 -0
- package/dist/runtime/app/composables/turnstile.d.ts +3 -0
- package/dist/runtime/app/composables/two-factor.d.ts +12 -0
- package/dist/runtime/app/middleware/auth.global.d.ts +2 -0
- package/dist/runtime/app/pages/devtools/agents.vue +1 -2
- package/dist/runtime/app/pages/devtools/analytics.vue +0 -2
- package/dist/runtime/app/pages/devtools/auth.vue +1 -2
- package/dist/runtime/app/pages/devtools/blob.vue +1 -2
- package/dist/runtime/app/pages/devtools/db.vue +1 -2
- package/dist/runtime/app/pages/devtools/domains.vue +1 -2
- package/dist/runtime/app/pages/devtools/kv.vue +1 -2
- package/dist/runtime/app/pages/devtools/logs.vue +0 -2
- package/dist/runtime/app/pages/devtools/mail.vue +1 -2
- package/dist/runtime/app/pages/devtools/overview.vue +6 -7
- package/dist/runtime/app/pages/devtools/settings.vue +1 -2
- package/dist/runtime/app/pages/devtools.vue +1 -11
- package/dist/runtime/app/plugins/seo.d.ts +2 -0
- package/dist/runtime/app/plugins/shortcuts.client.d.ts +6 -0
- package/dist/runtime/app/plugins/shortcuts.client.mjs +1 -6
- package/dist/runtime/auth.d.ts +25 -0
- package/dist/runtime/bindings.d.ts +27 -0
- package/dist/runtime/blob.d.ts +26 -0
- package/dist/runtime/bots.d.ts +1 -0
- package/dist/runtime/browser.d.ts +21 -0
- package/dist/runtime/cache.d.ts +19 -0
- package/dist/runtime/cms.d.ts +2 -0
- package/dist/runtime/db.d.ts +21 -0
- package/dist/runtime/drizzle.d.ts +11 -0
- package/dist/runtime/email.d.ts +51 -0
- package/dist/runtime/hyperdrive.d.ts +21 -0
- package/dist/runtime/index.d.ts +22 -0
- package/dist/runtime/kv.d.ts +16 -0
- package/dist/runtime/payments.d.ts +2 -0
- package/dist/runtime/queue.d.ts +21 -0
- package/dist/runtime/rag.d.ts +1 -0
- package/dist/runtime/ratelimit.d.ts +21 -0
- package/dist/runtime/realtime.d.ts +6 -0
- package/dist/runtime/server/db/cms-schema.d.ts +651 -0
- package/dist/runtime/server/durable-objects/agent.d.ts +14 -0
- package/dist/runtime/server/durable-objects/room.d.ts +34 -0
- package/dist/runtime/server/middleware/auth.d.ts +2 -0
- package/dist/runtime/server/middleware/devtools.d.ts +2 -0
- package/dist/runtime/server/middleware/ratelimit.d.ts +2 -0
- package/dist/runtime/server/middleware/tenancy.d.ts +6 -0
- package/dist/runtime/server/middleware/tracker.d.ts +7 -0
- package/dist/runtime/server/plugins/agents.d.ts +7 -0
- package/dist/runtime/server/plugins/cms.d.ts +8 -0
- package/dist/runtime/server/plugins/dev-logs.d.ts +1 -0
- package/dist/runtime/server/plugins/dev-logs.mjs +1 -1
- package/dist/runtime/server/plugins/dev-proxy.d.ts +3 -0
- package/dist/runtime/server/plugins/env.d.ts +6 -0
- package/dist/runtime/server/plugins/queue.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +20 -0
- package/dist/runtime/server/routes/__qarpeo/agents/clear.post.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/agents/create.post.d.ts +17 -0
- package/dist/runtime/server/routes/__qarpeo/agents/history.get.d.ts +15 -0
- package/dist/runtime/server/routes/__qarpeo/agents/list.get.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +64 -0
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +30 -0
- package/dist/runtime/server/routes/__qarpeo/auth/revoke-session.post.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/auth/sessions.get.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/auth/users.get.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/blob/files.get.d.ts +22 -0
- package/dist/runtime/server/routes/__qarpeo/db/query.post.d.ts +23 -0
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +31 -0
- package/dist/runtime/server/routes/__qarpeo/kv/delete.post.d.ts +11 -0
- package/dist/runtime/server/routes/__qarpeo/kv/get.get.d.ts +11 -0
- package/dist/runtime/server/routes/__qarpeo/kv/keys.get.d.ts +8 -0
- package/dist/runtime/server/routes/__qarpeo/kv/set.post.d.ts +14 -0
- package/dist/runtime/server/routes/__qarpeo/logs.delete.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/logs.post.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/mail/bounce.post.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/mail/clear.post.d.ts +4 -0
- package/dist/runtime/server/routes/__qarpeo/mail/inbox.get.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/mail/send-test.post.d.ts +4 -0
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/__qarpeo/overview/health.get.d.ts +8 -0
- package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +33 -0
- package/dist/runtime/server/routes/__qarpeo/overview.get.mjs +2 -1
- package/dist/runtime/server/routes/__qarpeo/settings/reset-dev-data.post.d.ts +11 -0
- package/dist/runtime/server/routes/__qarpeo/settings.get.d.ts +125 -0
- package/dist/runtime/server/routes/__qarpeo/settings.get.mjs +2 -1
- package/dist/runtime/server/routes/__qarpeo/tenants/create.post.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-add.post.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-delete.post.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-verify.post.d.ts +9 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/list.get.d.ts +15 -0
- package/dist/runtime/server/routes/agents/[agent]/chat.post.d.ts +2 -0
- package/dist/runtime/server/routes/agents/[agent]/clear.post.d.ts +4 -0
- package/dist/runtime/server/routes/agents/[agent]/history.get.d.ts +4 -0
- package/dist/runtime/server/routes/analytics/events.get.d.ts +3 -0
- package/dist/runtime/server/routes/analytics/pageviews.get.d.ts +3 -0
- package/dist/runtime/server/routes/analytics/summary.get.d.ts +6 -0
- package/dist/runtime/server/routes/atom.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/2fa/disable.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/2fa/setup.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/2fa/verify.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/[provider]/callback.d.ts +1 -0
- package/dist/runtime/server/routes/auth/[provider].d.ts +3 -0
- package/dist/runtime/server/routes/auth/account.delete.d.ts +5 -0
- package/dist/runtime/server/routes/auth/impersonate/start.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/impersonate/stop.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/logout-all.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/logout-others.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/logout.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/magic-link/send.post.d.ts +10 -0
- package/dist/runtime/server/routes/auth/magic-link/verify.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/organization/create.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/organization/invite.post.d.ts +9 -0
- package/dist/runtime/server/routes/auth/organization/join.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/organization/list.get.d.ts +5 -0
- package/dist/runtime/server/routes/auth/organization/members/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/auth/organization/members/index.get.d.ts +6 -0
- package/dist/runtime/server/routes/auth/organization/mfa.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/organization/sso/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/auth/organization/sso/index.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/organization/sso/index.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/organization/switch.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/otp/send.post.d.ts +10 -0
- package/dist/runtime/server/routes/auth/otp/verify.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/sessions/[id].delete.d.ts +5 -0
- package/dist/runtime/server/routes/auth/sessions.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/sso/login.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/tokens/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/auth/tokens/create.post.d.ts +9 -0
- package/dist/runtime/server/routes/auth/tokens/index.get.d.ts +9 -0
- package/dist/runtime/server/routes/auth/turnstile/verify.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/user.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/webauthn/login/options.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/webauthn/login/verify.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.d.ts +5 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.d.ts +8 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/publish.post.d.ts +6 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/review.post.d.ts +6 -0
- package/dist/runtime/server/routes/cms/[collection]/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/[id].put.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/[slug].get.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/cms/[collection]/by-path.get.d.ts +8 -0
- package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/cms/[collection]/index.get.d.ts +7 -0
- package/dist/runtime/server/routes/cms/[collection]/index.post.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/references.get.d.ts +19 -0
- package/dist/runtime/server/routes/cms/[collection]/surroundings.get.d.ts +10 -0
- package/dist/runtime/server/routes/cms/collections/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/cms/collections/[id].put.d.ts +4 -0
- package/dist/runtime/server/routes/cms/collections/index.get.d.ts +4 -0
- package/dist/runtime/server/routes/cms/collections/index.post.d.ts +4 -0
- package/dist/runtime/server/routes/cms/components/index.get.d.ts +17 -0
- package/dist/runtime/server/routes/cms/deploy.post.d.ts +4 -0
- package/dist/runtime/server/routes/cms/export.post.d.ts +10 -0
- package/dist/runtime/server/routes/cms/navigation.get.d.ts +8 -0
- package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +9 -0
- package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +14 -0
- package/dist/runtime/server/routes/cms/publish-scheduled.post.d.ts +11 -0
- package/dist/runtime/server/routes/cms/search.get.d.ts +13 -0
- package/dist/runtime/server/routes/cms/sync.post.d.ts +7 -0
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +150 -0
- package/dist/runtime/server/routes/docs/search.get.d.ts +15 -0
- package/dist/runtime/server/routes/feed.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/mail/bounce.post.d.ts +14 -0
- package/dist/runtime/server/routes/mail/inbox/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/mail/inbox.get.d.ts +4 -0
- package/dist/runtime/server/routes/mail/suppressions/[email].delete.d.ts +11 -0
- package/dist/runtime/server/routes/mail/suppressions/index.get.d.ts +12 -0
- package/dist/runtime/server/routes/mail/suppressions/index.post.d.ts +10 -0
- package/dist/runtime/server/routes/mail/unsubscribe.d.ts +13 -0
- package/dist/runtime/server/routes/mail/webhooks.post.d.ts +12 -0
- package/dist/runtime/server/routes/notifications/[id]/read.post.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/notifications/index.get.d.ts +6 -0
- package/dist/runtime/server/routes/notifications/push/subscribe.post.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/push/unsubscribe.post.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/read-all.post.d.ts +4 -0
- package/dist/runtime/server/routes/payments/cancel.post.d.ts +7 -0
- package/dist/runtime/server/routes/payments/change-plan.post.d.ts +7 -0
- package/dist/runtime/server/routes/payments/checkout.post.d.ts +9 -0
- package/dist/runtime/server/routes/payments/pause.post.d.ts +7 -0
- package/dist/runtime/server/routes/payments/portal.post.d.ts +5 -0
- package/dist/runtime/server/routes/payments/subscription.get.d.ts +6 -0
- package/dist/runtime/server/routes/payments/usage.get.d.ts +12 -0
- package/dist/runtime/server/routes/payments/usage.post.d.ts +6 -0
- package/dist/runtime/server/routes/payments/webhook.post.d.ts +14 -0
- package/dist/runtime/server/routes/realtime/broadcast.post.d.ts +4 -0
- package/dist/runtime/server/routes/realtime/history.delete.d.ts +13 -0
- package/dist/runtime/server/routes/realtime/history.get.d.ts +16 -0
- package/dist/runtime/server/routes/realtime/presence.get.d.ts +6 -0
- package/dist/runtime/server/routes/realtime/state.get.d.ts +5 -0
- package/dist/runtime/server/routes/realtime/state.post.d.ts +6 -0
- package/dist/runtime/server/routes/realtime/ws.get.d.ts +2 -0
- package/dist/runtime/server/routes/robots.txt.get.d.ts +2 -0
- package/dist/runtime/server/routes/rss.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/sitemap.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/storage/file/[...key].delete.d.ts +4 -0
- package/dist/runtime/server/routes/storage/file/[...key].get.d.ts +2 -0
- package/dist/runtime/server/routes/storage/files.get.d.ts +14 -0
- package/dist/runtime/server/routes/storage/presigned.post.d.ts +8 -0
- package/dist/runtime/server/routes/storage/sign.post.d.ts +6 -0
- package/dist/runtime/server/routes/storage/upload.post.d.ts +22 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/current.get.d.ts +8 -0
- package/dist/runtime/server/tasks/cms/publish.d.ts +4 -0
- package/dist/runtime/server/utils/agent-store.d.ts +24 -0
- package/dist/runtime/server/utils/agents-registry-fallback.d.ts +1 -0
- package/dist/runtime/server/utils/ai.d.ts +119 -0
- package/dist/runtime/server/utils/analytics-query.d.ts +109 -0
- package/dist/runtime/server/utils/auth.d.ts +60 -0
- package/dist/runtime/server/utils/blob-store.d.ts +13 -0
- package/dist/runtime/server/utils/bots.d.ts +21 -0
- package/dist/runtime/server/utils/cache.d.ts +33 -0
- package/dist/runtime/server/utils/cms-events.d.ts +17 -0
- package/dist/runtime/server/utils/cms-filter.d.ts +3 -0
- package/dist/runtime/server/utils/cms.d.ts +309 -0
- package/dist/runtime/server/utils/cms.mjs +92 -2
- package/dist/runtime/server/utils/config.d.ts +27 -0
- package/dist/runtime/server/utils/context.d.ts +13 -0
- package/dist/runtime/server/utils/crypto.d.ts +16 -0
- package/dist/runtime/server/utils/dev-logs.d.ts +21 -0
- package/dist/runtime/server/utils/dev-proxy.d.ts +1 -0
- package/dist/runtime/server/utils/domains.d.ts +46 -0
- package/dist/runtime/server/utils/drizzle.d.ts +10 -0
- package/dist/runtime/server/utils/email-templates.d.ts +44 -0
- package/dist/runtime/server/utils/feed.d.ts +42 -0
- package/dist/runtime/server/utils/impersonation.d.ts +67 -0
- package/dist/runtime/server/utils/jobs.d.ts +70 -0
- package/dist/runtime/server/utils/kv-store.d.ts +9 -0
- package/dist/runtime/server/utils/mail-suppression.d.ts +62 -0
- package/dist/runtime/server/utils/mail.d.ts +90 -0
- package/dist/runtime/server/utils/notifications.d.ts +51 -0
- package/dist/runtime/server/utils/organization.d.ts +54 -0
- package/dist/runtime/server/utils/passwordless.d.ts +48 -0
- package/dist/runtime/server/utils/payments.d.ts +121 -0
- package/dist/runtime/server/utils/queue-fallback.d.ts +2 -0
- package/dist/runtime/server/utils/queue.d.ts +4 -0
- package/dist/runtime/server/utils/rag.d.ts +25 -0
- package/dist/runtime/server/utils/ratelimit.d.ts +45 -0
- package/dist/runtime/server/utils/realtime.d.ts +110 -0
- package/dist/runtime/server/utils/schema-fallback.d.ts +3 -0
- package/dist/runtime/server/utils/session.d.ts +72 -0
- package/dist/runtime/server/utils/sso.d.ts +49 -0
- package/dist/runtime/server/utils/storage.d.ts +111 -0
- package/dist/runtime/server/utils/tenant.d.ts +44 -0
- package/dist/runtime/server/utils/totp.d.ts +33 -0
- package/dist/runtime/server/utils/tracker.d.ts +72 -0
- package/dist/runtime/server/utils/turnstile.d.ts +17 -0
- package/dist/runtime/server/utils/vapid.d.ts +35 -0
- package/dist/runtime/storage.d.ts +1 -0
- package/dist/runtime/types/ai.d.ts +68 -0
- package/dist/runtime/types/analytics.d.ts +30 -0
- package/dist/runtime/types/auth.d.ts +153 -0
- package/dist/runtime/types/browser.d.ts +29 -0
- package/dist/runtime/types/d1.d.ts +44 -0
- package/dist/runtime/types/drizzle.d.ts +13 -0
- package/dist/runtime/types/durable-object.d.ts +51 -0
- package/dist/runtime/types/email.d.ts +66 -0
- package/dist/runtime/types/hyperdrive.d.ts +18 -0
- package/dist/runtime/types/index.d.ts +156 -0
- package/dist/runtime/types/queue.d.ts +67 -0
- package/dist/runtime/types/r2.d.ts +108 -0
- package/dist/runtime/types/ratelimit.d.ts +21 -0
- package/dist/runtime/types/vectorize.d.ts +74 -0
- package/dist/runtime/vectorize.d.ts +21 -0
- package/dist/types.d.ts +2747 -0
- package/dist/utils/agents.d.ts +8 -0
- package/dist/utils/auth-schema.d.ts +11 -0
- package/dist/utils/bindings.d.ts +16 -0
- package/dist/utils/cms-scan.d.ts +36 -0
- package/dist/utils/cms-schema.d.ts +1 -0
- package/dist/utils/cms-sources.d.ts +67 -0
- package/dist/utils/drizzle.d.ts +42 -0
- package/dist/utils/jobs.d.ts +8 -0
- package/dist/utils/local-db.d.ts +28 -0
- package/dist/utils/notifications-schema.d.ts +15 -0
- package/dist/utils/payments-schema.d.ts +11 -0
- package/dist/utils/pkg.d.ts +15 -0
- package/dist/utils/queue.d.ts +8 -0
- package/dist/utils/tenants-schema.d.ts +11 -0
- package/package.json +1 -1
- package/dist/runtime/app/pages/cms.vue +0 -2249
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Composables/analytics.ts Client-side analytics dashboard composable. Fetches data from the
|
|
3
|
+
* Qarpeo analytics API routes registered by `analytics: true`.
|
|
4
|
+
* @example
|
|
5
|
+
* ;```vue
|
|
6
|
+
* <script setup>
|
|
7
|
+
* const { summary, pageviews, loading } = useAnalyticsDashboard()
|
|
8
|
+
* await fetchSummary('7d')
|
|
9
|
+
* </script>
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import type { AnalyticsRange } from "../../../types";
|
|
13
|
+
/**
|
|
14
|
+
* Reactive analytics dashboard composable. Uses the built-in Qarpeo analytics API routes.
|
|
15
|
+
*
|
|
16
|
+
* @param basePath API prefix (default: '/api/analytics')
|
|
17
|
+
*/
|
|
18
|
+
export declare function useAnalyticsDashboard(basePath?: string): {
|
|
19
|
+
/** Whether a fetch is in flight. */
|
|
20
|
+
loading: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
21
|
+
/** Last error, if any. */
|
|
22
|
+
error: Readonly<import("vue").Ref<Error | null, Error | null>>;
|
|
23
|
+
/** KPI summary data. */
|
|
24
|
+
summary: Readonly<import("vue").Ref<{
|
|
25
|
+
readonly pageviews: number;
|
|
26
|
+
readonly visitors: number;
|
|
27
|
+
readonly topPages: readonly {
|
|
28
|
+
readonly path: string;
|
|
29
|
+
readonly views: number;
|
|
30
|
+
}[];
|
|
31
|
+
readonly topReferrers: readonly {
|
|
32
|
+
readonly referrer: string;
|
|
33
|
+
readonly count: number;
|
|
34
|
+
}[];
|
|
35
|
+
readonly countries: readonly {
|
|
36
|
+
readonly country: string;
|
|
37
|
+
readonly count: number;
|
|
38
|
+
}[];
|
|
39
|
+
readonly devices: {
|
|
40
|
+
readonly mobile: number;
|
|
41
|
+
readonly desktop: number;
|
|
42
|
+
readonly bot: number;
|
|
43
|
+
};
|
|
44
|
+
} | null, {
|
|
45
|
+
readonly pageviews: number;
|
|
46
|
+
readonly visitors: number;
|
|
47
|
+
readonly topPages: readonly {
|
|
48
|
+
readonly path: string;
|
|
49
|
+
readonly views: number;
|
|
50
|
+
}[];
|
|
51
|
+
readonly topReferrers: readonly {
|
|
52
|
+
readonly referrer: string;
|
|
53
|
+
readonly count: number;
|
|
54
|
+
}[];
|
|
55
|
+
readonly countries: readonly {
|
|
56
|
+
readonly country: string;
|
|
57
|
+
readonly count: number;
|
|
58
|
+
}[];
|
|
59
|
+
readonly devices: {
|
|
60
|
+
readonly mobile: number;
|
|
61
|
+
readonly desktop: number;
|
|
62
|
+
readonly bot: number;
|
|
63
|
+
};
|
|
64
|
+
} | null>>;
|
|
65
|
+
/** Pageview time-series data. */
|
|
66
|
+
pageviews: Readonly<import("vue").Ref<{
|
|
67
|
+
readonly total: number;
|
|
68
|
+
readonly series: readonly {
|
|
69
|
+
readonly date: string;
|
|
70
|
+
readonly count: number;
|
|
71
|
+
}[];
|
|
72
|
+
} | null, {
|
|
73
|
+
readonly total: number;
|
|
74
|
+
readonly series: readonly {
|
|
75
|
+
readonly date: string;
|
|
76
|
+
readonly count: number;
|
|
77
|
+
}[];
|
|
78
|
+
} | null>>;
|
|
79
|
+
/** Custom event records. */
|
|
80
|
+
events: Readonly<import("vue").Ref<readonly {
|
|
81
|
+
readonly name: string;
|
|
82
|
+
readonly count: number;
|
|
83
|
+
readonly lastSeen: string;
|
|
84
|
+
}[], readonly {
|
|
85
|
+
readonly name: string;
|
|
86
|
+
readonly count: number;
|
|
87
|
+
readonly lastSeen: string;
|
|
88
|
+
}[]>>;
|
|
89
|
+
/** Fetch the KPI summary. */
|
|
90
|
+
fetchSummary: (range?: AnalyticsRange) => Promise<{
|
|
91
|
+
pageviews: number;
|
|
92
|
+
visitors: number;
|
|
93
|
+
topPages: {
|
|
94
|
+
path: string;
|
|
95
|
+
views: number;
|
|
96
|
+
}[];
|
|
97
|
+
topReferrers: {
|
|
98
|
+
referrer: string;
|
|
99
|
+
count: number;
|
|
100
|
+
}[];
|
|
101
|
+
countries: {
|
|
102
|
+
country: string;
|
|
103
|
+
count: number;
|
|
104
|
+
}[];
|
|
105
|
+
devices: {
|
|
106
|
+
mobile: number;
|
|
107
|
+
desktop: number;
|
|
108
|
+
bot: number;
|
|
109
|
+
};
|
|
110
|
+
} | null>;
|
|
111
|
+
/** Fetch pageview time-series. */
|
|
112
|
+
fetchPageviews: (range?: AnalyticsRange) => Promise<{
|
|
113
|
+
total: number;
|
|
114
|
+
series: {
|
|
115
|
+
date: string;
|
|
116
|
+
count: number;
|
|
117
|
+
}[];
|
|
118
|
+
} | null>;
|
|
119
|
+
/** Fetch custom events. */
|
|
120
|
+
fetchEvents: (range?: AnalyticsRange, name?: string, limit?: number) => Promise<{
|
|
121
|
+
name: string;
|
|
122
|
+
count: number;
|
|
123
|
+
lastSeen: string;
|
|
124
|
+
}[]>;
|
|
125
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface ApiToken {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
scopes: string[];
|
|
5
|
+
lastUsedAt: number | null;
|
|
6
|
+
expiresAt: number | null;
|
|
7
|
+
createdAt: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function useApiTokens(): {
|
|
10
|
+
tokens: import("vue").Ref<{
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
scopes: string[];
|
|
14
|
+
lastUsedAt: number | null;
|
|
15
|
+
expiresAt: number | null;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
}[], ApiToken[] | {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
scopes: string[];
|
|
21
|
+
lastUsedAt: number | null;
|
|
22
|
+
expiresAt: number | null;
|
|
23
|
+
createdAt: number;
|
|
24
|
+
}[]>;
|
|
25
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
26
|
+
fetchTokens: () => Promise<{
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
scopes: string[];
|
|
30
|
+
lastUsedAt: number | null;
|
|
31
|
+
expiresAt: number | null;
|
|
32
|
+
createdAt: number;
|
|
33
|
+
}[]>;
|
|
34
|
+
createToken: (input: {
|
|
35
|
+
name: string;
|
|
36
|
+
scopes?: string[];
|
|
37
|
+
expiresInDays?: number;
|
|
38
|
+
}) => Promise<{
|
|
39
|
+
id: string;
|
|
40
|
+
token: string;
|
|
41
|
+
name: string;
|
|
42
|
+
scopes: string[];
|
|
43
|
+
expiresAt: number | null;
|
|
44
|
+
createdAt: number;
|
|
45
|
+
}>;
|
|
46
|
+
revokeToken: (tokenId: string) => Promise<{
|
|
47
|
+
success: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { QarpeoUser, QarpeoSession, DeleteAccountOptions } from "../../types/auth";
|
|
2
|
+
export declare function useUserSession(): {
|
|
3
|
+
ready: import("vue").ComputedRef<boolean>;
|
|
4
|
+
loggedIn: import("vue").ComputedRef<boolean>;
|
|
5
|
+
user: import("vue").ComputedRef<any>;
|
|
6
|
+
session: import("vue").Ref<any, any>;
|
|
7
|
+
fetch: () => Promise<void>;
|
|
8
|
+
clear: () => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
export interface QarpeoDeviceSession {
|
|
11
|
+
id: string;
|
|
12
|
+
clientType: string;
|
|
13
|
+
userAgent: string | null;
|
|
14
|
+
ipAddress: string | null;
|
|
15
|
+
lastActive: number;
|
|
16
|
+
expiresAt: number;
|
|
17
|
+
isCurrent: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function useAuth(): {
|
|
20
|
+
loggedIn: import("vue").ComputedRef<boolean>;
|
|
21
|
+
user: import("vue").ComputedRef<QarpeoUser | null>;
|
|
22
|
+
session: import("vue").ComputedRef<QarpeoSession | null>;
|
|
23
|
+
ready: import("vue").ComputedRef<boolean>;
|
|
24
|
+
fetch: () => Promise<void>;
|
|
25
|
+
clear: () => Promise<void>;
|
|
26
|
+
logout: (redirect?: string) => Promise<void>;
|
|
27
|
+
logoutAll: (redirect?: string) => Promise<void>;
|
|
28
|
+
mfaRequired: import("vue").ComputedRef<boolean>;
|
|
29
|
+
mfaVerified: import("vue").ComputedRef<boolean>;
|
|
30
|
+
deleteAccount: (options?: DeleteAccountOptions, redirect?: string) => Promise<void>;
|
|
31
|
+
loginWithSSO: (params: {
|
|
32
|
+
domain?: string;
|
|
33
|
+
org?: string;
|
|
34
|
+
connectionId?: string;
|
|
35
|
+
redirect?: string;
|
|
36
|
+
}) => void;
|
|
37
|
+
sessions: import("vue").Ref<{
|
|
38
|
+
id: string;
|
|
39
|
+
clientType: string;
|
|
40
|
+
userAgent: string | null;
|
|
41
|
+
ipAddress: string | null;
|
|
42
|
+
lastActive: number;
|
|
43
|
+
expiresAt: number;
|
|
44
|
+
isCurrent: boolean;
|
|
45
|
+
}[], QarpeoDeviceSession[] | {
|
|
46
|
+
id: string;
|
|
47
|
+
clientType: string;
|
|
48
|
+
userAgent: string | null;
|
|
49
|
+
ipAddress: string | null;
|
|
50
|
+
lastActive: number;
|
|
51
|
+
expiresAt: number;
|
|
52
|
+
isCurrent: boolean;
|
|
53
|
+
}[]>;
|
|
54
|
+
sessionsLoading: import("vue").Ref<boolean, boolean>;
|
|
55
|
+
fetchSessions: () => Promise<void>;
|
|
56
|
+
revokeSession: (sessionId: string) => Promise<void>;
|
|
57
|
+
revokeAllOthers: () => Promise<void>;
|
|
58
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { AgentMessage } from "../../../types";
|
|
2
|
+
export interface UseChatOptions {
|
|
3
|
+
/** Target agent name. @default "default" */
|
|
4
|
+
agent?: string;
|
|
5
|
+
/** Conversation or session instance ID. @default "default" */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Unique session identifier alias for `id`. @default "default" */
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
/** Enable Server-Sent Events token streaming. @default true */
|
|
10
|
+
stream?: boolean;
|
|
11
|
+
/** Custom chat API endpoint override. Defaults to `/api/agents/${agent}/chat` */
|
|
12
|
+
api?: string;
|
|
13
|
+
/** Initial messages list */
|
|
14
|
+
initialMessages?: AgentMessage[];
|
|
15
|
+
/** Automatically fetch conversation history on mount */
|
|
16
|
+
loadHistory?: boolean;
|
|
17
|
+
/** Callback fired when a tool execution is initiated */
|
|
18
|
+
onToolCall?: (toolCall: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
arguments: any;
|
|
22
|
+
}) => void;
|
|
23
|
+
/** Callback fired when a full message is completed */
|
|
24
|
+
onFinish?: (message: AgentMessage) => void;
|
|
25
|
+
/** Callback fired on streaming error */
|
|
26
|
+
onError?: (error: Error) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare function useChat(options?: UseChatOptions): {
|
|
29
|
+
messages: import("vue").Ref<{
|
|
30
|
+
id?: string | undefined;
|
|
31
|
+
role: import("../../../types").AgentRole;
|
|
32
|
+
content: string;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
toolCalls?: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
arguments: any;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
toolCallId?: string | undefined;
|
|
40
|
+
createdAt?: number | undefined;
|
|
41
|
+
}[], AgentMessage[] | {
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
role: import("../../../types").AgentRole;
|
|
44
|
+
content: string;
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
toolCalls?: {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
arguments: any;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
toolCallId?: string | undefined;
|
|
52
|
+
createdAt?: number | undefined;
|
|
53
|
+
}[]>;
|
|
54
|
+
input: import("vue").Ref<string, string>;
|
|
55
|
+
isStreaming: import("vue").Ref<boolean, boolean>;
|
|
56
|
+
sending: import("vue").Ref<boolean, boolean>;
|
|
57
|
+
error: import("vue").Ref<Error | null, Error | null>;
|
|
58
|
+
sendMessage: (contentOverride?: string) => Promise<void>;
|
|
59
|
+
send: (contentOverride?: string) => Promise<void>;
|
|
60
|
+
handleSubmit: (e?: Event) => Promise<void>;
|
|
61
|
+
clear: () => Promise<void>;
|
|
62
|
+
reload: () => Promise<void>;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Universal Vue 3 / Nuxt 5 composable for edge agent conversations with real-time SSE streaming.
|
|
66
|
+
* Alias for `useChat`.
|
|
67
|
+
*/
|
|
68
|
+
export declare const useAgentChat: typeof useChat;
|
|
69
|
+
export type UseAgentChatOptions = UseChatOptions;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CMSPreviewState } from "../../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Reactive client composable for CMS Draft / Preview mode.
|
|
4
|
+
* Automatically inspects the current route query (?preview=true, ?preview_token=...)
|
|
5
|
+
* and the `qarpeo_preview` cookie to expose reactive preview status, token, and exit helpers.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useCMSPreview(): {
|
|
8
|
+
isPreview: {
|
|
9
|
+
value: boolean;
|
|
10
|
+
};
|
|
11
|
+
token: {
|
|
12
|
+
value: string | null;
|
|
13
|
+
};
|
|
14
|
+
expires: {
|
|
15
|
+
value: string | null;
|
|
16
|
+
};
|
|
17
|
+
collection: {
|
|
18
|
+
value: string | null;
|
|
19
|
+
};
|
|
20
|
+
slug: {
|
|
21
|
+
value: string | null;
|
|
22
|
+
};
|
|
23
|
+
state: {
|
|
24
|
+
value: CMSPreviewState;
|
|
25
|
+
};
|
|
26
|
+
enable: (options?: {
|
|
27
|
+
token?: string;
|
|
28
|
+
expires?: number | string;
|
|
29
|
+
collection?: string;
|
|
30
|
+
slug?: string;
|
|
31
|
+
}) => void;
|
|
32
|
+
disable: () => any;
|
|
33
|
+
};
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import type { CMSEntry, CMSQueryOptions, CMSNavigationOptions, CMSNavigationItem, DocsSearchSection, CMSLocaleConfig } from "../../../types";
|
|
2
|
+
export declare function useCMS(collectionId?: string): {
|
|
3
|
+
entries: import("vue").Ref<{
|
|
4
|
+
id: string;
|
|
5
|
+
collectionId: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
path?: string | undefined;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string | null | undefined;
|
|
10
|
+
coverImage?: string | null | undefined;
|
|
11
|
+
tags?: string | null | undefined;
|
|
12
|
+
order: number;
|
|
13
|
+
contentMd: string;
|
|
14
|
+
contentHtml: string;
|
|
15
|
+
body?: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
toc?: {
|
|
18
|
+
links: {
|
|
19
|
+
id: string;
|
|
20
|
+
text: string;
|
|
21
|
+
depth: number;
|
|
22
|
+
children?: /*elided*/ any[] | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
} | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
toc?: {
|
|
27
|
+
links: {
|
|
28
|
+
id: string;
|
|
29
|
+
text: string;
|
|
30
|
+
depth: number;
|
|
31
|
+
children?: /*elided*/ any[] | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
} | undefined;
|
|
34
|
+
navigation?: {
|
|
35
|
+
title?: string | undefined;
|
|
36
|
+
icon?: string | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
metadata?: Record<string, unknown> | undefined;
|
|
39
|
+
metadataJson?: string | undefined;
|
|
40
|
+
status: import("../../../types").CMSEntryStatus;
|
|
41
|
+
source: "file" | "db";
|
|
42
|
+
filePath?: string | null | undefined;
|
|
43
|
+
contentHash?: string | null | undefined;
|
|
44
|
+
authorId?: string | null | undefined;
|
|
45
|
+
publishedAt?: number | null | undefined;
|
|
46
|
+
tenantId?: string | null | undefined;
|
|
47
|
+
locale?: string | undefined;
|
|
48
|
+
version?: string | undefined;
|
|
49
|
+
createdAt: number;
|
|
50
|
+
updatedAt: number;
|
|
51
|
+
}[], CMSEntry[] | {
|
|
52
|
+
id: string;
|
|
53
|
+
collectionId: string;
|
|
54
|
+
slug: string;
|
|
55
|
+
path?: string | undefined;
|
|
56
|
+
title: string;
|
|
57
|
+
description?: string | null | undefined;
|
|
58
|
+
coverImage?: string | null | undefined;
|
|
59
|
+
tags?: string | null | undefined;
|
|
60
|
+
order: number;
|
|
61
|
+
contentMd: string;
|
|
62
|
+
contentHtml: string;
|
|
63
|
+
body?: {
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
toc?: {
|
|
66
|
+
links: {
|
|
67
|
+
id: string;
|
|
68
|
+
text: string;
|
|
69
|
+
depth: number;
|
|
70
|
+
children?: /*elided*/ any[] | undefined;
|
|
71
|
+
}[];
|
|
72
|
+
} | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
toc?: {
|
|
75
|
+
links: {
|
|
76
|
+
id: string;
|
|
77
|
+
text: string;
|
|
78
|
+
depth: number;
|
|
79
|
+
children?: /*elided*/ any[] | undefined;
|
|
80
|
+
}[];
|
|
81
|
+
} | undefined;
|
|
82
|
+
navigation?: {
|
|
83
|
+
title?: string | undefined;
|
|
84
|
+
icon?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
metadata?: Record<string, unknown> | undefined;
|
|
87
|
+
metadataJson?: string | undefined;
|
|
88
|
+
status: import("../../../types").CMSEntryStatus;
|
|
89
|
+
source: "file" | "db";
|
|
90
|
+
filePath?: string | null | undefined;
|
|
91
|
+
contentHash?: string | null | undefined;
|
|
92
|
+
authorId?: string | null | undefined;
|
|
93
|
+
publishedAt?: number | null | undefined;
|
|
94
|
+
tenantId?: string | null | undefined;
|
|
95
|
+
locale?: string | undefined;
|
|
96
|
+
version?: string | undefined;
|
|
97
|
+
createdAt: number;
|
|
98
|
+
updatedAt: number;
|
|
99
|
+
}[]>;
|
|
100
|
+
entry: import("vue").Ref<{
|
|
101
|
+
id: string;
|
|
102
|
+
collectionId: string;
|
|
103
|
+
slug: string;
|
|
104
|
+
path?: string | undefined;
|
|
105
|
+
title: string;
|
|
106
|
+
description?: string | null | undefined;
|
|
107
|
+
coverImage?: string | null | undefined;
|
|
108
|
+
tags?: string | null | undefined;
|
|
109
|
+
order: number;
|
|
110
|
+
contentMd: string;
|
|
111
|
+
contentHtml: string;
|
|
112
|
+
body?: {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
toc?: {
|
|
115
|
+
links: {
|
|
116
|
+
id: string;
|
|
117
|
+
text: string;
|
|
118
|
+
depth: number;
|
|
119
|
+
children?: /*elided*/ any[] | undefined;
|
|
120
|
+
}[];
|
|
121
|
+
} | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
toc?: {
|
|
124
|
+
links: {
|
|
125
|
+
id: string;
|
|
126
|
+
text: string;
|
|
127
|
+
depth: number;
|
|
128
|
+
children?: /*elided*/ any[] | undefined;
|
|
129
|
+
}[];
|
|
130
|
+
} | undefined;
|
|
131
|
+
navigation?: {
|
|
132
|
+
title?: string | undefined;
|
|
133
|
+
icon?: string | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
metadata?: Record<string, unknown> | undefined;
|
|
136
|
+
metadataJson?: string | undefined;
|
|
137
|
+
status: import("../../../types").CMSEntryStatus;
|
|
138
|
+
source: "file" | "db";
|
|
139
|
+
filePath?: string | null | undefined;
|
|
140
|
+
contentHash?: string | null | undefined;
|
|
141
|
+
authorId?: string | null | undefined;
|
|
142
|
+
publishedAt?: number | null | undefined;
|
|
143
|
+
tenantId?: string | null | undefined;
|
|
144
|
+
locale?: string | undefined;
|
|
145
|
+
version?: string | undefined;
|
|
146
|
+
createdAt: number;
|
|
147
|
+
updatedAt: number;
|
|
148
|
+
} | null, CMSEntry | {
|
|
149
|
+
id: string;
|
|
150
|
+
collectionId: string;
|
|
151
|
+
slug: string;
|
|
152
|
+
path?: string | undefined;
|
|
153
|
+
title: string;
|
|
154
|
+
description?: string | null | undefined;
|
|
155
|
+
coverImage?: string | null | undefined;
|
|
156
|
+
tags?: string | null | undefined;
|
|
157
|
+
order: number;
|
|
158
|
+
contentMd: string;
|
|
159
|
+
contentHtml: string;
|
|
160
|
+
body?: {
|
|
161
|
+
[x: string]: any;
|
|
162
|
+
toc?: {
|
|
163
|
+
links: {
|
|
164
|
+
id: string;
|
|
165
|
+
text: string;
|
|
166
|
+
depth: number;
|
|
167
|
+
children?: /*elided*/ any[] | undefined;
|
|
168
|
+
}[];
|
|
169
|
+
} | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
toc?: {
|
|
172
|
+
links: {
|
|
173
|
+
id: string;
|
|
174
|
+
text: string;
|
|
175
|
+
depth: number;
|
|
176
|
+
children?: /*elided*/ any[] | undefined;
|
|
177
|
+
}[];
|
|
178
|
+
} | undefined;
|
|
179
|
+
navigation?: {
|
|
180
|
+
title?: string | undefined;
|
|
181
|
+
icon?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
metadata?: Record<string, unknown> | undefined;
|
|
184
|
+
metadataJson?: string | undefined;
|
|
185
|
+
status: import("../../../types").CMSEntryStatus;
|
|
186
|
+
source: "file" | "db";
|
|
187
|
+
filePath?: string | null | undefined;
|
|
188
|
+
contentHash?: string | null | undefined;
|
|
189
|
+
authorId?: string | null | undefined;
|
|
190
|
+
publishedAt?: number | null | undefined;
|
|
191
|
+
tenantId?: string | null | undefined;
|
|
192
|
+
locale?: string | undefined;
|
|
193
|
+
version?: string | undefined;
|
|
194
|
+
createdAt: number;
|
|
195
|
+
updatedAt: number;
|
|
196
|
+
} | null>;
|
|
197
|
+
total: import("vue").Ref<number, number>;
|
|
198
|
+
status: import("vue").Ref<"error" | "success" | "idle" | "loading", "error" | "success" | "idle" | "loading">;
|
|
199
|
+
error: import("vue").Ref<Error | null, Error | null>;
|
|
200
|
+
fetchEntries: (options?: CMSQueryOptions & {
|
|
201
|
+
collection?: string;
|
|
202
|
+
}) => Promise<{
|
|
203
|
+
entries: CMSEntry[];
|
|
204
|
+
total: number;
|
|
205
|
+
page: number;
|
|
206
|
+
limit: number;
|
|
207
|
+
}>;
|
|
208
|
+
fetchEntry: (slug: string, options?: {
|
|
209
|
+
collection?: string;
|
|
210
|
+
preview?: boolean;
|
|
211
|
+
previewToken?: string;
|
|
212
|
+
expires?: number | string;
|
|
213
|
+
}) => Promise<CMSEntry>;
|
|
214
|
+
search: (q: string, options?: {
|
|
215
|
+
collection?: string;
|
|
216
|
+
limit?: number;
|
|
217
|
+
offset?: number;
|
|
218
|
+
}) => Promise<{
|
|
219
|
+
results: CMSEntry[];
|
|
220
|
+
total: number;
|
|
221
|
+
}>;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Fetches the navigation tree for a "page" collection. Drop-in replacement for @nuxt/content's
|
|
225
|
+
* queryCollectionNavigation().
|
|
226
|
+
*
|
|
227
|
+
* Supports:
|
|
228
|
+
*
|
|
229
|
+
* - `levels`: Max tree depth (e.g. `levels: 1` for top-level navbar links)
|
|
230
|
+
* - `path`: Scope to a specific branch/subtree for lazy loading (e.g. `path: "/docs/cms"`)
|
|
231
|
+
* - `limit` / `skip`: Pagination for large navigation sets
|
|
232
|
+
*/
|
|
233
|
+
export declare function queryCollectionNavigation(collection: string, options?: CMSNavigationOptions): Promise<CMSNavigationItem[]>;
|
|
234
|
+
/**
|
|
235
|
+
* Returns a chainable query builder for a "page" collection. Drop-in replacement for
|
|
236
|
+
*
|
|
237
|
+
* @nuxt/content's queryCollection().
|
|
238
|
+
*
|
|
239
|
+
* Usage: const page = await queryCollection("docs").path("/docs/getting-started").first()
|
|
240
|
+
*/
|
|
241
|
+
export declare function queryCollection(collection: string): {
|
|
242
|
+
locale(loc: string): /*elided*/ any;
|
|
243
|
+
preview(enabled?: boolean, token?: string, expires?: string | number): /*elided*/ any;
|
|
244
|
+
path(p: string): /*elided*/ any;
|
|
245
|
+
where(field: string, opOrValue: any, value?: any): /*elided*/ any;
|
|
246
|
+
order(field: string, direction?: "ASC" | "DESC"): /*elided*/ any;
|
|
247
|
+
select(..._fields: string[]): /*elided*/ any;
|
|
248
|
+
limit(n: number): /*elided*/ any;
|
|
249
|
+
first(): Promise<CMSEntry | null>;
|
|
250
|
+
all(): Promise<CMSEntry[]>;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Returns [prev, next] navigation items surrounding the entry at `path`. Drop-in replacement for
|
|
254
|
+
*
|
|
255
|
+
* @nuxt/content's queryCollectionItemSurroundings().
|
|
256
|
+
*/
|
|
257
|
+
export declare function queryCollectionItemSurroundings(collection: string, path: string, options?: {
|
|
258
|
+
fields?: string[];
|
|
259
|
+
}): Promise<[CMSEntry | null, CMSEntry | null]>;
|
|
260
|
+
/**
|
|
261
|
+
* Reactive composable for managing multi-language CMS localization state.
|
|
262
|
+
* Allows reading active locale, switching locales, and persisting preferences across requests.
|
|
263
|
+
*/
|
|
264
|
+
export declare function useCMSLocale(): {
|
|
265
|
+
locale: import("vue").Ref<string, string>;
|
|
266
|
+
locales: import("vue").ComputedRef<string[]>;
|
|
267
|
+
defaultLocale: import("vue").ComputedRef<string>;
|
|
268
|
+
localeConfigs: import("vue").ComputedRef<CMSLocaleConfig[]>;
|
|
269
|
+
setLocale: (newLocale: string) => void;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Reactive client composable for searching documentation entries and heading sections.
|
|
273
|
+
*/
|
|
274
|
+
export declare function useDocsSearch(options?: {
|
|
275
|
+
collection?: string;
|
|
276
|
+
locale?: string;
|
|
277
|
+
}): {
|
|
278
|
+
query: import("vue").Ref<string, string>;
|
|
279
|
+
results: import("vue").Ref<{
|
|
280
|
+
id: string;
|
|
281
|
+
path: string;
|
|
282
|
+
title: string;
|
|
283
|
+
pageTitle: string;
|
|
284
|
+
titles: string[];
|
|
285
|
+
content: string;
|
|
286
|
+
section?: string | undefined;
|
|
287
|
+
locale?: string | undefined;
|
|
288
|
+
level?: number | undefined;
|
|
289
|
+
score: number;
|
|
290
|
+
}[], DocsSearchSection[] | {
|
|
291
|
+
id: string;
|
|
292
|
+
path: string;
|
|
293
|
+
title: string;
|
|
294
|
+
pageTitle: string;
|
|
295
|
+
titles: string[];
|
|
296
|
+
content: string;
|
|
297
|
+
section?: string | undefined;
|
|
298
|
+
locale?: string | undefined;
|
|
299
|
+
level?: number | undefined;
|
|
300
|
+
score: number;
|
|
301
|
+
}[]>;
|
|
302
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
303
|
+
total: import("vue").Ref<number, number>;
|
|
304
|
+
error: import("vue").Ref<Error | null, Error | null>;
|
|
305
|
+
search: (q: string) => Promise<void>;
|
|
306
|
+
searchDebounced: (q: string, delay?: number) => void;
|
|
307
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DocsVersionItem } from "../../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Reactive client composable for docs versioning.
|
|
4
|
+
* Automatically parses active version from router path (/docs/v1/... vs /docs/...),
|
|
5
|
+
* provides list of versions, and seamlessly switches versions while preserving subpaths.
|
|
6
|
+
*
|
|
7
|
+
* Version list resolution order:
|
|
8
|
+
* 1. Explicit `options.versions` passed to this composable
|
|
9
|
+
* 2. `runtimeConfig.public.qarpeo.docsVersions` (manual override in nuxt.config)
|
|
10
|
+
* 3. Auto-derived from `runtimeConfig.public.qarpeoVersion` (injected by the qarpeo
|
|
11
|
+
* module from its own package.json) — a single "latest" entry, no dropdown shown.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useDocsVersion(options?: {
|
|
14
|
+
versions?: DocsVersionItem[];
|
|
15
|
+
}): {
|
|
16
|
+
currentVersion: import("vue").ComputedRef<string>;
|
|
17
|
+
isLatest: import("vue").ComputedRef<boolean>;
|
|
18
|
+
isArchived: import("vue").ComputedRef<boolean>;
|
|
19
|
+
versions: import("vue").Ref<{
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
prefix: string;
|
|
23
|
+
isLatest?: boolean | undefined;
|
|
24
|
+
isArchived?: boolean | undefined;
|
|
25
|
+
}[], DocsVersionItem[] | {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
prefix: string;
|
|
29
|
+
isLatest?: boolean | undefined;
|
|
30
|
+
isArchived?: boolean | undefined;
|
|
31
|
+
}[]>;
|
|
32
|
+
activeVersionItem: import("vue").ComputedRef<DocsVersionItem>;
|
|
33
|
+
getVersionPath: (targetVersionId: string) => string;
|
|
34
|
+
switchVersion: (targetVersionId: string) => Promise<void>;
|
|
35
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { QarpeoUser } from "../../types/auth";
|
|
2
|
+
export declare function useImpersonation(): {
|
|
3
|
+
isImpersonating: import("vue").ComputedRef<boolean>;
|
|
4
|
+
impersonator: import("vue").ComputedRef<QarpeoUser | null>;
|
|
5
|
+
impersonatedUser: import("vue").ComputedRef<QarpeoUser | null>;
|
|
6
|
+
impersonateUser: (userId: string) => Promise<{
|
|
7
|
+
success: boolean;
|
|
8
|
+
user: QarpeoUser;
|
|
9
|
+
}>;
|
|
10
|
+
stopImpersonating: () => Promise<{
|
|
11
|
+
success: boolean;
|
|
12
|
+
user: QarpeoUser;
|
|
13
|
+
}>;
|
|
14
|
+
};
|