nuxt-backend 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +2965 -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 +1010 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +3550 -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 +457 -0
- package/dist/convex/account-data.d.ts.map +1 -0
- package/dist/convex/account-data.js +458 -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 +459 -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 +468 -0
- package/dist/convex/client/better-auth-options.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 +1817 -11540
- 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 +3875 -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 +1013 -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 +42 -0
- package/dist/convex/components/backend/adapter.js.map +1 -0
- package/dist/convex/components/backend/ai.d.ts +210 -0
- package/dist/convex/components/backend/ai.d.ts.map +1 -0
- package/dist/convex/components/backend/ai.js +382 -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 +740 -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 +148 -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 +711 -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 +337 -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 +257 -0
- package/dist/convex/components/backend/notifications.d.ts.map +1 -0
- package/dist/convex/components/backend/notifications.js +439 -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 +711 -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 +6962 -0
- package/dist/convex/components/backend/schema.d.ts.map +1 -0
- package/dist/convex/components/backend/schema.js +2117 -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 +259 -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 +64 -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 +72 -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 +177 -0
- package/dist/convex/constants.d.ts.map +1 -0
- package/dist/convex/constants.js +185 -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 +534 -0
- package/dist/convex/email-templates.d.ts.map +1 -0
- package/dist/convex/email-templates.js +481 -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 +272 -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 +50 -0
- package/dist/convex/integrations/ai/job-errors.d.ts.map +1 -0
- package/dist/convex/integrations/ai/job-errors.js +100 -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 +47 -0
- package/dist/convex/integrations/ai/metering.d.ts.map +1 -0
- package/dist/convex/integrations/ai/metering.js +361 -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 +383 -0
- package/dist/convex/integrations/ai/models.js.map +1 -0
- package/dist/convex/integrations/ai/moderation.d.ts +57 -0
- package/dist/convex/integrations/ai/moderation.d.ts.map +1 -0
- package/dist/convex/integrations/ai/moderation.js +172 -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 +159 -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 +157 -0
- package/dist/convex/integrations/billing/context.d.ts.map +1 -0
- package/dist/convex/integrations/billing/context.js +400 -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 +302 -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 +219 -0
- package/dist/convex/integrations/billing/free-plan.js.map +1 -0
- package/dist/convex/integrations/billing/functions.d.ts +349 -0
- package/dist/convex/integrations/billing/functions.d.ts.map +1 -0
- package/dist/convex/integrations/billing/functions.js +434 -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 +212 -0
- package/dist/convex/integrations/billing/history.js.map +1 -0
- package/dist/convex/integrations/billing/lifecycle.d.ts +102 -0
- package/dist/convex/integrations/billing/lifecycle.d.ts.map +1 -0
- package/dist/convex/integrations/billing/lifecycle.js +495 -0
- package/dist/convex/integrations/billing/lifecycle.js.map +1 -0
- package/dist/convex/integrations/billing/passes.d.ts +70 -0
- package/dist/convex/integrations/billing/passes.d.ts.map +1 -0
- package/dist/convex/integrations/billing/passes.js +408 -0
- package/dist/convex/integrations/billing/passes.js.map +1 -0
- package/dist/convex/integrations/billing/pricing.d.ts +51 -0
- package/dist/convex/integrations/billing/pricing.d.ts.map +1 -0
- package/dist/convex/integrations/billing/pricing.js +320 -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 +288 -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 +147 -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 +369 -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 +517 -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 +661 -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 +192 -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 +422 -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 +205 -0
- package/dist/convex/integrations/notifications.d.ts.map +1 -0
- package/dist/convex/integrations/notifications.js +290 -0
- package/dist/convex/integrations/notifications.js.map +1 -0
- package/dist/convex/integrations/rate-limit.d.ts +428 -0
- package/dist/convex/integrations/rate-limit.d.ts.map +1 -0
- package/dist/convex/integrations/rate-limit.js +294 -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 +491 -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 +70 -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 +44 -0
- package/dist/convex/label-groups/cancelFlow.d.ts.map +1 -0
- package/dist/convex/label-groups/cancelFlow.js +47 -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 +11 -0
- package/dist/convex/label-groups/credits.d.ts.map +1 -0
- package/dist/convex/label-groups/credits.js +12 -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 +169 -0
- package/dist/convex/label-groups/notifications.d.ts.map +1 -0
- package/dist/convex/label-groups/notifications.js +85 -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 +89 -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 +1782 -0
- package/dist/convex/label-translations.js.map +1 -0
- package/dist/convex/labels.d.ts +2520 -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 +147 -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 +327 -0
- package/dist/convex/notifications.d.ts.map +1 -0
- package/dist/convex/notifications.js +180 -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 +152 -0
- package/dist/convex/proof.d.ts.map +1 -0
- package/dist/convex/proof.js +272 -0
- package/dist/convex/proof.js.map +1 -0
- package/dist/convex/referral-rules.d.ts +83 -0
- package/dist/convex/referral-rules.d.ts.map +1 -0
- package/dist/convex/referral-rules.js +110 -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 +72 -0
- package/dist/convex/waitlist-rules.d.ts.map +1 -0
- package/dist/convex/waitlist-rules.js +119 -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 +2724 -0
- package/dist/runtime/locales/en.json +2724 -0
- package/dist/runtime/locales/es.json +2724 -0
- package/dist/runtime/locales/fr.json +2724 -0
- package/dist/runtime/locales/ru.json +2724 -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 +37 -0
- package/dist/runtime/server/protection/gate.js +94 -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/auth-client.d.ts +40 -0
- package/dist/runtime/vue/auth-client.js +7 -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 +66 -0
- package/dist/runtime/vue/components/billing/CancelFlow.vue +97 -0
- package/dist/runtime/vue/components/billing/CancelFlow.vue.d.ts +66 -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 +51 -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 +75 -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 +134 -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 +541 -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 +22 -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 +81 -0
- package/dist/runtime/vue/components/billing/cancel-flow.js +97 -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 +168 -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 +53 -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 +59 -0
- package/dist/runtime/vue/composables/use-auth.js +15 -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 +787 -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 +92 -0
- package/dist/runtime/vue/composables/use-credits.js +67 -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 +107 -0
- package/dist/runtime/vue/composables/use-notifications.js +100 -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 +32 -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/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 +203 -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 +14 -0
- package/dist/runtime/vue/plugins/checkout-return.js +23 -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 +19 -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 +33 -0
- package/dist/runtime/vue/utils/checkout-return.js +39 -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/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/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.-uB5CGw-.mjs +1154 -0
- package/dist/shared/nuxt-backend.2YoiKo8j.mjs +167 -0
- package/dist/shared/nuxt-backend.C62dpRH3.mjs +27 -0
- package/dist/shared/nuxt-backend.CPq101Wi.mjs +571 -0
- package/dist/shared/nuxt-backend.OQMX-0U7.mjs +3559 -0
- package/dist/shared/nuxt-backend.S5C2b-4I.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 +759 -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 +1424 -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 +168 -0
- package/skills/nuxt-backend-auth/references/api.md +159 -0
- package/skills/nuxt-backend-billing/SKILL.md +174 -0
- package/skills/nuxt-backend-billing/references/api.md +104 -0
- package/skills/nuxt-backend-data/SKILL.md +88 -0
- package/skills/nuxt-backend-data/references/api.md +79 -0
- package/skills/nuxt-backend-email/SKILL.md +111 -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 +83 -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 +501 -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 +748 -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 +488 -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 +5827 -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 +1064 -0
- package/src/convex/components/backend/adapter.ts +61 -0
- package/src/convex/components/backend/ai.ts +412 -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 +775 -0
- package/src/convex/components/backend/consents.ts +167 -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 +728 -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 +350 -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 +510 -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 +763 -0
- package/src/convex/components/backend/reports.ts +609 -0
- package/src/convex/components/backend/schema.ts +2183 -0
- package/src/convex/components/backend/storage.ts +699 -0
- package/src/convex/components/backend/subscriptions.ts +268 -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 +296 -0
- package/src/convex/consent-rules.ts +159 -0
- package/src/convex/constants.ts +192 -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 +1021 -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 +509 -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 +131 -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 +394 -0
- package/src/convex/integrations/ai/model-id.ts +16 -0
- package/src/convex/integrations/ai/models.ts +465 -0
- package/src/convex/integrations/ai/moderation.ts +224 -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 +178 -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 +492 -0
- package/src/convex/integrations/billing/credits.ts +237 -0
- package/src/convex/integrations/billing/customers.ts +346 -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 +242 -0
- package/src/convex/integrations/billing/functions.ts +494 -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 +232 -0
- package/src/convex/integrations/billing/lifecycle.ts +510 -0
- package/src/convex/integrations/billing/passes.ts +430 -0
- package/src/convex/integrations/billing/pricing.ts +383 -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 +347 -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 +139 -0
- package/src/convex/integrations/billing/types/options.ts +386 -0
- package/src/convex/integrations/billing/types/records.ts +543 -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 +624 -0
- package/src/convex/integrations/billing/webhooks.ts +330 -0
- package/src/convex/integrations/billing.ts +262 -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 +517 -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 +541 -0
- package/src/convex/integrations/rate-limit.ts +318 -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 +176 -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 +49 -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 +14 -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 +87 -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 +91 -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 +1784 -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 +148 -0
- package/src/convex/loopback.ts +20 -0
- package/src/convex/monitoring.ts +550 -0
- package/src/convex/notifications.ts +291 -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 +323 -0
- package/src/convex/referral-rules.ts +147 -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 +151 -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 +94 -0
- package/src/runtime/vue/components/billing/CancelFlow.vue +123 -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 +52 -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 +75 -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 +140 -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 +710 -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 +23 -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 +219 -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 +96 -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 +57 -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,3559 @@
|
|
|
1
|
+
import { readFileSync, existsSync, writeFileSync, lstatSync, readdirSync, mkdirSync, cpSync, unlinkSync, rmSync, symlinkSync, realpathSync, openSync, fstatSync, closeSync, writeSync, fchmodSync, renameSync } from 'node:fs';
|
|
2
|
+
import { join, dirname, basename, resolve, relative } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { generateKeyPairSync, randomBytes, sign, createHash } from 'node:crypto';
|
|
5
|
+
import { createRequire } from 'node:module';
|
|
6
|
+
import { spawn } from 'node:child_process';
|
|
7
|
+
import { stripVTControlCharacters } from 'node:util';
|
|
8
|
+
import dedent from 'dedent';
|
|
9
|
+
import { defu } from 'defu';
|
|
10
|
+
|
|
11
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const moduleDir = basename(here) === "shared" || basename(here) === "chunks" ? dirname(here) : here;
|
|
13
|
+
const packageDir = dirname(moduleDir);
|
|
14
|
+
function isSourceDir(dir) {
|
|
15
|
+
return basename(dir) === "src";
|
|
16
|
+
}
|
|
17
|
+
const runsFromSource = isSourceDir(moduleDir);
|
|
18
|
+
let manifest;
|
|
19
|
+
function packageManifest() {
|
|
20
|
+
manifest ??= JSON.parse(readFileSync(join(packageDir, "package.json"), "utf8"));
|
|
21
|
+
return manifest;
|
|
22
|
+
}
|
|
23
|
+
function packageVersion() {
|
|
24
|
+
return packageManifest().version;
|
|
25
|
+
}
|
|
26
|
+
function dependencyRange(name) {
|
|
27
|
+
const range = packageManifest().dependencies[name];
|
|
28
|
+
if (!range) throw new Error(`nuxt-backend does not depend on ${name}`);
|
|
29
|
+
return range;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const AI_FINDINGS = {
|
|
33
|
+
"ai-stream-route": { title: "AI stream route" },
|
|
34
|
+
// `ai.chat` and `ai.knowledge` run on Convex's Agent and RAG components, which the app mounts itself.
|
|
35
|
+
"ai-components": { title: "Chat and knowledge components", prod: "fail" },
|
|
36
|
+
// A sandbox (a public demo) makes no model call without a daily spend limit.
|
|
37
|
+
"ai-spend-limit": { title: "AI spend limit on a sandbox", prod: "fail" },
|
|
38
|
+
"deployment-ai-gateway-api-key": { title: "Deployment AI_GATEWAY_API_KEY", prod: "fail", fixable: true },
|
|
39
|
+
"deployment-provenance-private-key": { title: "Deployment PROVENANCE_PRIVATE_KEY", prod: "fail", fixable: true },
|
|
40
|
+
"deployment-provenance-certificate": { title: "Deployment PROVENANCE_CERTIFICATE", prod: "fail", fixable: true }
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const ANALYTICS_FINDINGS = {
|
|
44
|
+
"analytics-metrics": { title: "Billing metrics" },
|
|
45
|
+
"analytics-activation": { title: "Activation event" }
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const AUTH_FINDINGS = {
|
|
49
|
+
"auth-secret": { title: "Auth secret", fixable: true },
|
|
50
|
+
"site-url": { title: "App site URL", fixable: true },
|
|
51
|
+
"deployment-auth-secret": { title: "Deployment AUTH_SECRET", fixable: true },
|
|
52
|
+
"deployment-site-url": { title: "Deployment SITE_URL", fixable: true },
|
|
53
|
+
// --prod only: production's SITE_URL, and the live site at it.
|
|
54
|
+
"site-url-origin": { title: "Production site URL" },
|
|
55
|
+
"site-gated-page": { title: "Gated pages" },
|
|
56
|
+
"site-auth-proxy": { title: "Sign-in proxy" },
|
|
57
|
+
// --prod only: every required consent links its document.
|
|
58
|
+
"consent-urls": { title: "Consent documents" },
|
|
59
|
+
// An account with the admin role, read off the deployment; --fix asks for its address.
|
|
60
|
+
"admin-bootstrap": { title: "First administrator", fixable: true },
|
|
61
|
+
// The deployment's paths (auth:authConfig) against nuxt.config's: the auth route and the pages its emails link to.
|
|
62
|
+
"page-paths": { title: "Page paths" }
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const BILLING_FINDINGS = {
|
|
66
|
+
"billing-access": { title: "Billing access", prod: "fail", fixable: true },
|
|
67
|
+
// `billing sync` sets the secret, and `doctor --fix` never runs it.
|
|
68
|
+
"billing-webhook-secret": { title: "Billing webhooks", prod: "fail" },
|
|
69
|
+
"deployment-billing-access-token": { title: "Deployment BILLING_ACCESS_TOKEN", prod: "fail", fixable: true },
|
|
70
|
+
"deployment-billing-webhook-secret": { title: "Deployment BILLING_WEBHOOK_SECRET", prod: "fail" },
|
|
71
|
+
"billing-webhook-route": { title: "Billing webhook route", prod: "fail" },
|
|
72
|
+
// The provider's endpoint for the deployment: still delivering, and subscribed to every event the package handles.
|
|
73
|
+
"billing-webhook-enabled": { title: "Billing webhook endpoint", prod: "fail", fixable: true },
|
|
74
|
+
"billing-webhook-events": { title: "Billing webhook events", fixable: true },
|
|
75
|
+
"billing-meter-usage": { title: "Billing meters" },
|
|
76
|
+
"billing-organization": { title: "Billing organization" },
|
|
77
|
+
"billing-multiple-subscriptions": { title: "Multiple subscriptions" },
|
|
78
|
+
"billing-proration": { title: "Plan change proration" },
|
|
79
|
+
"billing-benefit-grace": { title: "Benefit revocation" },
|
|
80
|
+
// `doctor --fix` turns these on at the provider, after you confirm; never off.
|
|
81
|
+
"billing-trial-abuse": { title: "Trial abuse prevention", fixable: true },
|
|
82
|
+
"billing-portal": { title: "Customer portal" },
|
|
83
|
+
"billing-customer-emails": { title: "Customer emails", fixable: true },
|
|
84
|
+
"billing-team-customers": { title: "Team customers" },
|
|
85
|
+
"billing-gift-twins": { title: "Gift products" },
|
|
86
|
+
"billing-pass-products": { title: "Plan pass products" },
|
|
87
|
+
"billing-feature-benefits": { title: "Feature benefits" },
|
|
88
|
+
"billing-promotion-limits": { title: "Promotion limits" },
|
|
89
|
+
"billing-promotion-portal": { title: "Promotions and plan changes" },
|
|
90
|
+
"billing-provider-sdk": { title: "Billing provider SDK" },
|
|
91
|
+
// --prod only: the catalog against the production ids billing sync wrote.
|
|
92
|
+
"billing-catalog-production": { title: "Production catalog" }
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const DEPLOYMENT_FINDINGS = {
|
|
96
|
+
"backend-site-url": { title: "Backend site URL" },
|
|
97
|
+
"deployment-env": { title: "Deployment env" },
|
|
98
|
+
// Unset, `development` and `preview` fail under --prod; `sandbox` is a deliberate warning.
|
|
99
|
+
"deployment-backend-environment": { title: "Deployment BACKEND_ENVIRONMENT", prod: "fail", fixable: true },
|
|
100
|
+
"deployment-removed-env": { title: "Removed variables" },
|
|
101
|
+
"env-defaults": { title: "Preview env defaults" }
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const EMAIL_FINDINGS = {
|
|
105
|
+
"email-transport": { title: "Email transport", prod: "fail", fixable: true },
|
|
106
|
+
"email-webhook-secret": { title: "Email webhooks", prod: "fail", fixable: true },
|
|
107
|
+
"deployment-email-api-key": { title: "Deployment EMAIL_API_KEY", prod: "fail", fixable: true },
|
|
108
|
+
"deployment-email-from": { title: "Deployment EMAIL_FROM", fixable: true },
|
|
109
|
+
"deployment-email-webhook-secret": { title: "Deployment EMAIL_WEBHOOK_SECRET", prod: "fail", fixable: true },
|
|
110
|
+
"email-webhook-route": { title: "Email webhook route", prod: "fail" },
|
|
111
|
+
// The dev inbox's page reader: opted into outside production, and never left set on production.
|
|
112
|
+
"deployment-email-dev-inbox": { title: "Deployment EMAIL_DEV_INBOX" },
|
|
113
|
+
// --prod only: read by the deployment with its own key (posture:email).
|
|
114
|
+
"email-sender-domain": { title: "Sending domain" },
|
|
115
|
+
"email-reputation": { title: "Bounces and complaints" },
|
|
116
|
+
"email-quota": { title: "Sending quota" },
|
|
117
|
+
// Read by the deployment's own email sync, as a dry run (email:syncEmail).
|
|
118
|
+
"email-key-permission": { title: "Email key permission", fixable: true },
|
|
119
|
+
"email-topics": { title: "Email topics", fixable: true },
|
|
120
|
+
"email-flows": { title: "Lifecycle email flows", fixable: true },
|
|
121
|
+
"email-webhook-events": { title: "Email webhook events", fixable: true },
|
|
122
|
+
"email-webhook-enabled": { title: "Email webhook endpoint", prod: "fail", fixable: true },
|
|
123
|
+
"email-postal-address": { title: "Postal address" },
|
|
124
|
+
"email-marketing-from": { title: "Marketing sender" },
|
|
125
|
+
// EMAIL_REGION against the sending domain's region at the provider.
|
|
126
|
+
"email-region": { title: "Sending region" }
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const MONITORING_FINDINGS = {
|
|
130
|
+
"deployment-monitoring-dsn": { title: "Deployment MONITORING_DSN", fixable: true },
|
|
131
|
+
"monitoring-app": { title: "App error reports" },
|
|
132
|
+
"monitoring-source-maps": { title: "Source maps" },
|
|
133
|
+
"monitoring-backend-exceptions": { title: "Backend exception reporting" },
|
|
134
|
+
// --prod only: probed on the live site.
|
|
135
|
+
"monitoring-health": { title: "Health endpoint" },
|
|
136
|
+
// --prod only: production's usage limits, read with the Convex CLI.
|
|
137
|
+
"monitoring-usage-alerts": { title: "Usage alerts" }
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
const NOTIFICATIONS_FINDINGS = {
|
|
141
|
+
// The web push key pair env push generates: unset, the inbox works and push does not.
|
|
142
|
+
"deployment-push-public-key": { title: "Deployment PUSH_PUBLIC_KEY", fixable: true },
|
|
143
|
+
"deployment-push-private-key": { title: "Deployment PUSH_PRIVATE_KEY", fixable: true },
|
|
144
|
+
// The manifest the module serves from the brand and two icons in public/.
|
|
145
|
+
"installable": { title: "Installable app" }
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const PROTECTION_FINDINGS = {
|
|
149
|
+
"bot-protection": { title: "Bot protection" },
|
|
150
|
+
"protection-proof": { title: "Bot-check proof" },
|
|
151
|
+
"protection-challenge-keys": { title: "Challenge keys" },
|
|
152
|
+
"waitlist-bot-check": { title: "Waitlist bot check" },
|
|
153
|
+
"contact-bot-check": { title: "Contact form bot check" },
|
|
154
|
+
// Guest jobs: a visitor's cookie and proof are signed with PROTECTION_PROOF_SECRET.
|
|
155
|
+
"protection-guest-jobs": { title: "Guest jobs", prod: "fail" },
|
|
156
|
+
"deployment-protection-proof-secret": { title: "Deployment PROTECTION_PROOF_SECRET", fixable: true },
|
|
157
|
+
"deployment-protection-challenge-secret-key": { title: "Deployment PROTECTION_CHALLENGE_SECRET_KEY", fixable: true }
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const SCAFFOLD_FINDINGS = {
|
|
161
|
+
"convex-codegen": { title: "Convex codegen" },
|
|
162
|
+
// The paths file the module writes from nuxt.config, against nuxt.config.
|
|
163
|
+
"paths-file": { title: "Paths file", fixable: true },
|
|
164
|
+
// The brand file the module writes from app.config, against app.config.
|
|
165
|
+
"brand-file": { title: "Brand file", fixable: true },
|
|
166
|
+
"dev-script": { title: "Dev script", fixable: true },
|
|
167
|
+
"convex-config": { title: "Mounts and routes", fixable: true },
|
|
168
|
+
"function-contract": { title: "Function contract", fixable: true },
|
|
169
|
+
"agent-files": { title: "Agent files" },
|
|
170
|
+
// Informational: a same-named component is how an app swaps a part.
|
|
171
|
+
"name-collisions": { title: "Name collisions" },
|
|
172
|
+
// From the last `analyze` run, which doctor never makes itself; none until there is one.
|
|
173
|
+
"bundle-duplicates": { title: "Duplicate packages in the Convex bundle" }
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
const SITE_FINDINGS = {
|
|
177
|
+
"site-https": { title: "HTTPS and HSTS" },
|
|
178
|
+
"site-csp": { title: "Content security policy" },
|
|
179
|
+
"site-backend-url": { title: "Backend the site uses" },
|
|
180
|
+
"agent-docs": { title: "Docs for agents" }
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
const BACKEND_ENVIRONMENTS = ["development", "preview", "sandbox", "production"];
|
|
184
|
+
function parseBackendEnvironment(value) {
|
|
185
|
+
const trimmed = value?.trim();
|
|
186
|
+
return BACKEND_ENVIRONMENTS.includes(trimmed ?? "") ? trimmed : void 0;
|
|
187
|
+
}
|
|
188
|
+
function isLive(environment) {
|
|
189
|
+
return environment === "production";
|
|
190
|
+
}
|
|
191
|
+
function billingEnvironment(environment) {
|
|
192
|
+
return isLive(environment) ? "production" : "sandbox";
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const PROOF_HEADER = "x-backend-proof";
|
|
196
|
+
const PROTECTED_AUTH_ROUTES = [
|
|
197
|
+
"/email-otp/send-verification-otp",
|
|
198
|
+
"/email-otp/request-password-reset",
|
|
199
|
+
"/forget-password/email-otp",
|
|
200
|
+
"/sign-up/email",
|
|
201
|
+
"/sign-in/email"
|
|
202
|
+
];
|
|
203
|
+
const TEST_CHALLENGE_SITE_KEYS = [
|
|
204
|
+
"1x00000000000000000000AA",
|
|
205
|
+
"2x00000000000000000000AB",
|
|
206
|
+
"1x00000000000000000000BB",
|
|
207
|
+
"2x00000000000000000000BB",
|
|
208
|
+
"3x00000000000000000000FF"
|
|
209
|
+
];
|
|
210
|
+
const TEST_CHALLENGE_SECRET_KEYS = [
|
|
211
|
+
"1x0000000000000000000000000000000AA",
|
|
212
|
+
"2x0000000000000000000000000000000AA",
|
|
213
|
+
"3x0000000000000000000000000000000AA"
|
|
214
|
+
];
|
|
215
|
+
function proofAudience(siteUrl) {
|
|
216
|
+
if (!siteUrl) return "";
|
|
217
|
+
try {
|
|
218
|
+
return new URL(siteUrl).host.toLowerCase();
|
|
219
|
+
} catch {
|
|
220
|
+
return "";
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function proofMessage({ method, path, audience, subject = "" }, stamp) {
|
|
224
|
+
return new TextEncoder().encode(`backend-proof:v1
|
|
225
|
+
${JSON.stringify([method.toUpperCase(), path, audience, subject, stamp])}`);
|
|
226
|
+
}
|
|
227
|
+
function proofKey(secret, usage) {
|
|
228
|
+
return crypto.subtle.importKey("raw", new TextEncoder().encode(secret), { name: "HMAC", hash: "SHA-256" }, false, [usage]);
|
|
229
|
+
}
|
|
230
|
+
function toBase64Url(bytes) {
|
|
231
|
+
let binary = "";
|
|
232
|
+
for (const byte of new Uint8Array(bytes)) binary += String.fromCharCode(byte);
|
|
233
|
+
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
234
|
+
}
|
|
235
|
+
function proofKeys(secret) {
|
|
236
|
+
return secret.split(",").map((key) => key.trim()).filter(Boolean);
|
|
237
|
+
}
|
|
238
|
+
async function signProof(secret, target) {
|
|
239
|
+
const [key] = proofKeys(secret);
|
|
240
|
+
if (!key) throw new TypeError("[nuxt-backend] signProof: no secret to sign with.");
|
|
241
|
+
const stamp = Math.floor(target.now ?? Date.now());
|
|
242
|
+
const signature = await crypto.subtle.sign("HMAC", await proofKey(key, "sign"), proofMessage(target, stamp));
|
|
243
|
+
return `v1.${stamp}.${toBase64Url(signature)}`;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const RPC_NAMESPACE = "nuxt-backend";
|
|
247
|
+
const DEVTOOLS_UI_ROUTE = "/__nuxt-backend";
|
|
248
|
+
const DEVTOOLS_UI_LOCAL_PORT = 3631;
|
|
249
|
+
const DEPLOYMENT_KIND_LABEL = {
|
|
250
|
+
"cloud-dev": "cloud dev deployment",
|
|
251
|
+
"local": "local deployment",
|
|
252
|
+
"anonymous": "local deployment, no account",
|
|
253
|
+
"self-hosted": "self-hosted backend",
|
|
254
|
+
"production": "production deployment",
|
|
255
|
+
"preview": "preview deployment",
|
|
256
|
+
"none": "no deployment configured"
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
function isSet(context, name) {
|
|
260
|
+
if (context.deployed) return context.deployed.has(name);
|
|
261
|
+
if (context.prod) return false;
|
|
262
|
+
return Boolean(context.env[name]) || context.provisioned?.has(name) === true;
|
|
263
|
+
}
|
|
264
|
+
function unsetReason(context, names) {
|
|
265
|
+
if (context.prod && !context.deployed) return "production's env names could not be read";
|
|
266
|
+
const subject = `${names.join(" and ")} ${names.length === 1 ? "is" : "are"}`;
|
|
267
|
+
if (context.prod) return `${subject} not set on the production deployment`;
|
|
268
|
+
if (context.deployed && names.every((name) => context.env[name])) return `${subject} set here but not on the deployment (run env push)`;
|
|
269
|
+
return `${subject} not set`;
|
|
270
|
+
}
|
|
271
|
+
function switchValue(context, name) {
|
|
272
|
+
if (context.switches && name in context.switches) return context.switches[name];
|
|
273
|
+
if (!isSet(context, name)) return void 0;
|
|
274
|
+
return context.prod ? null : context.env[name] || null;
|
|
275
|
+
}
|
|
276
|
+
function failingFinding(context, capability) {
|
|
277
|
+
const failed = context.findings.find((finding) => finding.capability === capability && finding.status === "fail");
|
|
278
|
+
return failed ? { state: "failing", reason: `${failed.title} failed` } : null;
|
|
279
|
+
}
|
|
280
|
+
function onDeployment(context) {
|
|
281
|
+
const { deployment } = context;
|
|
282
|
+
if (deployment === "none") return { state: "missing", reason: "no deployment is configured" };
|
|
283
|
+
const reason = `runs on the ${DEPLOYMENT_KIND_LABEL[deployment]}`;
|
|
284
|
+
return { state: ["production", "self-hosted"].includes(deployment) ? "live" : "test", reason };
|
|
285
|
+
}
|
|
286
|
+
function notificationsMode(context) {
|
|
287
|
+
const deployment = onDeployment(context);
|
|
288
|
+
if (deployment.state === "missing") return deployment;
|
|
289
|
+
const unset = ["PUSH_PUBLIC_KEY", "PUSH_PRIVATE_KEY"].filter((name) => !isSet(context, name));
|
|
290
|
+
if (unset.length > 0) return { state: "missing", reason: `${unsetReason(context, unset.slice(0, 1))}: the in-app inbox works, web push does not` };
|
|
291
|
+
return deployment;
|
|
292
|
+
}
|
|
293
|
+
function environmentOf(context) {
|
|
294
|
+
const value = switchValue(context, "BACKEND_ENVIRONMENT");
|
|
295
|
+
return value === null ? null : parseBackendEnvironment(value);
|
|
296
|
+
}
|
|
297
|
+
function emailMode(context) {
|
|
298
|
+
if (!isSet(context, "EMAIL_API_KEY")) return { state: "missing", reason: `${unsetReason(context, ["EMAIL_API_KEY"])}, so sends no-op` };
|
|
299
|
+
const environment = environmentOf(context);
|
|
300
|
+
if (environment === null) return { state: "test", reason: "BACKEND_ENVIRONMENT is set on the deployment and its value was not read: taken as test mode" };
|
|
301
|
+
if (isLive(environment)) return { state: "live", reason: "BACKEND_ENVIRONMENT is production: delivers to every address" };
|
|
302
|
+
return { state: "test", reason: environment ? `BACKEND_ENVIRONMENT is ${environment}: only the provider's test addresses receive mail` : "test mode: only the provider's test addresses receive mail" };
|
|
303
|
+
}
|
|
304
|
+
function modelMode(context) {
|
|
305
|
+
if (isSet(context, "AI_GATEWAY_API_KEY")) return null;
|
|
306
|
+
const key = context.findings.find((finding) => finding.id === "deployment-ai-gateway-api-key");
|
|
307
|
+
if (key?.status === "warn" || key?.status === "fail") return { state: "missing", reason: `its models are refused: ${unsetReason(context, ["AI_GATEWAY_API_KEY"])}` };
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
function billingMode(context) {
|
|
311
|
+
if (!isSet(context, "BILLING_ACCESS_TOKEN")) return { state: "missing", reason: unsetReason(context, ["BILLING_ACCESS_TOKEN"]) };
|
|
312
|
+
const environment = environmentOf(context);
|
|
313
|
+
if (environment === null) return { state: "test", reason: "BACKEND_ENVIRONMENT is set on the deployment and its value was not read: taken as the sandbox" };
|
|
314
|
+
return isLive(environment) ? { state: "live", reason: "the production billing environment" } : { state: "test", reason: "the billing sandbox" };
|
|
315
|
+
}
|
|
316
|
+
function protectionTakes(proof, challenge) {
|
|
317
|
+
if (proof && challenge) return "proofs from the app's bot check, or a challenge answer";
|
|
318
|
+
if (proof) return "proofs the app's server signs once its bot check passed (BotID on Vercel)";
|
|
319
|
+
return challenge ? "challenge answers the deployment verifies" : null;
|
|
320
|
+
}
|
|
321
|
+
function onTestSiteKey(context) {
|
|
322
|
+
const siteKey = context.prod ? void 0 : context.env.NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY;
|
|
323
|
+
return Boolean(siteKey && TEST_CHALLENGE_SITE_KEYS.includes(siteKey));
|
|
324
|
+
}
|
|
325
|
+
function protectionMode(context) {
|
|
326
|
+
const proof = isSet(context, "PROTECTION_PROOF_SECRET");
|
|
327
|
+
const challenge = isSet(context, "PROTECTION_CHALLENGE_SECRET_KEY");
|
|
328
|
+
const takes = protectionTakes(proof, challenge);
|
|
329
|
+
const siteKey = context.env.NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY;
|
|
330
|
+
if (context.deployment === "none") return { state: "missing", reason: "no deployment is configured" };
|
|
331
|
+
if (!context.prod && context.deployment !== "production") {
|
|
332
|
+
if (challenge && !proof && siteKey && !onTestSiteKey(context)) return { state: "live", reason: `${takes}, from a real challenge on the dev server` };
|
|
333
|
+
return { state: "test", reason: `test mode: the dev server's bot check answers human, as BotID does in development${takes ? `; the deployment takes ${takes}` : ""}` };
|
|
334
|
+
}
|
|
335
|
+
if (!takes) {
|
|
336
|
+
return { state: "missing", reason: context.prod && !context.deployed ? "production's env names could not be read" : "neither PROTECTION_PROOF_SECRET nor PROTECTION_CHALLENGE_SECRET_KEY is set, so nothing checks for bots" };
|
|
337
|
+
}
|
|
338
|
+
if (!proof && onTestSiteKey(context)) {
|
|
339
|
+
return { state: "test", reason: "the challenge runs on the provider's test keys, which answer the same for everyone" };
|
|
340
|
+
}
|
|
341
|
+
return { state: "live", reason: takes };
|
|
342
|
+
}
|
|
343
|
+
function monitoringMode(context) {
|
|
344
|
+
const backend = isSet(context, "MONITORING_DSN");
|
|
345
|
+
const app = context.app?.monitoring === true;
|
|
346
|
+
if (backend && app) return { state: "live", reason: "the app and the backend report errors" };
|
|
347
|
+
if (app) return { state: "live", reason: `the app reports errors; the backend does not: ${unsetReason(context, ["MONITORING_DSN"])}` };
|
|
348
|
+
if (backend) return { state: "live", reason: context.prod ? "the backend reports errors" : "the backend reports errors; the app does not: no error-reporting SDK is wired with a DSN" };
|
|
349
|
+
if (!context.prod && ["local", "anonymous", "cloud-dev"].includes(context.deployment)) {
|
|
350
|
+
return { state: "test", reason: "no DSN is set, so errors go to the dev server's local error log (DevTools \u203A Monitoring)" };
|
|
351
|
+
}
|
|
352
|
+
return { state: "missing", reason: `${unsetReason(context, ["MONITORING_DSN"])}, so errors go unreported` };
|
|
353
|
+
}
|
|
354
|
+
function hostingMode(context) {
|
|
355
|
+
const { deployment } = context;
|
|
356
|
+
if (deployment === "preview") return { state: "test", reason: "a preview deployment serves the app" };
|
|
357
|
+
if (deployment !== "production" && deployment !== "self-hosted") return { state: "missing", reason: "no production deployment yet" };
|
|
358
|
+
if (environmentOf(context) === "sandbox") return { state: "test", reason: "BACKEND_ENVIRONMENT is sandbox: a demo or staging app on the providers' test modes" };
|
|
359
|
+
return { state: "live", reason: `the ${DEPLOYMENT_KIND_LABEL[deployment]} serves the app` };
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
const CAPABILITIES = {
|
|
363
|
+
auth: {
|
|
364
|
+
title: "Auth",
|
|
365
|
+
purpose: "Sign-in by email code and passkey, sessions, workspaces with roles and invitations, the admin console with impersonation, the activity trail, and each account's data export and complete erasure.",
|
|
366
|
+
providers: [{ name: "Better Auth", gives: "sessions, sign-in codes, passkeys and workspaces" }],
|
|
367
|
+
development: "sign-in codes print in the dev console, or reach the email provider's test addresses, which the dev inbox reads back",
|
|
368
|
+
env: ["AUTH_SECRET", "SITE_URL"],
|
|
369
|
+
findings: ["auth"],
|
|
370
|
+
docs: "/docs/build/auth",
|
|
371
|
+
devtools: "account",
|
|
372
|
+
playground: ["/playground/strips", "/playground/welcome", "/playground/profile", "/playground/security", "/playground/settings", "/playground/admin"],
|
|
373
|
+
detect(context) {
|
|
374
|
+
const failing = failingFinding(context, "auth");
|
|
375
|
+
if (failing) return failing;
|
|
376
|
+
const unset = ["AUTH_SECRET", "SITE_URL"].filter((name) => !isSet(context, name));
|
|
377
|
+
if (unset.length > 0) return { state: "missing", reason: unsetReason(context, unset) };
|
|
378
|
+
return emailMode(context).state === "live" ? { state: "live", reason: "sign-in codes reach real inboxes" } : { state: "test", reason: "sign-in codes print in the dev console, or reach the email provider's test addresses" };
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
data: {
|
|
382
|
+
title: "Data",
|
|
383
|
+
purpose: "The database with realtime queries, server rendering, full-text search, aggregates, counters and file storage.",
|
|
384
|
+
providers: [{ name: "Convex", gives: "the database, realtime queries, search and file storage" }],
|
|
385
|
+
development: "a dev deployment of your own, or a local one on this machine",
|
|
386
|
+
env: ["NUXT_PUBLIC_BACKEND_URL", "BACKEND_ENVIRONMENT"],
|
|
387
|
+
dotenvTitle: "Backend",
|
|
388
|
+
findings: ["deployment", "scaffold"],
|
|
389
|
+
docs: "/docs/build/data",
|
|
390
|
+
devtools: "overview",
|
|
391
|
+
playground: ["/playground/strips", "/playground"],
|
|
392
|
+
detect: (context) => failingFinding(context, "data") ?? onDeployment(context)
|
|
393
|
+
},
|
|
394
|
+
jobs: {
|
|
395
|
+
title: "Jobs",
|
|
396
|
+
purpose: "Scheduled jobs, durable workflows, queued work, cached action results, migrations and the backend's own hourly maintenance.",
|
|
397
|
+
providers: [{ name: "Convex", gives: "the scheduler, and the crons, workflow, workpool, action cache and migrations components" }],
|
|
398
|
+
development: "the dev deployment's scheduler",
|
|
399
|
+
env: [],
|
|
400
|
+
findings: [],
|
|
401
|
+
docs: "/docs/build/data/jobs",
|
|
402
|
+
devtools: "overview",
|
|
403
|
+
playground: ["/playground/strips", "/playground/admin/demo"],
|
|
404
|
+
detect: (context) => failingFinding(context, "jobs") ?? onDeployment(context)
|
|
405
|
+
},
|
|
406
|
+
billing: {
|
|
407
|
+
title: "Billing",
|
|
408
|
+
purpose: "Plans with monthly and yearly prices, prepaid credits, a server-rendered pricing page, feature gates, gifts and the customer portal, from a catalog in code.",
|
|
409
|
+
providers: [{ name: "Polar", gives: "products, checkout, subscriptions, meters and the customer portal" }],
|
|
410
|
+
development: "the billing provider's sandbox, with a test card",
|
|
411
|
+
env: ["BILLING_ACCESS_TOKEN", "BILLING_WEBHOOK_SECRET"],
|
|
412
|
+
findings: ["billing"],
|
|
413
|
+
docs: "/docs/build/billing",
|
|
414
|
+
devtools: "billing",
|
|
415
|
+
playground: ["/playground/pricing", "/playground/settings", "/playground/gifts"],
|
|
416
|
+
detect: (context) => failingFinding(context, "billing") ?? billingMode(context)
|
|
417
|
+
},
|
|
418
|
+
email: {
|
|
419
|
+
title: "Email",
|
|
420
|
+
purpose: "Transactional and marketing mail from one template registry, with delivery tracking and the dev inbox.",
|
|
421
|
+
providers: [{ name: "Resend", gives: "sending, delivery events, contacts and topics" }],
|
|
422
|
+
development: "the provider's test mode: its test addresses accept mail and send real delivery events, and the dev inbox reads what was sent back",
|
|
423
|
+
env: ["EMAIL_API_KEY", "EMAIL_FROM", "EMAIL_MARKETING_FROM", "EMAIL_REGION", "EMAIL_WEBHOOK_SECRET", "EMAIL_DEV_INBOX"],
|
|
424
|
+
findings: ["email"],
|
|
425
|
+
docs: "/docs/build/email",
|
|
426
|
+
devtools: "email",
|
|
427
|
+
playground: ["/playground/notifications", "/playground/settings"],
|
|
428
|
+
detect: (context) => failingFinding(context, "email") ?? emailMode(context)
|
|
429
|
+
},
|
|
430
|
+
notifications: {
|
|
431
|
+
title: "Notifications",
|
|
432
|
+
purpose: "An in-app inbox for every event the backend records about a person and for events of your own, live and in each person's language, with the unread count and marking read; the kinds that allow it by email, and as web push to each device a person allowed, under their channel choices.",
|
|
433
|
+
providers: [{ name: "Web Push", gives: "notifications on a phone or a desktop with the app closed, through the browsers' own push services, signed and encrypted inside the deployment; no account" }],
|
|
434
|
+
development: "the same code on your dev deployment: events recorded there reach the inbox at once, and a push reaches a browser that subscribed on the dev app",
|
|
435
|
+
env: ["PUSH_PUBLIC_KEY", "PUSH_PRIVATE_KEY"],
|
|
436
|
+
findings: ["notifications"],
|
|
437
|
+
docs: "/docs/build/email/notifications",
|
|
438
|
+
devtools: "account",
|
|
439
|
+
playground: ["/playground/notifications"],
|
|
440
|
+
detect: (context) => notificationsMode(context)
|
|
441
|
+
},
|
|
442
|
+
ai: {
|
|
443
|
+
title: "AI",
|
|
444
|
+
purpose: "Metered model calls and streams: each call reserves prepaid credits, runs the model by its provider/model id, then settles at the cost it reports.",
|
|
445
|
+
providers: [
|
|
446
|
+
{ name: "AI SDK", gives: "model calls and streams, by provider/model id" },
|
|
447
|
+
{ name: "Vercel AI Gateway", gives: "one key for every provider's models, and the cost of each call" },
|
|
448
|
+
{ name: "Convex persistent text streaming", gives: "streams that persist server-side and resume after a reload" },
|
|
449
|
+
{ name: "Polar", gives: "the credit meters each call spends" }
|
|
450
|
+
],
|
|
451
|
+
development: "the models themselves, through the Convex AI Gateway or a Vercel AI Gateway key, and credits from the billing sandbox",
|
|
452
|
+
env: ["AI_GATEWAY_API_KEY", "PROVENANCE_PRIVATE_KEY", "PROVENANCE_CERTIFICATE"],
|
|
453
|
+
findings: ["ai"],
|
|
454
|
+
docs: "/docs/build/ai",
|
|
455
|
+
devtools: "billing",
|
|
456
|
+
playground: ["/playground/strips", "/playground/admin/demo"],
|
|
457
|
+
detect(context) {
|
|
458
|
+
const failing = failingFinding(context, "ai");
|
|
459
|
+
if (failing) return failing;
|
|
460
|
+
const billing = billingMode(context);
|
|
461
|
+
if (billing.state === "missing") return { state: "missing", reason: `its credits need billing: ${billing.reason}` };
|
|
462
|
+
const models = modelMode(context);
|
|
463
|
+
if (models) return models;
|
|
464
|
+
if (billing.state === "live") return { state: "live", reason: "spends credits in the production billing environment" };
|
|
465
|
+
return { state: "test", reason: "spends credits in the billing sandbox" };
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
protection: {
|
|
469
|
+
title: "Protection",
|
|
470
|
+
purpose: "Bot checks on the requests that send a sign-in code or create an account, and on the calls of your own that verifyHuman guards.",
|
|
471
|
+
providers: [
|
|
472
|
+
{ name: "Vercel BotID", gives: "an invisible bot check on the app's server, on Vercel" },
|
|
473
|
+
{ name: "Cloudflare Turnstile", gives: "a challenge the browser answers wherever the app has a site key, verified through Better Auth's captcha plugin" }
|
|
474
|
+
],
|
|
475
|
+
development: "test mode: the dev server's bot check answers human, and the challenge provider's test keys",
|
|
476
|
+
env: ["PROTECTION_PROOF_SECRET", "PROTECTION_CHALLENGE_SECRET_KEY", "NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY"],
|
|
477
|
+
findings: ["protection"],
|
|
478
|
+
docs: "/docs/build/auth/sign-in/bots",
|
|
479
|
+
devtools: "overview",
|
|
480
|
+
playground: ["/playground/admin"],
|
|
481
|
+
detect: (context) => failingFinding(context, "protection") ?? protectionMode(context)
|
|
482
|
+
},
|
|
483
|
+
monitoring: {
|
|
484
|
+
title: "Monitoring",
|
|
485
|
+
purpose: "Error reports from the browser, the Nuxt server and the backend's actions, cron check-ins, and a health endpoint for uptime checks.",
|
|
486
|
+
providers: [{ name: "Sentry", gives: "error tracking, tracing, cron monitors and uptime checks" }],
|
|
487
|
+
development: "the dev server's local error log, listed in DevTools",
|
|
488
|
+
env: ["MONITORING_DSN"],
|
|
489
|
+
findings: ["monitoring"],
|
|
490
|
+
docs: "/docs/ship/operate/monitoring",
|
|
491
|
+
devtools: "monitoring",
|
|
492
|
+
playground: ["/playground/admin"],
|
|
493
|
+
detect: (context) => failingFinding(context, "monitoring") ?? monitoringMode(context)
|
|
494
|
+
},
|
|
495
|
+
flags: {
|
|
496
|
+
title: "Flags",
|
|
497
|
+
purpose: "Feature flags read inside queries and mutations, targeted by account, workspace, plan or a stable percentage, and the kill switches that pause sign-ups, checkout and AI or put up a maintenance banner.",
|
|
498
|
+
providers: [{ name: "Convex", gives: "the stored overrides, read in the same transaction as the function that asks" }],
|
|
499
|
+
development: "nothing: flags are the package's own code, the same in dev, tests and production",
|
|
500
|
+
env: [],
|
|
501
|
+
findings: [],
|
|
502
|
+
docs: "/docs/ship/operate/flags",
|
|
503
|
+
devtools: "overview",
|
|
504
|
+
playground: ["/playground/strips", "/playground/admin"],
|
|
505
|
+
// Always live: nothing to configure, and nothing it waits on but the
|
|
506
|
+
// deployment its overrides are stored on. Without one, each flag is its
|
|
507
|
+
// default from code.
|
|
508
|
+
detect: (context) => failingFinding(context, "flags") ?? { state: "live", reason: "flags are evaluated in your own functions: their defaults from code, and the overrides stored on the deployment" }
|
|
509
|
+
},
|
|
510
|
+
analytics: {
|
|
511
|
+
title: "Analytics",
|
|
512
|
+
purpose: "Revenue metrics in the admin console: recurring revenue, subscriptions and churn with cancellations per reason, checkouts, usage per meter, and costs and margin, read live from the billing provider.",
|
|
513
|
+
providers: [{ name: "Polar", gives: "the metrics it computes from its orders, subscriptions, checkouts and meters" }],
|
|
514
|
+
development: "the billing sandbox's metrics, from the purchases made there with a test card",
|
|
515
|
+
env: [],
|
|
516
|
+
findings: ["analytics"],
|
|
517
|
+
docs: "/docs/build/growth/measure",
|
|
518
|
+
devtools: "billing",
|
|
519
|
+
playground: ["/playground/admin"],
|
|
520
|
+
detect(context) {
|
|
521
|
+
const failing = failingFinding(context, "analytics");
|
|
522
|
+
if (failing) return failing;
|
|
523
|
+
const billing = billingMode(context);
|
|
524
|
+
if (billing.state === "missing") return { state: "missing", reason: `its metrics need billing: ${billing.reason}` };
|
|
525
|
+
return billing.state === "live" ? { state: "live", reason: "reads the production billing environment's metrics" } : { state: "test", reason: "reads the billing sandbox's metrics" };
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
hosting: {
|
|
529
|
+
title: "Hosting",
|
|
530
|
+
purpose: "The app on its host: one-command production, the app's env written into the host, and the live site's HTTPS, security headers, backend and docs for agents checked.",
|
|
531
|
+
providers: [{ name: "Vercel", gives: "the Nuxt server, previews per branch, the CDN and custom domains, or any host that runs Nuxt" }],
|
|
532
|
+
development: "the Nuxt dev server",
|
|
533
|
+
env: [],
|
|
534
|
+
findings: ["site"],
|
|
535
|
+
docs: "/docs/ship/deploy",
|
|
536
|
+
devtools: "overview",
|
|
537
|
+
playground: ["/playground"],
|
|
538
|
+
detect: (context) => failingFinding(context, "hosting") ?? hostingMode(context)
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
const CAPABILITY_NAMES = Object.keys(CAPABILITIES);
|
|
542
|
+
|
|
543
|
+
const BACKEND_ENV = {
|
|
544
|
+
AUTH_SECRET: {
|
|
545
|
+
side: "deployment",
|
|
546
|
+
required: true,
|
|
547
|
+
without: "a deploy fails: it signs sessions and encrypts the keys the session tokens are signed with",
|
|
548
|
+
values: "a random secret of at least 32 characters (`openssl rand -base64 32` prints one)",
|
|
549
|
+
findings: ["auth-secret", "deployment-auth-secret", "env-defaults"]
|
|
550
|
+
},
|
|
551
|
+
SITE_URL: {
|
|
552
|
+
side: "deployment",
|
|
553
|
+
required: true,
|
|
554
|
+
without: "a deploy fails: auth trusts it as the app origin, and every emailed link names it",
|
|
555
|
+
values: "the app's http(s) origin, without a path",
|
|
556
|
+
example: "https://app.example.com",
|
|
557
|
+
findings: ["site-url", "deployment-site-url", "env-defaults"]
|
|
558
|
+
},
|
|
559
|
+
BACKEND_ENVIRONMENT: {
|
|
560
|
+
side: "deployment",
|
|
561
|
+
derived: true,
|
|
562
|
+
without: "every provider stays in its test mode, nothing local is trusted and no sign-in code is logged; `doctor --prod` fails on production",
|
|
563
|
+
values: "`development`, `preview`, `sandbox` or `production`: the kind of deployment the backend runs on. `env push` derives it from the deployment; `sandbox` is the one value you set by hand",
|
|
564
|
+
example: "production",
|
|
565
|
+
findings: ["deployment-backend-environment"]
|
|
566
|
+
},
|
|
567
|
+
EMAIL_API_KEY: {
|
|
568
|
+
side: "deployment",
|
|
569
|
+
without: "email sends no-op; on `development` the sign-in codes print in the dev console, and elsewhere a code to a real address is refused",
|
|
570
|
+
values: "the email provider's API key",
|
|
571
|
+
dotenv: true,
|
|
572
|
+
findings: ["email-transport", "deployment-email-api-key"]
|
|
573
|
+
},
|
|
574
|
+
EMAIL_FROM: {
|
|
575
|
+
side: "deployment",
|
|
576
|
+
without: "the provider onboarding sender is used",
|
|
577
|
+
values: "an address on a verified sending domain, alone or as `Name <address>`: the sender of transactional mail",
|
|
578
|
+
example: "Acme <hello@acme.com>",
|
|
579
|
+
dotenv: true,
|
|
580
|
+
findings: ["deployment-email-from"]
|
|
581
|
+
},
|
|
582
|
+
EMAIL_MARKETING_FROM: {
|
|
583
|
+
side: "deployment",
|
|
584
|
+
whenFlagged: true,
|
|
585
|
+
without: "marketing mail goes from EMAIL_FROM",
|
|
586
|
+
values: "an address on a sending subdomain apart from EMAIL_FROM's, alone or as `Name <address>`: the sender of marketing and lifecycle mail",
|
|
587
|
+
example: "Acme News <news@news.acme.com>",
|
|
588
|
+
dotenv: true,
|
|
589
|
+
findings: []
|
|
590
|
+
},
|
|
591
|
+
EMAIL_REGION: {
|
|
592
|
+
side: "deployment",
|
|
593
|
+
whenFlagged: true,
|
|
594
|
+
without: "the provider's default region",
|
|
595
|
+
values: "the region the sending domain sends from: `us-east-1`, `eu-west-1`, `sa-east-1` or `ap-northeast-1`. Account data stays in the US whatever the region",
|
|
596
|
+
example: "eu-west-1",
|
|
597
|
+
dotenv: true,
|
|
598
|
+
findings: []
|
|
599
|
+
},
|
|
600
|
+
EMAIL_WEBHOOK_SECRET: {
|
|
601
|
+
side: "deployment",
|
|
602
|
+
without: 'delivery events are rejected \u2014 useEmailStatus stays at "sent"',
|
|
603
|
+
values: "the signing secret of the provider's webhook endpoint",
|
|
604
|
+
webhook: "/email/events",
|
|
605
|
+
dotenv: true,
|
|
606
|
+
findings: ["email-webhook-secret", "deployment-email-webhook-secret", "email-webhook-route"]
|
|
607
|
+
},
|
|
608
|
+
EMAIL_DEV_INBOX: {
|
|
609
|
+
side: "deployment",
|
|
610
|
+
devOnly: true,
|
|
611
|
+
without: "the dev inbox's page reader (getSandboxInbox, behind useSandboxInbox) answers nothing; the CLI's inbox still reads",
|
|
612
|
+
values: "`1` publishes the dev inbox to pages: getSandboxInbox answers on a deployment whose BACKEND_ENVIRONMENT is set and not production. `nuxt-backend dev` sets it on dev deployments and `nuxt-backend deploy --sandbox` on a sandbox (a public demo, whose visitors read their codes off the page); set it by hand on a preview that publishes the inbox, and never on a live production, where `doctor --prod` flags it",
|
|
613
|
+
example: "1",
|
|
614
|
+
dotenv: true,
|
|
615
|
+
findings: ["deployment-email-dev-inbox"]
|
|
616
|
+
},
|
|
617
|
+
BILLING_ACCESS_TOKEN: {
|
|
618
|
+
side: "deployment",
|
|
619
|
+
without: "billing queries return empty and checkout actions fail on invocation",
|
|
620
|
+
values: "an organization access token of the billing provider: a sandbox token outside production, a live one on it",
|
|
621
|
+
dotenv: true,
|
|
622
|
+
findings: ["billing-access", "deployment-billing-access-token", "billing-organization"]
|
|
623
|
+
},
|
|
624
|
+
BILLING_WEBHOOK_SECRET: {
|
|
625
|
+
side: "deployment",
|
|
626
|
+
without: "billing events are rejected \u2014 entitlements refresh only on demand (syncEntitlements)",
|
|
627
|
+
values: "the signing secret of the provider's webhook endpoint (`billing sync` stores it)",
|
|
628
|
+
webhook: "/billing/events",
|
|
629
|
+
dotenv: true,
|
|
630
|
+
findings: ["billing-webhook-secret", "deployment-billing-webhook-secret", "billing-webhook-route"]
|
|
631
|
+
},
|
|
632
|
+
AI_GATEWAY_API_KEY: {
|
|
633
|
+
side: "deployment",
|
|
634
|
+
without: "a provider/model id the backend names goes through the Convex AI Gateway alone, on Convex Cloud with a paid plan and @convex-dev/ai-sdk-provider installed; anywhere else (a free plan, a self-hosted deployment) it is refused when called",
|
|
635
|
+
values: "a Vercel AI Gateway API key: the route a provider/model id takes where the Convex AI Gateway does not answer it. Convex runs actions on its own servers, never on Vercel, so the gateway's keyless sign-in never reaches them",
|
|
636
|
+
dotenv: true,
|
|
637
|
+
whenFlagged: true,
|
|
638
|
+
findings: ["deployment-ai-gateway-api-key"]
|
|
639
|
+
},
|
|
640
|
+
PROVENANCE_PRIVATE_KEY: {
|
|
641
|
+
side: "deployment",
|
|
642
|
+
whenFlagged: true,
|
|
643
|
+
without: "generated images are stored with the IPTC source type and no signed C2PA manifest (`ai.provenance_unsigned`); `doctor --prod` fails once the backend turns provenance on",
|
|
644
|
+
values: "the PKCS #8 PEM key (`BEGIN PRIVATE KEY`, P-256, P-384 or RSA) that signs the content credentials `ctx.storeImage` writes, its line ends escaped as `\\n` on one line. `env push` generates one with PROVENANCE_CERTIFICATE when neither the deployment nor .env.local has it and the backend turns provenance on",
|
|
645
|
+
findings: ["deployment-provenance-private-key"]
|
|
646
|
+
},
|
|
647
|
+
PROVENANCE_CERTIFICATE: {
|
|
648
|
+
side: "deployment",
|
|
649
|
+
whenFlagged: true,
|
|
650
|
+
without: "as without PROVENANCE_PRIVATE_KEY: the two sign together",
|
|
651
|
+
values: "the PEM certificate chain of PROVENANCE_PRIVATE_KEY, the signer's certificate first: one `env push` issues under a root of its own (verifiers show its signer as unknown), or one from a certificate authority on the C2PA trust list for a named signer",
|
|
652
|
+
findings: ["deployment-provenance-certificate"]
|
|
653
|
+
},
|
|
654
|
+
PUSH_PUBLIC_KEY: {
|
|
655
|
+
side: "deployment",
|
|
656
|
+
without: "the in-app inbox and email notifications work, but web push does not: `getPushConfig` answers no key, so `usePushSubscription` reads unsupported",
|
|
657
|
+
values: "the public half of the web push (VAPID) key pair, base64url (an uncompressed P-256 point). Browsers receive it when they subscribe, so it is public. `env push` generates the pair when neither the deployment nor .env.local has it, and `env push --prod` a pair of production's own, never copied from .env.local. Never derived from another secret: new keys orphan every subscribed device",
|
|
658
|
+
findings: ["deployment-push-public-key"]
|
|
659
|
+
},
|
|
660
|
+
PUSH_PRIVATE_KEY: {
|
|
661
|
+
side: "deployment",
|
|
662
|
+
without: "as without PUSH_PUBLIC_KEY: the two sign together",
|
|
663
|
+
values: "the private half of the same pair, base64url (the 32-byte P-256 scalar). It stays on the deployment, never in the app's public config",
|
|
664
|
+
findings: ["deployment-push-private-key"]
|
|
665
|
+
},
|
|
666
|
+
PROTECTION_PROOF_SECRET: {
|
|
667
|
+
side: "both",
|
|
668
|
+
whenFlagged: true,
|
|
669
|
+
without: "the auth routes that send a code take no proof of a bot check: on Vercel, BotID still refuses the bots that come through the app, but not the ones that call the deployment's own URL",
|
|
670
|
+
values: "a random secret of at least 32 characters (`openssl rand -base64 32` prints one), the same value on the deployment and on the app's server, and production's its own, never .env.local's. For an app on Vercel, where BotID signs the proofs: off Vercel nothing signs one, so set it there only beside the challenge keys. The app's server reads it from .env.local in development; in production set it in the host's env by hand. Never derived from another secret: to rotate it, a comma-separated `new,old` on the deployment passes proofs signed with either",
|
|
671
|
+
dotenv: true,
|
|
672
|
+
findings: ["deployment-protection-proof-secret", "protection-proof", "bot-protection"]
|
|
673
|
+
},
|
|
674
|
+
PROTECTION_CHALLENGE_SECRET_KEY: {
|
|
675
|
+
side: "deployment",
|
|
676
|
+
whenFlagged: true,
|
|
677
|
+
without: "the deployment verifies no challenge answer, so off Vercel nothing checks for bots",
|
|
678
|
+
values: "the challenge provider's secret key (Cloudflare Turnstile); its documented test keys pass or refuse everyone",
|
|
679
|
+
dotenv: true,
|
|
680
|
+
findings: ["deployment-protection-challenge-secret-key", "protection-challenge-keys", "bot-protection"]
|
|
681
|
+
},
|
|
682
|
+
MONITORING_DSN: {
|
|
683
|
+
side: "deployment",
|
|
684
|
+
without: "the backend reports nothing: errors in its actions and its cron check-ins go nowhere (the browser and the Nuxt server report on the DSN the app reads, and in dev a local error log stands in)",
|
|
685
|
+
values: "a DSN of the monitoring service (`https://<key>@<host>/<project id>`). The Nuxt app reads it too. Where the service's Vercel integration sets the DSN as `NEXT_PUBLIC_SENTRY_DSN`, the app reads that, and `env push` forwards it as `MONITORING_DSN`, so the integration alone is enough",
|
|
686
|
+
example: "https://public-key@o0.ingest.sentry.io/0",
|
|
687
|
+
dotenv: true,
|
|
688
|
+
findings: ["deployment-monitoring-dsn", "monitoring-app"]
|
|
689
|
+
},
|
|
690
|
+
NUXT_PUBLIC_BACKEND_URL: {
|
|
691
|
+
side: "app",
|
|
692
|
+
without: "derived from the deployment the platform CLI names in .env.local; set it to point at another deployment",
|
|
693
|
+
values: "the deployment's URL",
|
|
694
|
+
example: "https://happy-otter-123.convex.cloud",
|
|
695
|
+
dotenv: true,
|
|
696
|
+
findings: ["backend-site-url"]
|
|
697
|
+
},
|
|
698
|
+
NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY: {
|
|
699
|
+
side: "app",
|
|
700
|
+
without: "no challenge widget renders, so the deployment's PROTECTION_CHALLENGE_SECRET_KEY refuses every code request that carries no proof",
|
|
701
|
+
values: "the challenge provider's site key (Cloudflare Turnstile), public. Its documented test keys (`1x00000000000000000000AA` always passes) are test mode",
|
|
702
|
+
example: "1x00000000000000000000AA",
|
|
703
|
+
dotenv: true,
|
|
704
|
+
findings: ["protection-challenge-keys"]
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
const names$1 = Object.keys(BACKEND_ENV);
|
|
708
|
+
const entry = (name) => BACKEND_ENV[name];
|
|
709
|
+
const CONTRACT_ENV_NAMES = names$1.filter((name) => entry(name).side !== "app");
|
|
710
|
+
const REQUIRED_DEPLOYMENT_ENV = CONTRACT_ENV_NAMES.filter((name) => entry(name).required);
|
|
711
|
+
const OPTIONAL_DEPLOYMENT_ENV = Object.fromEntries(
|
|
712
|
+
CONTRACT_ENV_NAMES.filter((name) => !entry(name).required).map((name) => [name, entry(name).without])
|
|
713
|
+
);
|
|
714
|
+
const DEV_ONLY_DEPLOYMENT_ENV = Object.fromEntries(
|
|
715
|
+
CONTRACT_ENV_NAMES.flatMap((name) => {
|
|
716
|
+
const listed = entry(name);
|
|
717
|
+
return listed.devOnly && listed.example ? [[name, listed.example]] : [];
|
|
718
|
+
})
|
|
719
|
+
);
|
|
720
|
+
const DERIVED_DEPLOYMENT_ENV = new Set(CONTRACT_ENV_NAMES.filter((name) => entry(name).derived));
|
|
721
|
+
const REMOVED_ENV = {
|
|
722
|
+
EMAIL_TEST_MODE: "BACKEND_ENVIRONMENT: test mode everywhere but production",
|
|
723
|
+
BILLING_ENVIRONMENT: "BACKEND_ENVIRONMENT: Polar's sandbox everywhere but production",
|
|
724
|
+
MONITORING_ENVIRONMENT: "BACKEND_ENVIRONMENT, which names the monitoring environment",
|
|
725
|
+
AUTH_TRUST_LOCAL_ORIGINS: "BACKEND_ENVIRONMENT=development, which trusts the local origins",
|
|
726
|
+
NUXT_BACKEND_LOG_OTP: "BACKEND_ENVIRONMENT=development, which logs the sign-in codes",
|
|
727
|
+
NUXT_PUBLIC_BACKEND_SITE_URL: "derived from NUXT_PUBLIC_BACKEND_URL; a custom domain sets NUXT_PUBLIC_CONVEX_SITE_URL, the base module's own variable",
|
|
728
|
+
BILLING_SIMULATOR_URL: "nothing: development bills in Polar's sandbox",
|
|
729
|
+
NUXT_BACKEND_SIMULATE_MODELS: "nothing: development calls the same models through the Convex AI Gateway or AI_GATEWAY_API_KEY"
|
|
730
|
+
};
|
|
731
|
+
const REMOVED_DEPLOYMENT_ENV = Object.keys(REMOVED_ENV).filter((name) => name !== "NUXT_PUBLIC_BACKEND_SITE_URL");
|
|
732
|
+
|
|
733
|
+
const CAPABILITY_STATES = ["live", "test", "missing", "failing"];
|
|
734
|
+
const CAPABILITY_SWITCHES = ["BACKEND_ENVIRONMENT"];
|
|
735
|
+
|
|
736
|
+
const DOCS_ORIGIN = "https://nuxt-backend.dev";
|
|
737
|
+
const CAPABILITY_OF_GROUP = new Map(CAPABILITY_NAMES.flatMap((name) => CAPABILITIES[name].findings.map((group) => [group, name])));
|
|
738
|
+
function capabilityOfGroup(group) {
|
|
739
|
+
const capability = CAPABILITY_OF_GROUP.get(group);
|
|
740
|
+
if (!capability) throw new Error(`The finding group ${group} belongs to no capability: list it in a capability's findings (src/capabilities/registry.ts)`);
|
|
741
|
+
return capability;
|
|
742
|
+
}
|
|
743
|
+
function capabilityOfEnv(name) {
|
|
744
|
+
return CAPABILITY_NAMES.find((capability) => CAPABILITIES[capability].env.includes(name));
|
|
745
|
+
}
|
|
746
|
+
function counts(name, context) {
|
|
747
|
+
const entry = BACKEND_ENV[name];
|
|
748
|
+
if (entry.devOnly) return false;
|
|
749
|
+
if (entry.whenFlagged) {
|
|
750
|
+
return context.findings.some((finding) => entry.findings.includes(finding.id) && (finding.status === "warn" || finding.status === "fail"));
|
|
751
|
+
}
|
|
752
|
+
return entry.side !== "app" && (context.prod === true || !CAPABILITY_SWITCHES.includes(name));
|
|
753
|
+
}
|
|
754
|
+
function capabilityStatus(name, context) {
|
|
755
|
+
const capability = CAPABILITIES[name];
|
|
756
|
+
const own = context.findings.filter((finding) => finding.capability === name);
|
|
757
|
+
const worst = own.find((finding) => finding.status === "fail") ?? own.find((finding) => finding.status === "warn");
|
|
758
|
+
const top = worst ? { id: worst.id, status: worst.status, title: worst.title, message: worst.message, fixHint: worst.fixHint, docsUrl: worst.docsUrl } : null;
|
|
759
|
+
const tally = (status) => own.filter((finding) => finding.status === status).length;
|
|
760
|
+
return {
|
|
761
|
+
name,
|
|
762
|
+
title: capability.title,
|
|
763
|
+
...capability.detect(context),
|
|
764
|
+
providers: capability.providers.map((provider) => provider.name),
|
|
765
|
+
missingEnv: capability.env.filter((env) => counts(env, context) && !isSet(context, env)),
|
|
766
|
+
findings: { pass: tally("pass"), warn: tally("warn"), fail: tally("fail") },
|
|
767
|
+
top,
|
|
768
|
+
docsUrl: `${DOCS_ORIGIN}${capability.docs}`,
|
|
769
|
+
devtools: capability.devtools
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function detectCapabilities(context) {
|
|
773
|
+
return CAPABILITY_NAMES.map((name) => capabilityStatus(name, context));
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
const BY_GROUP = {
|
|
777
|
+
deployment: DEPLOYMENT_FINDINGS,
|
|
778
|
+
auth: AUTH_FINDINGS,
|
|
779
|
+
email: EMAIL_FINDINGS,
|
|
780
|
+
notifications: NOTIFICATIONS_FINDINGS,
|
|
781
|
+
billing: BILLING_FINDINGS,
|
|
782
|
+
ai: AI_FINDINGS,
|
|
783
|
+
scaffold: SCAFFOLD_FINDINGS,
|
|
784
|
+
site: SITE_FINDINGS,
|
|
785
|
+
protection: PROTECTION_FINDINGS,
|
|
786
|
+
monitoring: MONITORING_FINDINGS,
|
|
787
|
+
analytics: ANALYTICS_FINDINGS
|
|
788
|
+
};
|
|
789
|
+
const FINDING_GROUPS = CAPABILITY_NAMES.flatMap((capability) => Object.keys(BY_GROUP).filter((group) => capabilityOfGroup(group) === capability));
|
|
790
|
+
const FINDINGS = Object.fromEntries(
|
|
791
|
+
FINDING_GROUPS.flatMap((group) => Object.entries(BY_GROUP[group]).map(([id, entry]) => [id, { ...entry, group, capability: capabilityOfGroup(group) }]))
|
|
792
|
+
);
|
|
793
|
+
const DOCTOR_SCHEMA_URL = "https://nuxt-backend.dev/schemas/doctor.json";
|
|
794
|
+
function findingDocsUrl(id) {
|
|
795
|
+
return `https://nuxt-backend.dev/d/${id}`;
|
|
796
|
+
}
|
|
797
|
+
function finding(id, status, message, fixHint = "") {
|
|
798
|
+
const { capability, title } = FINDINGS[id];
|
|
799
|
+
return { id, capability, title, status, message, fixHint, docsUrl: findingDocsUrl(id) };
|
|
800
|
+
}
|
|
801
|
+
function deploymentEnvId(name) {
|
|
802
|
+
return `deployment-${name.toLowerCase().replace(/_/g, "-")}`;
|
|
803
|
+
}
|
|
804
|
+
function applyProductionPosture(findings, settled = /* @__PURE__ */ new Set()) {
|
|
805
|
+
return findings.map((reported) => FINDINGS[reported.id]?.prod === "fail" && reported.status === "warn" && !settled.has(reported.id) ? { ...reported, status: "fail", message: `${reported.message} (production posture: failure)` } : reported);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
const CORE_SKILL = {
|
|
809
|
+
name: "nuxt-backend"};
|
|
810
|
+
const TASK_SKILLS = [
|
|
811
|
+
{
|
|
812
|
+
name: "nuxt-backend-auth",
|
|
813
|
+
covers: "sign-in, sessions, passkeys, roles, user-scoped functions, workspaces and invitations, invite codes and the waitlist, the admin console with impersonation, the activity trail, consents, and account export and deletion",
|
|
814
|
+
docs: ["/docs/build/auth", "/docs/build/growth/launch"],
|
|
815
|
+
entrypoints: ["nuxt-backend/auth", "nuxt-backend/auth.config", "nuxt-backend/access", "nuxt-backend/audit", "nuxt-backend/account", "nuxt-backend/admin"],
|
|
816
|
+
composables: ["useAuth", "useLoginFlow", "useReturnPath", "useEmailChange", "useWorkspace", "usePasskeys", "useSessions", "useHumanCheck", "useReauthentication", "useAccessPhase", "useInvite", "useAccessAdmin", "useWaitlist", "useWaitlistAdmin", "useAuditLog", "useAccount", "useConsents", "useAdmin"],
|
|
817
|
+
components: ["AuthForm", "WaitlistForm", "ConsentPrompt", "AccessDenied", "AcceptInvitation", "WorkspaceSettings", "ProfileSettings", "SecuritySettings", "ReauthenticateDialog", "AuditLog", "AccountData", "AdminUsers", "AdminWorkspaces"],
|
|
818
|
+
server: ["backendAuth"],
|
|
819
|
+
findings: ["auth", "protection"],
|
|
820
|
+
functions: ["auth", "audit", "account", "admin"]
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
name: "nuxt-backend-billing",
|
|
824
|
+
covers: "the catalog, plans, checkout, the portal, feature gates, plan quotas and credits",
|
|
825
|
+
docs: ["/docs/build/billing"],
|
|
826
|
+
entrypoints: ["nuxt-backend/billing"],
|
|
827
|
+
composables: ["useBilling", "useFeatures", "useCredits", "usePricing", "useOrders", "useUsage"],
|
|
828
|
+
components: ["PricingTable", "BillingCheckoutLink", "BillingPortalLink", "BillingHistory", "UsageHistory", "UpgradePrompt", "CancelFlow", "WithdrawalButton"],
|
|
829
|
+
commands: ["billing sync"],
|
|
830
|
+
findings: ["billing"],
|
|
831
|
+
functions: ["billing"]
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
name: "nuxt-backend-growth",
|
|
835
|
+
covers: "launch phases, offers, referrals, gifts, lifecycle email and the funnel",
|
|
836
|
+
docs: ["/docs/build/growth"],
|
|
837
|
+
composables: ["useCampaign", "useGifts", "useOnboarding", "useActivation", "useExperiment", "useReferrals", "useReferralAdmin"],
|
|
838
|
+
components: ["OnboardingFlow", "ActivationChecklist", "HowDidYouHear", "ReferralCard"],
|
|
839
|
+
findings: ["analytics"]
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
name: "nuxt-backend-email",
|
|
843
|
+
covers: "transactional email, templates, delivery tracking, the dev inbox and notifications",
|
|
844
|
+
docs: ["/docs/build/email", "/docs/develop/dev-inbox"],
|
|
845
|
+
entrypoints: ["nuxt-backend/email", "nuxt-backend/notifications"],
|
|
846
|
+
composables: ["useEmailStatus", "useSandboxInbox", "useNotifications", "useNotificationInbox", "useEmailPreferences", "usePushSubscription", "useAnnouncements", "useAnnouncementsAdmin", "useContactForm", "useInboxAdmin"],
|
|
847
|
+
components: ["NotificationInbox", "ContactForm"],
|
|
848
|
+
commands: ["inbox", "email sync"],
|
|
849
|
+
findings: ["email", "notifications"],
|
|
850
|
+
functions: ["email", "notifications"]
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: "nuxt-backend-ai",
|
|
854
|
+
covers: "metered AI actions, streams and the job queue",
|
|
855
|
+
docs: ["/docs/build/ai"],
|
|
856
|
+
entrypoints: ["nuxt-backend/ai"],
|
|
857
|
+
composables: ["useAiStream", "useJob", "useChat", "useAiLabel"],
|
|
858
|
+
components: ["AiLabel"],
|
|
859
|
+
findings: ["ai"]
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
name: "nuxt-backend-data",
|
|
863
|
+
covers: "the function tiers, queries and mutations, errors, search, workflows, uploads, share links, retention, tokens and the Convex components for counts, queues, cached actions, crons and migrations",
|
|
864
|
+
docs: ["/docs/build/data"],
|
|
865
|
+
entrypoints: ["nuxt-backend/functions", "nuxt-backend/search", "nuxt-backend/workflows", "nuxt-backend/storage"],
|
|
866
|
+
composables: ["getBackendError", "useBackendClient", "useConnectionState", "useSearch", "useWorkflowStatus", "useShareLink", "useUploadField"],
|
|
867
|
+
components: ["ConnectionStatus", "UploadField"]
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
name: "nuxt-backend-ui",
|
|
871
|
+
covers: "the packaged pages and components, their parts, theming, labels, translation, slots, the headless composables and eject",
|
|
872
|
+
docs: ["/docs/build/ui"],
|
|
873
|
+
composables: ["useLabels", "useBackendPagePath", "useBackendConfig", "useAppShell"],
|
|
874
|
+
components: ["Gate", "BackendNotices", "AppShell"],
|
|
875
|
+
commands: ["eject"]
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
name: "nuxt-backend-ship",
|
|
879
|
+
covers: "provider setup, tests, deploying, production checks, monitoring, flags and kill switches, webhooks and rate limits",
|
|
880
|
+
docs: ["/docs/services", "/docs/develop/testing", "/docs/ship"],
|
|
881
|
+
entrypoints: ["nuxt-backend/http", "nuxt-backend/rate-limit", "nuxt-backend/monitoring", "nuxt-backend/flags", "nuxt-backend/test", "nuxt-backend/test-utils", "nuxt-backend/eslint"],
|
|
882
|
+
composables: ["useFlag", "useFlagAdmin"],
|
|
883
|
+
commands: ["doctor", "status", "env push", "env rotate", "deploy", "analyze", "mcp"],
|
|
884
|
+
findings: ["monitoring", "site"],
|
|
885
|
+
functions: ["flags", "webhooks"]
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
name: "nuxt-backend-upgrade",
|
|
889
|
+
covers: "moving an app to a new version, and every name a release renamed or removed",
|
|
890
|
+
docs: ["/docs/ship/releases"],
|
|
891
|
+
commands: ["upgrade"]
|
|
892
|
+
}
|
|
893
|
+
];
|
|
894
|
+
|
|
895
|
+
const AGENTS_START = "<!-- nuxt-backend-start -->";
|
|
896
|
+
const AGENTS_END = "<!-- nuxt-backend-end -->";
|
|
897
|
+
const INSTALLED_SKILLS = "node_modules/nuxt-backend/skills";
|
|
898
|
+
const INSTALLED_SKILL = `${INSTALLED_SKILLS}/${CORE_SKILL.name}`;
|
|
899
|
+
const PROJECT_SKILLS = ".agents/skills";
|
|
900
|
+
const CLAUDE_SKILLS = ".claude/skills";
|
|
901
|
+
function wrapItem(words, width = 100) {
|
|
902
|
+
const lines = [];
|
|
903
|
+
let line = "-";
|
|
904
|
+
for (const word of words.split(" ")) {
|
|
905
|
+
if (line.length + 1 + word.length > width) {
|
|
906
|
+
lines.push(line);
|
|
907
|
+
line = " ";
|
|
908
|
+
}
|
|
909
|
+
line += ` ${word}`;
|
|
910
|
+
}
|
|
911
|
+
return [...lines, line].join("\n");
|
|
912
|
+
}
|
|
913
|
+
const TASK_SKILL_LIST = TASK_SKILLS.map((skill) => `\`${skill.name}\``).join(", ").replace(/, ([^,]+)$/, " and $1");
|
|
914
|
+
function agentsSection(version) {
|
|
915
|
+
const runsOn = version ? `[nuxt-backend](https://nuxt-backend.dev) \`${version}\`` : "[nuxt-backend](https://nuxt-backend.dev)";
|
|
916
|
+
return `${AGENTS_START}
|
|
917
|
+
## nuxt-backend
|
|
918
|
+
|
|
919
|
+
This app runs on ${runsOn}: a Nuxt module plus an all-in-one Convex
|
|
920
|
+
backend (passwordless auth, workspaces, billing with credits and gifts, email, webhooks, an agent
|
|
921
|
+
endpoint).
|
|
922
|
+
|
|
923
|
+
- Read \`${INSTALLED_SKILL}/SKILL.md\` first: the core skill, with the rules
|
|
924
|
+
every change follows and the names that don't exist. The package ships its agent skills, so those
|
|
925
|
+
copies match the installed version; the website documents the latest release.
|
|
926
|
+
${wrapItem(`Each task has a task skill beside the core in \`${INSTALLED_SKILLS}/\`: ${TASK_SKILL_LIST}. \`init\` copies them all into \`${PROJECT_SKILLS}/\` too.`)}
|
|
927
|
+
- After an upgrade, \`npx nuxt-backend init --agents\` refreshes those copies and rewrites this
|
|
928
|
+
section for the new version.
|
|
929
|
+
- \`backend/\` holds the Convex functions (\`convex.json\` points there). The scaffolded files
|
|
930
|
+
re-export the package's setup; add your own functions beside them. Never edit
|
|
931
|
+
\`backend/_generated/\`: \`convex dev\` rewrites it.
|
|
932
|
+
- The app imports them through \`#backend/api\` and \`#backend/dataModel\`. Composables such as
|
|
933
|
+
\`useAuth\`, \`useBilling\`, \`useCredits\` and \`useWorkspace\` are auto-imported.
|
|
934
|
+
- Names are neutral: auth, billing, email, backend. Keep provider names out of app code, labels and
|
|
935
|
+
env var names.
|
|
936
|
+
- \`npx nuxt-backend dev\` runs Convex and Nuxt together, and \`npx nuxt-backend doctor\` checks the
|
|
937
|
+
whole setup. \`npx nuxt-backend env push\` syncs \`.env.local\` to the deployment, and
|
|
938
|
+
\`npx nuxt-backend billing sync\` turns \`backend/billing.catalog.ts\` into products.
|
|
939
|
+
- The CLI never prompts: every input is a flag, \`--json\` prints one JSON document, and \`--help\`
|
|
940
|
+
ends with what a command may change. To sign in on a dev deployment without a mailbox, request a
|
|
941
|
+
code for \`delivered+agent@resend.dev\` and read it with
|
|
942
|
+
\`npx nuxt-backend inbox delivered+agent@resend.dev --json\`.
|
|
943
|
+
- The deployment's env: \`AUTH_SECRET\` and \`SITE_URL\` are required, and \`EMAIL_*\` and
|
|
944
|
+
\`BILLING_*\` are optional. \`CONVEX_DEPLOYMENT\` belongs to the Convex CLI: read it, never rename
|
|
945
|
+
it.
|
|
946
|
+
- Docs for agents: https://nuxt-backend.dev/llms.txt.
|
|
947
|
+
- The \`nuxt-backend\` server in \`.mcp.json\` (\`npx nuxt-backend mcp\`) answers \`doctor\`, \`status\`, the
|
|
948
|
+
env names, the docs, and the Convex, billing, email and hosting consoles. A tool that writes asks
|
|
949
|
+
first.
|
|
950
|
+
- For Convex itself, \`npx convex ai-files install\` writes its guidelines.
|
|
951
|
+
${AGENTS_END}
|
|
952
|
+
`;
|
|
953
|
+
}
|
|
954
|
+
function placeSection(text) {
|
|
955
|
+
const starts = text.split(AGENTS_START).length - 1;
|
|
956
|
+
const ends = text.split(AGENTS_END).length - 1;
|
|
957
|
+
if (starts === 0 && ends === 0) return { kind: "none" };
|
|
958
|
+
const end = text.indexOf(AGENTS_END);
|
|
959
|
+
const start = text.lastIndexOf(AGENTS_START, end);
|
|
960
|
+
if (starts !== 1 || ends !== 1 || start === -1) return { kind: "malformed" };
|
|
961
|
+
return { kind: "found", start, end: end + AGENTS_END.length };
|
|
962
|
+
}
|
|
963
|
+
const MALFORMED_AGENTS_MD = `AGENTS.md has unpaired or repeated nuxt-backend markers, so it was left as it is. Keep exactly one ${AGENTS_START} \u2026 ${AGENTS_END} pair around the nuxt-backend section, or delete every marker, then run the command again.`;
|
|
964
|
+
function sectionVersion(section) {
|
|
965
|
+
return /^This app runs on \[nuxt-backend\]\([^)]*\) `([^`]+)`/m.exec(section)?.[1];
|
|
966
|
+
}
|
|
967
|
+
function agentsMdVersion(rootDir) {
|
|
968
|
+
const path = join(rootDir, "AGENTS.md");
|
|
969
|
+
const text = existsSync(path) ? readFileSync(path, "utf8").replace(/\r\n/g, "\n") : void 0;
|
|
970
|
+
const place = text === void 0 ? void 0 : placeSection(text);
|
|
971
|
+
return text !== void 0 && place?.kind === "found" ? sectionVersion(text.slice(place.start, place.end)) : void 0;
|
|
972
|
+
}
|
|
973
|
+
function mergeAgentsMd(existing, { force = false, version } = {}) {
|
|
974
|
+
const section = agentsSection(version);
|
|
975
|
+
if (existing === void 0) return { content: section, action: "created" };
|
|
976
|
+
const place = placeSection(existing);
|
|
977
|
+
if (place.kind === "malformed") return { content: existing, action: "malformed" };
|
|
978
|
+
if (place.kind === "none") {
|
|
979
|
+
const separator = existing === "" || existing.endsWith("\n\n") ? "" : existing.endsWith("\n") ? "\n" : "\n\n";
|
|
980
|
+
return { content: `${existing}${separator}${section}`, action: "appended" };
|
|
981
|
+
}
|
|
982
|
+
if (!force) return { content: existing, action: "unchanged" };
|
|
983
|
+
const after = existing.slice(place.end).replace(/^\r?\n/, "");
|
|
984
|
+
const content = `${existing.slice(0, place.start)}${section}${after}`;
|
|
985
|
+
return { content, action: content === existing ? "unchanged" : "replaced" };
|
|
986
|
+
}
|
|
987
|
+
const MCP_SERVER_NAME = "nuxt-backend";
|
|
988
|
+
const MCP_SDK = "@modelcontextprotocol/sdk";
|
|
989
|
+
const DEVELOPER_MCP_SERVER = { command: "npx", args: ["nuxt-backend", "mcp"] };
|
|
990
|
+
const AGENT_HINT = `A coding agent is running this app, which runs on nuxt-backend. Set it up with \`npx nuxt-backend init\`, then start it with \`npx nuxt-backend dev\`: it provisions AUTH_SECRET and SITE_URL on the deployment before \`convex dev\` (a bare \`convex dev --once\` cannot finish its first push here). Check the setup with \`npx nuxt-backend doctor\`. The package's agent skills ship in \`${INSTALLED_SKILLS}/\`: read \`${INSTALLED_SKILL}/SKILL.md\` first, and it routes each task to its task skill. \`init\` copies them into \`${PROJECT_SKILLS}/\`.`;
|
|
991
|
+
function isConvexServer(server) {
|
|
992
|
+
return isRecord(server) && Array.isArray(server.args) && server.args.join(" ").includes("convex mcp start");
|
|
993
|
+
}
|
|
994
|
+
function mergeMcpJson(existing, { force = false } = {}) {
|
|
995
|
+
if (existing === void 0) {
|
|
996
|
+
return { content: `${JSON.stringify({ mcpServers: { [MCP_SERVER_NAME]: DEVELOPER_MCP_SERVER } }, null, 2)}
|
|
997
|
+
`, action: "created", convexServer: false };
|
|
998
|
+
}
|
|
999
|
+
let config;
|
|
1000
|
+
try {
|
|
1001
|
+
config = JSON.parse(existing);
|
|
1002
|
+
} catch {
|
|
1003
|
+
return { content: void 0, action: "invalid", convexServer: false };
|
|
1004
|
+
}
|
|
1005
|
+
if (!isRecord(config) || config.mcpServers !== void 0 && !isRecord(config.mcpServers)) {
|
|
1006
|
+
return { content: void 0, action: "invalid", convexServer: false };
|
|
1007
|
+
}
|
|
1008
|
+
const servers = config.mcpServers ?? {};
|
|
1009
|
+
const convexServer = Object.values(servers).some(isConvexServer);
|
|
1010
|
+
const current = servers[MCP_SERVER_NAME];
|
|
1011
|
+
if (current !== void 0 && (!force || JSON.stringify(current) === JSON.stringify(DEVELOPER_MCP_SERVER))) {
|
|
1012
|
+
return { content: existing, action: "unchanged", convexServer };
|
|
1013
|
+
}
|
|
1014
|
+
const indent = /^(\s+)"/m.exec(existing)?.[1] ?? " ";
|
|
1015
|
+
const eol = existing.endsWith("\n") ? "\n" : "";
|
|
1016
|
+
const content = JSON.stringify({ ...config, mcpServers: { ...servers, [MCP_SERVER_NAME]: DEVELOPER_MCP_SERVER } }, null, indent) + eol;
|
|
1017
|
+
return { content, action: current === void 0 ? "added" : "replaced", convexServer };
|
|
1018
|
+
}
|
|
1019
|
+
function isRecord(value) {
|
|
1020
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1021
|
+
}
|
|
1022
|
+
const readIfExists = (path) => existsSync(path) ? readFileSync(path, "utf8") : void 0;
|
|
1023
|
+
function occupied(path) {
|
|
1024
|
+
try {
|
|
1025
|
+
lstatSync(path);
|
|
1026
|
+
return true;
|
|
1027
|
+
} catch {
|
|
1028
|
+
return false;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
function isLink(path) {
|
|
1032
|
+
try {
|
|
1033
|
+
return lstatSync(path).isSymbolicLink();
|
|
1034
|
+
} catch {
|
|
1035
|
+
return false;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
function remove(path) {
|
|
1039
|
+
if (isLink(path)) unlinkSync(path);
|
|
1040
|
+
else rmSync(path, { recursive: true, force: true });
|
|
1041
|
+
}
|
|
1042
|
+
const SKILL_NAME = /^nuxt-backend(?:-[a-z]+)*$/;
|
|
1043
|
+
function skillEntries(dir) {
|
|
1044
|
+
try {
|
|
1045
|
+
return readdirSync(dir).filter((name) => SKILL_NAME.test(name)).sort();
|
|
1046
|
+
} catch {
|
|
1047
|
+
return [];
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
function shippedSkillsDir(rootDir) {
|
|
1051
|
+
const installed = join(rootDir, INSTALLED_SKILLS);
|
|
1052
|
+
return existsSync(installed) ? installed : join(packageDir, "skills");
|
|
1053
|
+
}
|
|
1054
|
+
function shippedSkills(dir) {
|
|
1055
|
+
return skillEntries(dir).filter((name) => existsSync(join(dir, name, "SKILL.md")));
|
|
1056
|
+
}
|
|
1057
|
+
function managedSkills(rootDir) {
|
|
1058
|
+
try {
|
|
1059
|
+
const lock = JSON.parse(readFileSync(join(rootDir, "skills-lock.json"), "utf8"));
|
|
1060
|
+
const skills = isRecord(lock) && isRecord(lock.skills) ? Object.keys(lock.skills) : [];
|
|
1061
|
+
return new Set(skills.filter((name) => SKILL_NAME.test(name)));
|
|
1062
|
+
} catch {
|
|
1063
|
+
return /* @__PURE__ */ new Set();
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
const SKILLS_CLI_FIX = `\`npx skills add ./${INSTALLED_SKILLS} --skill '*' -y\` reinstalls the installed version's, and \`npx skills remove <name> -y\` drops one it doesn't ship`;
|
|
1067
|
+
function folderFiles(dir) {
|
|
1068
|
+
const files = /* @__PURE__ */ new Map();
|
|
1069
|
+
const walk = (sub) => {
|
|
1070
|
+
for (const entry of readdirSync(join(dir, sub), { withFileTypes: true })) {
|
|
1071
|
+
if (entry.name.startsWith(".")) continue;
|
|
1072
|
+
const path = sub ? `${sub}/${entry.name}` : entry.name;
|
|
1073
|
+
if (entry.isDirectory()) walk(path);
|
|
1074
|
+
else files.set(path, readFileSync(join(dir, path), "utf8").replaceAll("\r\n", "\n"));
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
walk("");
|
|
1078
|
+
return files;
|
|
1079
|
+
}
|
|
1080
|
+
function sameFolder(source, copy) {
|
|
1081
|
+
try {
|
|
1082
|
+
const left = folderFiles(source);
|
|
1083
|
+
const right = folderFiles(copy);
|
|
1084
|
+
return left.size === right.size && [...left].every(([path, text]) => right.get(path) === text);
|
|
1085
|
+
} catch {
|
|
1086
|
+
return false;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
function copyFolder(source, target) {
|
|
1090
|
+
if (occupied(target)) remove(target);
|
|
1091
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
1092
|
+
cpSync(source, target, { recursive: true, dereference: true, filter: (path) => path === source || !basename(path).startsWith(".") });
|
|
1093
|
+
}
|
|
1094
|
+
function linkFolder(target, link) {
|
|
1095
|
+
mkdirSync(dirname(link), { recursive: true });
|
|
1096
|
+
try {
|
|
1097
|
+
if (process.platform === "win32") symlinkSync(resolve(target), link, "junction");
|
|
1098
|
+
else symlinkSync(relative(dirname(link), target), link, "dir");
|
|
1099
|
+
return true;
|
|
1100
|
+
} catch {
|
|
1101
|
+
return false;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
function projectSkills(rootDir) {
|
|
1105
|
+
const source = shippedSkillsDir(rootDir);
|
|
1106
|
+
const shipped = shippedSkills(source);
|
|
1107
|
+
const managed = managedSkills(rootDir);
|
|
1108
|
+
const here = join(rootDir, PROJECT_SKILLS);
|
|
1109
|
+
const claude = join(rootDir, CLAUDE_SKILLS);
|
|
1110
|
+
const missing = shipped.filter((name) => !existsSync(join(here, name)) && !managed.has(name));
|
|
1111
|
+
const differ = shipped.filter((name) => !missing.includes(name) && occupied(join(here, name)) && !sameFolder(join(source, name), join(here, name)));
|
|
1112
|
+
const extra = shipped.length === 0 ? [] : [.../* @__PURE__ */ new Set([...skillEntries(here), ...skillEntries(claude)])].filter((name) => !shipped.includes(name)).sort();
|
|
1113
|
+
const claudeDiffer = skillEntries(claude).filter((name) => shipped.includes(name) && !managed.has(name) && !isLink(join(claude, name)) && !sameFolder(join(source, name), join(claude, name)));
|
|
1114
|
+
return { source, shipped, missing, differ, extra, claudeDiffer, managed };
|
|
1115
|
+
}
|
|
1116
|
+
function linkClaudeSkills(rootDir, source, names2, refresh) {
|
|
1117
|
+
const done = { linked: [], refreshed: [] };
|
|
1118
|
+
if (!existsSync(join(rootDir, ".claude")) && !existsSync(join(rootDir, "CLAUDE.md"))) return done;
|
|
1119
|
+
for (const name of names2) {
|
|
1120
|
+
const link = join(rootDir, CLAUDE_SKILLS, name);
|
|
1121
|
+
const target = join(rootDir, PROJECT_SKILLS, name);
|
|
1122
|
+
if (!occupied(link)) {
|
|
1123
|
+
if (!existsSync(target)) continue;
|
|
1124
|
+
if (!linkFolder(target, link)) copyFolder(target, link);
|
|
1125
|
+
done.linked.push(name);
|
|
1126
|
+
} else if (refresh.includes(name)) {
|
|
1127
|
+
copyFolder(join(source, name), link);
|
|
1128
|
+
done.refreshed.push(name);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
return done;
|
|
1132
|
+
}
|
|
1133
|
+
const names = (list) => [...new Set(list)].sort();
|
|
1134
|
+
const nameList = (list) => list.join(", ");
|
|
1135
|
+
function applyAgentSkills(rootDir, force) {
|
|
1136
|
+
const { source, shipped, missing, differ, extra, claudeDiffer, managed } = projectSkills(rootDir);
|
|
1137
|
+
const here = join(rootDir, PROJECT_SKILLS);
|
|
1138
|
+
const claude = join(rootDir, CLAUDE_SKILLS);
|
|
1139
|
+
const ours = (list) => list.filter((name) => !managed.has(name));
|
|
1140
|
+
const replaced = force ? ours(differ) : [];
|
|
1141
|
+
const removed = force ? ours(extra) : [];
|
|
1142
|
+
for (const name of [...missing, ...replaced]) copyFolder(join(source, name), join(here, name));
|
|
1143
|
+
for (const name of removed) {
|
|
1144
|
+
remove(join(here, name));
|
|
1145
|
+
remove(join(claude, name));
|
|
1146
|
+
}
|
|
1147
|
+
const linked = linkClaudeSkills(rootDir, source, ours(shipped), force ? claudeDiffer : []);
|
|
1148
|
+
const report = {
|
|
1149
|
+
installed: names([...missing, ...linked.linked]),
|
|
1150
|
+
refreshed: names([...replaced, ...linked.refreshed]),
|
|
1151
|
+
removed,
|
|
1152
|
+
stale: names([...differ, ...extra, ...claudeDiffer].filter((name) => !replaced.includes(name) && !removed.includes(name) && !linked.refreshed.includes(name)))
|
|
1153
|
+
};
|
|
1154
|
+
const left = ours(report.stale);
|
|
1155
|
+
const cli = report.stale.filter((name) => managed.has(name));
|
|
1156
|
+
const messages = [
|
|
1157
|
+
report.installed.length > 0 && `Installed the nuxt-backend agent skills in ${PROJECT_SKILLS}: ${nameList(report.installed)}`,
|
|
1158
|
+
report.refreshed.length > 0 && `Refreshed the nuxt-backend agent skills ${nameList(report.refreshed)} for the installed version`,
|
|
1159
|
+
report.removed.length > 0 && `Removed the nuxt-backend agent skills ${nameList(report.removed)}, which the installed version no longer ships`,
|
|
1160
|
+
left.length > 0 && `The nuxt-backend agent skills ${nameList(left)} belong to another version, so they were left alone. \`npx nuxt-backend init --agents\` refreshes them`,
|
|
1161
|
+
cli.length > 0 && `The skills CLI manages ${nameList(cli)} (skills-lock.json), which don't match the installed version, so init left them to it: ${SKILLS_CLI_FIX}`
|
|
1162
|
+
].filter((line) => typeof line === "string");
|
|
1163
|
+
return { report, messages };
|
|
1164
|
+
}
|
|
1165
|
+
const AGENTS_MESSAGES = {
|
|
1166
|
+
created: "Created AGENTS.md with a nuxt-backend section for coding agents",
|
|
1167
|
+
appended: "Added a nuxt-backend section to AGENTS.md",
|
|
1168
|
+
replaced: "Replaced the nuxt-backend section in AGENTS.md",
|
|
1169
|
+
unchanged: void 0,
|
|
1170
|
+
malformed: MALFORMED_AGENTS_MD
|
|
1171
|
+
};
|
|
1172
|
+
const MCP_MESSAGES = {
|
|
1173
|
+
created: "Created .mcp.json with the developer MCP server (npx nuxt-backend mcp)",
|
|
1174
|
+
added: "Added the developer MCP server (npx nuxt-backend mcp) to .mcp.json",
|
|
1175
|
+
replaced: "Replaced the nuxt-backend server in .mcp.json with npx nuxt-backend mcp",
|
|
1176
|
+
unchanged: void 0,
|
|
1177
|
+
invalid: '.mcp.json is not a JSON object, so it was left alone. Add the developer MCP server yourself: "nuxt-backend": { "command": "npx", "args": ["nuxt-backend", "mcp"] }'
|
|
1178
|
+
};
|
|
1179
|
+
const CONVEX_SERVER_NOTE = "The convex server in .mcp.json is no longer needed: the nuxt-backend server passes Convex's tools through. Remove it when you like";
|
|
1180
|
+
function writeAgentFiles(rootDir, { force = false, version } = {}) {
|
|
1181
|
+
const messages = [];
|
|
1182
|
+
const agentsPath = join(rootDir, "AGENTS.md");
|
|
1183
|
+
const agents = mergeAgentsMd(readIfExists(agentsPath), { force, version });
|
|
1184
|
+
if (agents.action !== "unchanged" && agents.action !== "malformed") writeFileSync(agentsPath, agents.content);
|
|
1185
|
+
if (AGENTS_MESSAGES[agents.action]) messages.push(AGENTS_MESSAGES[agents.action]);
|
|
1186
|
+
const mcpPath = join(rootDir, ".mcp.json");
|
|
1187
|
+
const mcp = mergeMcpJson(readIfExists(mcpPath), { force });
|
|
1188
|
+
if ((mcp.action === "created" || mcp.action === "added" || mcp.action === "replaced") && mcp.content) writeFileSync(mcpPath, mcp.content);
|
|
1189
|
+
if (MCP_MESSAGES[mcp.action]) messages.push(MCP_MESSAGES[mcp.action]);
|
|
1190
|
+
if (mcp.convexServer) messages.push(CONVEX_SERVER_NOTE);
|
|
1191
|
+
const skills = applyAgentSkills(rootDir, force);
|
|
1192
|
+
messages.push(...skills.messages);
|
|
1193
|
+
const claude = readIfExists(join(rootDir, "CLAUDE.md"));
|
|
1194
|
+
if (claude !== void 0 && !claude.includes("AGENTS.md")) {
|
|
1195
|
+
messages.push("CLAUDE.md does not mention AGENTS.md. Add a line with `@AGENTS.md` so Claude Code reads it too");
|
|
1196
|
+
}
|
|
1197
|
+
return { agentsMd: agents.action, mcpJson: mcp.action, skills: skills.report, messages };
|
|
1198
|
+
}
|
|
1199
|
+
function installedVersion(rootDir) {
|
|
1200
|
+
try {
|
|
1201
|
+
const { version } = JSON.parse(readFileSync(join(rootDir, "node_modules/nuxt-backend/package.json"), "utf8"));
|
|
1202
|
+
if (typeof version === "string") return version;
|
|
1203
|
+
} catch {
|
|
1204
|
+
}
|
|
1205
|
+
return packageVersion();
|
|
1206
|
+
}
|
|
1207
|
+
const REFRESH_AGENT_FILES = `Run \`npx nuxt-backend init --agents\`: it rewrites only the nuxt-backend section of AGENTS.md, adds the developer MCP server to .mcp.json and refreshes the skills in ${PROJECT_SKILLS}.`;
|
|
1208
|
+
function agentsMdFinding(agents, version) {
|
|
1209
|
+
const text = agents.replace(/\r\n/g, "\n");
|
|
1210
|
+
const place = placeSection(text);
|
|
1211
|
+
if (place.kind === "malformed") return finding("agent-files", "warn", "AGENTS.md has unpaired or repeated nuxt-backend markers, so nothing rewrites it.", `Keep exactly one ${AGENTS_START} \u2026 ${AGENTS_END} pair around the nuxt-backend section, or delete every marker.`);
|
|
1212
|
+
if (place.kind === "none") return finding("agent-files", "warn", `AGENTS.md has no nuxt-backend section, so coding agents get no guidance for nuxt-backend ${version}.`, REFRESH_AGENT_FILES);
|
|
1213
|
+
const section = `${text.slice(place.start, place.end)}
|
|
1214
|
+
`;
|
|
1215
|
+
if (section === agentsSection(version) || section === agentsSection()) return void 0;
|
|
1216
|
+
const written = sectionVersion(section);
|
|
1217
|
+
const message = written && written !== version ? `The nuxt-backend section of AGENTS.md was written for ${written}, and ${version} is installed.` : `The nuxt-backend section of AGENTS.md differs from the one ${version} writes.`;
|
|
1218
|
+
return finding("agent-files", "warn", message, REFRESH_AGENT_FILES);
|
|
1219
|
+
}
|
|
1220
|
+
function projectSkillsFinding({ differ, extra, claudeDiffer, managed }, version) {
|
|
1221
|
+
const changed = names([...differ, ...claudeDiffer]);
|
|
1222
|
+
if (changed.length === 0 && extra.length === 0) return void 0;
|
|
1223
|
+
const where = claudeDiffer.length > 0 ? `${PROJECT_SKILLS} and ${CLAUDE_SKILLS}` : PROJECT_SKILLS;
|
|
1224
|
+
const what = [
|
|
1225
|
+
changed.length > 0 && `the nuxt-backend skills in ${where} differ from the ones ${version} ships (${nameList(changed)})`,
|
|
1226
|
+
extra.length > 0 && `the project holds nuxt-backend skills ${version} doesn't ship (${nameList(extra)})`
|
|
1227
|
+
].filter(Boolean).join(", and ");
|
|
1228
|
+
const message = `${what.charAt(0).toUpperCase()}${what.slice(1)}, so agents read guidance for another version.`;
|
|
1229
|
+
const cli = names([...changed, ...extra]).filter((name) => managed.has(name));
|
|
1230
|
+
const fix = [
|
|
1231
|
+
cli.length < changed.length + extra.length && REFRESH_AGENT_FILES,
|
|
1232
|
+
cli.length > 0 && `The skills CLI manages ${nameList(cli)} (skills-lock.json), and \`init\` leaves them to it: ${SKILLS_CLI_FIX}.`
|
|
1233
|
+
].filter(Boolean).join(" ");
|
|
1234
|
+
return finding("agent-files", "warn", message, fix);
|
|
1235
|
+
}
|
|
1236
|
+
function heldSkills(rootDir, { shipped }) {
|
|
1237
|
+
const held = shipped.filter((name) => occupied(join(rootDir, PROJECT_SKILLS, name)));
|
|
1238
|
+
if (held.length === 0) return void 0;
|
|
1239
|
+
return held.length === shipped.length ? `${PROJECT_SKILLS} its skills` : `${PROJECT_SKILLS} ${held.length} of its ${shipped.length} skills (agents find the rest in node_modules)`;
|
|
1240
|
+
}
|
|
1241
|
+
function agentFilesFinding(rootDir, version) {
|
|
1242
|
+
const project = projectSkills(rootDir);
|
|
1243
|
+
const skills = projectSkillsFinding(project, version);
|
|
1244
|
+
const agents = readIfExists(join(rootDir, "AGENTS.md"));
|
|
1245
|
+
if (agents === void 0) return skills ?? finding("agent-files", "pass", `No AGENTS.md: coding agents get no nuxt-backend guidance unless they find the skills in node_modules.`, REFRESH_AGENT_FILES);
|
|
1246
|
+
const stale = agentsMdFinding(agents, version);
|
|
1247
|
+
if (stale) return stale;
|
|
1248
|
+
const mcp = mergeMcpJson(readIfExists(join(rootDir, ".mcp.json")));
|
|
1249
|
+
if (mcp.action === "invalid") return finding("agent-files", "warn", ".mcp.json is not a JSON object, so agents get no developer MCP server.", "Make .mcp.json a JSON object, then run `npx nuxt-backend init --agents`.");
|
|
1250
|
+
if (mcp.action !== "unchanged") return finding("agent-files", "warn", ".mcp.json has no nuxt-backend server, so agents get no developer MCP server: no project state, docs or provider consoles.", REFRESH_AGENT_FILES);
|
|
1251
|
+
if (skills) return skills;
|
|
1252
|
+
const held = [`AGENTS.md holds the nuxt-backend section ${version} writes`, ".mcp.json the developer MCP server", ...[heldSkills(rootDir, project)].filter((text) => text !== void 0)];
|
|
1253
|
+
return finding("agent-files", "pass", `${held.slice(0, -1).join(", ")}, and ${held.at(-1)}.`);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
function resolveConvexCli(rootDir) {
|
|
1257
|
+
for (const base of [join(rootDir, "package.json"), import.meta.url]) {
|
|
1258
|
+
try {
|
|
1259
|
+
const manifestPath = createRequire(base).resolve("convex/package.json");
|
|
1260
|
+
const manifest = JSON.parse(readFileSync(manifestPath, "utf-8"));
|
|
1261
|
+
const bin = typeof manifest.bin === "string" ? manifest.bin : manifest.bin?.convex;
|
|
1262
|
+
if (bin) return join(dirname(manifestPath), bin);
|
|
1263
|
+
} catch {
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
return void 0;
|
|
1267
|
+
}
|
|
1268
|
+
class ConvexCliError extends Error {
|
|
1269
|
+
/** The exit code; null when a signal ended the child, or it never started. */
|
|
1270
|
+
code;
|
|
1271
|
+
/** The signal that ended the child — SIGTERM after a timeout. */
|
|
1272
|
+
signal;
|
|
1273
|
+
/** Whether the timeout ended it. */
|
|
1274
|
+
timedOut;
|
|
1275
|
+
/** The stderr lines the message quotes, with the input scrubbed out. */
|
|
1276
|
+
stderrTail;
|
|
1277
|
+
/**
|
|
1278
|
+
* `convex run` named a function the deployment does not have. Read off the
|
|
1279
|
+
* whole stderr: the lines the message quotes are its list of the ones it has.
|
|
1280
|
+
*/
|
|
1281
|
+
missingFunction;
|
|
1282
|
+
constructor(message, details) {
|
|
1283
|
+
super(message);
|
|
1284
|
+
this.name = "ConvexCliError";
|
|
1285
|
+
this.code = details.code;
|
|
1286
|
+
this.signal = details.signal;
|
|
1287
|
+
this.timedOut = details.timedOut;
|
|
1288
|
+
this.stderrTail = details.stderrTail;
|
|
1289
|
+
this.missingFunction = details.missingFunction === true;
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
const ENV_SUBCOMMANDS = /* @__PURE__ */ new Set(["set", "list", "get", "remove"]);
|
|
1293
|
+
function commandName(args) {
|
|
1294
|
+
const [first, second, third] = args;
|
|
1295
|
+
if (first === "env" && second === "default" && third && ENV_SUBCOMMANDS.has(third)) return `convex env default ${third}`;
|
|
1296
|
+
if (first === "env" && second && ENV_SUBCOMMANDS.has(second)) return `convex env ${second}`;
|
|
1297
|
+
return first && /^[a-z][a-z-]*$/.test(first) ? `convex ${first}` : "convex";
|
|
1298
|
+
}
|
|
1299
|
+
const STDERR_TAIL_CHARS = 400;
|
|
1300
|
+
const SCRUB_MIN_LENGTH = 12;
|
|
1301
|
+
function stderrTail(stderr, input) {
|
|
1302
|
+
let text = stripVTControlCharacters(stderr);
|
|
1303
|
+
if (input !== void 0 && input.length >= SCRUB_MIN_LENGTH) text = text.split(input).join("[redacted]");
|
|
1304
|
+
const tail = text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).slice(-3).join(" ");
|
|
1305
|
+
return tail.length > STDERR_TAIL_CHARS ? `\u2026${tail.slice(-STDERR_TAIL_CHARS)}` : tail;
|
|
1306
|
+
}
|
|
1307
|
+
function forwardStopSignals(child, target = process, platform = process.platform) {
|
|
1308
|
+
if (platform === "win32") return () => {
|
|
1309
|
+
};
|
|
1310
|
+
const forward = () => {
|
|
1311
|
+
child.kill("SIGINT");
|
|
1312
|
+
};
|
|
1313
|
+
target.on("SIGINT", forward);
|
|
1314
|
+
target.on("SIGTERM", forward);
|
|
1315
|
+
return () => {
|
|
1316
|
+
target.off("SIGINT", forward);
|
|
1317
|
+
target.off("SIGTERM", forward);
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
function spawnConvex(rootDir, args, options = {}) {
|
|
1321
|
+
const cli = resolveConvexCli(rootDir);
|
|
1322
|
+
if (!cli) return Promise.reject(new Error("The `convex` package is not installed in this project."));
|
|
1323
|
+
return new Promise((resolve, reject) => {
|
|
1324
|
+
const child = spawn(process.execPath, [cli, ...args], { cwd: rootDir, stdio: "inherit", env: options.env ?? process.env });
|
|
1325
|
+
const stopForwarding = forwardStopSignals(child);
|
|
1326
|
+
child.on("error", (error) => {
|
|
1327
|
+
stopForwarding();
|
|
1328
|
+
reject(error);
|
|
1329
|
+
});
|
|
1330
|
+
child.on("exit", (code, signal) => {
|
|
1331
|
+
stopForwarding();
|
|
1332
|
+
resolve(code ?? (signal === "SIGINT" ? 130 : 1));
|
|
1333
|
+
});
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
function runConvex(rootDir, args, options = {}) {
|
|
1337
|
+
const cli = resolveConvexCli(rootDir);
|
|
1338
|
+
if (!cli) return Promise.reject(new Error("The `convex` package is not installed in this project."));
|
|
1339
|
+
const command = commandName(args);
|
|
1340
|
+
const timeout = options.timeout ?? 3e4;
|
|
1341
|
+
return new Promise((resolve, reject) => {
|
|
1342
|
+
const child = spawn(process.execPath, [cli, ...args], { cwd: rootDir, stdio: "pipe", windowsHide: true });
|
|
1343
|
+
let stdout = "";
|
|
1344
|
+
let stderr = "";
|
|
1345
|
+
let timedOut = false;
|
|
1346
|
+
child.stdout.setEncoding("utf8").on("data", (chunk) => {
|
|
1347
|
+
stdout += chunk;
|
|
1348
|
+
});
|
|
1349
|
+
child.stderr.setEncoding("utf8").on("data", (chunk) => {
|
|
1350
|
+
stderr += chunk;
|
|
1351
|
+
});
|
|
1352
|
+
const timer = setTimeout(() => {
|
|
1353
|
+
timedOut = true;
|
|
1354
|
+
child.kill();
|
|
1355
|
+
}, timeout);
|
|
1356
|
+
const fail = (how, code, signal) => {
|
|
1357
|
+
const tail = stderrTail(stderr, options.input);
|
|
1358
|
+
reject(new ConvexCliError(tail ? `${command} ${how}: ${tail}` : `${command} ${how}`, { code, signal, timedOut, stderrTail: tail, missingFunction: /Could not find function for /.test(stderr) }));
|
|
1359
|
+
};
|
|
1360
|
+
child.on("error", (error) => {
|
|
1361
|
+
clearTimeout(timer);
|
|
1362
|
+
fail(`could not start (${error.code ?? "unknown error"})`, null, null);
|
|
1363
|
+
});
|
|
1364
|
+
child.on("close", (code, signal) => {
|
|
1365
|
+
clearTimeout(timer);
|
|
1366
|
+
if (timedOut) fail(`timed out after ${timeout / 1e3}s`, code, signal);
|
|
1367
|
+
else if (code === 0) resolve({ stdout, stderr });
|
|
1368
|
+
else fail(signal ? `was stopped by ${signal}` : `exited with code ${code}`, code, signal);
|
|
1369
|
+
});
|
|
1370
|
+
child.stdin.on("error", () => {
|
|
1371
|
+
});
|
|
1372
|
+
child.stdin.end(options.input === void 0 ? void 0 : `${options.input}
|
|
1373
|
+
`);
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
function siteFromCloudUrl(url) {
|
|
1378
|
+
const match = url.match(/^(https:\/\/[a-z0-9-]+(?:\.[a-z0-9-]+)*\.convex)\.cloud\/?$/);
|
|
1379
|
+
return match ? `${match[1]}.site` : null;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
function isDevDeploymentId(deployment) {
|
|
1383
|
+
return /^(?:dev|local|anonymous):/.test(deployment ?? "");
|
|
1384
|
+
}
|
|
1385
|
+
function isLocalDeploymentId(deployment) {
|
|
1386
|
+
return /^(?:local|anonymous):/.test(deployment ?? "");
|
|
1387
|
+
}
|
|
1388
|
+
function parseEnvFile(content) {
|
|
1389
|
+
const env = {};
|
|
1390
|
+
for (const line of content.split("\n")) {
|
|
1391
|
+
const match = line.match(/^[ \t]*([A-Z_]\w*)[ \t]*=(.*)$/i);
|
|
1392
|
+
if (!match) continue;
|
|
1393
|
+
const raw = match[2].trim();
|
|
1394
|
+
const quoted = raw.match(/^(["'])(.*)\1/);
|
|
1395
|
+
env[match[1]] = quoted ? quoted[2] : raw.replace(/\s+#.*$/, "");
|
|
1396
|
+
}
|
|
1397
|
+
return env;
|
|
1398
|
+
}
|
|
1399
|
+
function resolveSiteUrl(input) {
|
|
1400
|
+
const explicit = input.env.NUXT_PUBLIC_CONVEX_SITE_URL ?? input.derived?.siteUrl;
|
|
1401
|
+
if (explicit) return explicit;
|
|
1402
|
+
const cloudUrl = input.url ?? input.env.NUXT_PUBLIC_BACKEND_URL ?? input.env.NUXT_PUBLIC_CONVEX_URL ?? input.derived?.url;
|
|
1403
|
+
return cloudUrl ? siteFromCloudUrl(cloudUrl) ?? void 0 : void 0;
|
|
1404
|
+
}
|
|
1405
|
+
function deriveDeploymentUrls(rootDir, env = process.env) {
|
|
1406
|
+
const merged = {};
|
|
1407
|
+
for (const name of [".env", ".env.local"]) {
|
|
1408
|
+
const path = join(rootDir, name);
|
|
1409
|
+
if (existsSync(path)) Object.assign(merged, parseEnvFile(readFileSync(path, "utf-8")));
|
|
1410
|
+
}
|
|
1411
|
+
for (const [key, value] of Object.entries(env)) {
|
|
1412
|
+
if (value !== void 0) merged[key] = value;
|
|
1413
|
+
}
|
|
1414
|
+
const selfHosted = merged.CONVEX_SELF_HOSTED_URL;
|
|
1415
|
+
if (selfHosted) {
|
|
1416
|
+
return { url: selfHosted.replace(/\/+$/, ""), source: "self-hosted" };
|
|
1417
|
+
}
|
|
1418
|
+
const deployment = merged.CONVEX_DEPLOYMENT;
|
|
1419
|
+
if (!deployment) return null;
|
|
1420
|
+
const written = merged.CONVEX_URL?.replace(/\/+$/, "");
|
|
1421
|
+
if (written) {
|
|
1422
|
+
const writtenSite = merged.CONVEX_SITE_URL?.replace(/\/+$/, "") ?? siteFromCloudUrl(written) ?? void 0;
|
|
1423
|
+
return { url: written, ...writtenSite ? { siteUrl: writtenSite } : {}, source: "deployment", deployment };
|
|
1424
|
+
}
|
|
1425
|
+
if (isLocalDeploymentId(deployment)) return null;
|
|
1426
|
+
const slug = deployment.includes(":") ? deployment.slice(deployment.lastIndexOf(":") + 1) : deployment;
|
|
1427
|
+
if (!/^[a-z0-9-]+$/.test(slug)) return null;
|
|
1428
|
+
return {
|
|
1429
|
+
url: `https://${slug}.convex.cloud`,
|
|
1430
|
+
siteUrl: `https://${slug}.convex.site`,
|
|
1431
|
+
source: "deployment",
|
|
1432
|
+
deployment
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
function computeDeployment(rootDir, env) {
|
|
1436
|
+
const derived = deriveDeploymentUrls(rootDir, env);
|
|
1437
|
+
const id = env.CONVEX_DEPLOYMENT ?? derived?.deployment;
|
|
1438
|
+
const url = env.NUXT_PUBLIC_BACKEND_URL ?? env.NUXT_PUBLIC_CONVEX_URL ?? derived?.url;
|
|
1439
|
+
const siteUrl = resolveSiteUrl({ env, derived });
|
|
1440
|
+
const urls = { ...url ? { url } : {}, ...siteUrl ? { siteUrl } : {} };
|
|
1441
|
+
if (derived?.source === "self-hosted") return { kind: "self-hosted", ...urls };
|
|
1442
|
+
if (!id) return { kind: "none", ...urls };
|
|
1443
|
+
const prefix = id.includes(":") ? id.slice(0, id.indexOf(":")) : "";
|
|
1444
|
+
const kind = { dev: "cloud-dev", local: "local", anonymous: "anonymous", prod: "production", preview: "preview" }[prefix] ?? "cloud-dev";
|
|
1445
|
+
const name = id.slice(id.lastIndexOf(":") + 1);
|
|
1446
|
+
const cloud = kind === "cloud-dev" || kind === "production" || kind === "preview";
|
|
1447
|
+
return {
|
|
1448
|
+
kind,
|
|
1449
|
+
id,
|
|
1450
|
+
...urls,
|
|
1451
|
+
...cloud && /^[a-z0-9-]+$/.test(name) ? { dashboardUrl: `https://dashboard.convex.dev/d/${name}` } : {}
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
function readTextIfPresent(path) {
|
|
1456
|
+
try {
|
|
1457
|
+
return readFileSync(path, "utf8");
|
|
1458
|
+
} catch (error) {
|
|
1459
|
+
if (error.code === "ENOENT") return void 0;
|
|
1460
|
+
throw error;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
function sourceText(text) {
|
|
1464
|
+
const bom = text.startsWith("\uFEFF");
|
|
1465
|
+
const raw = bom ? text.slice(1) : text;
|
|
1466
|
+
const crlf = [];
|
|
1467
|
+
let removed = 0;
|
|
1468
|
+
for (let at = raw.indexOf("\r\n"); at >= 0; at = raw.indexOf("\r\n", at + 2)) crlf.push(at - removed++);
|
|
1469
|
+
const lf = raw.split("\n").length - 1;
|
|
1470
|
+
const toRaw = (offset) => {
|
|
1471
|
+
let before = 0;
|
|
1472
|
+
while (before < crlf.length && crlf[before] < offset) before++;
|
|
1473
|
+
return offset + before;
|
|
1474
|
+
};
|
|
1475
|
+
return { raw, code: raw.replace(/\r\n/g, "\n"), bom, eol: crlf.length * 2 > lf ? "\r\n" : "\n", toRaw };
|
|
1476
|
+
}
|
|
1477
|
+
function readSource(path) {
|
|
1478
|
+
return sourceText(readFileSync(path, "utf-8"));
|
|
1479
|
+
}
|
|
1480
|
+
function pause(ms) {
|
|
1481
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
1482
|
+
}
|
|
1483
|
+
function writeSource(path, source, code) {
|
|
1484
|
+
const target = realpathSync(path);
|
|
1485
|
+
const text = `${source.bom ? "\uFEFF" : ""}${code}`;
|
|
1486
|
+
const temporary = join(dirname(target), `.${process.pid}-${Date.now()}.nuxt-backend.tmp`);
|
|
1487
|
+
const opened = openSync(target, "r");
|
|
1488
|
+
const mode = fstatSync(opened).mode;
|
|
1489
|
+
closeSync(opened);
|
|
1490
|
+
try {
|
|
1491
|
+
const written = openSync(temporary, "wx");
|
|
1492
|
+
try {
|
|
1493
|
+
writeSync(written, text);
|
|
1494
|
+
fchmodSync(written, mode);
|
|
1495
|
+
} finally {
|
|
1496
|
+
closeSync(written);
|
|
1497
|
+
}
|
|
1498
|
+
for (let attempt = 0; ; attempt++) {
|
|
1499
|
+
try {
|
|
1500
|
+
renameSync(temporary, target);
|
|
1501
|
+
return;
|
|
1502
|
+
} catch (error) {
|
|
1503
|
+
const code2 = error.code ?? "";
|
|
1504
|
+
if (process.platform !== "win32" || !["EPERM", "EBUSY", "EACCES"].includes(code2)) throw error;
|
|
1505
|
+
if (attempt === 4) throw new Error(`${target} is held by another program (${code2}). Close it there and run this again.`, { cause: error });
|
|
1506
|
+
pause(50 * 2 ** attempt);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
} finally {
|
|
1510
|
+
rmSync(temporary, { force: true });
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
function parse(magicast, code) {
|
|
1514
|
+
try {
|
|
1515
|
+
return magicast.parseModule(code).$ast;
|
|
1516
|
+
} catch (error) {
|
|
1517
|
+
return (error instanceof Error ? error.message : String(error)).split("\n")[0];
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
function walk(node, visit, parent) {
|
|
1521
|
+
if (!node || typeof node !== "object") return;
|
|
1522
|
+
if (Array.isArray(node)) {
|
|
1523
|
+
for (const child of node) walk(child, visit, parent);
|
|
1524
|
+
return;
|
|
1525
|
+
}
|
|
1526
|
+
const candidate = node;
|
|
1527
|
+
const isNode = typeof candidate.type === "string";
|
|
1528
|
+
if (isNode) visit(candidate, parent);
|
|
1529
|
+
for (const [key, value] of Object.entries(candidate)) {
|
|
1530
|
+
if (key !== "loc" && key !== "comments" && !key.endsWith("Comments")) walk(value, visit, isNode ? candidate : parent);
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
function keyOf(property) {
|
|
1534
|
+
const key = property.key;
|
|
1535
|
+
if (!key) return void 0;
|
|
1536
|
+
return key.type === "Identifier" ? key.name : key.type === "StringLiteral" ? key.value : void 0;
|
|
1537
|
+
}
|
|
1538
|
+
function applyEdits(source, edits) {
|
|
1539
|
+
const ordered = edits.map((edit, order) => ({ ...edit, order })).sort((left, right) => right.start - left.start || right.end - left.end || right.order - left.order);
|
|
1540
|
+
return ordered.reduce((result, { start, end, text }) => {
|
|
1541
|
+
return result.slice(0, source.toRaw(start)) + text.replace(/\n/g, source.eol) + result.slice(source.toRaw(end));
|
|
1542
|
+
}, source.raw);
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
const MONITORING_SDK = "@sentry/nuxt";
|
|
1546
|
+
const SOURCE_MAP_ENV = ["SENTRY_AUTH_TOKEN", "SENTRY_ORG", "SENTRY_PROJECT"];
|
|
1547
|
+
const INTEGRATION_DSN_ENV = "NEXT_PUBLIC_SENTRY_DSN";
|
|
1548
|
+
function appMonitoringDsn(env) {
|
|
1549
|
+
return env.MONITORING_DSN?.trim() || env[INTEGRATION_DSN_ENV]?.trim() || void 0;
|
|
1550
|
+
}
|
|
1551
|
+
function monitoringSdkInstalled(rootDir) {
|
|
1552
|
+
try {
|
|
1553
|
+
createRequire(join(rootDir, "package.json")).resolve(`${MONITORING_SDK}/package.json`);
|
|
1554
|
+
return true;
|
|
1555
|
+
} catch {
|
|
1556
|
+
return false;
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
function deploysToVercel(rootDir, env) {
|
|
1560
|
+
return Boolean(env.VERCEL) || existsSync(join(rootDir, ".vercel", "project.json"));
|
|
1561
|
+
}
|
|
1562
|
+
function monitoringDsnFinding(isSet, { prod }) {
|
|
1563
|
+
if (isSet) return finding("deployment-monitoring-dsn", "pass", "MONITORING_DSN is set on the deployment: its actions report errors, and on production its cron checks in.");
|
|
1564
|
+
if (!prod) return finding("deployment-monitoring-dsn", "pass", "MONITORING_DSN is not set on this dev deployment: the backend reports nothing, and the dev server's local error log stands in.");
|
|
1565
|
+
return finding(
|
|
1566
|
+
"deployment-monitoring-dsn",
|
|
1567
|
+
"warn",
|
|
1568
|
+
"MONITORING_DSN is not set on the production deployment: errors in its actions and its cron check-ins go unreported.",
|
|
1569
|
+
"Add the DSN to .env.local and run `npx nuxt-backend env push --prod`."
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
function appFinding(rootDir, env, { dsn, sdk, prod }) {
|
|
1573
|
+
if (dsn) {
|
|
1574
|
+
return sdk ? finding("monitoring-app", "pass", `The browser and the Nuxt server report errors through ${MONITORING_SDK}.`) : finding("monitoring-app", "warn", `A DSN is set for the app, but ${MONITORING_SDK} is not installed: the browser and the Nuxt server report nothing.`, `Install it: npm install ${MONITORING_SDK}. The module wires it once it is there.`);
|
|
1575
|
+
}
|
|
1576
|
+
if (!prod) return finding("monitoring-app", "pass", "No DSN is set for the app: in dev, errors go to the dev server's local error log (DevTools \u203A Monitoring).");
|
|
1577
|
+
if (!env.VERCEL && deploysToVercel(rootDir, env)) {
|
|
1578
|
+
return finding("monitoring-app", "pass", "No DSN for the app is visible here, and its production env is on Vercel, which this check cannot read: Sentry's Vercel integration sets NEXT_PUBLIC_SENTRY_DSN there. `vercel env pull .env.local` brings it here to check.");
|
|
1579
|
+
}
|
|
1580
|
+
return finding(
|
|
1581
|
+
"monitoring-app",
|
|
1582
|
+
"warn",
|
|
1583
|
+
"No DSN is visible to the app: in production the browser and the Nuxt server report nothing.",
|
|
1584
|
+
`Set MONITORING_DSN in the app's hosting env and install ${MONITORING_SDK}, or install Sentry's Vercel integration, which sets NEXT_PUBLIC_SENTRY_DSN. Run doctor --prod where the app's production env is visible, such as its build.`
|
|
1585
|
+
);
|
|
1586
|
+
}
|
|
1587
|
+
function monitoringFindings(rootDir, { env, deployed, prod }) {
|
|
1588
|
+
const dsn = appMonitoringDsn(env);
|
|
1589
|
+
const sdk = monitoringSdkInstalled(rootDir);
|
|
1590
|
+
const findings = [appFinding(rootDir, env, { dsn, sdk, prod })];
|
|
1591
|
+
if (dsn && sdk && deploysToVercel(rootDir, env)) {
|
|
1592
|
+
const unset = SOURCE_MAP_ENV.filter((name) => !env[name]);
|
|
1593
|
+
findings.push(unset.length === 0 ? finding("monitoring-source-maps", "pass", "A Vercel build uploads its source maps: SENTRY_AUTH_TOKEN, SENTRY_ORG and SENTRY_PROJECT are set.") : finding(
|
|
1594
|
+
"monitoring-source-maps",
|
|
1595
|
+
"warn",
|
|
1596
|
+
`The app deploys to Vercel, and ${unset.join(", ")} ${unset.length === 1 ? "is" : "are"} not visible here: a build without them uploads no source maps, so stack traces stay minified.`,
|
|
1597
|
+
"Install Sentry's Vercel integration: it sets them on the project, and each deploy uploads its source maps and names its release. `vercel env pull .env.local` brings them here to check."
|
|
1598
|
+
));
|
|
1599
|
+
}
|
|
1600
|
+
if (prod || deployed?.includes("MONITORING_DSN")) {
|
|
1601
|
+
findings.push(finding("monitoring-backend-exceptions", "pass", "Queries and mutations cannot post a report: their errors are reported where they are called, with the function and its error code. For the backend's own report of every exception, turn on exception reporting in its dashboard (a Pro plan setting)."));
|
|
1602
|
+
}
|
|
1603
|
+
return findings;
|
|
1604
|
+
}
|
|
1605
|
+
async function readUsageLimits(rootDir) {
|
|
1606
|
+
try {
|
|
1607
|
+
const { stdout } = await runConvex(rootDir, ["deployment", "usage-limits", "list", "--prod", "--json"]);
|
|
1608
|
+
const parsed = JSON.parse(stdout);
|
|
1609
|
+
return Array.isArray(parsed) ? parsed.filter((limit) => typeof limit?.metric === "string" && typeof limit?.limitType === "string") : null;
|
|
1610
|
+
} catch {
|
|
1611
|
+
return null;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
const warningCommand = (metric, limit) => `npx convex deployment usage-limits set --prod --metric ${metric} --window month --type warning --limit ${limit}`;
|
|
1615
|
+
function usageAlertsFinding(limits, { convexGateway }) {
|
|
1616
|
+
if (limits === null) {
|
|
1617
|
+
return finding("monitoring-usage-alerts", "pass", "Production's usage limits could not be read here (`npx convex deployment usage-limits list --prod` needs a login with access to the project). A `warning` limit emails the team before usage runs away.");
|
|
1618
|
+
}
|
|
1619
|
+
const warned = new Set(limits.filter((limit) => limit.limitType === "warning" && limit.enabled).map((limit) => limit.metric));
|
|
1620
|
+
const missing = [...warned.size === 0 ? ["functionCalls"] : [], ...convexGateway && !warned.has("aiGatewayCostDollars") ? ["aiGatewayCostDollars"] : []];
|
|
1621
|
+
const triggered = limits.filter((limit) => limit.enabled && limit.triggered).map((limit) => `${limit.metric} (${limit.limitType}, per ${limit.window})`);
|
|
1622
|
+
if (missing.length > 0) {
|
|
1623
|
+
return finding(
|
|
1624
|
+
"monitoring-usage-alerts",
|
|
1625
|
+
"warn",
|
|
1626
|
+
`Production has no active warning usage limit on ${missing.join(" or ")}: nothing tells the team its usage is running away until a bill or a disable limit does.`,
|
|
1627
|
+
missing.map((metric) => warningCommand(metric, metric === "aiGatewayCostDollars" ? "<dollars>" : "<calls>")).join("; ")
|
|
1628
|
+
);
|
|
1629
|
+
}
|
|
1630
|
+
if (triggered.length > 0) return finding("monitoring-usage-alerts", "warn", `Production is past ${triggered.length === 1 ? "a usage limit" : "usage limits"}: ${triggered.join(", ")}.`, "Look at the usage in the Convex dashboard, then raise the limit or find what spends it.");
|
|
1631
|
+
return finding("monitoring-usage-alerts", "pass", `Production warns the team by email once usage passes its limits: ${[...warned].sort().join(", ")}.`);
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
const NAMED_MODEL = /\bmodel\s*(?::|\()\s*(['"`])([a-z0-9][a-z0-9-]*\/[^\s'"`]+)\1/gi;
|
|
1635
|
+
|
|
1636
|
+
const DEFAULT_AUTH_ROUTE = "/api/auth";
|
|
1637
|
+
const RECENT_SIGN_IN_SECONDS = 600;
|
|
1638
|
+
const DEFAULT_INVITATION_PATH = "/accept-invitation";
|
|
1639
|
+
const DEFAULT_KEEP_ACCOUNT_PATH = "/account/keep";
|
|
1640
|
+
const DEFAULT_LOGIN_PATH = "/login";
|
|
1641
|
+
const DEFAULT_PRICING_PATH = "/pricing";
|
|
1642
|
+
const DEFAULT_INVITE_PATH = "/invite";
|
|
1643
|
+
const DEFAULT_WAITLIST_PATH = "/waitlist";
|
|
1644
|
+
const DEFAULT_WELCOME_PATH = "/welcome";
|
|
1645
|
+
const DEFAULT_REPORT_PATH = "/report";
|
|
1646
|
+
const DEFAULT_PRIVACY_PATH = "/legal/privacy";
|
|
1647
|
+
const DEFAULT_TERMS_PATH = "/legal/terms";
|
|
1648
|
+
const DEFAULT_SUBPROCESSORS_PATH = "/legal/subprocessors";
|
|
1649
|
+
const DEFAULT_ACCESSIBILITY_PATH = "/legal/accessibility";
|
|
1650
|
+
const DEFAULT_UNSUBSCRIBE_PATH = "/unsubscribe";
|
|
1651
|
+
const DEFAULT_SETTINGS_PATH = "/settings";
|
|
1652
|
+
const DEFAULT_GIFTS_PATH = "/gifts";
|
|
1653
|
+
const DEFAULT_REFERRAL_PATH = "/r/:code";
|
|
1654
|
+
const DEFAULT_PROFILE_PATH = "/profile";
|
|
1655
|
+
const DEFAULT_SECURITY_PATH = "/security";
|
|
1656
|
+
const DEFAULT_ADMIN_PATH = "/admin";
|
|
1657
|
+
const HEALTH_ROUTE = "/api/backend/health";
|
|
1658
|
+
const VISITOR_IP_ROUTE = "/api/backend/visitor-ip";
|
|
1659
|
+
const LOCAL_LOG_ROUTE = "/api/backend/_monitoring";
|
|
1660
|
+
|
|
1661
|
+
const DEFAULT_BACKEND_PATHS = Object.freeze({
|
|
1662
|
+
authRoute: DEFAULT_AUTH_ROUTE,
|
|
1663
|
+
acceptInvitation: DEFAULT_INVITATION_PATH,
|
|
1664
|
+
keepAccount: DEFAULT_KEEP_ACCOUNT_PATH,
|
|
1665
|
+
security: DEFAULT_SECURITY_PATH,
|
|
1666
|
+
waitlist: DEFAULT_WAITLIST_PATH,
|
|
1667
|
+
login: DEFAULT_LOGIN_PATH,
|
|
1668
|
+
unsubscribe: DEFAULT_UNSUBSCRIBE_PATH,
|
|
1669
|
+
report: DEFAULT_REPORT_PATH,
|
|
1670
|
+
settings: DEFAULT_SETTINGS_PATH,
|
|
1671
|
+
privacy: DEFAULT_PRIVACY_PATH
|
|
1672
|
+
});
|
|
1673
|
+
const BACKEND_PATH_KEYS = Object.keys(DEFAULT_BACKEND_PATHS);
|
|
1674
|
+
|
|
1675
|
+
const BRAND_FILE = "brand.generated.ts";
|
|
1676
|
+
const BRAND_KEYS = ["name", "logo", "address"];
|
|
1677
|
+
function quoted$1(value) {
|
|
1678
|
+
return `'${JSON.stringify(value).slice(1, -1).replace(/\\"/g, '"').replace(/'/g, "\\'")}'`;
|
|
1679
|
+
}
|
|
1680
|
+
function renderBrandFile(brand) {
|
|
1681
|
+
const lines = BRAND_KEYS.flatMap((key) => brand[key] === void 0 ? [] : [` ${key}: ${quoted$1(brand[key])},`]);
|
|
1682
|
+
return [
|
|
1683
|
+
"/* Generated by nuxt-backend from app.config (`backend.brand`) \u2014 do not edit. */",
|
|
1684
|
+
"// The Nuxt module rewrites this file whenever app.config changes the brand, and",
|
|
1685
|
+
"// the backend reads it: email.ts passes `brand` on. Commit it.",
|
|
1686
|
+
lines.length === 0 ? "export const brand: { name?: string, logo?: string, address?: string } = {}" : "export const brand: { name?: string, logo?: string, address?: string } = {",
|
|
1687
|
+
...lines.length === 0 ? [] : [...lines, "}"],
|
|
1688
|
+
""
|
|
1689
|
+
].join("\n");
|
|
1690
|
+
}
|
|
1691
|
+
function literal(node) {
|
|
1692
|
+
if (!node) return void 0;
|
|
1693
|
+
if (node.type === "StringLiteral" && typeof node.value === "string") return node.value;
|
|
1694
|
+
if (node.type === "TemplateLiteral" && Array.isArray(node.expressions) && node.expressions.length === 0) {
|
|
1695
|
+
const quasi = node.quasis[0];
|
|
1696
|
+
return quasi?.value?.cooked;
|
|
1697
|
+
}
|
|
1698
|
+
return void 0;
|
|
1699
|
+
}
|
|
1700
|
+
function property(object, key) {
|
|
1701
|
+
if (object?.type !== "ObjectExpression") return void 0;
|
|
1702
|
+
const found = object.properties.find((entry) => {
|
|
1703
|
+
if (entry.type !== "ObjectProperty") return false;
|
|
1704
|
+
const name = entry.key;
|
|
1705
|
+
return name.type === "Identifier" && name.name === key || name.type === "StringLiteral" && name.value === key;
|
|
1706
|
+
});
|
|
1707
|
+
return found?.value;
|
|
1708
|
+
}
|
|
1709
|
+
function exportedObject(program) {
|
|
1710
|
+
const declaration = program.body.find((statement) => statement.type === "ExportDefaultDeclaration")?.declaration;
|
|
1711
|
+
if (!declaration) return void 0;
|
|
1712
|
+
if (declaration.type === "ObjectExpression") return declaration;
|
|
1713
|
+
if (declaration.type === "CallExpression") return declaration.arguments[0];
|
|
1714
|
+
if (declaration.type === "TSAsExpression" || declaration.type === "TSSatisfiesExpression") return exportedObject({ body: [{ type: "ExportDefaultDeclaration", declaration: declaration.expression }] });
|
|
1715
|
+
return void 0;
|
|
1716
|
+
}
|
|
1717
|
+
function brandOfAppConfig(magicast, text) {
|
|
1718
|
+
const program = parse(magicast, text);
|
|
1719
|
+
if (typeof program === "string") return {};
|
|
1720
|
+
const brand = property(property(exportedObject(program.program ?? program), "backend"), "brand");
|
|
1721
|
+
const read = {};
|
|
1722
|
+
for (const key of BRAND_KEYS) {
|
|
1723
|
+
const value = literal(property(brand, key))?.trim();
|
|
1724
|
+
if (value) read[key] = value;
|
|
1725
|
+
}
|
|
1726
|
+
return read;
|
|
1727
|
+
}
|
|
1728
|
+
const APP_CONFIG_FILES = ["app.config.ts", "app.config.mts", "app.config.js", "app.config.mjs"];
|
|
1729
|
+
async function readAppBrand(srcDirs) {
|
|
1730
|
+
const magicast = await import('magicast');
|
|
1731
|
+
const brand = {};
|
|
1732
|
+
for (const dir of srcDirs) {
|
|
1733
|
+
const file = APP_CONFIG_FILES.map((name) => join(dir, name)).find(existsSync);
|
|
1734
|
+
if (!file) continue;
|
|
1735
|
+
const layer = brandOfAppConfig(magicast, readFileSync(file, "utf-8"));
|
|
1736
|
+
for (const key of BRAND_KEYS) {
|
|
1737
|
+
if (brand[key] === void 0 && layer[key] !== void 0) brand[key] = layer[key];
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
return brand;
|
|
1741
|
+
}
|
|
1742
|
+
function brandSourceDirs(config) {
|
|
1743
|
+
const dirs = (config._layers ?? []).flatMap((layer) => {
|
|
1744
|
+
const root = layer.config?.rootDir ?? layer.cwd;
|
|
1745
|
+
const src = layer.config?.srcDir;
|
|
1746
|
+
return [...src ? [src.startsWith("/") || !root ? src : join(root, src)] : [], ...root ? [join(root, "app"), root] : []];
|
|
1747
|
+
});
|
|
1748
|
+
const own = [config.srcDir, ...config.rootDir ? [join(config.rootDir, "app"), config.rootDir] : []].filter((dir) => Boolean(dir));
|
|
1749
|
+
return [.../* @__PURE__ */ new Set([...own, ...dirs])];
|
|
1750
|
+
}
|
|
1751
|
+
async function appBrandOf(config) {
|
|
1752
|
+
if (!config) return null;
|
|
1753
|
+
try {
|
|
1754
|
+
return await readAppBrand(brandSourceDirs(config));
|
|
1755
|
+
} catch {
|
|
1756
|
+
return null;
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
function definePage(def) {
|
|
1761
|
+
return def;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
const acceptInvitation = definePage({ key: "acceptInvitation", defaultPath: DEFAULT_INVITATION_PATH, file: "accept-invitation", auth: true });
|
|
1765
|
+
|
|
1766
|
+
const accessibility = definePage({ key: "accessibility", defaultPath: DEFAULT_ACCESSIBILITY_PATH, file: "accessibility", auth: false });
|
|
1767
|
+
|
|
1768
|
+
const admin = definePage({ key: "admin", defaultPath: DEFAULT_ADMIN_PATH, file: "admin", auth: true, access: { role: "admin", hidden: true } });
|
|
1769
|
+
|
|
1770
|
+
const gifts = definePage({ key: "gifts", defaultPath: DEFAULT_GIFTS_PATH, file: "gifts", auth: true });
|
|
1771
|
+
|
|
1772
|
+
const invite = definePage({ key: "invite", defaultPath: DEFAULT_INVITE_PATH, file: "invite", auth: false, noindex: true });
|
|
1773
|
+
|
|
1774
|
+
const keepAccount = definePage({ key: "keepAccount", defaultPath: DEFAULT_KEEP_ACCOUNT_PATH, file: "keep-account", auth: false, noindex: true, uncached: true });
|
|
1775
|
+
|
|
1776
|
+
const login = definePage({ key: "login", defaultPath: DEFAULT_LOGIN_PATH, file: "login", auth: false, noindex: true });
|
|
1777
|
+
|
|
1778
|
+
const pricing = definePage({ key: "pricing", defaultPath: DEFAULT_PRICING_PATH, file: "pricing", auth: false });
|
|
1779
|
+
|
|
1780
|
+
const privacy = definePage({ key: "privacy", defaultPath: DEFAULT_PRIVACY_PATH, file: "privacy", auth: false });
|
|
1781
|
+
|
|
1782
|
+
const profile = definePage({ key: "profile", defaultPath: DEFAULT_PROFILE_PATH, file: "profile", auth: true });
|
|
1783
|
+
|
|
1784
|
+
const referral = definePage({ key: "referral", defaultPath: DEFAULT_REFERRAL_PATH, file: "referral", auth: false, noindex: true });
|
|
1785
|
+
|
|
1786
|
+
const report = definePage({ key: "report", defaultPath: DEFAULT_REPORT_PATH, file: "report", auth: false });
|
|
1787
|
+
|
|
1788
|
+
const security = definePage({ key: "security", defaultPath: DEFAULT_SECURITY_PATH, file: "security", auth: true });
|
|
1789
|
+
|
|
1790
|
+
const settings = definePage({ key: "settings", defaultPath: DEFAULT_SETTINGS_PATH, file: "settings", auth: true });
|
|
1791
|
+
|
|
1792
|
+
const subprocessors = definePage({ key: "subprocessors", defaultPath: DEFAULT_SUBPROCESSORS_PATH, file: "subprocessors", auth: false });
|
|
1793
|
+
|
|
1794
|
+
const terms = definePage({ key: "terms", defaultPath: DEFAULT_TERMS_PATH, file: "terms", auth: false });
|
|
1795
|
+
|
|
1796
|
+
const unsubscribe = definePage({ key: "unsubscribe", defaultPath: DEFAULT_UNSUBSCRIBE_PATH, file: "unsubscribe", auth: false, noindex: true, uncached: true });
|
|
1797
|
+
|
|
1798
|
+
const waitlist = definePage({ key: "waitlist", defaultPath: DEFAULT_WAITLIST_PATH, file: "waitlist", auth: false, noindex: true });
|
|
1799
|
+
|
|
1800
|
+
const welcome = definePage({ key: "welcome", defaultPath: DEFAULT_WELCOME_PATH, file: "welcome", auth: true });
|
|
1801
|
+
|
|
1802
|
+
const BACKEND_PAGE_DEFS = [
|
|
1803
|
+
acceptInvitation,
|
|
1804
|
+
accessibility,
|
|
1805
|
+
admin,
|
|
1806
|
+
gifts,
|
|
1807
|
+
invite,
|
|
1808
|
+
keepAccount,
|
|
1809
|
+
login,
|
|
1810
|
+
pricing,
|
|
1811
|
+
privacy,
|
|
1812
|
+
profile,
|
|
1813
|
+
referral,
|
|
1814
|
+
report,
|
|
1815
|
+
security,
|
|
1816
|
+
settings,
|
|
1817
|
+
subprocessors,
|
|
1818
|
+
terms,
|
|
1819
|
+
unsubscribe,
|
|
1820
|
+
waitlist,
|
|
1821
|
+
welcome
|
|
1822
|
+
];
|
|
1823
|
+
|
|
1824
|
+
function normalizePagePath(path) {
|
|
1825
|
+
const prefixed = path.startsWith("/") ? path : `/${path}`;
|
|
1826
|
+
const trimmed = prefixed.replace(/\/+$/, "");
|
|
1827
|
+
return trimmed || "/";
|
|
1828
|
+
}
|
|
1829
|
+
function resolvePagePath(pages, key) {
|
|
1830
|
+
const def = BACKEND_PAGE_DEFS.find((entry) => entry.key === key);
|
|
1831
|
+
const value = pages?.[key];
|
|
1832
|
+
const path = typeof value === "string" ? value.trim() : "";
|
|
1833
|
+
return path ? normalizePagePath(path) : def.defaultPath;
|
|
1834
|
+
}
|
|
1835
|
+
function quoted(value) {
|
|
1836
|
+
return `\`${JSON.stringify(value) ?? String(value)}\``;
|
|
1837
|
+
}
|
|
1838
|
+
function isPageOff(pages, key) {
|
|
1839
|
+
return pages?.[key] === false;
|
|
1840
|
+
}
|
|
1841
|
+
function pagesOptionProblems(pages) {
|
|
1842
|
+
if (pages === void 0) return [];
|
|
1843
|
+
if (pages === null || typeof pages !== "object" || Array.isArray(pages)) {
|
|
1844
|
+
return [`\`backend.pages\` is ${quoted(pages)}. It takes a path or \`false\` per page key: to replace a page, put an app page at its path.`];
|
|
1845
|
+
}
|
|
1846
|
+
return BACKEND_PAGE_DEFS.flatMap((def) => {
|
|
1847
|
+
const value = pages[def.key];
|
|
1848
|
+
if (value === void 0 || value === false || typeof value === "string") return [];
|
|
1849
|
+
return [`\`backend.pages.${def.key}\` is ${quoted(value)}. Give it a path to move the page, \`false\` to turn it off, or leave it out; to replace the page, put an app page at its path (\`${def.defaultPath}\` by default).`];
|
|
1850
|
+
});
|
|
1851
|
+
}
|
|
1852
|
+
function publishedBackendPages(pages) {
|
|
1853
|
+
return Object.fromEntries(
|
|
1854
|
+
BACKEND_PAGE_DEFS.map((def) => [def.key, isPageOff(pages, def.key) ? false : resolvePagePath(pages, def.key)])
|
|
1855
|
+
);
|
|
1856
|
+
}
|
|
1857
|
+
function resolvedBackendPages(pages) {
|
|
1858
|
+
return Object.fromEntries(
|
|
1859
|
+
BACKEND_PAGE_DEFS.map((def) => [def.key, resolvePagePath(pages, def.key)])
|
|
1860
|
+
);
|
|
1861
|
+
}
|
|
1862
|
+
function privatePagePaths(pages) {
|
|
1863
|
+
return BACKEND_PAGE_DEFS.filter((def) => def.auth && !isPageOff(pages, def.key)).map((def) => resolvePagePath(pages, def.key));
|
|
1864
|
+
}
|
|
1865
|
+
function pageRouteRules(def) {
|
|
1866
|
+
if (!def.auth && !def.uncached) return def.noindex ? { prerender: false, robots: false } : { prerender: false };
|
|
1867
|
+
return {
|
|
1868
|
+
prerender: false,
|
|
1869
|
+
cache: false,
|
|
1870
|
+
swr: false,
|
|
1871
|
+
isr: false,
|
|
1872
|
+
robots: false,
|
|
1873
|
+
sitemap: false,
|
|
1874
|
+
headers: { "cache-control": "private, no-store" }
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1877
|
+
const CACHING_KEYS = ["swr", "isr", "cache"];
|
|
1878
|
+
const isDynamicSegment = (segment) => segment.startsWith("*") || segment.startsWith(":");
|
|
1879
|
+
function patternMatches(pattern, path) {
|
|
1880
|
+
const wanted = pattern.split("/").slice(1);
|
|
1881
|
+
const given = path.split("/").slice(1);
|
|
1882
|
+
for (const [index, segment] of wanted.entries()) {
|
|
1883
|
+
if (segment.startsWith("**")) return true;
|
|
1884
|
+
const actual = given[index];
|
|
1885
|
+
if (actual === void 0 || (isDynamicSegment(segment) ? !actual : segment !== actual)) return false;
|
|
1886
|
+
}
|
|
1887
|
+
return wanted.length === given.length;
|
|
1888
|
+
}
|
|
1889
|
+
function cachingRulesOver(routeRules, paths) {
|
|
1890
|
+
return Object.entries(routeRules).flatMap(([pattern, rule]) => {
|
|
1891
|
+
if (!pattern.split("/").some(isDynamicSegment) || !rule || typeof rule !== "object") return [];
|
|
1892
|
+
const keys = CACHING_KEYS.filter((key) => Boolean(rule[key]));
|
|
1893
|
+
const covered = paths.filter((path) => patternMatches(pattern, path));
|
|
1894
|
+
return keys.length && covered.length ? [{ pattern, paths: covered, keys }] : [];
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
function collectExistingPagePaths(pages, parent = "") {
|
|
1898
|
+
const paths = /* @__PURE__ */ new Set();
|
|
1899
|
+
for (const page of pages) {
|
|
1900
|
+
const absolute = page.path.startsWith("/") ? page.path : `${parent}/${page.path}`;
|
|
1901
|
+
const normalized = normalizePagePath(absolute);
|
|
1902
|
+
paths.add(normalized);
|
|
1903
|
+
if (page.children?.length) {
|
|
1904
|
+
for (const child of collectExistingPagePaths(page.children, normalized === "/" ? "" : normalized)) {
|
|
1905
|
+
paths.add(child);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
return paths;
|
|
1910
|
+
}
|
|
1911
|
+
function adoptChildPages(pages, parent, parentPath) {
|
|
1912
|
+
const base = normalizePagePath(parentPath);
|
|
1913
|
+
if (base === "/") return [];
|
|
1914
|
+
const moved = [];
|
|
1915
|
+
for (const page of [...pages]) {
|
|
1916
|
+
if (page === parent || !page.path.startsWith("/")) continue;
|
|
1917
|
+
const absolute = normalizePagePath(page.path);
|
|
1918
|
+
if (!absolute.startsWith(`${base}/`)) continue;
|
|
1919
|
+
pages.splice(pages.indexOf(page), 1);
|
|
1920
|
+
parent.children = [...parent.children ?? [], { ...page, path: absolute.slice(base.length + 1) }];
|
|
1921
|
+
moved.push(absolute);
|
|
1922
|
+
}
|
|
1923
|
+
return moved;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
const PATHS_FILE = "paths.generated.ts";
|
|
1927
|
+
function pathsSourceOf(config) {
|
|
1928
|
+
const inline = (config.modules ?? []).flatMap((entry) => Array.isArray(entry) && entry[0] === "nuxt-backend" && entry[1] && typeof entry[1] === "object" ? [entry[1]] : []);
|
|
1929
|
+
return defu({}, ...inline, config.backend ?? {});
|
|
1930
|
+
}
|
|
1931
|
+
const PAGE_OF = {
|
|
1932
|
+
acceptInvitation: "acceptInvitation",
|
|
1933
|
+
keepAccount: "keepAccount",
|
|
1934
|
+
security: "security",
|
|
1935
|
+
waitlist: "waitlist",
|
|
1936
|
+
login: "login",
|
|
1937
|
+
unsubscribe: "unsubscribe",
|
|
1938
|
+
report: "report",
|
|
1939
|
+
settings: "settings",
|
|
1940
|
+
privacy: "privacy"
|
|
1941
|
+
};
|
|
1942
|
+
function pathOption(key) {
|
|
1943
|
+
return key === "authRoute" ? "backend.authRoute" : `backend.pages.${PAGE_OF[key]}`;
|
|
1944
|
+
}
|
|
1945
|
+
function backendPathsOf(source) {
|
|
1946
|
+
const route = typeof source?.authRoute === "string" && source.authRoute.trim() ? source.authRoute.trim() : DEFAULT_AUTH_ROUTE;
|
|
1947
|
+
return {
|
|
1948
|
+
authRoute: normalizePagePath(route),
|
|
1949
|
+
acceptInvitation: resolvePagePath(source?.pages, PAGE_OF.acceptInvitation),
|
|
1950
|
+
keepAccount: resolvePagePath(source?.pages, PAGE_OF.keepAccount),
|
|
1951
|
+
security: resolvePagePath(source?.pages, PAGE_OF.security),
|
|
1952
|
+
waitlist: resolvePagePath(source?.pages, PAGE_OF.waitlist),
|
|
1953
|
+
login: resolvePagePath(source?.pages, PAGE_OF.login),
|
|
1954
|
+
unsubscribe: resolvePagePath(source?.pages, PAGE_OF.unsubscribe),
|
|
1955
|
+
report: resolvePagePath(source?.pages, PAGE_OF.report),
|
|
1956
|
+
settings: resolvePagePath(source?.pages, PAGE_OF.settings),
|
|
1957
|
+
privacy: resolvePagePath(source?.pages, PAGE_OF.privacy)
|
|
1958
|
+
};
|
|
1959
|
+
}
|
|
1960
|
+
function quotedPath(path) {
|
|
1961
|
+
return `'${JSON.stringify(path).slice(1, -1).replace(/\\"/g, '"').replace(/'/g, "\\'")}'`;
|
|
1962
|
+
}
|
|
1963
|
+
function unquotedPath(content) {
|
|
1964
|
+
try {
|
|
1965
|
+
return JSON.parse(`"${content.replace(/\\([\s\S])|"/g, (match, escaped) => escaped === void 0 ? '\\"' : escaped === "'" ? "'" : match)}"`);
|
|
1966
|
+
} catch {
|
|
1967
|
+
return void 0;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
function renderPathsFile(paths) {
|
|
1971
|
+
const lines = BACKEND_PATH_KEYS.map((key) => ` ${key}: ${quotedPath(paths[key])},`);
|
|
1972
|
+
return [
|
|
1973
|
+
"/* Generated by nuxt-backend from nuxt.config (`backend.authRoute`, `backend.pages`) \u2014 do not edit. */",
|
|
1974
|
+
"// The Nuxt module rewrites this file whenever nuxt.config moves a path, and the",
|
|
1975
|
+
"// backend reads it: auth.config.ts, auth.ts, account.ts, email.ts, billing.ts, waitlist.ts and access.ts pass `paths` on. Commit it.",
|
|
1976
|
+
"export const paths = {",
|
|
1977
|
+
...lines,
|
|
1978
|
+
"} as const",
|
|
1979
|
+
""
|
|
1980
|
+
].join("\n");
|
|
1981
|
+
}
|
|
1982
|
+
function parsePathsFile(text) {
|
|
1983
|
+
const paths = {};
|
|
1984
|
+
for (const key of BACKEND_PATH_KEYS) {
|
|
1985
|
+
const content = new RegExp(`^\\s*${key}:\\s*'((?:[^'\\\\\\n]|\\\\.)*)'`, "m").exec(text)?.[1];
|
|
1986
|
+
const value = content === void 0 ? void 0 : unquotedPath(content);
|
|
1987
|
+
if (value !== void 0) paths[key] = value;
|
|
1988
|
+
}
|
|
1989
|
+
return paths;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
var __freeze = Object.freeze;
|
|
1993
|
+
var __defProp = Object.defineProperty;
|
|
1994
|
+
var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
|
|
1995
|
+
var _a;
|
|
1996
|
+
const AUTH_CONFIG_TEMPLATE = dedent`
|
|
1997
|
+
import { defineBackendAuthConfig } from 'nuxt-backend/auth.config'
|
|
1998
|
+
import { paths } from './paths.generated'
|
|
1999
|
+
|
|
2000
|
+
// Trust the session tokens the backend signs, under the auth route
|
|
2001
|
+
// nuxt.config names (\`backend.authRoute\`), which the Nuxt module writes
|
|
2002
|
+
// to paths.generated.ts.
|
|
2003
|
+
export default defineBackendAuthConfig({ paths })
|
|
2004
|
+
` + "\n";
|
|
2005
|
+
const HTTP_TEMPLATE = dedent`
|
|
2006
|
+
import { registerBackendRoutes } from 'nuxt-backend/http'
|
|
2007
|
+
import { httpRouter } from 'convex/server'
|
|
2008
|
+
import { ai } from './ai'
|
|
2009
|
+
import { authComponent, createAuth } from './auth'
|
|
2010
|
+
import { billing } from './billing'
|
|
2011
|
+
import { email } from './email'
|
|
2012
|
+
|
|
2013
|
+
// Mounts every inbound route the backend handles: the auth routes, the
|
|
2014
|
+
// billing events endpoint (/billing/events, BILLING_WEBHOOK_SECRET) that
|
|
2015
|
+
// keeps the reactive feature/credit cache fresh and fulfils gifts, the
|
|
2016
|
+
// email events endpoint (/email/events, EMAIL_WEBHOOK_SECRET) that makes
|
|
2017
|
+
// useEmailStatus reactive, and the metered AI stream endpoint (/ai/stream).
|
|
2018
|
+
// Every webhook delivery is signature-verified, deduped, logged, and
|
|
2019
|
+
// fail-closed (503 until its secret is set). React to events via
|
|
2020
|
+
// \`setupBilling({ events })\` / \`setupEmail({ events })\`.
|
|
2021
|
+
const http = httpRouter()
|
|
2022
|
+
registerBackendRoutes(http, {
|
|
2023
|
+
auth: { authComponent, createAuth },
|
|
2024
|
+
billing,
|
|
2025
|
+
email,
|
|
2026
|
+
ai,
|
|
2027
|
+
})
|
|
2028
|
+
|
|
2029
|
+
export default http
|
|
2030
|
+
` + "\n";
|
|
2031
|
+
const BILLING_CATALOG_TEMPLATE = dedent`
|
|
2032
|
+
import { defineBillingCatalog } from 'nuxt-backend/billing'
|
|
2033
|
+
|
|
2034
|
+
// Your billing catalog as code: meters, plans, packs, feature benefits, and
|
|
2035
|
+
// the checkout fields they collect. Push it with
|
|
2036
|
+
// \`npx nuxt-backend billing sync\` — objects are created in the billing
|
|
2037
|
+
// provider (find-or-create, tagged, never deleted) and the id map lands in
|
|
2038
|
+
// billing.generated.ts. A plan is sold at each interval it has a price for,
|
|
2039
|
+
// one product per price, so a subscriber switches between monthly and
|
|
2040
|
+
// yearly like between plans. Credit granting is provider-native: a plan's
|
|
2041
|
+
// \`credits\` become a meter-credit benefit granted every cycle (a year's
|
|
2042
|
+
// worth on the yearly price); a pack's are granted once at purchase. This
|
|
2043
|
+
// catalog is a starting point for the sandbox: a new plan, pack or price,
|
|
2044
|
+
// and a changed trial, reach /pricing on the next sync. A price or credit
|
|
2045
|
+
// grant already synced is reported as drift, never rewritten: change it in
|
|
2046
|
+
// the provider dashboard, or publish it under a new key. Retire a plan with
|
|
2047
|
+
// \`retired: true\` — its subscribers keep it, nobody new buys it — rather
|
|
2048
|
+
// than deleting it.
|
|
2049
|
+
export default defineBillingCatalog({
|
|
2050
|
+
meters: { credits: {} },
|
|
2051
|
+
plans: {
|
|
2052
|
+
starter: {
|
|
2053
|
+
name: 'Starter',
|
|
2054
|
+
prices: { month: 900, year: 9000 },
|
|
2055
|
+
credits: { meter: 'credits', units: 100 },
|
|
2056
|
+
},
|
|
2057
|
+
pro: {
|
|
2058
|
+
name: 'Pro',
|
|
2059
|
+
prices: { month: 2900, year: 29000 },
|
|
2060
|
+
credits: { meter: 'credits', units: 500 },
|
|
2061
|
+
features: ['priority_support'],
|
|
2062
|
+
trial: { interval: 'day', count: 14 },
|
|
2063
|
+
// Pay-as-you-go past the allowance, and a field checkout collects:
|
|
2064
|
+
// usage: [{ meter: 'credits', unitAmount: 5 }],
|
|
2065
|
+
// customFields: ['company'],
|
|
2066
|
+
},
|
|
2067
|
+
},
|
|
2068
|
+
packs: {
|
|
2069
|
+
credits100: { name: '100 credits', price: 1000, credits: { meter: 'credits', units: 100 } },
|
|
2070
|
+
credits500: { name: '500 credits', price: 4000, credits: { meter: 'credits', units: 500 } },
|
|
2071
|
+
},
|
|
2072
|
+
features: {
|
|
2073
|
+
priority_support: { description: 'Priority support' },
|
|
2074
|
+
},
|
|
2075
|
+
// customFields: {
|
|
2076
|
+
// company: { type: 'text', name: 'Company' },
|
|
2077
|
+
// },
|
|
2078
|
+
})
|
|
2079
|
+
` + "\n";
|
|
2080
|
+
const BILLING_GENERATED_TEMPLATE = `/* Generated by \`npx nuxt-backend billing sync\` \u2014 do not edit. */
|
|
2081
|
+
import type { BillingCatalogIds } from 'nuxt-backend/billing'
|
|
2082
|
+
|
|
2083
|
+
export const catalog: Partial<Record<'sandbox' | 'production', BillingCatalogIds>> = {}
|
|
2084
|
+
`;
|
|
2085
|
+
const FEATURE_FILE_TEMPLATES = {
|
|
2086
|
+
"billing.catalog.ts": BILLING_CATALOG_TEMPLATE,
|
|
2087
|
+
"billing.generated.ts": BILLING_GENERATED_TEMPLATE,
|
|
2088
|
+
"ai.ts": dedent`
|
|
2089
|
+
import { setupAi } from 'nuxt-backend/ai'
|
|
2090
|
+
import { v } from 'convex/values'
|
|
2091
|
+
import { components } from './_generated/api'
|
|
2092
|
+
import { billing } from './billing'
|
|
2093
|
+
import { rateLimiter } from './rateLimiter'
|
|
2094
|
+
|
|
2095
|
+
// The rails for selling metered AI features: every metered action or
|
|
2096
|
+
// stream is rate-limited (the 'ai' limit by default) and paid for in
|
|
2097
|
+
// prepaid credits with reserve → run → settle, so a failed run consumes
|
|
2098
|
+
// nothing. Usage lands in the billing provider as ingested events.
|
|
2099
|
+
// Declare your credit meter in billing.catalog.ts.
|
|
2100
|
+
// spendLimit is the most a UTC day of model calls may cost the whole app:
|
|
2101
|
+
// past it, the pause_ai switch turns on until the day ends. Raise it as
|
|
2102
|
+
// your app grows; a sandbox deployment, a public demo, refuses AI without one.
|
|
2103
|
+
export const ai = setupAi(components, { billing, rateLimiter, spendLimit: { usdPerDay: 10 } })
|
|
2104
|
+
|
|
2105
|
+
// What each person's AI calls cost: the admin console's Costs tab reads it,
|
|
2106
|
+
// and it answers administrators only.
|
|
2107
|
+
export const { getCosts } = ai.api
|
|
2108
|
+
|
|
2109
|
+
// A metered action — swap the echo for your model call. Costs 1 credit
|
|
2110
|
+
// from the 'credits' meter per call (see billing.catalog.ts).
|
|
2111
|
+
export const transform = ai.meteredAction({
|
|
2112
|
+
meter: 'credits',
|
|
2113
|
+
args: { prompt: v.string() },
|
|
2114
|
+
handler: async (ctx, { prompt }) => {
|
|
2115
|
+
// const completion = await yourModel(prompt)
|
|
2116
|
+
return { echo: prompt.toUpperCase(), chargedTo: ctx.usage.entityId }
|
|
2117
|
+
},
|
|
2118
|
+
})
|
|
2119
|
+
` + "\n",
|
|
2120
|
+
"functions.ts": dedent`
|
|
2121
|
+
import { createFunctions } from 'nuxt-backend/functions'
|
|
2122
|
+
import { components } from './_generated/api'
|
|
2123
|
+
import { action, mutation, query } from './_generated/server'
|
|
2124
|
+
import { billing } from './billing'
|
|
2125
|
+
import { rateLimiter } from './rateLimiter'
|
|
2126
|
+
|
|
2127
|
+
// Every access tier of your backend, from this one call. Each is a
|
|
2128
|
+
// drop-in for query/mutation/action that checks the caller first:
|
|
2129
|
+
// authed.query({ ... }) ctx.user (signed in, not banned)
|
|
2130
|
+
// workspace.mutation({ ... }) + ctx.workspace (fresh membership)
|
|
2131
|
+
// admin.action({ ... }) the app-wide admin role
|
|
2132
|
+
// withRole('editor').query({ ... }) an app-wide role of yours
|
|
2133
|
+
// withFeature('reports').query(...) workspace + a plan's feature
|
|
2134
|
+
// setUserRole is the internal mutation \`npx nuxt-backend doctor --fix\`
|
|
2135
|
+
// runs to make your first administrator.
|
|
2136
|
+
export const { authed, workspace, admin, withRole, withFeature, setUserRole } = createFunctions(
|
|
2137
|
+
{ query, mutation, action },
|
|
2138
|
+
// Every signed-in write spends the 'write' limit (rateLimiter.ts), per account.
|
|
2139
|
+
{ components, billing, rateLimiter, limits: { authed: 'write', workspace: 'write' } },
|
|
2140
|
+
)
|
|
2141
|
+
` + "\n",
|
|
2142
|
+
"billing.ts": dedent`
|
|
2143
|
+
import { setupBilling } from 'nuxt-backend/billing'
|
|
2144
|
+
import { components } from './_generated/api'
|
|
2145
|
+
import { audit } from './audit'
|
|
2146
|
+
import { catalog } from './billing.generated'
|
|
2147
|
+
import { email } from './email'
|
|
2148
|
+
import { paths } from './paths.generated'
|
|
2149
|
+
|
|
2150
|
+
// Subscriptions, discounts, prepaid credits & gift purchases. Billing
|
|
2151
|
+
// follows the tenant: with the default \`billTo: 'workspace'\` the active
|
|
2152
|
+
// workspace owns the subscription and credits (members share them); switch to
|
|
2153
|
+
// \`billTo: 'user'\` for per-user B2C billing. The billing entity resolves from
|
|
2154
|
+
// identity claims automatically, configuration comes from the BILLING_* env
|
|
2155
|
+
// vars (optional — billing stays empty until BILLING_ACCESS_TOKEN is set),
|
|
2156
|
+
// and the reactive feature/credit cache lives inside the backend component —
|
|
2157
|
+
// nothing to add to your schema. The catalog (plans, packs, credit meters)
|
|
2158
|
+
// is declared in billing.catalog.ts and pushed with
|
|
2159
|
+
// \`npx nuxt-backend billing sync\`, which fills billing.generated.ts.
|
|
2160
|
+
// A gift's recipient hears of it through \`email\` (email.ts), which holds
|
|
2161
|
+
// the template. Checkouts, plan changes, refunds, gifts and the provider's
|
|
2162
|
+
// webhooks are recorded on the activity trail through \`audit\` (audit.ts).
|
|
2163
|
+
// functions.ts builds its withFeature tier on this instance, and ai.ts
|
|
2164
|
+
// spends credits through it; this file imports nothing from functions.ts.
|
|
2165
|
+
// \`paths\` (paths.generated.ts) is the settings page its emails link to.
|
|
2166
|
+
export const billing = setupBilling(components, { catalog, email, audit, paths })
|
|
2167
|
+
|
|
2168
|
+
// Every function the billing composables call, by name: checkout, the
|
|
2169
|
+
// portal and the price list (the server sells only the catalog's plans and
|
|
2170
|
+
// packs, and sends buyers back only to SITE_URL), the reactive
|
|
2171
|
+
// subscription, feature and credit reads, the gifts, the subscription's
|
|
2172
|
+
// lifecycle (each resolves the caller's own billing entity), the order and
|
|
2173
|
+
// usage history read live from the provider, the admin-only refund and
|
|
2174
|
+
// revenue metrics (the admin console's Revenue view), the free plan every new
|
|
2175
|
+
// workspace starts on (internal; run by the workpool), and the gift sweep
|
|
2176
|
+
// (internal; woken by the component's cron, and scheduled for a gift dated
|
|
2177
|
+
// for later).
|
|
2178
|
+
export const {
|
|
2179
|
+
getPricing, getConfiguredProducts, getBillingAccess, getFeatures, getCredits,
|
|
2180
|
+
getCurrentSubscription, listAllSubscriptions, syncEntitlements, syncProducts, startFreePlan,
|
|
2181
|
+
generateCheckoutLink, generateCustomerPortalUrl,
|
|
2182
|
+
updateSubscription, cancelSubscription, acceptSaveOffer, uncancelSubscription,
|
|
2183
|
+
cancelPendingChange, pauseSubscription, resumeSubscription,
|
|
2184
|
+
getOrders, getInvoiceUrl, getUsageHistory, refundOrder, getWithdrawal, withdraw,
|
|
2185
|
+
giftCheckout, getReceivedGifts, claimGift, getSentGifts, resendGift, changeGiftRecipient,
|
|
2186
|
+
rescheduleGift, cancelGift, runGiftSweep, getRevenue, getBillingConsole,
|
|
2187
|
+
} = billing.api
|
|
2188
|
+
|
|
2189
|
+
// Credits are prepaid: a credit pack is a one-time product whose Credits
|
|
2190
|
+
// benefit tops up a meter balance (\`useCredits().topUp(packId)\`, or as a gift
|
|
2191
|
+
// by its catalog key: \`useGifts().send('credits500', { recipientEmail })\`).
|
|
2192
|
+
// Spend them from your own server code when a metered feature is used —
|
|
2193
|
+
// \`spendCredits\` blocks (throws) when the balance is too low, so credits are
|
|
2194
|
+
// never billed as overage. Uncomment and point \`meterId\` at your credit meter:
|
|
2195
|
+
//
|
|
2196
|
+
// export const consumeCredit = action({
|
|
2197
|
+
// args: { meterId: v.string() },
|
|
2198
|
+
// handler: async (ctx, { meterId }) => {
|
|
2199
|
+
// // The billing entity (active workspace or user) resolves from identity.
|
|
2200
|
+
// await billing.spendCredits(ctx, { name: 'credits', meterId })
|
|
2201
|
+
// },
|
|
2202
|
+
// })
|
|
2203
|
+
|
|
2204
|
+
// Quotas (experimental): how many of a thing a plan allows, declared as
|
|
2205
|
+
// \`quotas\` in billing.catalog.ts. Count one in the mutation that makes
|
|
2206
|
+
// the thing, where the check and the count are one transaction, and give
|
|
2207
|
+
// it back in the one that removes it (\`workspace\` from ./functions):
|
|
2208
|
+
//
|
|
2209
|
+
// export const createProject = workspace.mutation({
|
|
2210
|
+
// args: { name: v.string() },
|
|
2211
|
+
// handler: async (ctx, { name }) => {
|
|
2212
|
+
// await billing.requireQuota(ctx, 'projects')
|
|
2213
|
+
// return ctx.db.insert('projects', { name, workspaceId: ctx.workspace.id })
|
|
2214
|
+
// },
|
|
2215
|
+
// })
|
|
2216
|
+
` + "\n",
|
|
2217
|
+
"email.ts": dedent`
|
|
2218
|
+
import { setupEmail } from 'nuxt-backend/email'
|
|
2219
|
+
import { v } from 'convex/values'
|
|
2220
|
+
import { components } from './_generated/api'
|
|
2221
|
+
import { internalAction } from './_generated/server'
|
|
2222
|
+
import { brand } from './brand.generated'
|
|
2223
|
+
import { paths } from './paths.generated'
|
|
2224
|
+
|
|
2225
|
+
// Transactional + marketing email over the backend component's email module.
|
|
2226
|
+
// Delivery uses the EMAIL_* env vars (optional — sends no-op until
|
|
2227
|
+
// EMAIL_API_KEY is set). It also holds the templates of every email the
|
|
2228
|
+
// package sends (sign-in codes, welcome, invitations, gifts): auth.ts and
|
|
2229
|
+
// billing.ts send through it. Restyle one, keeping the rest of its body:
|
|
2230
|
+
// templates: { welcome: (data, { byDefault }) => ({ ...byDefault(data), subject: 'Hi!' }) }
|
|
2231
|
+
// React to delivery events with
|
|
2232
|
+
// \`setupEmail(components, { events: { 'email.bounced': async (ctx, event) => { ... } } })\`.
|
|
2233
|
+
// \`paths\` (paths.generated.ts) is where an email's unsubscribe link opens, and
|
|
2234
|
+
// \`brand\` (brand.generated.ts) the name, logo and postal address app.config
|
|
2235
|
+
// declares (\`backend.brand\`): the emails name the app as its pages do.
|
|
2236
|
+
export const email = setupEmail(components, { paths, brand })
|
|
2237
|
+
|
|
2238
|
+
// The read behind useEmailStatus, and the DevTools Email tab's previews
|
|
2239
|
+
// (internal: only the Convex CLI reaches them, on a dev deployment).
|
|
2240
|
+
export const { getEmailStatus, previewEmails, sendEmailPreview } = email.api
|
|
2241
|
+
|
|
2242
|
+
// The preference center: the profile's Email section and useEmailPreferences,
|
|
2243
|
+
// the unsubscribe page, and \`npx nuxt-backend email sync\` (internal).
|
|
2244
|
+
export const { getEmailPreferences, setEmailTopic, unsubscribeAllTopics, getEmailLink, unsubscribeByLink, confirmEmailTopic, recordTimeZone, syncEmail } = email.api
|
|
2245
|
+
|
|
2246
|
+
// Announcements: the notice <BackendNotices> shows every signed-in person,
|
|
2247
|
+
// and the admin console's Announcements tab that publishes it and sends its broadcast.
|
|
2248
|
+
export const { getAnnouncements, dismissAnnouncement, getAnnouncementsConsole, publishAnnouncement, endAnnouncement, previewAnnouncement, sendAnnouncement, cancelAnnouncement } = email.api
|
|
2249
|
+
|
|
2250
|
+
// Addresses the provider stopped delivering to (a hard bounce, a complaint),
|
|
2251
|
+
// mirrored from its webhook: sign-in shows them an undeliverable step instead
|
|
2252
|
+
// of sending a code, and the admin console's Suppressions tab lifts one.
|
|
2253
|
+
export const { getSuppressions, liftSuppression } = email.api
|
|
2254
|
+
|
|
2255
|
+
// Send a transactional email from your own server code: another action, a
|
|
2256
|
+
// scheduled function, or \`npx convex run email:send\`. Internal on purpose —
|
|
2257
|
+
// a public action that takes the recipient is an open relay on your verified
|
|
2258
|
+
// domain for anyone who can sign in.
|
|
2259
|
+
export const send = internalAction({
|
|
2260
|
+
args: { to: v.string(), subject: v.string(), text: v.string() },
|
|
2261
|
+
returns: v.union(v.string(), v.null()),
|
|
2262
|
+
handler: async (ctx, args) => email.send(ctx, args),
|
|
2263
|
+
})
|
|
2264
|
+
` + "\n",
|
|
2265
|
+
"rateLimiter.ts": dedent`
|
|
2266
|
+
import { setupRateLimiter } from 'nuxt-backend/rate-limit'
|
|
2267
|
+
import { components } from './_generated/api'
|
|
2268
|
+
|
|
2269
|
+
// Application rate limiting. Pre-seeded with the package defaults
|
|
2270
|
+
// (DEFAULT_LIMITS in nuxt-backend/rate-limit) — add your own named limits here.
|
|
2271
|
+
export const rateLimiter = setupRateLimiter(components)
|
|
2272
|
+
` + "\n",
|
|
2273
|
+
"workflows.ts": dedent`
|
|
2274
|
+
import { defineEmailSequence, setupWorkflows } from 'nuxt-backend/workflows'
|
|
2275
|
+
import { v } from 'convex/values'
|
|
2276
|
+
import { components } from './_generated/api'
|
|
2277
|
+
|
|
2278
|
+
export const workflow = setupWorkflows(components)
|
|
2279
|
+
|
|
2280
|
+
// Runs once on signup (started from auth.ts's onUserCreated): a durable
|
|
2281
|
+
// onboarding drip through the backend component's email module. Steps
|
|
2282
|
+
// sleep durably (they survive restarts and deploys), each email is
|
|
2283
|
+
// delivery-tracked, and a step returning null is skipped. Extend it, or
|
|
2284
|
+
// cancel a running sequence with \`workflow.cancel(ctx, id)\`.
|
|
2285
|
+
export const onSignup = defineEmailSequence(workflow, components, {
|
|
2286
|
+
args: { userId: v.string(), email: v.string(), name: v.string() },
|
|
2287
|
+
steps: [
|
|
2288
|
+
// The packaged welcome email goes out at signup; the sequence follows up.
|
|
2289
|
+
{
|
|
2290
|
+
after: 3 * 24 * 60 * 60 * 1000, // three days later
|
|
2291
|
+
email: ({ email, name }) => ({
|
|
2292
|
+
to: email,
|
|
2293
|
+
subject: 'How is it going?',
|
|
2294
|
+
text: \`Hi\${name ? \` \${name}\` : ''}, you signed up three days ago. Reply to this email if anything is in your way.\`,
|
|
2295
|
+
}),
|
|
2296
|
+
},
|
|
2297
|
+
],
|
|
2298
|
+
})
|
|
2299
|
+
` + "\n",
|
|
2300
|
+
"audit.ts": dedent`
|
|
2301
|
+
import { setupAudit } from 'nuxt-backend/audit'
|
|
2302
|
+
import { components } from './_generated/api'
|
|
2303
|
+
import { notifications } from './notifications'
|
|
2304
|
+
|
|
2305
|
+
// The activity trail. Every sign-in and sign-out, passkey and email
|
|
2306
|
+
// change, signed-out device, workspace invitation, membership and role
|
|
2307
|
+
// change and administrator impersonation is recorded
|
|
2308
|
+
// here and kept a year: your own on /security, the workspace's on
|
|
2309
|
+
// /settings for its owners and admins, and every event for admins.
|
|
2310
|
+
// Record your own under \`app.\`:
|
|
2311
|
+
// await audit.recordBackendEvent(ctx, { type: 'app.project_archived', targetId: project._id })
|
|
2312
|
+
// Hear of every event in an internal action of yours, taking
|
|
2313
|
+
// \`{ event: vBackendEvent }\`:
|
|
2314
|
+
// setupAudit(components, { notifications, onEvent: internal.audit.onEvent })
|
|
2315
|
+
// The notifications instance lets an event of your own that notify names
|
|
2316
|
+
// reach the inbox as it is recorded (notifications.ts).
|
|
2317
|
+
export const audit = setupAudit(components, { notifications })
|
|
2318
|
+
|
|
2319
|
+
// The reads behind useAuditLog and <AuditLog>, and the activation checklist
|
|
2320
|
+
// behind useActivation: declare one with defineActivation, then pass it as
|
|
2321
|
+
// setupAudit(components, { checklist }). Without one it reads nothing.
|
|
2322
|
+
// Name the event that says a person got value from the app, the growth
|
|
2323
|
+
// funnel's activation, with setupAudit(components, { activation: 'app.project_published' });
|
|
2324
|
+
// until you do, a person's first event of your own counts. getSource and
|
|
2325
|
+
// recordSource are behind <HowDidYouHear> and the first-touch campaign.
|
|
2326
|
+
export const { listActivity, listWorkspaceActivity, listAllActivity, getActivation, dismissActivation, getSource, recordSource } = audit.api
|
|
2327
|
+
` + "\n",
|
|
2328
|
+
"notifications.ts": dedent`
|
|
2329
|
+
import { setupNotifications } from 'nuxt-backend/notifications'
|
|
2330
|
+
import { components } from './_generated/api'
|
|
2331
|
+
import { email } from './email'
|
|
2332
|
+
import { paths } from './paths.generated'
|
|
2333
|
+
|
|
2334
|
+
// Notifications: the in-app inbox, email and web push. Every event the
|
|
2335
|
+
// backend records about a person (a role, a passkey, an invitation, a
|
|
2336
|
+
// payment, a gift, a bounce) reaches the inbox with nothing set up, live
|
|
2337
|
+
// and in their language, and the kinds that allow it by email (the
|
|
2338
|
+
// \`email\` instance words and sends them) and as a push to each device
|
|
2339
|
+
// they allowed (PUSH_PUBLIC_KEY and PUSH_PRIVATE_KEY, which env push
|
|
2340
|
+
// generates). An event of your own joins through notify: record it under
|
|
2341
|
+
// \`app.\` with audit.recordBackendEvent, say what it becomes here, and give
|
|
2342
|
+
// its words as labels (your i18n files, passed to setupEmail as messages):
|
|
2343
|
+
// notify: { 'app.project_archived': { channels: ['app', 'email', 'push'], link: event => \`/projects/\${event.targetId}\` } }
|
|
2344
|
+
export const notifications = setupNotifications(components, { email, paths })
|
|
2345
|
+
|
|
2346
|
+
// The reads and writes behind useNotifications and <NotificationInbox>.
|
|
2347
|
+
export const { listNotifications, getUnreadCount, markNotificationsRead } = notifications.api
|
|
2348
|
+
|
|
2349
|
+
// Each person's channels, kind by kind (the profile's Email section), the
|
|
2350
|
+
// devices behind usePushSubscription, and the delivery the backend
|
|
2351
|
+
// schedules for an email or a push (internal, called by name).
|
|
2352
|
+
export const { getNotificationChannels, setNotificationChannel, getPushConfig, subscribePush, unsubscribePush, deliverNotification } = notifications.api
|
|
2353
|
+
` + "\n",
|
|
2354
|
+
"account.ts": dedent`
|
|
2355
|
+
import { setupAccount } from 'nuxt-backend/account'
|
|
2356
|
+
import { components } from './_generated/api'
|
|
2357
|
+
import { audit } from './audit'
|
|
2358
|
+
import { billing } from './billing'
|
|
2359
|
+
import { email } from './email'
|
|
2360
|
+
import { paths } from './paths.generated'
|
|
2361
|
+
|
|
2362
|
+
// Export and deletion of an account. /security offers both: the export, one
|
|
2363
|
+
// JSON file behind a link that expires within the hour, with the account's
|
|
2364
|
+
// files as zip parts beside it, and a deletion the person confirms by typing
|
|
2365
|
+
// their address. It waits out a grace period (graceMs, 30 days unless you
|
|
2366
|
+
// say otherwise) the person can cancel, with a link in an email, then erases
|
|
2367
|
+
// them everywhere: the backend's tables, the files, the billing customer and
|
|
2368
|
+
// the email contact. Your own tables join through
|
|
2369
|
+
// \`sources\`, each with an internal query that exports an account's rows
|
|
2370
|
+
// and an internal mutation that erases a batch of them:
|
|
2371
|
+
// sources: { todos: { description: 'To-dos', export: internal.todos.exportFor, forget: internal.todos.forgetFor } }
|
|
2372
|
+
// \`paths\` carries the keep-account page's path from nuxt.config, for the
|
|
2373
|
+
// link in the deletion email.
|
|
2374
|
+
export const account = setupAccount(components, { audit, billing, email, paths })
|
|
2375
|
+
|
|
2376
|
+
// The export behind useAccount and <AccountData>, and the providers'
|
|
2377
|
+
// and your sources' part of an erasure, which it runs by this name.
|
|
2378
|
+
export const {
|
|
2379
|
+
exportAccountData,
|
|
2380
|
+
getAccountExport,
|
|
2381
|
+
eraseAccountData,
|
|
2382
|
+
getAccountDeletion,
|
|
2383
|
+
cancelAccountDeletion,
|
|
2384
|
+
getConsents,
|
|
2385
|
+
getConsentTerms,
|
|
2386
|
+
grantConsent,
|
|
2387
|
+
withdrawConsent,
|
|
2388
|
+
chooseStorage,
|
|
2389
|
+
getOnboarding,
|
|
2390
|
+
completeOnboarding,
|
|
2391
|
+
} = account.api
|
|
2392
|
+
` + "\n",
|
|
2393
|
+
"admin.ts": dedent`
|
|
2394
|
+
import { setupAdmin } from 'nuxt-backend/admin'
|
|
2395
|
+
import { components } from './_generated/api'
|
|
2396
|
+
|
|
2397
|
+
// The admin console (/admin): every account and every workspace, for the
|
|
2398
|
+
// app-wide admin role, read fresh on every call. Workspaces are read-only:
|
|
2399
|
+
// an admin acts inside one only by impersonating a member, for thirty
|
|
2400
|
+
// minutes at most, and an admin's own account is never impersonated.
|
|
2401
|
+
// Make the first admin with \`npx nuxt-backend doctor --fix\`, which asks
|
|
2402
|
+
// for your address.
|
|
2403
|
+
const admin = setupAdmin(components)
|
|
2404
|
+
|
|
2405
|
+
// The reads behind useAdmin, <AdminUsers> and <AdminWorkspaces>, and the
|
|
2406
|
+
// Analytics tab's growth funnel (getFunnel), counted inside the deployment.
|
|
2407
|
+
export const { listUsers, getUser, listWorkspaces, getWorkspace, getFunnel } = admin.api
|
|
2408
|
+
` + "\n",
|
|
2409
|
+
"webhooks.ts": dedent`
|
|
2410
|
+
import { setupWebhooks } from 'nuxt-backend/admin'
|
|
2411
|
+
import { components } from './_generated/api'
|
|
2412
|
+
|
|
2413
|
+
// The webhook delivery log of both providers (/billing/events and
|
|
2414
|
+
// /email/events), for the app-wide admin role, read fresh on every call:
|
|
2415
|
+
// the admin console's Webhooks tab and DevTools' webhook feed. Replay asks
|
|
2416
|
+
// the provider to send a delivery again, signed, to the same route; it
|
|
2417
|
+
// takes a recent sign-in and is recorded on the activity trail.
|
|
2418
|
+
export const webhooks = setupWebhooks(components)
|
|
2419
|
+
|
|
2420
|
+
export const { getWebhookDeliveries, replayWebhookDelivery } = webhooks.api
|
|
2421
|
+
` + "\n",
|
|
2422
|
+
"flags.ts": dedent`
|
|
2423
|
+
import { defineFlags, setupFlags } from 'nuxt-backend/flags'
|
|
2424
|
+
import { components } from './_generated/api'
|
|
2425
|
+
import { audit } from './audit'
|
|
2426
|
+
import { billing } from './billing'
|
|
2427
|
+
|
|
2428
|
+
// Feature flags, read inside your own queries and mutations, and the
|
|
2429
|
+
// kill switches the package honors: pause sign-ups, checkout or AI, and
|
|
2430
|
+
// put up a maintenance banner. Flip them from the admin console's Flags
|
|
2431
|
+
// tab; every change takes a recent sign-in and is recorded on the
|
|
2432
|
+
// activity trail. Declare yours here, then read one on the server:
|
|
2433
|
+
// await flags.requireFlag(ctx, 'newEditor')
|
|
2434
|
+
// and in a page: const { isEnabled } = useFlag('newEditor')
|
|
2435
|
+
// A flag with variants is an experiment: read it with useExperiment(key)
|
|
2436
|
+
// in a page and flags.variant(ctx, key) on the server, and compare the
|
|
2437
|
+
// variants in the admin console's Analytics tab.
|
|
2438
|
+
export const flags = setupFlags(components, {
|
|
2439
|
+
flags: defineFlags({
|
|
2440
|
+
// newEditor: { default: false, description: 'The rewritten editor.' },
|
|
2441
|
+
}),
|
|
2442
|
+
audit,
|
|
2443
|
+
// A flag's plan targets match the plans the caller's billing entity is on.
|
|
2444
|
+
billing,
|
|
2445
|
+
})
|
|
2446
|
+
|
|
2447
|
+
// The reads behind useFlag, useExperiment, useFlagAdmin, <BackendNotices>,
|
|
2448
|
+
// the Flags tab and the Experiments view.
|
|
2449
|
+
export const { getFlags, listFlags, setFlag, exposeExperiment, getExperiments } = flags.api
|
|
2450
|
+
` + "\n"
|
|
2451
|
+
};
|
|
2452
|
+
const DEFAULT_CONVEX_CONFIG = dedent`
|
|
2453
|
+
import { defineApp } from 'convex/server'
|
|
2454
|
+
import { backendEnv } from 'nuxt-backend/app'
|
|
2455
|
+
import backend from 'nuxt-backend/convex.config'
|
|
2456
|
+
import persistentTextStreaming from '@convex-dev/persistent-text-streaming/convex.config'
|
|
2457
|
+
import polar from '@convex-dev/polar/convex.config'
|
|
2458
|
+
import rateLimiter from '@convex-dev/rate-limiter/convex.config'
|
|
2459
|
+
import shardedCounter from '@convex-dev/sharded-counter/convex.config'
|
|
2460
|
+
import workflow from '@convex-dev/workflow/convex.config'
|
|
2461
|
+
import workpool from '@convex-dev/workpool/convex.config'
|
|
2462
|
+
|
|
2463
|
+
// Explicit on purpose. Convex discovers components by intercepting every
|
|
2464
|
+
// \`convex.config\` import while bundling this file, and current backends
|
|
2465
|
+
// reject the push (start_push 500) when such an import is reached through an
|
|
2466
|
+
// intermediate module or the components are mounted in a loop — so every
|
|
2467
|
+
// component is imported and mounted right here, one app.use() per component.
|
|
2468
|
+
// Mount your own components after them: the action cache, an aggregate,
|
|
2469
|
+
// migrations or crons, when your code imports one.
|
|
2470
|
+
//
|
|
2471
|
+
// The env contract is the package's: AUTH_SECRET + SITE_URL are required,
|
|
2472
|
+
// the rest optional with designed fallbacks (\`npx nuxt-backend env push\`
|
|
2473
|
+
// syncs them from .env.local). Extend it with your own vars:
|
|
2474
|
+
// defineApp({ env: { ...backendEnv, MY_VAR: v.optional(v.string()) } })
|
|
2475
|
+
const app = defineApp({ env: backendEnv })
|
|
2476
|
+
|
|
2477
|
+
// Components are isolated from the app env — forward the email config by
|
|
2478
|
+
// reference so the deployment's values reach the backend component (auth,
|
|
2479
|
+
// email, billing cache, gifts — the email provider is nested inside).
|
|
2480
|
+
app.use(backend, {
|
|
2481
|
+
env: {
|
|
2482
|
+
BACKEND_ENVIRONMENT: app.env.BACKEND_ENVIRONMENT,
|
|
2483
|
+
EMAIL_API_KEY: app.env.EMAIL_API_KEY,
|
|
2484
|
+
EMAIL_FROM: app.env.EMAIL_FROM,
|
|
2485
|
+
EMAIL_WEBHOOK_SECRET: app.env.EMAIL_WEBHOOK_SECRET,
|
|
2486
|
+
MONITORING_DSN: app.env.MONITORING_DSN,
|
|
2487
|
+
},
|
|
2488
|
+
})
|
|
2489
|
+
app.use(persistentTextStreaming)
|
|
2490
|
+
app.use(polar)
|
|
2491
|
+
app.use(rateLimiter)
|
|
2492
|
+
app.use(shardedCounter)
|
|
2493
|
+
app.use(workflow)
|
|
2494
|
+
app.use(workpool)
|
|
2495
|
+
|
|
2496
|
+
export default app
|
|
2497
|
+
` + "\n";
|
|
2498
|
+
const BACKEND_FILE_TEMPLATES = {
|
|
2499
|
+
"convex.config.ts": DEFAULT_CONVEX_CONFIG,
|
|
2500
|
+
"auth.config.ts": AUTH_CONFIG_TEMPLATE,
|
|
2501
|
+
"auth.ts": dedent`
|
|
2502
|
+
import { setupAuth } from 'nuxt-backend/auth'
|
|
2503
|
+
import { components, internal } from './_generated/api'
|
|
2504
|
+
import { query } from './_generated/server'
|
|
2505
|
+
import { account } from './account'
|
|
2506
|
+
import { audit } from './audit'
|
|
2507
|
+
import { email } from './email'
|
|
2508
|
+
import { paths } from './paths.generated'
|
|
2509
|
+
import { rateLimiter } from './rateLimiter'
|
|
2510
|
+
import { workflow } from './workflows'
|
|
2511
|
+
|
|
2512
|
+
export const {
|
|
2513
|
+
authComponent,
|
|
2514
|
+
createAuth,
|
|
2515
|
+
getAuthUser,
|
|
2516
|
+
authConfig,
|
|
2517
|
+
updateProfile,
|
|
2518
|
+
listSessions,
|
|
2519
|
+
revokeSession,
|
|
2520
|
+
listSignInAlerts,
|
|
2521
|
+
} = setupAuth(components, query, {
|
|
2522
|
+
// App-wide roles (admin plugin) and workspaces
|
|
2523
|
+
// come built in, with a personal workspace per user and emailed
|
|
2524
|
+
// workspace invitations with an /accept-invitation page. Customize them
|
|
2525
|
+
// with \`admin: { … }\` and \`workspaces: { … }\`: how long invitations
|
|
2526
|
+
// last, and onCreate / onMemberAdded / onMemberRemoved.
|
|
2527
|
+
//
|
|
2528
|
+
// The auth route and the pages the auth emails link to, as nuxt.config
|
|
2529
|
+
// declares them (\`backend.authRoute\`, \`backend.pages\`): the Nuxt module
|
|
2530
|
+
// writes them to paths.generated.ts.
|
|
2531
|
+
paths,
|
|
2532
|
+
// Every auth email (sign-in and email-change codes, welcome,
|
|
2533
|
+
// invitations) goes out through email.ts, which holds the templates.
|
|
2534
|
+
email,
|
|
2535
|
+
// Throttle code sends and other auth-sensitive flows.
|
|
2536
|
+
rateLimiter,
|
|
2537
|
+
// Record sign-ins, passkeys, workspace and administrator changes on the
|
|
2538
|
+
// activity trail through audit.ts, so they reach its onEvent too.
|
|
2539
|
+
audit,
|
|
2540
|
+
// Erase a deleted account everywhere through account.ts: the backend's
|
|
2541
|
+
// tables, the billing customer, the email contact and your sources.
|
|
2542
|
+
account,
|
|
2543
|
+
// Launching in phases (early access, invite only)? Add backend/access.ts
|
|
2544
|
+
// with setupAccess, and pass it here as \`access\`.
|
|
2545
|
+
// Start the onboarding sequence (workflows.ts) when a user signs up. The
|
|
2546
|
+
// packaged welcome email has already gone out.
|
|
2547
|
+
onUserCreated: async (ctx, user) => {
|
|
2548
|
+
await workflow.start(ctx, internal.workflows.onSignup, {
|
|
2549
|
+
userId: user.id,
|
|
2550
|
+
email: user.email,
|
|
2551
|
+
name: user.name,
|
|
2552
|
+
})
|
|
2553
|
+
},
|
|
2554
|
+
})
|
|
2555
|
+
` + "\n",
|
|
2556
|
+
"http.ts": HTTP_TEMPLATE,
|
|
2557
|
+
...FEATURE_FILE_TEMPLATES,
|
|
2558
|
+
// The paths nuxt.config declares, at their defaults until the module writes the app's own.
|
|
2559
|
+
[PATHS_FILE]: renderPathsFile(DEFAULT_BACKEND_PATHS),
|
|
2560
|
+
// The brand app.config declares, empty until the module writes the app's own.
|
|
2561
|
+
[BRAND_FILE]: renderBrandFile({})
|
|
2562
|
+
};
|
|
2563
|
+
const DEFAULT_LAYOUT_TEMPLATE = dedent(_a || (_a = __template(['\n <script setup lang="ts">\n // The frame of the app: the header with your brand, the workspace switcher,\n // the notification bell and the account menu, then the app-wide notices and\n // your page. Put your links in the `nav` slot, and your buttons before the\n // account menu in `actions`. `<AppShell :switcher="false">` hides the\n // switcher for an app whose people never share a workspace.\n const { brand } = useBackendConfig()\n <\/script>\n\n <template>\n <AppShell>\n <template #brand>\n <NuxtLink to="/">\n {{ brand.name || \'Your app\' }}\n </NuxtLink>\n </template>\n <slot />\n </AppShell>\n </template>\n '], ['\n <script setup lang="ts">\n // The frame of the app: the header with your brand, the workspace switcher,\n // the notification bell and the account menu, then the app-wide notices and\n // your page. Put your links in the \\`nav\\` slot, and your buttons before the\n // account menu in \\`actions\\`. \\`<AppShell :switcher="false">\\` hides the\n // switcher for an app whose people never share a workspace.\n const { brand } = useBackendConfig()\n <\/script>\n\n <template>\n <AppShell>\n <template #brand>\n <NuxtLink to="/">\n {{ brand.name || \'Your app\' }}\n </NuxtLink>\n </template>\n <slot />\n </AppShell>\n </template>\n ']))) + "\n";
|
|
2564
|
+
|
|
2565
|
+
const DEFAULT_FUNCTIONS_DIR = "backend";
|
|
2566
|
+
const STANDARD_FUNCTIONS_DIR = "convex";
|
|
2567
|
+
function scaffoldBackendFiles(rootDir, options = {}) {
|
|
2568
|
+
const log = options.log ?? console.log;
|
|
2569
|
+
const functionsDir = resolveFunctionsDir(rootDir);
|
|
2570
|
+
const functionsDirPath = join(rootDir, functionsDir);
|
|
2571
|
+
const convexJsonPath = join(rootDir, "convex.json");
|
|
2572
|
+
const written = [];
|
|
2573
|
+
if (!existsSync(functionsDirPath)) {
|
|
2574
|
+
mkdirSync(functionsDirPath, { recursive: true });
|
|
2575
|
+
log(`[nuxt-backend] Created ${functionsDir}/ directory`);
|
|
2576
|
+
}
|
|
2577
|
+
const templates = Object.entries(BACKEND_FILE_TEMPLATES).filter(([file]) => !options.files || options.files.includes(file));
|
|
2578
|
+
for (const [file, contents] of templates) {
|
|
2579
|
+
if (writeUnlessPresent(join(functionsDirPath, file), contents, options.force)) {
|
|
2580
|
+
written.push(`${functionsDir}/${file}`);
|
|
2581
|
+
log(`[nuxt-backend] Created ${functionsDir}/${file}`);
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
if (!options.files && functionsDir !== STANDARD_FUNCTIONS_DIR) {
|
|
2585
|
+
const convexJson = `${JSON.stringify({ functions: `${functionsDir}/` }, null, 2)}
|
|
2586
|
+
`;
|
|
2587
|
+
if (writeUnlessPresent(convexJsonPath, convexJson)) {
|
|
2588
|
+
written.push("convex.json");
|
|
2589
|
+
log("[nuxt-backend] Created convex.json");
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
return written;
|
|
2593
|
+
}
|
|
2594
|
+
function writeUnlessPresent(path, contents, force = false) {
|
|
2595
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
2596
|
+
try {
|
|
2597
|
+
writeFileSync(path, contents, { flag: force ? "w" : "wx" });
|
|
2598
|
+
return true;
|
|
2599
|
+
} catch (error) {
|
|
2600
|
+
if (error.code === "EEXIST") return false;
|
|
2601
|
+
throw error;
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
function resolveFunctionsDir(rootDir) {
|
|
2605
|
+
const convexJsonPath = join(rootDir, "convex.json");
|
|
2606
|
+
const configuredFunctionsDir = readFunctionsDirFromConvexJson(convexJsonPath);
|
|
2607
|
+
if (configuredFunctionsDir) {
|
|
2608
|
+
return configuredFunctionsDir;
|
|
2609
|
+
}
|
|
2610
|
+
if (existsSync(join(rootDir, DEFAULT_FUNCTIONS_DIR))) {
|
|
2611
|
+
return DEFAULT_FUNCTIONS_DIR;
|
|
2612
|
+
}
|
|
2613
|
+
if (existsSync(join(rootDir, STANDARD_FUNCTIONS_DIR))) {
|
|
2614
|
+
return STANDARD_FUNCTIONS_DIR;
|
|
2615
|
+
}
|
|
2616
|
+
return DEFAULT_FUNCTIONS_DIR;
|
|
2617
|
+
}
|
|
2618
|
+
function readFunctionsDirFromConvexJson(convexJsonPath) {
|
|
2619
|
+
if (!existsSync(convexJsonPath)) {
|
|
2620
|
+
return;
|
|
2621
|
+
}
|
|
2622
|
+
try {
|
|
2623
|
+
const convexJson = JSON.parse(readFileSync(convexJsonPath, "utf-8"));
|
|
2624
|
+
if (typeof convexJson.functions !== "string") {
|
|
2625
|
+
return;
|
|
2626
|
+
}
|
|
2627
|
+
const normalizedFunctionsDir = normalizeFunctionsDir(convexJson.functions);
|
|
2628
|
+
return normalizedFunctionsDir || void 0;
|
|
2629
|
+
} catch (error) {
|
|
2630
|
+
console.warn(`[nuxt-backend] Failed to parse convex.json: ${error instanceof Error ? error.message : String(error)}`);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
function normalizeFunctionsDir(functionsDir) {
|
|
2634
|
+
const normalized = functionsDir.replace(/^\.?\//, "").replace(/\/+$/, "");
|
|
2635
|
+
return normalized || void 0;
|
|
2636
|
+
}
|
|
2637
|
+
function resolveAppComponent(rootDir) {
|
|
2638
|
+
return ["app/app.vue", "app.vue"].map((name) => ({ name, path: join(rootDir, name) })).find(({ path }) => existsSync(path));
|
|
2639
|
+
}
|
|
2640
|
+
function appComponentIsStarter(rootDir) {
|
|
2641
|
+
const component = resolveAppComponent(rootDir);
|
|
2642
|
+
if (!component) return false;
|
|
2643
|
+
const source = readFileSync(component.path, "utf-8");
|
|
2644
|
+
return source.includes("<NuxtWelcome") && !source.includes("<NuxtPage");
|
|
2645
|
+
}
|
|
2646
|
+
function mountPagesInAppComponent(rootDir) {
|
|
2647
|
+
if (!appComponentIsStarter(rootDir)) return void 0;
|
|
2648
|
+
const { name, path } = resolveAppComponent(rootDir);
|
|
2649
|
+
const source = readFileSync(path, "utf-8");
|
|
2650
|
+
writeFileSync(path, source.replace(/^([ \t]*)<NuxtWelcome\s*\/>/m, (_match, indent) => `${indent}<NuxtLayout>
|
|
2651
|
+
${indent} <NuxtPage />
|
|
2652
|
+
${indent}</NuxtLayout>`));
|
|
2653
|
+
return name;
|
|
2654
|
+
}
|
|
2655
|
+
function ensureDefaultLayout(rootDir) {
|
|
2656
|
+
const component = resolveAppComponent(rootDir);
|
|
2657
|
+
if (!component) return void 0;
|
|
2658
|
+
const source = readFileSync(component.path, "utf-8");
|
|
2659
|
+
if (!source.includes("<NuxtLayout") || !source.includes("<NuxtPage")) return void 0;
|
|
2660
|
+
const folder = join(dirname(component.path), "layouts");
|
|
2661
|
+
if (existsSync(folder) && readdirSync(folder).some((file) => file.endsWith(".vue"))) return void 0;
|
|
2662
|
+
mkdirSync(folder, { recursive: true });
|
|
2663
|
+
writeFileSync(join(folder, "default.vue"), DEFAULT_LAYOUT_TEMPLATE);
|
|
2664
|
+
return join(dirname(component.name), "layouts/default.vue").replace(/\\/g, "/").replace(/^\.\//, "");
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
const STRINGS_AND_COMMENTS = /(['"`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;
|
|
2668
|
+
function sourceFiles(dir) {
|
|
2669
|
+
return readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((file) => /\.[cm]?[jt]s$/.test(file) && !file.endsWith(".d.ts") && !file.split(/[\\/]/).includes("_generated")).map((file) => join(dir, file));
|
|
2670
|
+
}
|
|
2671
|
+
function modelIdsIn(code) {
|
|
2672
|
+
const uncommented = code.replace(STRINGS_AND_COMMENTS, (token) => token.startsWith("/") ? "" : token);
|
|
2673
|
+
return [...uncommented.matchAll(NAMED_MODEL)].map(([, , id]) => id);
|
|
2674
|
+
}
|
|
2675
|
+
function backendSources(rootDir) {
|
|
2676
|
+
const dir = join(rootDir, resolveFunctionsDir(rootDir));
|
|
2677
|
+
if (!existsSync(dir)) return [];
|
|
2678
|
+
return sourceFiles(dir).map((file) => readFileSync(file, "utf8"));
|
|
2679
|
+
}
|
|
2680
|
+
function namedModels(rootDir) {
|
|
2681
|
+
const ids = new Set(backendSources(rootDir).flatMap(modelIdsIn));
|
|
2682
|
+
return [...ids].sort();
|
|
2683
|
+
}
|
|
2684
|
+
const INFERENCE_REGION = /\binferenceRegion\s*:\s*(['"`])([a-z]+)\1/;
|
|
2685
|
+
function pinnedRegion(rootDir) {
|
|
2686
|
+
for (const code of backendSources(rootDir)) {
|
|
2687
|
+
const match = INFERENCE_REGION.exec(code.replace(STRINGS_AND_COMMENTS, (token) => token.startsWith("/") ? "" : token));
|
|
2688
|
+
if (match) return match[2];
|
|
2689
|
+
}
|
|
2690
|
+
return void 0;
|
|
2691
|
+
}
|
|
2692
|
+
const PROVENANCE_ON = /\bprovenance\s*:(?!\s*(?:false|undefined)\b)|\.storeImage\s*\(/;
|
|
2693
|
+
function usesProvenance(rootDir) {
|
|
2694
|
+
return backendSources(rootDir).some((code) => PROVENANCE_ON.test(code.replace(STRINGS_AND_COMMENTS, (token) => token.startsWith("/") ? "" : token)));
|
|
2695
|
+
}
|
|
2696
|
+
const SETUP_AI_CALL = /\bsetupAi\s*\(/;
|
|
2697
|
+
const SPEND_LIMIT = /\bspendLimit\s*:/;
|
|
2698
|
+
const CHAT_CALL = /\.chat\s*\(\s*\{/;
|
|
2699
|
+
const KNOWLEDGE_CALL = /\.knowledge\s*\(\s*\{/;
|
|
2700
|
+
const GUEST_JOBS = /\bguest\s*:\s*(?:true\b|\{)/;
|
|
2701
|
+
function aiFeatures(rootDir) {
|
|
2702
|
+
const sources = backendSources(rootDir).map((code) => code.replace(STRINGS_AND_COMMENTS, (token) => token.startsWith("/") ? "" : token));
|
|
2703
|
+
return {
|
|
2704
|
+
chat: sources.some((code) => CHAT_CALL.test(code)),
|
|
2705
|
+
knowledge: sources.some((code) => KNOWLEDGE_CALL.test(code)),
|
|
2706
|
+
guestJobs: sources.some((code) => GUEST_JOBS.test(code)),
|
|
2707
|
+
setupAi: sources.some((code) => SETUP_AI_CALL.test(code)),
|
|
2708
|
+
spendLimit: sources.some((code) => SPEND_LIMIT.test(code))
|
|
2709
|
+
};
|
|
2710
|
+
}
|
|
2711
|
+
function mountsComponent(rootDir, pkg) {
|
|
2712
|
+
const path = join(rootDir, resolveFunctionsDir(rootDir), "convex.config.ts");
|
|
2713
|
+
if (!existsSync(path)) return false;
|
|
2714
|
+
const code = readFileSync(path, "utf8").replace(/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g, "");
|
|
2715
|
+
const imported = COMPONENT_IMPORT[pkg].exec(code)?.[1];
|
|
2716
|
+
return imported !== void 0 && [...code.matchAll(USE_CALL)].some(([, name]) => name === imported);
|
|
2717
|
+
}
|
|
2718
|
+
const COMPONENT_IMPORT = {
|
|
2719
|
+
"@convex-dev/agent": /import\s+(\w+)\s+from\s+['"]@convex-dev\/agent\/convex\.config(?:\.js)?['"]/,
|
|
2720
|
+
"@convex-dev/rag": /import\s+(\w+)\s+from\s+['"]@convex-dev\/rag\/convex\.config(?:\.js)?['"]/
|
|
2721
|
+
};
|
|
2722
|
+
const USE_CALL = /\.use\(\s*(\w+)\b/g;
|
|
2723
|
+
|
|
2724
|
+
function tlv(tag, content) {
|
|
2725
|
+
const length = content.length;
|
|
2726
|
+
const head = length < 128 ? [length] : (() => {
|
|
2727
|
+
const bytes = [];
|
|
2728
|
+
for (let rest = length; rest > 0; rest = Math.floor(rest / 256)) bytes.unshift(rest & 255);
|
|
2729
|
+
return [128 | bytes.length, ...bytes];
|
|
2730
|
+
})();
|
|
2731
|
+
return Buffer.concat([Buffer.from([tag, ...head]), content]);
|
|
2732
|
+
}
|
|
2733
|
+
const sequence = (...items) => tlv(48, Buffer.concat(items));
|
|
2734
|
+
const set = (...items) => tlv(49, Buffer.concat(items));
|
|
2735
|
+
const octets = (bytes) => tlv(4, bytes);
|
|
2736
|
+
const utf8 = (text) => tlv(12, Buffer.from(text, "utf8"));
|
|
2737
|
+
const bool = (value) => tlv(1, Buffer.from([255 ]));
|
|
2738
|
+
const explicit = (tag, content) => tlv(160 | tag, content);
|
|
2739
|
+
function integer(bytes) {
|
|
2740
|
+
let start = 0;
|
|
2741
|
+
while (start < bytes.length - 1 && bytes[start] === 0) start++;
|
|
2742
|
+
const trimmed = Buffer.from(bytes.subarray(start));
|
|
2743
|
+
return tlv(2, trimmed[0] & 128 ? Buffer.concat([Buffer.from([0]), trimmed]) : trimmed);
|
|
2744
|
+
}
|
|
2745
|
+
function bitString(bytes, unused = 0) {
|
|
2746
|
+
return tlv(3, Buffer.concat([Buffer.from([unused]), bytes]));
|
|
2747
|
+
}
|
|
2748
|
+
function oid(dotted) {
|
|
2749
|
+
const [first, second, ...rest] = dotted.split(".").map(Number);
|
|
2750
|
+
const out = [first * 40 + second];
|
|
2751
|
+
for (const part of rest) {
|
|
2752
|
+
const groups = [];
|
|
2753
|
+
for (let value = part; ; value = Math.floor(value / 128)) {
|
|
2754
|
+
groups.unshift(value & 127);
|
|
2755
|
+
if (value < 128) break;
|
|
2756
|
+
}
|
|
2757
|
+
out.push(...groups.map((group, i) => i < groups.length - 1 ? group | 128 : group));
|
|
2758
|
+
}
|
|
2759
|
+
return tlv(6, Buffer.from(out));
|
|
2760
|
+
}
|
|
2761
|
+
function time(date) {
|
|
2762
|
+
const iso = date.toISOString().replace(/[-:T]/g, "").slice(0, 14);
|
|
2763
|
+
return date.getUTCFullYear() < 2050 ? tlv(23, Buffer.from(`${iso.slice(2)}Z`)) : tlv(24, Buffer.from(`${iso}Z`));
|
|
2764
|
+
}
|
|
2765
|
+
const ECDSA_WITH_SHA256 = sequence(oid("1.2.840.10045.4.3.2"));
|
|
2766
|
+
const EMAIL_PROTECTION = "1.3.6.1.5.5.7.3.4";
|
|
2767
|
+
const DOCUMENT_SIGNING = "1.3.6.1.5.5.7.3.36";
|
|
2768
|
+
function name(commonName, organization) {
|
|
2769
|
+
return sequence(
|
|
2770
|
+
set(sequence(oid("2.5.4.10"), utf8(organization))),
|
|
2771
|
+
set(sequence(oid("2.5.4.3"), utf8(commonName)))
|
|
2772
|
+
);
|
|
2773
|
+
}
|
|
2774
|
+
function extension(id, critical, value) {
|
|
2775
|
+
return critical ? sequence(oid(id), bool(), octets(value)) : sequence(oid(id), octets(value));
|
|
2776
|
+
}
|
|
2777
|
+
function keyIdentifier(publicKey) {
|
|
2778
|
+
const spki = publicKey.export({ type: "spki", format: "der" });
|
|
2779
|
+
return createHash("sha1").update(spki.subarray(spki.length - 65)).digest();
|
|
2780
|
+
}
|
|
2781
|
+
function certificate({ subject, issuer, publicKey, issuerKey, issuerPublicKey, notAfter, extensions }) {
|
|
2782
|
+
const serial = randomBytes(16);
|
|
2783
|
+
serial[0] = serial[0] & 127;
|
|
2784
|
+
const tbs = sequence(
|
|
2785
|
+
explicit(0, integer(Buffer.from([2]))),
|
|
2786
|
+
integer(serial),
|
|
2787
|
+
ECDSA_WITH_SHA256,
|
|
2788
|
+
issuer,
|
|
2789
|
+
sequence(time(new Date(Date.now() - 60 * 60 * 1e3)), time(notAfter)),
|
|
2790
|
+
subject,
|
|
2791
|
+
publicKey.export({ type: "spki", format: "der" }),
|
|
2792
|
+
explicit(3, sequence(
|
|
2793
|
+
...extensions,
|
|
2794
|
+
extension("2.5.29.14", false, octets(keyIdentifier(publicKey))),
|
|
2795
|
+
extension("2.5.29.35", false, sequence(tlv(128, keyIdentifier(issuerPublicKey))))
|
|
2796
|
+
))
|
|
2797
|
+
);
|
|
2798
|
+
return sequence(tbs, ECDSA_WITH_SHA256, bitString(sign("sha256", tbs, issuerKey)));
|
|
2799
|
+
}
|
|
2800
|
+
function pem(label, der) {
|
|
2801
|
+
const base64 = Buffer.from(der).toString("base64").match(/.{1,64}/g).join("\n");
|
|
2802
|
+
return `-----BEGIN ${label}-----
|
|
2803
|
+
${base64}
|
|
2804
|
+
-----END ${label}-----
|
|
2805
|
+
`;
|
|
2806
|
+
}
|
|
2807
|
+
const years = (count) => new Date(Date.now() + count * 365.25 * 24 * 60 * 60 * 1e3);
|
|
2808
|
+
function generateProvenanceCredentials(organization) {
|
|
2809
|
+
const root = generateKeyPairSync("ec", { namedCurve: "P-256" });
|
|
2810
|
+
const signer = generateKeyPairSync("ec", { namedCurve: "P-256" });
|
|
2811
|
+
const rootName = name(`${organization} content credentials root`, organization);
|
|
2812
|
+
const rootCertificate = certificate({
|
|
2813
|
+
subject: rootName,
|
|
2814
|
+
issuer: rootName,
|
|
2815
|
+
publicKey: root.publicKey,
|
|
2816
|
+
issuerKey: root.privateKey,
|
|
2817
|
+
issuerPublicKey: root.publicKey,
|
|
2818
|
+
notAfter: years(20),
|
|
2819
|
+
extensions: [
|
|
2820
|
+
extension("2.5.29.19", true, sequence(bool(), integer(Buffer.from([0])))),
|
|
2821
|
+
// keyCertSign and cRLSign: bits 5 and 6.
|
|
2822
|
+
extension("2.5.29.15", true, bitString(Buffer.from([6]), 1))
|
|
2823
|
+
]
|
|
2824
|
+
});
|
|
2825
|
+
const signerCertificate = certificate({
|
|
2826
|
+
subject: name(`${organization} content credentials`, organization),
|
|
2827
|
+
issuer: rootName,
|
|
2828
|
+
publicKey: signer.publicKey,
|
|
2829
|
+
issuerKey: root.privateKey,
|
|
2830
|
+
issuerPublicKey: root.publicKey,
|
|
2831
|
+
notAfter: years(10),
|
|
2832
|
+
extensions: [
|
|
2833
|
+
extension("2.5.29.19", true, sequence()),
|
|
2834
|
+
// digitalSignature: bit 0.
|
|
2835
|
+
extension("2.5.29.15", true, bitString(Buffer.from([128]), 7)),
|
|
2836
|
+
extension("2.5.29.37", false, sequence(oid(EMAIL_PROTECTION), oid(DOCUMENT_SIGNING)))
|
|
2837
|
+
]
|
|
2838
|
+
});
|
|
2839
|
+
return {
|
|
2840
|
+
privateKey: signer.privateKey.export({ type: "pkcs8", format: "pem" }).toString(),
|
|
2841
|
+
certificate: pem("CERTIFICATE", signerCertificate) + pem("CERTIFICATE", rootCertificate)
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
function envLine(name2, value) {
|
|
2845
|
+
return `${name2}="${value.trim().replace(/\n/g, "\\n")}"`;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
function base64url(bytes) {
|
|
2849
|
+
let binary = "";
|
|
2850
|
+
for (const byte of bytes) binary += String.fromCharCode(byte);
|
|
2851
|
+
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
const PUSH_WORKER_URL = "/_backend/push/worker.js";
|
|
2855
|
+
new TextEncoder();
|
|
2856
|
+
const base64urlEncode = base64url;
|
|
2857
|
+
async function generatePushKeys() {
|
|
2858
|
+
const pair = await crypto.subtle.generateKey({ name: "ECDSA", namedCurve: "P-256" }, true, ["sign", "verify"]);
|
|
2859
|
+
const publicKey = new Uint8Array(await crypto.subtle.exportKey("raw", pair.publicKey));
|
|
2860
|
+
const jwk = await crypto.subtle.exportKey("jwk", pair.privateKey);
|
|
2861
|
+
return { publicKey: base64urlEncode(publicKey), privateKey: jwk.d };
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
function isLoopbackHost(hostname) {
|
|
2865
|
+
const host = hostname.toLowerCase();
|
|
2866
|
+
return host === "localhost" || host.endsWith(".localhost") || host === "[::1]" || host === "::1" || /^127(?:\.\d{1,3}){3}$/.test(host);
|
|
2867
|
+
}
|
|
2868
|
+
function isLoopbackUrl(url) {
|
|
2869
|
+
if (!url) return false;
|
|
2870
|
+
try {
|
|
2871
|
+
return isLoopbackHost(new URL(url).hostname);
|
|
2872
|
+
} catch {
|
|
2873
|
+
return false;
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
const BACKEND_ENV_NAMES = CONTRACT_ENV_NAMES;
|
|
2878
|
+
function gapAction(name, { dev, preview }) {
|
|
2879
|
+
const required = REQUIRED_DEPLOYMENT_ENV.includes(name);
|
|
2880
|
+
if (required && (dev || preview) && name === "AUTH_SECRET") {
|
|
2881
|
+
return { name, action: "provision", value: generateAuthSecret(), detail: `generated (${dev ? "dev" : "preview"} deployment)` };
|
|
2882
|
+
}
|
|
2883
|
+
if (required && dev) return { name, action: "provision", value: DEV_SITE_URL, detail: "dev default" };
|
|
2884
|
+
if (dev && name in DEV_ONLY_DEPLOYMENT_ENV) return { name, action: "provision", value: DEV_ONLY_DEPLOYMENT_ENV[name], detail: "dev default" };
|
|
2885
|
+
if (required) {
|
|
2886
|
+
return { name, action: "missing", detail: preview ? "required \u2014 pass the preview's own origin with --site-url" : "required \u2014 set it in .env.local (or the dashboard) and push again" };
|
|
2887
|
+
}
|
|
2888
|
+
return { name, action: "unset", detail: `optional \u2014 ${OPTIONAL_DEPLOYMENT_ENV[name]}` };
|
|
2889
|
+
}
|
|
2890
|
+
function notForProduction(name, value) {
|
|
2891
|
+
if (name === "SITE_URL") {
|
|
2892
|
+
const url = URL.canParse(value.trim()) ? new URL(value.trim()) : null;
|
|
2893
|
+
if (url?.protocol === "https:" && !isLoopbackUrl(url.href)) return null;
|
|
2894
|
+
return `required \u2014 .env.local's SITE_URL (${value}) is no public https origin: pass production's with --site-url, or set it in the dashboard`;
|
|
2895
|
+
}
|
|
2896
|
+
if (name === "PROTECTION_PROOF_SECRET") return "production's own, never .env.local's: generate one (openssl rand -base64 32) and set it on the deployment and in the host's env";
|
|
2897
|
+
if (name === "PROTECTION_CHALLENGE_SECRET_KEY" && TEST_CHALLENGE_SECRET_KEYS.includes(value.trim())) return ".env.local holds the challenge provider's test secret key, which passes every answer: set production's own key on the deployment";
|
|
2898
|
+
return null;
|
|
2899
|
+
}
|
|
2900
|
+
function planEnvPush({ deployedNames, localEnv, dev, preview = false, force, generated }) {
|
|
2901
|
+
const deployed = new Set(deployedNames);
|
|
2902
|
+
const target = { production: !dev && !preview };
|
|
2903
|
+
return BACKEND_ENV_NAMES.map((name) => {
|
|
2904
|
+
if (DERIVED_DEPLOYMENT_ENV.has(name)) return environmentAction(deployed.has(name), force?.has(name) === true, { dev, preview });
|
|
2905
|
+
if (name in DEV_ONLY_DEPLOYMENT_ENV && !dev) {
|
|
2906
|
+
return { name, action: "unset", detail: "dev deployments only: never pushed here (deploy --sandbox sets it on a sandbox; elsewhere set it by hand where you mean to)" };
|
|
2907
|
+
}
|
|
2908
|
+
const local = PUSH_ENV.includes(name) && !dev ? void 0 : localValue(name, localEnv);
|
|
2909
|
+
const value = local === "" ? void 0 : local;
|
|
2910
|
+
if (deployed.has(name)) return deployedAction(name, value, force?.has(name) === true, target.production);
|
|
2911
|
+
if (value !== void 0) return localAction(name, value, target.production);
|
|
2912
|
+
const made = generated?.[name];
|
|
2913
|
+
if (made !== void 0) return { name, action: "provision", value: made, detail: generatedDetail(name, dev) };
|
|
2914
|
+
return gapAction(name, { dev, preview });
|
|
2915
|
+
});
|
|
2916
|
+
}
|
|
2917
|
+
function deployedAction(name, local, forced, production) {
|
|
2918
|
+
if (!forced || local === void 0) {
|
|
2919
|
+
return { name, action: "skip", detail: forced ? "no local value to replace it with" : "already set on the deployment (--force to replace)" };
|
|
2920
|
+
}
|
|
2921
|
+
const refused = production ? notForProduction(name, local) : null;
|
|
2922
|
+
if (refused) return { name, action: "skip", detail: `kept: ${refused}` };
|
|
2923
|
+
return { name, action: "update", value: local, detail: "replaced from .env(.local)" };
|
|
2924
|
+
}
|
|
2925
|
+
function localAction(name, local, production) {
|
|
2926
|
+
const refused = production ? notForProduction(name, local) : null;
|
|
2927
|
+
if (refused) return { name, action: REQUIRED_DEPLOYMENT_ENV.includes(name) ? "missing" : "unset", detail: refused };
|
|
2928
|
+
return { name, action: "forward", value: local, detail: "forwarded from .env(.local)" };
|
|
2929
|
+
}
|
|
2930
|
+
function generatedDetail(name, dev) {
|
|
2931
|
+
if (!PUSH_ENV.includes(name)) return "generated (a signing key and its certificate, kept in .env.local)";
|
|
2932
|
+
return dev ? "generated (the web push key pair, kept in .env.local)" : "generated (this deployment's own web push key pair: back it up with your other secrets)";
|
|
2933
|
+
}
|
|
2934
|
+
function localValue(name, localEnv) {
|
|
2935
|
+
if (name === "MONITORING_DSN") return appMonitoringDsn(localEnv);
|
|
2936
|
+
if (name === "SITE_URL") return localSiteUrl(localEnv);
|
|
2937
|
+
return localEnv[name];
|
|
2938
|
+
}
|
|
2939
|
+
function localSiteUrl(env) {
|
|
2940
|
+
if (env.SITE_URL !== void 0) return env.SITE_URL;
|
|
2941
|
+
const site = env.NUXT_SITE_URL?.trim();
|
|
2942
|
+
if (!site) return void 0;
|
|
2943
|
+
try {
|
|
2944
|
+
return new URL(site).origin;
|
|
2945
|
+
} catch {
|
|
2946
|
+
return site;
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
function deploymentEnvironment({ dev, preview }) {
|
|
2950
|
+
return dev ? "development" : preview ? "preview" : "production";
|
|
2951
|
+
}
|
|
2952
|
+
function environmentAction(deployed, forced, kind) {
|
|
2953
|
+
const name = "BACKEND_ENVIRONMENT";
|
|
2954
|
+
if (deployed && !forced) return { name, action: "skip", detail: "already set on the deployment (--force to replace)" };
|
|
2955
|
+
return { name, action: deployed ? "update" : "provision", value: deploymentEnvironment(kind), detail: "derived from the deployment's kind" };
|
|
2956
|
+
}
|
|
2957
|
+
const DEV_SITE_URL = "http://localhost:3000";
|
|
2958
|
+
function generateAuthSecret() {
|
|
2959
|
+
return randomBytes(32).toString("base64");
|
|
2960
|
+
}
|
|
2961
|
+
function readEnvFiles(rootDir) {
|
|
2962
|
+
const env = {};
|
|
2963
|
+
for (const name of [".env", ".env.local"]) {
|
|
2964
|
+
const path = join(rootDir, name);
|
|
2965
|
+
if (!existsSync(path)) continue;
|
|
2966
|
+
Object.assign(env, parseEnvFile(readFileSync(path, "utf-8")));
|
|
2967
|
+
}
|
|
2968
|
+
return env;
|
|
2969
|
+
}
|
|
2970
|
+
function deploymentFlags(options = {}) {
|
|
2971
|
+
if (options.prod) return ["--prod"];
|
|
2972
|
+
return options.preview !== void 0 ? ["--preview-name", options.preview] : [];
|
|
2973
|
+
}
|
|
2974
|
+
function deployKeyType(env = process.env) {
|
|
2975
|
+
const key = env.CONVEX_DEPLOY_KEY || env.CONVEX_DEPLOYMENT_TOKEN;
|
|
2976
|
+
if (!key || key === "<ignore_deploy_key>") return null;
|
|
2977
|
+
const separator = key.indexOf(":");
|
|
2978
|
+
return separator === -1 ? "prod" : key.slice(0, separator);
|
|
2979
|
+
}
|
|
2980
|
+
function nonProductionDeployKey(env = process.env) {
|
|
2981
|
+
const type = deployKeyType(env);
|
|
2982
|
+
return type === "prod" || type === "project" ? null : type;
|
|
2983
|
+
}
|
|
2984
|
+
function devPushRefusal(rootDir) {
|
|
2985
|
+
const type = deployKeyType({ ...readEnvFiles(rootDir), ...process.env });
|
|
2986
|
+
if (type === null || type === "dev") return null;
|
|
2987
|
+
return `CONVEX_DEPLOY_KEY is a ${type} deploy key, and the Convex CLI follows it whatever the flags say, so a push to the dev deployment would put dev values (a generated AUTH_SECRET, a localhost SITE_URL, echoed sign-in codes) on the deployment that key selects. Unset it to push to the dev deployment CONVEX_DEPLOYMENT names in .env.local, or run with --prod to push production.`;
|
|
2988
|
+
}
|
|
2989
|
+
async function deploymentEnvNames(rootDir, options = {}) {
|
|
2990
|
+
try {
|
|
2991
|
+
const { stdout } = await runConvex(rootDir, ["env", "list", "--names-only", ...deploymentFlags(options)]);
|
|
2992
|
+
return envNames(stdout);
|
|
2993
|
+
} catch {
|
|
2994
|
+
return null;
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
async function deploymentBackendEnvironment(rootDir, options = {}) {
|
|
2998
|
+
try {
|
|
2999
|
+
const { stdout } = await runConvex(rootDir, ["env", "get", ...deploymentFlags(options), "BACKEND_ENVIRONMENT"]);
|
|
3000
|
+
return parseBackendEnvironment(stdout) ?? null;
|
|
3001
|
+
} catch {
|
|
3002
|
+
return null;
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
async function deploymentSiteOrigin(rootDir, options = {}) {
|
|
3006
|
+
let value;
|
|
3007
|
+
try {
|
|
3008
|
+
value = (await runConvex(rootDir, ["env", "get", ...deploymentFlags(options), "SITE_URL"])).stdout.trim();
|
|
3009
|
+
} catch {
|
|
3010
|
+
return null;
|
|
3011
|
+
}
|
|
3012
|
+
try {
|
|
3013
|
+
const url = new URL(value);
|
|
3014
|
+
return url.protocol === "https:" || url.protocol === "http:" ? { origin: url.origin } : "malformed";
|
|
3015
|
+
} catch {
|
|
3016
|
+
return "malformed";
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
function envNames(listing) {
|
|
3020
|
+
return listing.split("\n").map((line) => line.split("=")[0]?.trim() ?? "").filter((name) => /^[A-Z][A-Z0-9_]*$/.test(name));
|
|
3021
|
+
}
|
|
3022
|
+
async function deploymentFunctionSpec(rootDir, options = {}) {
|
|
3023
|
+
try {
|
|
3024
|
+
const { stdout } = await runConvex(rootDir, ["function-spec", ...deploymentFlags(options)]);
|
|
3025
|
+
const parsed = JSON.parse(stdout);
|
|
3026
|
+
const list = Array.isArray(parsed) ? parsed : parsed.functions ?? [];
|
|
3027
|
+
return {
|
|
3028
|
+
url: Array.isArray(parsed) ? null : parsed.url ?? null,
|
|
3029
|
+
identifiers: new Set(list.map((fn) => fn.identifier ?? "").map((id) => id.replace(/\.[jt]s:/, ":")))
|
|
3030
|
+
};
|
|
3031
|
+
} catch {
|
|
3032
|
+
return null;
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
async function setDeploymentEnv(rootDir, name, value, options = {}) {
|
|
3036
|
+
await runConvex(rootDir, ["env", "set", ...deploymentFlags(options), name], { input: value });
|
|
3037
|
+
}
|
|
3038
|
+
async function executeEnvPush(rootDir, actions, { dryRun = false, prod = false, preview, setEnv = (dir, name, value) => setDeploymentEnv(dir, name, value, { prod, preview }) } = {}) {
|
|
3039
|
+
const results = [];
|
|
3040
|
+
for (const action of actions) {
|
|
3041
|
+
if (action.action !== "forward" && action.action !== "provision" && action.action !== "update") {
|
|
3042
|
+
results.push({ action, outcome: "skipped" });
|
|
3043
|
+
continue;
|
|
3044
|
+
}
|
|
3045
|
+
if (dryRun) {
|
|
3046
|
+
results.push({ action, outcome: "planned" });
|
|
3047
|
+
continue;
|
|
3048
|
+
}
|
|
3049
|
+
try {
|
|
3050
|
+
await setEnv(rootDir, action.name, action.value ?? "");
|
|
3051
|
+
results.push({ action, outcome: "set" });
|
|
3052
|
+
} catch (error) {
|
|
3053
|
+
results.push({ action, outcome: "failed", error: error instanceof Error ? error.message : String(error) });
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3056
|
+
return results;
|
|
3057
|
+
}
|
|
3058
|
+
function configuredDeployment(rootDir) {
|
|
3059
|
+
return process.env.CONVEX_DEPLOYMENT ?? readEnvFiles(rootDir).CONVEX_DEPLOYMENT ?? deriveDeploymentUrls(rootDir)?.deployment ?? null;
|
|
3060
|
+
}
|
|
3061
|
+
function isDevDeployment(rootDir) {
|
|
3062
|
+
return isDevDeploymentId(configuredDeployment(rootDir));
|
|
3063
|
+
}
|
|
3064
|
+
const PROVISION_VERSION = 7;
|
|
3065
|
+
function envProvisionedMarker(rootDir, deployment) {
|
|
3066
|
+
return join(rootDir, "node_modules/.cache/nuxt-backend", `env-ok-${PROVISION_VERSION}-${deployment.replace(/[^\w-]/g, "_")}`);
|
|
3067
|
+
}
|
|
3068
|
+
function isEnvProvisioned(rootDir, deployment) {
|
|
3069
|
+
return existsSync(envProvisionedMarker(rootDir, deployment));
|
|
3070
|
+
}
|
|
3071
|
+
function markEnvProvisioned(rootDir, deployment) {
|
|
3072
|
+
const marker = envProvisionedMarker(rootDir, deployment);
|
|
3073
|
+
mkdirSync(dirname(marker), { recursive: true });
|
|
3074
|
+
writeFileSync(marker, (/* @__PURE__ */ new Date()).toISOString());
|
|
3075
|
+
}
|
|
3076
|
+
function provisionedEnvNames(rootDir) {
|
|
3077
|
+
const deployment = configuredDeployment(rootDir);
|
|
3078
|
+
return isDevDeploymentId(deployment) && isEnvProvisioned(rootDir, deployment) ? new Set(REQUIRED_DEPLOYMENT_ENV) : void 0;
|
|
3079
|
+
}
|
|
3080
|
+
function pushTarget(rootDir, options) {
|
|
3081
|
+
const preview = !options.prod && options.preview !== void 0;
|
|
3082
|
+
const deployment = options.prod ? "production" : preview ? `preview:${options.preview}` : configuredDeployment(rootDir);
|
|
3083
|
+
const dev = !options.prod && !preview && isDevDeployment(rootDir);
|
|
3084
|
+
return { deployment, dev, preview };
|
|
3085
|
+
}
|
|
3086
|
+
async function runEnvPush(rootDir, options = {}) {
|
|
3087
|
+
const target = { prod: options.prod, preview: options.preview };
|
|
3088
|
+
const refusal = !options.prod && options.preview === void 0 ? devPushRefusal(rootDir) : null;
|
|
3089
|
+
if (refusal) throw new Error(`[nuxt-backend] env push refused: ${refusal}`);
|
|
3090
|
+
const deployedNames = await deploymentEnvNames(rootDir, target);
|
|
3091
|
+
if (deployedNames === null) return null;
|
|
3092
|
+
const { deployment, dev, preview } = pushTarget(rootDir, options);
|
|
3093
|
+
const localEnv = readEnvFiles(rootDir);
|
|
3094
|
+
if (preview) delete localEnv.SITE_URL;
|
|
3095
|
+
if (options.siteUrl) localEnv.SITE_URL = options.siteUrl;
|
|
3096
|
+
const force = options.siteUrl ? /* @__PURE__ */ new Set([...options.force ?? [], "SITE_URL"]) : options.force;
|
|
3097
|
+
const generated = await generatedEnv(rootDir, deployedNames, localEnv, { dev, dryRun: options.dryRun === true });
|
|
3098
|
+
const actions = planEnvPush({ deployedNames, localEnv, dev, preview, ...force ? { force } : {}, ...generated ? { generated } : {} });
|
|
3099
|
+
const results = await executeEnvPush(rootDir, actions, { dryRun: options.dryRun, ...target, ...options.setEnv ? { setEnv: options.setEnv } : {} });
|
|
3100
|
+
return {
|
|
3101
|
+
deployment,
|
|
3102
|
+
dev,
|
|
3103
|
+
deployedNames,
|
|
3104
|
+
results,
|
|
3105
|
+
missingRequired: actions.filter((action) => action.action === "missing").map((action) => action.name)
|
|
3106
|
+
};
|
|
3107
|
+
}
|
|
3108
|
+
async function generatedEnv(rootDir, deployedNames, localEnv, { dev, dryRun }) {
|
|
3109
|
+
const provenance = provenanceToGenerate(rootDir, deployedNames, localEnv);
|
|
3110
|
+
if (provenance && !dryRun) writeLocalEnv(rootDir, provenance);
|
|
3111
|
+
const push = await pushKeysToGenerate(deployedNames, localEnv, { dev });
|
|
3112
|
+
if (push && dev && !dryRun) writeLocalEnv(rootDir, push, PUSH_KEYS_COMMENT);
|
|
3113
|
+
return provenance || push ? { ...provenance, ...push } : null;
|
|
3114
|
+
}
|
|
3115
|
+
const PUSH_ENV = ["PUSH_PUBLIC_KEY", "PUSH_PRIVATE_KEY"];
|
|
3116
|
+
const PUSH_KEYS_COMMENT = "# Web push (setupNotifications): the dev deployment's key pair, generated by `nuxt-backend env push`. Keep it: new keys orphan every subscribed device.";
|
|
3117
|
+
async function pushKeysToGenerate(deployedNames, localEnv, { dev }) {
|
|
3118
|
+
if (PUSH_ENV.some((name) => deployedNames.includes(name))) return null;
|
|
3119
|
+
if (dev && PUSH_ENV.every((name) => localEnv[name])) return null;
|
|
3120
|
+
const { publicKey, privateKey } = await generatePushKeys();
|
|
3121
|
+
return { PUSH_PUBLIC_KEY: publicKey, PUSH_PRIVATE_KEY: privateKey };
|
|
3122
|
+
}
|
|
3123
|
+
const PROVENANCE_ENV = ["PROVENANCE_PRIVATE_KEY", "PROVENANCE_CERTIFICATE"];
|
|
3124
|
+
function provenanceToGenerate(rootDir, deployedNames, localEnv) {
|
|
3125
|
+
if (PROVENANCE_ENV.some((name) => deployedNames.includes(name) || localEnv[name])) return null;
|
|
3126
|
+
if (!usesProvenance(rootDir)) return null;
|
|
3127
|
+
const { privateKey, certificate } = generateProvenanceCredentials(appName(rootDir));
|
|
3128
|
+
return { PROVENANCE_PRIVATE_KEY: privateKey, PROVENANCE_CERTIFICATE: certificate };
|
|
3129
|
+
}
|
|
3130
|
+
function appName(rootDir) {
|
|
3131
|
+
try {
|
|
3132
|
+
const name = JSON.parse(readFileSync(join(rootDir, "package.json"), "utf8")).name;
|
|
3133
|
+
if (typeof name === "string" && name.trim()) return name.trim();
|
|
3134
|
+
} catch {
|
|
3135
|
+
}
|
|
3136
|
+
return "nuxt-backend app";
|
|
3137
|
+
}
|
|
3138
|
+
function writeLocalEnv(rootDir, values, comment = "# Content credentials (setupAi({ provenance })): generated by `nuxt-backend env push`. Replace both with a certificate from a CA on the C2PA trust list for a named signer.") {
|
|
3139
|
+
const path = join(rootDir, ".env.local");
|
|
3140
|
+
const text = readTextIfPresent(path) ?? "";
|
|
3141
|
+
const block = [
|
|
3142
|
+
comment,
|
|
3143
|
+
...Object.entries(values).map(([name, value]) => envLine(name, value)),
|
|
3144
|
+
""
|
|
3145
|
+
].join("\n");
|
|
3146
|
+
const lines = text.split("\n");
|
|
3147
|
+
const platform = lines.findIndex((line) => /^# Deployment used by|^CONVEX_DEPLOYMENT=/.test(line));
|
|
3148
|
+
const next = platform === -1 ? `${text}${text && !text.endsWith("\n") ? "\n" : ""}${text ? "\n" : ""}${block}` : [...lines.slice(0, platform), block, ...lines.slice(platform)].join("\n");
|
|
3149
|
+
writeFileSync(path, next);
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
const SECRET_PLACEHOLDERS = /* @__PURE__ */ new Set(["secret", "changeme", "change-me", "your-secret", "placeholder", "todo"]);
|
|
3153
|
+
const SET_AUTH_SECRET = "openssl rand -base64 32 | npx convex env set AUTH_SECRET";
|
|
3154
|
+
function backendSiteUrlFinding(siteUrlConfigured) {
|
|
3155
|
+
return siteUrlConfigured ? finding("backend-site-url", "pass", "Backend site URL configured \u2014 the auth proxy can reach the backend HTTP routes.") : finding("backend-site-url", "warn", "No backend site URL configured; the /api/auth proxy has no target.", "Set NUXT_PUBLIC_BACKEND_URL (the site origin derives from it); a custom domain in front of the HTTP routes goes in NUXT_PUBLIC_CONVEX_SITE_URL \u2014 normally derived for you.");
|
|
3156
|
+
}
|
|
3157
|
+
function authSecretFinding(secret, onDeployment) {
|
|
3158
|
+
if (onDeployment("AUTH_SECRET")) {
|
|
3159
|
+
return finding("auth-secret", "pass", "AUTH_SECRET is set on the deployment (its value is not visible here).");
|
|
3160
|
+
}
|
|
3161
|
+
if (secret === void 0) {
|
|
3162
|
+
return finding(
|
|
3163
|
+
"auth-secret",
|
|
3164
|
+
"warn",
|
|
3165
|
+
"AUTH_SECRET is not visible here \u2014 it is required on the Convex deployment (a deploy fails without it) and cannot be verified from Nuxt.",
|
|
3166
|
+
`On a dev deployment \`npx nuxt-backend env push\` generates one; otherwise: ${SET_AUTH_SECRET}`
|
|
3167
|
+
);
|
|
3168
|
+
}
|
|
3169
|
+
if (secret.length < 32 || SECRET_PLACEHOLDERS.has(secret.toLowerCase())) {
|
|
3170
|
+
return finding("auth-secret", "fail", "AUTH_SECRET is too short or a placeholder \u2014 sessions signed with it are guessable.", SET_AUTH_SECRET);
|
|
3171
|
+
}
|
|
3172
|
+
return finding("auth-secret", "pass", "AUTH_SECRET present and strong.");
|
|
3173
|
+
}
|
|
3174
|
+
function siteUrlFinding(siteUrl, onDeployment) {
|
|
3175
|
+
if (onDeployment("SITE_URL")) {
|
|
3176
|
+
return finding("site-url", "pass", "SITE_URL is set on the deployment (its value is not visible here).");
|
|
3177
|
+
}
|
|
3178
|
+
if (siteUrl === void 0) {
|
|
3179
|
+
return finding(
|
|
3180
|
+
"site-url",
|
|
3181
|
+
"warn",
|
|
3182
|
+
"SITE_URL is not visible here \u2014 it is required on the Convex deployment (invitation and gift emails link to it).",
|
|
3183
|
+
"On a dev deployment `npx nuxt-backend env push` sets http://localhost:3000; in production: npx convex env set SITE_URL https://app.example.com"
|
|
3184
|
+
);
|
|
3185
|
+
}
|
|
3186
|
+
if (!isHttpUrl(siteUrl)) {
|
|
3187
|
+
return finding("site-url", "fail", "SITE_URL is not a valid http(s) URL \u2014 auth and invitation/gift links use it as the app origin.", "Set SITE_URL to your app origin, e.g. https://app.example.com");
|
|
3188
|
+
}
|
|
3189
|
+
return finding("site-url", "pass", "SITE_URL is a valid URL.");
|
|
3190
|
+
}
|
|
3191
|
+
function billingWebhookSecretHint(prod) {
|
|
3192
|
+
const command = prod === void 0 ? "`npx nuxt-backend billing sync` (with `--env production` for production)" : `\`npx nuxt-backend billing sync${prod ? " --env production" : ""}\``;
|
|
3193
|
+
return `Run ${command}: it creates the provider webhook for /billing/events and stores its secret on the deployment, never printed.`;
|
|
3194
|
+
}
|
|
3195
|
+
const OPTIONAL_GATES = [
|
|
3196
|
+
{
|
|
3197
|
+
id: "email-transport",
|
|
3198
|
+
name: "EMAIL_API_KEY",
|
|
3199
|
+
on: "transactional email is on",
|
|
3200
|
+
fixHint: "Add EMAIL_API_KEY to .env.local and run `npx nuxt-backend env push` (EMAIL_FROM has a safe default)."
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
id: "email-webhook-secret",
|
|
3204
|
+
name: "EMAIL_WEBHOOK_SECRET",
|
|
3205
|
+
on: "delivery events verify",
|
|
3206
|
+
fixHint: "Create the provider webhook for /email/events, then add EMAIL_WEBHOOK_SECRET to .env.local and `npx nuxt-backend env push`."
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
id: "billing-access",
|
|
3210
|
+
name: "BILLING_ACCESS_TOKEN",
|
|
3211
|
+
on: "billing is on",
|
|
3212
|
+
fixHint: "Add BILLING_ACCESS_TOKEN to .env.local and run `npx nuxt-backend env push` (billing runs in the provider sandbox until BACKEND_ENVIRONMENT is production)."
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
id: "billing-webhook-secret",
|
|
3216
|
+
name: "BILLING_WEBHOOK_SECRET",
|
|
3217
|
+
on: "billing events verify",
|
|
3218
|
+
fixHint: billingWebhookSecretHint()
|
|
3219
|
+
}
|
|
3220
|
+
];
|
|
3221
|
+
const OPTIONAL_GATE_IDS = new Set(OPTIONAL_GATES.map((gate) => gate.id));
|
|
3222
|
+
function needsSetup(findings) {
|
|
3223
|
+
return findings.some((finding2) => finding2.status !== "pass" && !OPTIONAL_GATE_IDS.has(finding2.id));
|
|
3224
|
+
}
|
|
3225
|
+
function optionalGateFinding(gate, env, onDeployment) {
|
|
3226
|
+
const where = env[gate.name] ? "visible" : onDeployment(gate.name) ? "set on the deployment" : null;
|
|
3227
|
+
return where ? finding(gate.id, "pass", `${gate.name} ${where} \u2014 ${gate.on}.`) : finding(gate.id, "warn", `${gate.name} is not set (optional): ${OPTIONAL_DEPLOYMENT_ENV[gate.name]}.`, gate.fixHint);
|
|
3228
|
+
}
|
|
3229
|
+
function collectPreflightFindings({ env, siteUrlConfigured, deployedNames }) {
|
|
3230
|
+
const onDeployment = (name) => env[name] === void 0 && deployedNames?.has(name) === true;
|
|
3231
|
+
const findings = [
|
|
3232
|
+
backendSiteUrlFinding(siteUrlConfigured),
|
|
3233
|
+
authSecretFinding(env.AUTH_SECRET, onDeployment),
|
|
3234
|
+
siteUrlFinding(localSiteUrl(env), onDeployment),
|
|
3235
|
+
...OPTIONAL_GATES.map((gate) => optionalGateFinding(gate, env, onDeployment))
|
|
3236
|
+
];
|
|
3237
|
+
return findings;
|
|
3238
|
+
}
|
|
3239
|
+
function isHttpUrl(value) {
|
|
3240
|
+
try {
|
|
3241
|
+
const url = new URL(value);
|
|
3242
|
+
return url.protocol === "http:" || url.protocol === "https:";
|
|
3243
|
+
} catch {
|
|
3244
|
+
return false;
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
function doctorReport(findings) {
|
|
3248
|
+
return { $schema: DOCTOR_SCHEMA_URL, findings, summary: formatPreflightSummary(findings) };
|
|
3249
|
+
}
|
|
3250
|
+
function formatPreflightSummary(findings) {
|
|
3251
|
+
const problems = findings.filter((finding2) => finding2.status !== "pass");
|
|
3252
|
+
if (findings.length === 0) return "no checks ran";
|
|
3253
|
+
if (problems.length === 0) return `${findings.length} check${findings.length === 1 ? "" : "s"} \u2713`;
|
|
3254
|
+
return `${problems.length} finding${problems.length === 1 ? "" : "s"}: ${problems.map((f) => f.id).join(", ")}`;
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
function pathsFileLocation(rootDir) {
|
|
3258
|
+
const functionsDir = resolveFunctionsDir(rootDir);
|
|
3259
|
+
return { name: `${functionsDir}/${PATHS_FILE}`, path: join(rootDir, functionsDir, PATHS_FILE) };
|
|
3260
|
+
}
|
|
3261
|
+
function syncPathsFile(rootDir, paths) {
|
|
3262
|
+
const { path } = pathsFileLocation(rootDir);
|
|
3263
|
+
if (!existsSync(join(path, ".."))) return "no-functions-dir";
|
|
3264
|
+
const text = renderPathsFile(paths);
|
|
3265
|
+
if (readTextIfPresent(path) === text) return "unchanged";
|
|
3266
|
+
writeFileSync(path, text);
|
|
3267
|
+
return "written";
|
|
3268
|
+
}
|
|
3269
|
+
function differences(held, wanted) {
|
|
3270
|
+
return BACKEND_PATH_KEYS.filter((key) => held[key] !== wanted[key]).map((key) => `${key} is ${held[key] === void 0 ? "missing" : held[key]}, and ${pathOption(key)} says ${wanted[key]}`);
|
|
3271
|
+
}
|
|
3272
|
+
const PATH_READERS = [
|
|
3273
|
+
{ file: "auth.config.ts", keys: ["authRoute"] },
|
|
3274
|
+
{ file: "auth.ts", keys: ["authRoute", "acceptInvitation", "security", "waitlist"] },
|
|
3275
|
+
{ file: "account.ts", keys: ["keepAccount"] },
|
|
3276
|
+
{ file: "waitlist.ts", keys: ["login"] },
|
|
3277
|
+
{ file: "access.ts", keys: ["login", "privacy"] }
|
|
3278
|
+
];
|
|
3279
|
+
const IMPORTS_PATHS_FILE = /from\s+['"][^'"]*paths\.generated(?:\.[jt]s)?['"]/;
|
|
3280
|
+
function unreadPaths(functionsDir, wanted) {
|
|
3281
|
+
return PATH_READERS.flatMap(({ file, keys }) => {
|
|
3282
|
+
const path = join(functionsDir, file);
|
|
3283
|
+
if (!existsSync(path) || IMPORTS_PATHS_FILE.test(readFileSync(path, "utf-8"))) return [];
|
|
3284
|
+
const moved = keys.filter((key) => wanted[key] !== DEFAULT_BACKEND_PATHS[key]);
|
|
3285
|
+
return moved.length === 0 ? [] : [`${file} does not pass the paths on, so it uses ${moved.map((key) => `${key} ${DEFAULT_BACKEND_PATHS[key]} where ${pathOption(key)} says ${wanted[key]}`).join(", ")}`];
|
|
3286
|
+
});
|
|
3287
|
+
}
|
|
3288
|
+
function pathsFileFinding(rootDir, source) {
|
|
3289
|
+
if (!source) return [];
|
|
3290
|
+
const { name, path } = pathsFileLocation(rootDir);
|
|
3291
|
+
const functionsDir = join(path, "..");
|
|
3292
|
+
if (!existsSync(functionsDir)) return [];
|
|
3293
|
+
const wanted = backendPathsOf(source);
|
|
3294
|
+
const problems = [];
|
|
3295
|
+
const fixes = [];
|
|
3296
|
+
const changed = existsSync(path) ? differences(parsePathsFile(readFileSync(path, "utf-8")), wanted) : [];
|
|
3297
|
+
if (!existsSync(path)) problems.push(`${name} is missing: the backend links to every page at its default path, whatever nuxt.config moves.`);
|
|
3298
|
+
else if (changed.length > 0) problems.push(`${name} is out of date with nuxt.config: ${changed.join("; ")}.`);
|
|
3299
|
+
if (problems.length > 0) fixes.push("Run: npx nuxt-backend doctor --fix (or any `nuxt prepare`, `dev` or `build`), and deploy the functions.");
|
|
3300
|
+
const unread = unreadPaths(functionsDir, wanted);
|
|
3301
|
+
if (unread.length > 0) {
|
|
3302
|
+
problems.push(`${unread.join("; ")}.`);
|
|
3303
|
+
fixes.push(`Import { paths } from './paths.generated' and pass it on as the scaffold does (defineBackendAuthConfig({ paths }), setupAuth, setupAccount and setupWaitlist take \`paths\`), then deploy the functions.`);
|
|
3304
|
+
}
|
|
3305
|
+
if (problems.length === 0) return [finding("paths-file", "pass", `${name} carries the paths nuxt.config declares.`)];
|
|
3306
|
+
return [finding("paths-file", "warn", problems.join(" "), fixes.join(" "))];
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
function brandFileLocation(rootDir) {
|
|
3310
|
+
const functionsDir = resolveFunctionsDir(rootDir);
|
|
3311
|
+
return { name: `${functionsDir}/${BRAND_FILE}`, path: join(rootDir, functionsDir, BRAND_FILE) };
|
|
3312
|
+
}
|
|
3313
|
+
function syncBrandFile(rootDir, brand) {
|
|
3314
|
+
const { path } = brandFileLocation(rootDir);
|
|
3315
|
+
if (!existsSync(join(path, ".."))) return "no-functions-dir";
|
|
3316
|
+
const text = renderBrandFile(brand);
|
|
3317
|
+
if (readTextIfPresent(path) === text) return "unchanged";
|
|
3318
|
+
writeFileSync(path, text);
|
|
3319
|
+
return "written";
|
|
3320
|
+
}
|
|
3321
|
+
function brandFileFinding(rootDir, brand) {
|
|
3322
|
+
if (!brand) return [];
|
|
3323
|
+
const { name, path } = brandFileLocation(rootDir);
|
|
3324
|
+
if (!existsSync(join(path, ".."))) return [];
|
|
3325
|
+
if (existsSync(path) && readFileSync(path, "utf-8") === renderBrandFile(brand)) return [finding("brand-file", "pass", `${name} carries the brand app.config declares.`)];
|
|
3326
|
+
const problem = existsSync(path) ? `${name} is out of date with app.config's \`backend.brand\`` : `${name} is missing`;
|
|
3327
|
+
return [finding("brand-file", "warn", `${problem}: the emails name the app otherwise than its pages.`, "Run: npx nuxt-backend doctor --fix (or any `nuxt prepare`, `dev` or `build`), and deploy the functions.")];
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
const MANIFEST_ROUTE = "/manifest.webmanifest";
|
|
3331
|
+
const INSTALL_ICONS = [{ file: "icon-192.png", size: 192 }, { file: "icon-512.png", size: 512 }];
|
|
3332
|
+
const OWN_MANIFESTS = ["manifest.webmanifest", "manifest.json", "site.webmanifest"];
|
|
3333
|
+
const MANIFEST_MODULES = ["@vite-pwa/nuxt", "@kevinmarrec/nuxt-pwa", "nuxt-pwa-module"];
|
|
3334
|
+
function installableGaps(publicDir, brand) {
|
|
3335
|
+
return [
|
|
3336
|
+
...INSTALL_ICONS.filter((icon) => !existsSync(join(publicDir, icon.file))).map((icon) => `public/${icon.file} (${icon.size} \xD7 ${icon.size} px)`),
|
|
3337
|
+
...brand?.name ? [] : ["app.config's `backend.brand.name`"]
|
|
3338
|
+
];
|
|
3339
|
+
}
|
|
3340
|
+
function ownsManifest(publicDir, modules) {
|
|
3341
|
+
return OWN_MANIFESTS.some((file) => existsSync(join(publicDir, file))) || modules.some((name) => MANIFEST_MODULES.includes(name));
|
|
3342
|
+
}
|
|
3343
|
+
function webAppManifest(name) {
|
|
3344
|
+
return {
|
|
3345
|
+
name,
|
|
3346
|
+
short_name: name,
|
|
3347
|
+
start_url: "/",
|
|
3348
|
+
scope: "/",
|
|
3349
|
+
display: "standalone",
|
|
3350
|
+
icons: INSTALL_ICONS.map((icon) => ({ src: `/${icon.file}`, sizes: `${icon.size}x${icon.size}`, type: "image/png", purpose: "any" }))
|
|
3351
|
+
};
|
|
3352
|
+
}
|
|
3353
|
+
function installableFinding(publicDir, brand, { modules, pushKeys }) {
|
|
3354
|
+
if (ownsManifest(publicDir, modules)) return [];
|
|
3355
|
+
const gaps = installableGaps(publicDir, brand);
|
|
3356
|
+
if (gaps.length === 0) return [finding("installable", "pass", `The app is installable: the module serves ${MANIFEST_ROUTE} for ${brand.name}, with both icons.`)];
|
|
3357
|
+
const reaching = INSTALL_ICONS.some((icon) => existsSync(join(publicDir, icon.file)));
|
|
3358
|
+
const message = `The module adds no web app manifest: ${gaps.join(" and ")} ${gaps.length === 1 ? "is" : "are"} missing.${pushKeys ? " iPhone and iPad take web push only once the app is on the Home Screen." : ""}`;
|
|
3359
|
+
const fix = "Add two square PNG icons with a solid background to public/ (icon-192.png and icon-512.png), and set backend.brand.name in app.config.";
|
|
3360
|
+
return [finding("installable", reaching ? "warn" : "pass", reaching ? message : `Not installable yet (optional): ${gaps.join(" and ")} ${gaps.length === 1 ? "is" : "are"} missing.`, reaching ? fix : "")];
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
const component = (entry) => ({ ...entry, kind: "component" });
|
|
3364
|
+
const part = (entry) => ({ ...entry, kind: "part" });
|
|
3365
|
+
const internal = (name, folder, capability, extra = {}) => ({ name, folder, kind: "internal", capability, ...extra });
|
|
3366
|
+
const UI_ENTRIES = [
|
|
3367
|
+
component({ name: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3368
|
+
part({ name: "AuthFormHeader", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3369
|
+
part({ name: "AuthFormChoose", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3370
|
+
part({ name: "AuthFormPasskey", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3371
|
+
part({ name: "AuthFormEmail", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3372
|
+
part({ name: "AuthFormCode", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3373
|
+
part({ name: "AuthFormRecover", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3374
|
+
part({ name: "AuthFormWaitlisted", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3375
|
+
part({ name: "AuthFormInviteCode", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3376
|
+
part({ name: "AuthFormAge", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3377
|
+
part({ name: "AuthFormUndeliverable", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3378
|
+
part({ name: "AuthFormPasskeyOffer", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3379
|
+
part({ name: "AuthFormAgreement", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3380
|
+
part({ name: "AuthFormError", parent: "AuthForm", folder: "auth", capability: "auth" }),
|
|
3381
|
+
component({ name: "WaitlistForm", folder: "auth", capability: "auth" }),
|
|
3382
|
+
part({ name: "WaitlistJoin", parent: "WaitlistForm", folder: "auth", capability: "auth" }),
|
|
3383
|
+
part({ name: "WaitlistCode", parent: "WaitlistForm", folder: "auth", capability: "auth" }),
|
|
3384
|
+
part({ name: "WaitlistPlace", parent: "WaitlistForm", folder: "auth", capability: "auth" }),
|
|
3385
|
+
part({ name: "WaitlistShare", parent: "WaitlistForm", folder: "auth", capability: "auth" }),
|
|
3386
|
+
component({ name: "ReauthenticateDialog", folder: "auth", capability: "auth" }),
|
|
3387
|
+
part({ name: "ReauthenticatePasskey", parent: "ReauthenticateDialog", folder: "auth", capability: "auth" }),
|
|
3388
|
+
part({ name: "ReauthenticateCode", parent: "ReauthenticateDialog", folder: "auth", capability: "auth" }),
|
|
3389
|
+
component({ name: "ProfileSettings", folder: "account", capability: "auth" }),
|
|
3390
|
+
part({ name: "ProfileIdentity", parent: "ProfileSettings", folder: "account", capability: "auth" }),
|
|
3391
|
+
part({ name: "ProfileNameSection", parent: "ProfileSettings", folder: "account", capability: "auth" }),
|
|
3392
|
+
part({ name: "ProfileEmailSection", parent: "ProfileSettings", folder: "account", capability: "auth" }),
|
|
3393
|
+
part({ name: "ProfileLanguageSection", parent: "ProfileSettings", folder: "account", capability: "auth" }),
|
|
3394
|
+
part({ name: "ProfilePreferencesSection", parent: "ProfileSettings", folder: "account", capability: "auth" }),
|
|
3395
|
+
component({ name: "SecuritySettings", folder: "account", capability: "auth" }),
|
|
3396
|
+
part({ name: "SecurityPasskeys", parent: "SecuritySettings", folder: "account", capability: "auth" }),
|
|
3397
|
+
part({ name: "SecuritySessions", parent: "SecuritySettings", folder: "account", capability: "auth" }),
|
|
3398
|
+
part({ name: "SecurityAlerts", parent: "SecuritySettings", folder: "account", capability: "auth" }),
|
|
3399
|
+
component({ name: "ConsentPrompt", folder: "account", capability: "auth" }),
|
|
3400
|
+
component({ name: "OnboardingFlow", folder: "account", capability: "auth" }),
|
|
3401
|
+
part({ name: "OnboardingProfile", parent: "OnboardingFlow", folder: "account", capability: "auth" }),
|
|
3402
|
+
part({ name: "OnboardingWorkspace", parent: "OnboardingFlow", folder: "account", capability: "auth" }),
|
|
3403
|
+
part({ name: "OnboardingTeammates", parent: "OnboardingFlow", folder: "account", capability: "auth" }),
|
|
3404
|
+
part({ name: "OnboardingPlan", parent: "OnboardingFlow", folder: "account", capability: "auth" }),
|
|
3405
|
+
component({ name: "ActivationChecklist", folder: "account", capability: "auth" }),
|
|
3406
|
+
component({ name: "HowDidYouHear", folder: "account", capability: "auth" }),
|
|
3407
|
+
component({ name: "AccountData", folder: "account", capability: "auth" }),
|
|
3408
|
+
part({ name: "AccountExport", parent: "AccountData", folder: "account", capability: "auth" }),
|
|
3409
|
+
part({ name: "AccountDeletion", parent: "AccountData", folder: "account", capability: "auth" }),
|
|
3410
|
+
component({ name: "WorkspaceSettings", folder: "workspaces", capability: "auth" }),
|
|
3411
|
+
part({ name: "WorkspaceList", parent: "WorkspaceSettings", folder: "workspaces", capability: "auth" }),
|
|
3412
|
+
part({ name: "WorkspaceBilling", parent: "WorkspaceSettings", folder: "workspaces", capability: "billing" }),
|
|
3413
|
+
part({ name: "WorkspaceCredits", parent: "WorkspaceSettings", folder: "workspaces", capability: "billing" }),
|
|
3414
|
+
component({ name: "AcceptInvitation", folder: "workspaces", capability: "auth" }),
|
|
3415
|
+
part({ name: "AcceptInvitationActions", parent: "AcceptInvitation", folder: "workspaces", capability: "auth" }),
|
|
3416
|
+
component({ name: "AuditLog", folder: "workspaces", capability: "auth" }),
|
|
3417
|
+
part({ name: "AuditLogEvent", parent: "AuditLog", folder: "workspaces", capability: "auth" }),
|
|
3418
|
+
component({ name: "PricingTable", folder: "billing", capability: "billing" }),
|
|
3419
|
+
part({ name: "PricingPeriodSwitch", parent: "PricingTable", folder: "billing", capability: "billing" }),
|
|
3420
|
+
part({ name: "PricingCurrencySelect", parent: "PricingTable", folder: "billing", capability: "billing" }),
|
|
3421
|
+
part({ name: "PricingPlanCard", parent: "PricingTable", folder: "billing", capability: "billing" }),
|
|
3422
|
+
part({ name: "PricingPackCard", parent: "PricingTable", folder: "billing", capability: "billing" }),
|
|
3423
|
+
part({ name: "PricingCancelConfirm", parent: "PricingTable", folder: "billing", capability: "billing" }),
|
|
3424
|
+
part({ name: "PricingEmailOptOut", parent: "PricingTable", folder: "billing", capability: "billing" }),
|
|
3425
|
+
component({ name: "BillingCheckoutLink", folder: "billing", capability: "billing", unstyled: true }),
|
|
3426
|
+
component({ name: "BillingPortalLink", folder: "billing", capability: "billing", unstyled: true }),
|
|
3427
|
+
component({ name: "BillingHistory", folder: "billing", capability: "billing" }),
|
|
3428
|
+
part({ name: "BillingHistoryOrder", parent: "BillingHistory", folder: "billing", capability: "billing" }),
|
|
3429
|
+
component({ name: "UsageHistory", folder: "billing", capability: "billing" }),
|
|
3430
|
+
part({ name: "UsageHistoryEvent", parent: "UsageHistory", folder: "billing", capability: "billing" }),
|
|
3431
|
+
component({ name: "UpgradePrompt", folder: "billing", capability: "billing" }),
|
|
3432
|
+
component({ name: "CancelFlow", folder: "billing", capability: "billing" }),
|
|
3433
|
+
part({ name: "CancelFlowQuestion", parent: "CancelFlow", folder: "billing", capability: "billing", unstyled: true }),
|
|
3434
|
+
part({ name: "CancelFlowOffer", parent: "CancelFlow", folder: "billing", capability: "billing", unstyled: true }),
|
|
3435
|
+
part({ name: "CancelFlowEnd", parent: "CancelFlow", folder: "billing", capability: "billing", unstyled: true }),
|
|
3436
|
+
component({ name: "WithdrawalButton", folder: "billing", capability: "billing" }),
|
|
3437
|
+
component({ name: "ReferralCard", folder: "billing", capability: "billing" }),
|
|
3438
|
+
component({ name: "AdminUsers", folder: "admin", capability: "auth", lazy: true }),
|
|
3439
|
+
part({ name: "AdminUsersTable", parent: "AdminUsers", folder: "admin", capability: "auth" }),
|
|
3440
|
+
part({ name: "AdminUserDrawer", parent: "AdminUsers", folder: "admin", capability: "auth" }),
|
|
3441
|
+
component({ name: "AdminWorkspaces", folder: "admin", capability: "auth", lazy: true }),
|
|
3442
|
+
part({ name: "AdminWorkspacesTable", parent: "AdminWorkspaces", folder: "admin", capability: "auth" }),
|
|
3443
|
+
part({ name: "AdminWorkspaceDrawer", parent: "AdminWorkspaces", folder: "admin", capability: "auth" }),
|
|
3444
|
+
internal("AdminConsole", "admin", "auth"),
|
|
3445
|
+
internal("AdminFlags", "admin", "auth"),
|
|
3446
|
+
internal("AdminAccess", "admin", "auth"),
|
|
3447
|
+
internal("AdminWaitlist", "admin", "auth"),
|
|
3448
|
+
internal("AdminAnnouncements", "admin", "auth"),
|
|
3449
|
+
internal("AdminCosts", "admin", "auth"),
|
|
3450
|
+
internal("AdminAnalytics", "admin", "auth"),
|
|
3451
|
+
internal("AdminInbox", "admin", "auth"),
|
|
3452
|
+
internal("AdminReports", "admin", "auth"),
|
|
3453
|
+
internal("AdminReferrals", "admin", "auth"),
|
|
3454
|
+
internal("AdminBilling", "admin", "auth"),
|
|
3455
|
+
internal("AdminQueue", "admin", "auth"),
|
|
3456
|
+
internal("AdminWebhooks", "admin", "auth"),
|
|
3457
|
+
internal("AdminSuppressions", "admin", "auth"),
|
|
3458
|
+
internal("AdminSystem", "admin", "auth"),
|
|
3459
|
+
component({ name: "Gate", folder: "shell", capability: "auth" }),
|
|
3460
|
+
component({ name: "BackendNotices", folder: "shell", capability: "auth" }),
|
|
3461
|
+
component({ name: "AccessDenied", folder: "shell", capability: "auth" }),
|
|
3462
|
+
component({ name: "ConnectionStatus", folder: "shell", capability: "auth" }),
|
|
3463
|
+
component({ name: "UploadField", folder: "shell", capability: "auth" }),
|
|
3464
|
+
component({ name: "NotificationInbox", folder: "shell", capability: "notifications" }),
|
|
3465
|
+
part({ name: "NotificationInboxBell", parent: "NotificationInbox", folder: "shell", capability: "notifications", unstyled: true }),
|
|
3466
|
+
part({ name: "NotificationInboxItem", parent: "NotificationInbox", folder: "shell", capability: "notifications", unstyled: true }),
|
|
3467
|
+
component({ name: "ContactForm", folder: "shell", capability: "auth" }),
|
|
3468
|
+
component({ name: "AppShell", folder: "shell", capability: "auth" }),
|
|
3469
|
+
part({ name: "AccountMenu", parent: "AppShell", folder: "shell", capability: "auth" }),
|
|
3470
|
+
part({ name: "WorkspaceSwitcher", parent: "AppShell", folder: "shell", capability: "auth" }),
|
|
3471
|
+
component({ name: "AiLabel", folder: "shell", capability: "auth" }),
|
|
3472
|
+
internal("ErrorPage", "shell", "auth", { unstyled: true }),
|
|
3473
|
+
internal("PageFrame", "shell", "auth")
|
|
3474
|
+
];
|
|
3475
|
+
const REGISTERED_UI = UI_ENTRIES.filter((entry) => entry.kind !== "internal");
|
|
3476
|
+
UI_ENTRIES.filter((entry) => entry.kind === "part");
|
|
3477
|
+
function uiPath(entry) {
|
|
3478
|
+
return `${entry.folder}/${entry.name}`;
|
|
3479
|
+
}
|
|
3480
|
+
function uiEntry(name) {
|
|
3481
|
+
return UI_ENTRIES.find((entry) => entry.name === name);
|
|
3482
|
+
}
|
|
3483
|
+
const UI_INTERNALS = [
|
|
3484
|
+
internal("NoticeImpersonation", "shell", "auth"),
|
|
3485
|
+
internal("NoticeMaintenance", "shell", "auth"),
|
|
3486
|
+
internal("NoticeLowCredits", "shell", "billing"),
|
|
3487
|
+
internal("NoticeGift", "shell", "billing"),
|
|
3488
|
+
internal("NoticeAnnouncement", "shell", "auth"),
|
|
3489
|
+
internal("NoticePastDue", "shell", "billing"),
|
|
3490
|
+
internal("GiftList", "billing", "billing"),
|
|
3491
|
+
internal("GiftReceived", "billing", "billing", { unstyled: true }),
|
|
3492
|
+
internal("GiftSent", "billing", "billing", { unstyled: true }),
|
|
3493
|
+
internal("GateQuota", "shell", "billing"),
|
|
3494
|
+
internal("ListPager", "shell", "auth"),
|
|
3495
|
+
internal("ConfirmDialog", "shell", "auth"),
|
|
3496
|
+
internal("AccessDeniedPage", "shell", "auth"),
|
|
3497
|
+
internal("FrameConnectionStatus", "shell", "auth"),
|
|
3498
|
+
internal("CancelConfirmGroup", "billing", "billing"),
|
|
3499
|
+
internal("PricingPromotion", "billing", "billing"),
|
|
3500
|
+
internal("PagedList", "shell", "auth"),
|
|
3501
|
+
internal("FrameMain", "shell", "auth"),
|
|
3502
|
+
internal("AdminListFrame", "admin", "auth"),
|
|
3503
|
+
internal("AdminDrawerFrame", "admin", "auth"),
|
|
3504
|
+
internal("AdminListTail", "admin", "auth"),
|
|
3505
|
+
internal("AdminTabStatus", "admin", "auth"),
|
|
3506
|
+
internal("AdminTabDialogs", "admin", "auth"),
|
|
3507
|
+
internal("NoticeDeletion", "shell", "auth"),
|
|
3508
|
+
internal("WaitlistStatus", "auth", "auth"),
|
|
3509
|
+
internal("InviteRedeem", "auth", "auth"),
|
|
3510
|
+
internal("ReportNotice", "shell", "auth"),
|
|
3511
|
+
internal("ReportAppeal", "shell", "auth"),
|
|
3512
|
+
internal("LegalDocument", "shell", "auth"),
|
|
3513
|
+
internal("LegalDataMap", "shell", "auth", { unstyled: true }),
|
|
3514
|
+
internal("LegalProcessors", "shell", "auth", { unstyled: true }),
|
|
3515
|
+
internal("LegalStorage", "shell", "auth", { unstyled: true }),
|
|
3516
|
+
internal("ReferralLanding", "billing", "billing"),
|
|
3517
|
+
internal("ConsentPromptDialog", "account", "auth"),
|
|
3518
|
+
internal("ConsentPromptItem", "account", "auth"),
|
|
3519
|
+
internal("ConsentPromptAge", "account", "auth"),
|
|
3520
|
+
internal("ConsentPromptStorage", "account", "auth"),
|
|
3521
|
+
internal("OnboardingStepActions", "account", "auth", { unstyled: true }),
|
|
3522
|
+
internal("KeepAccount", "account", "auth"),
|
|
3523
|
+
internal("EmailUnsubscribe", "account", "auth"),
|
|
3524
|
+
internal("AdminAccessAdmissions", "admin", "auth"),
|
|
3525
|
+
internal("AdminAccessAdmit", "admin", "auth"),
|
|
3526
|
+
internal("AdminAccessCreate", "admin", "auth"),
|
|
3527
|
+
internal("AdminAccessInvites", "admin", "auth"),
|
|
3528
|
+
internal("AdminAccessPhase", "admin", "auth"),
|
|
3529
|
+
internal("AdminAccessRevoke", "admin", "auth"),
|
|
3530
|
+
internal("AdminAccessTable", "admin", "auth"),
|
|
3531
|
+
internal("AdminWaitlistActions", "admin", "auth"),
|
|
3532
|
+
internal("AdminWaitlistFilter", "admin", "auth"),
|
|
3533
|
+
internal("AdminWaitlistSummary", "admin", "auth"),
|
|
3534
|
+
internal("AdminWaitlistTable", "admin", "auth"),
|
|
3535
|
+
internal("AdminAnnouncementsCompose", "admin", "auth"),
|
|
3536
|
+
internal("AdminAnnouncementsItem", "admin", "auth"),
|
|
3537
|
+
internal("AdminInboxMessage", "admin", "auth"),
|
|
3538
|
+
internal("AdminReportsSubject", "admin", "auth"),
|
|
3539
|
+
internal("AdminReportsNotice", "admin", "auth"),
|
|
3540
|
+
internal("AdminReportsDecision", "admin", "auth"),
|
|
3541
|
+
internal("AdminReportsAppeal", "admin", "auth"),
|
|
3542
|
+
internal("AdminQueueControls", "admin", "auth"),
|
|
3543
|
+
internal("AdminQueueJob", "admin", "auth"),
|
|
3544
|
+
internal("AdminQueueJobs", "admin", "auth"),
|
|
3545
|
+
internal("AdminQueueModels", "admin", "auth"),
|
|
3546
|
+
internal("AdminQueueTier", "admin", "auth"),
|
|
3547
|
+
internal("AdminQueueTiers", "admin", "auth"),
|
|
3548
|
+
internal("AdminRevenue", "admin", "billing"),
|
|
3549
|
+
internal("AdminChart", "admin", "auth"),
|
|
3550
|
+
internal("AdminGrowth", "admin", "auth"),
|
|
3551
|
+
internal("AdminExperiments", "admin", "auth")
|
|
3552
|
+
];
|
|
3553
|
+
const UI_SHARED_STYLES = [
|
|
3554
|
+
{ file: "tokens.css", capability: "auth" },
|
|
3555
|
+
{ file: "shared.css", capability: "auth" },
|
|
3556
|
+
{ file: "admin/admin.css", capability: "auth" }
|
|
3557
|
+
];
|
|
3558
|
+
|
|
3559
|
+
export { REQUIRED_DEPLOYMENT_ENV as $, configuredDeployment as A, BACKEND_ENV_NAMES as B, CAPABILITY_STATES as C, DERIVED_DEPLOYMENT_ENV as D, isDevDeploymentId as E, computeDeployment as F, appMonitoringDsn as G, monitoringSdkInstalled as H, detectCapabilities as I, DEPLOYMENT_KIND_LABEL as J, CAPABILITY_NAMES as K, uiPath as L, MCP_SDK as M, BACKEND_PAGE_DEFS as N, installedVersion as O, packageDir as P, uiEntry as Q, REGISTERED_UI as R, ConvexCliError as S, agentsMdVersion as T, packageVersion as U, doctorReport as V, formatPreflightSummary as W, runEnvPush as X, devPushRefusal as Y, collectPreflightFindings as Z, OPTIONAL_DEPLOYMENT_ENV as _, deploymentEnvNames as a, applyProductionPosture as a$, deriveDeploymentUrls as a0, provisionedEnvNames as a1, appComponentIsStarter as a2, resolveSiteUrl as a3, needsSetup as a4, AGENT_HINT as a5, HEALTH_ROUTE as a6, LOCAL_LOG_ROUTE as a7, SOURCE_MAP_ENV as a8, MONITORING_SDK as a9, BACKEND_ENV as aA, capabilityOfEnv as aB, REMOVED_DEPLOYMENT_ENV as aC, CAPABILITIES as aD, mountPagesInAppComponent as aE, ensureDefaultLayout as aF, writeAgentFiles as aG, isDevDeployment as aH, RPC_NAMESPACE as aI, DEVTOOLS_UI_ROUTE as aJ, DEVTOOLS_UI_LOCAL_PORT as aK, envNames as aL, DEV_ONLY_DEPLOYMENT_ENV as aM, DEV_SITE_URL as aN, finding as aO, parseBackendEnvironment as aP, proofKeys as aQ, TEST_CHALLENGE_SITE_KEYS as aR, deploymentEnvId as aS, protectionTakes as aT, TEST_CHALLENGE_SECRET_KEYS as aU, PROTECTED_AUTH_ROUTES as aV, PROOF_HEADER as aW, signProof as aX, proofAudience as aY, deploymentSiteOrigin as aZ, isLocalDeploymentId as a_, pagesOptionProblems as aa, resolvedBackendPages as ab, DEFAULT_AUTH_ROUTE as ac, publishedBackendPages as ad, isPageOff as ae, privatePagePaths as af, collectExistingPagePaths as ag, adoptChildPages as ah, pageRouteRules as ai, cachingRulesOver as aj, PUSH_WORKER_URL as ak, ownsManifest as al, MANIFEST_MODULES as am, installableGaps as an, webAppManifest as ao, MANIFEST_ROUTE as ap, UI_SHARED_STYLES as aq, UI_ENTRIES as ar, UI_INTERNALS as as, moduleDir as at, VISITOR_IP_ROUTE as au, resolvePagePath as av, dependencyRange as aw, runsFromSource as ax, resolveConvexCli as ay, RECENT_SIGN_IN_SECONDS as az, deploymentBackendEnvironment as b, capabilityOfGroup as b0, agentFilesFinding as b1, pinnedRegion as b2, namedModels as b3, usesProvenance as b4, monitoringDsnFinding as b5, monitoringFindings as b6, usageAlertsFinding as b7, readUsageLimits as b8, billingWebhookSecretHint as b9, BACKEND_PATH_KEYS as ba, pathOption as bb, aiFeatures as bc, pathsFileFinding as bd, brandFileFinding as be, installableFinding as bf, mountsComponent as bg, isEnvProvisioned as bh, markEnvProvisioned as bi, readSource as bj, parse as bk, keyOf as bl, writeSource as bm, REMOVED_ENV as bn, applyEdits as bo, walk as bp, BACKEND_FILE_TEMPLATES as bq, billingEnvironment as c, deploymentFunctionSpec as d, readTextIfPresent as e, runConvex as f, deploymentFlags as g, readEnvFiles as h, isHttpUrl as i, deployKeyType as j, executeEnvPush as k, generateAuthSecret as l, setDeploymentEnv as m, isLoopbackUrl as n, nonProductionDeployKey as o, spawnConvex as p, scaffoldBackendFiles as q, resolveFunctionsDir as r, siteFromCloudUrl as s, pathsSourceOf as t, syncPathsFile as u, backendPathsOf as v, pathsFileLocation as w, appBrandOf as x, syncBrandFile as y, brandFileLocation as z };
|