nuxt-backend 0.1.0 → 0.2.1
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/LICENSE +1 -1
- package/README.md +261 -657
- package/dist/analyze/types.js +4 -0
- package/dist/capabilities/detect.js +217 -0
- package/dist/capabilities/health.js +29 -0
- package/dist/capabilities/registry.js +205 -0
- package/dist/capabilities/status.js +61 -0
- package/dist/capabilities/types.js +19 -0
- package/dist/chunks/catalog.mjs +39 -0
- package/dist/chunks/doctor.mjs +3024 -0
- package/dist/chunks/email-previews.mjs +77 -0
- package/dist/chunks/health.mjs +35 -0
- package/dist/chunks/index.mjs +234 -0
- package/dist/chunks/install.mjs +63 -0
- package/dist/chunks/report.mjs +150 -0
- package/dist/chunks/run.mjs +318 -0
- package/dist/chunks/server.mjs +1012 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +3649 -0
- package/dist/convex/access-tickets.d.ts +134 -0
- package/dist/convex/access-tickets.d.ts.map +1 -0
- package/dist/convex/access-tickets.js +104 -0
- package/dist/convex/access-tickets.js.map +1 -0
- package/dist/convex/account-data.d.ts +455 -0
- package/dist/convex/account-data.d.ts.map +1 -0
- package/dist/convex/account-data.js +454 -0
- package/dist/convex/account-data.js.map +1 -0
- package/dist/convex/activation-rules.d.ts +89 -0
- package/dist/convex/activation-rules.d.ts.map +1 -0
- package/dist/convex/activation-rules.js +85 -0
- package/dist/convex/activation-rules.js.map +1 -0
- package/dist/convex/announcements.d.ts +50 -0
- package/dist/convex/announcements.d.ts.map +1 -0
- package/dist/convex/announcements.js +26 -0
- package/dist/convex/announcements.js.map +1 -0
- package/dist/convex/app.d.ts +107 -0
- package/dist/convex/app.d.ts.map +1 -0
- package/dist/convex/app.js +130 -0
- package/dist/convex/app.js.map +1 -0
- package/dist/convex/auth-secrets.d.ts +70 -0
- package/dist/convex/auth-secrets.d.ts.map +1 -0
- package/dist/convex/auth-secrets.js +102 -0
- package/dist/convex/auth-secrets.js.map +1 -0
- package/dist/convex/auth.config.d.ts +25 -1
- package/dist/convex/auth.config.d.ts.map +1 -1
- package/dist/convex/auth.config.js +20 -2
- package/dist/convex/auth.config.js.map +1 -1
- package/dist/convex/bytes.d.ts +3 -0
- package/dist/convex/bytes.d.ts.map +1 -0
- package/dist/convex/bytes.js +11 -0
- package/dist/convex/bytes.js.map +1 -0
- package/dist/convex/c2pa/cbor.d.ts +12 -0
- package/dist/convex/c2pa/cbor.d.ts.map +1 -0
- package/dist/convex/c2pa/cbor.js +81 -0
- package/dist/convex/c2pa/cbor.js.map +1 -0
- package/dist/convex/c2pa/der.d.ts +23 -0
- package/dist/convex/c2pa/der.d.ts.map +1 -0
- package/dist/convex/c2pa/der.js +88 -0
- package/dist/convex/c2pa/der.js.map +1 -0
- package/dist/convex/c2pa/formats.d.ts +25 -0
- package/dist/convex/c2pa/formats.d.ts.map +1 -0
- package/dist/convex/c2pa/formats.js +276 -0
- package/dist/convex/c2pa/formats.js.map +1 -0
- package/dist/convex/c2pa/jumbf.d.ts +16 -0
- package/dist/convex/c2pa/jumbf.d.ts.map +1 -0
- package/dist/convex/c2pa/jumbf.js +41 -0
- package/dist/convex/c2pa/jumbf.js.map +1 -0
- package/dist/convex/c2pa/manifest.d.ts +39 -0
- package/dist/convex/c2pa/manifest.d.ts.map +1 -0
- package/dist/convex/c2pa/manifest.js +161 -0
- package/dist/convex/c2pa/manifest.js.map +1 -0
- package/dist/convex/catalog.d.ts +481 -0
- package/dist/convex/catalog.d.ts.map +1 -0
- package/dist/convex/catalog.js +341 -0
- package/dist/convex/catalog.js.map +1 -0
- package/dist/convex/client/age-gate.d.ts +38 -0
- package/dist/convex/client/age-gate.d.ts.map +1 -0
- package/dist/convex/client/age-gate.js +129 -0
- package/dist/convex/client/age-gate.js.map +1 -0
- package/dist/convex/client/audit.d.ts +36 -0
- package/dist/convex/client/audit.d.ts.map +1 -0
- package/dist/convex/client/audit.js +278 -0
- package/dist/convex/client/audit.js.map +1 -0
- package/dist/convex/client/auth-types.d.ts +342 -0
- package/dist/convex/client/auth-types.d.ts.map +1 -0
- package/dist/convex/client/auth-types.js +2 -0
- package/dist/convex/client/auth-types.js.map +1 -0
- package/dist/convex/client/better-auth-options.d.ts +21 -0
- package/dist/convex/client/better-auth-options.d.ts.map +1 -0
- package/dist/convex/client/better-auth-options.js +478 -0
- package/dist/convex/client/better-auth-options.js.map +1 -0
- package/dist/convex/client/client-address.d.ts +21 -0
- package/dist/convex/client/client-address.d.ts.map +1 -0
- package/dist/convex/client/client-address.js +37 -0
- package/dist/convex/client/client-address.js.map +1 -0
- package/dist/convex/client/code-binding.d.ts +23 -0
- package/dist/convex/client/code-binding.d.ts.map +1 -0
- package/dist/convex/client/code-binding.js +100 -0
- package/dist/convex/client/code-binding.js.map +1 -0
- package/dist/convex/client/codes.d.ts +26 -0
- package/dist/convex/client/codes.d.ts.map +1 -0
- package/dist/convex/client/codes.js +46 -0
- package/dist/convex/client/codes.js.map +1 -0
- package/dist/convex/client/component.d.ts +185 -0
- package/dist/convex/client/component.d.ts.map +1 -0
- package/dist/convex/client/component.js +139 -0
- package/dist/convex/client/component.js.map +1 -0
- package/dist/convex/client/devices.d.ts +2 -0
- package/dist/convex/client/devices.d.ts.map +1 -0
- package/dist/convex/client/devices.js +188 -0
- package/dist/convex/client/devices.js.map +1 -0
- package/dist/convex/client/email.d.ts +10 -0
- package/dist/convex/client/email.d.ts.map +1 -0
- package/dist/convex/client/email.js +78 -0
- package/dist/convex/client/email.js.map +1 -0
- package/dist/convex/client/entities.d.ts +22 -0
- package/dist/convex/client/entities.d.ts.map +1 -0
- package/dist/convex/client/entities.js +82 -0
- package/dist/convex/client/entities.js.map +1 -0
- package/dist/convex/client/guards.d.ts +121 -0
- package/dist/convex/client/guards.d.ts.map +1 -0
- package/dist/convex/client/guards.js +874 -0
- package/dist/convex/client/guards.js.map +1 -0
- package/dist/convex/client/guest-claim.d.ts +21 -0
- package/dist/convex/client/guest-claim.d.ts.map +1 -0
- package/dist/convex/client/guest-claim.js +45 -0
- package/dist/convex/client/guest-claim.js.map +1 -0
- package/dist/convex/client/hooks.d.ts +23 -0
- package/dist/convex/client/hooks.d.ts.map +1 -0
- package/dist/convex/client/hooks.js +69 -0
- package/dist/convex/client/hooks.js.map +1 -0
- package/dist/convex/client/identity.d.ts +3 -0
- package/dist/convex/client/identity.d.ts.map +1 -0
- package/dist/convex/client/identity.js +8 -0
- package/dist/convex/client/identity.js.map +1 -0
- package/dist/convex/client/index.d.ts +1847 -11538
- package/dist/convex/client/index.d.ts.map +1 -1
- package/dist/convex/client/index.js +226 -200
- package/dist/convex/client/index.js.map +1 -1
- package/dist/convex/client/launch-gate.d.ts +69 -0
- package/dist/convex/client/launch-gate.d.ts.map +1 -0
- package/dist/convex/client/launch-gate.js +212 -0
- package/dist/convex/client/launch-gate.js.map +1 -0
- package/dist/convex/client/notices.d.ts +11 -0
- package/dist/convex/client/notices.d.ts.map +1 -0
- package/dist/convex/client/notices.js +38 -0
- package/dist/convex/client/notices.js.map +1 -0
- package/dist/convex/client/passkey-only.d.ts +86 -0
- package/dist/convex/client/passkey-only.d.ts.map +1 -0
- package/dist/convex/client/passkey-only.js +339 -0
- package/dist/convex/client/passkey-only.js.map +1 -0
- package/dist/convex/client/plugins.d.ts +1686 -0
- package/dist/convex/client/plugins.d.ts.map +1 -0
- package/dist/convex/client/plugins.js +185 -0
- package/dist/convex/client/plugins.js.map +1 -0
- package/dist/convex/client/refusals.d.ts +16 -0
- package/dist/convex/client/refusals.d.ts.map +1 -0
- package/dist/convex/client/refusals.js +32 -0
- package/dist/convex/client/refusals.js.map +1 -0
- package/dist/convex/client/request-origin.d.ts +13 -0
- package/dist/convex/client/request-origin.d.ts.map +1 -0
- package/dist/convex/client/request-origin.js +99 -0
- package/dist/convex/client/request-origin.js.map +1 -0
- package/dist/convex/client/request-session.d.ts +33 -0
- package/dist/convex/client/request-session.d.ts.map +1 -0
- package/dist/convex/client/request-session.js +62 -0
- package/dist/convex/client/request-session.js.map +1 -0
- package/dist/convex/client/runtime.d.ts +93 -0
- package/dist/convex/client/runtime.d.ts.map +1 -0
- package/dist/convex/client/runtime.js +10 -0
- package/dist/convex/client/runtime.js.map +1 -0
- package/dist/convex/client/secret-rotation.d.ts +16 -0
- package/dist/convex/client/secret-rotation.d.ts.map +1 -0
- package/dist/convex/client/secret-rotation.js +113 -0
- package/dist/convex/client/secret-rotation.js.map +1 -0
- package/dist/convex/client/sessions.d.ts +28 -0
- package/dist/convex/client/sessions.d.ts.map +1 -0
- package/dist/convex/client/sessions.js +36 -0
- package/dist/convex/client/sessions.js.map +1 -0
- package/dist/convex/client/workspaces.d.ts +40 -0
- package/dist/convex/client/workspaces.d.ts.map +1 -0
- package/dist/convex/client/workspaces.js +110 -0
- package/dist/convex/client/workspaces.js.map +1 -0
- package/dist/convex/components/backend/_generated/api.d.ts +116 -0
- package/dist/convex/components/backend/_generated/api.d.ts.map +1 -0
- package/dist/convex/components/backend/_generated/api.js.map +1 -0
- package/dist/convex/components/backend/_generated/component.d.ts +3881 -0
- package/dist/convex/components/backend/_generated/component.d.ts.map +1 -0
- package/dist/convex/components/backend/_generated/component.js.map +1 -0
- package/dist/convex/components/backend/_generated/dataModel.d.ts.map +1 -0
- package/dist/convex/components/backend/_generated/dataModel.js.map +1 -0
- package/dist/convex/components/backend/_generated/server.d.ts +138 -0
- package/dist/convex/components/backend/_generated/server.d.ts.map +1 -0
- package/dist/convex/components/backend/_generated/server.js +80 -0
- package/dist/convex/components/backend/_generated/server.js.map +1 -0
- package/dist/convex/components/backend/access.d.ts +188 -0
- package/dist/convex/components/backend/access.d.ts.map +1 -0
- package/dist/convex/components/backend/access.js +428 -0
- package/dist/convex/components/backend/access.js.map +1 -0
- package/dist/convex/components/backend/account.d.ts +626 -0
- package/dist/convex/components/backend/account.d.ts.map +1 -0
- package/dist/convex/components/backend/account.js +1017 -0
- package/dist/convex/components/backend/account.js.map +1 -0
- package/dist/convex/components/backend/adapter.d.ts.map +1 -0
- package/dist/convex/components/backend/adapter.js +45 -0
- package/dist/convex/components/backend/adapter.js.map +1 -0
- package/dist/convex/components/backend/ai.d.ts +218 -0
- package/dist/convex/components/backend/ai.d.ts.map +1 -0
- package/dist/convex/components/backend/ai.js +348 -0
- package/dist/convex/components/backend/ai.js.map +1 -0
- package/dist/convex/components/backend/alerts.d.ts +87 -0
- package/dist/convex/components/backend/alerts.d.ts.map +1 -0
- package/dist/convex/components/backend/alerts.js +182 -0
- package/dist/convex/components/backend/alerts.js.map +1 -0
- package/dist/convex/components/backend/announcements.d.ts +155 -0
- package/dist/convex/components/backend/announcements.d.ts.map +1 -0
- package/dist/convex/components/backend/announcements.js +253 -0
- package/dist/convex/components/backend/announcements.js.map +1 -0
- package/dist/convex/components/backend/audit.d.ts +185 -0
- package/dist/convex/components/backend/audit.d.ts.map +1 -0
- package/dist/convex/components/backend/audit.js +315 -0
- package/dist/convex/components/backend/audit.js.map +1 -0
- package/dist/convex/components/backend/billing.d.ts +345 -0
- package/dist/convex/components/backend/billing.d.ts.map +1 -0
- package/dist/convex/components/backend/billing.js +720 -0
- package/dist/convex/components/backend/billing.js.map +1 -0
- package/dist/convex/components/backend/consents.d.ts +121 -0
- package/dist/convex/components/backend/consents.d.ts.map +1 -0
- package/dist/convex/components/backend/consents.js +149 -0
- package/dist/convex/components/backend/consents.js.map +1 -0
- package/dist/convex/components/backend/convex.config.d.ts +60 -0
- package/dist/convex/components/backend/convex.config.d.ts.map +1 -0
- package/dist/convex/components/backend/convex.config.js +73 -0
- package/dist/convex/components/backend/convex.config.js.map +1 -0
- package/dist/convex/components/backend/costs.d.ts +130 -0
- package/dist/convex/components/backend/costs.d.ts.map +1 -0
- package/dist/convex/components/backend/costs.js +260 -0
- package/dist/convex/components/backend/costs.js.map +1 -0
- package/dist/convex/components/backend/crons.d.ts +3 -0
- package/dist/convex/components/backend/crons.d.ts.map +1 -0
- package/dist/convex/components/backend/crons.js +22 -0
- package/dist/convex/components/backend/crons.js.map +1 -0
- package/dist/convex/components/backend/devices.d.ts +67 -0
- package/dist/convex/components/backend/devices.d.ts.map +1 -0
- package/dist/convex/components/backend/devices.js +184 -0
- package/dist/convex/components/backend/devices.js.map +1 -0
- package/dist/convex/components/backend/email.d.ts +304 -0
- package/dist/convex/components/backend/email.d.ts.map +1 -0
- package/dist/convex/components/backend/email.js +628 -0
- package/dist/convex/components/backend/email.js.map +1 -0
- package/dist/convex/components/backend/erasures.d.ts +41 -0
- package/dist/convex/components/backend/erasures.d.ts.map +1 -0
- package/dist/convex/components/backend/erasures.js +70 -0
- package/dist/convex/components/backend/erasures.js.map +1 -0
- package/dist/convex/components/backend/flags.d.ts +56 -0
- package/dist/convex/components/backend/flags.d.ts.map +1 -0
- package/dist/convex/components/backend/flags.js +81 -0
- package/dist/convex/components/backend/flags.js.map +1 -0
- package/dist/convex/components/backend/funnel.d.ts +452 -0
- package/dist/convex/components/backend/funnel.d.ts.map +1 -0
- package/dist/convex/components/backend/funnel.js +525 -0
- package/dist/convex/components/backend/funnel.js.map +1 -0
- package/dist/convex/components/backend/gifts.d.ts +438 -0
- package/dist/convex/components/backend/gifts.d.ts.map +1 -0
- package/dist/convex/components/backend/gifts.js +716 -0
- package/dist/convex/components/backend/gifts.js.map +1 -0
- package/dist/convex/components/backend/inbound.d.ts +121 -0
- package/dist/convex/components/backend/inbound.d.ts.map +1 -0
- package/dist/convex/components/backend/inbound.js +367 -0
- package/dist/convex/components/backend/inbound.js.map +1 -0
- package/dist/convex/components/backend/jobs.d.ts +785 -0
- package/dist/convex/components/backend/jobs.d.ts.map +1 -0
- package/dist/convex/components/backend/jobs.js +912 -0
- package/dist/convex/components/backend/jobs.js.map +1 -0
- package/dist/convex/components/backend/keys.d.ts +9 -0
- package/dist/convex/components/backend/keys.d.ts.map +1 -0
- package/dist/convex/components/backend/keys.js +49 -0
- package/dist/convex/components/backend/keys.js.map +1 -0
- package/dist/convex/components/backend/lifecycle.d.ts +123 -0
- package/dist/convex/components/backend/lifecycle.d.ts.map +1 -0
- package/dist/convex/components/backend/lifecycle.js +341 -0
- package/dist/convex/components/backend/lifecycle.js.map +1 -0
- package/dist/convex/components/backend/lifecycleActivity.d.ts +9 -0
- package/dist/convex/components/backend/lifecycleActivity.d.ts.map +1 -0
- package/dist/convex/components/backend/lifecycleActivity.js +31 -0
- package/dist/convex/components/backend/lifecycleActivity.js.map +1 -0
- package/dist/convex/components/backend/maintenance.d.ts +115 -0
- package/dist/convex/components/backend/maintenance.d.ts.map +1 -0
- package/dist/convex/components/backend/maintenance.js +428 -0
- package/dist/convex/components/backend/maintenance.js.map +1 -0
- package/dist/convex/components/backend/migrations.d.ts +47 -0
- package/dist/convex/components/backend/migrations.d.ts.map +1 -0
- package/dist/convex/components/backend/migrations.js +115 -0
- package/dist/convex/components/backend/migrations.js.map +1 -0
- package/dist/convex/components/backend/monitoring.d.ts +29 -0
- package/dist/convex/components/backend/monitoring.d.ts.map +1 -0
- package/dist/convex/components/backend/monitoring.js +56 -0
- package/dist/convex/components/backend/monitoring.js.map +1 -0
- package/dist/convex/components/backend/notifications.d.ts +270 -0
- package/dist/convex/components/backend/notifications.d.ts.map +1 -0
- package/dist/convex/components/backend/notifications.js +460 -0
- package/dist/convex/components/backend/notifications.js.map +1 -0
- package/dist/convex/components/backend/onboarding.d.ts +16 -0
- package/dist/convex/components/backend/onboarding.d.ts.map +1 -0
- package/dist/convex/components/backend/onboarding.js +51 -0
- package/dist/convex/components/backend/onboarding.js.map +1 -0
- package/dist/convex/components/backend/parties.d.ts +39 -0
- package/dist/convex/components/backend/parties.d.ts.map +1 -0
- package/dist/convex/components/backend/parties.js +66 -0
- package/dist/convex/components/backend/parties.js.map +1 -0
- package/dist/convex/components/backend/posture.d.ts +3 -0
- package/dist/convex/components/backend/posture.d.ts.map +1 -0
- package/dist/convex/components/backend/posture.js +33 -0
- package/dist/convex/components/backend/posture.js.map +1 -0
- package/dist/convex/components/backend/preferences.d.ts +343 -0
- package/dist/convex/components/backend/preferences.d.ts.map +1 -0
- package/dist/convex/components/backend/preferences.js +684 -0
- package/dist/convex/components/backend/preferences.js.map +1 -0
- package/dist/convex/components/backend/push.d.ts +56 -0
- package/dist/convex/components/backend/push.d.ts.map +1 -0
- package/dist/convex/components/backend/push.js +91 -0
- package/dist/convex/components/backend/push.js.map +1 -0
- package/dist/convex/components/backend/referrals.d.ts +277 -0
- package/dist/convex/components/backend/referrals.d.ts.map +1 -0
- package/dist/convex/components/backend/referrals.js +708 -0
- package/dist/convex/components/backend/referrals.js.map +1 -0
- package/dist/convex/components/backend/reports.d.ts +218 -0
- package/dist/convex/components/backend/reports.d.ts.map +1 -0
- package/dist/convex/components/backend/reports.js +598 -0
- package/dist/convex/components/backend/reports.js.map +1 -0
- package/dist/convex/components/backend/schema.d.ts +7078 -0
- package/dist/convex/components/backend/schema.d.ts.map +1 -0
- package/dist/convex/components/backend/schema.js +2091 -0
- package/dist/convex/components/backend/schema.js.map +1 -0
- package/dist/convex/components/backend/storage.d.ts +236 -0
- package/dist/convex/components/backend/storage.d.ts.map +1 -0
- package/dist/convex/components/backend/storage.js +679 -0
- package/dist/convex/components/backend/storage.js.map +1 -0
- package/dist/convex/components/backend/subscriptions.d.ts +185 -0
- package/dist/convex/components/backend/subscriptions.d.ts.map +1 -0
- package/dist/convex/components/backend/subscriptions.js +230 -0
- package/dist/convex/components/backend/subscriptions.js.map +1 -0
- package/dist/convex/components/backend/suppressions.d.ts +68 -0
- package/dist/convex/components/backend/suppressions.d.ts.map +1 -0
- package/dist/convex/components/backend/suppressions.js +107 -0
- package/dist/convex/components/backend/suppressions.js.map +1 -0
- package/dist/convex/components/backend/waitlist.d.ts +202 -0
- package/dist/convex/components/backend/waitlist.d.ts.map +1 -0
- package/dist/convex/components/backend/waitlist.js +693 -0
- package/dist/convex/components/backend/waitlist.js.map +1 -0
- package/dist/convex/components/backend/wake.d.ts +2 -0
- package/dist/convex/components/backend/wake.d.ts.map +1 -0
- package/dist/convex/components/backend/wake.js +14 -0
- package/dist/convex/components/backend/wake.js.map +1 -0
- package/dist/convex/components/backend/webhooks.d.ts +63 -0
- package/dist/convex/components/backend/webhooks.d.ts.map +1 -0
- package/dist/convex/components/backend/webhooks.js +265 -0
- package/dist/convex/components/backend/webhooks.js.map +1 -0
- package/dist/convex/consent-rules.d.ts +70 -0
- package/dist/convex/consent-rules.d.ts.map +1 -0
- package/dist/convex/consent-rules.js +108 -0
- package/dist/convex/consent-rules.js.map +1 -0
- package/dist/convex/constants.d.ts +176 -0
- package/dist/convex/constants.d.ts.map +1 -0
- package/dist/convex/constants.js +184 -0
- package/dist/convex/constants.js.map +1 -0
- package/dist/convex/delivery.d.ts +39 -0
- package/dist/convex/delivery.d.ts.map +1 -0
- package/dist/convex/delivery.js +71 -0
- package/dist/convex/delivery.js.map +1 -0
- package/dist/convex/email-blocks.d.ts +35 -0
- package/dist/convex/email-blocks.d.ts.map +1 -0
- package/dist/convex/email-blocks.js +79 -0
- package/dist/convex/email-blocks.js.map +1 -0
- package/dist/convex/email-helpers.d.ts +44 -0
- package/dist/convex/email-helpers.d.ts.map +1 -0
- package/dist/convex/email-helpers.js +87 -0
- package/dist/convex/email-helpers.js.map +1 -0
- package/dist/convex/email-html.d.ts +14 -0
- package/dist/convex/email-html.d.ts.map +1 -0
- package/dist/convex/email-html.js +18 -0
- package/dist/convex/email-html.js.map +1 -0
- package/dist/convex/email-posture.d.ts +78 -0
- package/dist/convex/email-posture.d.ts.map +1 -0
- package/dist/convex/email-posture.js +151 -0
- package/dist/convex/email-posture.js.map +1 -0
- package/dist/convex/email-preferences.d.ts +163 -0
- package/dist/convex/email-preferences.d.ts.map +1 -0
- package/dist/convex/email-preferences.js +230 -0
- package/dist/convex/email-preferences.js.map +1 -0
- package/dist/convex/email-scheme.d.ts +12 -0
- package/dist/convex/email-scheme.d.ts.map +1 -0
- package/dist/convex/email-scheme.js +17 -0
- package/dist/convex/email-scheme.js.map +1 -0
- package/dist/convex/email-templates.d.ts +533 -0
- package/dist/convex/email-templates.d.ts.map +1 -0
- package/dist/convex/email-templates.js +480 -0
- package/dist/convex/email-templates.js.map +1 -0
- package/dist/convex/email-theme.d.ts +63 -0
- package/dist/convex/email-theme.d.ts.map +1 -0
- package/dist/convex/email-theme.js +130 -0
- package/dist/convex/email-theme.js.map +1 -0
- package/dist/convex/email-validators.d.ts +37 -0
- package/dist/convex/email-validators.d.ts.map +1 -0
- package/dist/convex/email-validators.js +26 -0
- package/dist/convex/email-validators.js.map +1 -0
- package/dist/convex/emails/appeal-decided.d.ts +4 -0
- package/dist/convex/emails/appeal-decided.d.ts.map +1 -0
- package/dist/convex/emails/appeal-decided.js +15 -0
- package/dist/convex/emails/appeal-decided.js.map +1 -0
- package/dist/convex/emails/content-restricted.d.ts +9 -0
- package/dist/convex/emails/content-restricted.d.ts.map +1 -0
- package/dist/convex/emails/content-restricted.js +28 -0
- package/dist/convex/emails/content-restricted.js.map +1 -0
- package/dist/convex/emails/deletion-canceled.d.ts +4 -0
- package/dist/convex/emails/deletion-canceled.d.ts.map +1 -0
- package/dist/convex/emails/deletion-canceled.js +7 -0
- package/dist/convex/emails/deletion-canceled.js.map +1 -0
- package/dist/convex/emails/deletion-scheduled.d.ts +4 -0
- package/dist/convex/emails/deletion-scheduled.d.ts.map +1 -0
- package/dist/convex/emails/deletion-scheduled.js +17 -0
- package/dist/convex/emails/deletion-scheduled.js.map +1 -0
- package/dist/convex/emails/email-changed.d.ts +4 -0
- package/dist/convex/emails/email-changed.d.ts.map +1 -0
- package/dist/convex/emails/email-changed.js +12 -0
- package/dist/convex/emails/email-changed.js.map +1 -0
- package/dist/convex/emails/gift-pass-ending.d.ts +4 -0
- package/dist/convex/emails/gift-pass-ending.d.ts.map +1 -0
- package/dist/convex/emails/gift-pass-ending.js +17 -0
- package/dist/convex/emails/gift-pass-ending.js.map +1 -0
- package/dist/convex/emails/gift.d.ts +4 -0
- package/dist/convex/emails/gift.d.ts.map +1 -0
- package/dist/convex/emails/gift.js +17 -0
- package/dist/convex/emails/gift.js.map +1 -0
- package/dist/convex/emails/invite.d.ts +9 -0
- package/dist/convex/emails/invite.d.ts.map +1 -0
- package/dist/convex/emails/invite.js +26 -0
- package/dist/convex/emails/invite.js.map +1 -0
- package/dist/convex/emails/new-device.d.ts +8 -0
- package/dist/convex/emails/new-device.d.ts.map +1 -0
- package/dist/convex/emails/new-device.js +20 -0
- package/dist/convex/emails/new-device.js.map +1 -0
- package/dist/convex/emails/notice-decided.d.ts +4 -0
- package/dist/convex/emails/notice-decided.d.ts.map +1 -0
- package/dist/convex/emails/notice-decided.js +15 -0
- package/dist/convex/emails/notice-decided.js.map +1 -0
- package/dist/convex/emails/notice-received.d.ts +4 -0
- package/dist/convex/emails/notice-received.d.ts.map +1 -0
- package/dist/convex/emails/notice-received.js +14 -0
- package/dist/convex/emails/notice-received.js.map +1 -0
- package/dist/convex/emails/otp.d.ts +10 -0
- package/dist/convex/emails/otp.d.ts.map +1 -0
- package/dist/convex/emails/otp.js +47 -0
- package/dist/convex/emails/otp.js.map +1 -0
- package/dist/convex/emails/passkey-recovered.d.ts +8 -0
- package/dist/convex/emails/passkey-recovered.d.ts.map +1 -0
- package/dist/convex/emails/passkey-recovered.js +20 -0
- package/dist/convex/emails/passkey-recovered.js.map +1 -0
- package/dist/convex/emails/renewal-reminder.d.ts +4 -0
- package/dist/convex/emails/renewal-reminder.d.ts.map +1 -0
- package/dist/convex/emails/renewal-reminder.js +19 -0
- package/dist/convex/emails/renewal-reminder.js.map +1 -0
- package/dist/convex/emails/topic-confirmation.d.ts +4 -0
- package/dist/convex/emails/topic-confirmation.d.ts.map +1 -0
- package/dist/convex/emails/topic-confirmation.js +16 -0
- package/dist/convex/emails/topic-confirmation.js.map +1 -0
- package/dist/convex/emails/waitlist-admitted.d.ts +4 -0
- package/dist/convex/emails/waitlist-admitted.d.ts.map +1 -0
- package/dist/convex/emails/waitlist-admitted.js +15 -0
- package/dist/convex/emails/waitlist-admitted.js.map +1 -0
- package/dist/convex/emails/waitlist-confirmation.d.ts +4 -0
- package/dist/convex/emails/waitlist-confirmation.d.ts.map +1 -0
- package/dist/convex/emails/waitlist-confirmation.js +18 -0
- package/dist/convex/emails/waitlist-confirmation.js.map +1 -0
- package/dist/convex/emails/welcome.d.ts +4 -0
- package/dist/convex/emails/welcome.d.ts.map +1 -0
- package/dist/convex/emails/welcome.js +14 -0
- package/dist/convex/emails/welcome.js.map +1 -0
- package/dist/convex/emails/withdrawal-receipt.d.ts +4 -0
- package/dist/convex/emails/withdrawal-receipt.d.ts.map +1 -0
- package/dist/convex/emails/withdrawal-receipt.js +15 -0
- package/dist/convex/emails/withdrawal-receipt.js.map +1 -0
- package/dist/convex/environment.d.ts +43 -0
- package/dist/convex/environment.d.ts.map +1 -0
- package/dist/convex/environment.js +64 -0
- package/dist/convex/environment.js.map +1 -0
- package/dist/convex/errors.d.ts +297 -0
- package/dist/convex/errors.d.ts.map +1 -0
- package/dist/convex/errors.js +382 -0
- package/dist/convex/errors.js.map +1 -0
- package/dist/convex/events.d.ts +875 -0
- package/dist/convex/events.d.ts.map +1 -0
- package/dist/convex/events.js +717 -0
- package/dist/convex/events.js.map +1 -0
- package/dist/convex/files.d.ts +57 -0
- package/dist/convex/files.d.ts.map +1 -0
- package/dist/convex/files.js +415 -0
- package/dist/convex/files.js.map +1 -0
- package/dist/convex/flags.d.ts +171 -0
- package/dist/convex/flags.d.ts.map +1 -0
- package/dist/convex/flags.js +270 -0
- package/dist/convex/flags.js.map +1 -0
- package/dist/convex/funnel-rules.d.ts +151 -0
- package/dist/convex/funnel-rules.d.ts.map +1 -0
- package/dist/convex/funnel-rules.js +163 -0
- package/dist/convex/funnel-rules.js.map +1 -0
- package/dist/convex/inbound-rules.d.ts +128 -0
- package/dist/convex/inbound-rules.d.ts.map +1 -0
- package/dist/convex/inbound-rules.js +175 -0
- package/dist/convex/inbound-rules.js.map +1 -0
- package/dist/convex/integrations/access.d.ts +163 -0
- package/dist/convex/integrations/access.d.ts.map +1 -0
- package/dist/convex/integrations/access.js +199 -0
- package/dist/convex/integrations/access.js.map +1 -0
- package/dist/convex/integrations/account.d.ts +458 -0
- package/dist/convex/integrations/account.d.ts.map +1 -0
- package/dist/convex/integrations/account.js +587 -0
- package/dist/convex/integrations/account.js.map +1 -0
- package/dist/convex/integrations/admin.d.ts +273 -0
- package/dist/convex/integrations/admin.d.ts.map +1 -0
- package/dist/convex/integrations/admin.js +198 -0
- package/dist/convex/integrations/admin.js.map +1 -0
- package/dist/convex/integrations/ai/account-export.d.ts +11 -0
- package/dist/convex/integrations/ai/account-export.d.ts.map +1 -0
- package/dist/convex/integrations/ai/account-export.js +44 -0
- package/dist/convex/integrations/ai/account-export.js.map +1 -0
- package/dist/convex/integrations/ai/chat.d.ts +104 -0
- package/dist/convex/integrations/ai/chat.d.ts.map +1 -0
- package/dist/convex/integrations/ai/chat.js +385 -0
- package/dist/convex/integrations/ai/chat.js.map +1 -0
- package/dist/convex/integrations/ai/config.d.ts +746 -0
- package/dist/convex/integrations/ai/config.d.ts.map +1 -0
- package/dist/convex/integrations/ai/config.js +2 -0
- package/dist/convex/integrations/ai/config.js.map +1 -0
- package/dist/convex/integrations/ai/context.d.ts +40 -0
- package/dist/convex/integrations/ai/context.d.ts.map +1 -0
- package/dist/convex/integrations/ai/context.js +53 -0
- package/dist/convex/integrations/ai/context.js.map +1 -0
- package/dist/convex/integrations/ai/costs.d.ts +40 -0
- package/dist/convex/integrations/ai/costs.d.ts.map +1 -0
- package/dist/convex/integrations/ai/costs.js +72 -0
- package/dist/convex/integrations/ai/costs.js.map +1 -0
- package/dist/convex/integrations/ai/embeddings.d.ts +23 -0
- package/dist/convex/integrations/ai/embeddings.d.ts.map +1 -0
- package/dist/convex/integrations/ai/embeddings.js +75 -0
- package/dist/convex/integrations/ai/embeddings.js.map +1 -0
- package/dist/convex/integrations/ai/job-errors.d.ts +57 -0
- package/dist/convex/integrations/ai/job-errors.d.ts.map +1 -0
- package/dist/convex/integrations/ai/job-errors.js +122 -0
- package/dist/convex/integrations/ai/job-errors.js.map +1 -0
- package/dist/convex/integrations/ai/jobs.d.ts +286 -0
- package/dist/convex/integrations/ai/jobs.d.ts.map +1 -0
- package/dist/convex/integrations/ai/jobs.js +973 -0
- package/dist/convex/integrations/ai/jobs.js.map +1 -0
- package/dist/convex/integrations/ai/knowledge.d.ts +120 -0
- package/dist/convex/integrations/ai/knowledge.d.ts.map +1 -0
- package/dist/convex/integrations/ai/knowledge.js +336 -0
- package/dist/convex/integrations/ai/knowledge.js.map +1 -0
- package/dist/convex/integrations/ai/metering.d.ts +59 -0
- package/dist/convex/integrations/ai/metering.d.ts.map +1 -0
- package/dist/convex/integrations/ai/metering.js +370 -0
- package/dist/convex/integrations/ai/metering.js.map +1 -0
- package/dist/convex/integrations/ai/model-id.d.ts +8 -0
- package/dist/convex/integrations/ai/model-id.d.ts.map +1 -0
- package/dist/convex/integrations/ai/model-id.js +15 -0
- package/dist/convex/integrations/ai/model-id.js.map +1 -0
- package/dist/convex/integrations/ai/models.d.ts +162 -0
- package/dist/convex/integrations/ai/models.d.ts.map +1 -0
- package/dist/convex/integrations/ai/models.js +385 -0
- package/dist/convex/integrations/ai/models.js.map +1 -0
- package/dist/convex/integrations/ai/moderation.d.ts +59 -0
- package/dist/convex/integrations/ai/moderation.d.ts.map +1 -0
- package/dist/convex/integrations/ai/moderation.js +199 -0
- package/dist/convex/integrations/ai/moderation.js.map +1 -0
- package/dist/convex/integrations/ai/pricing.d.ts +88 -0
- package/dist/convex/integrations/ai/pricing.d.ts.map +1 -0
- package/dist/convex/integrations/ai/pricing.js +135 -0
- package/dist/convex/integrations/ai/pricing.js.map +1 -0
- package/dist/convex/integrations/ai/provenance.d.ts +87 -0
- package/dist/convex/integrations/ai/provenance.d.ts.map +1 -0
- package/dist/convex/integrations/ai/provenance.js +137 -0
- package/dist/convex/integrations/ai/provenance.js.map +1 -0
- package/dist/convex/integrations/ai/setup.d.ts +20 -0
- package/dist/convex/integrations/ai/setup.d.ts.map +1 -0
- package/dist/convex/integrations/ai/setup.js +53 -0
- package/dist/convex/integrations/ai/setup.js.map +1 -0
- package/dist/convex/integrations/ai/stream.d.ts +10 -0
- package/dist/convex/integrations/ai/stream.d.ts.map +1 -0
- package/dist/convex/integrations/ai/stream.js +151 -0
- package/dist/convex/integrations/ai/stream.js.map +1 -0
- package/dist/convex/integrations/ai.d.ts +37 -0
- package/dist/convex/integrations/ai.d.ts.map +1 -0
- package/dist/convex/integrations/ai.js +4 -0
- package/dist/convex/integrations/ai.js.map +1 -0
- package/dist/convex/integrations/announcements.d.ts +239 -0
- package/dist/convex/integrations/announcements.d.ts.map +1 -0
- package/dist/convex/integrations/announcements.js +313 -0
- package/dist/convex/integrations/announcements.js.map +1 -0
- package/dist/convex/integrations/audit.d.ts +272 -0
- package/dist/convex/integrations/audit.d.ts.map +1 -0
- package/dist/convex/integrations/audit.js +268 -0
- package/dist/convex/integrations/audit.js.map +1 -0
- package/dist/convex/integrations/authorization.d.ts +147 -0
- package/dist/convex/integrations/authorization.d.ts.map +1 -0
- package/dist/convex/integrations/authorization.js +210 -0
- package/dist/convex/integrations/authorization.js.map +1 -0
- package/dist/convex/integrations/billing/activity.d.ts +24 -0
- package/dist/convex/integrations/billing/activity.d.ts.map +1 -0
- package/dist/convex/integrations/billing/activity.js +40 -0
- package/dist/convex/integrations/billing/activity.js.map +1 -0
- package/dist/convex/integrations/billing/checkout.d.ts +78 -0
- package/dist/convex/integrations/billing/checkout.d.ts.map +1 -0
- package/dist/convex/integrations/billing/checkout.js +484 -0
- package/dist/convex/integrations/billing/checkout.js.map +1 -0
- package/dist/convex/integrations/billing/claim-discount.d.ts +17 -0
- package/dist/convex/integrations/billing/claim-discount.d.ts.map +1 -0
- package/dist/convex/integrations/billing/claim-discount.js +40 -0
- package/dist/convex/integrations/billing/claim-discount.js.map +1 -0
- package/dist/convex/integrations/billing/context.d.ts +156 -0
- package/dist/convex/integrations/billing/context.d.ts.map +1 -0
- package/dist/convex/integrations/billing/context.js +397 -0
- package/dist/convex/integrations/billing/context.js.map +1 -0
- package/dist/convex/integrations/billing/credits.d.ts +40 -0
- package/dist/convex/integrations/billing/credits.d.ts.map +1 -0
- package/dist/convex/integrations/billing/credits.js +215 -0
- package/dist/convex/integrations/billing/credits.js.map +1 -0
- package/dist/convex/integrations/billing/customers.d.ts +60 -0
- package/dist/convex/integrations/billing/customers.d.ts.map +1 -0
- package/dist/convex/integrations/billing/customers.js +322 -0
- package/dist/convex/integrations/billing/customers.js.map +1 -0
- package/dist/convex/integrations/billing/discounts.d.ts +26 -0
- package/dist/convex/integrations/billing/discounts.d.ts.map +1 -0
- package/dist/convex/integrations/billing/discounts.js +71 -0
- package/dist/convex/integrations/billing/discounts.js.map +1 -0
- package/dist/convex/integrations/billing/entitlements.d.ts +16 -0
- package/dist/convex/integrations/billing/entitlements.d.ts.map +1 -0
- package/dist/convex/integrations/billing/entitlements.js +180 -0
- package/dist/convex/integrations/billing/entitlements.js.map +1 -0
- package/dist/convex/integrations/billing/erasure.d.ts +10 -0
- package/dist/convex/integrations/billing/erasure.d.ts.map +1 -0
- package/dist/convex/integrations/billing/erasure.js +90 -0
- package/dist/convex/integrations/billing/erasure.js.map +1 -0
- package/dist/convex/integrations/billing/events.d.ts +80 -0
- package/dist/convex/integrations/billing/events.d.ts.map +1 -0
- package/dist/convex/integrations/billing/events.js +209 -0
- package/dist/convex/integrations/billing/events.js.map +1 -0
- package/dist/convex/integrations/billing/features.d.ts +32 -0
- package/dist/convex/integrations/billing/features.d.ts.map +1 -0
- package/dist/convex/integrations/billing/features.js +79 -0
- package/dist/convex/integrations/billing/features.js.map +1 -0
- package/dist/convex/integrations/billing/free-plan.d.ts +53 -0
- package/dist/convex/integrations/billing/free-plan.d.ts.map +1 -0
- package/dist/convex/integrations/billing/free-plan.js +233 -0
- package/dist/convex/integrations/billing/free-plan.js.map +1 -0
- package/dist/convex/integrations/billing/functions.d.ts +353 -0
- package/dist/convex/integrations/billing/functions.d.ts.map +1 -0
- package/dist/convex/integrations/billing/functions.js +445 -0
- package/dist/convex/integrations/billing/functions.js.map +1 -0
- package/dist/convex/integrations/billing/gift-access.d.ts +39 -0
- package/dist/convex/integrations/billing/gift-access.d.ts.map +1 -0
- package/dist/convex/integrations/billing/gift-access.js +39 -0
- package/dist/convex/integrations/billing/gift-access.js.map +1 -0
- package/dist/convex/integrations/billing/gift-manage.d.ts +66 -0
- package/dist/convex/integrations/billing/gift-manage.d.ts.map +1 -0
- package/dist/convex/integrations/billing/gift-manage.js +261 -0
- package/dist/convex/integrations/billing/gift-manage.js.map +1 -0
- package/dist/convex/integrations/billing/gift-rules.d.ts +19 -0
- package/dist/convex/integrations/billing/gift-rules.d.ts.map +1 -0
- package/dist/convex/integrations/billing/gift-rules.js +49 -0
- package/dist/convex/integrations/billing/gift-rules.js.map +1 -0
- package/dist/convex/integrations/billing/gifts.d.ts +123 -0
- package/dist/convex/integrations/billing/gifts.d.ts.map +1 -0
- package/dist/convex/integrations/billing/gifts.js +712 -0
- package/dist/convex/integrations/billing/gifts.js.map +1 -0
- package/dist/convex/integrations/billing/history.d.ts +22 -0
- package/dist/convex/integrations/billing/history.d.ts.map +1 -0
- package/dist/convex/integrations/billing/history.js +214 -0
- package/dist/convex/integrations/billing/history.js.map +1 -0
- package/dist/convex/integrations/billing/lifecycle.d.ts +105 -0
- package/dist/convex/integrations/billing/lifecycle.d.ts.map +1 -0
- package/dist/convex/integrations/billing/lifecycle.js +526 -0
- package/dist/convex/integrations/billing/lifecycle.js.map +1 -0
- package/dist/convex/integrations/billing/passes.d.ts +68 -0
- package/dist/convex/integrations/billing/passes.d.ts.map +1 -0
- package/dist/convex/integrations/billing/passes.js +407 -0
- package/dist/convex/integrations/billing/passes.js.map +1 -0
- package/dist/convex/integrations/billing/pricing.d.ts +54 -0
- package/dist/convex/integrations/billing/pricing.d.ts.map +1 -0
- package/dist/convex/integrations/billing/pricing.js +322 -0
- package/dist/convex/integrations/billing/pricing.js.map +1 -0
- package/dist/convex/integrations/billing/provider-client.d.ts +11 -0
- package/dist/convex/integrations/billing/provider-client.d.ts.map +1 -0
- package/dist/convex/integrations/billing/provider-client.js +9 -0
- package/dist/convex/integrations/billing/provider-client.js.map +1 -0
- package/dist/convex/integrations/billing/provider-events.d.ts +26 -0
- package/dist/convex/integrations/billing/provider-events.d.ts.map +1 -0
- package/dist/convex/integrations/billing/provider-events.js +194 -0
- package/dist/convex/integrations/billing/provider-events.js.map +1 -0
- package/dist/convex/integrations/billing/purchase.d.ts +63 -0
- package/dist/convex/integrations/billing/purchase.d.ts.map +1 -0
- package/dist/convex/integrations/billing/purchase.js +287 -0
- package/dist/convex/integrations/billing/purchase.js.map +1 -0
- package/dist/convex/integrations/billing/quotas.d.ts +47 -0
- package/dist/convex/integrations/billing/quotas.d.ts.map +1 -0
- package/dist/convex/integrations/billing/quotas.js +162 -0
- package/dist/convex/integrations/billing/quotas.js.map +1 -0
- package/dist/convex/integrations/billing/referral-orders.d.ts +26 -0
- package/dist/convex/integrations/billing/referral-orders.d.ts.map +1 -0
- package/dist/convex/integrations/billing/referral-orders.js +33 -0
- package/dist/convex/integrations/billing/referral-orders.js.map +1 -0
- package/dist/convex/integrations/billing/revenue.d.ts +12 -0
- package/dist/convex/integrations/billing/revenue.d.ts.map +1 -0
- package/dist/convex/integrations/billing/revenue.js +175 -0
- package/dist/convex/integrations/billing/revenue.js.map +1 -0
- package/dist/convex/integrations/billing/rewards.d.ts +78 -0
- package/dist/convex/integrations/billing/rewards.d.ts.map +1 -0
- package/dist/convex/integrations/billing/rewards.js +113 -0
- package/dist/convex/integrations/billing/rewards.js.map +1 -0
- package/dist/convex/integrations/billing/subscriptions.d.ts +79 -0
- package/dist/convex/integrations/billing/subscriptions.d.ts.map +1 -0
- package/dist/convex/integrations/billing/subscriptions.js +331 -0
- package/dist/convex/integrations/billing/subscriptions.js.map +1 -0
- package/dist/convex/integrations/billing/types/base.d.ts +78 -0
- package/dist/convex/integrations/billing/types/base.d.ts.map +1 -0
- package/dist/convex/integrations/billing/types/base.js +2 -0
- package/dist/convex/integrations/billing/types/base.js.map +1 -0
- package/dist/convex/integrations/billing/types/lifecycle.d.ts +159 -0
- package/dist/convex/integrations/billing/types/lifecycle.d.ts.map +1 -0
- package/dist/convex/integrations/billing/types/lifecycle.js +2 -0
- package/dist/convex/integrations/billing/types/lifecycle.js.map +1 -0
- package/dist/convex/integrations/billing/types/options.d.ts +372 -0
- package/dist/convex/integrations/billing/types/options.d.ts.map +1 -0
- package/dist/convex/integrations/billing/types/options.js +2 -0
- package/dist/convex/integrations/billing/types/options.js.map +1 -0
- package/dist/convex/integrations/billing/types/records.d.ts +523 -0
- package/dist/convex/integrations/billing/types/records.d.ts.map +1 -0
- package/dist/convex/integrations/billing/types/records.js +3 -0
- package/dist/convex/integrations/billing/types/records.js.map +1 -0
- package/dist/convex/integrations/billing/types/revenue.d.ts +94 -0
- package/dist/convex/integrations/billing/types/revenue.d.ts.map +1 -0
- package/dist/convex/integrations/billing/types/revenue.js +34 -0
- package/dist/convex/integrations/billing/types/revenue.js.map +1 -0
- package/dist/convex/integrations/billing/types/setup.d.ts +891 -0
- package/dist/convex/integrations/billing/types/setup.d.ts.map +1 -0
- package/dist/convex/integrations/billing/types/setup.js +2 -0
- package/dist/convex/integrations/billing/types/setup.js.map +1 -0
- package/dist/convex/integrations/billing/types/surface.d.ts +665 -0
- package/dist/convex/integrations/billing/types/surface.d.ts.map +1 -0
- package/dist/convex/integrations/billing/types/surface.js +2 -0
- package/dist/convex/integrations/billing/types/surface.js.map +1 -0
- package/dist/convex/integrations/billing/webhooks.d.ts +16 -0
- package/dist/convex/integrations/billing/webhooks.d.ts.map +1 -0
- package/dist/convex/integrations/billing/webhooks.js +317 -0
- package/dist/convex/integrations/billing/webhooks.js.map +1 -0
- package/dist/convex/integrations/billing.d.ts +48 -0
- package/dist/convex/integrations/billing.d.ts.map +1 -0
- package/dist/convex/integrations/billing.js +193 -0
- package/dist/convex/integrations/billing.js.map +1 -0
- package/dist/convex/integrations/email-lifecycle.d.ts +57 -0
- package/dist/convex/integrations/email-lifecycle.d.ts.map +1 -0
- package/dist/convex/integrations/email-lifecycle.js +180 -0
- package/dist/convex/integrations/email-lifecycle.js.map +1 -0
- package/dist/convex/integrations/email-preferences.d.ts +227 -0
- package/dist/convex/integrations/email-preferences.d.ts.map +1 -0
- package/dist/convex/integrations/email-preferences.js +287 -0
- package/dist/convex/integrations/email-preferences.js.map +1 -0
- package/dist/convex/integrations/email-suppressions.d.ts +63 -0
- package/dist/convex/integrations/email-suppressions.d.ts.map +1 -0
- package/dist/convex/integrations/email-suppressions.js +120 -0
- package/dist/convex/integrations/email-suppressions.js.map +1 -0
- package/dist/convex/integrations/email-sync.d.ts +131 -0
- package/dist/convex/integrations/email-sync.d.ts.map +1 -0
- package/dist/convex/integrations/email-sync.js +464 -0
- package/dist/convex/integrations/email-sync.js.map +1 -0
- package/dist/convex/integrations/email.d.ts +756 -0
- package/dist/convex/integrations/email.d.ts.map +1 -0
- package/dist/convex/integrations/email.js +463 -0
- package/dist/convex/integrations/email.js.map +1 -0
- package/dist/convex/integrations/flags.d.ts +200 -0
- package/dist/convex/integrations/flags.d.ts.map +1 -0
- package/dist/convex/integrations/flags.js +295 -0
- package/dist/convex/integrations/flags.js.map +1 -0
- package/dist/convex/integrations/functions.d.ts +298 -0
- package/dist/convex/integrations/functions.d.ts.map +1 -0
- package/dist/convex/integrations/functions.js +380 -0
- package/dist/convex/integrations/functions.js.map +1 -0
- package/dist/convex/integrations/health.d.ts +2 -0
- package/dist/convex/integrations/health.d.ts.map +1 -0
- package/dist/convex/integrations/health.js +145 -0
- package/dist/convex/integrations/health.js.map +1 -0
- package/dist/convex/integrations/http.d.ts +102 -0
- package/dist/convex/integrations/http.d.ts.map +1 -0
- package/dist/convex/integrations/http.js +108 -0
- package/dist/convex/integrations/http.js.map +1 -0
- package/dist/convex/integrations/inbound.d.ts +194 -0
- package/dist/convex/integrations/inbound.d.ts.map +1 -0
- package/dist/convex/integrations/inbound.js +502 -0
- package/dist/convex/integrations/inbound.js.map +1 -0
- package/dist/convex/integrations/launch.d.ts +240 -0
- package/dist/convex/integrations/launch.d.ts.map +1 -0
- package/dist/convex/integrations/launch.js +360 -0
- package/dist/convex/integrations/launch.js.map +1 -0
- package/dist/convex/integrations/monitoring.d.ts +135 -0
- package/dist/convex/integrations/monitoring.d.ts.map +1 -0
- package/dist/convex/integrations/monitoring.js +226 -0
- package/dist/convex/integrations/monitoring.js.map +1 -0
- package/dist/convex/integrations/notifications.d.ts +225 -0
- package/dist/convex/integrations/notifications.d.ts.map +1 -0
- package/dist/convex/integrations/notifications.js +306 -0
- package/dist/convex/integrations/notifications.js.map +1 -0
- package/dist/convex/integrations/rate-limit.d.ts +429 -0
- package/dist/convex/integrations/rate-limit.d.ts.map +1 -0
- package/dist/convex/integrations/rate-limit.js +295 -0
- package/dist/convex/integrations/rate-limit.js.map +1 -0
- package/dist/convex/integrations/referrals.d.ts +340 -0
- package/dist/convex/integrations/referrals.d.ts.map +1 -0
- package/dist/convex/integrations/referrals.js +304 -0
- package/dist/convex/integrations/referrals.js.map +1 -0
- package/dist/convex/integrations/reports.d.ts +231 -0
- package/dist/convex/integrations/reports.d.ts.map +1 -0
- package/dist/convex/integrations/reports.js +480 -0
- package/dist/convex/integrations/reports.js.map +1 -0
- package/dist/convex/integrations/retention.d.ts +88 -0
- package/dist/convex/integrations/retention.d.ts.map +1 -0
- package/dist/convex/integrations/retention.js +117 -0
- package/dist/convex/integrations/retention.js.map +1 -0
- package/dist/convex/integrations/search.d.ts +91 -0
- package/dist/convex/integrations/search.d.ts.map +1 -0
- package/dist/convex/integrations/search.js +117 -0
- package/dist/convex/integrations/search.js.map +1 -0
- package/dist/convex/integrations/storage.d.ts +207 -0
- package/dist/convex/integrations/storage.d.ts.map +1 -0
- package/dist/convex/integrations/storage.js +373 -0
- package/dist/convex/integrations/storage.js.map +1 -0
- package/dist/convex/integrations/waitlist.d.ts +213 -0
- package/dist/convex/integrations/waitlist.d.ts.map +1 -0
- package/dist/convex/integrations/waitlist.js +260 -0
- package/dist/convex/integrations/waitlist.js.map +1 -0
- package/dist/convex/integrations/webhook-guard.d.ts +179 -0
- package/dist/convex/integrations/webhook-guard.d.ts.map +1 -0
- package/dist/convex/integrations/webhook-guard.js +183 -0
- package/dist/convex/integrations/webhook-guard.js.map +1 -0
- package/dist/convex/integrations/webhooks.d.ts +68 -0
- package/dist/convex/integrations/webhooks.d.ts.map +1 -0
- package/dist/convex/integrations/webhooks.js +109 -0
- package/dist/convex/integrations/webhooks.js.map +1 -0
- package/dist/convex/integrations/workflows.d.ts +130 -0
- package/dist/convex/integrations/workflows.d.ts.map +1 -0
- package/dist/convex/integrations/workflows.js +142 -0
- package/dist/convex/integrations/workflows.js.map +1 -0
- package/dist/convex/jobs-policy.d.ts +191 -0
- package/dist/convex/jobs-policy.d.ts.map +1 -0
- package/dist/convex/jobs-policy.js +291 -0
- package/dist/convex/jobs-policy.js.map +1 -0
- package/dist/convex/label-format.d.ts +29 -0
- package/dist/convex/label-format.d.ts.map +1 -0
- package/dist/convex/label-format.js +60 -0
- package/dist/convex/label-format.js.map +1 -0
- package/dist/convex/label-groups/access.d.ts +19 -0
- package/dist/convex/label-groups/access.d.ts.map +1 -0
- package/dist/convex/label-groups/access.js +21 -0
- package/dist/convex/label-groups/access.js.map +1 -0
- package/dist/convex/label-groups/account.d.ts +27 -0
- package/dist/convex/label-groups/account.d.ts.map +1 -0
- package/dist/convex/label-groups/account.js +27 -0
- package/dist/convex/label-groups/account.js.map +1 -0
- package/dist/convex/label-groups/activation.d.ts +19 -0
- package/dist/convex/label-groups/activation.d.ts.map +1 -0
- package/dist/convex/label-groups/activation.js +22 -0
- package/dist/convex/label-groups/activation.js.map +1 -0
- package/dist/convex/label-groups/admin.d.ts +823 -0
- package/dist/convex/label-groups/admin.d.ts.map +1 -0
- package/dist/convex/label-groups/admin.js +858 -0
- package/dist/convex/label-groups/admin.js.map +1 -0
- package/dist/convex/label-groups/ai.d.ts +14 -0
- package/dist/convex/label-groups/ai.d.ts.map +1 -0
- package/dist/convex/label-groups/ai.js +15 -0
- package/dist/convex/label-groups/ai.js.map +1 -0
- package/dist/convex/label-groups/announcement.d.ts +12 -0
- package/dist/convex/label-groups/announcement.d.ts.map +1 -0
- package/dist/convex/label-groups/announcement.js +14 -0
- package/dist/convex/label-groups/announcement.js.map +1 -0
- package/dist/convex/label-groups/audit.d.ts +169 -0
- package/dist/convex/label-groups/audit.d.ts.map +1 -0
- package/dist/convex/label-groups/audit.js +172 -0
- package/dist/convex/label-groups/audit.js.map +1 -0
- package/dist/convex/label-groups/auth.d.ts +61 -0
- package/dist/convex/label-groups/auth.d.ts.map +1 -0
- package/dist/convex/label-groups/auth.js +76 -0
- package/dist/convex/label-groups/auth.js.map +1 -0
- package/dist/convex/label-groups/cancelFlow.d.ts +47 -0
- package/dist/convex/label-groups/cancelFlow.d.ts.map +1 -0
- package/dist/convex/label-groups/cancelFlow.js +52 -0
- package/dist/convex/label-groups/cancelFlow.js.map +1 -0
- package/dist/convex/label-groups/connection.d.ts +11 -0
- package/dist/convex/label-groups/connection.d.ts.map +1 -0
- package/dist/convex/label-groups/connection.js +13 -0
- package/dist/convex/label-groups/connection.js.map +1 -0
- package/dist/convex/label-groups/consent.d.ts +36 -0
- package/dist/convex/label-groups/consent.d.ts.map +1 -0
- package/dist/convex/label-groups/consent.js +42 -0
- package/dist/convex/label-groups/consent.js.map +1 -0
- package/dist/convex/label-groups/contact.d.ts +21 -0
- package/dist/convex/label-groups/contact.d.ts.map +1 -0
- package/dist/convex/label-groups/contact.js +24 -0
- package/dist/convex/label-groups/contact.js.map +1 -0
- package/dist/convex/label-groups/credits.d.ts +24 -0
- package/dist/convex/label-groups/credits.d.ts.map +1 -0
- package/dist/convex/label-groups/credits.js +27 -0
- package/dist/convex/label-groups/credits.js.map +1 -0
- package/dist/convex/label-groups/deletion.d.ts +18 -0
- package/dist/convex/label-groups/deletion.d.ts.map +1 -0
- package/dist/convex/label-groups/deletion.js +19 -0
- package/dist/convex/label-groups/deletion.js.map +1 -0
- package/dist/convex/label-groups/email.d.ts +237 -0
- package/dist/convex/label-groups/email.d.ts.map +1 -0
- package/dist/convex/label-groups/email.js +207 -0
- package/dist/convex/label-groups/email.js.map +1 -0
- package/dist/convex/label-groups/errors.d.ts +100 -0
- package/dist/convex/label-groups/errors.d.ts.map +1 -0
- package/dist/convex/label-groups/errors.js +117 -0
- package/dist/convex/label-groups/errors.js.map +1 -0
- package/dist/convex/label-groups/feedback.d.ts +17 -0
- package/dist/convex/label-groups/feedback.d.ts.map +1 -0
- package/dist/convex/label-groups/feedback.js +17 -0
- package/dist/convex/label-groups/feedback.js.map +1 -0
- package/dist/convex/label-groups/gift.d.ts +54 -0
- package/dist/convex/label-groups/gift.d.ts.map +1 -0
- package/dist/convex/label-groups/gift.js +59 -0
- package/dist/convex/label-groups/gift.js.map +1 -0
- package/dist/convex/label-groups/history.d.ts +23 -0
- package/dist/convex/label-groups/history.d.ts.map +1 -0
- package/dist/convex/label-groups/history.js +25 -0
- package/dist/convex/label-groups/history.js.map +1 -0
- package/dist/convex/label-groups/impersonation.d.ts +13 -0
- package/dist/convex/label-groups/impersonation.d.ts.map +1 -0
- package/dist/convex/label-groups/impersonation.js +14 -0
- package/dist/convex/label-groups/impersonation.js.map +1 -0
- package/dist/convex/label-groups/invitation.d.ts +23 -0
- package/dist/convex/label-groups/invitation.d.ts.map +1 -0
- package/dist/convex/label-groups/invitation.js +25 -0
- package/dist/convex/label-groups/invitation.js.map +1 -0
- package/dist/convex/label-groups/legal.d.ts +139 -0
- package/dist/convex/label-groups/legal.d.ts.map +1 -0
- package/dist/convex/label-groups/legal.js +144 -0
- package/dist/convex/label-groups/legal.js.map +1 -0
- package/dist/convex/label-groups/maintenance.d.ts +11 -0
- package/dist/convex/label-groups/maintenance.d.ts.map +1 -0
- package/dist/convex/label-groups/maintenance.js +12 -0
- package/dist/convex/label-groups/maintenance.js.map +1 -0
- package/dist/convex/label-groups/notifications.d.ts +186 -0
- package/dist/convex/label-groups/notifications.d.ts.map +1 -0
- package/dist/convex/label-groups/notifications.js +89 -0
- package/dist/convex/label-groups/notifications.js.map +1 -0
- package/dist/convex/label-groups/onboarding.d.ts +57 -0
- package/dist/convex/label-groups/onboarding.d.ts.map +1 -0
- package/dist/convex/label-groups/onboarding.js +59 -0
- package/dist/convex/label-groups/onboarding.js.map +1 -0
- package/dist/convex/label-groups/pastDue.d.ts +9 -0
- package/dist/convex/label-groups/pastDue.d.ts.map +1 -0
- package/dist/convex/label-groups/pastDue.js +10 -0
- package/dist/convex/label-groups/pastDue.js.map +1 -0
- package/dist/convex/label-groups/preferences.d.ts +46 -0
- package/dist/convex/label-groups/preferences.d.ts.map +1 -0
- package/dist/convex/label-groups/preferences.js +46 -0
- package/dist/convex/label-groups/preferences.js.map +1 -0
- package/dist/convex/label-groups/pricing.d.ts +73 -0
- package/dist/convex/label-groups/pricing.d.ts.map +1 -0
- package/dist/convex/label-groups/pricing.js +95 -0
- package/dist/convex/label-groups/pricing.js.map +1 -0
- package/dist/convex/label-groups/profile.d.ts +34 -0
- package/dist/convex/label-groups/profile.d.ts.map +1 -0
- package/dist/convex/label-groups/profile.js +39 -0
- package/dist/convex/label-groups/profile.js.map +1 -0
- package/dist/convex/label-groups/quota.d.ts +19 -0
- package/dist/convex/label-groups/quota.d.ts.map +1 -0
- package/dist/convex/label-groups/quota.js +25 -0
- package/dist/convex/label-groups/quota.js.map +1 -0
- package/dist/convex/label-groups/reauthenticate.d.ts +21 -0
- package/dist/convex/label-groups/reauthenticate.d.ts.map +1 -0
- package/dist/convex/label-groups/reauthenticate.js +22 -0
- package/dist/convex/label-groups/reauthenticate.js.map +1 -0
- package/dist/convex/label-groups/referral.d.ts +50 -0
- package/dist/convex/label-groups/referral.d.ts.map +1 -0
- package/dist/convex/label-groups/referral.js +53 -0
- package/dist/convex/label-groups/referral.js.map +1 -0
- package/dist/convex/label-groups/report.d.ts +56 -0
- package/dist/convex/label-groups/report.d.ts.map +1 -0
- package/dist/convex/label-groups/report.js +56 -0
- package/dist/convex/label-groups/report.js.map +1 -0
- package/dist/convex/label-groups/security.d.ts +54 -0
- package/dist/convex/label-groups/security.d.ts.map +1 -0
- package/dist/convex/label-groups/security.js +63 -0
- package/dist/convex/label-groups/security.js.map +1 -0
- package/dist/convex/label-groups/settings.d.ts +79 -0
- package/dist/convex/label-groups/settings.d.ts.map +1 -0
- package/dist/convex/label-groups/settings.js +90 -0
- package/dist/convex/label-groups/settings.js.map +1 -0
- package/dist/convex/label-groups/shell.d.ts +48 -0
- package/dist/convex/label-groups/shell.d.ts.map +1 -0
- package/dist/convex/label-groups/shell.js +54 -0
- package/dist/convex/label-groups/shell.js.map +1 -0
- package/dist/convex/label-groups/source.d.ts +28 -0
- package/dist/convex/label-groups/source.d.ts.map +1 -0
- package/dist/convex/label-groups/source.js +32 -0
- package/dist/convex/label-groups/source.js.map +1 -0
- package/dist/convex/label-groups/upgrade.d.ts +16 -0
- package/dist/convex/label-groups/upgrade.d.ts.map +1 -0
- package/dist/convex/label-groups/upgrade.js +20 -0
- package/dist/convex/label-groups/upgrade.js.map +1 -0
- package/dist/convex/label-groups/upload.d.ts +18 -0
- package/dist/convex/label-groups/upload.d.ts.map +1 -0
- package/dist/convex/label-groups/upload.js +19 -0
- package/dist/convex/label-groups/upload.js.map +1 -0
- package/dist/convex/label-groups/usage.d.ts +12 -0
- package/dist/convex/label-groups/usage.d.ts.map +1 -0
- package/dist/convex/label-groups/usage.js +12 -0
- package/dist/convex/label-groups/usage.js.map +1 -0
- package/dist/convex/label-groups/waitlist.d.ts +44 -0
- package/dist/convex/label-groups/waitlist.d.ts.map +1 -0
- package/dist/convex/label-groups/waitlist.js +45 -0
- package/dist/convex/label-groups/waitlist.js.map +1 -0
- package/dist/convex/label-groups/withdrawal.d.ts +18 -0
- package/dist/convex/label-groups/withdrawal.d.ts.map +1 -0
- package/dist/convex/label-groups/withdrawal.js +18 -0
- package/dist/convex/label-groups/withdrawal.js.map +1 -0
- package/dist/convex/label-translations.d.ts +4 -0
- package/dist/convex/label-translations.d.ts.map +1 -0
- package/dist/convex/label-translations.js +1834 -0
- package/dist/convex/label-translations.js.map +1 -0
- package/dist/convex/labels.d.ts +2543 -0
- package/dist/convex/labels.d.ts.map +1 -0
- package/dist/convex/labels.js +114 -0
- package/dist/convex/labels.js.map +1 -0
- package/dist/convex/legal.d.ts +309 -0
- package/dist/convex/legal.d.ts.map +1 -0
- package/dist/convex/legal.js +270 -0
- package/dist/convex/legal.js.map +1 -0
- package/dist/convex/lifecycle-flows.d.ts +75 -0
- package/dist/convex/lifecycle-flows.d.ts.map +1 -0
- package/dist/convex/lifecycle-flows.js +56 -0
- package/dist/convex/lifecycle-flows.js.map +1 -0
- package/dist/convex/local-origins.d.ts +3 -0
- package/dist/convex/local-origins.d.ts.map +1 -0
- package/dist/convex/local-origins.js +25 -0
- package/dist/convex/local-origins.js.map +1 -0
- package/dist/convex/locale.d.ts +26 -0
- package/dist/convex/locale.d.ts.map +1 -0
- package/dist/convex/locale.js +99 -0
- package/dist/convex/locale.js.map +1 -0
- package/dist/convex/log.d.ts +2 -0
- package/dist/convex/log.d.ts.map +1 -0
- package/dist/convex/log.js +149 -0
- package/dist/convex/log.js.map +1 -0
- package/dist/convex/loopback.d.ts +5 -0
- package/dist/convex/loopback.d.ts.map +1 -0
- package/dist/convex/loopback.js +20 -0
- package/dist/convex/loopback.js.map +1 -0
- package/dist/convex/monitoring.d.ts +226 -0
- package/dist/convex/monitoring.d.ts.map +1 -0
- package/dist/convex/monitoring.js +419 -0
- package/dist/convex/monitoring.js.map +1 -0
- package/dist/convex/notifications.d.ts +404 -0
- package/dist/convex/notifications.d.ts.map +1 -0
- package/dist/convex/notifications.js +231 -0
- package/dist/convex/notifications.js.map +1 -0
- package/dist/convex/package-migrations.d.ts +44 -0
- package/dist/convex/package-migrations.d.ts.map +1 -0
- package/dist/convex/package-migrations.js +32 -0
- package/dist/convex/package-migrations.js.map +1 -0
- package/dist/convex/paths.d.ts +35 -0
- package/dist/convex/paths.d.ts.map +1 -0
- package/dist/convex/paths.js +34 -0
- package/dist/convex/paths.js.map +1 -0
- package/dist/convex/pauses.d.ts +27 -0
- package/dist/convex/pauses.d.ts.map +1 -0
- package/dist/convex/pauses.js +36 -0
- package/dist/convex/pauses.js.map +1 -0
- package/dist/convex/proof.d.ts +177 -0
- package/dist/convex/proof.d.ts.map +1 -0
- package/dist/convex/proof.js +311 -0
- package/dist/convex/proof.js.map +1 -0
- package/dist/convex/referral-rules.d.ts +81 -0
- package/dist/convex/referral-rules.d.ts.map +1 -0
- package/dist/convex/referral-rules.js +108 -0
- package/dist/convex/referral-rules.js.map +1 -0
- package/dist/convex/report-rules.d.ts +9 -0
- package/dist/convex/report-rules.d.ts.map +1 -0
- package/dist/convex/report-rules.js +10 -0
- package/dist/convex/report-rules.js.map +1 -0
- package/dist/convex/sandbox-inbox.d.ts +56 -0
- package/dist/convex/sandbox-inbox.d.ts.map +1 -0
- package/dist/convex/sandbox-inbox.js +125 -0
- package/dist/convex/sandbox-inbox.js.map +1 -0
- package/dist/convex/sensitive-actions.d.ts +40 -0
- package/dist/convex/sensitive-actions.d.ts.map +1 -0
- package/dist/convex/sensitive-actions.js +220 -0
- package/dist/convex/sensitive-actions.js.map +1 -0
- package/dist/convex/test-models.d.ts +34 -0
- package/dist/convex/test-models.d.ts.map +1 -0
- package/dist/convex/test-models.js +121 -0
- package/dist/convex/test-models.js.map +1 -0
- package/dist/convex/tokens.d.ts +69 -0
- package/dist/convex/tokens.d.ts.map +1 -0
- package/dist/convex/tokens.js +101 -0
- package/dist/convex/tokens.js.map +1 -0
- package/dist/convex/urls.d.ts +9 -0
- package/dist/convex/urls.d.ts.map +1 -0
- package/dist/convex/urls.js +15 -0
- package/dist/convex/urls.js.map +1 -0
- package/dist/convex/visitor.d.ts +2 -0
- package/dist/convex/visitor.d.ts.map +1 -0
- package/dist/convex/visitor.js +51 -0
- package/dist/convex/visitor.js.map +1 -0
- package/dist/convex/waitlist-rules.d.ts +60 -0
- package/dist/convex/waitlist-rules.d.ts.map +1 -0
- package/dist/convex/waitlist-rules.js +107 -0
- package/dist/convex/waitlist-rules.js.map +1 -0
- package/dist/convex/web-push.d.ts +105 -0
- package/dist/convex/web-push.d.ts.map +1 -0
- package/dist/convex/web-push.js +192 -0
- package/dist/convex/web-push.js.map +1 -0
- package/dist/convex/webhook-signatures.d.ts +39 -0
- package/dist/convex/webhook-signatures.d.ts.map +1 -0
- package/dist/convex/webhook-signatures.js +140 -0
- package/dist/convex/webhook-signatures.js.map +1 -0
- package/dist/devtools/rpc-types.js +23 -0
- package/dist/devtools-client/_nuxt/CfQg3BRt.js +5 -0
- package/dist/devtools-client/_nuxt/entry.DsMplBp-.css +1 -0
- package/dist/devtools-client/icon.svg +11 -0
- package/dist/devtools-client/index.html +1 -0
- package/dist/env-registry.js +217 -0
- package/dist/eslint.d.mts +33 -0
- package/dist/eslint.mjs +39 -0
- package/dist/findings/types.js +1 -0
- package/dist/module.d.ts +128 -32
- package/dist/module.js +15 -275
- package/dist/module.json +6 -2
- package/dist/runtime/config.d.ts +172 -0
- package/dist/runtime/config.js +65 -0
- package/dist/runtime/devtools/bridge.d.ts +12 -0
- package/dist/runtime/devtools/bridge.js +70 -0
- package/dist/runtime/devtools/events.d.ts +11 -0
- package/dist/runtime/devtools/events.js +116 -0
- package/dist/runtime/devtools/on-demand.d.ts +11 -0
- package/dist/runtime/devtools/on-demand.js +101 -0
- package/dist/runtime/devtools/plugin.client.d.ts +8 -0
- package/dist/runtime/devtools/plugin.client.js +201 -0
- package/dist/runtime/devtools/types.d.ts +248 -0
- package/dist/runtime/devtools/types.js +0 -0
- package/dist/runtime/devtools/webhook-feed.d.ts +15 -0
- package/dist/runtime/devtools/webhook-feed.js +26 -0
- package/dist/runtime/image/provider.d.ts +25 -0
- package/dist/runtime/image/provider.js +9 -0
- package/dist/runtime/locales/de.json +2747 -0
- package/dist/runtime/locales/en.json +2747 -0
- package/dist/runtime/locales/es.json +2747 -0
- package/dist/runtime/locales/fr.json +2747 -0
- package/dist/runtime/locales/ru.json +2747 -0
- package/dist/runtime/monitoring/report.d.ts +35 -0
- package/dist/runtime/monitoring/report.js +23 -0
- package/dist/runtime/monitoring/sdk/capture.client.d.ts +11 -0
- package/dist/runtime/monitoring/sdk/capture.client.js +14 -0
- package/dist/runtime/monitoring/sdk/capture.server.d.ts +9 -0
- package/dist/runtime/monitoring/sdk/capture.server.js +9 -0
- package/dist/runtime/monitoring/sdk/feedback.d.ts +5 -0
- package/dist/runtime/monitoring/sdk/feedback.js +21 -0
- package/dist/runtime/monitoring/sdk/observe.client.d.ts +32 -0
- package/dist/runtime/monitoring/sdk/observe.client.js +42 -0
- package/dist/runtime/monitoring/sdk/preset.d.ts +74 -0
- package/dist/runtime/monitoring/sdk/preset.js +49 -0
- package/dist/runtime/monitoring/sdk/replay.d.ts +1 -0
- package/dist/runtime/monitoring/sdk/replay.js +1 -0
- package/dist/runtime/monitoring/sdk/sentry.client.config.d.ts +1 -0
- package/dist/runtime/monitoring/sdk/sentry.client.config.js +13 -0
- package/dist/runtime/monitoring/sdk/sentry.server.config.d.ts +1 -0
- package/dist/runtime/monitoring/sdk/sentry.server.config.js +12 -0
- package/dist/runtime/protection/botid-absent.d.ts +4 -0
- package/dist/runtime/protection/botid-absent.js +5 -0
- package/dist/runtime/server/backend-url.d.ts +17 -0
- package/dist/runtime/server/backend-url.js +9 -0
- package/dist/runtime/server/manifest.d.ts +2 -0
- package/dist/runtime/server/manifest.js +6 -0
- package/dist/runtime/server/monitoring/backend-calls.d.ts +9 -0
- package/dist/runtime/server/monitoring/backend-calls.js +17 -0
- package/dist/runtime/server/monitoring/capture.d.ts +15 -0
- package/dist/runtime/server/monitoring/capture.js +24 -0
- package/dist/runtime/server/monitoring/health.d.ts +15 -0
- package/dist/runtime/server/monitoring/health.js +48 -0
- package/dist/runtime/server/monitoring/local-log-route.d.ts +5 -0
- package/dist/runtime/server/monitoring/local-log-route.js +32 -0
- package/dist/runtime/server/monitoring/local-log.d.ts +19 -0
- package/dist/runtime/server/monitoring/local-log.js +38 -0
- package/dist/runtime/server/protection/csp.d.ts +17 -0
- package/dist/runtime/server/protection/csp.js +28 -0
- package/dist/runtime/server/protection/gate.d.ts +39 -0
- package/dist/runtime/server/protection/gate.js +104 -0
- package/dist/runtime/server/push-worker-source.d.ts +2 -0
- package/dist/runtime/server/push-worker-source.js +25 -0
- package/dist/runtime/server/push-worker.d.ts +2 -0
- package/dist/runtime/server/push-worker.js +9 -0
- package/dist/runtime/server/site-url.d.ts +5 -0
- package/dist/runtime/server/site-url.js +5 -0
- package/dist/runtime/server/tsconfig.json +6 -0
- package/dist/runtime/server/visitor-ip.d.ts +4 -0
- package/dist/runtime/server/visitor-ip.js +5 -0
- package/dist/runtime/test-utils/aliases.d.ts +39 -0
- package/dist/runtime/test-utils/aliases.js +26 -0
- package/dist/runtime/test-utils/auth-answers.d.ts +85 -0
- package/dist/runtime/test-utils/auth-answers.js +194 -0
- package/dist/runtime/test-utils/auth-client.d.ts +3 -0
- package/dist/runtime/test-utils/auth-client.js +69 -0
- package/dist/runtime/test-utils/base-modules.d.ts +17 -0
- package/dist/runtime/test-utils/client.d.ts +24 -0
- package/dist/runtime/test-utils/client.js +29 -0
- package/dist/runtime/test-utils/email.d.ts +29 -0
- package/dist/runtime/test-utils/email.js +7 -0
- package/dist/runtime/test-utils/index.d.ts +20 -0
- package/dist/runtime/test-utils/index.js +7 -0
- package/dist/runtime/test-utils/install.d.ts +58 -0
- package/dist/runtime/test-utils/install.js +114 -0
- package/dist/runtime/test-utils/mock.d.ts +245 -0
- package/dist/runtime/test-utils/mock.js +130 -0
- package/dist/runtime/vue/a11y.d.ts +74 -0
- package/dist/runtime/vue/a11y.js +94 -0
- package/dist/runtime/vue/admin-client.d.ts +18 -0
- package/dist/runtime/vue/admin-client.js +32 -0
- package/dist/runtime/vue/auth-client.d.ts +45 -0
- package/dist/runtime/vue/auth-client.js +9 -0
- package/dist/runtime/vue/components/account/AccountData.css +1 -0
- package/dist/runtime/vue/components/account/AccountData.d.vue.ts +55 -0
- package/dist/runtime/vue/components/account/AccountData.vue +150 -0
- package/dist/runtime/vue/components/account/AccountData.vue.d.ts +55 -0
- package/dist/runtime/vue/components/account/AccountDeletion.css +1 -0
- package/dist/runtime/vue/components/account/AccountDeletion.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/AccountDeletion.vue +95 -0
- package/dist/runtime/vue/components/account/AccountDeletion.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/AccountExport.css +1 -0
- package/dist/runtime/vue/components/account/AccountExport.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/AccountExport.vue +65 -0
- package/dist/runtime/vue/components/account/AccountExport.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/ActivationChecklist.css +1 -0
- package/dist/runtime/vue/components/account/ActivationChecklist.d.vue.ts +22 -0
- package/dist/runtime/vue/components/account/ActivationChecklist.vue +121 -0
- package/dist/runtime/vue/components/account/ActivationChecklist.vue.d.ts +22 -0
- package/dist/runtime/vue/components/account/ConsentPrompt.css +1 -0
- package/dist/runtime/vue/components/account/ConsentPrompt.d.vue.ts +53 -0
- package/dist/runtime/vue/components/account/ConsentPrompt.vue +106 -0
- package/dist/runtime/vue/components/account/ConsentPrompt.vue.d.ts +53 -0
- package/dist/runtime/vue/components/account/ConsentPromptAge.d.vue.ts +16 -0
- package/dist/runtime/vue/components/account/ConsentPromptAge.vue +26 -0
- package/dist/runtime/vue/components/account/ConsentPromptAge.vue.d.ts +16 -0
- package/dist/runtime/vue/components/account/ConsentPromptDialog.d.vue.ts +49 -0
- package/dist/runtime/vue/components/account/ConsentPromptDialog.vue +116 -0
- package/dist/runtime/vue/components/account/ConsentPromptDialog.vue.d.ts +49 -0
- package/dist/runtime/vue/components/account/ConsentPromptItem.d.vue.ts +28 -0
- package/dist/runtime/vue/components/account/ConsentPromptItem.vue +44 -0
- package/dist/runtime/vue/components/account/ConsentPromptItem.vue.d.ts +28 -0
- package/dist/runtime/vue/components/account/ConsentPromptStorage.d.vue.ts +15 -0
- package/dist/runtime/vue/components/account/ConsentPromptStorage.vue +67 -0
- package/dist/runtime/vue/components/account/ConsentPromptStorage.vue.d.ts +15 -0
- package/dist/runtime/vue/components/account/EmailUnsubscribe.css +1 -0
- package/dist/runtime/vue/components/account/EmailUnsubscribe.d.vue.ts +13 -0
- package/dist/runtime/vue/components/account/EmailUnsubscribe.vue +107 -0
- package/dist/runtime/vue/components/account/EmailUnsubscribe.vue.d.ts +13 -0
- package/dist/runtime/vue/components/account/HowDidYouHear.css +1 -0
- package/dist/runtime/vue/components/account/HowDidYouHear.d.vue.ts +24 -0
- package/dist/runtime/vue/components/account/HowDidYouHear.vue +149 -0
- package/dist/runtime/vue/components/account/HowDidYouHear.vue.d.ts +24 -0
- package/dist/runtime/vue/components/account/KeepAccount.css +1 -0
- package/dist/runtime/vue/components/account/KeepAccount.d.vue.ts +10 -0
- package/dist/runtime/vue/components/account/KeepAccount.vue +54 -0
- package/dist/runtime/vue/components/account/KeepAccount.vue.d.ts +10 -0
- package/dist/runtime/vue/components/account/OnboardingFlow.css +1 -0
- package/dist/runtime/vue/components/account/OnboardingFlow.d.vue.ts +77 -0
- package/dist/runtime/vue/components/account/OnboardingFlow.vue +138 -0
- package/dist/runtime/vue/components/account/OnboardingFlow.vue.d.ts +77 -0
- package/dist/runtime/vue/components/account/OnboardingPlan.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/OnboardingPlan.vue +36 -0
- package/dist/runtime/vue/components/account/OnboardingPlan.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/OnboardingProfile.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/OnboardingProfile.vue +111 -0
- package/dist/runtime/vue/components/account/OnboardingProfile.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/OnboardingStepActions.d.vue.ts +10 -0
- package/dist/runtime/vue/components/account/OnboardingStepActions.vue +38 -0
- package/dist/runtime/vue/components/account/OnboardingStepActions.vue.d.ts +10 -0
- package/dist/runtime/vue/components/account/OnboardingTeammates.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/OnboardingTeammates.vue +102 -0
- package/dist/runtime/vue/components/account/OnboardingTeammates.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/OnboardingWorkspace.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/OnboardingWorkspace.vue +154 -0
- package/dist/runtime/vue/components/account/OnboardingWorkspace.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/ProfileEmailSection.d.vue.ts +4 -0
- package/dist/runtime/vue/components/account/ProfileEmailSection.vue +97 -0
- package/dist/runtime/vue/components/account/ProfileEmailSection.vue.d.ts +4 -0
- package/dist/runtime/vue/components/account/ProfileIdentity.css +1 -0
- package/dist/runtime/vue/components/account/ProfileIdentity.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/ProfileIdentity.vue +50 -0
- package/dist/runtime/vue/components/account/ProfileIdentity.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/ProfileLanguageSection.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/ProfileLanguageSection.vue +43 -0
- package/dist/runtime/vue/components/account/ProfileLanguageSection.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/ProfileNameSection.d.vue.ts +3 -0
- package/dist/runtime/vue/components/account/ProfileNameSection.vue +35 -0
- package/dist/runtime/vue/components/account/ProfileNameSection.vue.d.ts +3 -0
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.css +1 -0
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.d.vue.ts +4 -0
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.vue +155 -0
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.vue.d.ts +4 -0
- package/dist/runtime/vue/components/account/ProfileSettings.css +1 -0
- package/dist/runtime/vue/components/account/ProfileSettings.d.vue.ts +61 -0
- package/dist/runtime/vue/components/account/ProfileSettings.vue +201 -0
- package/dist/runtime/vue/components/account/ProfileSettings.vue.d.ts +61 -0
- package/dist/runtime/vue/components/account/SecurityAlerts.css +1 -0
- package/dist/runtime/vue/components/account/SecurityAlerts.d.vue.ts +4 -0
- package/dist/runtime/vue/components/account/SecurityAlerts.vue +70 -0
- package/dist/runtime/vue/components/account/SecurityAlerts.vue.d.ts +4 -0
- package/dist/runtime/vue/components/account/SecurityPasskeys.css +1 -0
- package/dist/runtime/vue/components/account/SecurityPasskeys.d.vue.ts +4 -0
- package/dist/runtime/vue/components/account/SecurityPasskeys.vue +152 -0
- package/dist/runtime/vue/components/account/SecurityPasskeys.vue.d.ts +4 -0
- package/dist/runtime/vue/components/account/SecuritySessions.css +1 -0
- package/dist/runtime/vue/components/account/SecuritySessions.d.vue.ts +4 -0
- package/dist/runtime/vue/components/account/SecuritySessions.vue +84 -0
- package/dist/runtime/vue/components/account/SecuritySessions.vue.d.ts +4 -0
- package/dist/runtime/vue/components/account/SecuritySettings.css +1 -0
- package/dist/runtime/vue/components/account/SecuritySettings.d.vue.ts +87 -0
- package/dist/runtime/vue/components/account/SecuritySettings.vue +225 -0
- package/dist/runtime/vue/components/account/SecuritySettings.vue.d.ts +87 -0
- package/dist/runtime/vue/components/account/account-data.d.ts +49 -0
- package/dist/runtime/vue/components/account/account-data.js +10 -0
- package/dist/runtime/vue/components/account/activation-checklist.d.ts +10 -0
- package/dist/runtime/vue/components/account/activation-checklist.js +0 -0
- package/dist/runtime/vue/components/account/consent-prompt.d.ts +28 -0
- package/dist/runtime/vue/components/account/consent-prompt.js +0 -0
- package/dist/runtime/vue/components/account/how-did-you-hear.d.ts +10 -0
- package/dist/runtime/vue/components/account/how-did-you-hear.js +3 -0
- package/dist/runtime/vue/components/account/onboarding-flow.d.ts +30 -0
- package/dist/runtime/vue/components/account/onboarding-flow.js +0 -0
- package/dist/runtime/vue/components/account/profile-settings.d.ts +68 -0
- package/dist/runtime/vue/components/account/profile-settings.js +10 -0
- package/dist/runtime/vue/components/account/security-alerts.d.ts +13 -0
- package/dist/runtime/vue/components/account/security-alerts.js +20 -0
- package/dist/runtime/vue/components/account/security-settings.d.ts +69 -0
- package/dist/runtime/vue/components/account/security-settings.js +10 -0
- package/dist/runtime/vue/components/admin/AdminAccess.css +1 -0
- package/dist/runtime/vue/components/admin/AdminAccess.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccess.vue +46 -0
- package/dist/runtime/vue/components/admin/AdminAccess.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessAdmissions.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessAdmissions.vue +51 -0
- package/dist/runtime/vue/components/admin/AdminAccessAdmissions.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessAdmit.d.vue.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminAccessAdmit.vue +65 -0
- package/dist/runtime/vue/components/admin/AdminAccessAdmit.vue.d.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminAccessCreate.d.vue.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminAccessCreate.vue +78 -0
- package/dist/runtime/vue/components/admin/AdminAccessCreate.vue.d.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminAccessInvites.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessInvites.vue +47 -0
- package/dist/runtime/vue/components/admin/AdminAccessInvites.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessPhase.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessPhase.vue +43 -0
- package/dist/runtime/vue/components/admin/AdminAccessPhase.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessRevoke.d.vue.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminAccessRevoke.vue +18 -0
- package/dist/runtime/vue/components/admin/AdminAccessRevoke.vue.d.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminAccessTable.d.vue.ts +18 -0
- package/dist/runtime/vue/components/admin/AdminAccessTable.vue +50 -0
- package/dist/runtime/vue/components/admin/AdminAccessTable.vue.d.ts +18 -0
- package/dist/runtime/vue/components/admin/AdminAnalytics.css +1 -0
- package/dist/runtime/vue/components/admin/AdminAnalytics.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminAnalytics.vue +34 -0
- package/dist/runtime/vue/components/admin/AdminAnalytics.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncements.css +1 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncements.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncements.vue +79 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncements.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncementsCompose.d.vue.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncementsCompose.vue +132 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncementsCompose.vue.d.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncementsItem.d.vue.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncementsItem.vue +81 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncementsItem.vue.d.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminBilling.css +1 -0
- package/dist/runtime/vue/components/admin/AdminBilling.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminBilling.vue +200 -0
- package/dist/runtime/vue/components/admin/AdminBilling.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminChart.css +1 -0
- package/dist/runtime/vue/components/admin/AdminChart.d.vue.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminChart.vue +31 -0
- package/dist/runtime/vue/components/admin/AdminChart.vue.d.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminConsole.css +1 -0
- package/dist/runtime/vue/components/admin/AdminConsole.d.vue.ts +38 -0
- package/dist/runtime/vue/components/admin/AdminConsole.vue +131 -0
- package/dist/runtime/vue/components/admin/AdminConsole.vue.d.ts +38 -0
- package/dist/runtime/vue/components/admin/AdminCosts.css +1 -0
- package/dist/runtime/vue/components/admin/AdminCosts.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminCosts.vue +120 -0
- package/dist/runtime/vue/components/admin/AdminCosts.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminDrawerFrame.d.vue.ts +24 -0
- package/dist/runtime/vue/components/admin/AdminDrawerFrame.vue +71 -0
- package/dist/runtime/vue/components/admin/AdminDrawerFrame.vue.d.ts +24 -0
- package/dist/runtime/vue/components/admin/AdminExperiments.css +1 -0
- package/dist/runtime/vue/components/admin/AdminExperiments.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminExperiments.vue +159 -0
- package/dist/runtime/vue/components/admin/AdminExperiments.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminFlags.css +1 -0
- package/dist/runtime/vue/components/admin/AdminFlags.d.vue.ts +9 -0
- package/dist/runtime/vue/components/admin/AdminFlags.vue +429 -0
- package/dist/runtime/vue/components/admin/AdminFlags.vue.d.ts +9 -0
- package/dist/runtime/vue/components/admin/AdminGrowth.css +1 -0
- package/dist/runtime/vue/components/admin/AdminGrowth.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminGrowth.vue +204 -0
- package/dist/runtime/vue/components/admin/AdminGrowth.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminInbox.css +1 -0
- package/dist/runtime/vue/components/admin/AdminInbox.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminInbox.vue +81 -0
- package/dist/runtime/vue/components/admin/AdminInbox.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminInboxMessage.d.vue.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminInboxMessage.vue +107 -0
- package/dist/runtime/vue/components/admin/AdminInboxMessage.vue.d.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminListFrame.d.vue.ts +29 -0
- package/dist/runtime/vue/components/admin/AdminListFrame.vue +77 -0
- package/dist/runtime/vue/components/admin/AdminListFrame.vue.d.ts +29 -0
- package/dist/runtime/vue/components/admin/AdminListTail.d.vue.ts +14 -0
- package/dist/runtime/vue/components/admin/AdminListTail.vue +38 -0
- package/dist/runtime/vue/components/admin/AdminListTail.vue.d.ts +14 -0
- package/dist/runtime/vue/components/admin/AdminQueue.css +1 -0
- package/dist/runtime/vue/components/admin/AdminQueue.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminQueue.vue +90 -0
- package/dist/runtime/vue/components/admin/AdminQueue.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminQueueControls.d.vue.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueControls.vue +56 -0
- package/dist/runtime/vue/components/admin/AdminQueueControls.vue.d.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueJob.d.vue.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueJob.vue +49 -0
- package/dist/runtime/vue/components/admin/AdminQueueJob.vue.d.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueJobs.d.vue.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminQueueJobs.vue +82 -0
- package/dist/runtime/vue/components/admin/AdminQueueJobs.vue.d.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminQueueModels.d.vue.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueModels.vue +84 -0
- package/dist/runtime/vue/components/admin/AdminQueueModels.vue.d.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueTier.d.vue.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueTier.vue +83 -0
- package/dist/runtime/vue/components/admin/AdminQueueTier.vue.d.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueTiers.d.vue.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminQueueTiers.vue +40 -0
- package/dist/runtime/vue/components/admin/AdminQueueTiers.vue.d.ts +10 -0
- package/dist/runtime/vue/components/admin/AdminReferrals.css +1 -0
- package/dist/runtime/vue/components/admin/AdminReferrals.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminReferrals.vue +245 -0
- package/dist/runtime/vue/components/admin/AdminReferrals.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminReports.css +1 -0
- package/dist/runtime/vue/components/admin/AdminReports.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminReports.vue +122 -0
- package/dist/runtime/vue/components/admin/AdminReports.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminReportsAppeal.d.vue.ts +9 -0
- package/dist/runtime/vue/components/admin/AdminReportsAppeal.vue +55 -0
- package/dist/runtime/vue/components/admin/AdminReportsAppeal.vue.d.ts +9 -0
- package/dist/runtime/vue/components/admin/AdminReportsDecision.d.vue.ts +14 -0
- package/dist/runtime/vue/components/admin/AdminReportsDecision.vue +72 -0
- package/dist/runtime/vue/components/admin/AdminReportsDecision.vue.d.ts +14 -0
- package/dist/runtime/vue/components/admin/AdminReportsNotice.d.vue.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminReportsNotice.vue +47 -0
- package/dist/runtime/vue/components/admin/AdminReportsNotice.vue.d.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminReportsSubject.d.vue.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminReportsSubject.vue +76 -0
- package/dist/runtime/vue/components/admin/AdminReportsSubject.vue.d.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminRevenue.css +1 -0
- package/dist/runtime/vue/components/admin/AdminRevenue.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminRevenue.vue +197 -0
- package/dist/runtime/vue/components/admin/AdminRevenue.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminSuppressions.css +1 -0
- package/dist/runtime/vue/components/admin/AdminSuppressions.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminSuppressions.vue +98 -0
- package/dist/runtime/vue/components/admin/AdminSuppressions.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminSystem.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminSystem.vue +125 -0
- package/dist/runtime/vue/components/admin/AdminSystem.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminTabDialogs.d.vue.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminTabDialogs.vue +18 -0
- package/dist/runtime/vue/components/admin/AdminTabDialogs.vue.d.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminTabStatus.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminTabStatus.vue +26 -0
- package/dist/runtime/vue/components/admin/AdminTabStatus.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminUserDrawer.d.vue.ts +4 -0
- package/dist/runtime/vue/components/admin/AdminUserDrawer.vue +294 -0
- package/dist/runtime/vue/components/admin/AdminUserDrawer.vue.d.ts +4 -0
- package/dist/runtime/vue/components/admin/AdminUsers.d.vue.ts +863 -0
- package/dist/runtime/vue/components/admin/AdminUsers.vue +157 -0
- package/dist/runtime/vue/components/admin/AdminUsers.vue.d.ts +863 -0
- package/dist/runtime/vue/components/admin/AdminUsersTable.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminUsersTable.vue +108 -0
- package/dist/runtime/vue/components/admin/AdminUsersTable.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWaitlist.css +1 -0
- package/dist/runtime/vue/components/admin/AdminWaitlist.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminWaitlist.vue +63 -0
- package/dist/runtime/vue/components/admin/AdminWaitlist.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistActions.d.vue.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistActions.vue +58 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistActions.vue.d.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistFilter.d.vue.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistFilter.vue +86 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistFilter.vue.d.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistSummary.d.vue.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistSummary.vue +63 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistSummary.vue.d.ts +8 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistTable.d.vue.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistTable.vue +75 -0
- package/dist/runtime/vue/components/admin/AdminWaitlistTable.vue.d.ts +6 -0
- package/dist/runtime/vue/components/admin/AdminWebhooks.css +1 -0
- package/dist/runtime/vue/components/admin/AdminWebhooks.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWebhooks.vue +141 -0
- package/dist/runtime/vue/components/admin/AdminWebhooks.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaceDrawer.d.vue.ts +4 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaceDrawer.vue +99 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaceDrawer.vue.d.ts +4 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.d.vue.ts +846 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.vue +90 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.vue.d.ts +846 -0
- package/dist/runtime/vue/components/admin/AdminWorkspacesTable.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWorkspacesTable.vue +81 -0
- package/dist/runtime/vue/components/admin/AdminWorkspacesTable.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/admin-access-tab.d.ts +2 -0
- package/dist/runtime/vue/components/admin/admin-access-tab.js +88 -0
- package/dist/runtime/vue/components/admin/admin-analytics-tab.d.ts +1 -0
- package/dist/runtime/vue/components/admin/admin-analytics-tab.js +19 -0
- package/dist/runtime/vue/components/admin/admin-announcements-tab.d.ts +2 -0
- package/dist/runtime/vue/components/admin/admin-announcements-tab.js +97 -0
- package/dist/runtime/vue/components/admin/admin-billing-tab.d.ts +1 -0
- package/dist/runtime/vue/components/admin/admin-billing-tab.js +43 -0
- package/dist/runtime/vue/components/admin/admin-costs-tab.d.ts +1 -0
- package/dist/runtime/vue/components/admin/admin-costs-tab.js +23 -0
- package/dist/runtime/vue/components/admin/admin-experiments-tab.d.ts +1 -0
- package/dist/runtime/vue/components/admin/admin-experiments-tab.js +60 -0
- package/dist/runtime/vue/components/admin/admin-growth-tab.d.ts +1 -0
- package/dist/runtime/vue/components/admin/admin-growth-tab.js +58 -0
- package/dist/runtime/vue/components/admin/admin-inbox-tab.d.ts +4 -0
- package/dist/runtime/vue/components/admin/admin-inbox-tab.js +44 -0
- package/dist/runtime/vue/components/admin/admin-reports-tab.d.ts +21 -0
- package/dist/runtime/vue/components/admin/admin-reports-tab.js +89 -0
- package/dist/runtime/vue/components/admin/admin-revenue-tab.d.ts +12 -0
- package/dist/runtime/vue/components/admin/admin-revenue-tab.js +81 -0
- package/dist/runtime/vue/components/admin/admin-suppressions-tab.d.ts +1 -0
- package/dist/runtime/vue/components/admin/admin-suppressions-tab.js +27 -0
- package/dist/runtime/vue/components/admin/admin-tabs.d.ts +86 -0
- package/dist/runtime/vue/components/admin/admin-tabs.js +69 -0
- package/dist/runtime/vue/components/admin/admin-views.d.ts +34 -0
- package/dist/runtime/vue/components/admin/admin-views.js +22 -0
- package/dist/runtime/vue/components/admin/admin-waitlist-tab.d.ts +2 -0
- package/dist/runtime/vue/components/admin/admin-waitlist-tab.js +93 -0
- package/dist/runtime/vue/components/admin/admin-webhooks-tab.d.ts +5 -0
- package/dist/runtime/vue/components/admin/admin-webhooks-tab.js +35 -0
- package/dist/runtime/vue/components/admin/admin.css +1 -0
- package/dist/runtime/vue/components/admin/admin.d.ts +132 -0
- package/dist/runtime/vue/components/admin/admin.js +96 -0
- package/dist/runtime/vue/components/auth/AuthForm.css +1 -0
- package/dist/runtime/vue/components/auth/AuthForm.d.vue.ts +90 -0
- package/dist/runtime/vue/components/auth/AuthForm.vue +192 -0
- package/dist/runtime/vue/components/auth/AuthForm.vue.d.ts +90 -0
- package/dist/runtime/vue/components/auth/AuthFormAge.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormAge.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormAge.vue +42 -0
- package/dist/runtime/vue/components/auth/AuthFormAge.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormAgreement.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormAgreement.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormAgreement.vue +31 -0
- package/dist/runtime/vue/components/auth/AuthFormAgreement.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormChoose.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormChoose.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormChoose.vue +44 -0
- package/dist/runtime/vue/components/auth/AuthFormChoose.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormCode.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormCode.vue +46 -0
- package/dist/runtime/vue/components/auth/AuthFormCode.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormEmail.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormEmail.vue +40 -0
- package/dist/runtime/vue/components/auth/AuthFormEmail.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormError.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormError.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormError.vue +18 -0
- package/dist/runtime/vue/components/auth/AuthFormError.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormHeader.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormHeader.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormHeader.vue +25 -0
- package/dist/runtime/vue/components/auth/AuthFormHeader.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormInviteCode.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormInviteCode.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormInviteCode.vue +48 -0
- package/dist/runtime/vue/components/auth/AuthFormInviteCode.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormPasskey.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormPasskey.vue +26 -0
- package/dist/runtime/vue/components/auth/AuthFormPasskey.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormPasskeyOffer.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormPasskeyOffer.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormPasskeyOffer.vue +46 -0
- package/dist/runtime/vue/components/auth/AuthFormPasskeyOffer.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormRecover.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormRecover.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormRecover.vue +52 -0
- package/dist/runtime/vue/components/auth/AuthFormRecover.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormUndeliverable.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormUndeliverable.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormUndeliverable.vue +29 -0
- package/dist/runtime/vue/components/auth/AuthFormUndeliverable.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormWaitlisted.css +1 -0
- package/dist/runtime/vue/components/auth/AuthFormWaitlisted.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/AuthFormWaitlisted.vue +36 -0
- package/dist/runtime/vue/components/auth/AuthFormWaitlisted.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/InviteRedeem.css +1 -0
- package/dist/runtime/vue/components/auth/InviteRedeem.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/InviteRedeem.vue +47 -0
- package/dist/runtime/vue/components/auth/InviteRedeem.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/ReauthenticateCode.css +1 -0
- package/dist/runtime/vue/components/auth/ReauthenticateCode.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/ReauthenticateCode.vue +57 -0
- package/dist/runtime/vue/components/auth/ReauthenticateCode.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/ReauthenticateDialog.css +1 -0
- package/dist/runtime/vue/components/auth/ReauthenticateDialog.d.vue.ts +43 -0
- package/dist/runtime/vue/components/auth/ReauthenticateDialog.vue +136 -0
- package/dist/runtime/vue/components/auth/ReauthenticateDialog.vue.d.ts +43 -0
- package/dist/runtime/vue/components/auth/ReauthenticatePasskey.css +1 -0
- package/dist/runtime/vue/components/auth/ReauthenticatePasskey.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/ReauthenticatePasskey.vue +36 -0
- package/dist/runtime/vue/components/auth/ReauthenticatePasskey.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistCode.css +1 -0
- package/dist/runtime/vue/components/auth/WaitlistCode.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistCode.vue +55 -0
- package/dist/runtime/vue/components/auth/WaitlistCode.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistForm.css +1 -0
- package/dist/runtime/vue/components/auth/WaitlistForm.d.vue.ts +74 -0
- package/dist/runtime/vue/components/auth/WaitlistForm.vue +81 -0
- package/dist/runtime/vue/components/auth/WaitlistForm.vue.d.ts +74 -0
- package/dist/runtime/vue/components/auth/WaitlistJoin.css +1 -0
- package/dist/runtime/vue/components/auth/WaitlistJoin.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistJoin.vue +97 -0
- package/dist/runtime/vue/components/auth/WaitlistJoin.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistPlace.css +1 -0
- package/dist/runtime/vue/components/auth/WaitlistPlace.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistPlace.vue +68 -0
- package/dist/runtime/vue/components/auth/WaitlistPlace.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistShare.css +1 -0
- package/dist/runtime/vue/components/auth/WaitlistShare.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistShare.vue +65 -0
- package/dist/runtime/vue/components/auth/WaitlistShare.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistStatus.css +1 -0
- package/dist/runtime/vue/components/auth/WaitlistStatus.d.vue.ts +3 -0
- package/dist/runtime/vue/components/auth/WaitlistStatus.vue +58 -0
- package/dist/runtime/vue/components/auth/WaitlistStatus.vue.d.ts +3 -0
- package/dist/runtime/vue/components/auth/auth-form.d.ts +52 -0
- package/dist/runtime/vue/components/auth/auth-form.js +31 -0
- package/dist/runtime/vue/components/auth/reauthenticate.d.ts +31 -0
- package/dist/runtime/vue/components/auth/reauthenticate.js +10 -0
- package/dist/runtime/vue/components/auth/waitlist-form.d.ts +10 -0
- package/dist/runtime/vue/components/auth/waitlist-form.js +9 -0
- package/dist/runtime/vue/components/billing/BillingCheckoutLink.d.vue.ts +50 -0
- package/dist/runtime/vue/components/billing/BillingCheckoutLink.vue +63 -0
- package/dist/runtime/vue/components/billing/BillingCheckoutLink.vue.d.ts +50 -0
- package/dist/runtime/vue/components/billing/BillingHistory.css +1 -0
- package/dist/runtime/vue/components/billing/BillingHistory.d.vue.ts +51 -0
- package/dist/runtime/vue/components/billing/BillingHistory.vue +98 -0
- package/dist/runtime/vue/components/billing/BillingHistory.vue.d.ts +51 -0
- package/dist/runtime/vue/components/billing/BillingHistoryOrder.css +1 -0
- package/dist/runtime/vue/components/billing/BillingHistoryOrder.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/BillingHistoryOrder.vue +49 -0
- package/dist/runtime/vue/components/billing/BillingHistoryOrder.vue.d.ts +4 -0
- package/dist/runtime/vue/components/billing/BillingPortalLink.d.vue.ts +31 -0
- package/dist/runtime/vue/components/billing/BillingPortalLink.vue +39 -0
- package/dist/runtime/vue/components/billing/BillingPortalLink.vue.d.ts +31 -0
- package/dist/runtime/vue/components/billing/CancelConfirmGroup.d.vue.ts +7 -0
- package/dist/runtime/vue/components/billing/CancelConfirmGroup.vue +47 -0
- package/dist/runtime/vue/components/billing/CancelConfirmGroup.vue.d.ts +7 -0
- package/dist/runtime/vue/components/billing/CancelFlow.css +1 -0
- package/dist/runtime/vue/components/billing/CancelFlow.d.vue.ts +69 -0
- package/dist/runtime/vue/components/billing/CancelFlow.vue +104 -0
- package/dist/runtime/vue/components/billing/CancelFlow.vue.d.ts +69 -0
- package/dist/runtime/vue/components/billing/CancelFlowConfirm.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/CancelFlowConfirm.vue +34 -0
- package/dist/runtime/vue/components/billing/CancelFlowConfirm.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/CancelFlowEnd.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/CancelFlowEnd.vue +42 -0
- package/dist/runtime/vue/components/billing/CancelFlowEnd.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/CancelFlowOffer.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/CancelFlowOffer.vue +29 -0
- package/dist/runtime/vue/components/billing/CancelFlowOffer.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/CancelFlowQuestion.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/CancelFlowQuestion.vue +52 -0
- package/dist/runtime/vue/components/billing/CancelFlowQuestion.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/GiftList.css +1 -0
- package/dist/runtime/vue/components/billing/GiftList.d.vue.ts +8 -0
- package/dist/runtime/vue/components/billing/GiftList.vue +118 -0
- package/dist/runtime/vue/components/billing/GiftList.vue.d.ts +8 -0
- package/dist/runtime/vue/components/billing/GiftReceived.d.vue.ts +28 -0
- package/dist/runtime/vue/components/billing/GiftReceived.vue +62 -0
- package/dist/runtime/vue/components/billing/GiftReceived.vue.d.ts +28 -0
- package/dist/runtime/vue/components/billing/GiftSent.d.vue.ts +27 -0
- package/dist/runtime/vue/components/billing/GiftSent.vue +121 -0
- package/dist/runtime/vue/components/billing/GiftSent.vue.d.ts +27 -0
- package/dist/runtime/vue/components/billing/PricingCancelConfirm.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/PricingCancelConfirm.vue +13 -0
- package/dist/runtime/vue/components/billing/PricingCancelConfirm.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/PricingCurrencySelect.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/PricingCurrencySelect.vue +45 -0
- package/dist/runtime/vue/components/billing/PricingCurrencySelect.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/PricingEmailOptOut.css +1 -0
- package/dist/runtime/vue/components/billing/PricingEmailOptOut.d.vue.ts +10 -0
- package/dist/runtime/vue/components/billing/PricingEmailOptOut.vue +23 -0
- package/dist/runtime/vue/components/billing/PricingEmailOptOut.vue.d.ts +10 -0
- package/dist/runtime/vue/components/billing/PricingPackCard.css +1 -0
- package/dist/runtime/vue/components/billing/PricingPackCard.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/PricingPackCard.vue +78 -0
- package/dist/runtime/vue/components/billing/PricingPackCard.vue.d.ts +4 -0
- package/dist/runtime/vue/components/billing/PricingPeriodSwitch.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/PricingPeriodSwitch.vue +46 -0
- package/dist/runtime/vue/components/billing/PricingPeriodSwitch.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/PricingPlanCard.css +1 -0
- package/dist/runtime/vue/components/billing/PricingPlanCard.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/PricingPlanCard.vue +136 -0
- package/dist/runtime/vue/components/billing/PricingPlanCard.vue.d.ts +4 -0
- package/dist/runtime/vue/components/billing/PricingPromotion.d.vue.ts +7 -0
- package/dist/runtime/vue/components/billing/PricingPromotion.vue +20 -0
- package/dist/runtime/vue/components/billing/PricingPromotion.vue.d.ts +7 -0
- package/dist/runtime/vue/components/billing/PricingTable.css +1 -0
- package/dist/runtime/vue/components/billing/PricingTable.d.vue.ts +145 -0
- package/dist/runtime/vue/components/billing/PricingTable.vue +543 -0
- package/dist/runtime/vue/components/billing/PricingTable.vue.d.ts +145 -0
- package/dist/runtime/vue/components/billing/ReferralCard.css +1 -0
- package/dist/runtime/vue/components/billing/ReferralCard.d.vue.ts +67 -0
- package/dist/runtime/vue/components/billing/ReferralCard.vue +178 -0
- package/dist/runtime/vue/components/billing/ReferralCard.vue.d.ts +67 -0
- package/dist/runtime/vue/components/billing/ReferralLanding.css +1 -0
- package/dist/runtime/vue/components/billing/ReferralLanding.d.vue.ts +3 -0
- package/dist/runtime/vue/components/billing/ReferralLanding.vue +100 -0
- package/dist/runtime/vue/components/billing/ReferralLanding.vue.d.ts +3 -0
- package/dist/runtime/vue/components/billing/UpgradePrompt.css +1 -0
- package/dist/runtime/vue/components/billing/UpgradePrompt.d.vue.ts +45 -0
- package/dist/runtime/vue/components/billing/UpgradePrompt.vue +96 -0
- package/dist/runtime/vue/components/billing/UpgradePrompt.vue.d.ts +45 -0
- package/dist/runtime/vue/components/billing/UsageHistory.css +1 -0
- package/dist/runtime/vue/components/billing/UsageHistory.d.vue.ts +34 -0
- package/dist/runtime/vue/components/billing/UsageHistory.vue +76 -0
- package/dist/runtime/vue/components/billing/UsageHistory.vue.d.ts +34 -0
- package/dist/runtime/vue/components/billing/UsageHistoryEvent.css +1 -0
- package/dist/runtime/vue/components/billing/UsageHistoryEvent.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/UsageHistoryEvent.vue +24 -0
- package/dist/runtime/vue/components/billing/UsageHistoryEvent.vue.d.ts +4 -0
- package/dist/runtime/vue/components/billing/WithdrawalButton.css +1 -0
- package/dist/runtime/vue/components/billing/WithdrawalButton.d.vue.ts +33 -0
- package/dist/runtime/vue/components/billing/WithdrawalButton.vue +93 -0
- package/dist/runtime/vue/components/billing/WithdrawalButton.vue.d.ts +33 -0
- package/dist/runtime/vue/components/billing/billing-history.d.ts +43 -0
- package/dist/runtime/vue/components/billing/billing-history.js +10 -0
- package/dist/runtime/vue/components/billing/billing-links.d.ts +9 -0
- package/dist/runtime/vue/components/billing/billing-links.js +17 -0
- package/dist/runtime/vue/components/billing/cancel-flow.d.ts +102 -0
- package/dist/runtime/vue/components/billing/cancel-flow.js +120 -0
- package/dist/runtime/vue/components/billing/pricing-table.d.ts +195 -0
- package/dist/runtime/vue/components/billing/pricing-table.js +10 -0
- package/dist/runtime/vue/components/billing/upgrade-prompt.d.ts +38 -0
- package/dist/runtime/vue/components/billing/upgrade-prompt.js +30 -0
- package/dist/runtime/vue/components/billing/usage-history.d.ts +28 -0
- package/dist/runtime/vue/components/billing/usage-history.js +8 -0
- package/dist/runtime/vue/components/billing/withdrawal-button.d.ts +44 -0
- package/dist/runtime/vue/components/billing/withdrawal-button.js +71 -0
- package/dist/runtime/vue/components/renamed-billing-links.d.ts +1 -0
- package/dist/runtime/vue/components/renamed-billing-links.js +4 -0
- package/dist/runtime/vue/components/renamed-storage-image.d.ts +1 -0
- package/dist/runtime/vue/components/renamed-storage-image.js +3 -0
- package/dist/runtime/vue/components/shared.css +1 -0
- package/dist/runtime/vue/components/shell/AccessDenied.css +1 -0
- package/dist/runtime/vue/components/shell/AccessDenied.d.vue.ts +54 -0
- package/dist/runtime/vue/components/shell/AccessDenied.vue +158 -0
- package/dist/runtime/vue/components/shell/AccessDenied.vue.d.ts +54 -0
- package/dist/runtime/vue/components/shell/AccessDeniedPage.d.vue.ts +10 -0
- package/dist/runtime/vue/components/shell/AccessDeniedPage.vue +16 -0
- package/dist/runtime/vue/components/shell/AccessDeniedPage.vue.d.ts +10 -0
- package/dist/runtime/vue/components/shell/AccountMenu.css +1 -0
- package/dist/runtime/vue/components/shell/AccountMenu.d.vue.ts +3 -0
- package/dist/runtime/vue/components/shell/AccountMenu.vue +85 -0
- package/dist/runtime/vue/components/shell/AccountMenu.vue.d.ts +3 -0
- package/dist/runtime/vue/components/shell/AiLabel.css +1 -0
- package/dist/runtime/vue/components/shell/AiLabel.d.vue.ts +31 -0
- package/dist/runtime/vue/components/shell/AiLabel.vue +39 -0
- package/dist/runtime/vue/components/shell/AiLabel.vue.d.ts +31 -0
- package/dist/runtime/vue/components/shell/AppShell.css +1 -0
- package/dist/runtime/vue/components/shell/AppShell.d.vue.ts +61 -0
- package/dist/runtime/vue/components/shell/AppShell.vue +90 -0
- package/dist/runtime/vue/components/shell/AppShell.vue.d.ts +61 -0
- package/dist/runtime/vue/components/shell/BackendNotices.d.vue.ts +17 -0
- package/dist/runtime/vue/components/shell/BackendNotices.vue +34 -0
- package/dist/runtime/vue/components/shell/BackendNotices.vue.d.ts +17 -0
- package/dist/runtime/vue/components/shell/ConfirmDialog.css +1 -0
- package/dist/runtime/vue/components/shell/ConfirmDialog.d.vue.ts +11 -0
- package/dist/runtime/vue/components/shell/ConfirmDialog.vue +55 -0
- package/dist/runtime/vue/components/shell/ConfirmDialog.vue.d.ts +11 -0
- package/dist/runtime/vue/components/shell/ConnectionStatus.css +1 -0
- package/dist/runtime/vue/components/shell/ConnectionStatus.d.vue.ts +25 -0
- package/dist/runtime/vue/components/shell/ConnectionStatus.vue +66 -0
- package/dist/runtime/vue/components/shell/ConnectionStatus.vue.d.ts +25 -0
- package/dist/runtime/vue/components/shell/ContactForm.css +1 -0
- package/dist/runtime/vue/components/shell/ContactForm.d.vue.ts +23 -0
- package/dist/runtime/vue/components/shell/ContactForm.vue +108 -0
- package/dist/runtime/vue/components/shell/ContactForm.vue.d.ts +23 -0
- package/dist/runtime/vue/components/shell/ErrorPage.d.vue.ts +8 -0
- package/dist/runtime/vue/components/shell/ErrorPage.vue +21 -0
- package/dist/runtime/vue/components/shell/ErrorPage.vue.d.ts +8 -0
- package/dist/runtime/vue/components/shell/FrameConnectionStatus.d.vue.ts +3 -0
- package/dist/runtime/vue/components/shell/FrameConnectionStatus.vue +10 -0
- package/dist/runtime/vue/components/shell/FrameConnectionStatus.vue.d.ts +3 -0
- package/dist/runtime/vue/components/shell/FrameMain.d.vue.ts +22 -0
- package/dist/runtime/vue/components/shell/FrameMain.vue +51 -0
- package/dist/runtime/vue/components/shell/FrameMain.vue.d.ts +22 -0
- package/dist/runtime/vue/components/shell/Gate.css +1 -0
- package/dist/runtime/vue/components/shell/Gate.d.vue.ts +49 -0
- package/dist/runtime/vue/components/shell/Gate.vue +148 -0
- package/dist/runtime/vue/components/shell/Gate.vue.d.ts +49 -0
- package/dist/runtime/vue/components/shell/GateQuota.d.vue.ts +34 -0
- package/dist/runtime/vue/components/shell/GateQuota.vue +74 -0
- package/dist/runtime/vue/components/shell/GateQuota.vue.d.ts +34 -0
- package/dist/runtime/vue/components/shell/LegalDataMap.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/LegalDataMap.vue +34 -0
- package/dist/runtime/vue/components/shell/LegalDataMap.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/LegalDocument.css +1 -0
- package/dist/runtime/vue/components/shell/LegalDocument.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/LegalDocument.vue +248 -0
- package/dist/runtime/vue/components/shell/LegalDocument.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/LegalProcessors.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/LegalProcessors.vue +49 -0
- package/dist/runtime/vue/components/shell/LegalProcessors.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/LegalStorage.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/LegalStorage.vue +47 -0
- package/dist/runtime/vue/components/shell/LegalStorage.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/ListPager.d.vue.ts +8 -0
- package/dist/runtime/vue/components/shell/ListPager.vue +38 -0
- package/dist/runtime/vue/components/shell/ListPager.vue.d.ts +8 -0
- package/dist/runtime/vue/components/shell/NoticeAnnouncement.css +1 -0
- package/dist/runtime/vue/components/shell/NoticeAnnouncement.d.vue.ts +8 -0
- package/dist/runtime/vue/components/shell/NoticeAnnouncement.vue +108 -0
- package/dist/runtime/vue/components/shell/NoticeAnnouncement.vue.d.ts +8 -0
- package/dist/runtime/vue/components/shell/NoticeDeletion.css +1 -0
- package/dist/runtime/vue/components/shell/NoticeDeletion.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/NoticeDeletion.vue +68 -0
- package/dist/runtime/vue/components/shell/NoticeDeletion.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/NoticeGift.css +1 -0
- package/dist/runtime/vue/components/shell/NoticeGift.d.vue.ts +14 -0
- package/dist/runtime/vue/components/shell/NoticeGift.vue +138 -0
- package/dist/runtime/vue/components/shell/NoticeGift.vue.d.ts +14 -0
- package/dist/runtime/vue/components/shell/NoticeImpersonation.css +1 -0
- package/dist/runtime/vue/components/shell/NoticeImpersonation.d.vue.ts +14 -0
- package/dist/runtime/vue/components/shell/NoticeImpersonation.vue +90 -0
- package/dist/runtime/vue/components/shell/NoticeImpersonation.vue.d.ts +14 -0
- package/dist/runtime/vue/components/shell/NoticeLowCredits.css +1 -0
- package/dist/runtime/vue/components/shell/NoticeLowCredits.d.vue.ts +50 -0
- package/dist/runtime/vue/components/shell/NoticeLowCredits.vue +170 -0
- package/dist/runtime/vue/components/shell/NoticeLowCredits.vue.d.ts +50 -0
- package/dist/runtime/vue/components/shell/NoticeMaintenance.css +1 -0
- package/dist/runtime/vue/components/shell/NoticeMaintenance.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/NoticeMaintenance.vue +35 -0
- package/dist/runtime/vue/components/shell/NoticeMaintenance.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/NoticePastDue.css +1 -0
- package/dist/runtime/vue/components/shell/NoticePastDue.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/NoticePastDue.vue +64 -0
- package/dist/runtime/vue/components/shell/NoticePastDue.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/NotificationInbox.css +1 -0
- package/dist/runtime/vue/components/shell/NotificationInbox.d.vue.ts +18 -0
- package/dist/runtime/vue/components/shell/NotificationInbox.vue +78 -0
- package/dist/runtime/vue/components/shell/NotificationInbox.vue.d.ts +18 -0
- package/dist/runtime/vue/components/shell/NotificationInboxBell.d.vue.ts +3 -0
- package/dist/runtime/vue/components/shell/NotificationInboxBell.vue +37 -0
- package/dist/runtime/vue/components/shell/NotificationInboxBell.vue.d.ts +3 -0
- package/dist/runtime/vue/components/shell/NotificationInboxItem.d.vue.ts +4 -0
- package/dist/runtime/vue/components/shell/NotificationInboxItem.vue +48 -0
- package/dist/runtime/vue/components/shell/NotificationInboxItem.vue.d.ts +4 -0
- package/dist/runtime/vue/components/shell/PageFrame.d.vue.ts +35 -0
- package/dist/runtime/vue/components/shell/PageFrame.vue +79 -0
- package/dist/runtime/vue/components/shell/PageFrame.vue.d.ts +35 -0
- package/dist/runtime/vue/components/shell/PagedList.d.vue.ts +46 -0
- package/dist/runtime/vue/components/shell/PagedList.vue +98 -0
- package/dist/runtime/vue/components/shell/PagedList.vue.d.ts +46 -0
- package/dist/runtime/vue/components/shell/ReportAppeal.d.vue.ts +7 -0
- package/dist/runtime/vue/components/shell/ReportAppeal.vue +90 -0
- package/dist/runtime/vue/components/shell/ReportAppeal.vue.d.ts +7 -0
- package/dist/runtime/vue/components/shell/ReportNotice.css +1 -0
- package/dist/runtime/vue/components/shell/ReportNotice.d.vue.ts +3 -0
- package/dist/runtime/vue/components/shell/ReportNotice.vue +158 -0
- package/dist/runtime/vue/components/shell/ReportNotice.vue.d.ts +3 -0
- package/dist/runtime/vue/components/shell/UploadField.css +1 -0
- package/dist/runtime/vue/components/shell/UploadField.d.vue.ts +29 -0
- package/dist/runtime/vue/components/shell/UploadField.vue +74 -0
- package/dist/runtime/vue/components/shell/UploadField.vue.d.ts +29 -0
- package/dist/runtime/vue/components/shell/WorkspaceSwitcher.css +1 -0
- package/dist/runtime/vue/components/shell/WorkspaceSwitcher.d.vue.ts +3 -0
- package/dist/runtime/vue/components/shell/WorkspaceSwitcher.vue +126 -0
- package/dist/runtime/vue/components/shell/WorkspaceSwitcher.vue.d.ts +3 -0
- package/dist/runtime/vue/components/shell/access-denied.d.ts +27 -0
- package/dist/runtime/vue/components/shell/access-denied.js +1 -0
- package/dist/runtime/vue/components/shell/ai-label.d.ts +5 -0
- package/dist/runtime/vue/components/shell/ai-label.js +0 -0
- package/dist/runtime/vue/components/shell/app-shell.d.ts +11 -0
- package/dist/runtime/vue/components/shell/app-shell.js +1 -0
- package/dist/runtime/vue/components/shell/connection-status.d.ts +24 -0
- package/dist/runtime/vue/components/shell/connection-status.js +31 -0
- package/dist/runtime/vue/components/shell/contact-form.d.ts +15 -0
- package/dist/runtime/vue/components/shell/contact-form.js +0 -0
- package/dist/runtime/vue/components/shell/gate.d.ts +76 -0
- package/dist/runtime/vue/components/shell/gate.js +0 -0
- package/dist/runtime/vue/components/shell/legal.d.ts +24 -0
- package/dist/runtime/vue/components/shell/legal.js +69 -0
- package/dist/runtime/vue/components/shell/notices.d.ts +99 -0
- package/dist/runtime/vue/components/shell/notices.js +6 -0
- package/dist/runtime/vue/components/shell/notification-inbox.d.ts +11 -0
- package/dist/runtime/vue/components/shell/notification-inbox.js +0 -0
- package/dist/runtime/vue/components/shell/report-form.d.ts +1 -0
- package/dist/runtime/vue/components/shell/report-form.js +117 -0
- package/dist/runtime/vue/components/shell/upload-field.d.ts +16 -0
- package/dist/runtime/vue/components/shell/upload-field.js +0 -0
- package/dist/runtime/vue/components/tokens.css +1 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitation.css +1 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitation.d.vue.ts +52 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitation.vue +156 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitation.vue.d.ts +52 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitationActions.css +1 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitationActions.d.vue.ts +4 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitationActions.vue +30 -0
- package/dist/runtime/vue/components/workspaces/AcceptInvitationActions.vue.d.ts +4 -0
- package/dist/runtime/vue/components/workspaces/AuditLog.css +1 -0
- package/dist/runtime/vue/components/workspaces/AuditLog.d.vue.ts +185 -0
- package/dist/runtime/vue/components/workspaces/AuditLog.vue +77 -0
- package/dist/runtime/vue/components/workspaces/AuditLog.vue.d.ts +185 -0
- package/dist/runtime/vue/components/workspaces/AuditLogEvent.css +1 -0
- package/dist/runtime/vue/components/workspaces/AuditLogEvent.d.vue.ts +4 -0
- package/dist/runtime/vue/components/workspaces/AuditLogEvent.vue +30 -0
- package/dist/runtime/vue/components/workspaces/AuditLogEvent.vue.d.ts +4 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.css +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.d.vue.ts +4 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.vue +236 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.vue.d.ts +4 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceCredits.css +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceCredits.d.vue.ts +4 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceCredits.vue +56 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceCredits.vue.d.ts +4 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceList.css +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceList.d.vue.ts +4 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceList.vue +92 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceList.vue.d.ts +4 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.css +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.d.vue.ts +117 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue +216 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue.d.ts +117 -0
- package/dist/runtime/vue/components/workspaces/accept-invitation.d.ts +21 -0
- package/dist/runtime/vue/components/workspaces/accept-invitation.js +10 -0
- package/dist/runtime/vue/components/workspaces/audit-log.d.ts +29 -0
- package/dist/runtime/vue/components/workspaces/audit-log.js +33 -0
- package/dist/runtime/vue/components/workspaces/workspace-billing.d.ts +77 -0
- package/dist/runtime/vue/components/workspaces/workspace-billing.js +74 -0
- package/dist/runtime/vue/components/workspaces/workspace-settings.d.ts +81 -0
- package/dist/runtime/vue/components/workspaces/workspace-settings.js +10 -0
- package/dist/runtime/vue/composables/base-aliases.d.ts +8 -0
- package/dist/runtime/vue/composables/base-aliases.js +2 -0
- package/dist/runtime/vue/composables/billing-format.d.ts +14 -0
- package/dist/runtime/vue/composables/billing-format.js +40 -0
- package/dist/runtime/vue/composables/billing-provider.d.ts +38 -0
- package/dist/runtime/vue/composables/billing-provider.js +160 -0
- package/dist/runtime/vue/composables/use-access.d.ts +154 -0
- package/dist/runtime/vue/composables/use-access.js +100 -0
- package/dist/runtime/vue/composables/use-account.d.ts +120 -0
- package/dist/runtime/vue/composables/use-account.js +60 -0
- package/dist/runtime/vue/composables/use-activation.d.ts +89 -0
- package/dist/runtime/vue/composables/use-activation.js +74 -0
- package/dist/runtime/vue/composables/use-admin.d.ts +149 -0
- package/dist/runtime/vue/composables/use-admin.js +97 -0
- package/dist/runtime/vue/composables/use-ai-costs.d.ts +42 -0
- package/dist/runtime/vue/composables/use-ai-costs.js +38 -0
- package/dist/runtime/vue/composables/use-ai-label.d.ts +62 -0
- package/dist/runtime/vue/composables/use-ai-label.js +47 -0
- package/dist/runtime/vue/composables/use-ai-stream.d.ts +71 -0
- package/dist/runtime/vue/composables/use-ai-stream.js +126 -0
- package/dist/runtime/vue/composables/use-announcements.d.ts +110 -0
- package/dist/runtime/vue/composables/use-announcements.js +78 -0
- package/dist/runtime/vue/composables/use-app-shell.d.ts +131 -0
- package/dist/runtime/vue/composables/use-app-shell.js +206 -0
- package/dist/runtime/vue/composables/use-audit-log.d.ts +90 -0
- package/dist/runtime/vue/composables/use-audit-log.js +44 -0
- package/dist/runtime/vue/composables/use-auth.d.ts +71 -0
- package/dist/runtime/vue/composables/use-auth.js +18 -0
- package/dist/runtime/vue/composables/use-backend-config.d.ts +8 -0
- package/dist/runtime/vue/composables/use-backend-config.js +17 -0
- package/dist/runtime/vue/composables/use-backend-page-path.d.ts +18 -0
- package/dist/runtime/vue/composables/use-backend-page-path.js +33 -0
- package/dist/runtime/vue/composables/use-billing.d.ts +795 -0
- package/dist/runtime/vue/composables/use-billing.js +144 -0
- package/dist/runtime/vue/composables/use-campaign.d.ts +40 -0
- package/dist/runtime/vue/composables/use-campaign.js +31 -0
- package/dist/runtime/vue/composables/use-chat.d.ts +72 -0
- package/dist/runtime/vue/composables/use-chat.js +69 -0
- package/dist/runtime/vue/composables/use-consents.d.ts +144 -0
- package/dist/runtime/vue/composables/use-consents.js +109 -0
- package/dist/runtime/vue/composables/use-contact-form.d.ts +104 -0
- package/dist/runtime/vue/composables/use-contact-form.js +141 -0
- package/dist/runtime/vue/composables/use-credits.d.ts +95 -0
- package/dist/runtime/vue/composables/use-credits.js +68 -0
- package/dist/runtime/vue/composables/use-deletion-notice.d.ts +45 -0
- package/dist/runtime/vue/composables/use-deletion-notice.js +38 -0
- package/dist/runtime/vue/composables/use-email-change.d.ts +57 -0
- package/dist/runtime/vue/composables/use-email-change.js +71 -0
- package/dist/runtime/vue/composables/use-email-link.d.ts +26 -0
- package/dist/runtime/vue/composables/use-email-link.js +62 -0
- package/dist/runtime/vue/composables/use-email-preferences.d.ts +90 -0
- package/dist/runtime/vue/composables/use-email-preferences.js +40 -0
- package/dist/runtime/vue/composables/use-email-status.d.ts +59 -0
- package/dist/runtime/vue/composables/use-email-status.js +20 -0
- package/dist/runtime/vue/composables/use-experiment.d.ts +75 -0
- package/dist/runtime/vue/composables/use-experiment.js +60 -0
- package/dist/runtime/vue/composables/use-features.d.ts +74 -0
- package/dist/runtime/vue/composables/use-features.js +31 -0
- package/dist/runtime/vue/composables/use-flags.d.ts +98 -0
- package/dist/runtime/vue/composables/use-flags.js +50 -0
- package/dist/runtime/vue/composables/use-funnel.d.ts +32 -0
- package/dist/runtime/vue/composables/use-funnel.js +20 -0
- package/dist/runtime/vue/composables/use-gift-list.d.ts +60 -0
- package/dist/runtime/vue/composables/use-gift-list.js +104 -0
- package/dist/runtime/vue/composables/use-gifts.d.ts +90 -0
- package/dist/runtime/vue/composables/use-gifts.js +68 -0
- package/dist/runtime/vue/composables/use-how-did-you-hear.d.ts +46 -0
- package/dist/runtime/vue/composables/use-how-did-you-hear.js +51 -0
- package/dist/runtime/vue/composables/use-human-check.d.ts +57 -0
- package/dist/runtime/vue/composables/use-human-check.js +14 -0
- package/dist/runtime/vue/composables/use-inbox-admin.d.ts +43 -0
- package/dist/runtime/vue/composables/use-inbox-admin.js +31 -0
- package/dist/runtime/vue/composables/use-job-queue.d.ts +108 -0
- package/dist/runtime/vue/composables/use-job-queue.js +47 -0
- package/dist/runtime/vue/composables/use-job.d.ts +68 -0
- package/dist/runtime/vue/composables/use-job.js +30 -0
- package/dist/runtime/vue/composables/use-keep-account.d.ts +20 -0
- package/dist/runtime/vue/composables/use-keep-account.js +38 -0
- package/dist/runtime/vue/composables/use-labels.d.ts +67 -0
- package/dist/runtime/vue/composables/use-labels.js +114 -0
- package/dist/runtime/vue/composables/use-login-flow.d.ts +167 -0
- package/dist/runtime/vue/composables/use-login-flow.js +284 -0
- package/dist/runtime/vue/composables/use-notification-inbox.d.ts +81 -0
- package/dist/runtime/vue/composables/use-notification-inbox.js +96 -0
- package/dist/runtime/vue/composables/use-notifications.d.ts +111 -0
- package/dist/runtime/vue/composables/use-notifications.js +108 -0
- package/dist/runtime/vue/composables/use-onboarding.d.ts +87 -0
- package/dist/runtime/vue/composables/use-onboarding.js +86 -0
- package/dist/runtime/vue/composables/use-orders.d.ts +83 -0
- package/dist/runtime/vue/composables/use-orders.js +44 -0
- package/dist/runtime/vue/composables/use-passkeys.d.ts +76 -0
- package/dist/runtime/vue/composables/use-passkeys.js +66 -0
- package/dist/runtime/vue/composables/use-pricing.d.ts +136 -0
- package/dist/runtime/vue/composables/use-pricing.js +135 -0
- package/dist/runtime/vue/composables/use-push-subscription.d.ts +67 -0
- package/dist/runtime/vue/composables/use-push-subscription.js +85 -0
- package/dist/runtime/vue/composables/use-reauthentication.d.ts +105 -0
- package/dist/runtime/vue/composables/use-reauthentication.js +168 -0
- package/dist/runtime/vue/composables/use-referral-admin.d.ts +30 -0
- package/dist/runtime/vue/composables/use-referral-admin.js +30 -0
- package/dist/runtime/vue/composables/use-referral-invite.d.ts +29 -0
- package/dist/runtime/vue/composables/use-referral-invite.js +61 -0
- package/dist/runtime/vue/composables/use-referrals.d.ts +87 -0
- package/dist/runtime/vue/composables/use-referrals.js +109 -0
- package/dist/runtime/vue/composables/use-return-path.d.ts +21 -0
- package/dist/runtime/vue/composables/use-return-path.js +8 -0
- package/dist/runtime/vue/composables/use-revenue.d.ts +45 -0
- package/dist/runtime/vue/composables/use-revenue.js +42 -0
- package/dist/runtime/vue/composables/use-sandbox-inbox.d.ts +64 -0
- package/dist/runtime/vue/composables/use-sandbox-inbox.js +55 -0
- package/dist/runtime/vue/composables/use-search.d.ts +39 -0
- package/dist/runtime/vue/composables/use-search.js +30 -0
- package/dist/runtime/vue/composables/use-sessions.d.ts +79 -0
- package/dist/runtime/vue/composables/use-sessions.js +55 -0
- package/dist/runtime/vue/composables/use-share-link.d.ts +59 -0
- package/dist/runtime/vue/composables/use-share-link.js +51 -0
- package/dist/runtime/vue/composables/use-suppressions-admin.d.ts +38 -0
- package/dist/runtime/vue/composables/use-suppressions-admin.js +32 -0
- package/dist/runtime/vue/composables/use-upload-field.d.ts +85 -0
- package/dist/runtime/vue/composables/use-upload-field.js +129 -0
- package/dist/runtime/vue/composables/use-usage.d.ts +68 -0
- package/dist/runtime/vue/composables/use-usage.js +44 -0
- package/dist/runtime/vue/composables/use-waitlist-admin.d.ts +56 -0
- package/dist/runtime/vue/composables/use-waitlist-admin.js +43 -0
- package/dist/runtime/vue/composables/use-waitlist-step.d.ts +1 -0
- package/dist/runtime/vue/composables/use-waitlist-step.js +11 -0
- package/dist/runtime/vue/composables/use-waitlist.d.ts +184 -0
- package/dist/runtime/vue/composables/use-waitlist.js +178 -0
- package/dist/runtime/vue/composables/use-webhook-log.d.ts +34 -0
- package/dist/runtime/vue/composables/use-webhook-log.js +30 -0
- package/dist/runtime/vue/composables/use-workflow.d.ts +37 -0
- package/dist/runtime/vue/composables/use-workflow.js +10 -0
- package/dist/runtime/vue/composables/use-workspace.d.ts +149 -0
- package/dist/runtime/vue/composables/use-workspace.js +126 -0
- package/dist/runtime/vue/middleware/page-access.d.ts +13 -0
- package/dist/runtime/vue/middleware/page-access.js +18 -0
- package/dist/runtime/vue/organization-client.d.ts +15 -0
- package/dist/runtime/vue/organization-client.js +65 -0
- package/dist/runtime/vue/pages/accept-invitation.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/accept-invitation.vue +16 -0
- package/dist/runtime/vue/pages/accept-invitation.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/accessibility.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/accessibility.vue +17 -0
- package/dist/runtime/vue/pages/accessibility.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/admin.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/admin.vue +45 -0
- package/dist/runtime/vue/pages/admin.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/gifts.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/gifts.vue +17 -0
- package/dist/runtime/vue/pages/gifts.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/invite.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/invite.vue +18 -0
- package/dist/runtime/vue/pages/invite.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/keep-account.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/keep-account.vue +22 -0
- package/dist/runtime/vue/pages/keep-account.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/login.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/login.vue +44 -0
- package/dist/runtime/vue/pages/login.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/pricing.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/pricing.vue +39 -0
- package/dist/runtime/vue/pages/pricing.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/privacy.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/privacy.vue +17 -0
- package/dist/runtime/vue/pages/privacy.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/profile.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/profile.vue +16 -0
- package/dist/runtime/vue/pages/profile.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/referral.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/referral.vue +18 -0
- package/dist/runtime/vue/pages/referral.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/report.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/report.vue +29 -0
- package/dist/runtime/vue/pages/report.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/security.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/security.vue +22 -0
- package/dist/runtime/vue/pages/security.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/settings.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/settings.vue +26 -0
- package/dist/runtime/vue/pages/settings.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/subprocessors.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/subprocessors.vue +17 -0
- package/dist/runtime/vue/pages/subprocessors.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/terms.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/terms.vue +17 -0
- package/dist/runtime/vue/pages/terms.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/unsubscribe.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/unsubscribe.vue +28 -0
- package/dist/runtime/vue/pages/unsubscribe.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/waitlist.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/waitlist.vue +18 -0
- package/dist/runtime/vue/pages/waitlist.vue.d.ts +3 -0
- package/dist/runtime/vue/pages/welcome.d.vue.ts +3 -0
- package/dist/runtime/vue/pages/welcome.vue +20 -0
- package/dist/runtime/vue/pages/welcome.vue.d.ts +3 -0
- package/dist/runtime/vue/parts.d.ts +204 -0
- package/dist/runtime/vue/parts.js +0 -0
- package/dist/runtime/vue/passkey-client.d.ts +65 -0
- package/dist/runtime/vue/passkey-client.js +119 -0
- package/dist/runtime/vue/plugins/checkout-return.d.ts +15 -0
- package/dist/runtime/vue/plugins/checkout-return.js +21 -0
- package/dist/runtime/vue/plugins/email-presence.d.ts +12 -0
- package/dist/runtime/vue/plugins/email-presence.js +14 -0
- package/dist/runtime/vue/plugins/first-touch.d.ts +9 -0
- package/dist/runtime/vue/plugins/first-touch.js +17 -0
- package/dist/runtime/vue/plugins/locale-sync.d.ts +10 -0
- package/dist/runtime/vue/plugins/locale-sync.js +20 -0
- package/dist/runtime/vue/plugins/monitoring-log.client.d.ts +10 -0
- package/dist/runtime/vue/plugins/monitoring-log.client.js +26 -0
- package/dist/runtime/vue/plugins/noindex.d.ts +13 -0
- package/dist/runtime/vue/plugins/noindex.js +11 -0
- package/dist/runtime/vue/plugins/onboarding-redirect.d.ts +14 -0
- package/dist/runtime/vue/plugins/onboarding-redirect.js +23 -0
- package/dist/runtime/vue/plugins/passkey-ceremony.d.ts +9 -0
- package/dist/runtime/vue/plugins/passkey-ceremony.js +8 -0
- package/dist/runtime/vue/plugins/protection.client.d.ts +9 -0
- package/dist/runtime/vue/plugins/protection.client.js +22 -0
- package/dist/runtime/vue/plugins/session-ended.d.ts +14 -0
- package/dist/runtime/vue/plugins/session-ended.js +22 -0
- package/dist/runtime/vue/plugins/trusted-types.client.d.ts +8 -0
- package/dist/runtime/vue/plugins/trusted-types.client.js +9 -0
- package/dist/runtime/vue/protection/challenge.d.ts +9 -0
- package/dist/runtime/vue/protection/challenge.js +93 -0
- package/dist/runtime/vue/protection/state.d.ts +172 -0
- package/dist/runtime/vue/protection/state.js +74 -0
- package/dist/runtime/vue/trusted-types.d.ts +27 -0
- package/dist/runtime/vue/trusted-types.js +46 -0
- package/dist/runtime/vue/utils/access-rules.d.ts +45 -0
- package/dist/runtime/vue/utils/access-rules.js +2 -0
- package/dist/runtime/vue/utils/action-state.d.ts +65 -0
- package/dist/runtime/vue/utils/action-state.js +46 -0
- package/dist/runtime/vue/utils/active-locale.d.ts +30 -0
- package/dist/runtime/vue/utils/active-locale.js +28 -0
- package/dist/runtime/vue/utils/admin-changes.d.ts +1 -0
- package/dist/runtime/vue/utils/admin-changes.js +41 -0
- package/dist/runtime/vue/utils/auth-read.d.ts +15 -0
- package/dist/runtime/vue/utils/auth-read.js +8 -0
- package/dist/runtime/vue/utils/auth-result.d.ts +8 -0
- package/dist/runtime/vue/utils/auth-result.js +7 -0
- package/dist/runtime/vue/utils/auth-session.d.ts +48 -0
- package/dist/runtime/vue/utils/auth-session.js +122 -0
- package/dist/runtime/vue/utils/auth-steps.d.ts +30 -0
- package/dist/runtime/vue/utils/auth-steps.js +44 -0
- package/dist/runtime/vue/utils/backend-error.d.ts +22 -0
- package/dist/runtime/vue/utils/backend-error.js +38 -0
- package/dist/runtime/vue/utils/billing-access.d.ts +33 -0
- package/dist/runtime/vue/utils/billing-access.js +20 -0
- package/dist/runtime/vue/utils/cancel-confirm.d.ts +38 -0
- package/dist/runtime/vue/utils/cancel-confirm.js +20 -0
- package/dist/runtime/vue/utils/challenge-caption.d.ts +2 -0
- package/dist/runtime/vue/utils/challenge-caption.js +2 -0
- package/dist/runtime/vue/utils/checkout-return.d.ts +40 -0
- package/dist/runtime/vue/utils/checkout-return.js +40 -0
- package/dist/runtime/vue/utils/confirmation.d.ts +19 -0
- package/dist/runtime/vue/utils/confirmation.js +23 -0
- package/dist/runtime/vue/utils/currency.d.ts +4 -0
- package/dist/runtime/vue/utils/currency.js +60 -0
- package/dist/runtime/vue/utils/cursor-pages.d.ts +37 -0
- package/dist/runtime/vue/utils/cursor-pages.js +42 -0
- package/dist/runtime/vue/utils/email-presence.d.ts +1 -0
- package/dist/runtime/vue/utils/email-presence.js +31 -0
- package/dist/runtime/vue/utils/every-page.d.ts +10 -0
- package/dist/runtime/vue/utils/every-page.js +6 -0
- package/dist/runtime/vue/utils/first-touch.d.ts +1 -0
- package/dist/runtime/vue/utils/first-touch.js +22 -0
- package/dist/runtime/vue/utils/focus-return.d.ts +41 -0
- package/dist/runtime/vue/utils/focus-return.js +60 -0
- package/dist/runtime/vue/utils/frame-notices.d.ts +8 -0
- package/dist/runtime/vue/utils/frame-notices.js +10 -0
- package/dist/runtime/vue/utils/hydrated.d.ts +12 -0
- package/dist/runtime/vue/utils/hydrated.js +11 -0
- package/dist/runtime/vue/utils/intl.d.ts +6 -0
- package/dist/runtime/vue/utils/intl.js +9 -0
- package/dist/runtime/vue/utils/kept-invite.d.ts +12 -0
- package/dist/runtime/vue/utils/kept-invite.js +37 -0
- package/dist/runtime/vue/utils/label-fallback.d.ts +3 -0
- package/dist/runtime/vue/utils/label-fallback.js +2 -0
- package/dist/runtime/vue/utils/label-registry.d.ts +1 -0
- package/dist/runtime/vue/utils/label-registry.js +15 -0
- package/dist/runtime/vue/utils/last-sign-in.d.ts +23 -0
- package/dist/runtime/vue/utils/last-sign-in.js +45 -0
- package/dist/runtime/vue/utils/live-query.d.ts +36 -0
- package/dist/runtime/vue/utils/live-query.js +37 -0
- package/dist/runtime/vue/utils/local-sign-out.d.ts +19 -0
- package/dist/runtime/vue/utils/local-sign-out.js +18 -0
- package/dist/runtime/vue/utils/login-bindings.d.ts +52 -0
- package/dist/runtime/vue/utils/login-bindings.js +78 -0
- package/dist/runtime/vue/utils/meter-unit.d.ts +14 -0
- package/dist/runtime/vue/utils/meter-unit.js +18 -0
- package/dist/runtime/vue/utils/namespace.d.ts +9 -0
- package/dist/runtime/vue/utils/namespace.js +22 -0
- package/dist/runtime/vue/utils/onboarding-redirect.d.ts +25 -0
- package/dist/runtime/vue/utils/onboarding-redirect.js +49 -0
- package/dist/runtime/vue/utils/open-url.d.ts +13 -0
- package/dist/runtime/vue/utils/open-url.js +12 -0
- package/dist/runtime/vue/utils/page-access.d.ts +64 -0
- package/dist/runtime/vue/utils/page-access.js +56 -0
- package/dist/runtime/vue/utils/page-guard.d.ts +30 -0
- package/dist/runtime/vue/utils/page-guard.js +84 -0
- package/dist/runtime/vue/utils/page-rules.d.ts +34 -0
- package/dist/runtime/vue/utils/page-rules.js +35 -0
- package/dist/runtime/vue/utils/page-turns.d.ts +36 -0
- package/dist/runtime/vue/utils/page-turns.js +24 -0
- package/dist/runtime/vue/utils/passkey-signals.d.ts +32 -0
- package/dist/runtime/vue/utils/passkey-signals.js +58 -0
- package/dist/runtime/vue/utils/pricing-bindings.d.ts +51 -0
- package/dist/runtime/vue/utils/pricing-bindings.js +39 -0
- package/dist/runtime/vue/utils/pricing-seo.d.ts +1 -0
- package/dist/runtime/vue/utils/pricing-seo.js +26 -0
- package/dist/runtime/vue/utils/push-device.d.ts +55 -0
- package/dist/runtime/vue/utils/push-device.js +77 -0
- package/dist/runtime/vue/utils/reader.d.ts +1 -0
- package/dist/runtime/vue/utils/reader.js +9 -0
- package/dist/runtime/vue/utils/renamed-component.d.ts +1 -0
- package/dist/runtime/vue/utils/renamed-component.js +17 -0
- package/dist/runtime/vue/utils/roles.d.ts +4 -0
- package/dist/runtime/vue/utils/roles.js +11 -0
- package/dist/runtime/vue/utils/sandbox-code.d.ts +11 -0
- package/dist/runtime/vue/utils/sandbox-code.js +16 -0
- package/dist/runtime/vue/utils/session-end.d.ts +49 -0
- package/dist/runtime/vue/utils/session-end.js +41 -0
- package/dist/runtime/vue/utils/settings-message.d.ts +21 -0
- package/dist/runtime/vue/utils/settings-message.js +6 -0
- package/dist/runtime/vue/utils/shown-first.d.ts +1 -0
- package/dist/runtime/vue/utils/shown-first.js +23 -0
- package/dist/runtime/vue/utils/slug.d.ts +1 -0
- package/dist/runtime/vue/utils/slug.js +7 -0
- package/dist/runtime/vue/utils/storage-choice.d.ts +23 -0
- package/dist/runtime/vue/utils/storage-choice.js +43 -0
- package/dist/runtime/vue/utils/upgrade-offer.d.ts +25 -0
- package/dist/runtime/vue/utils/upgrade-offer.js +18 -0
- package/dist/runtime/vue/utils/vnodes.d.ts +1 -0
- package/dist/runtime/vue/utils/vnodes.js +15 -0
- package/dist/shared/nuxt-backend.2m535CLS.mjs +171 -0
- package/dist/shared/nuxt-backend.C62dpRH3.mjs +27 -0
- package/dist/shared/nuxt-backend.DXEf0rrv.mjs +571 -0
- package/dist/shared/nuxt-backend.Dm1NkY7v.mjs +1154 -0
- package/dist/shared/nuxt-backend.KEzfHO2K.mjs +3562 -0
- package/dist/shared/nuxt-backend.ikObmtHs.mjs +143 -0
- package/dist/types.d.ts +8 -2
- package/package.json +375 -90
- package/skills/nuxt-backend/SKILL.md +142 -0
- package/skills/nuxt-backend/references/api.md +769 -0
- package/skills/nuxt-backend/references/install.md +188 -0
- package/skills/nuxt-backend/references/renames.json +2129 -0
- package/skills/nuxt-backend/references/surface.json +1436 -0
- package/skills/nuxt-backend-ai/SKILL.md +79 -0
- package/skills/nuxt-backend-ai/references/api.md +56 -0
- package/skills/nuxt-backend-auth/SKILL.md +169 -0
- package/skills/nuxt-backend-auth/references/api.md +159 -0
- package/skills/nuxt-backend-billing/SKILL.md +181 -0
- package/skills/nuxt-backend-billing/references/api.md +114 -0
- package/skills/nuxt-backend-data/SKILL.md +91 -0
- package/skills/nuxt-backend-data/references/api.md +79 -0
- package/skills/nuxt-backend-email/SKILL.md +115 -0
- package/skills/nuxt-backend-email/references/api.md +127 -0
- package/skills/nuxt-backend-growth/SKILL.md +47 -0
- package/skills/nuxt-backend-growth/references/api.md +38 -0
- package/skills/nuxt-backend-ship/SKILL.md +187 -0
- package/skills/nuxt-backend-ship/references/api.md +215 -0
- package/skills/nuxt-backend-ui/SKILL.md +84 -0
- package/skills/nuxt-backend-ui/references/api.md +39 -0
- package/skills/nuxt-backend-upgrade/SKILL.md +73 -0
- package/skills/nuxt-backend-upgrade/references/api.md +23 -0
- package/skills/nuxt-backend-upgrade/references/upgrade.md +512 -0
- package/src/convex/access-tickets.ts +188 -0
- package/src/convex/account-data.ts +496 -0
- package/src/convex/activation-rules.ts +149 -0
- package/src/convex/announcements.ts +31 -0
- package/src/convex/app.ts +138 -0
- package/src/convex/auth-secrets.ts +124 -0
- package/src/convex/auth.config.ts +30 -3
- package/src/convex/bytes.ts +10 -0
- package/src/convex/c2pa/cbor.ts +88 -0
- package/src/convex/c2pa/der.ts +108 -0
- package/src/convex/c2pa/formats.ts +309 -0
- package/src/convex/c2pa/jumbf.ts +46 -0
- package/src/convex/c2pa/manifest.ts +195 -0
- package/src/convex/catalog.ts +771 -0
- package/src/convex/client/age-gate.ts +129 -0
- package/src/convex/client/audit.ts +332 -0
- package/src/convex/client/auth-types.ts +387 -0
- package/src/convex/client/better-auth-options.ts +498 -0
- package/src/convex/client/client-address.ts +37 -0
- package/src/convex/client/code-binding.ts +107 -0
- package/src/convex/client/codes.ts +48 -0
- package/src/convex/client/component.ts +181 -0
- package/src/convex/client/devices.ts +205 -0
- package/src/convex/client/email.ts +80 -0
- package/src/convex/client/entities.ts +117 -0
- package/src/convex/client/guards.ts +956 -0
- package/src/convex/client/guest-claim.ts +63 -0
- package/src/convex/client/hooks.ts +79 -0
- package/src/convex/client/identity.ts +8 -0
- package/src/convex/client/index.ts +268 -276
- package/src/convex/client/launch-gate.ts +223 -0
- package/src/convex/client/notices.ts +39 -0
- package/src/convex/client/passkey-only.ts +398 -0
- package/src/convex/client/plugins.ts +211 -0
- package/src/convex/client/refusals.ts +39 -0
- package/src/convex/client/request-origin.ts +109 -0
- package/src/convex/client/request-session.ts +73 -0
- package/src/convex/client/runtime.ts +95 -0
- package/src/convex/client/secret-rotation.ts +113 -0
- package/src/convex/client/sessions.ts +55 -0
- package/src/convex/client/workspaces.ts +150 -0
- package/src/convex/components/backend/_generated/api.ts +132 -0
- package/src/convex/components/backend/_generated/component.ts +5839 -0
- package/src/convex/components/backend/_generated/server.ts +175 -0
- package/src/convex/components/backend/access.ts +441 -0
- package/src/convex/components/backend/account.ts +1069 -0
- package/src/convex/components/backend/adapter.ts +64 -0
- package/src/convex/components/backend/ai.ts +378 -0
- package/src/convex/components/backend/alerts.ts +208 -0
- package/src/convex/components/backend/announcements.ts +275 -0
- package/src/convex/components/backend/audit.ts +341 -0
- package/src/convex/components/backend/billing.ts +756 -0
- package/src/convex/components/backend/consents.ts +168 -0
- package/src/convex/components/backend/convex.config.ts +75 -0
- package/src/convex/components/backend/costs.ts +286 -0
- package/src/convex/components/backend/crons.ts +26 -0
- package/src/convex/components/backend/devices.ts +198 -0
- package/src/convex/components/backend/email.ts +660 -0
- package/src/convex/components/backend/erasures.ts +72 -0
- package/src/convex/components/backend/flags.ts +85 -0
- package/src/convex/components/backend/funnel.ts +596 -0
- package/src/convex/components/backend/gifts.ts +734 -0
- package/src/convex/components/backend/inbound.ts +391 -0
- package/src/convex/components/backend/jobs.ts +944 -0
- package/src/convex/components/backend/keys.ts +50 -0
- package/src/convex/components/backend/lifecycle.ts +355 -0
- package/src/convex/components/backend/lifecycleActivity.ts +29 -0
- package/src/convex/components/backend/maintenance.ts +495 -0
- package/src/convex/components/backend/migrations.ts +120 -0
- package/src/convex/components/backend/monitoring.ts +63 -0
- package/src/convex/components/backend/notifications.ts +532 -0
- package/src/convex/components/backend/onboarding.ts +54 -0
- package/src/convex/components/backend/parties.ts +75 -0
- package/src/convex/components/backend/posture.ts +37 -0
- package/src/convex/components/backend/preferences.ts +690 -0
- package/src/convex/components/backend/push.ts +95 -0
- package/src/convex/components/backend/referrals.ts +761 -0
- package/src/convex/components/backend/reports.ts +609 -0
- package/src/convex/components/backend/schema.ts +2165 -0
- package/src/convex/components/backend/storage.ts +700 -0
- package/src/convex/components/backend/subscriptions.ts +240 -0
- package/src/convex/components/backend/suppressions.ts +115 -0
- package/src/convex/components/backend/waitlist.ts +727 -0
- package/src/convex/components/backend/wake.ts +13 -0
- package/src/convex/components/backend/webhooks.ts +287 -0
- package/src/convex/consent-rules.ts +156 -0
- package/src/convex/constants.ts +191 -0
- package/src/convex/delivery.ts +81 -0
- package/src/convex/email-blocks.ts +119 -0
- package/src/convex/email-helpers.ts +91 -0
- package/src/convex/email-html.ts +20 -0
- package/src/convex/email-posture.ts +233 -0
- package/src/convex/email-preferences.ts +310 -0
- package/src/convex/email-scheme.ts +18 -0
- package/src/convex/email-templates.ts +1020 -0
- package/src/convex/email-theme.ts +201 -0
- package/src/convex/email-validators.ts +27 -0
- package/src/convex/emails/appeal-decided.ts +16 -0
- package/src/convex/emails/content-restricted.ts +29 -0
- package/src/convex/emails/deletion-canceled.ts +8 -0
- package/src/convex/emails/deletion-scheduled.ts +18 -0
- package/src/convex/emails/email-changed.ts +13 -0
- package/src/convex/emails/gift-pass-ending.ts +18 -0
- package/src/convex/emails/gift.ts +18 -0
- package/src/convex/emails/invite.ts +28 -0
- package/src/convex/emails/new-device.ts +21 -0
- package/src/convex/emails/notice-decided.ts +16 -0
- package/src/convex/emails/notice-received.ts +15 -0
- package/src/convex/emails/otp.ts +48 -0
- package/src/convex/emails/passkey-recovered.ts +21 -0
- package/src/convex/emails/renewal-reminder.ts +20 -0
- package/src/convex/emails/topic-confirmation.ts +17 -0
- package/src/convex/emails/waitlist-admitted.ts +16 -0
- package/src/convex/emails/waitlist-confirmation.ts +19 -0
- package/src/convex/emails/welcome.ts +15 -0
- package/src/convex/emails/withdrawal-receipt.ts +16 -0
- package/src/convex/environment.ts +75 -0
- package/src/convex/errors.ts +418 -0
- package/src/convex/events.ts +840 -0
- package/src/convex/files.ts +420 -0
- package/src/convex/flags.ts +344 -0
- package/src/convex/funnel-rules.ts +273 -0
- package/src/convex/inbound-rules.ts +212 -0
- package/src/convex/integrations/access.ts +278 -0
- package/src/convex/integrations/account.ts +1044 -0
- package/src/convex/integrations/admin.ts +510 -0
- package/src/convex/integrations/ai/account-export.ts +53 -0
- package/src/convex/integrations/ai/chat.ts +530 -0
- package/src/convex/integrations/ai/config.ts +747 -0
- package/src/convex/integrations/ai/context.ts +93 -0
- package/src/convex/integrations/ai/costs.ts +80 -0
- package/src/convex/integrations/ai/embeddings.ts +109 -0
- package/src/convex/integrations/ai/job-errors.ts +152 -0
- package/src/convex/integrations/ai/jobs.ts +1268 -0
- package/src/convex/integrations/ai/knowledge.ts +489 -0
- package/src/convex/integrations/ai/metering.ts +408 -0
- package/src/convex/integrations/ai/model-id.ts +16 -0
- package/src/convex/integrations/ai/models.ts +467 -0
- package/src/convex/integrations/ai/moderation.ts +253 -0
- package/src/convex/integrations/ai/pricing.ts +170 -0
- package/src/convex/integrations/ai/provenance.ts +213 -0
- package/src/convex/integrations/ai/setup.ts +58 -0
- package/src/convex/integrations/ai/stream.ts +170 -0
- package/src/convex/integrations/ai.ts +84 -0
- package/src/convex/integrations/announcements.ts +442 -0
- package/src/convex/integrations/audit.ts +523 -0
- package/src/convex/integrations/authorization.ts +366 -0
- package/src/convex/integrations/billing/activity.ts +70 -0
- package/src/convex/integrations/billing/checkout.ts +501 -0
- package/src/convex/integrations/billing/claim-discount.ts +45 -0
- package/src/convex/integrations/billing/context.ts +484 -0
- package/src/convex/integrations/billing/credits.ts +237 -0
- package/src/convex/integrations/billing/customers.ts +369 -0
- package/src/convex/integrations/billing/discounts.ts +96 -0
- package/src/convex/integrations/billing/entitlements.ts +218 -0
- package/src/convex/integrations/billing/erasure.ts +99 -0
- package/src/convex/integrations/billing/events.ts +225 -0
- package/src/convex/integrations/billing/features.ts +91 -0
- package/src/convex/integrations/billing/free-plan.ts +257 -0
- package/src/convex/integrations/billing/functions.ts +506 -0
- package/src/convex/integrations/billing/gift-access.ts +44 -0
- package/src/convex/integrations/billing/gift-manage.ts +281 -0
- package/src/convex/integrations/billing/gift-rules.ts +49 -0
- package/src/convex/integrations/billing/gifts.ts +741 -0
- package/src/convex/integrations/billing/history.ts +233 -0
- package/src/convex/integrations/billing/lifecycle.ts +537 -0
- package/src/convex/integrations/billing/passes.ts +428 -0
- package/src/convex/integrations/billing/pricing.ts +387 -0
- package/src/convex/integrations/billing/provider-client.ts +15 -0
- package/src/convex/integrations/billing/provider-events.ts +220 -0
- package/src/convex/integrations/billing/purchase.ts +346 -0
- package/src/convex/integrations/billing/quotas.ts +205 -0
- package/src/convex/integrations/billing/referral-orders.ts +45 -0
- package/src/convex/integrations/billing/revenue.ts +194 -0
- package/src/convex/integrations/billing/rewards.ts +171 -0
- package/src/convex/integrations/billing/subscriptions.ts +421 -0
- package/src/convex/integrations/billing/types/base.ts +99 -0
- package/src/convex/integrations/billing/types/lifecycle.ts +152 -0
- package/src/convex/integrations/billing/types/options.ts +389 -0
- package/src/convex/integrations/billing/types/records.ts +549 -0
- package/src/convex/integrations/billing/types/revenue.ts +123 -0
- package/src/convex/integrations/billing/types/setup.ts +576 -0
- package/src/convex/integrations/billing/types/surface.ts +626 -0
- package/src/convex/integrations/billing/webhooks.ts +330 -0
- package/src/convex/integrations/billing.ts +263 -0
- package/src/convex/integrations/email-lifecycle.ts +265 -0
- package/src/convex/integrations/email-preferences.ts +417 -0
- package/src/convex/integrations/email-suppressions.ts +176 -0
- package/src/convex/integrations/email-sync.ts +560 -0
- package/src/convex/integrations/email.ts +1224 -0
- package/src/convex/integrations/flags.ts +492 -0
- package/src/convex/integrations/functions.ts +485 -0
- package/src/convex/integrations/health.ts +180 -0
- package/src/convex/integrations/http.ts +198 -0
- package/src/convex/integrations/inbound.ts +712 -0
- package/src/convex/integrations/launch.ts +614 -0
- package/src/convex/integrations/monitoring.ts +259 -0
- package/src/convex/integrations/notifications.ts +590 -0
- package/src/convex/integrations/rate-limit.ts +319 -0
- package/src/convex/integrations/referrals.ts +504 -0
- package/src/convex/integrations/reports.ts +719 -0
- package/src/convex/integrations/retention.ts +196 -0
- package/src/convex/integrations/search.ts +188 -0
- package/src/convex/integrations/storage.ts +595 -0
- package/src/convex/integrations/waitlist.ts +429 -0
- package/src/convex/integrations/webhook-guard.ts +348 -0
- package/src/convex/integrations/webhooks.ts +173 -0
- package/src/convex/integrations/workflows.ts +218 -0
- package/src/convex/jobs-policy.ts +390 -0
- package/src/convex/label-format.ts +73 -0
- package/src/convex/label-groups/access.ts +23 -0
- package/src/convex/label-groups/account.ts +29 -0
- package/src/convex/label-groups/activation.ts +24 -0
- package/src/convex/label-groups/admin.ts +860 -0
- package/src/convex/label-groups/ai.ts +17 -0
- package/src/convex/label-groups/announcement.ts +16 -0
- package/src/convex/label-groups/audit.ts +174 -0
- package/src/convex/label-groups/auth.ts +78 -0
- package/src/convex/label-groups/cancelFlow.ts +54 -0
- package/src/convex/label-groups/connection.ts +15 -0
- package/src/convex/label-groups/consent.ts +44 -0
- package/src/convex/label-groups/contact.ts +26 -0
- package/src/convex/label-groups/credits.ts +29 -0
- package/src/convex/label-groups/deletion.ts +21 -0
- package/src/convex/label-groups/email.ts +209 -0
- package/src/convex/label-groups/errors.ts +119 -0
- package/src/convex/label-groups/feedback.ts +19 -0
- package/src/convex/label-groups/gift.ts +62 -0
- package/src/convex/label-groups/history.ts +27 -0
- package/src/convex/label-groups/impersonation.ts +16 -0
- package/src/convex/label-groups/invitation.ts +27 -0
- package/src/convex/label-groups/legal.ts +147 -0
- package/src/convex/label-groups/maintenance.ts +14 -0
- package/src/convex/label-groups/notifications.ts +91 -0
- package/src/convex/label-groups/onboarding.ts +61 -0
- package/src/convex/label-groups/pastDue.ts +12 -0
- package/src/convex/label-groups/preferences.ts +48 -0
- package/src/convex/label-groups/pricing.ts +97 -0
- package/src/convex/label-groups/profile.ts +41 -0
- package/src/convex/label-groups/quota.ts +27 -0
- package/src/convex/label-groups/reauthenticate.ts +24 -0
- package/src/convex/label-groups/referral.ts +55 -0
- package/src/convex/label-groups/report.ts +58 -0
- package/src/convex/label-groups/security.ts +65 -0
- package/src/convex/label-groups/settings.ts +92 -0
- package/src/convex/label-groups/shell.ts +56 -0
- package/src/convex/label-groups/source.ts +34 -0
- package/src/convex/label-groups/upgrade.ts +22 -0
- package/src/convex/label-groups/upload.ts +21 -0
- package/src/convex/label-groups/usage.ts +14 -0
- package/src/convex/label-groups/waitlist.ts +47 -0
- package/src/convex/label-groups/withdrawal.ts +20 -0
- package/src/convex/label-translations.ts +1836 -0
- package/src/convex/labels.ts +134 -0
- package/src/convex/legal.ts +351 -0
- package/src/convex/lifecycle-flows.ts +91 -0
- package/src/convex/local-origins.ts +25 -0
- package/src/convex/locale.ts +96 -0
- package/src/convex/log.ts +150 -0
- package/src/convex/loopback.ts +20 -0
- package/src/convex/monitoring.ts +550 -0
- package/src/convex/notifications.ts +377 -0
- package/src/convex/package-migrations.ts +49 -0
- package/src/convex/paths.ts +78 -0
- package/src/convex/pauses.ts +56 -0
- package/src/convex/proof.ts +366 -0
- package/src/convex/referral-rules.ts +145 -0
- package/src/convex/report-rules.ts +15 -0
- package/src/convex/sandbox-inbox.ts +176 -0
- package/src/convex/sensitive-actions.ts +276 -0
- package/src/convex/test-models.ts +129 -0
- package/src/convex/test.ts +325 -14
- package/src/convex/tokens.ts +106 -0
- package/src/convex/urls.ts +15 -0
- package/src/convex/visitor.ts +54 -0
- package/src/convex/waitlist-rules.ts +131 -0
- package/src/convex/web-push.ts +243 -0
- package/src/convex/webhook-signatures.ts +167 -0
- package/src/runtime/vue/components/account/AccountData.css +46 -0
- package/src/runtime/vue/components/account/AccountData.vue +185 -0
- package/src/runtime/vue/components/account/AccountDeletion.css +45 -0
- package/src/runtime/vue/components/account/AccountDeletion.vue +102 -0
- package/src/runtime/vue/components/account/AccountExport.css +38 -0
- package/src/runtime/vue/components/account/AccountExport.vue +66 -0
- package/src/runtime/vue/components/account/ActivationChecklist.css +131 -0
- package/src/runtime/vue/components/account/ActivationChecklist.vue +150 -0
- package/src/runtime/vue/components/account/ConsentPrompt.css +181 -0
- package/src/runtime/vue/components/account/ConsentPrompt.vue +149 -0
- package/src/runtime/vue/components/account/ConsentPromptAge.vue +40 -0
- package/src/runtime/vue/components/account/ConsentPromptDialog.vue +151 -0
- package/src/runtime/vue/components/account/ConsentPromptItem.vue +60 -0
- package/src/runtime/vue/components/account/ConsentPromptStorage.vue +82 -0
- package/src/runtime/vue/components/account/EmailUnsubscribe.css +70 -0
- package/src/runtime/vue/components/account/EmailUnsubscribe.vue +118 -0
- package/src/runtime/vue/components/account/HowDidYouHear.css +115 -0
- package/src/runtime/vue/components/account/HowDidYouHear.vue +183 -0
- package/src/runtime/vue/components/account/KeepAccount.css +43 -0
- package/src/runtime/vue/components/account/KeepAccount.vue +63 -0
- package/src/runtime/vue/components/account/OnboardingFlow.css +200 -0
- package/src/runtime/vue/components/account/OnboardingFlow.vue +172 -0
- package/src/runtime/vue/components/account/OnboardingPlan.vue +42 -0
- package/src/runtime/vue/components/account/OnboardingProfile.vue +119 -0
- package/src/runtime/vue/components/account/OnboardingStepActions.vue +45 -0
- package/src/runtime/vue/components/account/OnboardingTeammates.vue +107 -0
- package/src/runtime/vue/components/account/OnboardingWorkspace.vue +174 -0
- package/src/runtime/vue/components/account/ProfileEmailSection.vue +104 -0
- package/src/runtime/vue/components/account/ProfileIdentity.css +57 -0
- package/src/runtime/vue/components/account/ProfileIdentity.vue +51 -0
- package/src/runtime/vue/components/account/ProfileLanguageSection.vue +44 -0
- package/src/runtime/vue/components/account/ProfileNameSection.vue +36 -0
- package/src/runtime/vue/components/account/ProfilePreferencesSection.css +127 -0
- package/src/runtime/vue/components/account/ProfilePreferencesSection.vue +168 -0
- package/src/runtime/vue/components/account/ProfileSettings.css +64 -0
- package/src/runtime/vue/components/account/ProfileSettings.vue +255 -0
- package/src/runtime/vue/components/account/SecurityAlerts.css +47 -0
- package/src/runtime/vue/components/account/SecurityAlerts.vue +79 -0
- package/src/runtime/vue/components/account/SecurityPasskeys.css +79 -0
- package/src/runtime/vue/components/account/SecurityPasskeys.vue +160 -0
- package/src/runtime/vue/components/account/SecuritySessions.css +21 -0
- package/src/runtime/vue/components/account/SecuritySessions.vue +88 -0
- package/src/runtime/vue/components/account/SecuritySettings.css +80 -0
- package/src/runtime/vue/components/account/SecuritySettings.vue +283 -0
- package/src/runtime/vue/components/admin/AdminAccess.css +77 -0
- package/src/runtime/vue/components/admin/AdminAccess.vue +62 -0
- package/src/runtime/vue/components/admin/AdminAccessAdmissions.vue +59 -0
- package/src/runtime/vue/components/admin/AdminAccessAdmit.vue +73 -0
- package/src/runtime/vue/components/admin/AdminAccessCreate.vue +86 -0
- package/src/runtime/vue/components/admin/AdminAccessInvites.vue +56 -0
- package/src/runtime/vue/components/admin/AdminAccessPhase.vue +51 -0
- package/src/runtime/vue/components/admin/AdminAccessRevoke.vue +25 -0
- package/src/runtime/vue/components/admin/AdminAccessTable.vue +65 -0
- package/src/runtime/vue/components/admin/AdminAnalytics.css +24 -0
- package/src/runtime/vue/components/admin/AdminAnalytics.vue +45 -0
- package/src/runtime/vue/components/admin/AdminAnnouncements.css +94 -0
- package/src/runtime/vue/components/admin/AdminAnnouncements.vue +97 -0
- package/src/runtime/vue/components/admin/AdminAnnouncementsCompose.vue +140 -0
- package/src/runtime/vue/components/admin/AdminAnnouncementsItem.vue +89 -0
- package/src/runtime/vue/components/admin/AdminBilling.css +74 -0
- package/src/runtime/vue/components/admin/AdminBilling.vue +214 -0
- package/src/runtime/vue/components/admin/AdminChart.css +57 -0
- package/src/runtime/vue/components/admin/AdminChart.vue +45 -0
- package/src/runtime/vue/components/admin/AdminConsole.css +30 -0
- package/src/runtime/vue/components/admin/AdminConsole.vue +179 -0
- package/src/runtime/vue/components/admin/AdminCosts.css +64 -0
- package/src/runtime/vue/components/admin/AdminCosts.vue +133 -0
- package/src/runtime/vue/components/admin/AdminDrawerFrame.vue +83 -0
- package/src/runtime/vue/components/admin/AdminExperiments.css +99 -0
- package/src/runtime/vue/components/admin/AdminExperiments.vue +174 -0
- package/src/runtime/vue/components/admin/AdminFlags.css +77 -0
- package/src/runtime/vue/components/admin/AdminFlags.vue +486 -0
- package/src/runtime/vue/components/admin/AdminGrowth.css +98 -0
- package/src/runtime/vue/components/admin/AdminGrowth.vue +218 -0
- package/src/runtime/vue/components/admin/AdminInbox.css +98 -0
- package/src/runtime/vue/components/admin/AdminInbox.vue +96 -0
- package/src/runtime/vue/components/admin/AdminInboxMessage.vue +116 -0
- package/src/runtime/vue/components/admin/AdminListFrame.vue +88 -0
- package/src/runtime/vue/components/admin/AdminListTail.vue +50 -0
- package/src/runtime/vue/components/admin/AdminQueue.css +91 -0
- package/src/runtime/vue/components/admin/AdminQueue.vue +108 -0
- package/src/runtime/vue/components/admin/AdminQueueControls.vue +64 -0
- package/src/runtime/vue/components/admin/AdminQueueJob.vue +62 -0
- package/src/runtime/vue/components/admin/AdminQueueJobs.vue +90 -0
- package/src/runtime/vue/components/admin/AdminQueueModels.vue +96 -0
- package/src/runtime/vue/components/admin/AdminQueueTier.vue +97 -0
- package/src/runtime/vue/components/admin/AdminQueueTiers.vue +47 -0
- package/src/runtime/vue/components/admin/AdminReferrals.css +76 -0
- package/src/runtime/vue/components/admin/AdminReferrals.vue +262 -0
- package/src/runtime/vue/components/admin/AdminReports.css +88 -0
- package/src/runtime/vue/components/admin/AdminReports.vue +141 -0
- package/src/runtime/vue/components/admin/AdminReportsAppeal.vue +64 -0
- package/src/runtime/vue/components/admin/AdminReportsDecision.vue +83 -0
- package/src/runtime/vue/components/admin/AdminReportsNotice.vue +57 -0
- package/src/runtime/vue/components/admin/AdminReportsSubject.vue +86 -0
- package/src/runtime/vue/components/admin/AdminRevenue.css +92 -0
- package/src/runtime/vue/components/admin/AdminRevenue.vue +212 -0
- package/src/runtime/vue/components/admin/AdminSuppressions.css +44 -0
- package/src/runtime/vue/components/admin/AdminSuppressions.vue +111 -0
- package/src/runtime/vue/components/admin/AdminSystem.vue +150 -0
- package/src/runtime/vue/components/admin/AdminTabDialogs.vue +30 -0
- package/src/runtime/vue/components/admin/AdminTabStatus.vue +38 -0
- package/src/runtime/vue/components/admin/AdminUserDrawer.vue +309 -0
- package/src/runtime/vue/components/admin/AdminUsers.vue +200 -0
- package/src/runtime/vue/components/admin/AdminUsersTable.vue +109 -0
- package/src/runtime/vue/components/admin/AdminWaitlist.css +71 -0
- package/src/runtime/vue/components/admin/AdminWaitlist.vue +80 -0
- package/src/runtime/vue/components/admin/AdminWaitlistActions.vue +68 -0
- package/src/runtime/vue/components/admin/AdminWaitlistFilter.vue +94 -0
- package/src/runtime/vue/components/admin/AdminWaitlistSummary.vue +72 -0
- package/src/runtime/vue/components/admin/AdminWaitlistTable.vue +84 -0
- package/src/runtime/vue/components/admin/AdminWebhooks.css +68 -0
- package/src/runtime/vue/components/admin/AdminWebhooks.vue +155 -0
- package/src/runtime/vue/components/admin/AdminWorkspaceDrawer.vue +106 -0
- package/src/runtime/vue/components/admin/AdminWorkspaces.vue +121 -0
- package/src/runtime/vue/components/admin/AdminWorkspacesTable.vue +82 -0
- package/src/runtime/vue/components/admin/admin.css +281 -0
- package/src/runtime/vue/components/auth/AuthForm.css +142 -0
- package/src/runtime/vue/components/auth/AuthForm.vue +239 -0
- package/src/runtime/vue/components/auth/AuthFormAge.css +12 -0
- package/src/runtime/vue/components/auth/AuthFormAge.vue +46 -0
- package/src/runtime/vue/components/auth/AuthFormAgreement.css +17 -0
- package/src/runtime/vue/components/auth/AuthFormAgreement.vue +43 -0
- package/src/runtime/vue/components/auth/AuthFormChoose.css +36 -0
- package/src/runtime/vue/components/auth/AuthFormChoose.vue +50 -0
- package/src/runtime/vue/components/auth/AuthFormCode.vue +47 -0
- package/src/runtime/vue/components/auth/AuthFormEmail.vue +41 -0
- package/src/runtime/vue/components/auth/AuthFormError.css +15 -0
- package/src/runtime/vue/components/auth/AuthFormError.vue +19 -0
- package/src/runtime/vue/components/auth/AuthFormHeader.css +18 -0
- package/src/runtime/vue/components/auth/AuthFormHeader.vue +28 -0
- package/src/runtime/vue/components/auth/AuthFormInviteCode.css +17 -0
- package/src/runtime/vue/components/auth/AuthFormInviteCode.vue +49 -0
- package/src/runtime/vue/components/auth/AuthFormPasskey.vue +27 -0
- package/src/runtime/vue/components/auth/AuthFormPasskeyOffer.css +29 -0
- package/src/runtime/vue/components/auth/AuthFormPasskeyOffer.vue +52 -0
- package/src/runtime/vue/components/auth/AuthFormRecover.css +19 -0
- package/src/runtime/vue/components/auth/AuthFormRecover.vue +57 -0
- package/src/runtime/vue/components/auth/AuthFormUndeliverable.css +21 -0
- package/src/runtime/vue/components/auth/AuthFormUndeliverable.vue +35 -0
- package/src/runtime/vue/components/auth/AuthFormWaitlisted.css +25 -0
- package/src/runtime/vue/components/auth/AuthFormWaitlisted.vue +42 -0
- package/src/runtime/vue/components/auth/InviteRedeem.css +34 -0
- package/src/runtime/vue/components/auth/InviteRedeem.vue +63 -0
- package/src/runtime/vue/components/auth/ReauthenticateCode.css +21 -0
- package/src/runtime/vue/components/auth/ReauthenticateCode.vue +59 -0
- package/src/runtime/vue/components/auth/ReauthenticateDialog.css +95 -0
- package/src/runtime/vue/components/auth/ReauthenticateDialog.vue +180 -0
- package/src/runtime/vue/components/auth/ReauthenticatePasskey.css +24 -0
- package/src/runtime/vue/components/auth/ReauthenticatePasskey.vue +37 -0
- package/src/runtime/vue/components/auth/WaitlistCode.css +24 -0
- package/src/runtime/vue/components/auth/WaitlistCode.vue +57 -0
- package/src/runtime/vue/components/auth/WaitlistForm.css +80 -0
- package/src/runtime/vue/components/auth/WaitlistForm.vue +119 -0
- package/src/runtime/vue/components/auth/WaitlistJoin.css +46 -0
- package/src/runtime/vue/components/auth/WaitlistJoin.vue +99 -0
- package/src/runtime/vue/components/auth/WaitlistPlace.css +53 -0
- package/src/runtime/vue/components/auth/WaitlistPlace.vue +78 -0
- package/src/runtime/vue/components/auth/WaitlistShare.css +68 -0
- package/src/runtime/vue/components/auth/WaitlistShare.vue +76 -0
- package/src/runtime/vue/components/auth/WaitlistStatus.css +19 -0
- package/src/runtime/vue/components/auth/WaitlistStatus.vue +75 -0
- package/src/runtime/vue/components/billing/BillingCheckoutLink.vue +103 -0
- package/src/runtime/vue/components/billing/BillingHistory.css +71 -0
- package/src/runtime/vue/components/billing/BillingHistory.vue +131 -0
- package/src/runtime/vue/components/billing/BillingHistoryOrder.css +63 -0
- package/src/runtime/vue/components/billing/BillingHistoryOrder.vue +52 -0
- package/src/runtime/vue/components/billing/BillingPortalLink.vue +65 -0
- package/src/runtime/vue/components/billing/CancelConfirmGroup.vue +55 -0
- package/src/runtime/vue/components/billing/CancelFlow.css +110 -0
- package/src/runtime/vue/components/billing/CancelFlow.vue +133 -0
- package/src/runtime/vue/components/billing/CancelFlowConfirm.vue +35 -0
- package/src/runtime/vue/components/billing/CancelFlowEnd.vue +43 -0
- package/src/runtime/vue/components/billing/CancelFlowOffer.vue +30 -0
- package/src/runtime/vue/components/billing/CancelFlowQuestion.vue +58 -0
- package/src/runtime/vue/components/billing/GiftList.css +101 -0
- package/src/runtime/vue/components/billing/GiftList.vue +125 -0
- package/src/runtime/vue/components/billing/GiftReceived.vue +71 -0
- package/src/runtime/vue/components/billing/GiftSent.vue +138 -0
- package/src/runtime/vue/components/billing/PricingCancelConfirm.vue +14 -0
- package/src/runtime/vue/components/billing/PricingCurrencySelect.vue +53 -0
- package/src/runtime/vue/components/billing/PricingEmailOptOut.css +34 -0
- package/src/runtime/vue/components/billing/PricingEmailOptOut.vue +32 -0
- package/src/runtime/vue/components/billing/PricingPackCard.css +25 -0
- package/src/runtime/vue/components/billing/PricingPackCard.vue +78 -0
- package/src/runtime/vue/components/billing/PricingPeriodSwitch.vue +52 -0
- package/src/runtime/vue/components/billing/PricingPlanCard.css +106 -0
- package/src/runtime/vue/components/billing/PricingPlanCard.vue +142 -0
- package/src/runtime/vue/components/billing/PricingPromotion.vue +24 -0
- package/src/runtime/vue/components/billing/PricingTable.css +94 -0
- package/src/runtime/vue/components/billing/PricingTable.vue +712 -0
- package/src/runtime/vue/components/billing/ReferralCard.css +100 -0
- package/src/runtime/vue/components/billing/ReferralCard.vue +203 -0
- package/src/runtime/vue/components/billing/ReferralLanding.css +52 -0
- package/src/runtime/vue/components/billing/ReferralLanding.vue +112 -0
- package/src/runtime/vue/components/billing/UpgradePrompt.css +55 -0
- package/src/runtime/vue/components/billing/UpgradePrompt.vue +144 -0
- package/src/runtime/vue/components/billing/UsageHistory.css +61 -0
- package/src/runtime/vue/components/billing/UsageHistory.vue +98 -0
- package/src/runtime/vue/components/billing/UsageHistoryEvent.css +39 -0
- package/src/runtime/vue/components/billing/UsageHistoryEvent.vue +25 -0
- package/src/runtime/vue/components/billing/WithdrawalButton.css +59 -0
- package/src/runtime/vue/components/billing/WithdrawalButton.vue +111 -0
- package/src/runtime/vue/components/shared.css +131 -0
- package/src/runtime/vue/components/shell/AccessDenied.css +77 -0
- package/src/runtime/vue/components/shell/AccessDenied.vue +207 -0
- package/src/runtime/vue/components/shell/AccessDeniedPage.vue +25 -0
- package/src/runtime/vue/components/shell/AccountMenu.css +87 -0
- package/src/runtime/vue/components/shell/AccountMenu.vue +92 -0
- package/src/runtime/vue/components/shell/AiLabel.css +68 -0
- package/src/runtime/vue/components/shell/AiLabel.vue +65 -0
- package/src/runtime/vue/components/shell/AppShell.css +188 -0
- package/src/runtime/vue/components/shell/AppShell.vue +122 -0
- package/src/runtime/vue/components/shell/BackendNotices.vue +67 -0
- package/src/runtime/vue/components/shell/ConfirmDialog.css +67 -0
- package/src/runtime/vue/components/shell/ConfirmDialog.vue +76 -0
- package/src/runtime/vue/components/shell/ConnectionStatus.css +36 -0
- package/src/runtime/vue/components/shell/ConnectionStatus.vue +102 -0
- package/src/runtime/vue/components/shell/ContactForm.css +94 -0
- package/src/runtime/vue/components/shell/ContactForm.vue +133 -0
- package/src/runtime/vue/components/shell/ErrorPage.vue +33 -0
- package/src/runtime/vue/components/shell/FrameConnectionStatus.vue +18 -0
- package/src/runtime/vue/components/shell/FrameMain.vue +54 -0
- package/src/runtime/vue/components/shell/Gate.css +51 -0
- package/src/runtime/vue/components/shell/Gate.vue +207 -0
- package/src/runtime/vue/components/shell/GateQuota.vue +87 -0
- package/src/runtime/vue/components/shell/LegalDataMap.vue +46 -0
- package/src/runtime/vue/components/shell/LegalDocument.css +126 -0
- package/src/runtime/vue/components/shell/LegalDocument.vue +266 -0
- package/src/runtime/vue/components/shell/LegalProcessors.vue +61 -0
- package/src/runtime/vue/components/shell/LegalStorage.vue +60 -0
- package/src/runtime/vue/components/shell/ListPager.vue +46 -0
- package/src/runtime/vue/components/shell/NoticeAnnouncement.css +54 -0
- package/src/runtime/vue/components/shell/NoticeAnnouncement.vue +128 -0
- package/src/runtime/vue/components/shell/NoticeDeletion.css +57 -0
- package/src/runtime/vue/components/shell/NoticeDeletion.vue +83 -0
- package/src/runtime/vue/components/shell/NoticeGift.css +51 -0
- package/src/runtime/vue/components/shell/NoticeGift.vue +172 -0
- package/src/runtime/vue/components/shell/NoticeImpersonation.css +44 -0
- package/src/runtime/vue/components/shell/NoticeImpersonation.vue +107 -0
- package/src/runtime/vue/components/shell/NoticeLowCredits.css +62 -0
- package/src/runtime/vue/components/shell/NoticeLowCredits.vue +221 -0
- package/src/runtime/vue/components/shell/NoticeMaintenance.css +30 -0
- package/src/runtime/vue/components/shell/NoticeMaintenance.vue +42 -0
- package/src/runtime/vue/components/shell/NoticePastDue.css +46 -0
- package/src/runtime/vue/components/shell/NoticePastDue.vue +76 -0
- package/src/runtime/vue/components/shell/NotificationInbox.css +220 -0
- package/src/runtime/vue/components/shell/NotificationInbox.vue +104 -0
- package/src/runtime/vue/components/shell/NotificationInboxBell.vue +38 -0
- package/src/runtime/vue/components/shell/NotificationInboxItem.vue +51 -0
- package/src/runtime/vue/components/shell/PageFrame.vue +121 -0
- package/src/runtime/vue/components/shell/PagedList.vue +114 -0
- package/src/runtime/vue/components/shell/ReportAppeal.vue +103 -0
- package/src/runtime/vue/components/shell/ReportNotice.css +58 -0
- package/src/runtime/vue/components/shell/ReportNotice.vue +170 -0
- package/src/runtime/vue/components/shell/UploadField.css +79 -0
- package/src/runtime/vue/components/shell/UploadField.vue +99 -0
- package/src/runtime/vue/components/shell/WorkspaceSwitcher.css +128 -0
- package/src/runtime/vue/components/shell/WorkspaceSwitcher.vue +136 -0
- package/src/runtime/vue/components/tokens.css +100 -0
- package/src/runtime/vue/components/workspaces/AcceptInvitation.css +35 -0
- package/src/runtime/vue/components/workspaces/AcceptInvitation.vue +199 -0
- package/src/runtime/vue/components/workspaces/AcceptInvitationActions.css +21 -0
- package/src/runtime/vue/components/workspaces/AcceptInvitationActions.vue +31 -0
- package/src/runtime/vue/components/workspaces/AuditLog.css +61 -0
- package/src/runtime/vue/components/workspaces/AuditLog.vue +103 -0
- package/src/runtime/vue/components/workspaces/AuditLogEvent.css +53 -0
- package/src/runtime/vue/components/workspaces/AuditLogEvent.vue +31 -0
- package/src/runtime/vue/components/workspaces/WorkspaceBilling.css +112 -0
- package/src/runtime/vue/components/workspaces/WorkspaceBilling.vue +267 -0
- package/src/runtime/vue/components/workspaces/WorkspaceCredits.css +30 -0
- package/src/runtime/vue/components/workspaces/WorkspaceCredits.vue +60 -0
- package/src/runtime/vue/components/workspaces/WorkspaceList.css +77 -0
- package/src/runtime/vue/components/workspaces/WorkspaceList.vue +95 -0
- package/src/runtime/vue/components/workspaces/WorkspaceSettings.css +58 -0
- package/src/runtime/vue/components/workspaces/WorkspaceSettings.vue +268 -0
- package/src/runtime/vue/pages/accept-invitation.vue +24 -0
- package/src/runtime/vue/pages/accessibility.vue +26 -0
- package/src/runtime/vue/pages/admin.vue +63 -0
- package/src/runtime/vue/pages/gifts.vue +27 -0
- package/src/runtime/vue/pages/invite.vue +26 -0
- package/src/runtime/vue/pages/keep-account.vue +31 -0
- package/src/runtime/vue/pages/login.vue +65 -0
- package/src/runtime/vue/pages/pricing.vue +54 -0
- package/src/runtime/vue/pages/privacy.vue +27 -0
- package/src/runtime/vue/pages/profile.vue +22 -0
- package/src/runtime/vue/pages/referral.vue +28 -0
- package/src/runtime/vue/pages/report.vue +44 -0
- package/src/runtime/vue/pages/security.vue +32 -0
- package/src/runtime/vue/pages/settings.vue +38 -0
- package/src/runtime/vue/pages/subprocessors.vue +26 -0
- package/src/runtime/vue/pages/terms.vue +27 -0
- package/src/runtime/vue/pages/unsubscribe.vue +38 -0
- package/src/runtime/vue/pages/waitlist.vue +28 -0
- package/src/runtime/vue/pages/welcome.vue +31 -0
- package/dist/convex/component/_generated/api.d.ts +0 -36
- package/dist/convex/component/_generated/api.d.ts.map +0 -1
- package/dist/convex/component/_generated/api.js.map +0 -1
- package/dist/convex/component/_generated/component.d.ts +0 -549
- package/dist/convex/component/_generated/component.d.ts.map +0 -1
- package/dist/convex/component/_generated/component.js.map +0 -1
- package/dist/convex/component/_generated/dataModel.d.ts.map +0 -1
- package/dist/convex/component/_generated/dataModel.js.map +0 -1
- package/dist/convex/component/_generated/server.d.ts +0 -121
- package/dist/convex/component/_generated/server.d.ts.map +0 -1
- package/dist/convex/component/_generated/server.js +0 -78
- package/dist/convex/component/_generated/server.js.map +0 -1
- package/dist/convex/component/adapter.d.ts.map +0 -1
- package/dist/convex/component/adapter.js +0 -23
- package/dist/convex/component/adapter.js.map +0 -1
- package/dist/convex/component/constants.d.ts +0 -3
- package/dist/convex/component/constants.d.ts.map +0 -1
- package/dist/convex/component/constants.js +0 -3
- package/dist/convex/component/constants.js.map +0 -1
- package/dist/convex/component/convex.config.d.ts +0 -14
- package/dist/convex/component/convex.config.d.ts.map +0 -1
- package/dist/convex/component/convex.config.js +0 -15
- package/dist/convex/component/convex.config.js.map +0 -1
- package/dist/convex/component/schema.d.ts +0 -278
- package/dist/convex/component/schema.d.ts.map +0 -1
- package/dist/convex/component/schema.js +0 -91
- package/dist/convex/component/schema.js.map +0 -1
- package/dist/runtime/nuxt/auth/middleware.d.ts +0 -12
- package/dist/runtime/nuxt/auth/middleware.js +0 -31
- package/dist/runtime/nuxt/auth/proxy.d.ts +0 -6
- package/dist/runtime/nuxt/auth/proxy.js +0 -11
- package/dist/runtime/nuxt/auth/server.d.ts +0 -86
- package/dist/runtime/nuxt/auth/server.js +0 -110
- package/dist/runtime/nuxt/config.d.ts +0 -7
- package/dist/runtime/nuxt/config.js +0 -12
- package/dist/runtime/nuxt/index.d.ts +0 -102
- package/dist/runtime/nuxt/index.js +0 -77
- package/dist/runtime/vue/auth/client.d.ts +0 -14
- package/dist/runtime/vue/auth/client.js +0 -7
- package/dist/runtime/vue/auth/cross-domain.d.ts +0 -8
- package/dist/runtime/vue/auth/cross-domain.js +0 -34
- package/dist/runtime/vue/auth/helpers.d.ts +0 -52
- package/dist/runtime/vue/auth/helpers.js +0 -35
- package/dist/runtime/vue/auth/hydration.d.ts +0 -14
- package/dist/runtime/vue/auth/hydration.js +0 -23
- package/dist/runtime/vue/auth/index.d.ts +0 -79
- package/dist/runtime/vue/auth/index.js +0 -81
- package/dist/runtime/vue/auth/plugin.client.d.ts +0 -6
- package/dist/runtime/vue/auth/plugin.client.js +0 -30
- package/dist/runtime/vue/auth/plugin.server.d.ts +0 -17
- package/dist/runtime/vue/auth/plugin.server.js +0 -29
- package/dist/runtime/vue/auth/use-auth.d.ts +0 -84
- package/dist/runtime/vue/auth/use-auth.js +0 -77
- package/dist/runtime/vue/client.d.ts +0 -245
- package/dist/runtime/vue/client.js +0 -341
- package/dist/runtime/vue/composables/use-action.d.ts +0 -45
- package/dist/runtime/vue/composables/use-action.js +0 -10
- package/dist/runtime/vue/composables/use-connection-state.d.ts +0 -25
- package/dist/runtime/vue/composables/use-connection-state.js +0 -13
- package/dist/runtime/vue/composables/use-mutation.d.ts +0 -60
- package/dist/runtime/vue/composables/use-mutation.js +0 -36
- package/dist/runtime/vue/composables/use-paginated-query.d.ts +0 -101
- package/dist/runtime/vue/composables/use-paginated-query.js +0 -508
- package/dist/runtime/vue/composables/use-queries.d.ts +0 -45
- package/dist/runtime/vue/composables/use-queries.js +0 -32
- package/dist/runtime/vue/composables/use-query.d.ts +0 -82
- package/dist/runtime/vue/composables/use-query.js +0 -63
- package/dist/runtime/vue/composables/use-subscription.d.ts +0 -14
- package/dist/runtime/vue/composables/use-subscription.js +0 -15
- package/dist/runtime/vue/hydration.d.ts +0 -42
- package/dist/runtime/vue/hydration.js +0 -18
- package/dist/runtime/vue/index.d.ts +0 -29
- package/dist/runtime/vue/index.js +0 -38
- package/dist/runtime/vue/queries-observer.d.ts +0 -38
- package/dist/runtime/vue/queries-observer.js +0 -127
- package/src/convex/component/_generated/api.ts +0 -52
- package/src/convex/component/_generated/component.ts +0 -1338
- package/src/convex/component/_generated/server.ts +0 -156
- package/src/convex/component/adapter.ts +0 -42
- package/src/convex/component/constants.ts +0 -2
- package/src/convex/component/convex.config.ts +0 -16
- package/src/convex/component/schema.ts +0 -93
- /package/dist/convex/{component → components/backend}/_generated/api.js +0 -0
- /package/dist/convex/{component → components/backend}/_generated/component.js +0 -0
- /package/dist/convex/{component → components/backend}/_generated/dataModel.d.ts +0 -0
- /package/dist/convex/{component → components/backend}/_generated/dataModel.js +0 -0
- /package/dist/convex/{component → components/backend}/adapter.d.ts +0 -0
- /package/src/convex/{component → components/backend}/_generated/dataModel.ts +0 -0
|
@@ -0,0 +1,2091 @@
|
|
|
1
|
+
import { defineSchema, defineTable } from 'convex/server';
|
|
2
|
+
import { v } from 'convex/values';
|
|
3
|
+
import { sendArgs } from '../../email-validators.js';
|
|
4
|
+
import { vAnnouncementLink, vBroadcastDraft, vBroadcastState } from '../../announcements.js';
|
|
5
|
+
import { vResolvedCaps } from '../../email-preferences.js';
|
|
6
|
+
import { vFlowSettings } from '../../lifecycle-flows.js';
|
|
7
|
+
import { vEventData } from '../../notifications.js';
|
|
8
|
+
// Schema for the default plugins: passkey + emailOTP + admin + organization
|
|
9
|
+
// (+ convex plugin which pulls in jwt for Convex tokens + rateLimit).
|
|
10
|
+
// Core tables (user/session/account/verification) + passkey + rateLimit + jwks
|
|
11
|
+
// (required by jwt plugin used for Convex JWTs) + the admin plugin's role/ban
|
|
12
|
+
// fields and the organization plugin's workspace tables.
|
|
13
|
+
// No 2FA, no social OAuth, no extra user fields (username/phone/anon/etc)
|
|
14
|
+
// beyond lastLoginMethod's, the package's own `locale` and passkey-only's, no
|
|
15
|
+
// email/password specific beyond core account.
|
|
16
|
+
// Verified against `createSchema` from @convex-dev/better-auth with this plugin set,
|
|
17
|
+
// and held to the runtime plugins' fields by test/unit/adapter-plugins.test.ts.
|
|
18
|
+
export const tables = {
|
|
19
|
+
user: defineTable({
|
|
20
|
+
name: v.string(),
|
|
21
|
+
email: v.string(),
|
|
22
|
+
emailVerified: v.boolean(),
|
|
23
|
+
image: v.optional(v.union(v.null(), v.string())),
|
|
24
|
+
createdAt: v.number(),
|
|
25
|
+
updatedAt: v.number(),
|
|
26
|
+
// Admin plugin: app-wide role ('user' when unset) and ban state.
|
|
27
|
+
role: v.optional(v.union(v.null(), v.string())),
|
|
28
|
+
banned: v.optional(v.union(v.null(), v.boolean())),
|
|
29
|
+
banReason: v.optional(v.union(v.null(), v.string())),
|
|
30
|
+
banExpires: v.optional(v.union(v.null(), v.number())),
|
|
31
|
+
// lastLoginMethod plugin: how the account last signed in (`passkey`,
|
|
32
|
+
// `email-otp`), written on every sign-in.
|
|
33
|
+
lastLoginMethod: v.optional(v.union(v.null(), v.string())),
|
|
34
|
+
// The language the person reads in (a language tag, `de`, `pt-BR`):
|
|
35
|
+
// set at sign-up and on a language switch; every email they get is
|
|
36
|
+
// written in it (ACCOUNT_FIELDS, client/plugins.ts).
|
|
37
|
+
locale: v.optional(v.union(v.null(), v.string())),
|
|
38
|
+
// Passkey-only accounts (client/passkey-only.ts): whether the account
|
|
39
|
+
// refuses sign-in codes, and the keyed hash of its recovery code.
|
|
40
|
+
passkeyOnly: v.optional(v.union(v.null(), v.boolean())),
|
|
41
|
+
recoveryCodeHash: v.optional(v.union(v.null(), v.string())),
|
|
42
|
+
// The app shell's two marks (onboarding.ts): when the account finished
|
|
43
|
+
// or skipped the first-run steps at /welcome, and when it dismissed the
|
|
44
|
+
// activation checklist. Written only by the component's own functions.
|
|
45
|
+
onboardedAt: v.optional(v.union(v.null(), v.number())),
|
|
46
|
+
activationDismissedAt: v.optional(v.union(v.null(), v.number())),
|
|
47
|
+
// The convex plugin's own field (a legacy link to an app users table).
|
|
48
|
+
// Nothing here writes it, but the plugin declares it, so the schema does:
|
|
49
|
+
// test/unit/adapter-plugins.test.ts holds every table's fields to the
|
|
50
|
+
// runtime plugins'.
|
|
51
|
+
userId: v.optional(v.union(v.null(), v.string())),
|
|
52
|
+
})
|
|
53
|
+
.index('email_name', ['email', 'name'])
|
|
54
|
+
.index('name', ['name']),
|
|
55
|
+
session: defineTable({
|
|
56
|
+
expiresAt: v.number(),
|
|
57
|
+
token: v.string(),
|
|
58
|
+
createdAt: v.number(),
|
|
59
|
+
updatedAt: v.number(),
|
|
60
|
+
ipAddress: v.optional(v.union(v.null(), v.string())),
|
|
61
|
+
userAgent: v.optional(v.union(v.null(), v.string())),
|
|
62
|
+
userId: v.string(),
|
|
63
|
+
// Admin plugin: who is impersonating this session, if anyone.
|
|
64
|
+
impersonatedBy: v.optional(v.union(v.null(), v.string())),
|
|
65
|
+
// Organization plugin: the session's active workspace.
|
|
66
|
+
activeOrganizationId: v.optional(v.union(v.null(), v.string())),
|
|
67
|
+
// Passkey-only: a recovery session, which may only save a passkey.
|
|
68
|
+
passkeyRecovery: v.optional(v.union(v.null(), v.boolean())),
|
|
69
|
+
// How the person signed in to this session (`passkey`, `email-otp`),
|
|
70
|
+
// set once when it opens (SESSION_FIELDS, client/plugins.ts).
|
|
71
|
+
signInMethod: v.optional(v.union(v.null(), v.string())),
|
|
72
|
+
})
|
|
73
|
+
.index('expiresAt', ['expiresAt'])
|
|
74
|
+
.index('expiresAt_userId', ['expiresAt', 'userId'])
|
|
75
|
+
.index('token', ['token'])
|
|
76
|
+
.index('userId', ['userId'])
|
|
77
|
+
// listSessions filters by user then range-checks expiry.
|
|
78
|
+
.index('userId_expiresAt', ['userId', 'expiresAt']),
|
|
79
|
+
account: defineTable({
|
|
80
|
+
accountId: v.string(),
|
|
81
|
+
providerId: v.string(),
|
|
82
|
+
userId: v.string(),
|
|
83
|
+
accessToken: v.optional(v.union(v.null(), v.string())),
|
|
84
|
+
refreshToken: v.optional(v.union(v.null(), v.string())),
|
|
85
|
+
idToken: v.optional(v.union(v.null(), v.string())),
|
|
86
|
+
accessTokenExpiresAt: v.optional(v.union(v.null(), v.number())),
|
|
87
|
+
refreshTokenExpiresAt: v.optional(v.union(v.null(), v.number())),
|
|
88
|
+
scope: v.optional(v.union(v.null(), v.string())),
|
|
89
|
+
password: v.optional(v.union(v.null(), v.string())),
|
|
90
|
+
createdAt: v.number(),
|
|
91
|
+
updatedAt: v.number(),
|
|
92
|
+
})
|
|
93
|
+
.index('accountId', ['accountId'])
|
|
94
|
+
.index('accountId_providerId', ['accountId', 'providerId'])
|
|
95
|
+
.index('providerId_userId', ['providerId', 'userId'])
|
|
96
|
+
.index('userId', ['userId']),
|
|
97
|
+
verification: defineTable({
|
|
98
|
+
identifier: v.string(),
|
|
99
|
+
value: v.string(),
|
|
100
|
+
expiresAt: v.number(),
|
|
101
|
+
createdAt: v.number(),
|
|
102
|
+
updatedAt: v.number(),
|
|
103
|
+
})
|
|
104
|
+
.index('expiresAt', ['expiresAt'])
|
|
105
|
+
.index('identifier', ['identifier']),
|
|
106
|
+
rateLimit: defineTable({
|
|
107
|
+
key: v.string(),
|
|
108
|
+
count: v.number(),
|
|
109
|
+
lastRequest: v.number(),
|
|
110
|
+
})
|
|
111
|
+
.index('key', ['key'])
|
|
112
|
+
// Maintenance: rows idle past their window (maintenance.ts).
|
|
113
|
+
.index('lastRequest', ['lastRequest']),
|
|
114
|
+
// Passkey table (enabled by default in our wrapper via defaultPasskey plugin)
|
|
115
|
+
passkey: defineTable({
|
|
116
|
+
name: v.optional(v.union(v.null(), v.string())),
|
|
117
|
+
publicKey: v.string(),
|
|
118
|
+
userId: v.string(),
|
|
119
|
+
credentialID: v.string(),
|
|
120
|
+
counter: v.number(),
|
|
121
|
+
deviceType: v.string(),
|
|
122
|
+
backedUp: v.boolean(),
|
|
123
|
+
transports: v.optional(v.union(v.null(), v.string())),
|
|
124
|
+
createdAt: v.optional(v.union(v.null(), v.number())),
|
|
125
|
+
aaguid: v.optional(v.union(v.null(), v.string())),
|
|
126
|
+
})
|
|
127
|
+
.index('credentialID', ['credentialID'])
|
|
128
|
+
.index('userId', ['userId']),
|
|
129
|
+
// JWKS table is required by the @convex-dev/better-auth convex plugin (always adds jwt plugin for Convex JWT issuance)
|
|
130
|
+
jwks: defineTable({
|
|
131
|
+
publicKey: v.string(),
|
|
132
|
+
privateKey: v.string(),
|
|
133
|
+
createdAt: v.number(),
|
|
134
|
+
expiresAt: v.optional(v.union(v.null(), v.number())),
|
|
135
|
+
}),
|
|
136
|
+
// Organization plugin: workspaces, memberships, and invitations.
|
|
137
|
+
organization: defineTable({
|
|
138
|
+
name: v.string(),
|
|
139
|
+
slug: v.string(),
|
|
140
|
+
logo: v.optional(v.union(v.null(), v.string())),
|
|
141
|
+
createdAt: v.number(),
|
|
142
|
+
metadata: v.optional(v.union(v.null(), v.string())),
|
|
143
|
+
})
|
|
144
|
+
.index('name', ['name'])
|
|
145
|
+
.index('slug', ['slug']),
|
|
146
|
+
member: defineTable({
|
|
147
|
+
organizationId: v.string(),
|
|
148
|
+
userId: v.string(),
|
|
149
|
+
role: v.string(),
|
|
150
|
+
createdAt: v.number(),
|
|
151
|
+
})
|
|
152
|
+
.index('organizationId', ['organizationId'])
|
|
153
|
+
// Compound index beyond the generated set: serves the frequent
|
|
154
|
+
// "membership of user X in workspace Y" lookup (requireMember).
|
|
155
|
+
.index('organizationId_userId', ['organizationId', 'userId'])
|
|
156
|
+
// A workspace's owners and admins, whatever its size: who its notifications go to.
|
|
157
|
+
.index('organizationId_role', ['organizationId', 'role'])
|
|
158
|
+
.index('userId', ['userId'])
|
|
159
|
+
.index('role', ['role']),
|
|
160
|
+
invitation: defineTable({
|
|
161
|
+
organizationId: v.string(),
|
|
162
|
+
email: v.string(),
|
|
163
|
+
role: v.optional(v.union(v.null(), v.string())),
|
|
164
|
+
status: v.string(),
|
|
165
|
+
expiresAt: v.number(),
|
|
166
|
+
createdAt: v.number(),
|
|
167
|
+
inviterId: v.string(),
|
|
168
|
+
})
|
|
169
|
+
.index('organizationId', ['organizationId'])
|
|
170
|
+
.index('email', ['email'])
|
|
171
|
+
.index('role', ['role'])
|
|
172
|
+
.index('status', ['status'])
|
|
173
|
+
.index('inviterId', ['inviterId'])
|
|
174
|
+
// Maintenance: pending invitations long past their expiry.
|
|
175
|
+
.index('status_expiresAt', ['status', 'expiresAt']),
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Billing entitlement cache — the current user's active plans, granted benefits
|
|
179
|
+
* (feature-gating) and credit-meter balances, synced from Polar by `setupBilling`
|
|
180
|
+
* (see `src/convex/integrations/billing.ts`) and served reactively to
|
|
181
|
+
* `useFeatures()` / `useCredits()`.
|
|
182
|
+
*
|
|
183
|
+
* Kept inside this component so consumers add **nothing** to their own schema —
|
|
184
|
+
* the same "ships out of the box" rationale as the nested Resend email. The
|
|
185
|
+
* validators are shared with the component's billing functions (`billing.ts`) and
|
|
186
|
+
* the app-level cache mutation, so the shape is defined once.
|
|
187
|
+
*
|
|
188
|
+
* Intentionally NOT part of the auth-only `tables` export above, which is the
|
|
189
|
+
* Better Auth adapter's schema — billing data is the component's own.
|
|
190
|
+
*/
|
|
191
|
+
export const vEntitlementBenefit = v.object({
|
|
192
|
+
id: v.string(),
|
|
193
|
+
benefitId: v.string(),
|
|
194
|
+
type: v.string(),
|
|
195
|
+
// The benefit's live Polar metadata — lets consumers feature-gate by a friendly
|
|
196
|
+
// key (`has('premium')`) instead of a UUID. Optional so pre-metadata rows validate.
|
|
197
|
+
metadata: v.optional(v.record(v.string(), v.union(v.string(), v.number(), v.boolean()))),
|
|
198
|
+
// When the provider granted it (epoch ms), and what the customer state says
|
|
199
|
+
// the grant holds: a license key's masked display key, how many files a
|
|
200
|
+
// download grant carries, a repository grant's `owner/name`. Optional so
|
|
201
|
+
// rows synced before they were read validate.
|
|
202
|
+
grantedAt: v.optional(v.number()),
|
|
203
|
+
licenseKey: v.optional(v.string()),
|
|
204
|
+
files: v.optional(v.number()),
|
|
205
|
+
repository: v.optional(v.string()),
|
|
206
|
+
});
|
|
207
|
+
export const vEntitlementMeter = v.object({
|
|
208
|
+
meterId: v.string(),
|
|
209
|
+
consumedUnits: v.number(),
|
|
210
|
+
creditedUnits: v.number(),
|
|
211
|
+
balance: v.number(),
|
|
212
|
+
/**
|
|
213
|
+
* The current billing cycle the meter's units belong to, as epoch ms — the
|
|
214
|
+
* granting subscription's period, since a meter has no period of its own in
|
|
215
|
+
* the provider's model (`CustomerStateMeter` carries no dates; the cycle
|
|
216
|
+
* lives on `CustomerStateSubscription.currentPeriodStart/End`, joined by the
|
|
217
|
+
* subscription's meter list). Absent for meters granted only by one-time
|
|
218
|
+
* credit packs, which have no cycle at all.
|
|
219
|
+
*/
|
|
220
|
+
cycleStart: v.optional(v.number()),
|
|
221
|
+
cycleEnd: v.optional(v.number()),
|
|
222
|
+
/**
|
|
223
|
+
* Whether unspent credited units carry into the next cycle (the meter-credit
|
|
224
|
+
* benefit's `rollover`). `false` means the remaining balance expires at
|
|
225
|
+
* {@link cycleEnd} — the one fact a "use them or lose them" UI needs.
|
|
226
|
+
*/
|
|
227
|
+
rollover: v.optional(v.boolean()),
|
|
228
|
+
});
|
|
229
|
+
/**
|
|
230
|
+
* An in-flight credit reservation (reserve → run → settle): `debit` records
|
|
231
|
+
* it while atomically decrementing the cached balance, `settle` drops it once
|
|
232
|
+
* the provider event is ingested (releasing the unspent remainder when the
|
|
233
|
+
* final amount came in under the estimate), `release` re-credits on failure.
|
|
234
|
+
* `upsert` subtracts still-active reservations from freshly synced provider
|
|
235
|
+
* state so a webhook refresh can't resurrect balance that is being spent.
|
|
236
|
+
* Entries outlive their usefulness after `PENDING_SPEND_TTL_MS`
|
|
237
|
+
* (crashed flows) and are pruned on every touch — the cache stays a cache,
|
|
238
|
+
* never a ledger.
|
|
239
|
+
*/
|
|
240
|
+
export const vPendingSpend = v.object({
|
|
241
|
+
meterId: v.string(),
|
|
242
|
+
amount: v.number(),
|
|
243
|
+
externalId: v.string(),
|
|
244
|
+
at: v.number(),
|
|
245
|
+
/**
|
|
246
|
+
* When a long hold lapses, epoch ms: a reservation a queued job keeps
|
|
247
|
+
* while it waits (`reserveCredits({ hold })`). Without it the reservation
|
|
248
|
+
* lapses ten minutes after `at`.
|
|
249
|
+
*/
|
|
250
|
+
until: v.optional(v.number()),
|
|
251
|
+
/**
|
|
252
|
+
* The scheduled auto-release that hands this reservation back if its flow
|
|
253
|
+
* never settles (an abandoned stream). Recorded by `attachReleaseJob` so
|
|
254
|
+
* `settle` can hand the id back to the app and cancel the job — the TTL
|
|
255
|
+
* prune above only stops a stale entry from holding provider truth down; it
|
|
256
|
+
* never re-credits, so a reservation nobody settles needs its own release.
|
|
257
|
+
*/
|
|
258
|
+
releaseJobId: v.optional(v.string()),
|
|
259
|
+
});
|
|
260
|
+
/**
|
|
261
|
+
* A gift purchase: one user pays for products (credit packs, plans) that a
|
|
262
|
+
* recipient — identified by email — receives. Created at gift checkout, marked
|
|
263
|
+
* `paid` by the billing webhook, and `claimed` once the entitlement is attached
|
|
264
|
+
* to the recipient's billing entity (automatically when the recipient already
|
|
265
|
+
* has an account, otherwise on their first sign-in). The `billingGifts` row.
|
|
266
|
+
*/
|
|
267
|
+
const vGiftRow = v.object({
|
|
268
|
+
// Stored lowercased; matched case-insensitively against the claimant's email.
|
|
269
|
+
recipientEmail: v.string(),
|
|
270
|
+
purchaserUserId: v.string(),
|
|
271
|
+
purchaserEmail: v.optional(v.string()),
|
|
272
|
+
purchaserName: v.optional(v.string()),
|
|
273
|
+
// The credit pack the recipient receives: its provider product.
|
|
274
|
+
productIds: v.array(v.string()),
|
|
275
|
+
// Plain text, shown only inside the app once the recipient signs in.
|
|
276
|
+
message: v.optional(v.string()),
|
|
277
|
+
// 'pending' (checkout created) → 'paid' (the purchase order is paid and
|
|
278
|
+
// its claim discount minted) → 'claimed' (the recipient's $0 order is
|
|
279
|
+
// paid), or 'refunded' (the purchase was refunded before the claim).
|
|
280
|
+
status: v.string(),
|
|
281
|
+
// Before 0.2: the provider customer keyed by the recipient's email,
|
|
282
|
+
// which the purchase was billed to. Gifts are billed to the purchaser now.
|
|
283
|
+
billingCustomerId: v.optional(v.string()),
|
|
284
|
+
// The purchase order, paid by the purchaser's own billing entity.
|
|
285
|
+
billingOrderId: v.optional(v.string()),
|
|
286
|
+
purchaserEntityId: v.optional(v.string()),
|
|
287
|
+
// The pack's catalog key, and the private gift product the purchaser bought.
|
|
288
|
+
pack: v.optional(v.string()),
|
|
289
|
+
giftProductId: v.optional(v.string()),
|
|
290
|
+
// What the purchase order charged, in the currency's smallest unit.
|
|
291
|
+
amount: v.optional(v.number()),
|
|
292
|
+
currency: v.optional(v.string()),
|
|
293
|
+
// The single-use 100% discount the recipient claims the pack with.
|
|
294
|
+
discountId: v.optional(v.string()),
|
|
295
|
+
// The claim checkout in flight: who opened it, for which entity. A plan
|
|
296
|
+
// pass's claim holds the gift until `claimingUntil`, while it switches the
|
|
297
|
+
// workspace at the provider.
|
|
298
|
+
claimingEntityId: v.optional(v.string()),
|
|
299
|
+
claimingUserId: v.optional(v.string()),
|
|
300
|
+
claimingUntil: v.optional(v.number()),
|
|
301
|
+
// The purchaser's cancellation in flight, until then: no claim starts meanwhile.
|
|
302
|
+
cancelingUntil: v.optional(v.number()),
|
|
303
|
+
claimOrderId: v.optional(v.string()),
|
|
304
|
+
claimedByUserId: v.optional(v.string()),
|
|
305
|
+
// The entity the credits landed on: workspace id or user id.
|
|
306
|
+
claimedEntityId: v.optional(v.string()),
|
|
307
|
+
createdAt: v.number(),
|
|
308
|
+
paidAt: v.optional(v.number()),
|
|
309
|
+
notifiedAt: v.optional(v.number()),
|
|
310
|
+
claimedAt: v.optional(v.number()),
|
|
311
|
+
refundedAt: v.optional(v.number()),
|
|
312
|
+
// A plan pass (the gift is a plan for `months` months, not a pack): the
|
|
313
|
+
// plan's catalog key and the length the purchaser paid for.
|
|
314
|
+
plan: v.optional(v.string()),
|
|
315
|
+
months: v.optional(v.number()),
|
|
316
|
+
// When the notice goes out: set when the purchase is paid (the moment
|
|
317
|
+
// it is paid, or the date the purchaser chose). The gift is the
|
|
318
|
+
// recipient's to see and claim once `deliveredAt` is stamped; a row
|
|
319
|
+
// with neither is a gift paid before delivery dates, delivered when paid.
|
|
320
|
+
deliverAt: v.optional(v.number()),
|
|
321
|
+
deliveredAt: v.optional(v.number()),
|
|
322
|
+
// The last notice sent (the first, a reminder or a resend), and how many.
|
|
323
|
+
noticedAt: v.optional(v.number()),
|
|
324
|
+
noticeCount: v.optional(v.number()),
|
|
325
|
+
// How many times the purchaser changed the address: each address's notices carry their own idempotency keys.
|
|
326
|
+
recipientChanges: v.optional(v.number()),
|
|
327
|
+
// The one reminder, a week after delivery.
|
|
328
|
+
remindedAt: v.optional(v.number()),
|
|
329
|
+
// A pass once claimed: the free subscription it switched, when it began
|
|
330
|
+
// and ends (the package keeps the end date), the scheduled return to the
|
|
331
|
+
// free plan, the ending notice and the end itself.
|
|
332
|
+
passSubscriptionId: v.optional(v.string()),
|
|
333
|
+
passStartedAt: v.optional(v.number()),
|
|
334
|
+
passEndsAt: v.optional(v.number()),
|
|
335
|
+
// From when the return may be booked: once the pass's last billing cycle began.
|
|
336
|
+
passReturnFrom: v.optional(v.number()),
|
|
337
|
+
passReturnScheduledAt: v.optional(v.number()),
|
|
338
|
+
passNoticedAt: v.optional(v.number()),
|
|
339
|
+
passEndedAt: v.optional(v.number()),
|
|
340
|
+
// A reverse trial (LIFECYCLE): the pass a new workspace started on,
|
|
341
|
+
// with no purchaser (`status` 'trial'). `recipientEmail` holds its
|
|
342
|
+
// owner's address with plus tags and dots taken out, so an address
|
|
343
|
+
// starts one.
|
|
344
|
+
reverseTrial: v.optional(v.boolean()),
|
|
345
|
+
// A referral reward (REF): the pass a referrer on the free plan got for
|
|
346
|
+
// free months, with no purchaser (`status` 'reward'). `rewardId` is the
|
|
347
|
+
// referral it came from; `recipientEmail` is empty.
|
|
348
|
+
rewardId: v.optional(v.string()),
|
|
349
|
+
});
|
|
350
|
+
/** A gift as the component's reads return it: its id, without the claim and cancel holds or the reward it came from. */
|
|
351
|
+
export const vGift = vGiftRow.omit('claimingUntil', 'cancelingUntil', 'passReturnFrom', 'rewardId').extend({ id: v.string() });
|
|
352
|
+
/** A save offer's terms, as the cancel flow made it (LIFECYCLE). */
|
|
353
|
+
export const vSaveOfferTerms = v.object({
|
|
354
|
+
kind: v.union(v.literal('pause'), v.literal('downgrade'), v.literal('discount')),
|
|
355
|
+
months: v.optional(v.number()),
|
|
356
|
+
resumesAt: v.optional(v.number()),
|
|
357
|
+
plan: v.optional(v.string()),
|
|
358
|
+
productId: v.optional(v.string()),
|
|
359
|
+
discount: v.optional(v.string()),
|
|
360
|
+
});
|
|
361
|
+
/** A renewing checkout's consent proof, as the `billingRenewalConsents` table stores it. */
|
|
362
|
+
export const vRenewalConsent = v.object({
|
|
363
|
+
checkoutId: v.string(),
|
|
364
|
+
entityId: v.string(),
|
|
365
|
+
userId: v.optional(v.string()),
|
|
366
|
+
productId: v.string(),
|
|
367
|
+
amount: v.number(),
|
|
368
|
+
currency: v.string(),
|
|
369
|
+
interval: v.string(),
|
|
370
|
+
intervalCount: v.number(),
|
|
371
|
+
termsVersion: v.optional(v.string()),
|
|
372
|
+
createdAt: v.number(),
|
|
373
|
+
subscriptionId: v.optional(v.string()),
|
|
374
|
+
consentedAt: v.optional(v.number()),
|
|
375
|
+
});
|
|
376
|
+
export const billingTables = {
|
|
377
|
+
billingEntitlements: defineTable({
|
|
378
|
+
// The billing entity id — the workspace id (billTo: 'workspace', the
|
|
379
|
+
// default) or the auth user id (billTo: 'user'). Opaque string either way.
|
|
380
|
+
userId: v.string(),
|
|
381
|
+
customerId: v.optional(v.string()),
|
|
382
|
+
activeProductIds: v.array(v.string()),
|
|
383
|
+
benefits: v.array(vEntitlementBenefit),
|
|
384
|
+
meters: v.array(vEntitlementMeter),
|
|
385
|
+
// In-flight spend reservations; see vPendingSpend. Optional so existing
|
|
386
|
+
// rows validate.
|
|
387
|
+
pendingSpends: v.optional(v.array(vPendingSpend)),
|
|
388
|
+
updatedAt: v.number(),
|
|
389
|
+
})
|
|
390
|
+
.index('userId', ['userId'])
|
|
391
|
+
.index('customerId', ['customerId']),
|
|
392
|
+
// Live benefit metadata, snapshotted per benefit (not per grant): feature
|
|
393
|
+
// gating joins this at read time, so a `benefit.updated` webhook patches
|
|
394
|
+
// one row here and every `useFeatures()` subscriber updates reactively —
|
|
395
|
+
// no per-sync provider fan-out, no per-row staleness.
|
|
396
|
+
billingBenefitMetadata: defineTable({
|
|
397
|
+
benefitId: v.string(),
|
|
398
|
+
metadata: v.record(v.string(), v.union(v.string(), v.number(), v.boolean())),
|
|
399
|
+
// The benefit's name at the provider (its description), joined onto
|
|
400
|
+
// each granted benefit the same way. Optional so earlier rows validate.
|
|
401
|
+
description: v.optional(v.string()),
|
|
402
|
+
updatedAt: v.number(),
|
|
403
|
+
})
|
|
404
|
+
.index('benefitId', ['benefitId']),
|
|
405
|
+
// How many discount codes the provider refused at checkout, per billing
|
|
406
|
+
// entity, in a fixed one-hour window (the codes themselves are not kept):
|
|
407
|
+
// a checkout must not test codes one after another. `refused` also counts
|
|
408
|
+
// a code in flight, reserved before the provider is asked and given back
|
|
409
|
+
// when it accepts. One row per entity, reset when its window ends.
|
|
410
|
+
billingDiscountAttempts: defineTable({
|
|
411
|
+
userId: v.string(),
|
|
412
|
+
refused: v.number(),
|
|
413
|
+
windowStart: v.number(),
|
|
414
|
+
})
|
|
415
|
+
.index('userId', ['userId']),
|
|
416
|
+
// One trial per owner, across every workspace they own and whatever
|
|
417
|
+
// happens to those workspaces later. A row per owner and entity: `used`
|
|
418
|
+
// once a subscription of the entity started a trial, else a hold a
|
|
419
|
+
// checkout took so a second workspace's checkout at the same time starts
|
|
420
|
+
// none.
|
|
421
|
+
billingTrials: defineTable({
|
|
422
|
+
ownerUserId: v.string(),
|
|
423
|
+
entityId: v.string(),
|
|
424
|
+
used: v.boolean(),
|
|
425
|
+
at: v.number(),
|
|
426
|
+
})
|
|
427
|
+
.index('ownerUserId', ['ownerUserId']),
|
|
428
|
+
// What the provider's subscription carries and the synced subscriptions
|
|
429
|
+
// table does not: the plan change scheduled for the next period and when a
|
|
430
|
+
// paused subscription resumes. One row per subscription, written from its
|
|
431
|
+
// `subscription.*` webhooks and from a lifecycle call's response, and kept
|
|
432
|
+
// only when the provider's `modifiedAt` is at least the stored one, so a
|
|
433
|
+
// late delivery never overwrites a newer state.
|
|
434
|
+
billingSubscriptionChanges: defineTable({
|
|
435
|
+
subscriptionId: v.string(),
|
|
436
|
+
// The billing entity the subscription belongs to.
|
|
437
|
+
userId: v.string(),
|
|
438
|
+
// `null` when no plan change is scheduled.
|
|
439
|
+
pendingChange: v.union(v.null(), v.object({ productId: v.string(), appliesAt: v.number() })),
|
|
440
|
+
resumesAt: v.union(v.null(), v.number()),
|
|
441
|
+
// The provider's `modifiedAt` (else `createdAt`) of the state written, epoch ms.
|
|
442
|
+
modifiedAt: v.number(),
|
|
443
|
+
})
|
|
444
|
+
.index('subscriptionId', ['subscriptionId'])
|
|
445
|
+
.index('userId', ['userId']),
|
|
446
|
+
// The plan quotas a billing entity has ever counted, one row per entity
|
|
447
|
+
// and quota key: the counts themselves live in the app's sharded counter,
|
|
448
|
+
// which cannot list them, so forgetting the entity finds every count here,
|
|
449
|
+
// a quota the catalog dropped or a revoked grant named included.
|
|
450
|
+
billingQuotaKeys: defineTable({
|
|
451
|
+
userId: v.string(),
|
|
452
|
+
key: v.string(),
|
|
453
|
+
})
|
|
454
|
+
.index('userId_key', ['userId', 'key']),
|
|
455
|
+
// A billing entity an account's erasure is deleting (`account.forget`):
|
|
456
|
+
// marked before its provider customer is deleted, so a subscription that
|
|
457
|
+
// ends in the meantime starts no free plan for it again. Kept 30 days.
|
|
458
|
+
billingDeletions: defineTable({
|
|
459
|
+
entityId: v.string(),
|
|
460
|
+
at: v.number(),
|
|
461
|
+
})
|
|
462
|
+
.index('entityId', ['entityId'])
|
|
463
|
+
.index('at', ['at']),
|
|
464
|
+
billingGifts: defineTable(vGiftRow)
|
|
465
|
+
.index('recipientEmail', ['recipientEmail'])
|
|
466
|
+
.index('recipientEmail_status', ['recipientEmail', 'status'])
|
|
467
|
+
.index('recipientEmail_createdAt', ['recipientEmail', 'createdAt'])
|
|
468
|
+
.index('status', ['status'])
|
|
469
|
+
.index('purchaserUserId_createdAt', ['purchaserUserId', 'createdAt'])
|
|
470
|
+
// The sweep's reads: deliveries due, reminders due, passes to follow.
|
|
471
|
+
.index('status_deliveredAt_deliverAt', ['status', 'deliveredAt', 'deliverAt'])
|
|
472
|
+
.index('status_remindedAt_deliveredAt', ['status', 'remindedAt', 'deliveredAt'])
|
|
473
|
+
.index('passEndedAt_passEndsAt', ['passEndedAt', 'passEndsAt'])
|
|
474
|
+
.index('passEndedAt_passReturnScheduledAt_passReturnFrom', ['passEndedAt', 'passReturnScheduledAt', 'passReturnFrom'])
|
|
475
|
+
.index('passEndedAt_passNoticedAt_reverseTrial_passEndsAt', ['passEndedAt', 'passNoticedAt', 'reverseTrial', 'passEndsAt'])
|
|
476
|
+
.index('claimedEntityId_passEndedAt', ['claimedEntityId', 'passEndedAt'])
|
|
477
|
+
// The pass a workspace holds: a claimed pack has no end date, so it is out of the range.
|
|
478
|
+
.index('claimedEntityId_passEndedAt_passEndsAt', ['claimedEntityId', 'passEndedAt', 'passEndsAt'])
|
|
479
|
+
// A plan pass's claim in flight, by the workspace it goes to.
|
|
480
|
+
.index('claimingEntityId_claimingUntil', ['claimingEntityId', 'claimingUntil'])
|
|
481
|
+
.index('rewardId', ['rewardId']),
|
|
482
|
+
/**
|
|
483
|
+
* Where the gift sweep wakes the app: the handle of the scaffold's
|
|
484
|
+
* `billing:runGiftSweep`, kept with the first gift that is paid. The
|
|
485
|
+
* component sweeps on its own cron, and the app does the work that needs
|
|
486
|
+
* its email and its billing provider.
|
|
487
|
+
*/
|
|
488
|
+
billingGiftSweep: defineTable({
|
|
489
|
+
wake: v.string(),
|
|
490
|
+
updatedAt: v.number(),
|
|
491
|
+
}),
|
|
492
|
+
// The cancel flow's save offers (LIFECYCLE): one per cancellation, and
|
|
493
|
+
// one per billing entity in 12 months. The browser names an offer by its
|
|
494
|
+
// id; the server finds what it made here, for that subscription, and
|
|
495
|
+
// takes it once.
|
|
496
|
+
billingSaveOffers: defineTable({
|
|
497
|
+
entityId: v.string(),
|
|
498
|
+
subscriptionId: v.string(),
|
|
499
|
+
reason: v.string(),
|
|
500
|
+
offer: vSaveOfferTerms,
|
|
501
|
+
madeAt: v.number(),
|
|
502
|
+
acceptedAt: v.optional(v.number()),
|
|
503
|
+
})
|
|
504
|
+
.index('entityId_madeAt', ['entityId', 'madeAt'])
|
|
505
|
+
.index('madeAt', ['madeAt']),
|
|
506
|
+
// Proof of a renewing subscription's consent, as California's automatic
|
|
507
|
+
// renewal law asks a seller to keep it: written as the checkout is made
|
|
508
|
+
// (what it showed: the plan, the price and its interval, the terms
|
|
509
|
+
// version, who), confirmed when the subscription it started arrives, and
|
|
510
|
+
// deleted three years after. An unconfirmed row goes after two days.
|
|
511
|
+
billingRenewalConsents: defineTable(vRenewalConsent)
|
|
512
|
+
.index('checkoutId', ['checkoutId'])
|
|
513
|
+
.index('entityId', ['entityId'])
|
|
514
|
+
.index('userId', ['userId'])
|
|
515
|
+
.index('consentedAt_createdAt', ['consentedAt', 'createdAt'])
|
|
516
|
+
.index('subscriptionId_consentedAt', ['subscriptionId', 'consentedAt']),
|
|
517
|
+
// What the billing lifecycle did once and when: the annual renewal
|
|
518
|
+
// reminder of a subscription (`renewal:<id>`), an abandoned checkout's
|
|
519
|
+
// hand-off (`checkout:<id>`). Kept two years.
|
|
520
|
+
billingLifecycleMarks: defineTable({
|
|
521
|
+
key: v.string(),
|
|
522
|
+
at: v.number(),
|
|
523
|
+
})
|
|
524
|
+
.index('key', ['key'])
|
|
525
|
+
.index('at', ['at']),
|
|
526
|
+
// An EU withdrawal through the withdrawal button: the subscription it
|
|
527
|
+
// ended, who pressed it and when (the receipt's date and time). Kept
|
|
528
|
+
// three years, as the consent proof is.
|
|
529
|
+
billingWithdrawals: defineTable({
|
|
530
|
+
entityId: v.string(),
|
|
531
|
+
subscriptionId: v.string(),
|
|
532
|
+
userId: v.string(),
|
|
533
|
+
productId: v.string(),
|
|
534
|
+
at: v.number(),
|
|
535
|
+
})
|
|
536
|
+
.index('subscriptionId', ['subscriptionId'])
|
|
537
|
+
.index('entityId', ['entityId'])
|
|
538
|
+
.index('userId', ['userId'])
|
|
539
|
+
.index('at', ['at']),
|
|
540
|
+
};
|
|
541
|
+
/** A metered stream's request, as the `aiRequests` table stores it. */
|
|
542
|
+
export const vAiRequest = v.object({
|
|
543
|
+
streamId: v.string(),
|
|
544
|
+
/** Which `ai.stream({ name })` definition drives this request. */
|
|
545
|
+
name: v.string(),
|
|
546
|
+
/** The billing entity (workspace/user) the credits reserve against. */
|
|
547
|
+
entityId: v.string(),
|
|
548
|
+
/** The signed-in caller (for member attribution inside workspaces). */
|
|
549
|
+
userId: v.string(),
|
|
550
|
+
/** JSON-encoded handler args. */
|
|
551
|
+
args: v.string(),
|
|
552
|
+
meterId: v.optional(v.string()),
|
|
553
|
+
cost: v.number(),
|
|
554
|
+
externalId: v.string(),
|
|
555
|
+
status: v.union(v.literal('reserved'), v.literal('streaming'), v.literal('settled'), v.literal('released')),
|
|
556
|
+
createdAt: v.number(),
|
|
557
|
+
});
|
|
558
|
+
/** A knowledge document, as the `aiDocuments` table stores it. */
|
|
559
|
+
export const vAiDocument = v.object({
|
|
560
|
+
/** The knowledge store: its embedding model and dimension. */
|
|
561
|
+
store: v.string(),
|
|
562
|
+
/** The namespace: the billing entity whose members find it, or `app`. */
|
|
563
|
+
owner: v.string(),
|
|
564
|
+
/** The member who added it; empty for the app's own. */
|
|
565
|
+
addedBy: v.string(),
|
|
566
|
+
title: v.string(),
|
|
567
|
+
key: v.optional(v.string()),
|
|
568
|
+
status: v.union(v.literal('pending'), v.literal('ready'), v.literal('failed')),
|
|
569
|
+
entryId: v.optional(v.string()),
|
|
570
|
+
characters: v.number(),
|
|
571
|
+
createdAt: v.number(),
|
|
572
|
+
remove: v.string(),
|
|
573
|
+
read: v.string(),
|
|
574
|
+
namespaces: v.optional(v.string()),
|
|
575
|
+
removeNamespace: v.optional(v.string()),
|
|
576
|
+
});
|
|
577
|
+
/**
|
|
578
|
+
* Metered-stream request plumbing for `setupAi().stream` — the HTTP stream
|
|
579
|
+
* endpoint can't carry Convex args, so `start` records the request (args,
|
|
580
|
+
* billing entity, reservation) and the HTTP dispatcher loads it by stream id.
|
|
581
|
+
* Status mirrors the credit reservation: `reserved` → `streaming` (the
|
|
582
|
+
* one dispatch that claimed it runs the model) → `settled` (event
|
|
583
|
+
* ingested) or `released` (failed — nothing charged). Rows are plumbing, not
|
|
584
|
+
* a usage ledger — the provider event is the durable record; they are safe to
|
|
585
|
+
* prune.
|
|
586
|
+
*/
|
|
587
|
+
export const aiTables = {
|
|
588
|
+
aiRequests: defineTable(vAiRequest)
|
|
589
|
+
.index('streamId', ['streamId'])
|
|
590
|
+
// Maintenance: finished requests past their window.
|
|
591
|
+
.index('status_createdAt', ['status', 'createdAt'])
|
|
592
|
+
// An account's erasure.
|
|
593
|
+
.index('userId', ['userId']),
|
|
594
|
+
/**
|
|
595
|
+
* Who owns each chat thread (`ai.chat`): the thread lives in the app's
|
|
596
|
+
* Agent component, this row says which chat, billing entity (or `app`)
|
|
597
|
+
* and person it belongs to, its title and when it last changed. The two
|
|
598
|
+
* handles reach back into the Agent component: `remove` deletes the
|
|
599
|
+
* thread with its messages (an erasure calls it), `read` lists its
|
|
600
|
+
* messages (an export reads through it).
|
|
601
|
+
*/
|
|
602
|
+
aiThreads: defineTable({
|
|
603
|
+
threadId: v.string(),
|
|
604
|
+
chat: v.string(),
|
|
605
|
+
/** The billing entity that pays for its replies, or `app` for a chat the app pays for. */
|
|
606
|
+
owner: v.string(),
|
|
607
|
+
userId: v.string(),
|
|
608
|
+
title: v.string(),
|
|
609
|
+
updatedAt: v.number(),
|
|
610
|
+
remove: v.string(),
|
|
611
|
+
read: v.string(),
|
|
612
|
+
})
|
|
613
|
+
.index('threadId', ['threadId'])
|
|
614
|
+
.index('userId_chat_owner_updatedAt', ['userId', 'chat', 'owner', 'updatedAt'])
|
|
615
|
+
// A workspace's erasure.
|
|
616
|
+
.index('owner', ['owner'])
|
|
617
|
+
// An account's erasure and export.
|
|
618
|
+
.index('userId', ['userId']),
|
|
619
|
+
/**
|
|
620
|
+
* The documents of a knowledge store (`ai.knowledge`): the passages and
|
|
621
|
+
* their embeddings live in the app's RAG component, this row holds the
|
|
622
|
+
* document's owner, who added it, its title and status. `remove`
|
|
623
|
+
* deletes its entry there; `read` lists its passages for an export;
|
|
624
|
+
* `namespaces` and `removeNamespace` find its owner's namespace there
|
|
625
|
+
* and delete it, passages and all, when the owner goes.
|
|
626
|
+
*/
|
|
627
|
+
aiDocuments: defineTable(vAiDocument)
|
|
628
|
+
.index('store_owner_createdAt', ['store', 'owner', 'createdAt'])
|
|
629
|
+
.index('store_owner_key', ['store', 'owner', 'key'])
|
|
630
|
+
.index('owner', ['owner'])
|
|
631
|
+
.index('addedBy', ['addedBy']),
|
|
632
|
+
/**
|
|
633
|
+
* What made each generated file `ctx.storeImage` stored (`setupAi({
|
|
634
|
+
* provenance })`): the models, when, and the ids of the app's own rows
|
|
635
|
+
* and files it was made from — never their content. The file itself
|
|
636
|
+
* lives in the app's storage, its content credentials written in.
|
|
637
|
+
*/
|
|
638
|
+
aiProvenance: defineTable({
|
|
639
|
+
storageId: v.string(),
|
|
640
|
+
/** The job whose step stored it, when a step did. */
|
|
641
|
+
jobId: v.optional(v.string()),
|
|
642
|
+
/** The billing entity it was made for (a job's owner), or `app`. */
|
|
643
|
+
owner: v.string(),
|
|
644
|
+
models: v.array(v.string()),
|
|
645
|
+
inputs: v.array(v.string()),
|
|
646
|
+
sourceType: v.union(v.literal('trainedAlgorithmicMedia'), v.literal('compositeWithTrainedAlgorithmicMedia')),
|
|
647
|
+
/** The label of the signed manifest written into the file; unset when none was. */
|
|
648
|
+
manifest: v.optional(v.string()),
|
|
649
|
+
createdAt: v.number(),
|
|
650
|
+
})
|
|
651
|
+
.index('storageId', ['storageId'])
|
|
652
|
+
.index('jobId', ['jobId'])
|
|
653
|
+
// A workspace's erasure.
|
|
654
|
+
.index('owner', ['owner']),
|
|
655
|
+
/**
|
|
656
|
+
* What AI cost, per person per UTC day: the job queue's steps, metered
|
|
657
|
+
* actions, streams, chat replies and knowledge embeddings, each added as
|
|
658
|
+
* its model calls end (a failed run's calls included, since they were
|
|
659
|
+
* paid for), and the runs that ended that day. The admin console's Costs
|
|
660
|
+
* tab lists the costliest people from it. `who` is the member who made
|
|
661
|
+
* the calls, `guest:0` to `guest:7` for visitors' jobs, else the billing
|
|
662
|
+
* entity that paid.
|
|
663
|
+
*/
|
|
664
|
+
aiCosts: defineTable({
|
|
665
|
+
/** The UTC day, as its first millisecond. */
|
|
666
|
+
day: v.number(),
|
|
667
|
+
who: v.string(),
|
|
668
|
+
/** The billing entity the latest of these runs was paid by, or `app`. */
|
|
669
|
+
owner: v.string(),
|
|
670
|
+
/** US dollars, as the gateway reported them; calls through a key of your own report none. */
|
|
671
|
+
usd: v.number(),
|
|
672
|
+
input: v.number(),
|
|
673
|
+
output: v.number(),
|
|
674
|
+
cached: v.number(),
|
|
675
|
+
/** Runs that ended that day: a job (done, failed or canceled), or one metered call, stream, reply or embedding. */
|
|
676
|
+
runs: v.number(),
|
|
677
|
+
})
|
|
678
|
+
.index('by_day_and_who', ['day', 'who'])
|
|
679
|
+
.index('by_who', ['who']),
|
|
680
|
+
/**
|
|
681
|
+
* The same costs summed for the whole app per UTC day, in a few rows a day
|
|
682
|
+
* (`shard`, picked by who spent), so calls made at once rarely write the
|
|
683
|
+
* same one. Written in the same mutation as the person's row: the Costs
|
|
684
|
+
* tab's totals and the AI spend alert read these, never the people's rows.
|
|
685
|
+
*/
|
|
686
|
+
aiCostDays: defineTable({
|
|
687
|
+
day: v.number(),
|
|
688
|
+
shard: v.number(),
|
|
689
|
+
usd: v.number(),
|
|
690
|
+
input: v.number(),
|
|
691
|
+
output: v.number(),
|
|
692
|
+
cached: v.number(),
|
|
693
|
+
runs: v.number(),
|
|
694
|
+
})
|
|
695
|
+
.index('by_day_and_shard', ['day', 'shard']),
|
|
696
|
+
};
|
|
697
|
+
/** How a webhook delivery ended, as the delivery log records it. */
|
|
698
|
+
export const vDeliveryOutcome = v.union(v.literal('ok'), v.literal('invalid_signature'), v.literal('unknown_type'), v.literal('handler_error'), v.literal('duplicate'), v.literal('oversized'), v.literal('missing_secret'));
|
|
699
|
+
/**
|
|
700
|
+
* The webhook delivery log (see `webhooks.ts`) — powers redelivery dedupe and
|
|
701
|
+
* the DevTools Webhooks page, never a source of truth. A delivery whose
|
|
702
|
+
* signature verified gets a row in the `webhookDeliveries` ring; a request
|
|
703
|
+
* answered before any signature verified is counted in `webhookTallies`, one
|
|
704
|
+
* row per service and outcome; `webhookTrims` holds the ring's next trim.
|
|
705
|
+
*/
|
|
706
|
+
export const webhookTables = {
|
|
707
|
+
webhookDeliveries: defineTable({
|
|
708
|
+
service: v.string(),
|
|
709
|
+
/** The provider delivery id (webhook-id / svix-id header), truncated. */
|
|
710
|
+
deliveryId: v.string(),
|
|
711
|
+
type: v.optional(v.string()),
|
|
712
|
+
// The tallied outcomes stay in the union for rows written before they
|
|
713
|
+
// were tallied; the trim ages them out with the rest.
|
|
714
|
+
outcome: vDeliveryOutcome,
|
|
715
|
+
note: v.optional(v.string()),
|
|
716
|
+
receivedAt: v.number(),
|
|
717
|
+
/** When an administrator last asked the provider to send this delivery again (`replayWebhookDelivery`). */
|
|
718
|
+
replayedAt: v.optional(v.number()),
|
|
719
|
+
})
|
|
720
|
+
.index('receivedAt', ['receivedAt'])
|
|
721
|
+
.index('service_deliveryId', ['service', 'deliveryId'])
|
|
722
|
+
// Dedupe's lookup: the delivery's `ok` row, whatever else it holds.
|
|
723
|
+
.index('service_deliveryId_outcome', ['service', 'deliveryId', 'outcome']),
|
|
724
|
+
webhookTallies: defineTable({
|
|
725
|
+
service: v.string(),
|
|
726
|
+
outcome: v.union(v.literal('invalid_signature'), v.literal('duplicate'), v.literal('oversized'), v.literal('missing_secret')),
|
|
727
|
+
/** The latest such request's delivery id header, truncated. */
|
|
728
|
+
deliveryId: v.string(),
|
|
729
|
+
type: v.optional(v.string()),
|
|
730
|
+
note: v.optional(v.string()),
|
|
731
|
+
/** Requests counted since the tally last went a day without one. */
|
|
732
|
+
count: v.number(),
|
|
733
|
+
/** When the latest one arrived. */
|
|
734
|
+
receivedAt: v.number(),
|
|
735
|
+
})
|
|
736
|
+
.index('service_outcome', ['service', 'outcome'])
|
|
737
|
+
.index('receivedAt', ['receivedAt']),
|
|
738
|
+
webhookTrims: defineTable({
|
|
739
|
+
/** When the scheduled trim runs; the first delivery after it schedules the next. */
|
|
740
|
+
dueAt: v.number(),
|
|
741
|
+
}),
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* Email plumbing (see `email.ts`). The dev inbox keeps no table: it reads
|
|
745
|
+
* the mail a test address received from the email provider's own log.
|
|
746
|
+
*/
|
|
747
|
+
export const emailTables = {
|
|
748
|
+
/**
|
|
749
|
+
* A secret email on its way out (`sendSecret` in `email.ts`): the message
|
|
750
|
+
* waits here only until the provider answers, then the row is deleted, so
|
|
751
|
+
* a code or a deletion link is never kept with the email records.
|
|
752
|
+
*/
|
|
753
|
+
secretOutbox: defineTable({
|
|
754
|
+
/** The message, as `send` takes it. */
|
|
755
|
+
message: v.object(sendArgs),
|
|
756
|
+
/** Delivery attempts so far. */
|
|
757
|
+
attempts: v.number(),
|
|
758
|
+
/** When the next attempt is due; the watchdog re-runs one long overdue. */
|
|
759
|
+
nextAttemptAt: v.number(),
|
|
760
|
+
/** The delivery chain that owns the row; a run of an older one stops. */
|
|
761
|
+
generation: v.number(),
|
|
762
|
+
/** When the secret stops working, at most SECRET_OUTBOX_TTL_MS after the send: nothing is sent after it. */
|
|
763
|
+
expiresAt: v.number(),
|
|
764
|
+
/** The caller's idempotency key, deduplicating a send while one waits. */
|
|
765
|
+
idempotencyKey: v.optional(v.string()),
|
|
766
|
+
/** The one address it goes to, lowercased, so an erasure finds it by its index. Unset for several, and on a row from before 0.2. */
|
|
767
|
+
recipient: v.optional(v.string()),
|
|
768
|
+
})
|
|
769
|
+
.index('idempotencyKey', ['idempotencyKey'])
|
|
770
|
+
.index('recipient', ['recipient']),
|
|
771
|
+
/**
|
|
772
|
+
* A send the person's quiet hours hold (`send` with `deliverAt`), until
|
|
773
|
+
* their end: `sendHeld` runs by the row's id and deletes it, and an
|
|
774
|
+
* erasure deletes it first, so the message never waits in a scheduled
|
|
775
|
+
* function's arguments.
|
|
776
|
+
*/
|
|
777
|
+
heldEmails: defineTable({
|
|
778
|
+
/** The message, as `send` takes it. */
|
|
779
|
+
message: v.object(sendArgs),
|
|
780
|
+
/** The sender it goes from. */
|
|
781
|
+
from: v.string(),
|
|
782
|
+
/** Its first recipient, lower-cased: what an erasure finds it by. */
|
|
783
|
+
email: v.string(),
|
|
784
|
+
/** When it goes. */
|
|
785
|
+
deliverAt: v.number(),
|
|
786
|
+
/** A send under a topic: the contact and the topic asked again as it goes. */
|
|
787
|
+
hold: v.optional(v.object({ contactId: v.string(), topic: v.object({ key: v.string(), subscribedByDefault: v.boolean() }) })),
|
|
788
|
+
})
|
|
789
|
+
.index('email', ['email']),
|
|
790
|
+
/**
|
|
791
|
+
* How long the email records are kept, as the app's `setupEmail({
|
|
792
|
+
* retention })` last sent it with an email. One row at most; absent, the
|
|
793
|
+
* defaults hold.
|
|
794
|
+
*/
|
|
795
|
+
emailSettings: defineTable({
|
|
796
|
+
finalizedMs: v.optional(v.number()),
|
|
797
|
+
abandonedMs: v.optional(v.number()),
|
|
798
|
+
}),
|
|
799
|
+
};
|
|
800
|
+
/**
|
|
801
|
+
* The email provider's suppression list, mirrored (see `suppressions.ts`):
|
|
802
|
+
* an address the provider stopped delivering to after a hard bounce, a
|
|
803
|
+
* complaint or by hand, recorded from its `suppression.added` and
|
|
804
|
+
* `email.suppressed` events and marked lifted by `suppression.removed`.
|
|
805
|
+
* The provider stays the source of truth; the copy lets a sign-in read one
|
|
806
|
+
* index before a code is sent. A lifted row stays a little while, so an
|
|
807
|
+
* older event arriving late cannot put the address back.
|
|
808
|
+
*/
|
|
809
|
+
export const suppressionTables = {
|
|
810
|
+
suppressions: defineTable({
|
|
811
|
+
/** The address, trimmed and lower case. */
|
|
812
|
+
email: v.string(),
|
|
813
|
+
/** Why the provider suppressed it: `bounce`, `complaint`, `manual`, or `dropped` when only a dropped send told us. */
|
|
814
|
+
origin: v.union(v.literal('bounce'), v.literal('complaint'), v.literal('manual'), v.literal('dropped')),
|
|
815
|
+
/** When the provider suppressed it, epoch ms. */
|
|
816
|
+
suppressedAt: v.number(),
|
|
817
|
+
/** When the provider lifted it; absent while it stands. */
|
|
818
|
+
liftedAt: v.optional(v.number()),
|
|
819
|
+
/** When the provider made the latest change this row follows: an older event changes nothing. */
|
|
820
|
+
changedAt: v.number(),
|
|
821
|
+
})
|
|
822
|
+
.index('email', ['email'])
|
|
823
|
+
// The admin list, newest first, standing ones only; and the prune of lifted ones.
|
|
824
|
+
.index('liftedAt_suppressedAt', ['liftedAt', 'suppressedAt']),
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
* The devices each account signed in from (see `devices.ts`): a keyed hash
|
|
828
|
+
* of the device's fingerprint (its browser, system and network range),
|
|
829
|
+
* never the fingerprint, so a sign-in from a device the account has not
|
|
830
|
+
* used before is told apart and alerted. Pruned a year after a device was
|
|
831
|
+
* last seen.
|
|
832
|
+
*/
|
|
833
|
+
export const deviceTables = {
|
|
834
|
+
knownDevices: defineTable({
|
|
835
|
+
userId: v.string(),
|
|
836
|
+
/** HMAC of the browser, the system and the network range, under the auth secret and bound to the account. */
|
|
837
|
+
fingerprint: v.string(),
|
|
838
|
+
/** HMAC of the browser and the system alone: the one-email-a-day rule's key, which a new network range keeps. */
|
|
839
|
+
device: v.string(),
|
|
840
|
+
/** The browser and system names, for the Alerts section ("Chrome on macOS"); each absent when unknown. */
|
|
841
|
+
browser: v.optional(v.string()),
|
|
842
|
+
os: v.optional(v.string()),
|
|
843
|
+
firstSeenAt: v.number(),
|
|
844
|
+
lastSeenAt: v.number(),
|
|
845
|
+
/** Set when its first sign-in was alerted: a new device, or a recovery. */
|
|
846
|
+
alertedAt: v.optional(v.number()),
|
|
847
|
+
/** Its alert's sign-in was a recovery code's. */
|
|
848
|
+
recovery: v.optional(v.boolean()),
|
|
849
|
+
/** When its alert went out by email; the one-email-a-day rule reads it. */
|
|
850
|
+
emailedAt: v.optional(v.number()),
|
|
851
|
+
/** The session its alert's sign-in opened, so the Alerts section can sign it out. */
|
|
852
|
+
sessionId: v.optional(v.string()),
|
|
853
|
+
})
|
|
854
|
+
.index('userId_fingerprint', ['userId', 'fingerprint'])
|
|
855
|
+
.index('userId_device_emailedAt', ['userId', 'device', 'emailedAt'])
|
|
856
|
+
.index('userId_alertedAt', ['userId', 'alertedAt'])
|
|
857
|
+
.index('lastSeenAt', ['lastSeenAt']),
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* The component's own housekeeping (see `maintenance.ts`): one row per
|
|
861
|
+
* maintenance task, with when its latest pass started and finished and how
|
|
862
|
+
* many rows it deleted. Health for DevTools, never a log.
|
|
863
|
+
*/
|
|
864
|
+
export const maintenanceTables = {
|
|
865
|
+
maintenanceTasks: defineTable({
|
|
866
|
+
task: v.string(),
|
|
867
|
+
/** When the latest pass started. */
|
|
868
|
+
startedAt: v.number(),
|
|
869
|
+
/** When the latest finished pass finished; absent until one has. */
|
|
870
|
+
finishedAt: v.optional(v.number()),
|
|
871
|
+
/** Rows the latest finished pass deleted; absent for a task that cannot count them. */
|
|
872
|
+
pruned: v.optional(v.number()),
|
|
873
|
+
/** Rows deleted since the task first ran. */
|
|
874
|
+
totalPruned: v.number(),
|
|
875
|
+
/** The error that ended the latest pass early; absent when it ran to the end. */
|
|
876
|
+
error: v.optional(v.string()),
|
|
877
|
+
/** Where a task that walks a table in order stopped, for the next pass to go on from (the orphan sweep's `_creationTime`). */
|
|
878
|
+
cursor: v.optional(v.number()),
|
|
879
|
+
})
|
|
880
|
+
.index('task', ['task']),
|
|
881
|
+
};
|
|
882
|
+
/**
|
|
883
|
+
* A value an event's `data` holds: flat, never an object. Shared by the
|
|
884
|
+
* audit table and the component's audit functions (`audit.ts`).
|
|
885
|
+
*/
|
|
886
|
+
export { vEventData };
|
|
887
|
+
/** An event as the app hands it to the trail: every id resolved, no clock. */
|
|
888
|
+
export const vEventRow = v.object({
|
|
889
|
+
type: v.string(),
|
|
890
|
+
actorId: v.optional(v.string()),
|
|
891
|
+
impersonatorId: v.optional(v.string()),
|
|
892
|
+
subjectId: v.optional(v.string()),
|
|
893
|
+
entityId: v.optional(v.string()),
|
|
894
|
+
targetId: v.optional(v.string()),
|
|
895
|
+
data: v.optional(vEventData),
|
|
896
|
+
});
|
|
897
|
+
/** An event as the app's `onEvent` action receives it: the row, its id and when it was recorded. */
|
|
898
|
+
export const vRecordedEvent = vEventRow.extend({ id: v.string(), at: v.number() });
|
|
899
|
+
/**
|
|
900
|
+
* The audit trail (see `audit.ts`): one row per event on the shared event
|
|
901
|
+
* path (`recordBackendEvent`), written once and never changed, but by an
|
|
902
|
+
* account's erasure. Rows carry ids, never an address or a name: who acted
|
|
903
|
+
* (`actorId`), the administrator behind an impersonated session
|
|
904
|
+
* (`impersonatorId`), the account it is about (`subjectId`), the workspace
|
|
905
|
+
* it happened in (`entityId`) and the thing acted on (`targetId`). The
|
|
906
|
+
* maintenance pass deletes a row `AUDIT_EVENT_RETENTION_MS` (365 days)
|
|
907
|
+
* after it was written.
|
|
908
|
+
*/
|
|
909
|
+
export const auditTables = {
|
|
910
|
+
auditEvents: defineTable({
|
|
911
|
+
/** The event's type: a kind of the catalog (`src/convex/events.ts`), or the app's own under `app.`. */
|
|
912
|
+
type: v.string(),
|
|
913
|
+
actorId: v.optional(v.string()),
|
|
914
|
+
impersonatorId: v.optional(v.string()),
|
|
915
|
+
subjectId: v.optional(v.string()),
|
|
916
|
+
entityId: v.optional(v.string()),
|
|
917
|
+
targetId: v.optional(v.string()),
|
|
918
|
+
data: v.optional(vEventData),
|
|
919
|
+
/** When it was recorded, epoch ms. */
|
|
920
|
+
at: v.number(),
|
|
921
|
+
})
|
|
922
|
+
// Every event, newest first (the administrators' view), and the
|
|
923
|
+
// retention sweep.
|
|
924
|
+
.index('at', ['at'])
|
|
925
|
+
// An account's own activity, and its erasure.
|
|
926
|
+
.index('subjectId_at', ['subjectId', 'at'])
|
|
927
|
+
// A workspace's activity.
|
|
928
|
+
.index('entityId_at', ['entityId', 'at'])
|
|
929
|
+
// The first event of a kind for an account or a workspace: what ticks a
|
|
930
|
+
// task of the activation checklist off.
|
|
931
|
+
.index('type_subjectId', ['type', 'subjectId'])
|
|
932
|
+
.index('type_entityId', ['type', 'entityId'])
|
|
933
|
+
// An erased account's rows as actor, and behind someone else's session.
|
|
934
|
+
.index('actorId', ['actorId'])
|
|
935
|
+
.index('impersonatorId', ['impersonatorId']),
|
|
936
|
+
};
|
|
937
|
+
/** A flag's stored override (see `src/convex/flags.ts`), as the component keeps and returns it. */
|
|
938
|
+
export const vFlagOverride = v.object({
|
|
939
|
+
enabled: v.optional(v.boolean()),
|
|
940
|
+
users: v.optional(v.array(v.string())),
|
|
941
|
+
workspaces: v.optional(v.array(v.string())),
|
|
942
|
+
plans: v.optional(v.array(v.string())),
|
|
943
|
+
rollout: v.optional(v.number()),
|
|
944
|
+
message: v.optional(v.string()),
|
|
945
|
+
winner: v.optional(v.string()),
|
|
946
|
+
});
|
|
947
|
+
/**
|
|
948
|
+
* Feature flags (see `flags.ts`): one row per flag an administrator
|
|
949
|
+
* overrode, the app's own and the package's kill switches alike. A flag
|
|
950
|
+
* without a row holds its default from code. Who changed it, and when, is
|
|
951
|
+
* on the audit trail (`flag.changed`), so a row names no account but the
|
|
952
|
+
* ones it targets, which an account's erasure removes.
|
|
953
|
+
*/
|
|
954
|
+
export const flagTables = {
|
|
955
|
+
flagOverrides: defineTable({
|
|
956
|
+
key: v.string(),
|
|
957
|
+
override: vFlagOverride,
|
|
958
|
+
updatedAt: v.number(),
|
|
959
|
+
/**
|
|
960
|
+
* What set the override when it was not an administrator: `spend_limit`
|
|
961
|
+
* for the `pause_ai` the AI spend limit turned on, which only its own
|
|
962
|
+
* reset clears. An administrator's write clears it.
|
|
963
|
+
*/
|
|
964
|
+
setBy: v.optional(v.literal('spend_limit')),
|
|
965
|
+
})
|
|
966
|
+
.index('key', ['key']),
|
|
967
|
+
};
|
|
968
|
+
/**
|
|
969
|
+
* Export and erasure (see `account.ts`). `accountErasures` holds an
|
|
970
|
+
* account's erasure while it runs (`account.forget`): the participant it
|
|
971
|
+
* is at, the workspaces it deletes and the address its email-keyed
|
|
972
|
+
* participants erase by, deleted once the last one finished.
|
|
973
|
+
* `accountExports` holds each data export: the file in the component's
|
|
974
|
+
* storage, deleted when its link expires, and the row a day longer, which
|
|
975
|
+
* the export limit counts. `accountExportParts` holds the zip parts that
|
|
976
|
+
* bundle the account's files beside it, each deleted with the export's file.
|
|
977
|
+
* `accountDeletions` holds a deletion that waits out its grace period,
|
|
978
|
+
* until it is cancelled or the erasure removes it.
|
|
979
|
+
*/
|
|
980
|
+
export const accountTables = {
|
|
981
|
+
accountErasures: defineTable({
|
|
982
|
+
/** The account's id; absent for an erasure by address alone (`account.forget` with only `email`). */
|
|
983
|
+
userId: v.optional(v.string()),
|
|
984
|
+
/** The address, lower-cased, for the participants that erase by it. */
|
|
985
|
+
email: v.optional(v.string()),
|
|
986
|
+
/** The workspaces deleted with the account: its personal one, and any it was the only member of. */
|
|
987
|
+
deleted: v.array(v.string()),
|
|
988
|
+
/** The workspaces the account leaves, others staying. */
|
|
989
|
+
left: v.array(v.string()),
|
|
990
|
+
/** The participant it is at (`ACCOUNT_DATA_SOURCES`'s key, or `done`). */
|
|
991
|
+
step: v.string(),
|
|
992
|
+
/** Failed runs of that participant in a row. */
|
|
993
|
+
attempts: v.number(),
|
|
994
|
+
/** The pseudonym the account's id becomes in the rows that keep one, the same in all of them. */
|
|
995
|
+
alias: v.string(),
|
|
996
|
+
startedAt: v.number(),
|
|
997
|
+
/** Why the latest run failed. */
|
|
998
|
+
error: v.optional(v.string()),
|
|
999
|
+
/** When it gave up on a participant that kept failing; it resumes when `forget` runs for it again. */
|
|
1000
|
+
failedAt: v.optional(v.number()),
|
|
1001
|
+
})
|
|
1002
|
+
.index('userId', ['userId'])
|
|
1003
|
+
.index('email', ['email'])
|
|
1004
|
+
.index('failedAt', ['failedAt']),
|
|
1005
|
+
/**
|
|
1006
|
+
* The app's part of an erasure (the billing customer, the email contact,
|
|
1007
|
+
* an app's own source) that gave up on a participant: the plan it ran,
|
|
1008
|
+
* kept so a retry erases what it was meant to, though the component's
|
|
1009
|
+
* part finished and the account's workspaces are gone. Deleted once
|
|
1010
|
+
* every participant finished.
|
|
1011
|
+
*/
|
|
1012
|
+
accountErasureFailures: defineTable({
|
|
1013
|
+
userId: v.optional(v.string()),
|
|
1014
|
+
email: v.optional(v.string()),
|
|
1015
|
+
deleted: v.array(v.string()),
|
|
1016
|
+
left: v.array(v.string()),
|
|
1017
|
+
/** The participants that finished, which a retry skips. */
|
|
1018
|
+
done: v.array(v.string()),
|
|
1019
|
+
/** The participants that gave up. */
|
|
1020
|
+
failed: v.array(v.string()),
|
|
1021
|
+
/** The rounds of retries it has run. */
|
|
1022
|
+
rounds: v.number(),
|
|
1023
|
+
failedAt: v.number(),
|
|
1024
|
+
})
|
|
1025
|
+
.index('userId', ['userId'])
|
|
1026
|
+
.index('email', ['email'])
|
|
1027
|
+
.index('failedAt', ['failedAt']),
|
|
1028
|
+
accountExports: defineTable({
|
|
1029
|
+
userId: v.string(),
|
|
1030
|
+
/** The file, once written; gone once the link expired. */
|
|
1031
|
+
storageId: v.optional(v.id('_storage')),
|
|
1032
|
+
createdAt: v.number(),
|
|
1033
|
+
/** When the link stops working and the file is deleted. */
|
|
1034
|
+
expiresAt: v.number(),
|
|
1035
|
+
})
|
|
1036
|
+
.index('userId_createdAt', ['userId', 'createdAt'])
|
|
1037
|
+
.index('createdAt', ['createdAt'])
|
|
1038
|
+
// The orphan sweep keeps an export's file: it is found by its id.
|
|
1039
|
+
.index('storageId', ['storageId']),
|
|
1040
|
+
accountExportParts: defineTable({
|
|
1041
|
+
exportId: v.id('accountExports'),
|
|
1042
|
+
userId: v.string(),
|
|
1043
|
+
/** One zip of the account's files; deleted with the export's own file. */
|
|
1044
|
+
storageId: v.id('_storage'),
|
|
1045
|
+
/** The zip's size in bytes, and how many files it holds. */
|
|
1046
|
+
bytes: v.number(),
|
|
1047
|
+
files: v.number(),
|
|
1048
|
+
createdAt: v.number(),
|
|
1049
|
+
})
|
|
1050
|
+
.index('exportId', ['exportId'])
|
|
1051
|
+
.index('userId', ['userId'])
|
|
1052
|
+
.index('createdAt', ['createdAt'])
|
|
1053
|
+
// The orphan sweep keeps a part: it is found by its id.
|
|
1054
|
+
.index('storageId', ['storageId']),
|
|
1055
|
+
accountDeletions: defineTable({
|
|
1056
|
+
userId: v.string(),
|
|
1057
|
+
requestedAt: v.number(),
|
|
1058
|
+
/** When the erasure runs, unless it is cancelled before. */
|
|
1059
|
+
deletesAt: v.number(),
|
|
1060
|
+
/** SHA-256 (hex) of the token in the "keep my account" link, which works without a sign-in. */
|
|
1061
|
+
tokenHash: v.string(),
|
|
1062
|
+
})
|
|
1063
|
+
.index('userId', ['userId'])
|
|
1064
|
+
.index('tokenHash', ['tokenHash']),
|
|
1065
|
+
};
|
|
1066
|
+
/** A file's owner, as `storage.store` and `storage.claim` record it: an account, and the workspace whose members read it. */
|
|
1067
|
+
export const vFileOwner = v.object({ userId: v.string(), workspaceId: v.optional(v.string()) });
|
|
1068
|
+
/**
|
|
1069
|
+
* Files (see `storage.ts`). `files` holds one owner record per file the
|
|
1070
|
+
* app keeps: who owns it, whose quota counts it, its size and the type read
|
|
1071
|
+
* from its bytes, and, while a claimed upload is still being checked, what
|
|
1072
|
+
* the check looks for. `fileUsage` counts each quota holder's files and
|
|
1073
|
+
* bytes in one row, so a check and a claim read and write the same document.
|
|
1074
|
+
* `shareLinks` holds one link per shared row of the app's: the SHA-256 of
|
|
1075
|
+
* its token, never the token.
|
|
1076
|
+
*/
|
|
1077
|
+
export const storageTables = {
|
|
1078
|
+
files: defineTable({
|
|
1079
|
+
/** The id the app holds and passes back. */
|
|
1080
|
+
storageId: v.id('_storage'),
|
|
1081
|
+
/** The copy served in its place once its metadata was stripped; absent while it is the file itself. */
|
|
1082
|
+
servedId: v.optional(v.id('_storage')),
|
|
1083
|
+
userId: v.string(),
|
|
1084
|
+
workspaceId: v.optional(v.string()),
|
|
1085
|
+
/** Whose quota counts it: the billing entity, or the workspace (else the account) the owner names. */
|
|
1086
|
+
holder: v.string(),
|
|
1087
|
+
/** Its size in bytes, after stripping once the check ran. */
|
|
1088
|
+
size: v.number(),
|
|
1089
|
+
/** The type read from its bytes; absent while a claimed upload waits for its check. */
|
|
1090
|
+
contentType: v.optional(v.string()),
|
|
1091
|
+
/** `checking` from a claim until the type check and stripping ran; `ready` once its URL may be served. */
|
|
1092
|
+
status: v.union(v.literal('checking'), v.literal('ready')),
|
|
1093
|
+
/** What the check of a claimed upload looks for. */
|
|
1094
|
+
check: v.optional(v.object({ accept: v.array(v.string()), strip: v.boolean() })),
|
|
1095
|
+
/** The SHA-256 of the bytes served, hex, once known: what a removed intimate image's identical copies are found by. */
|
|
1096
|
+
sha256: v.optional(v.string()),
|
|
1097
|
+
/** Set when an intimate-image removal named it while it was checked: the check blocks its stripped bytes and removes it with their copies. */
|
|
1098
|
+
removal: v.optional(v.object({ decision: v.optional(v.id('reportDecisions')) })),
|
|
1099
|
+
createdAt: v.number(),
|
|
1100
|
+
})
|
|
1101
|
+
.index('storageId', ['storageId'])
|
|
1102
|
+
.index('servedId', ['servedId'])
|
|
1103
|
+
.index('sha256', ['sha256'])
|
|
1104
|
+
.index('userId_workspaceId', ['userId', 'workspaceId'])
|
|
1105
|
+
.index('workspaceId', ['workspaceId']),
|
|
1106
|
+
fileUsage: defineTable({
|
|
1107
|
+
holder: v.string(),
|
|
1108
|
+
files: v.number(),
|
|
1109
|
+
bytes: v.number(),
|
|
1110
|
+
})
|
|
1111
|
+
.index('holder', ['holder']),
|
|
1112
|
+
/**
|
|
1113
|
+
* The billing quota keys the file counts are registered under: `setupStorage`
|
|
1114
|
+
* names them with each store and claim, so billing's quota reads (which run
|
|
1115
|
+
* where storage's module may not be loaded) find the count by key.
|
|
1116
|
+
*/
|
|
1117
|
+
quotaCounters: defineTable({
|
|
1118
|
+
key: v.string(),
|
|
1119
|
+
source: v.union(v.literal('files'), v.literal('bytes')),
|
|
1120
|
+
})
|
|
1121
|
+
.index('key', ['key']),
|
|
1122
|
+
shareLinks: defineTable({
|
|
1123
|
+
/** The app's table the shared row is in. */
|
|
1124
|
+
table: v.string(),
|
|
1125
|
+
/** The shared row's id. */
|
|
1126
|
+
rowId: v.string(),
|
|
1127
|
+
/** The SHA-256 of the link's token, hex. */
|
|
1128
|
+
tokenHash: v.string(),
|
|
1129
|
+
/** Who turned it on. */
|
|
1130
|
+
sharedBy: v.string(),
|
|
1131
|
+
sharedAt: v.number(),
|
|
1132
|
+
})
|
|
1133
|
+
.index('table_rowId', ['table', 'rowId'])
|
|
1134
|
+
.index('tokenHash', ['tokenHash'])
|
|
1135
|
+
.index('sharedBy', ['sharedBy']),
|
|
1136
|
+
};
|
|
1137
|
+
/** What a report decision did to the content. */
|
|
1138
|
+
export const vDecisionAction = v.union(v.literal('hidden'), v.literal('dismissed'));
|
|
1139
|
+
/** What a report decision rests on: the law, or the app's terms. */
|
|
1140
|
+
export const vDecisionGround = v.union(v.literal('illegal'), v.literal('terms'));
|
|
1141
|
+
/** Why someone reported content: the one-click reasons, and the notice form's legal ones. */
|
|
1142
|
+
export const vReportReason = v.union(v.literal('abuse'), v.literal('sexual'), v.literal('violence'), v.literal('spam'), v.literal('intimate'), v.literal('child_abuse'), v.literal('illegal'), v.literal('other'));
|
|
1143
|
+
/**
|
|
1144
|
+
* Content duties (`setupAdmin({ reports })`, `reports.ts`).
|
|
1145
|
+
* `reportSubjects` holds one row per reported thing of the app's (a table
|
|
1146
|
+
* and a row id), with how many reports are open on it, when its first open
|
|
1147
|
+
* intimate-image request came (the 48-hour clock) and the Art. 18 flag.
|
|
1148
|
+
* `reports` holds each one-click report and each notice of the public form:
|
|
1149
|
+
* a notifier's name and address stay here, for the outcome email, and never
|
|
1150
|
+
* reach the activity trail or the author. `reportDecisions` keeps every
|
|
1151
|
+
* decision with the SHA-256 of its appeal link's token, `reportAppeals`
|
|
1152
|
+
* the appeals, and `blockedFiles` the hashes of removed intimate images,
|
|
1153
|
+
* which a later upload of the same bytes is refused by. An erasure finds a
|
|
1154
|
+
* person by the indexes on the reporter, the notifier's address, the author
|
|
1155
|
+
* and the administrator who decided, flagged or answered (`eraseReports`).
|
|
1156
|
+
*/
|
|
1157
|
+
export const reportTables = {
|
|
1158
|
+
reportSubjects: defineTable({
|
|
1159
|
+
/** The app's table the content is in. */
|
|
1160
|
+
table: v.string(),
|
|
1161
|
+
/** Its row id. */
|
|
1162
|
+
subjectId: v.string(),
|
|
1163
|
+
/** `open` while a report waits; `hidden` or `dismissed` once decided. */
|
|
1164
|
+
status: v.union(v.literal('open'), v.literal('hidden'), v.literal('dismissed')),
|
|
1165
|
+
/** Open reports and notices on it. */
|
|
1166
|
+
open: v.number(),
|
|
1167
|
+
/** When its oldest open intimate-image request came: the 48-hour clock starts here. */
|
|
1168
|
+
intimateAt: v.optional(v.number()),
|
|
1169
|
+
/** Flagged as a suspected crime that threatens life or safety (DSA Art. 18): who flagged it, when, and a note. */
|
|
1170
|
+
crime: v.optional(v.object({ at: v.number(), by: v.string(), note: v.optional(v.string()) })),
|
|
1171
|
+
/** Its latest decision. */
|
|
1172
|
+
decisionId: v.optional(v.id('reportDecisions')),
|
|
1173
|
+
updatedAt: v.number(),
|
|
1174
|
+
})
|
|
1175
|
+
.index('table_subjectId', ['table', 'subjectId'])
|
|
1176
|
+
.index('status_open', ['status', 'open'])
|
|
1177
|
+
.index('status_intimateAt', ['status', 'intimateAt'])
|
|
1178
|
+
.index('crimeBy', ['crime.by']),
|
|
1179
|
+
reports: defineTable({
|
|
1180
|
+
/** The content it is about; absent for a notice whose link the app could not place. */
|
|
1181
|
+
subject: v.optional(v.id('reportSubjects')),
|
|
1182
|
+
/** `report`: a signed-in person's one click; `notice`: the public form. */
|
|
1183
|
+
kind: v.union(v.literal('report'), v.literal('notice')),
|
|
1184
|
+
reason: vReportReason,
|
|
1185
|
+
details: v.optional(v.string()),
|
|
1186
|
+
/** The signed-in reporter: one open report per person and subject. */
|
|
1187
|
+
reporterId: v.optional(v.string()),
|
|
1188
|
+
/** The notice's link to the content, as the notifier gave it. */
|
|
1189
|
+
url: v.optional(v.string()),
|
|
1190
|
+
/**
|
|
1191
|
+
* The thing a notice sent from it names (`?table=&id=`), unchecked: a
|
|
1192
|
+
* notice on its own keeps it, and the Reports tab files it there once the
|
|
1193
|
+
* app's `describe` knows the thing.
|
|
1194
|
+
*/
|
|
1195
|
+
hint: v.optional(v.object({ table: v.string(), id: v.string() })),
|
|
1196
|
+
/** Who sent the notice, for its receipt and outcome emails. */
|
|
1197
|
+
notifier: v.optional(v.object({ name: v.optional(v.string()), email: v.optional(v.string()), locale: v.optional(v.string()) })),
|
|
1198
|
+
/** The typed name that signs an intimate-image removal request. */
|
|
1199
|
+
signature: v.optional(v.string()),
|
|
1200
|
+
status: v.union(v.literal('open'), v.literal('closed')),
|
|
1201
|
+
outcome: v.optional(v.union(v.literal('hidden'), v.literal('dismissed'))),
|
|
1202
|
+
crime: v.optional(v.object({ at: v.number(), by: v.string(), note: v.optional(v.string()) })),
|
|
1203
|
+
createdAt: v.number(),
|
|
1204
|
+
closedAt: v.optional(v.number()),
|
|
1205
|
+
})
|
|
1206
|
+
.index('subject_status', ['subject', 'status'])
|
|
1207
|
+
.index('reporterId_subject_status', ['reporterId', 'subject', 'status'])
|
|
1208
|
+
.index('kind_status_subject', ['kind', 'status', 'subject'])
|
|
1209
|
+
.index('kind_status_subject_reason', ['kind', 'status', 'subject', 'reason'])
|
|
1210
|
+
.index('hint_status', ['hint.table', 'hint.id', 'status'])
|
|
1211
|
+
.index('notifierEmail', ['notifier.email'])
|
|
1212
|
+
.index('crimeBy', ['crime.by'])
|
|
1213
|
+
.index('status_closedAt', ['status', 'closedAt']),
|
|
1214
|
+
reportDecisions: defineTable({
|
|
1215
|
+
subject: v.optional(v.id('reportSubjects')),
|
|
1216
|
+
/** The notice decided, for one the app could not place. */
|
|
1217
|
+
notice: v.optional(v.id('reports')),
|
|
1218
|
+
action: vDecisionAction,
|
|
1219
|
+
/** The facts and the term or law it rests on, as the administrator wrote them. */
|
|
1220
|
+
reason: v.string(),
|
|
1221
|
+
/** Whether the content broke the law or the app's terms. */
|
|
1222
|
+
ground: vDecisionGround,
|
|
1223
|
+
/** The administrator who decided. */
|
|
1224
|
+
by: v.string(),
|
|
1225
|
+
at: v.number(),
|
|
1226
|
+
/** Whose content it was, as `describe` said. */
|
|
1227
|
+
authorId: v.optional(v.string()),
|
|
1228
|
+
/** The SHA-256 of the appeal link's token; absent for a decision that restricted nothing. */
|
|
1229
|
+
appealTokenHash: v.optional(v.string()),
|
|
1230
|
+
})
|
|
1231
|
+
.index('subject', ['subject'])
|
|
1232
|
+
.index('appealTokenHash', ['appealTokenHash'])
|
|
1233
|
+
.index('by', ['by'])
|
|
1234
|
+
.index('authorId', ['authorId'])
|
|
1235
|
+
.index('at', ['at']),
|
|
1236
|
+
reportAppeals: defineTable({
|
|
1237
|
+
decision: v.id('reportDecisions'),
|
|
1238
|
+
/** What the author wrote; absent once the author was erased. */
|
|
1239
|
+
text: v.optional(v.string()),
|
|
1240
|
+
status: v.union(v.literal('open'), v.literal('upheld'), v.literal('reversed')),
|
|
1241
|
+
reason: v.optional(v.string()),
|
|
1242
|
+
by: v.optional(v.string()),
|
|
1243
|
+
createdAt: v.number(),
|
|
1244
|
+
closedAt: v.optional(v.number()),
|
|
1245
|
+
})
|
|
1246
|
+
.index('decision', ['decision'])
|
|
1247
|
+
.index('status', ['status'])
|
|
1248
|
+
.index('by', ['by']),
|
|
1249
|
+
blockedFiles: defineTable({
|
|
1250
|
+
/** The SHA-256 of a removed image's bytes, hex. */
|
|
1251
|
+
sha256: v.string(),
|
|
1252
|
+
decision: v.optional(v.id('reportDecisions')),
|
|
1253
|
+
at: v.number(),
|
|
1254
|
+
})
|
|
1255
|
+
.index('sha256', ['sha256'])
|
|
1256
|
+
.index('decision', ['decision']),
|
|
1257
|
+
};
|
|
1258
|
+
/** A job's status in the queue. */
|
|
1259
|
+
export const vJobStatus = v.union(v.literal('queued'), v.literal('running'), v.literal('done'), v.literal('failed'), v.literal('canceled'));
|
|
1260
|
+
/** A queued job's credit hold: the reservation `reserveCredits({ hold })` made, as plain data. */
|
|
1261
|
+
export const vJobHold = v.object({
|
|
1262
|
+
externalId: v.string(),
|
|
1263
|
+
reserved: v.boolean(),
|
|
1264
|
+
meter: v.optional(v.string()),
|
|
1265
|
+
meterId: v.optional(v.string()),
|
|
1266
|
+
value: v.number(),
|
|
1267
|
+
});
|
|
1268
|
+
/** What a job's model calls used and cost, summed over its steps. */
|
|
1269
|
+
export const vJobUsage = v.object({
|
|
1270
|
+
usd: v.optional(v.number()),
|
|
1271
|
+
input: v.number(),
|
|
1272
|
+
output: v.number(),
|
|
1273
|
+
cached: v.number(),
|
|
1274
|
+
models: v.array(v.string()),
|
|
1275
|
+
});
|
|
1276
|
+
/** An administrator's retune of a tier, over `backend/jobs.ts`. */
|
|
1277
|
+
export const vTierOverride = v.object({
|
|
1278
|
+
perOwner: v.optional(v.number()),
|
|
1279
|
+
dedicated: v.optional(v.number()),
|
|
1280
|
+
budgetUnits: v.optional(v.number()),
|
|
1281
|
+
});
|
|
1282
|
+
/**
|
|
1283
|
+
* The generation queue (`defineJobQueue`, `nuxt-backend/ai`): each job and
|
|
1284
|
+
* where it stands, the queue's state an administrator changes without a
|
|
1285
|
+
* deploy, each model's adaptive limit, and each owner's budget windows. The
|
|
1286
|
+
* work itself runs on the app's Workflow component; these rows hold the
|
|
1287
|
+
* queue's policy around it.
|
|
1288
|
+
*/
|
|
1289
|
+
export const jobTables = {
|
|
1290
|
+
jobs: defineTable({
|
|
1291
|
+
/** The kind: the function name of its `jobs.define` export (`strips:render`). */
|
|
1292
|
+
kind: v.string(),
|
|
1293
|
+
args: v.any(),
|
|
1294
|
+
/** Who pays: the billing entity, fixed when the job joined. */
|
|
1295
|
+
owner: v.string(),
|
|
1296
|
+
/** The member who started it; for a guest job, the account that claimed it at sign-up. */
|
|
1297
|
+
userId: v.optional(v.string()),
|
|
1298
|
+
/**
|
|
1299
|
+
* A guest job's visitor: the browser that started it signed out. It
|
|
1300
|
+
* keeps the guest rank and its visitor's count after its claim moves
|
|
1301
|
+
* `owner` and `userId` to the new account. Its owner is
|
|
1302
|
+
* `guest:<visitor>` until then.
|
|
1303
|
+
*/
|
|
1304
|
+
visitor: v.optional(v.string()),
|
|
1305
|
+
status: vJobStatus,
|
|
1306
|
+
/** The effective tier (the better of the one it joined under and its owner's now) and its place in the list; past the list for none. */
|
|
1307
|
+
tier: v.optional(v.string()),
|
|
1308
|
+
rank: v.number(),
|
|
1309
|
+
/** When it joined, less its effective tier's head start: the lowest starts first. */
|
|
1310
|
+
score: v.number(),
|
|
1311
|
+
joinedAt: v.number(),
|
|
1312
|
+
startedAt: v.optional(v.number()),
|
|
1313
|
+
endedAt: v.optional(v.number()),
|
|
1314
|
+
/** A running job that shows no sign of life past this is failed by the stall sweep. */
|
|
1315
|
+
leaseUntil: v.optional(v.number()),
|
|
1316
|
+
meter: v.optional(v.string()),
|
|
1317
|
+
cost: v.number(),
|
|
1318
|
+
hold: v.optional(vJobHold),
|
|
1319
|
+
/** The budget window it counted in, and what it counted there. */
|
|
1320
|
+
budgetWindow: v.optional(v.number()),
|
|
1321
|
+
budgetCounted: v.number(),
|
|
1322
|
+
charged: v.boolean(),
|
|
1323
|
+
refunded: v.boolean(),
|
|
1324
|
+
/** When its charge began: from then on the hold is the charge's to settle or let go. */
|
|
1325
|
+
charging: v.optional(v.number()),
|
|
1326
|
+
/**
|
|
1327
|
+
* A charged job that ended owing its credits back: `pending` while its
|
|
1328
|
+
* refund is tried (the latest try due at `refundAt`), `given_up` after
|
|
1329
|
+
* the last one failed. Cleared once refunded.
|
|
1330
|
+
*/
|
|
1331
|
+
refundOwed: v.optional(v.union(v.literal('pending'), v.literal('given_up'))),
|
|
1332
|
+
refundAt: v.optional(v.number()),
|
|
1333
|
+
workflowId: v.optional(v.string()),
|
|
1334
|
+
/** Attempts of its steps, the throttled ones included. */
|
|
1335
|
+
attempts: v.number(),
|
|
1336
|
+
progress: v.optional(v.object({ done: v.number(), total: v.number(), label: v.optional(v.string()) })),
|
|
1337
|
+
result: v.optional(v.any()),
|
|
1338
|
+
/** Why it failed, as a catalog error payload: what the person sees. */
|
|
1339
|
+
error: v.optional(v.any()),
|
|
1340
|
+
/** The provider's own text for its last failed attempt, cut to 500 characters: for administrators. */
|
|
1341
|
+
lastError: v.optional(v.string()),
|
|
1342
|
+
usage: v.optional(vJobUsage),
|
|
1343
|
+
/** A failed job, for an administrator to retry or discard. */
|
|
1344
|
+
deadLetter: v.optional(v.boolean()),
|
|
1345
|
+
/** How often an administrator put it back in line. */
|
|
1346
|
+
retries: v.number(),
|
|
1347
|
+
/** A running job's cancel: who asked, and whether its credits go back. */
|
|
1348
|
+
cancel: v.optional(v.object({ by: v.string(), refund: v.boolean() })),
|
|
1349
|
+
})
|
|
1350
|
+
.index('by_status_and_score', ['status', 'score'])
|
|
1351
|
+
// Each owner's waiting jobs in score order: the line read owner by owner past one owner's backlog.
|
|
1352
|
+
.index('by_status_and_owner_and_score', ['status', 'owner', 'score'])
|
|
1353
|
+
.index('by_owner_and_status', ['owner', 'status'])
|
|
1354
|
+
.index('by_userId', ['userId'])
|
|
1355
|
+
.index('by_visitor_and_status', ['visitor', 'status'])
|
|
1356
|
+
.index('by_workflowId', ['workflowId'])
|
|
1357
|
+
.index('by_deadLetter_and_endedAt', ['deadLetter', 'endedAt'])
|
|
1358
|
+
.index('by_status_and_endedAt', ['status', 'endedAt']),
|
|
1359
|
+
/**
|
|
1360
|
+
* A browser's used guest tries: its guest jobs that ended done, counted
|
|
1361
|
+
* as they end, so a try stays used for the visitor cookie's year after
|
|
1362
|
+
* the job's own record is pruned (30 days after it ends). Kept a year
|
|
1363
|
+
* after the last try. The account that claimed the visitor's jobs at
|
|
1364
|
+
* sign-up is named, so its erasure removes the count.
|
|
1365
|
+
*/
|
|
1366
|
+
guestTries: defineTable({
|
|
1367
|
+
visitor: v.string(),
|
|
1368
|
+
done: v.number(),
|
|
1369
|
+
lastAt: v.number(),
|
|
1370
|
+
userId: v.optional(v.string()),
|
|
1371
|
+
})
|
|
1372
|
+
.index('by_visitor', ['visitor'])
|
|
1373
|
+
.index('by_userId', ['userId'])
|
|
1374
|
+
.index('by_lastAt', ['lastAt']),
|
|
1375
|
+
jobQueue: defineTable({
|
|
1376
|
+
paused: v.boolean(),
|
|
1377
|
+
/** The administrator's concurrency, over `backend/jobs.ts`. */
|
|
1378
|
+
concurrency: v.optional(v.number()),
|
|
1379
|
+
tiers: v.record(v.string(), vTierOverride),
|
|
1380
|
+
/** The average length of recent finished jobs, in ms. */
|
|
1381
|
+
averageMs: v.optional(v.number()),
|
|
1382
|
+
/** The tiers as `backend/jobs.ts` names them, kept so a plan change re-tiers waiting jobs here. */
|
|
1383
|
+
plan: v.optional(v.array(v.object({ name: v.string(), feature: v.optional(v.string()), headStart: v.number() }))),
|
|
1384
|
+
/** The app's `jobs:runQueue`, as a function handle: the sweep wakes it to fail stalled jobs and fill free slots. */
|
|
1385
|
+
wake: v.optional(v.string()),
|
|
1386
|
+
}),
|
|
1387
|
+
jobModels: defineTable({
|
|
1388
|
+
model: v.string(),
|
|
1389
|
+
perMinute: v.number(),
|
|
1390
|
+
min: v.number(),
|
|
1391
|
+
max: v.number(),
|
|
1392
|
+
last429At: v.optional(v.number()),
|
|
1393
|
+
grewAt: v.optional(v.number()),
|
|
1394
|
+
cleanStreak: v.number(),
|
|
1395
|
+
count429: v.number(),
|
|
1396
|
+
})
|
|
1397
|
+
.index('by_model', ['model']),
|
|
1398
|
+
jobBudgets: defineTable({
|
|
1399
|
+
owner: v.string(),
|
|
1400
|
+
windowStart: v.number(),
|
|
1401
|
+
used: v.number(),
|
|
1402
|
+
})
|
|
1403
|
+
.index('by_owner_and_windowStart', ['owner', 'windowStart']),
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* The alerts the backend raised (`alerts.ts`): one row per alert and period,
|
|
1407
|
+
* so each fires once a day, or once a month for a monthly quota.
|
|
1408
|
+
*/
|
|
1409
|
+
export const monitoringTables = {
|
|
1410
|
+
monitoringAlerts: defineTable({
|
|
1411
|
+
/** The alert and its threshold: `email_quota:80`, `ai_spend`. */
|
|
1412
|
+
alert: v.string(),
|
|
1413
|
+
/** The period it fired for: `2026-10-27`, `2026-10`. */
|
|
1414
|
+
period: v.string(),
|
|
1415
|
+
at: v.number(),
|
|
1416
|
+
})
|
|
1417
|
+
.index('by_alert_and_period', ['alert', 'period'])
|
|
1418
|
+
.index('by_at', ['at']),
|
|
1419
|
+
};
|
|
1420
|
+
/** A consent decision, as the `consents` table stores it. */
|
|
1421
|
+
export const vConsent = v.object({
|
|
1422
|
+
userId: v.optional(v.string()),
|
|
1423
|
+
/** SHA-256 of the lower-cased address, for a decision given before the account existed. */
|
|
1424
|
+
emailHash: v.optional(v.string()),
|
|
1425
|
+
kind: v.string(),
|
|
1426
|
+
version: v.string(),
|
|
1427
|
+
/** `true` a grant, `false` a withdrawal. */
|
|
1428
|
+
granted: v.boolean(),
|
|
1429
|
+
at: v.number(),
|
|
1430
|
+
/** Where it came from: `sign-up`, `prompt`, `settings`, `waitlist` or `topic`. */
|
|
1431
|
+
source: v.string(),
|
|
1432
|
+
/** The words the person agreed to, when the form showed its own (the launch-news box). */
|
|
1433
|
+
text: v.optional(v.string()),
|
|
1434
|
+
/** What the decision came with: `checkout:<id>` for a topic's soft opt-in at checkout. */
|
|
1435
|
+
reference: v.optional(v.string()),
|
|
1436
|
+
});
|
|
1437
|
+
/**
|
|
1438
|
+
* The consent ledger (see `consents.ts`): one row per decision, a grant or a
|
|
1439
|
+
* withdrawal, of one kind at one version, never overwritten, so the history
|
|
1440
|
+
* stays readable. A row belongs to an account (`userId`) or, before sign-up,
|
|
1441
|
+
* to a hash of the address (`emailHash`), and moves to the account when it
|
|
1442
|
+
* signs up.
|
|
1443
|
+
*/
|
|
1444
|
+
export const consentTables = {
|
|
1445
|
+
consents: defineTable(vConsent)
|
|
1446
|
+
.index('userId_kind_at', ['userId', 'kind', 'at'])
|
|
1447
|
+
.index('userId_at', ['userId', 'at'])
|
|
1448
|
+
.index('emailHash_at', ['emailHash', 'at']),
|
|
1449
|
+
};
|
|
1450
|
+
/**
|
|
1451
|
+
* Launch access (see `access.ts`): the phase an administrator set, the
|
|
1452
|
+
* invite codes and access links (a keyed hash of each, never the code), the
|
|
1453
|
+
* invitations by address an administrator made, and the redemption ledger
|
|
1454
|
+
* that says which ticket admitted each account. `accessSettings` holds one
|
|
1455
|
+
* row, the phase, absent until an administrator first changes it.
|
|
1456
|
+
*/
|
|
1457
|
+
export const accessTables = {
|
|
1458
|
+
accessSettings: defineTable({
|
|
1459
|
+
phase: v.string(),
|
|
1460
|
+
updatedAt: v.number(),
|
|
1461
|
+
}),
|
|
1462
|
+
/** When the next invitation email may go: "Email them" books its emails one after another, about a hundred an hour. One row at most. */
|
|
1463
|
+
accessEmailPace: defineTable({
|
|
1464
|
+
nextAt: v.number(),
|
|
1465
|
+
}),
|
|
1466
|
+
accessInvites: defineTable({
|
|
1467
|
+
kind: v.union(v.literal('code'), v.literal('link')),
|
|
1468
|
+
/** The keyed hash of the normalized code or token (`inviteHash`). */
|
|
1469
|
+
tokenHash: v.string(),
|
|
1470
|
+
/**
|
|
1471
|
+
* The version of the `AUTH_SECRET` entry the hash is keyed with (`0` for a plain secret):
|
|
1472
|
+
* set when the row is written or re-keyed, so a retirement can count the rows still under an
|
|
1473
|
+
* older one. Absent on a row from before it was kept, which reads as older.
|
|
1474
|
+
*/
|
|
1475
|
+
keyVersion: v.optional(v.number()),
|
|
1476
|
+
label: v.string(),
|
|
1477
|
+
maxUses: v.number(),
|
|
1478
|
+
uses: v.number(),
|
|
1479
|
+
expiresAt: v.optional(v.number()),
|
|
1480
|
+
revokedAt: v.optional(v.number()),
|
|
1481
|
+
/** The administrator who made it; absent for one made by server code. */
|
|
1482
|
+
createdBy: v.optional(v.string()),
|
|
1483
|
+
createdAt: v.number(),
|
|
1484
|
+
})
|
|
1485
|
+
.index('tokenHash', ['tokenHash'])
|
|
1486
|
+
.index('createdAt', ['createdAt'])
|
|
1487
|
+
.index('createdBy', ['createdBy'])
|
|
1488
|
+
.index('revokedAt_keyVersion', ['revokedAt', 'keyVersion']),
|
|
1489
|
+
accessAdmissions: defineTable({
|
|
1490
|
+
/** The address, trimmed and lower-cased. */
|
|
1491
|
+
email: v.string(),
|
|
1492
|
+
source: v.union(v.literal('invitation'), v.literal('waitlist')),
|
|
1493
|
+
label: v.optional(v.string()),
|
|
1494
|
+
expiresAt: v.number(),
|
|
1495
|
+
createdBy: v.optional(v.string()),
|
|
1496
|
+
createdAt: v.number(),
|
|
1497
|
+
/** Set once the address signed up with it. */
|
|
1498
|
+
usedAt: v.optional(v.number()),
|
|
1499
|
+
})
|
|
1500
|
+
.index('email', ['email'])
|
|
1501
|
+
.index('createdAt', ['createdAt'])
|
|
1502
|
+
.index('createdBy', ['createdBy']),
|
|
1503
|
+
accessRedemptions: defineTable({
|
|
1504
|
+
/** The address that signed up, until the account it made is attached. */
|
|
1505
|
+
email: v.optional(v.string()),
|
|
1506
|
+
userId: v.optional(v.string()),
|
|
1507
|
+
ticket: v.string(),
|
|
1508
|
+
label: v.optional(v.string()),
|
|
1509
|
+
inviteId: v.optional(v.id('accessInvites')),
|
|
1510
|
+
/** For a workspace invitation: the account that sent it, whose share of sign-ups it counts against. */
|
|
1511
|
+
inviterId: v.optional(v.string()),
|
|
1512
|
+
at: v.number(),
|
|
1513
|
+
})
|
|
1514
|
+
.index('email', ['email'])
|
|
1515
|
+
.index('userId', ['userId'])
|
|
1516
|
+
.index('inviteId', ['inviteId'])
|
|
1517
|
+
.index('inviterId', ['inviterId'])
|
|
1518
|
+
.index('label_at', ['label', 'at']),
|
|
1519
|
+
};
|
|
1520
|
+
/**
|
|
1521
|
+
* The waitlist (see `waitlist.ts`): one entry per verified address, the
|
|
1522
|
+
* join a person has begun but not yet proven with a code (`waitlistJoins`,
|
|
1523
|
+
* gone within a day), a count per status for the Waitlist tab, and the
|
|
1524
|
+
* email provider's segment and topic the launch-news mirror writes to. The
|
|
1525
|
+
* order people wait in lives in the nested `waitlistRank` aggregate.
|
|
1526
|
+
*/
|
|
1527
|
+
export const waitlistTables = {
|
|
1528
|
+
waitlistEntries: defineTable({
|
|
1529
|
+
/** The address, trimmed and lower-cased. */
|
|
1530
|
+
email: v.string(),
|
|
1531
|
+
/** Its domain, for the tab's filter. */
|
|
1532
|
+
domain: v.string(),
|
|
1533
|
+
status: v.union(v.literal('waiting'), v.literal('admitted'), v.literal('declined'), v.literal('joined')),
|
|
1534
|
+
/** Where it came from: `sign-in`, or the form's `source`. */
|
|
1535
|
+
source: v.string(),
|
|
1536
|
+
/** The answers to the app's questions, by question. */
|
|
1537
|
+
answers: v.optional(v.record(v.string(), v.string())),
|
|
1538
|
+
locale: v.optional(v.string()),
|
|
1539
|
+
note: v.optional(v.string()),
|
|
1540
|
+
/** When the code proved the address. */
|
|
1541
|
+
verifiedAt: v.number(),
|
|
1542
|
+
/**
|
|
1543
|
+
* The state of its contact at the email provider; absent without launch
|
|
1544
|
+
* news. Whether the person ticked the launch-news box, when, and the
|
|
1545
|
+
* words they agreed to live on the consent ledger alone.
|
|
1546
|
+
*/
|
|
1547
|
+
mirror: v.optional(v.union(v.literal('pending'), v.literal('synced'), v.literal('drift'), v.literal('skipped'))),
|
|
1548
|
+
mirrorError: v.optional(v.string()),
|
|
1549
|
+
mirrorAt: v.optional(v.number()),
|
|
1550
|
+
/** The entry whose link this one joined through. */
|
|
1551
|
+
referredBy: v.optional(v.id('waitlistEntries')),
|
|
1552
|
+
/** Friends that count for it, up to the cap. */
|
|
1553
|
+
boost: v.number(),
|
|
1554
|
+
/** How far it moved the entry it came through up the line, in the queue key's milliseconds; taken back with it. */
|
|
1555
|
+
creditedMs: v.optional(v.number()),
|
|
1556
|
+
/** The key it holds in the rank aggregate while it waits. */
|
|
1557
|
+
rankKey: v.optional(v.number()),
|
|
1558
|
+
admittedAt: v.optional(v.number()),
|
|
1559
|
+
declinedAt: v.optional(v.number()),
|
|
1560
|
+
declinedFor: v.optional(v.literal('abuse')),
|
|
1561
|
+
joinedAt: v.optional(v.number()),
|
|
1562
|
+
})
|
|
1563
|
+
.index('email', ['email'])
|
|
1564
|
+
.index('status_verifiedAt', ['status', 'verifiedAt'])
|
|
1565
|
+
.index('mirror_mirrorAt', ['mirror', 'mirrorAt']),
|
|
1566
|
+
waitlistJoins: defineTable({
|
|
1567
|
+
email: v.string(),
|
|
1568
|
+
/** The key `joinWaitlist` handed the browser that began the join: only a code check that carries it applies the join. */
|
|
1569
|
+
key: v.optional(v.string()),
|
|
1570
|
+
answers: v.optional(v.record(v.string(), v.string())),
|
|
1571
|
+
launchNews: v.optional(v.object({ text: v.string() })),
|
|
1572
|
+
source: v.string(),
|
|
1573
|
+
/** The share code of the friend whose link it came through. */
|
|
1574
|
+
ref: v.optional(v.string()),
|
|
1575
|
+
locale: v.optional(v.string()),
|
|
1576
|
+
createdAt: v.number(),
|
|
1577
|
+
})
|
|
1578
|
+
.index('email', ['email'])
|
|
1579
|
+
.index('createdAt', ['createdAt']),
|
|
1580
|
+
waitlistStats: defineTable({
|
|
1581
|
+
status: v.string(),
|
|
1582
|
+
count: v.number(),
|
|
1583
|
+
}).index('status', ['status']),
|
|
1584
|
+
waitlistSettings: defineTable({
|
|
1585
|
+
/** The provider's segment and topic for launch news, found or made on the first mirror. */
|
|
1586
|
+
segmentId: v.optional(v.string()),
|
|
1587
|
+
topicId: v.optional(v.string()),
|
|
1588
|
+
updatedAt: v.number(),
|
|
1589
|
+
}),
|
|
1590
|
+
};
|
|
1591
|
+
/**
|
|
1592
|
+
* Notifications (see `notifications.ts`): one row per person an event
|
|
1593
|
+
* notified in the app. A row restates an event the audit trail holds: its
|
|
1594
|
+
* type, who acted, the workspace and the thing acted on, and the few flat
|
|
1595
|
+
* values the kind carries, never a name, an address or the words. The words
|
|
1596
|
+
* are labels, read in the person's language when the row is shown, and
|
|
1597
|
+
* names are read then too, so a renamed workspace shows its new name.
|
|
1598
|
+
* `channels` records the channels the notification went out on.
|
|
1599
|
+
* The maintenance pass deletes a read row 90 days after it was read and an
|
|
1600
|
+
* unread one 365 days after it was recorded.
|
|
1601
|
+
*/
|
|
1602
|
+
export const notificationTables = {
|
|
1603
|
+
notifications: defineTable({
|
|
1604
|
+
/** The recipient. */
|
|
1605
|
+
userId: v.string(),
|
|
1606
|
+
/** The event's type: a kind of the catalog, or the app's own under `app.`. */
|
|
1607
|
+
type: v.string(),
|
|
1608
|
+
/** The audit event it restates. */
|
|
1609
|
+
eventId: v.string(),
|
|
1610
|
+
actorId: v.optional(v.string()),
|
|
1611
|
+
/** An administrator acted, in a session they opened as `actorId`: the inbox names an administrator, never the account. */
|
|
1612
|
+
impersonated: v.optional(v.boolean()),
|
|
1613
|
+
entityId: v.optional(v.string()),
|
|
1614
|
+
targetId: v.optional(v.string()),
|
|
1615
|
+
/** Where it links, a path of the app; absent for a package kind, which links to a ready-made page by its type. */
|
|
1616
|
+
link: v.optional(v.string()),
|
|
1617
|
+
data: v.optional(vEventData),
|
|
1618
|
+
/** The channels it went out on: `app`, and later `email` and `push`. */
|
|
1619
|
+
channels: v.array(v.string()),
|
|
1620
|
+
/** When it was recorded, epoch ms. */
|
|
1621
|
+
at: v.number(),
|
|
1622
|
+
/** When the person read it; absent while unread. */
|
|
1623
|
+
readAt: v.optional(v.number()),
|
|
1624
|
+
})
|
|
1625
|
+
// The inbox, newest first.
|
|
1626
|
+
.index('userId_at', ['userId', 'at'])
|
|
1627
|
+
// The unread count and mark-all-read: an unread row has no `readAt`.
|
|
1628
|
+
.index('userId_readAt', ['userId', 'readAt'])
|
|
1629
|
+
// Retention: read rows by when they were read, unread ones by when they were recorded.
|
|
1630
|
+
.index('readAt_at', ['readAt', 'at'])
|
|
1631
|
+
// An erased account's name in rows that stay.
|
|
1632
|
+
.index('actorId', ['actorId'])
|
|
1633
|
+
// An event that records twice notifies once.
|
|
1634
|
+
.index('eventId_userId', ['eventId', 'userId'])
|
|
1635
|
+
// What the app forgets with the thing they point at: one kind about one target.
|
|
1636
|
+
.index('targetId_type', ['targetId', 'type']),
|
|
1637
|
+
/**
|
|
1638
|
+
* A person's choice of one channel for one kind of notification, where it
|
|
1639
|
+
* differs from the default: every channel the kind allows is on until the
|
|
1640
|
+
* person turns it off. Written by the profile's Email section
|
|
1641
|
+
* (`setNotificationChannel`); read in the transaction that notifies.
|
|
1642
|
+
*/
|
|
1643
|
+
notificationChoices: defineTable({
|
|
1644
|
+
userId: v.string(),
|
|
1645
|
+
/** The kind: an event type of the catalog, or the app's own under `app.`. */
|
|
1646
|
+
type: v.string(),
|
|
1647
|
+
channel: v.union(v.literal('app'), v.literal('email'), v.literal('push')),
|
|
1648
|
+
enabled: v.boolean(),
|
|
1649
|
+
/** When the person chose it. */
|
|
1650
|
+
at: v.number(),
|
|
1651
|
+
})
|
|
1652
|
+
.index('userId_type_channel', ['userId', 'type', 'channel']),
|
|
1653
|
+
/**
|
|
1654
|
+
* A device a person allowed web push on: the push service's address for
|
|
1655
|
+
* it and the keys a message to it is encrypted with. A device belongs to
|
|
1656
|
+
* the account that subscribed it last. Dropped when the push service says
|
|
1657
|
+
* the device is gone (`404`, `410`), and erased with the account.
|
|
1658
|
+
*/
|
|
1659
|
+
pushSubscriptions: defineTable({
|
|
1660
|
+
userId: v.string(),
|
|
1661
|
+
/** The push service's URL for the device: personal data. */
|
|
1662
|
+
endpoint: v.string(),
|
|
1663
|
+
/** The device's public key, base64url. */
|
|
1664
|
+
p256dh: v.string(),
|
|
1665
|
+
/** The device's authentication secret, base64url. */
|
|
1666
|
+
auth: v.string(),
|
|
1667
|
+
/** When it was subscribed, or subscribed again. */
|
|
1668
|
+
at: v.number(),
|
|
1669
|
+
})
|
|
1670
|
+
.index('endpoint', ['endpoint'])
|
|
1671
|
+
.index('userId', ['userId']),
|
|
1672
|
+
};
|
|
1673
|
+
/**
|
|
1674
|
+
* Email preferences (`setupEmail({ topics, caps })`): a copy of each
|
|
1675
|
+
* person's topic choices, kept beside the deployment so every send reads it
|
|
1676
|
+
* in its own transaction, and the few values the sending rules need. The
|
|
1677
|
+
* provider keeps the choices too; the two stay in step through its
|
|
1678
|
+
* `contact.topics.updated` and `contact.updated` webhooks and a job after
|
|
1679
|
+
* each change here.
|
|
1680
|
+
*/
|
|
1681
|
+
export const preferenceTables = {
|
|
1682
|
+
/** One per address that was sent mail under a topic, chose a topic, or has an account that did. */
|
|
1683
|
+
emailContacts: defineTable({
|
|
1684
|
+
/** The address, normalized. */
|
|
1685
|
+
email: v.string(),
|
|
1686
|
+
/** The account the address belongs to, once known. */
|
|
1687
|
+
userId: v.optional(v.string()),
|
|
1688
|
+
/** The last click in an email or activity in the app, epoch ms: the sunset rule reads it. */
|
|
1689
|
+
engagedAt: v.optional(v.number()),
|
|
1690
|
+
/** The person's time zone, from their browser at sign-in (`Europe/Dublin`): quiet hours read it. */
|
|
1691
|
+
timeZone: v.optional(v.string()),
|
|
1692
|
+
/** When non-transactional mail went to the address in the last 7 days: the weekly cap counts them. */
|
|
1693
|
+
recentSends: v.optional(v.array(v.number())),
|
|
1694
|
+
/** One-click unsubscribes in the current minute, for the per-token limit. */
|
|
1695
|
+
unsubscribeHits: v.optional(v.object({ windowStart: v.number(), count: v.number() })),
|
|
1696
|
+
/** Whether the provider's contact still has to be written. */
|
|
1697
|
+
pendingSync: v.optional(v.boolean()),
|
|
1698
|
+
/** Whether the provider's contact is unsubscribed from everything, as its `contact.updated` webhook last said. */
|
|
1699
|
+
providerUnsubscribed: v.optional(v.boolean()),
|
|
1700
|
+
})
|
|
1701
|
+
.index('email', ['email'])
|
|
1702
|
+
.index('userId', ['userId']),
|
|
1703
|
+
/** One per contact and topic it decided about: no row reads as the topic's default. */
|
|
1704
|
+
emailTopicChoices: defineTable({
|
|
1705
|
+
contactId: v.id('emailContacts'),
|
|
1706
|
+
/** The topic's key, as `setupEmail({ topics })` names it. */
|
|
1707
|
+
topic: v.string(),
|
|
1708
|
+
state: v.union(v.literal('subscribed'), v.literal('unsubscribed'), v.literal('pending')),
|
|
1709
|
+
/** How the choice was made: `profile`, `double-opt-in`, `soft-opt-in`, `unsubscribe-page`, `one-click` or `provider`. */
|
|
1710
|
+
source: v.string(),
|
|
1711
|
+
at: v.number(),
|
|
1712
|
+
/** A pending choice lapses at this time without its confirmation click. */
|
|
1713
|
+
pendingUntil: v.optional(v.number()),
|
|
1714
|
+
/** When the last double opt-in confirmation went out: the next waits a few minutes, however often the person asks. */
|
|
1715
|
+
askedAt: v.optional(v.number()),
|
|
1716
|
+
})
|
|
1717
|
+
.index('contactId_topic', ['contactId', 'topic']),
|
|
1718
|
+
/**
|
|
1719
|
+
* The id a contact had before an address change merged it onto another
|
|
1720
|
+
* row: the unsubscribe and confirmation links already sent carry it, and
|
|
1721
|
+
* resolve through it to the row the person is on now.
|
|
1722
|
+
*/
|
|
1723
|
+
emailContactAliases: defineTable({
|
|
1724
|
+
formerId: v.string(),
|
|
1725
|
+
contactId: v.id('emailContacts'),
|
|
1726
|
+
})
|
|
1727
|
+
.index('formerId', ['formerId'])
|
|
1728
|
+
.index('contactId', ['contactId']),
|
|
1729
|
+
/** The provider's id of each object `email sync` made or found (a topic, the accounts' segment), so no provider id sits in the app's code. */
|
|
1730
|
+
emailProviderIds: defineTable({
|
|
1731
|
+
kind: v.union(v.literal('topic'), v.literal('segment')),
|
|
1732
|
+
/** The topic's key, or `accounts` for the segment. */
|
|
1733
|
+
key: v.string(),
|
|
1734
|
+
providerId: v.string(),
|
|
1735
|
+
/** For a topic: the version of its words the provider was given, a digest of its description. */
|
|
1736
|
+
version: v.optional(v.string()),
|
|
1737
|
+
syncedAt: v.number(),
|
|
1738
|
+
})
|
|
1739
|
+
.index('kind_key', ['kind', 'key'])
|
|
1740
|
+
.index('providerId', ['providerId']),
|
|
1741
|
+
};
|
|
1742
|
+
/**
|
|
1743
|
+
* Announcements (`setupEmail` → the admin console's Announcements tab): the
|
|
1744
|
+
* notice every signed-in person sees until it expires or they dismiss it,
|
|
1745
|
+
* and the broadcast that may go with it, created once at the provider and
|
|
1746
|
+
* sent by its id.
|
|
1747
|
+
*/
|
|
1748
|
+
export const announcementTables = {
|
|
1749
|
+
announcements: defineTable({
|
|
1750
|
+
/** The notice's words, as the administrator wrote them. */
|
|
1751
|
+
message: v.string(),
|
|
1752
|
+
link: v.optional(vAnnouncementLink),
|
|
1753
|
+
/** When the notice goes away by itself, epoch ms. */
|
|
1754
|
+
expiresAt: v.number(),
|
|
1755
|
+
/** The administrator who published it. */
|
|
1756
|
+
publishedBy: v.string(),
|
|
1757
|
+
/** When an administrator took it down before it expired. */
|
|
1758
|
+
endedAt: v.optional(v.number()),
|
|
1759
|
+
/** The email that goes with it, to the people in a topic. */
|
|
1760
|
+
broadcast: v.optional(v.object({
|
|
1761
|
+
...vBroadcastDraft.fields,
|
|
1762
|
+
state: vBroadcastState,
|
|
1763
|
+
/** When a `creating` claim was taken, so a crashed one is retried after a while. */
|
|
1764
|
+
claimedAt: v.optional(v.number()),
|
|
1765
|
+
/** The provider's id of the broadcast, kept once it is created: a retry sends this one. */
|
|
1766
|
+
providerId: v.optional(v.string()),
|
|
1767
|
+
/** When it goes out, epoch ms: a scheduled send, or the time it was sent. */
|
|
1768
|
+
sendAt: v.optional(v.number()),
|
|
1769
|
+
/** The administrator who sent it. */
|
|
1770
|
+
sentBy: v.optional(v.string()),
|
|
1771
|
+
})),
|
|
1772
|
+
})
|
|
1773
|
+
// The live ones, the soonest to expire first.
|
|
1774
|
+
.index('expiresAt', ['expiresAt']),
|
|
1775
|
+
/** One per person and announcement they dismissed. */
|
|
1776
|
+
announcementDismissals: defineTable({
|
|
1777
|
+
announcementId: v.id('announcements'),
|
|
1778
|
+
userId: v.string(),
|
|
1779
|
+
})
|
|
1780
|
+
.index('userId_announcementId', ['userId', 'announcementId'])
|
|
1781
|
+
.index('announcementId', ['announcementId']),
|
|
1782
|
+
};
|
|
1783
|
+
/**
|
|
1784
|
+
* Lifecycle email (`setupEmail({ lifecycle })`): the flows' settings as
|
|
1785
|
+
* `email sync` kept them, and each person's run of a flow, one row per
|
|
1786
|
+
* email step, checked against the sending rules when it is due.
|
|
1787
|
+
*/
|
|
1788
|
+
export const lifecycleTables = {
|
|
1789
|
+
lifecycleSettings: defineTable({
|
|
1790
|
+
flows: v.array(vFlowSettings),
|
|
1791
|
+
caps: vResolvedCaps,
|
|
1792
|
+
syncedAt: v.number(),
|
|
1793
|
+
}),
|
|
1794
|
+
lifecycleRuns: defineTable({
|
|
1795
|
+
userId: v.string(),
|
|
1796
|
+
/** The address when the run started; a step reads the account's address now. */
|
|
1797
|
+
email: v.string(),
|
|
1798
|
+
/** The flow's key (`winBack`). */
|
|
1799
|
+
flow: v.string(),
|
|
1800
|
+
/** Which of the flow's emails, from 0. */
|
|
1801
|
+
step: v.number(),
|
|
1802
|
+
/** When the step is due, epoch ms; a step the quiet hours hold, when they end. */
|
|
1803
|
+
dueAt: v.number(),
|
|
1804
|
+
/** `waiting` for its time; `held` by the quiet hours, counted already; then `sent`, `skipped` or `stopped`. */
|
|
1805
|
+
state: v.union(v.literal('waiting'), v.literal('held'), v.literal('sent'), v.literal('skipped'), v.literal('stopped')),
|
|
1806
|
+
/** Why it was skipped or stopped: a sending rule, the event that made it moot, `flow_off` or `no_account`. */
|
|
1807
|
+
reason: v.optional(v.string()),
|
|
1808
|
+
/** What the flow's event carries to its automation: a win-back's cancellation `reason`. */
|
|
1809
|
+
data: v.optional(v.record(v.string(), v.string())),
|
|
1810
|
+
/** A flow sent at most once per person: its row stays, to say it was. */
|
|
1811
|
+
once: v.boolean(),
|
|
1812
|
+
})
|
|
1813
|
+
.index('state_dueAt', ['state', 'dueAt'])
|
|
1814
|
+
.index('userId_flow', ['userId', 'flow'])
|
|
1815
|
+
.index('once_state_dueAt', ['once', 'state', 'dueAt']),
|
|
1816
|
+
};
|
|
1817
|
+
/**
|
|
1818
|
+
* The contact form and inbound mail (see `inbound.ts`). A contact message is
|
|
1819
|
+
* stored before anything is sent, and kept 90 days; an inbound message is
|
|
1820
|
+
* what a receiving domain or the support inbox handed the deployment, kept
|
|
1821
|
+
* 90 days too; a reply address is the token a reply-by-email address carries,
|
|
1822
|
+
* with the person and the thread it names.
|
|
1823
|
+
*/
|
|
1824
|
+
export const inboundTables = {
|
|
1825
|
+
contactMessages: defineTable({
|
|
1826
|
+
/** A short random reference, written into the email the team receives so the support inbox's thread can be matched back. */
|
|
1827
|
+
ref: v.string(),
|
|
1828
|
+
/** The account that sent it, when it was signed in. */
|
|
1829
|
+
userId: v.optional(v.string()),
|
|
1830
|
+
name: v.optional(v.string()),
|
|
1831
|
+
/** The address to answer, lower-cased: the typed one, or the account's. */
|
|
1832
|
+
email: v.optional(v.string()),
|
|
1833
|
+
message: v.string(),
|
|
1834
|
+
locale: v.optional(v.string()),
|
|
1835
|
+
sentAt: v.number(),
|
|
1836
|
+
/** Where it went: `support` (a thread in the support inbox), `copy` (the contact mailbox), `kept` (the console alone), `held` (test mode or no key: not sent) or `failed` (the provider refused it). */
|
|
1837
|
+
delivery: v.union(v.literal('support'), v.literal('copy'), v.literal('kept'), v.literal('held'), v.literal('failed')),
|
|
1838
|
+
/** The email the provider queued for it. */
|
|
1839
|
+
emailId: v.optional(v.string()),
|
|
1840
|
+
/** The support inbox's thread and the email in it, once the inbox handed them back: what an administrator's reply answers. */
|
|
1841
|
+
threadId: v.optional(v.string()),
|
|
1842
|
+
inboxEmailId: v.optional(v.string()),
|
|
1843
|
+
/** When an administrator answered it from the Inbox tab, and who. */
|
|
1844
|
+
repliedAt: v.optional(v.number()),
|
|
1845
|
+
repliedBy: v.optional(v.string()),
|
|
1846
|
+
/** The provider's own words for a refusal, cut to 300 characters: for administrators. */
|
|
1847
|
+
error: v.optional(v.string()),
|
|
1848
|
+
})
|
|
1849
|
+
.index('ref', ['ref'])
|
|
1850
|
+
.index('sentAt', ['sentAt'])
|
|
1851
|
+
.index('userId_sentAt', ['userId', 'sentAt'])
|
|
1852
|
+
.index('email_sentAt', ['email', 'sentAt']),
|
|
1853
|
+
inboundMessages: defineTable({
|
|
1854
|
+
/** The provider's id for the received email. */
|
|
1855
|
+
emailId: v.string(),
|
|
1856
|
+
route: v.union(v.literal('reply'), v.literal('workspace'), v.literal('support')),
|
|
1857
|
+
/** The address it came to, lower-cased. */
|
|
1858
|
+
to: v.string(),
|
|
1859
|
+
/** The sender's address, lower-cased. */
|
|
1860
|
+
from: v.string(),
|
|
1861
|
+
fromName: v.optional(v.string()),
|
|
1862
|
+
subject: v.string(),
|
|
1863
|
+
text: v.optional(v.string()),
|
|
1864
|
+
attachments: v.array(v.object({ name: v.string(), size: v.optional(v.number()) })),
|
|
1865
|
+
receivedAt: v.number(),
|
|
1866
|
+
/** The account the sender is (a reply: the reply address's owner; support: the account holding the address), when one is. */
|
|
1867
|
+
userId: v.optional(v.string()),
|
|
1868
|
+
/** A reply: the thread the reply address named. */
|
|
1869
|
+
thread: v.optional(v.string()),
|
|
1870
|
+
workspaceId: v.optional(v.string()),
|
|
1871
|
+
/** The support inbox's thread. */
|
|
1872
|
+
threadId: v.optional(v.string()),
|
|
1873
|
+
/** The inbox's email id: what a reply answers (support only). */
|
|
1874
|
+
inboxEmailId: v.optional(v.string()),
|
|
1875
|
+
/** When the app's hook finished with it. */
|
|
1876
|
+
handledAt: v.optional(v.number()),
|
|
1877
|
+
/** When an administrator answered it from the Inbox tab, and who. */
|
|
1878
|
+
repliedAt: v.optional(v.number()),
|
|
1879
|
+
repliedBy: v.optional(v.string()),
|
|
1880
|
+
})
|
|
1881
|
+
.index('emailId_to', ['emailId', 'to'])
|
|
1882
|
+
.index('receivedAt', ['receivedAt'])
|
|
1883
|
+
.index('userId_receivedAt', ['userId', 'receivedAt'])
|
|
1884
|
+
.index('from_receivedAt', ['from', 'receivedAt']),
|
|
1885
|
+
replyAddresses: defineTable({
|
|
1886
|
+
token: v.string(),
|
|
1887
|
+
userId: v.string(),
|
|
1888
|
+
thread: v.string(),
|
|
1889
|
+
/** When it was made, or last handed out for an email (to the day): maintenance prunes it a year after. */
|
|
1890
|
+
createdAt: v.number(),
|
|
1891
|
+
})
|
|
1892
|
+
.index('token', ['token'])
|
|
1893
|
+
.index('userId_thread', ['userId', 'thread'])
|
|
1894
|
+
.index('createdAt', ['createdAt']),
|
|
1895
|
+
};
|
|
1896
|
+
/** What the person referred gets, as a program names it. */
|
|
1897
|
+
const vReferredReward = v.union(v.object({ discount: v.string() }), v.object({ trialDays: v.number() }));
|
|
1898
|
+
/** What the referrer gets, as a program names it. */
|
|
1899
|
+
const vReferrerReward = v.union(v.object({ pack: v.string() }), v.object({ months: v.number(), plan: v.optional(v.string()) }));
|
|
1900
|
+
/** A program's terms, kept on each referral as they were when it was claimed: the promise made to the person referred. */
|
|
1901
|
+
export const vReferralTerms = v.object({
|
|
1902
|
+
referred: v.optional(vReferredReward),
|
|
1903
|
+
referrer: v.optional(vReferrerReward),
|
|
1904
|
+
holdMs: v.number(),
|
|
1905
|
+
caps: v.object({ perReferrer: v.union(v.null(), v.number()), perMonth: v.union(v.null(), v.number()) }),
|
|
1906
|
+
});
|
|
1907
|
+
/**
|
|
1908
|
+
* The referral program (see `referrals.ts`): the share codes, program-wide
|
|
1909
|
+
* (an account's and a waitlist entry's are one kind), each referral from
|
|
1910
|
+
* its claim to its reward, and the counters the caps read. The program's own
|
|
1911
|
+
* options live in the app (`setupReferrals`); each referral keeps the terms
|
|
1912
|
+
* it was claimed under.
|
|
1913
|
+
*/
|
|
1914
|
+
export const referralTables = {
|
|
1915
|
+
referralCodes: defineTable({
|
|
1916
|
+
/** The code, 8 characters of the unambiguous alphabet. */
|
|
1917
|
+
code: v.string(),
|
|
1918
|
+
/** Whose it is: an account's, or a waitlist entry's until that address signs up and the code moves to the account. */
|
|
1919
|
+
ownerKind: v.union(v.literal('user'), v.literal('entry')),
|
|
1920
|
+
ownerId: v.string(),
|
|
1921
|
+
/** Whether share pages carry the code; absent means yes. The owner's choice. */
|
|
1922
|
+
sharePages: v.optional(v.boolean()),
|
|
1923
|
+
createdAt: v.number(),
|
|
1924
|
+
})
|
|
1925
|
+
.index('code', ['code'])
|
|
1926
|
+
.index('owner', ['ownerKind', 'ownerId']),
|
|
1927
|
+
referrals: defineTable({
|
|
1928
|
+
code: v.string(),
|
|
1929
|
+
referrerId: v.string(),
|
|
1930
|
+
referredId: v.string(),
|
|
1931
|
+
state: v.union(v.literal('claimed'), v.literal('held'), v.literal('rewarded'), v.literal('voided')),
|
|
1932
|
+
terms: vReferralTerms,
|
|
1933
|
+
claimedAt: v.number(),
|
|
1934
|
+
/** The referred person's first paid order, the billing entity it was paid on, and when. */
|
|
1935
|
+
orderId: v.optional(v.string()),
|
|
1936
|
+
entityId: v.optional(v.string()),
|
|
1937
|
+
paidAt: v.optional(v.number()),
|
|
1938
|
+
/** When the hold ends; set with the first payment. */
|
|
1939
|
+
holdUntil: v.optional(v.number()),
|
|
1940
|
+
/** Why an administrator should look before the reward goes out; the reward waits. */
|
|
1941
|
+
flags: v.optional(v.array(v.string())),
|
|
1942
|
+
/** An administrator released the flagged reward. */
|
|
1943
|
+
released: v.optional(v.boolean()),
|
|
1944
|
+
/** A flag waits for an administrator: the admin console's flagged queue. */
|
|
1945
|
+
review: v.optional(v.boolean()),
|
|
1946
|
+
/** When the sweep takes the reward up: the end of the hold, unless a flag waits for an administrator; later after a grant that failed or has to wait. */
|
|
1947
|
+
dueAt: v.optional(v.number()),
|
|
1948
|
+
/** The caps were reached at the end of the hold: recorded and counted, no reward. */
|
|
1949
|
+
capped: v.optional(v.boolean()),
|
|
1950
|
+
/** The hold ended under a program with no referrer reward: recorded and counted, no reward and no slot. */
|
|
1951
|
+
unrewarded: v.optional(v.boolean()),
|
|
1952
|
+
/** SHA-256 of the referred person's mailbox (plus tags and dots taken out): a mailbox is referred once, an erased account's too. */
|
|
1953
|
+
mailbox: v.optional(v.string()),
|
|
1954
|
+
/** A slot under the caps is held for it, in this month's count. */
|
|
1955
|
+
reservedMonth: v.optional(v.string()),
|
|
1956
|
+
/** How far the referrer's reward got, so a grant that stopped half way resumes instead of repeating. */
|
|
1957
|
+
grant: v.optional(v.object({ discountId: v.optional(v.string()), endsAt: v.optional(v.number()), done: v.optional(v.boolean()) })),
|
|
1958
|
+
rewardedAt: v.optional(v.number()),
|
|
1959
|
+
voidedAt: v.optional(v.number()),
|
|
1960
|
+
voidedFor: v.optional(v.string()),
|
|
1961
|
+
})
|
|
1962
|
+
.index('referredId', ['referredId'])
|
|
1963
|
+
.index('referrerId_claimedAt', ['referrerId', 'claimedAt'])
|
|
1964
|
+
.index('code_claimedAt', ['code', 'claimedAt'])
|
|
1965
|
+
.index('state_dueAt', ['state', 'dueAt'])
|
|
1966
|
+
.index('review_claimedAt', ['review', 'claimedAt'])
|
|
1967
|
+
.index('mailbox', ['mailbox'])
|
|
1968
|
+
.index('orderId', ['orderId'])
|
|
1969
|
+
.index('claimedAt', ['claimedAt']),
|
|
1970
|
+
/**
|
|
1971
|
+
* How many rewards a referrer (`referrer:<id>`) and the program in a month
|
|
1972
|
+
* (`month:2026-10`) hold, and the program's totals by state
|
|
1973
|
+
* (`total:claimed`, `total:flagged`, …), kept on every state change.
|
|
1974
|
+
*/
|
|
1975
|
+
referralCounters: defineTable({
|
|
1976
|
+
key: v.string(),
|
|
1977
|
+
count: v.number(),
|
|
1978
|
+
}).index('key', ['key']),
|
|
1979
|
+
/** Each referrer's referrals (voided ones left out) and rewards, kept on every state change: the admin console's top referrers. */
|
|
1980
|
+
referralTallies: defineTable({
|
|
1981
|
+
referrerId: v.string(),
|
|
1982
|
+
referrals: v.number(),
|
|
1983
|
+
rewarded: v.number(),
|
|
1984
|
+
})
|
|
1985
|
+
.index('referrerId', ['referrerId'])
|
|
1986
|
+
.index('rewarded_referrals', ['rewarded', 'referrals']),
|
|
1987
|
+
/** Where the referral sweep wakes the app: the handle of its `referrals:runReferralSweep`. */
|
|
1988
|
+
referralSweep: defineTable({
|
|
1989
|
+
wake: v.string(),
|
|
1990
|
+
updatedAt: v.number(),
|
|
1991
|
+
}),
|
|
1992
|
+
};
|
|
1993
|
+
/**
|
|
1994
|
+
* The growth funnel and the experiments (see `funnel.ts`). The counts
|
|
1995
|
+
* themselves live in the nested `funnelCounts` aggregate, keyed by step,
|
|
1996
|
+
* dimension, value and sign-up week, under ids that name no account, so an
|
|
1997
|
+
* erasure that deletes the rows here keeps every count.
|
|
1998
|
+
* - `funnelPeople`: one row per account the funnel counts: its sign-up
|
|
1999
|
+
* week, how it was attributed (invite, first campaign, referral code,
|
|
2000
|
+
* first promotion, its answer to "How did you hear about us?" and the
|
|
2001
|
+
* free text of an "Other" answer), the steps it reached and the last week
|
|
2002
|
+
* it was active. Deleted with the account.
|
|
2003
|
+
* - `funnelValues`: each value a dimension was attributed, with how many
|
|
2004
|
+
* people it was attributed to; the report lists the `FUNNEL_VALUES_MAX`
|
|
2005
|
+
* with the most people and folds the rest into "Everything else".
|
|
2006
|
+
* - `experiments`: each experiment the deployment saw run: its variants,
|
|
2007
|
+
* goal and guardrails as the code declared them at its last exposure, and
|
|
2008
|
+
* when it first exposed someone. `experimentKinds` indexes it by the
|
|
2009
|
+
* kinds it counts.
|
|
2010
|
+
* - `experimentExposures`: who saw which variant first: the account (or
|
|
2011
|
+
* the workspace, `by: 'workspace'`) and the account that saw it. An
|
|
2012
|
+
* account's erasure deletes its own and drops it from a workspace's.
|
|
2013
|
+
*/
|
|
2014
|
+
/** A campaign link's UTM values, as the first-touch claim takes them. */
|
|
2015
|
+
export const vCampaignTouch = v.object({
|
|
2016
|
+
source: v.optional(v.string()),
|
|
2017
|
+
medium: v.optional(v.string()),
|
|
2018
|
+
campaign: v.optional(v.string()),
|
|
2019
|
+
term: v.optional(v.string()),
|
|
2020
|
+
content: v.optional(v.string()),
|
|
2021
|
+
});
|
|
2022
|
+
/** Where an account stands with "How did you hear about us?", and how it was attributed. */
|
|
2023
|
+
export const vSourceView = v.object({
|
|
2024
|
+
asked: v.boolean(),
|
|
2025
|
+
answer: v.union(v.string(), v.null()),
|
|
2026
|
+
campaign: v.union(v.string(), v.null()),
|
|
2027
|
+
});
|
|
2028
|
+
export const funnelTables = {
|
|
2029
|
+
funnelPeople: defineTable({
|
|
2030
|
+
userId: v.string(),
|
|
2031
|
+
signedUpAt: v.number(),
|
|
2032
|
+
/** The sign-up week (Monday 00:00 UTC): every step of the account counts in it. */
|
|
2033
|
+
week: v.number(),
|
|
2034
|
+
invite: v.optional(v.string()),
|
|
2035
|
+
campaign: v.optional(v.string()),
|
|
2036
|
+
referral: v.optional(v.string()),
|
|
2037
|
+
promotion: v.optional(v.string()),
|
|
2038
|
+
answer: v.optional(v.string()),
|
|
2039
|
+
/** The free text of an "Other" answer. */
|
|
2040
|
+
detail: v.optional(v.string()),
|
|
2041
|
+
/** When the account answered or skipped the question: it is never asked again. */
|
|
2042
|
+
answeredAt: v.optional(v.number()),
|
|
2043
|
+
activatedAt: v.optional(v.number()),
|
|
2044
|
+
trialAt: v.optional(v.number()),
|
|
2045
|
+
paidAt: v.optional(v.number()),
|
|
2046
|
+
/** The last week the account was counted active in. */
|
|
2047
|
+
activeWeek: v.optional(v.number()),
|
|
2048
|
+
})
|
|
2049
|
+
.index('userId', ['userId'])
|
|
2050
|
+
// The latest "Other" answers, for the Growth view.
|
|
2051
|
+
.index('answer_answeredAt', ['answer', 'answeredAt']),
|
|
2052
|
+
funnelValues: defineTable({
|
|
2053
|
+
dimension: v.string(),
|
|
2054
|
+
value: v.string(),
|
|
2055
|
+
/** How many people were attributed to it: the report's rank. Absent on a row from before it was kept. */
|
|
2056
|
+
people: v.optional(v.number()),
|
|
2057
|
+
})
|
|
2058
|
+
.index('dimension_value', ['dimension', 'value'])
|
|
2059
|
+
.index('dimension_people', ['dimension', 'people']),
|
|
2060
|
+
experiments: defineTable({
|
|
2061
|
+
key: v.string(),
|
|
2062
|
+
variants: v.array(v.string()),
|
|
2063
|
+
by: v.union(v.literal('user'), v.literal('workspace')),
|
|
2064
|
+
goal: v.optional(v.string()),
|
|
2065
|
+
guardrails: v.array(v.string()),
|
|
2066
|
+
startedAt: v.number(),
|
|
2067
|
+
}).index('key', ['key']),
|
|
2068
|
+
experimentKinds: defineTable({
|
|
2069
|
+
kind: v.string(),
|
|
2070
|
+
experiment: v.string(),
|
|
2071
|
+
})
|
|
2072
|
+
.index('kind', ['kind'])
|
|
2073
|
+
.index('experiment', ['experiment']),
|
|
2074
|
+
experimentExposures: defineTable({
|
|
2075
|
+
experiment: v.string(),
|
|
2076
|
+
/** The account the variant belongs to, or the workspace for an experiment `by: 'workspace'`. */
|
|
2077
|
+
subject: v.string(),
|
|
2078
|
+
/** The account that saw it; dropped when that account is erased. */
|
|
2079
|
+
userId: v.optional(v.string()),
|
|
2080
|
+
variant: v.string(),
|
|
2081
|
+
at: v.number(),
|
|
2082
|
+
})
|
|
2083
|
+
.index('experiment_subject', ['experiment', 'subject'])
|
|
2084
|
+
.index('subject', ['subject'])
|
|
2085
|
+
.index('userId', ['userId']),
|
|
2086
|
+
};
|
|
2087
|
+
/** Auth-only schema — passed to Better Auth's `createApi` in `adapter.ts`. */
|
|
2088
|
+
export const authSchema = defineSchema(tables);
|
|
2089
|
+
/** Full component schema: auth + billing cache + AI plumbing + webhook log + email plumbing + maintenance + the audit trail + flags + export and erasure + the contact form and inbound mail + launch access + the waitlist + the referral program + files + the job queue + notifications + email preferences + announcements + lifecycle email + the growth funnel and experiments. */
|
|
2090
|
+
export default defineSchema({ ...tables, ...billingTables, ...aiTables, ...webhookTables, ...emailTables, ...maintenanceTables, ...auditTables, ...flagTables, ...accountTables, ...consentTables, ...inboundTables, ...accessTables, ...waitlistTables, ...referralTables, ...storageTables, ...jobTables, ...notificationTables, ...preferenceTables, ...announcementTables, ...lifecycleTables, ...monitoringTables, ...reportTables, ...suppressionTables, ...deviceTables, ...funnelTables });
|
|
2091
|
+
//# sourceMappingURL=schema.js.map
|