qarpeo 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/dist/module.mjs +30 -14
  2. package/dist/runtime/app/components/QarpeoWelcome.vue +84 -0
  3. package/package.json +1 -1
  4. package/dist/dev/env.d.ts +0 -12
  5. package/dist/dev/wrangler.d.ts +0 -18
  6. package/dist/module.d.ts +0 -17
  7. package/dist/runtime/ai.d.ts +0 -25
  8. package/dist/runtime/analytics.d.ts +0 -24
  9. package/dist/runtime/app/composables/analytics.d.ts +0 -125
  10. package/dist/runtime/app/composables/api-tokens.d.ts +0 -49
  11. package/dist/runtime/app/composables/auth.d.ts +0 -58
  12. package/dist/runtime/app/composables/chat.d.ts +0 -69
  13. package/dist/runtime/app/composables/cms-preview.d.ts +0 -33
  14. package/dist/runtime/app/composables/cms.d.ts +0 -307
  15. package/dist/runtime/app/composables/docs-version.d.ts +0 -35
  16. package/dist/runtime/app/composables/impersonation.d.ts +0 -14
  17. package/dist/runtime/app/composables/notifications.d.ts +0 -35
  18. package/dist/runtime/app/composables/organization.d.ts +0 -127
  19. package/dist/runtime/app/composables/passkey.d.ts +0 -6
  20. package/dist/runtime/app/composables/passwordless.d.ts +0 -7
  21. package/dist/runtime/app/composables/payments.d.ts +0 -43
  22. package/dist/runtime/app/composables/realtime.d.ts +0 -96
  23. package/dist/runtime/app/composables/site.d.ts +0 -35
  24. package/dist/runtime/app/composables/storage.d.ts +0 -60
  25. package/dist/runtime/app/composables/tenant.d.ts +0 -82
  26. package/dist/runtime/app/composables/turnstile.d.ts +0 -3
  27. package/dist/runtime/app/composables/two-factor.d.ts +0 -12
  28. package/dist/runtime/app/middleware/auth.global.d.ts +0 -2
  29. package/dist/runtime/app/plugins/seo.d.ts +0 -2
  30. package/dist/runtime/app/plugins/shortcuts.client.d.ts +0 -6
  31. package/dist/runtime/auth.d.ts +0 -25
  32. package/dist/runtime/bindings.d.ts +0 -27
  33. package/dist/runtime/blob.d.ts +0 -26
  34. package/dist/runtime/bots.d.ts +0 -1
  35. package/dist/runtime/browser.d.ts +0 -21
  36. package/dist/runtime/cache.d.ts +0 -19
  37. package/dist/runtime/cms.d.ts +0 -2
  38. package/dist/runtime/db.d.ts +0 -21
  39. package/dist/runtime/drizzle.d.ts +0 -11
  40. package/dist/runtime/email.d.ts +0 -51
  41. package/dist/runtime/hyperdrive.d.ts +0 -21
  42. package/dist/runtime/index.d.ts +0 -22
  43. package/dist/runtime/kv.d.ts +0 -16
  44. package/dist/runtime/payments.d.ts +0 -2
  45. package/dist/runtime/queue.d.ts +0 -21
  46. package/dist/runtime/rag.d.ts +0 -1
  47. package/dist/runtime/ratelimit.d.ts +0 -21
  48. package/dist/runtime/realtime.d.ts +0 -6
  49. package/dist/runtime/server/db/cms-schema.d.ts +0 -651
  50. package/dist/runtime/server/durable-objects/agent.d.ts +0 -14
  51. package/dist/runtime/server/durable-objects/room.d.ts +0 -34
  52. package/dist/runtime/server/middleware/auth.d.ts +0 -2
  53. package/dist/runtime/server/middleware/devtools.d.ts +0 -2
  54. package/dist/runtime/server/middleware/ratelimit.d.ts +0 -2
  55. package/dist/runtime/server/middleware/tenancy.d.ts +0 -6
  56. package/dist/runtime/server/middleware/tracker.d.ts +0 -7
  57. package/dist/runtime/server/plugins/agents.d.ts +0 -7
  58. package/dist/runtime/server/plugins/cms.d.ts +0 -8
  59. package/dist/runtime/server/plugins/dev-logs.d.ts +0 -1
  60. package/dist/runtime/server/plugins/dev-proxy.d.ts +0 -3
  61. package/dist/runtime/server/plugins/env.d.ts +0 -6
  62. package/dist/runtime/server/plugins/queue.d.ts +0 -6
  63. package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +0 -20
  64. package/dist/runtime/server/routes/__qarpeo/agents/clear.post.d.ts +0 -7
  65. package/dist/runtime/server/routes/__qarpeo/agents/create.post.d.ts +0 -17
  66. package/dist/runtime/server/routes/__qarpeo/agents/history.get.d.ts +0 -15
  67. package/dist/runtime/server/routes/__qarpeo/agents/list.get.d.ts +0 -5
  68. package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +0 -64
  69. package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +0 -30
  70. package/dist/runtime/server/routes/__qarpeo/auth/revoke-session.post.d.ts +0 -6
  71. package/dist/runtime/server/routes/__qarpeo/auth/sessions.get.d.ts +0 -6
  72. package/dist/runtime/server/routes/__qarpeo/auth/users.get.d.ts +0 -7
  73. package/dist/runtime/server/routes/__qarpeo/blob/files.get.d.ts +0 -22
  74. package/dist/runtime/server/routes/__qarpeo/db/query.post.d.ts +0 -23
  75. package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +0 -31
  76. package/dist/runtime/server/routes/__qarpeo/kv/delete.post.d.ts +0 -11
  77. package/dist/runtime/server/routes/__qarpeo/kv/get.get.d.ts +0 -11
  78. package/dist/runtime/server/routes/__qarpeo/kv/keys.get.d.ts +0 -8
  79. package/dist/runtime/server/routes/__qarpeo/kv/set.post.d.ts +0 -14
  80. package/dist/runtime/server/routes/__qarpeo/logs.delete.d.ts +0 -5
  81. package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +0 -5
  82. package/dist/runtime/server/routes/__qarpeo/logs.post.d.ts +0 -6
  83. package/dist/runtime/server/routes/__qarpeo/mail/bounce.post.d.ts +0 -5
  84. package/dist/runtime/server/routes/__qarpeo/mail/clear.post.d.ts +0 -4
  85. package/dist/runtime/server/routes/__qarpeo/mail/inbox.get.d.ts +0 -5
  86. package/dist/runtime/server/routes/__qarpeo/mail/send-test.post.d.ts +0 -4
  87. package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.d.ts +0 -2
  88. package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.d.ts +0 -2
  89. package/dist/runtime/server/routes/__qarpeo/overview/health.get.d.ts +0 -8
  90. package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +0 -32
  91. package/dist/runtime/server/routes/__qarpeo/settings/reset-dev-data.post.d.ts +0 -11
  92. package/dist/runtime/server/routes/__qarpeo/settings.get.d.ts +0 -124
  93. package/dist/runtime/server/routes/__qarpeo/tenants/create.post.d.ts +0 -7
  94. package/dist/runtime/server/routes/__qarpeo/tenants/domain-add.post.d.ts +0 -6
  95. package/dist/runtime/server/routes/__qarpeo/tenants/domain-delete.post.d.ts +0 -7
  96. package/dist/runtime/server/routes/__qarpeo/tenants/domain-verify.post.d.ts +0 -9
  97. package/dist/runtime/server/routes/__qarpeo/tenants/list.get.d.ts +0 -15
  98. package/dist/runtime/server/routes/agents/[agent]/chat.post.d.ts +0 -2
  99. package/dist/runtime/server/routes/agents/[agent]/clear.post.d.ts +0 -4
  100. package/dist/runtime/server/routes/agents/[agent]/history.get.d.ts +0 -4
  101. package/dist/runtime/server/routes/analytics/events.get.d.ts +0 -3
  102. package/dist/runtime/server/routes/analytics/pageviews.get.d.ts +0 -3
  103. package/dist/runtime/server/routes/analytics/summary.get.d.ts +0 -6
  104. package/dist/runtime/server/routes/atom.xml.get.d.ts +0 -2
  105. package/dist/runtime/server/routes/auth/2fa/disable.post.d.ts +0 -4
  106. package/dist/runtime/server/routes/auth/2fa/setup.post.d.ts +0 -6
  107. package/dist/runtime/server/routes/auth/2fa/verify.post.d.ts +0 -6
  108. package/dist/runtime/server/routes/auth/[provider]/callback.d.ts +0 -1
  109. package/dist/runtime/server/routes/auth/[provider].d.ts +0 -3
  110. package/dist/runtime/server/routes/auth/account.delete.d.ts +0 -5
  111. package/dist/runtime/server/routes/auth/impersonate/start.post.d.ts +0 -5
  112. package/dist/runtime/server/routes/auth/impersonate/stop.post.d.ts +0 -5
  113. package/dist/runtime/server/routes/auth/logout-all.post.d.ts +0 -4
  114. package/dist/runtime/server/routes/auth/logout-others.post.d.ts +0 -4
  115. package/dist/runtime/server/routes/auth/logout.post.d.ts +0 -4
  116. package/dist/runtime/server/routes/auth/magic-link/send.post.d.ts +0 -10
  117. package/dist/runtime/server/routes/auth/magic-link/verify.get.d.ts +0 -2
  118. package/dist/runtime/server/routes/auth/organization/create.post.d.ts +0 -5
  119. package/dist/runtime/server/routes/auth/organization/invite.post.d.ts +0 -9
  120. package/dist/runtime/server/routes/auth/organization/join.post.d.ts +0 -6
  121. package/dist/runtime/server/routes/auth/organization/list.get.d.ts +0 -5
  122. package/dist/runtime/server/routes/auth/organization/members/[id].delete.d.ts +0 -4
  123. package/dist/runtime/server/routes/auth/organization/members/index.get.d.ts +0 -6
  124. package/dist/runtime/server/routes/auth/organization/mfa.post.d.ts +0 -6
  125. package/dist/runtime/server/routes/auth/organization/sso/[id].delete.d.ts +0 -4
  126. package/dist/runtime/server/routes/auth/organization/sso/index.get.d.ts +0 -2
  127. package/dist/runtime/server/routes/auth/organization/sso/index.post.d.ts +0 -5
  128. package/dist/runtime/server/routes/auth/organization/switch.post.d.ts +0 -6
  129. package/dist/runtime/server/routes/auth/otp/send.post.d.ts +0 -10
  130. package/dist/runtime/server/routes/auth/otp/verify.post.d.ts +0 -6
  131. package/dist/runtime/server/routes/auth/sessions/[id].delete.d.ts +0 -5
  132. package/dist/runtime/server/routes/auth/sessions.get.d.ts +0 -2
  133. package/dist/runtime/server/routes/auth/sso/login.get.d.ts +0 -2
  134. package/dist/runtime/server/routes/auth/sso/oidc/callback.get.d.ts +0 -2
  135. package/dist/runtime/server/routes/auth/sso/saml/acs.post.d.ts +0 -2
  136. package/dist/runtime/server/routes/auth/tokens/[id].delete.d.ts +0 -4
  137. package/dist/runtime/server/routes/auth/tokens/create.post.d.ts +0 -9
  138. package/dist/runtime/server/routes/auth/tokens/index.get.d.ts +0 -9
  139. package/dist/runtime/server/routes/auth/turnstile/verify.post.d.ts +0 -2
  140. package/dist/runtime/server/routes/auth/user.get.d.ts +0 -2
  141. package/dist/runtime/server/routes/auth/webauthn/login/options.post.d.ts +0 -2
  142. package/dist/runtime/server/routes/auth/webauthn/login/verify.post.d.ts +0 -6
  143. package/dist/runtime/server/routes/auth/webauthn/register/options.post.d.ts +0 -2
  144. package/dist/runtime/server/routes/auth/webauthn/register/verify.post.d.ts +0 -5
  145. package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.d.ts +0 -8
  146. package/dist/runtime/server/routes/cms/[collection]/[id]/publish.post.d.ts +0 -6
  147. package/dist/runtime/server/routes/cms/[collection]/[id]/review.post.d.ts +0 -6
  148. package/dist/runtime/server/routes/cms/[collection]/[id].delete.d.ts +0 -4
  149. package/dist/runtime/server/routes/cms/[collection]/[id].put.d.ts +0 -4
  150. package/dist/runtime/server/routes/cms/[collection]/[slug].get.d.ts +0 -4
  151. package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.d.ts +0 -2
  152. package/dist/runtime/server/routes/cms/[collection]/by-path.get.d.ts +0 -8
  153. package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.d.ts +0 -2
  154. package/dist/runtime/server/routes/cms/[collection]/index.get.d.ts +0 -7
  155. package/dist/runtime/server/routes/cms/[collection]/index.post.d.ts +0 -4
  156. package/dist/runtime/server/routes/cms/[collection]/references.get.d.ts +0 -19
  157. package/dist/runtime/server/routes/cms/[collection]/surroundings.get.d.ts +0 -10
  158. package/dist/runtime/server/routes/cms/collections/[id].delete.d.ts +0 -4
  159. package/dist/runtime/server/routes/cms/collections/[id].put.d.ts +0 -4
  160. package/dist/runtime/server/routes/cms/collections/index.get.d.ts +0 -4
  161. package/dist/runtime/server/routes/cms/collections/index.post.d.ts +0 -4
  162. package/dist/runtime/server/routes/cms/components/index.get.d.ts +0 -17
  163. package/dist/runtime/server/routes/cms/deploy.post.d.ts +0 -4
  164. package/dist/runtime/server/routes/cms/export.post.d.ts +0 -10
  165. package/dist/runtime/server/routes/cms/navigation.get.d.ts +0 -8
  166. package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +0 -9
  167. package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +0 -14
  168. package/dist/runtime/server/routes/cms/publish-scheduled.post.d.ts +0 -11
  169. package/dist/runtime/server/routes/cms/search.get.d.ts +0 -13
  170. package/dist/runtime/server/routes/cms/sync.post.d.ts +0 -7
  171. package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +0 -150
  172. package/dist/runtime/server/routes/docs/search.get.d.ts +0 -15
  173. package/dist/runtime/server/routes/feed.xml.get.d.ts +0 -2
  174. package/dist/runtime/server/routes/mail/bounce.post.d.ts +0 -14
  175. package/dist/runtime/server/routes/mail/inbox/[id].get.d.ts +0 -2
  176. package/dist/runtime/server/routes/mail/inbox.get.d.ts +0 -4
  177. package/dist/runtime/server/routes/mail/suppressions/[email].delete.d.ts +0 -11
  178. package/dist/runtime/server/routes/mail/suppressions/index.get.d.ts +0 -12
  179. package/dist/runtime/server/routes/mail/suppressions/index.post.d.ts +0 -10
  180. package/dist/runtime/server/routes/mail/unsubscribe.d.ts +0 -13
  181. package/dist/runtime/server/routes/mail/webhooks.post.d.ts +0 -12
  182. package/dist/runtime/server/routes/notifications/[id]/read.post.d.ts +0 -4
  183. package/dist/runtime/server/routes/notifications/[id].delete.d.ts +0 -4
  184. package/dist/runtime/server/routes/notifications/[id].get.d.ts +0 -2
  185. package/dist/runtime/server/routes/notifications/index.get.d.ts +0 -6
  186. package/dist/runtime/server/routes/notifications/push/subscribe.post.d.ts +0 -4
  187. package/dist/runtime/server/routes/notifications/push/unsubscribe.post.d.ts +0 -4
  188. package/dist/runtime/server/routes/notifications/read-all.post.d.ts +0 -4
  189. package/dist/runtime/server/routes/payments/cancel.post.d.ts +0 -7
  190. package/dist/runtime/server/routes/payments/change-plan.post.d.ts +0 -7
  191. package/dist/runtime/server/routes/payments/checkout.post.d.ts +0 -9
  192. package/dist/runtime/server/routes/payments/pause.post.d.ts +0 -7
  193. package/dist/runtime/server/routes/payments/portal.post.d.ts +0 -5
  194. package/dist/runtime/server/routes/payments/subscription.get.d.ts +0 -6
  195. package/dist/runtime/server/routes/payments/usage.get.d.ts +0 -12
  196. package/dist/runtime/server/routes/payments/usage.post.d.ts +0 -6
  197. package/dist/runtime/server/routes/payments/webhook.post.d.ts +0 -14
  198. package/dist/runtime/server/routes/realtime/broadcast.post.d.ts +0 -4
  199. package/dist/runtime/server/routes/realtime/history.delete.d.ts +0 -13
  200. package/dist/runtime/server/routes/realtime/history.get.d.ts +0 -16
  201. package/dist/runtime/server/routes/realtime/presence.get.d.ts +0 -6
  202. package/dist/runtime/server/routes/realtime/state.get.d.ts +0 -5
  203. package/dist/runtime/server/routes/realtime/state.post.d.ts +0 -6
  204. package/dist/runtime/server/routes/realtime/ws.get.d.ts +0 -2
  205. package/dist/runtime/server/routes/robots.txt.get.d.ts +0 -2
  206. package/dist/runtime/server/routes/rss.xml.get.d.ts +0 -2
  207. package/dist/runtime/server/routes/sitemap.xml.get.d.ts +0 -2
  208. package/dist/runtime/server/routes/storage/file/[...key].delete.d.ts +0 -4
  209. package/dist/runtime/server/routes/storage/file/[...key].get.d.ts +0 -2
  210. package/dist/runtime/server/routes/storage/files.get.d.ts +0 -14
  211. package/dist/runtime/server/routes/storage/presigned.post.d.ts +0 -8
  212. package/dist/runtime/server/routes/storage/sign.post.d.ts +0 -6
  213. package/dist/runtime/server/routes/storage/upload.post.d.ts +0 -22
  214. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.d.ts +0 -8
  215. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.d.ts +0 -8
  216. package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.d.ts +0 -8
  217. package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.d.ts +0 -8
  218. package/dist/runtime/server/routes/tenants/current.get.d.ts +0 -8
  219. package/dist/runtime/server/tasks/cms/publish.d.ts +0 -4
  220. package/dist/runtime/server/utils/agent-store.d.ts +0 -24
  221. package/dist/runtime/server/utils/agents-registry-fallback.d.ts +0 -1
  222. package/dist/runtime/server/utils/ai.d.ts +0 -119
  223. package/dist/runtime/server/utils/analytics-query.d.ts +0 -109
  224. package/dist/runtime/server/utils/auth.d.ts +0 -60
  225. package/dist/runtime/server/utils/blob-store.d.ts +0 -13
  226. package/dist/runtime/server/utils/bots.d.ts +0 -21
  227. package/dist/runtime/server/utils/cache.d.ts +0 -33
  228. package/dist/runtime/server/utils/cms-events.d.ts +0 -17
  229. package/dist/runtime/server/utils/cms-filter.d.ts +0 -3
  230. package/dist/runtime/server/utils/cms.d.ts +0 -287
  231. package/dist/runtime/server/utils/config.d.ts +0 -27
  232. package/dist/runtime/server/utils/context.d.ts +0 -13
  233. package/dist/runtime/server/utils/crypto.d.ts +0 -16
  234. package/dist/runtime/server/utils/dev-logs.d.ts +0 -21
  235. package/dist/runtime/server/utils/dev-proxy.d.ts +0 -1
  236. package/dist/runtime/server/utils/domains.d.ts +0 -46
  237. package/dist/runtime/server/utils/drizzle.d.ts +0 -10
  238. package/dist/runtime/server/utils/email-templates.d.ts +0 -44
  239. package/dist/runtime/server/utils/feed.d.ts +0 -42
  240. package/dist/runtime/server/utils/impersonation.d.ts +0 -67
  241. package/dist/runtime/server/utils/jobs.d.ts +0 -70
  242. package/dist/runtime/server/utils/kv-store.d.ts +0 -9
  243. package/dist/runtime/server/utils/mail-suppression.d.ts +0 -62
  244. package/dist/runtime/server/utils/mail.d.ts +0 -90
  245. package/dist/runtime/server/utils/notifications.d.ts +0 -51
  246. package/dist/runtime/server/utils/organization.d.ts +0 -54
  247. package/dist/runtime/server/utils/passwordless.d.ts +0 -48
  248. package/dist/runtime/server/utils/payments.d.ts +0 -121
  249. package/dist/runtime/server/utils/queue-fallback.d.ts +0 -2
  250. package/dist/runtime/server/utils/queue.d.ts +0 -4
  251. package/dist/runtime/server/utils/rag.d.ts +0 -25
  252. package/dist/runtime/server/utils/ratelimit.d.ts +0 -45
  253. package/dist/runtime/server/utils/realtime.d.ts +0 -110
  254. package/dist/runtime/server/utils/schema-fallback.d.ts +0 -3
  255. package/dist/runtime/server/utils/session.d.ts +0 -72
  256. package/dist/runtime/server/utils/sso.d.ts +0 -49
  257. package/dist/runtime/server/utils/storage.d.ts +0 -111
  258. package/dist/runtime/server/utils/tenant.d.ts +0 -44
  259. package/dist/runtime/server/utils/totp.d.ts +0 -33
  260. package/dist/runtime/server/utils/tracker.d.ts +0 -72
  261. package/dist/runtime/server/utils/turnstile.d.ts +0 -17
  262. package/dist/runtime/server/utils/vapid.d.ts +0 -35
  263. package/dist/runtime/storage.d.ts +0 -1
  264. package/dist/runtime/types/ai.d.ts +0 -68
  265. package/dist/runtime/types/analytics.d.ts +0 -30
  266. package/dist/runtime/types/auth.d.ts +0 -153
  267. package/dist/runtime/types/browser.d.ts +0 -29
  268. package/dist/runtime/types/d1.d.ts +0 -44
  269. package/dist/runtime/types/drizzle.d.ts +0 -13
  270. package/dist/runtime/types/durable-object.d.ts +0 -51
  271. package/dist/runtime/types/email.d.ts +0 -66
  272. package/dist/runtime/types/hyperdrive.d.ts +0 -18
  273. package/dist/runtime/types/index.d.ts +0 -156
  274. package/dist/runtime/types/queue.d.ts +0 -67
  275. package/dist/runtime/types/r2.d.ts +0 -108
  276. package/dist/runtime/types/ratelimit.d.ts +0 -21
  277. package/dist/runtime/types/vectorize.d.ts +0 -74
  278. package/dist/runtime/vectorize.d.ts +0 -21
  279. package/dist/types.d.ts +0 -2752
  280. package/dist/utils/agents.d.ts +0 -8
  281. package/dist/utils/auth-schema.d.ts +0 -11
  282. package/dist/utils/bindings.d.ts +0 -16
  283. package/dist/utils/cms-scan.d.ts +0 -36
  284. package/dist/utils/cms-schema.d.ts +0 -1
  285. package/dist/utils/cms-sources.d.ts +0 -67
  286. package/dist/utils/drizzle.d.ts +0 -42
  287. package/dist/utils/jobs.d.ts +0 -8
  288. package/dist/utils/local-db.d.ts +0 -28
  289. package/dist/utils/notifications-schema.d.ts +0 -15
  290. package/dist/utils/payments-schema.d.ts +0 -11
  291. package/dist/utils/pkg.d.ts +0 -15
  292. package/dist/utils/queue.d.ts +0 -8
  293. package/dist/utils/tenants-schema.d.ts +0 -11
@@ -1,307 +0,0 @@
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
- };
@@ -1,35 +0,0 @@
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
- };
@@ -1,14 +0,0 @@
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
- };
@@ -1,35 +0,0 @@
1
- import { type ComputedRef, type Ref } from "vue";
2
- import type { NotificationRecord } from "../../../types";
3
- export interface UseNotificationsReturn {
4
- /** All fetched notifications */
5
- notifications: Ref<NotificationRecord[]>;
6
- /** Count of unread notifications */
7
- unreadCount: ComputedRef<number>;
8
- /** Whether the initial fetch is in progress */
9
- pending: Ref<boolean>;
10
- /** Mark a single notification as read */
11
- markAsRead: (id: string) => Promise<void>;
12
- /** Mark all notifications as read */
13
- markAllAsRead: () => Promise<void>;
14
- /** Delete a notification */
15
- remove: (id: string) => Promise<void>;
16
- /** Subscribe to browser Web Push notifications */
17
- subscribeToWebPush: () => Promise<boolean>;
18
- /** Unsubscribe from browser Web Push notifications */
19
- unsubscribeFromWebPush: () => Promise<boolean>;
20
- /** Whether browser Web Push is currently subscribed */
21
- isPushSubscribed: Ref<boolean>;
22
- /** Refresh the notifications list */
23
- refresh: () => Promise<void>;
24
- }
25
- /**
26
- * Composable for managing in-app notifications and Web Push subscriptions.
27
- *
28
- * @example
29
- * ```vue
30
- * <script setup>
31
- * const { notifications, unreadCount, markAsRead, subscribeToWebPush } = useNotifications()
32
- * </script>
33
- * ```
34
- */
35
- export declare function useNotifications(): UseNotificationsReturn;
@@ -1,127 +0,0 @@
1
- import type { QarpeoOrganization, QarpeoMember } from "../../types/auth";
2
- export type QarpeoUserOrg = QarpeoOrganization & {
3
- role: string;
4
- memberId: string;
5
- };
6
- export declare function useOrganization(): {
7
- organization: import("vue").ComputedRef<QarpeoOrganization | null>;
8
- organizations: import("vue").Ref<{
9
- id: string;
10
- name: string;
11
- slug: string;
12
- logoUrl?: string | null | undefined;
13
- createdAt: number;
14
- role: string;
15
- memberId: string;
16
- }[], QarpeoUserOrg[] | {
17
- id: string;
18
- name: string;
19
- slug: string;
20
- logoUrl?: string | null | undefined;
21
- createdAt: number;
22
- role: string;
23
- memberId: string;
24
- }[]>;
25
- role: import("vue").ComputedRef<string | null>;
26
- members: import("vue").Ref<{
27
- id: string;
28
- organizationId: string;
29
- userId: string;
30
- role: "owner" | "admin" | "member" | string;
31
- createdAt: number;
32
- user?: {
33
- [x: string]: any;
34
- id: string;
35
- email: string;
36
- name?: string | null | undefined;
37
- avatarUrl?: string | null | undefined;
38
- emailVerified?: boolean | undefined;
39
- role?: string | undefined;
40
- } | undefined;
41
- email?: string | undefined;
42
- name?: string | undefined;
43
- avatarUrl?: string | undefined;
44
- }[], (QarpeoMember & {
45
- email?: string;
46
- name?: string;
47
- avatarUrl?: string;
48
- })[] | {
49
- id: string;
50
- organizationId: string;
51
- userId: string;
52
- role: "owner" | "admin" | "member" | string;
53
- createdAt: number;
54
- user?: {
55
- [x: string]: any;
56
- id: string;
57
- email: string;
58
- name?: string | null | undefined;
59
- avatarUrl?: string | null | undefined;
60
- emailVerified?: boolean | undefined;
61
- role?: string | undefined;
62
- } | undefined;
63
- email?: string | undefined;
64
- name?: string | undefined;
65
- avatarUrl?: string | undefined;
66
- }[]>;
67
- loading: import("vue").Ref<boolean, boolean>;
68
- fetchOrganizations: () => Promise<{
69
- id: string;
70
- name: string;
71
- slug: string;
72
- logoUrl?: string | null | undefined;
73
- createdAt: number;
74
- role: string;
75
- memberId: string;
76
- }[]>;
77
- createOrganization: (input: {
78
- name: string;
79
- slug?: string;
80
- logoUrl?: string | null;
81
- }) => Promise<{
82
- organization: QarpeoOrganization;
83
- member: QarpeoMember;
84
- }>;
85
- switchOrganization: (organizationId: string) => Promise<{
86
- success: boolean;
87
- organization: QarpeoOrganization;
88
- role: string;
89
- }>;
90
- inviteMember: (input: {
91
- email: string;
92
- role?: string;
93
- organizationId?: string;
94
- }) => Promise<{
95
- invitationId: string;
96
- token: string;
97
- expiresAt: number;
98
- inviteUrl: string;
99
- }>;
100
- removeMember: (memberId: string, organizationId?: string) => Promise<{
101
- success: boolean;
102
- }>;
103
- fetchMembers: (organizationId?: string) => Promise<{
104
- id: string;
105
- organizationId: string;
106
- userId: string;
107
- role: "owner" | "admin" | "member" | string;
108
- createdAt: number;
109
- user?: {
110
- [x: string]: any;
111
- id: string;
112
- email: string;
113
- name?: string | null | undefined;
114
- avatarUrl?: string | null | undefined;
115
- emailVerified?: boolean | undefined;
116
- role?: string | undefined;
117
- } | undefined;
118
- email?: string | undefined;
119
- name?: string | undefined;
120
- avatarUrl?: string | undefined;
121
- }[]>;
122
- joinOrganization: (token: string) => Promise<{
123
- success: boolean;
124
- organizationId: string;
125
- role: string;
126
- }>;
127
- };
@@ -1,6 +0,0 @@
1
- export declare function usePasskey(): {
2
- loading: import("vue").Ref<boolean, boolean>;
3
- error: import("vue").Ref<string | null, string | null>;
4
- registerPasskey: () => Promise<any>;
5
- loginWithPasskey: () => Promise<any>;
6
- };
@@ -1,7 +0,0 @@
1
- export declare function usePasswordless(): {
2
- loading: import("vue").Ref<boolean, boolean>;
3
- error: import("vue").Ref<string | null, string | null>;
4
- sendOtp: (email: string) => Promise<any>;
5
- verifyOtp: (email: string, code: string) => Promise<any>;
6
- sendMagicLink: (email: string) => Promise<any>;
7
- };
@@ -1,43 +0,0 @@
1
- import type { QarpeoSubscription } from "../../../types";
2
- /**
3
- * Reactive composable for managing customer subscription status, initiating checkout sessions,
4
- * opening the customer billing portal, and reporting/querying metered usage.
5
- *
6
- * Usage: const { subscription, isSubscribed, checkout, openPortal, reportUsage, getUsage } = useSubscription()
7
- */
8
- export declare function useSubscription(): {
9
- subscription: import("vue").ComputedRef<QarpeoSubscription | null>;
10
- isSubscribed: import("vue").ComputedRef<boolean>;
11
- plan: import("vue").ComputedRef<string | null>;
12
- status: import("vue").ComputedRef<string | null>;
13
- loading: import("vue").ComputedRef<boolean>;
14
- error: any;
15
- checkout: (planId?: string, options?: {
16
- priceId?: string;
17
- mode?: "subscription" | "payment" | "setup";
18
- trialDays?: number;
19
- customerEmail?: string;
20
- successUrl?: string;
21
- cancelUrl?: string;
22
- }) => Promise<any>;
23
- openPortal: (options?: {
24
- returnUrl?: string;
25
- }) => Promise<any>;
26
- reportUsage: (eventName: string, quantity?: number, metadata?: Record<string, any>) => Promise<any>;
27
- getUsage: (eventName?: string, options?: {
28
- since?: number;
29
- until?: number;
30
- }) => Promise<any>;
31
- refresh: any;
32
- };
33
- /** Convenient standalone composable for initiating one-off or subscription checkout flows. */
34
- export declare function useCheckout(): {
35
- checkout: (planId?: string, options?: {
36
- priceId?: string;
37
- mode?: "subscription" | "payment" | "setup";
38
- trialDays?: number;
39
- customerEmail?: string;
40
- successUrl?: string;
41
- cancelUrl?: string;
42
- }) => Promise<any>;
43
- };
@@ -1,96 +0,0 @@
1
- import { type Ref, type MaybeRefOrGetter } from "vue";
2
- import type { RealtimeMessage, RealtimeUser, UsePresenceOptions, UsePresenceReturn, UseRoomStateReturn } from "../../../types";
3
- export interface UseRealtimeOptions {
4
- /** Base path for the WebSocket endpoint. @default "/api/realtime/ws" */
5
- path?: string;
6
- /** Custom user details for presence identification. */
7
- user?: Partial<RealtimeUser>;
8
- /** Initial presence state to send upon connection. */
9
- presence?: Record<string, any>;
10
- /** Enable automatic heartbeat ping every N milliseconds. @default 30000 */
11
- heartbeatInterval?: number;
12
- /** Alias for `heartbeatInterval`. @default 30000 */
13
- heartbeat?: number;
14
- /** Enable automatic reconnect on abnormal connection drop. @default true */
15
- autoReconnect?: boolean;
16
- /** Alias for `autoReconnect`. @default true */
17
- reconnect?: boolean;
18
- /** Maximum number of reconnection attempts before giving up. @default 10 */
19
- maxReconnectAttempts?: number;
20
- /** Initial delay for exponential backoff in milliseconds. @default 1000 */
21
- reconnectBaseDelay?: number;
22
- /** Maximum reconnection delay ceiling in milliseconds. @default 15000 */
23
- reconnectMaxDelay?: number;
24
- /** Replay unreceived messages automatically on reconnect using sequence numbers. @default true */
25
- replayOnReconnect?: boolean;
26
- /** Maximum number of messages retained in client history ref. @default 100 */
27
- historyLimit?: number;
28
- }
29
- export interface UseRealtimeReturn<Events extends Record<string, any> = Record<string, any>> {
30
- /** Whether the WebSocket connection is actively open. */
31
- connected: Ref<boolean>;
32
- /** Whether the WebSocket is currently attempting to connect or reconnect. */
33
- connecting: Ref<boolean>;
34
- /** Latest connection or socket error. */
35
- error: Ref<Error | null>;
36
- /** Reactive list of users currently present in the room. */
37
- presence: Ref<RealtimeUser[]>;
38
- /** Replay buffer of messages received since connection (or history:sync on reconnect). */
39
- history: Ref<RealtimeMessage[]>;
40
- /** Synchronized room state from the Durable Object. */
41
- state: Ref<Record<string, any>>;
42
- /** Raw active WebSocket reference. */
43
- ws: Ref<WebSocket | null>;
44
- /** Listen for an event broadcasted in the room. Returns an unsubscribe function. */
45
- on: <E extends string = string>(event: E, handler: (payload: E extends keyof Events ? Events[E] : any, message: RealtimeMessage) => void) => () => void;
46
- /**
47
- * Remove a specific handler (or all handlers) for an event.
48
- * If `handler` is omitted, all listeners for that event are removed.
49
- */
50
- off: <E extends string = string>(event: E, handler?: (payload: E extends keyof Events ? Events[E] : any, message: RealtimeMessage) => void) => void;
51
- /** Broadcast an event to peers in the room. */
52
- send: <E extends string = string>(event: E, payload: E extends keyof Events ? Events[E] : any, options?: {
53
- self?: boolean;
54
- }) => void;
55
- /** Update current user's live presence data (broadcasted to all peers). */
56
- updatePresence: (presenceData: Record<string, any>) => void;
57
- /** Replace the synchronized room state. */
58
- setState: (newState: Record<string, any>) => void;
59
- /** Merge a partial patch into the synchronized room state. */
60
- patchState: (patch: Record<string, any>) => void;
61
- /** Manually initiate connection. */
62
- connect: () => void;
63
- /** Manually close the connection. */
64
- disconnect: () => void;
65
- }
66
- /**
67
- * Universal Vue 3 / Nuxt 5 composable for edge-first WebSockets and room pub/sub.
68
- *
69
- * @param room Name or reactive reference to the target room (e.g. "doc:123", "chat:support").
70
- * @param options Configuration options.
71
- */
72
- export declare function useRealtime<Events extends Record<string, any> = Record<string, any>>(room: MaybeRefOrGetter<string>, options?: UseRealtimeOptions): UseRealtimeReturn<Events>;
73
- /**
74
- * High-level composable for live presence, user tracking, typing indicators, and cursors.
75
- *
76
- * @example
77
- * ```vue
78
- * <script setup>
79
- * const { myPresence, updatePresence, peers, onlineCount, onCursorMove } = usePresence("doc:42", {
80
- * initial: { status: "viewing" }
81
- * })
82
- * </script>
83
- * ```
84
- */
85
- export declare function usePresence<T extends Record<string, any> = Record<string, any>>(room: MaybeRefOrGetter<string>, options?: UsePresenceOptions<T>): UsePresenceReturn<T>;
86
- /**
87
- * High-level composable for synchronized reactive room state across all connected users.
88
- *
89
- * @example
90
- * ```vue
91
- * <script setup>
92
- * const { state, patchState } = useRoomState("poll:101", { votes: 0 })
93
- * </script>
94
- * ```
95
- */
96
- export declare function useRoomState<T extends Record<string, any> = Record<string, any>>(room: MaybeRefOrGetter<string>, initialState?: T): UseRoomStateReturn<T>;