nuxt-backend 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -6
- package/dist/capabilities/detect.js +16 -7
- package/dist/capabilities/gateway-route.js +24 -0
- package/dist/capabilities/registry.js +3 -2
- package/dist/capabilities/status.js +3 -1
- package/dist/chunks/catalog.mjs +1 -1
- package/dist/chunks/doctor.mjs +498 -67
- package/dist/chunks/email-previews.mjs +1 -1
- package/dist/chunks/health.mjs +2 -2
- package/dist/chunks/index.mjs +3 -3
- package/dist/chunks/install.mjs +4 -4
- package/dist/chunks/run.mjs +1 -1
- package/dist/chunks/server.mjs +8 -6
- package/dist/cli.mjs +394 -39
- package/dist/convex/access-tickets.d.ts +20 -1
- package/dist/convex/access-tickets.d.ts.map +1 -1
- package/dist/convex/access-tickets.js +28 -0
- package/dist/convex/access-tickets.js.map +1 -1
- package/dist/convex/account-data.d.ts +25 -3
- package/dist/convex/account-data.d.ts.map +1 -1
- package/dist/convex/account-data.js +26 -3
- package/dist/convex/account-data.js.map +1 -1
- package/dist/convex/app.d.ts +15 -2
- package/dist/convex/app.d.ts.map +1 -1
- package/dist/convex/app.js +16 -2
- package/dist/convex/app.js.map +1 -1
- package/dist/convex/billing-launch.d.ts +36 -0
- package/dist/convex/billing-launch.d.ts.map +1 -0
- package/dist/convex/billing-launch.js +18 -0
- package/dist/convex/billing-launch.js.map +1 -0
- package/dist/convex/catalog.d.ts +16 -2
- package/dist/convex/catalog.d.ts.map +1 -1
- package/dist/convex/catalog.js.map +1 -1
- package/dist/convex/client/code-binding.js +1 -1
- package/dist/convex/client/component.d.ts.map +1 -1
- package/dist/convex/client/guards.js +3 -3
- package/dist/convex/client/guards.js.map +1 -1
- package/dist/convex/client/index.d.ts +94 -40
- package/dist/convex/client/index.d.ts.map +1 -1
- package/dist/convex/client/index.js +4 -3
- package/dist/convex/client/index.js.map +1 -1
- package/dist/convex/client/plugins.d.ts +67 -30
- package/dist/convex/client/plugins.d.ts.map +1 -1
- package/dist/convex/client/plugins.js +43 -19
- package/dist/convex/client/plugins.js.map +1 -1
- package/dist/convex/components/backend/_generated/api.d.ts +2 -0
- package/dist/convex/components/backend/_generated/api.d.ts.map +1 -1
- package/dist/convex/components/backend/_generated/api.js.map +1 -1
- package/dist/convex/components/backend/_generated/component.d.ts +454 -4
- package/dist/convex/components/backend/_generated/component.d.ts.map +1 -1
- package/dist/convex/components/backend/access.d.ts +47 -6
- package/dist/convex/components/backend/access.d.ts.map +1 -1
- package/dist/convex/components/backend/access.js +108 -16
- package/dist/convex/components/backend/access.js.map +1 -1
- package/dist/convex/components/backend/account.d.ts +6 -0
- package/dist/convex/components/backend/account.d.ts.map +1 -1
- package/dist/convex/components/backend/account.js +49 -2
- package/dist/convex/components/backend/account.js.map +1 -1
- package/dist/convex/components/backend/adapter.d.ts +1 -1
- package/dist/convex/components/backend/adapter.d.ts.map +1 -1
- package/dist/convex/components/backend/adapter.js +1 -1
- package/dist/convex/components/backend/adapter.js.map +1 -1
- package/dist/convex/components/backend/billing.d.ts +22 -1
- package/dist/convex/components/backend/billing.d.ts.map +1 -1
- package/dist/convex/components/backend/billing.js +77 -12
- package/dist/convex/components/backend/billing.js.map +1 -1
- package/dist/convex/components/backend/costs.d.ts +1 -1
- package/dist/convex/components/backend/crons.d.ts.map +1 -1
- package/dist/convex/components/backend/crons.js +3 -0
- package/dist/convex/components/backend/crons.js.map +1 -1
- package/dist/convex/components/backend/funnel.d.ts +2 -2
- package/dist/convex/components/backend/gifts.d.ts +2 -2
- package/dist/convex/components/backend/gifts.js +2 -2
- package/dist/convex/components/backend/jobs.d.ts +53 -10
- package/dist/convex/components/backend/jobs.d.ts.map +1 -1
- package/dist/convex/components/backend/jobs.js +58 -13
- package/dist/convex/components/backend/jobs.js.map +1 -1
- package/dist/convex/components/backend/maintenance.d.ts +2 -2
- package/dist/convex/components/backend/maintenance.d.ts.map +1 -1
- package/dist/convex/components/backend/maintenance.js +11 -1
- package/dist/convex/components/backend/maintenance.js.map +1 -1
- package/dist/convex/components/backend/moderation.d.ts +94 -0
- package/dist/convex/components/backend/moderation.d.ts.map +1 -0
- package/dist/convex/components/backend/moderation.js +53 -0
- package/dist/convex/components/backend/moderation.js.map +1 -0
- package/dist/convex/components/backend/schema.d.ts +397 -24
- package/dist/convex/components/backend/schema.d.ts.map +1 -1
- package/dist/convex/components/backend/schema.js +108 -4
- package/dist/convex/components/backend/schema.js.map +1 -1
- package/dist/convex/components/backend/storage.d.ts +19 -0
- package/dist/convex/components/backend/storage.d.ts.map +1 -1
- package/dist/convex/components/backend/storage.js +57 -0
- package/dist/convex/components/backend/storage.js.map +1 -1
- package/dist/convex/components/backend/subscriptions.d.ts +1 -1
- package/dist/convex/components/backend/subscriptions.js +1 -1
- package/dist/convex/components/backend/subscriptions.js.map +1 -1
- package/dist/convex/constants.d.ts +19 -4
- package/dist/convex/constants.d.ts.map +1 -1
- package/dist/convex/constants.js +19 -4
- package/dist/convex/constants.js.map +1 -1
- package/dist/convex/email-templates.d.ts +56 -6
- package/dist/convex/email-templates.d.ts.map +1 -1
- package/dist/convex/email-templates.js +69 -14
- package/dist/convex/email-templates.js.map +1 -1
- package/dist/convex/emails/notification.d.ts +9 -0
- package/dist/convex/emails/notification.d.ts.map +1 -0
- package/dist/convex/emails/notification.js +21 -0
- package/dist/convex/emails/notification.js.map +1 -0
- package/dist/convex/errors.d.ts +8 -3
- package/dist/convex/errors.d.ts.map +1 -1
- package/dist/convex/errors.js +55 -7
- package/dist/convex/errors.js.map +1 -1
- package/dist/convex/events.d.ts +4 -4
- package/dist/convex/events.js +4 -4
- package/dist/convex/events.js.map +1 -1
- package/dist/convex/files.d.ts +30 -4
- package/dist/convex/files.d.ts.map +1 -1
- package/dist/convex/files.js +44 -6
- package/dist/convex/files.js.map +1 -1
- package/dist/convex/integrations/account.d.ts +7 -0
- package/dist/convex/integrations/account.d.ts.map +1 -1
- package/dist/convex/integrations/account.js +2 -0
- package/dist/convex/integrations/account.js.map +1 -1
- package/dist/convex/integrations/ai/chat.js +9 -9
- package/dist/convex/integrations/ai/chat.js.map +1 -1
- package/dist/convex/integrations/ai/config.d.ts +157 -37
- package/dist/convex/integrations/ai/config.d.ts.map +1 -1
- package/dist/convex/integrations/ai/context.d.ts +3 -0
- package/dist/convex/integrations/ai/context.d.ts.map +1 -1
- package/dist/convex/integrations/ai/context.js +4 -3
- package/dist/convex/integrations/ai/context.js.map +1 -1
- package/dist/convex/integrations/ai/costs.d.ts.map +1 -1
- package/dist/convex/integrations/ai/costs.js +49 -2
- package/dist/convex/integrations/ai/costs.js.map +1 -1
- package/dist/convex/integrations/ai/embeddings.d.ts +6 -6
- package/dist/convex/integrations/ai/embeddings.d.ts.map +1 -1
- package/dist/convex/integrations/ai/embeddings.js +17 -30
- package/dist/convex/integrations/ai/embeddings.js.map +1 -1
- package/dist/convex/integrations/ai/images.d.ts +25 -0
- package/dist/convex/integrations/ai/images.d.ts.map +1 -0
- package/dist/convex/integrations/ai/images.js +104 -0
- package/dist/convex/integrations/ai/images.js.map +1 -0
- package/dist/convex/integrations/ai/job-errors.d.ts +12 -0
- package/dist/convex/integrations/ai/job-errors.d.ts.map +1 -1
- package/dist/convex/integrations/ai/job-errors.js +18 -2
- package/dist/convex/integrations/ai/job-errors.js.map +1 -1
- package/dist/convex/integrations/ai/jobs.d.ts +176 -10
- package/dist/convex/integrations/ai/jobs.d.ts.map +1 -1
- package/dist/convex/integrations/ai/jobs.js +336 -70
- package/dist/convex/integrations/ai/jobs.js.map +1 -1
- package/dist/convex/integrations/ai/knowledge.d.ts.map +1 -1
- package/dist/convex/integrations/ai/knowledge.js +10 -11
- package/dist/convex/integrations/ai/knowledge.js.map +1 -1
- package/dist/convex/integrations/ai/metering.d.ts +15 -5
- package/dist/convex/integrations/ai/metering.d.ts.map +1 -1
- package/dist/convex/integrations/ai/metering.js +73 -26
- package/dist/convex/integrations/ai/metering.js.map +1 -1
- package/dist/convex/integrations/ai/model-id.d.ts +14 -1
- package/dist/convex/integrations/ai/model-id.d.ts.map +1 -1
- package/dist/convex/integrations/ai/model-id.js +24 -2
- package/dist/convex/integrations/ai/model-id.js.map +1 -1
- package/dist/convex/integrations/ai/models.d.ts +103 -20
- package/dist/convex/integrations/ai/models.d.ts.map +1 -1
- package/dist/convex/integrations/ai/models.js +220 -45
- package/dist/convex/integrations/ai/models.js.map +1 -1
- package/dist/convex/integrations/ai/moderation-providers.d.ts +136 -0
- package/dist/convex/integrations/ai/moderation-providers.d.ts.map +1 -0
- package/dist/convex/integrations/ai/moderation-providers.js +277 -0
- package/dist/convex/integrations/ai/moderation-providers.js.map +1 -0
- package/dist/convex/integrations/ai/moderation-taxonomy.d.ts +54 -0
- package/dist/convex/integrations/ai/moderation-taxonomy.d.ts.map +1 -0
- package/dist/convex/integrations/ai/moderation-taxonomy.js +141 -0
- package/dist/convex/integrations/ai/moderation-taxonomy.js.map +1 -0
- package/dist/convex/integrations/ai/moderation.d.ts +218 -19
- package/dist/convex/integrations/ai/moderation.d.ts.map +1 -1
- package/dist/convex/integrations/ai/moderation.js +359 -37
- package/dist/convex/integrations/ai/moderation.js.map +1 -1
- package/dist/convex/integrations/ai/provenance.d.ts +6 -0
- package/dist/convex/integrations/ai/provenance.d.ts.map +1 -1
- package/dist/convex/integrations/ai/provenance.js +4 -1
- package/dist/convex/integrations/ai/provenance.js.map +1 -1
- package/dist/convex/integrations/ai/setup.js +5 -5
- package/dist/convex/integrations/ai/setup.js.map +1 -1
- package/dist/convex/integrations/ai/stream.d.ts +1 -1
- package/dist/convex/integrations/ai/stream.d.ts.map +1 -1
- package/dist/convex/integrations/ai/stream.js +4 -2
- package/dist/convex/integrations/ai/stream.js.map +1 -1
- package/dist/convex/integrations/ai.d.ts +15 -8
- package/dist/convex/integrations/ai.d.ts.map +1 -1
- package/dist/convex/integrations/ai.js +4 -1
- package/dist/convex/integrations/ai.js.map +1 -1
- package/dist/convex/integrations/billing/checkout.d.ts +1 -1
- package/dist/convex/integrations/billing/checkout.d.ts.map +1 -1
- package/dist/convex/integrations/billing/checkout.js +4 -4
- package/dist/convex/integrations/billing/checkout.js.map +1 -1
- package/dist/convex/integrations/billing/context.d.ts +8 -0
- package/dist/convex/integrations/billing/context.d.ts.map +1 -1
- package/dist/convex/integrations/billing/context.js +20 -1
- package/dist/convex/integrations/billing/context.js.map +1 -1
- package/dist/convex/integrations/billing/credits.d.ts +6 -0
- package/dist/convex/integrations/billing/credits.d.ts.map +1 -1
- package/dist/convex/integrations/billing/credits.js +21 -6
- package/dist/convex/integrations/billing/credits.js.map +1 -1
- package/dist/convex/integrations/billing/features.d.ts.map +1 -1
- package/dist/convex/integrations/billing/free-plan.d.ts +41 -1
- package/dist/convex/integrations/billing/free-plan.d.ts.map +1 -1
- package/dist/convex/integrations/billing/free-plan.js +92 -29
- package/dist/convex/integrations/billing/free-plan.js.map +1 -1
- package/dist/convex/integrations/billing/functions.d.ts +7 -3
- package/dist/convex/integrations/billing/functions.d.ts.map +1 -1
- package/dist/convex/integrations/billing/functions.js +18 -8
- package/dist/convex/integrations/billing/functions.js.map +1 -1
- package/dist/convex/integrations/billing/gifts.d.ts +4 -0
- package/dist/convex/integrations/billing/gifts.d.ts.map +1 -1
- package/dist/convex/integrations/billing/gifts.js +37 -6
- package/dist/convex/integrations/billing/gifts.js.map +1 -1
- package/dist/convex/integrations/billing/history.d.ts.map +1 -1
- package/dist/convex/integrations/billing/lifecycle.d.ts +9 -3
- package/dist/convex/integrations/billing/lifecycle.d.ts.map +1 -1
- package/dist/convex/integrations/billing/lifecycle.js +15 -6
- package/dist/convex/integrations/billing/lifecycle.js.map +1 -1
- package/dist/convex/integrations/billing/passes.js +2 -2
- package/dist/convex/integrations/billing/pricing.d.ts +9 -2
- package/dist/convex/integrations/billing/pricing.d.ts.map +1 -1
- package/dist/convex/integrations/billing/pricing.js +38 -4
- package/dist/convex/integrations/billing/pricing.js.map +1 -1
- package/dist/convex/integrations/billing/quotas.d.ts.map +1 -1
- package/dist/convex/integrations/billing/rate-limit.d.ts +16 -0
- package/dist/convex/integrations/billing/rate-limit.d.ts.map +1 -0
- package/dist/convex/integrations/billing/rate-limit.js +45 -0
- package/dist/convex/integrations/billing/rate-limit.js.map +1 -0
- package/dist/convex/integrations/billing/referral-orders.d.ts +1 -1
- package/dist/convex/integrations/billing/referral-orders.js +1 -1
- package/dist/convex/integrations/billing/resync.d.ts +28 -0
- package/dist/convex/integrations/billing/resync.d.ts.map +1 -0
- package/dist/convex/integrations/billing/resync.js +139 -0
- package/dist/convex/integrations/billing/resync.js.map +1 -0
- package/dist/convex/integrations/billing/subscriptions.d.ts +1 -1
- package/dist/convex/integrations/billing/subscriptions.d.ts.map +1 -1
- package/dist/convex/integrations/billing/subscriptions.js +6 -2
- package/dist/convex/integrations/billing/subscriptions.js.map +1 -1
- package/dist/convex/integrations/billing/types/lifecycle.d.ts +1 -1
- package/dist/convex/integrations/billing/types/records.d.ts +68 -3
- package/dist/convex/integrations/billing/types/records.d.ts.map +1 -1
- package/dist/convex/integrations/billing/types/setup.d.ts +9 -4
- package/dist/convex/integrations/billing/types/setup.d.ts.map +1 -1
- package/dist/convex/integrations/billing/types/surface.d.ts +38 -5
- package/dist/convex/integrations/billing/types/surface.d.ts.map +1 -1
- package/dist/convex/integrations/billing/webhooks.js +2 -2
- package/dist/convex/integrations/billing/welcome.d.ts +16 -0
- package/dist/convex/integrations/billing/welcome.d.ts.map +1 -0
- package/dist/convex/integrations/billing/welcome.js +93 -0
- package/dist/convex/integrations/billing/welcome.js.map +1 -0
- package/dist/convex/integrations/billing.d.ts +3 -2
- package/dist/convex/integrations/billing.d.ts.map +1 -1
- package/dist/convex/integrations/billing.js +17 -5
- package/dist/convex/integrations/billing.js.map +1 -1
- package/dist/convex/integrations/email.d.ts +17 -3
- package/dist/convex/integrations/email.d.ts.map +1 -1
- package/dist/convex/integrations/email.js.map +1 -1
- package/dist/convex/integrations/functions.d.ts +2 -2
- package/dist/convex/integrations/functions.d.ts.map +1 -1
- package/dist/convex/integrations/functions.js +1 -1
- package/dist/convex/integrations/functions.js.map +1 -1
- package/dist/convex/integrations/launch.d.ts +108 -3
- package/dist/convex/integrations/launch.d.ts.map +1 -1
- package/dist/convex/integrations/launch.js +143 -22
- package/dist/convex/integrations/launch.js.map +1 -1
- package/dist/convex/integrations/notifications.d.ts +6 -2
- package/dist/convex/integrations/notifications.d.ts.map +1 -1
- package/dist/convex/integrations/notifications.js +13 -15
- package/dist/convex/integrations/notifications.js.map +1 -1
- package/dist/convex/integrations/rate-limit.d.ts +18 -0
- package/dist/convex/integrations/rate-limit.d.ts.map +1 -1
- package/dist/convex/integrations/rate-limit.js +18 -3
- package/dist/convex/integrations/rate-limit.js.map +1 -1
- package/dist/convex/integrations/reports.d.ts +4 -1
- package/dist/convex/integrations/reports.d.ts.map +1 -1
- package/dist/convex/integrations/reports.js +14 -3
- package/dist/convex/integrations/reports.js.map +1 -1
- package/dist/convex/integrations/retention.d.ts +42 -4
- package/dist/convex/integrations/retention.d.ts.map +1 -1
- package/dist/convex/integrations/retention.js +62 -4
- package/dist/convex/integrations/retention.js.map +1 -1
- package/dist/convex/integrations/storage.d.ts +71 -3
- package/dist/convex/integrations/storage.d.ts.map +1 -1
- package/dist/convex/integrations/storage.js +22 -4
- package/dist/convex/integrations/storage.js.map +1 -1
- package/dist/convex/label-format.d.ts +2 -2
- package/dist/convex/label-format.d.ts.map +1 -1
- package/dist/convex/label-format.js +2 -2
- package/dist/convex/label-format.js.map +1 -1
- package/dist/convex/label-groups/admin.d.ts +27 -0
- package/dist/convex/label-groups/admin.d.ts.map +1 -1
- package/dist/convex/label-groups/admin.js +28 -0
- package/dist/convex/label-groups/admin.js.map +1 -1
- package/dist/convex/label-groups/cancelFlow.d.ts +1 -1
- package/dist/convex/label-groups/cancelFlow.js +2 -2
- package/dist/convex/label-groups/cancelFlow.js.map +1 -1
- package/dist/convex/label-groups/email.d.ts.map +1 -1
- package/dist/convex/label-groups/email.js +2 -1
- package/dist/convex/label-groups/email.js.map +1 -1
- package/dist/convex/label-groups/errors.d.ts +4 -0
- package/dist/convex/label-groups/errors.d.ts.map +1 -1
- package/dist/convex/label-groups/errors.js +6 -1
- package/dist/convex/label-groups/errors.js.map +1 -1
- package/dist/convex/label-groups/gift.d.ts +2 -0
- package/dist/convex/label-groups/gift.d.ts.map +1 -1
- package/dist/convex/label-groups/gift.js +5 -2
- package/dist/convex/label-groups/gift.js.map +1 -1
- package/dist/convex/label-groups/legal.d.ts +27 -1
- package/dist/convex/label-groups/legal.d.ts.map +1 -1
- package/dist/convex/label-groups/legal.js +31 -0
- package/dist/convex/label-groups/legal.js.map +1 -1
- package/dist/convex/label-groups/notifications.d.ts +3 -1
- package/dist/convex/label-groups/notifications.d.ts.map +1 -1
- package/dist/convex/label-groups/notifications.js +5 -3
- package/dist/convex/label-groups/notifications.js.map +1 -1
- package/dist/convex/label-groups/pastDue.d.ts +1 -1
- package/dist/convex/label-groups/pastDue.d.ts.map +1 -1
- package/dist/convex/label-groups/pastDue.js +1 -1
- package/dist/convex/label-groups/pastDue.js.map +1 -1
- package/dist/convex/label-groups/pricing.d.ts +2 -0
- package/dist/convex/label-groups/pricing.d.ts.map +1 -1
- package/dist/convex/label-groups/pricing.js +4 -0
- package/dist/convex/label-groups/pricing.js.map +1 -1
- package/dist/convex/label-groups/referral.d.ts +2 -2
- package/dist/convex/label-groups/referral.js +2 -2
- package/dist/convex/label-groups/report.d.ts +8 -1
- package/dist/convex/label-groups/report.d.ts.map +1 -1
- package/dist/convex/label-groups/report.js +10 -1
- package/dist/convex/label-groups/report.js.map +1 -1
- package/dist/convex/label-groups/upload.d.ts +1 -0
- package/dist/convex/label-groups/upload.d.ts.map +1 -1
- package/dist/convex/label-groups/upload.js +2 -0
- package/dist/convex/label-groups/upload.js.map +1 -1
- package/dist/convex/label-groups/withdrawal.d.ts +1 -1
- package/dist/convex/label-groups/withdrawal.js +1 -1
- package/dist/convex/label-translations.d.ts.map +1 -1
- package/dist/convex/label-translations.js +94 -34
- package/dist/convex/label-translations.js.map +1 -1
- package/dist/convex/labels.d.ts +100 -1
- package/dist/convex/labels.d.ts.map +1 -1
- package/dist/convex/legal.d.ts +12 -2
- package/dist/convex/legal.d.ts.map +1 -1
- package/dist/convex/legal.js +2 -2
- package/dist/convex/legal.js.map +1 -1
- package/dist/convex/log.js +12 -1
- package/dist/convex/log.js.map +1 -1
- package/dist/convex/monitoring.d.ts +6 -4
- package/dist/convex/monitoring.d.ts.map +1 -1
- package/dist/convex/monitoring.js +6 -4
- package/dist/convex/monitoring.js.map +1 -1
- package/dist/convex/report-rules.d.ts +2 -0
- package/dist/convex/report-rules.d.ts.map +1 -1
- package/dist/convex/report-rules.js +2 -0
- package/dist/convex/report-rules.js.map +1 -1
- package/dist/convex/sensitive-actions.d.ts.map +1 -1
- package/dist/convex/sensitive-actions.js +1 -0
- package/dist/convex/sensitive-actions.js.map +1 -1
- package/dist/convex/test-models.d.ts +7 -0
- package/dist/convex/test-models.d.ts.map +1 -1
- package/dist/convex/test-models.js +25 -2
- package/dist/convex/test-models.js.map +1 -1
- package/dist/convex/test-moderation.d.ts +24 -0
- package/dist/convex/test-moderation.d.ts.map +1 -0
- package/dist/convex/test-moderation.js +114 -0
- package/dist/convex/test-moderation.js.map +1 -0
- package/dist/devtools-client/_nuxt/CiCAOwUc.js +5 -0
- package/dist/devtools-client/index.html +1 -1
- package/dist/env-registry.js +37 -5
- package/dist/module.d.ts +51 -1
- package/dist/module.js +2 -2
- package/dist/module.json +1 -1
- package/dist/runtime/config.d.ts +95 -14
- package/dist/runtime/config.js +13 -1
- package/dist/runtime/locales/de.json +95 -19
- package/dist/runtime/locales/en.json +93 -17
- package/dist/runtime/locales/es.json +93 -17
- package/dist/runtime/locales/fr.json +93 -17
- package/dist/runtime/locales/ru.json +93 -17
- package/dist/runtime/monitoring/sdk/sentry.client.config.js +2 -1
- package/dist/runtime/monitoring/sdk/sentry.server.config.js +6 -1
- package/dist/runtime/server/content-wasm.d.ts +13 -0
- package/dist/runtime/server/content-wasm.js +9 -0
- package/dist/runtime/server/csp.d.ts +17 -0
- package/dist/runtime/server/csp.js +18 -0
- package/dist/runtime/server/monitoring/csp.d.ts +12 -0
- package/dist/runtime/server/monitoring/csp.js +19 -0
- package/dist/runtime/server/protection/csp.d.ts +1 -7
- package/dist/runtime/server/protection/csp.js +4 -17
- package/dist/runtime/test-utils/aliases.d.ts +6 -4
- package/dist/runtime/test-utils/aliases.js +3 -9
- package/dist/runtime/test-utils/base-modules.d.ts +9 -13
- package/dist/runtime/test-utils/install.js +4 -2
- package/dist/runtime/vue/a11y.js +1 -1
- package/dist/runtime/vue/auth-client.d.ts +8 -5
- package/dist/runtime/vue/components/account/AccountData.vue +2 -0
- package/dist/runtime/vue/components/account/AccountDeletion.css +1 -1
- package/dist/runtime/vue/components/account/ActivationChecklist.css +1 -1
- package/dist/runtime/vue/components/account/ActivationChecklist.vue +1 -0
- package/dist/runtime/vue/components/account/ConsentPrompt.css +1 -1
- package/dist/runtime/vue/components/account/ConsentPromptDialog.vue +1 -0
- package/dist/runtime/vue/components/account/ConsentPromptStorage.vue +1 -0
- package/dist/runtime/vue/components/account/EmailUnsubscribe.css +1 -1
- package/dist/runtime/vue/components/account/EmailUnsubscribe.vue +2 -2
- package/dist/runtime/vue/components/account/HowDidYouHear.css +1 -1
- package/dist/runtime/vue/components/account/HowDidYouHear.vue +1 -0
- package/dist/runtime/vue/components/account/KeepAccount.css +1 -1
- package/dist/runtime/vue/components/account/OnboardingFlow.css +1 -1
- package/dist/runtime/vue/components/account/OnboardingFlow.vue +1 -0
- package/dist/runtime/vue/components/account/ProfileIdentity.css +1 -1
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.css +1 -1
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.vue +3 -1
- package/dist/runtime/vue/components/account/ProfileSettings.css +1 -1
- package/dist/runtime/vue/components/account/ProfileSettings.vue +1 -0
- package/dist/runtime/vue/components/account/SecurityAlerts.css +1 -1
- package/dist/runtime/vue/components/account/SecurityAlerts.vue +2 -1
- package/dist/runtime/vue/components/account/SecurityPasskeys.css +1 -1
- package/dist/runtime/vue/components/account/SecuritySettings.css +1 -1
- package/dist/runtime/vue/components/account/SecuritySettings.vue +1 -0
- package/dist/runtime/vue/components/account/security-alerts.d.ts +7 -0
- package/dist/runtime/vue/components/account/security-alerts.js +6 -2
- package/dist/runtime/vue/components/admin/AdminAccess.css +1 -1
- package/dist/runtime/vue/components/admin/AdminAccess.vue +2 -0
- package/dist/runtime/vue/components/admin/AdminAccessMemberTickets.d.vue.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAccessMemberTickets.vue +42 -0
- package/dist/runtime/vue/components/admin/AdminAccessMemberTickets.vue.d.ts +7 -0
- package/dist/runtime/vue/components/admin/AdminAnnouncements.css +1 -1
- package/dist/runtime/vue/components/admin/AdminBilling.css +1 -1
- package/dist/runtime/vue/components/admin/AdminChart.css +1 -1
- package/dist/runtime/vue/components/admin/AdminConsole.css +1 -1
- package/dist/runtime/vue/components/admin/AdminExperiments.css +1 -1
- package/dist/runtime/vue/components/admin/AdminFlags.css +1 -1
- package/dist/runtime/vue/components/admin/AdminModeration.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminModeration.vue +135 -0
- package/dist/runtime/vue/components/admin/AdminModeration.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminQueue.css +1 -1
- package/dist/runtime/vue/components/admin/AdminReferrals.css +1 -1
- package/dist/runtime/vue/components/admin/AdminReports.css +1 -1
- package/dist/runtime/vue/components/admin/AdminRevenue.css +1 -1
- package/dist/runtime/vue/components/admin/AdminUsers.d.vue.ts +27 -0
- package/dist/runtime/vue/components/admin/AdminUsers.vue +1 -0
- package/dist/runtime/vue/components/admin/AdminUsers.vue.d.ts +27 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.d.vue.ts +27 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.vue +1 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.vue.d.ts +27 -0
- package/dist/runtime/vue/components/admin/admin-moderation-tab.d.ts +1 -0
- package/dist/runtime/vue/components/admin/admin-moderation-tab.js +34 -0
- package/dist/runtime/vue/components/admin/admin-tabs.js +2 -0
- package/dist/runtime/vue/components/admin/admin.css +1 -1
- package/dist/runtime/vue/components/auth/AuthForm.css +1 -1
- package/dist/runtime/vue/components/auth/AuthForm.vue +3 -2
- package/dist/runtime/vue/components/auth/AuthFormChoose.css +1 -1
- package/dist/runtime/vue/components/auth/AuthFormPasskeyOffer.css +1 -1
- package/dist/runtime/vue/components/auth/InviteRedeem.css +1 -1
- package/dist/runtime/vue/components/auth/ReauthenticateCode.css +1 -1
- package/dist/runtime/vue/components/auth/ReauthenticateDialog.css +1 -1
- package/dist/runtime/vue/components/auth/ReauthenticateDialog.vue +3 -2
- package/dist/runtime/vue/components/auth/WaitlistForm.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistForm.vue +1 -0
- package/dist/runtime/vue/components/auth/WaitlistPlace.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistShare.css +1 -1
- package/dist/runtime/vue/components/billing/BillingCheckoutLink.vue +2 -0
- package/dist/runtime/vue/components/billing/BillingHistory.css +1 -1
- package/dist/runtime/vue/components/billing/BillingHistory.vue +1 -0
- package/dist/runtime/vue/components/billing/BillingPortalLink.vue +1 -0
- package/dist/runtime/vue/components/billing/CancelFlow.css +1 -1
- package/dist/runtime/vue/components/billing/CancelFlow.vue +1 -0
- package/dist/runtime/vue/components/billing/CancelFlowEnd.vue +3 -1
- package/dist/runtime/vue/components/billing/GiftList.css +1 -1
- package/dist/runtime/vue/components/billing/PricingPackCard.css +1 -1
- package/dist/runtime/vue/components/billing/PricingPlanCard.css +1 -1
- package/dist/runtime/vue/components/billing/PricingPlanCard.vue +8 -1
- package/dist/runtime/vue/components/billing/PricingTable.css +1 -1
- package/dist/runtime/vue/components/billing/PricingTable.d.vue.ts +2 -0
- package/dist/runtime/vue/components/billing/PricingTable.vue +22 -3
- package/dist/runtime/vue/components/billing/PricingTable.vue.d.ts +2 -0
- package/dist/runtime/vue/components/billing/ReferralCard.css +1 -1
- package/dist/runtime/vue/components/billing/ReferralCard.vue +1 -0
- package/dist/runtime/vue/components/billing/ReferralLanding.css +1 -1
- package/dist/runtime/vue/components/billing/UpgradePrompt.css +1 -1
- package/dist/runtime/vue/components/billing/UpgradePrompt.vue +1 -0
- package/dist/runtime/vue/components/billing/UsageHistory.css +1 -1
- package/dist/runtime/vue/components/billing/UsageHistory.vue +1 -0
- package/dist/runtime/vue/components/billing/WithdrawalButton.css +1 -1
- package/dist/runtime/vue/components/billing/WithdrawalButton.vue +1 -0
- package/dist/runtime/vue/components/billing/pricing-table.d.ts +6 -0
- package/dist/runtime/vue/components/billing/withdrawal-button.d.ts +1 -1
- package/dist/runtime/vue/components/shared.css +1 -1
- package/dist/runtime/vue/components/shell/AccessDenied.css +1 -1
- package/dist/runtime/vue/components/shell/AccessDenied.vue +1 -0
- package/dist/runtime/vue/components/shell/AccountMenu.vue +1 -0
- package/dist/runtime/vue/components/shell/AiLabel.css +1 -1
- package/dist/runtime/vue/components/shell/AiLabel.vue +4 -1
- package/dist/runtime/vue/components/shell/AppShell.css +1 -1
- package/dist/runtime/vue/components/shell/AppShell.vue +3 -0
- package/dist/runtime/vue/components/shell/BackendNotices.vue +1 -0
- package/dist/runtime/vue/components/shell/ConfirmDialog.css +1 -1
- package/dist/runtime/vue/components/shell/ConnectionStatus.css +1 -1
- package/dist/runtime/vue/components/shell/ConnectionStatus.vue +1 -0
- package/dist/runtime/vue/components/shell/ContactForm.css +1 -1
- package/dist/runtime/vue/components/shell/ContactForm.vue +1 -0
- package/dist/runtime/vue/components/shell/FrameMain.vue +2 -0
- package/dist/runtime/vue/components/shell/Gate.css +1 -1
- package/dist/runtime/vue/components/shell/Gate.vue +2 -0
- package/dist/runtime/vue/components/shell/GateQuota.vue +1 -0
- package/dist/runtime/vue/components/shell/LegalCompany.d.vue.ts +3 -0
- package/dist/runtime/vue/components/shell/LegalCompany.vue +23 -0
- package/dist/runtime/vue/components/shell/LegalCompany.vue.d.ts +3 -0
- package/dist/runtime/vue/components/shell/LegalContactPoints.d.vue.ts +10 -0
- package/dist/runtime/vue/components/shell/LegalContactPoints.vue +51 -0
- package/dist/runtime/vue/components/shell/LegalContactPoints.vue.d.ts +10 -0
- package/dist/runtime/vue/components/shell/LegalDetail.d.vue.ts +11 -0
- package/dist/runtime/vue/components/shell/LegalDetail.vue +30 -0
- package/dist/runtime/vue/components/shell/LegalDetail.vue.d.ts +11 -0
- package/dist/runtime/vue/components/shell/LegalDocument.css +1 -1
- package/dist/runtime/vue/components/shell/LegalDocument.vue +49 -13
- package/dist/runtime/vue/components/shell/LegalModeration.d.vue.ts +8 -0
- package/dist/runtime/vue/components/shell/LegalModeration.vue +72 -0
- package/dist/runtime/vue/components/shell/LegalModeration.vue.d.ts +8 -0
- package/dist/runtime/vue/components/shell/LegalProcessors.d.vue.ts +3 -2
- package/dist/runtime/vue/components/shell/LegalProcessors.vue +46 -15
- package/dist/runtime/vue/components/shell/LegalProcessors.vue.d.ts +3 -2
- package/dist/runtime/vue/components/shell/LegalStorage.d.vue.ts +3 -2
- package/dist/runtime/vue/components/shell/LegalStorage.vue +49 -16
- package/dist/runtime/vue/components/shell/LegalStorage.vue.d.ts +3 -2
- package/dist/runtime/vue/components/shell/LegalVersion.d.vue.ts +10 -0
- package/dist/runtime/vue/components/shell/LegalVersion.vue +24 -0
- package/dist/runtime/vue/components/shell/LegalVersion.vue.d.ts +10 -0
- package/dist/runtime/vue/components/shell/NoticeAnnouncement.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeDeletion.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeGift.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeGift.vue +7 -4
- package/dist/runtime/vue/components/shell/NoticeImpersonation.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeLowCredits.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeMaintenance.css +1 -1
- package/dist/runtime/vue/components/shell/NoticePastDue.css +1 -1
- package/dist/runtime/vue/components/shell/NotificationInbox.css +1 -1
- package/dist/runtime/vue/components/shell/NotificationInbox.vue +1 -0
- package/dist/runtime/vue/components/shell/ReportNotice.css +1 -1
- package/dist/runtime/vue/components/shell/UploadField.css +1 -1
- package/dist/runtime/vue/components/shell/UploadField.d.vue.ts +2 -0
- package/dist/runtime/vue/components/shell/UploadField.vue +16 -3
- package/dist/runtime/vue/components/shell/UploadField.vue.d.ts +2 -0
- package/dist/runtime/vue/components/shell/WorkspaceSwitcher.css +1 -1
- package/dist/runtime/vue/components/shell/WorkspaceSwitcher.vue +1 -0
- package/dist/runtime/vue/components/shell/legal.d.ts +35 -4
- package/dist/runtime/vue/components/shell/legal.js +126 -13
- package/dist/runtime/vue/components/shell/upload-field.d.ts +3 -1
- package/dist/runtime/vue/components/tokens.css +1 -1
- package/dist/runtime/vue/components/workspaces/AcceptInvitation.vue +1 -0
- package/dist/runtime/vue/components/workspaces/AuditLog.css +1 -1
- package/dist/runtime/vue/components/workspaces/AuditLog.vue +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.css +1 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceCredits.css +1 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceList.css +1 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.d.vue.ts +2 -2
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue.d.ts +2 -2
- package/dist/runtime/vue/composables/use-access.d.ts +51 -6
- package/dist/runtime/vue/composables/use-access.js +36 -0
- package/dist/runtime/vue/composables/use-billing.d.ts +6 -5
- package/dist/runtime/vue/composables/use-email-link.d.ts +55 -4
- package/dist/runtime/vue/composables/use-email-link.js +9 -9
- package/dist/runtime/vue/composables/use-gift-list.js +3 -1
- package/dist/runtime/vue/composables/use-labels.js +13 -8
- package/dist/runtime/vue/composables/use-login-flow.js +1 -1
- package/dist/runtime/vue/composables/use-notifications.js +3 -0
- package/dist/runtime/vue/composables/use-passkeys.js +2 -2
- package/dist/runtime/vue/composables/use-pricing.d.ts +15 -0
- package/dist/runtime/vue/composables/use-pricing.js +4 -0
- package/dist/runtime/vue/composables/use-referral-invite.d.ts +33 -4
- package/dist/runtime/vue/composables/use-referral-invite.js +20 -9
- package/dist/runtime/vue/composables/use-report-form.d.ts +178 -0
- package/dist/runtime/vue/composables/use-report-form.js +278 -0
- package/dist/runtime/vue/composables/use-sign-in-alerts.d.ts +85 -0
- package/dist/runtime/vue/composables/use-sign-in-alerts.js +70 -0
- package/dist/runtime/vue/composables/use-upload-field.d.ts +32 -6
- package/dist/runtime/vue/composables/use-upload-field.js +75 -36
- package/dist/runtime/vue/composables/use-waitlist.d.ts +8 -1
- package/dist/runtime/vue/composables/use-waitlist.js +14 -1
- package/dist/runtime/vue/pages/gifts.vue +9 -0
- package/dist/runtime/vue/passkey-ceremony.d.ts +42 -0
- package/dist/runtime/vue/passkey-ceremony.js +37 -0
- package/dist/runtime/vue/passkey-client.d.ts +11 -49
- package/dist/runtime/vue/passkey-client.js +2 -34
- package/dist/runtime/vue/plugins/checkout-return.d.ts +5 -4
- package/dist/runtime/vue/plugins/checkout-return.js +1 -1
- package/dist/runtime/vue/plugins/passkey-ceremony.d.ts +3 -1
- package/dist/runtime/vue/plugins/passkey-ceremony.js +1 -1
- package/dist/runtime/vue/protection/state.d.ts +6 -0
- package/dist/runtime/vue/utils/auth-session.js +1 -1
- package/dist/runtime/vue/utils/billing-access.d.ts +1 -1
- package/dist/runtime/vue/utils/checkout-return.d.ts +5 -4
- package/dist/runtime/vue/utils/checkout-return.js +3 -3
- package/dist/runtime/vue/utils/login-bindings.js +1 -1
- package/dist/runtime/vue/utils/page-guard.js +6 -5
- package/dist/runtime/vue/utils/passkey-prompt.d.ts +12 -0
- package/dist/runtime/vue/utils/passkey-prompt.js +8 -0
- package/dist/runtime/vue/utils/renamed-component.js +1 -1
- package/dist/shared/{nuxt-backend.KEzfHO2K.mjs → nuxt-backend.Bq_mhlky.mjs} +578 -60
- package/dist/shared/{nuxt-backend.DXEf0rrv.mjs → nuxt-backend.D9qXcOOI.mjs} +1 -1
- package/dist/shared/{nuxt-backend.ikObmtHs.mjs → nuxt-backend.DmZI-QSO.mjs} +2 -2
- package/dist/shared/{nuxt-backend.Dm1NkY7v.mjs → nuxt-backend.G4JryO1q.mjs} +144 -32
- package/dist/shared/{nuxt-backend.2m535CLS.mjs → nuxt-backend.Lk2MQI2u.mjs} +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +13 -13
- package/skills/nuxt-backend/SKILL.md +3 -3
- package/skills/nuxt-backend/references/api.md +95 -25
- package/skills/nuxt-backend/references/renames.json +114 -2054
- package/skills/nuxt-backend/references/surface.json +112 -3
- package/skills/nuxt-backend-ai/SKILL.md +13 -6
- package/skills/nuxt-backend-ai/references/api.md +21 -3
- package/skills/nuxt-backend-auth/references/api.md +20 -3
- package/skills/nuxt-backend-billing/references/api.md +20 -5
- package/skills/nuxt-backend-data/SKILL.md +3 -3
- package/skills/nuxt-backend-data/references/api.md +4 -3
- package/skills/nuxt-backend-email/references/api.md +2 -1
- package/skills/nuxt-backend-growth/references/api.md +1 -0
- package/skills/nuxt-backend-ship/SKILL.md +14 -22
- package/skills/nuxt-backend-ship/references/api.md +25 -2
- package/skills/nuxt-backend-ship/references/operate.md +28 -0
- package/skills/nuxt-backend-ui/SKILL.md +6 -2
- package/skills/nuxt-backend-upgrade/SKILL.md +16 -11
- package/skills/nuxt-backend-upgrade/references/api.md +2 -2
- package/skills/nuxt-backend-upgrade/references/upgrade.md +37 -438
- package/src/convex/access-tickets.ts +30 -1
- package/src/convex/account-data.ts +26 -3
- package/src/convex/app.ts +16 -2
- package/src/convex/billing-launch.ts +42 -0
- package/src/convex/catalog.ts +16 -2
- package/src/convex/client/code-binding.ts +1 -1
- package/src/convex/client/guards.ts +3 -3
- package/src/convex/client/index.ts +4 -3
- package/src/convex/client/plugins.ts +43 -19
- package/src/convex/components/backend/_generated/api.ts +2 -0
- package/src/convex/components/backend/_generated/component.ts +1255 -242
- package/src/convex/components/backend/access.ts +109 -16
- package/src/convex/components/backend/account.ts +48 -2
- package/src/convex/components/backend/adapter.ts +4 -0
- package/src/convex/components/backend/billing.ts +75 -12
- package/src/convex/components/backend/crons.ts +4 -0
- package/src/convex/components/backend/gifts.ts +2 -2
- package/src/convex/components/backend/jobs.ts +58 -13
- package/src/convex/components/backend/maintenance.ts +14 -1
- package/src/convex/components/backend/moderation.ts +57 -0
- package/src/convex/components/backend/schema.ts +110 -4
- package/src/convex/components/backend/storage.ts +56 -0
- package/src/convex/components/backend/subscriptions.ts +1 -1
- package/src/convex/constants.ts +20 -4
- package/src/convex/email-templates.ts +124 -21
- package/src/convex/emails/notification.ts +22 -0
- package/src/convex/errors.ts +64 -8
- package/src/convex/events.ts +4 -4
- package/src/convex/files.ts +48 -6
- package/src/convex/integrations/account.ts +4 -0
- package/src/convex/integrations/ai/chat.ts +9 -9
- package/src/convex/integrations/ai/config.ts +147 -37
- package/src/convex/integrations/ai/context.ts +7 -4
- package/src/convex/integrations/ai/costs.ts +45 -2
- package/src/convex/integrations/ai/embeddings.ts +24 -39
- package/src/convex/integrations/ai/images.ts +141 -0
- package/src/convex/integrations/ai/job-errors.ts +19 -2
- package/src/convex/integrations/ai/jobs.ts +466 -72
- package/src/convex/integrations/ai/knowledge.ts +9 -10
- package/src/convex/integrations/ai/metering.ts +83 -28
- package/src/convex/integrations/ai/model-id.ts +24 -2
- package/src/convex/integrations/ai/models.ts +273 -58
- package/src/convex/integrations/ai/moderation-providers.ts +373 -0
- package/src/convex/integrations/ai/moderation-taxonomy.ts +174 -0
- package/src/convex/integrations/ai/moderation.ts +530 -47
- package/src/convex/integrations/ai/provenance.ts +10 -1
- package/src/convex/integrations/ai/setup.ts +5 -5
- package/src/convex/integrations/ai/stream.ts +4 -3
- package/src/convex/integrations/ai.ts +19 -6
- package/src/convex/integrations/billing/checkout.ts +4 -4
- package/src/convex/integrations/billing/context.ts +34 -2
- package/src/convex/integrations/billing/credits.ts +23 -6
- package/src/convex/integrations/billing/free-plan.ts +120 -24
- package/src/convex/integrations/billing/functions.ts +20 -8
- package/src/convex/integrations/billing/gifts.ts +34 -6
- package/src/convex/integrations/billing/lifecycle.ts +14 -6
- package/src/convex/integrations/billing/passes.ts +2 -2
- package/src/convex/integrations/billing/pricing.ts +43 -5
- package/src/convex/integrations/billing/rate-limit.ts +46 -0
- package/src/convex/integrations/billing/referral-orders.ts +1 -1
- package/src/convex/integrations/billing/resync.ts +187 -0
- package/src/convex/integrations/billing/rewards.ts +1 -1
- package/src/convex/integrations/billing/subscriptions.ts +4 -2
- package/src/convex/integrations/billing/types/lifecycle.ts +1 -1
- package/src/convex/integrations/billing/types/records.ts +67 -3
- package/src/convex/integrations/billing/types/setup.ts +6 -5
- package/src/convex/integrations/billing/types/surface.ts +38 -5
- package/src/convex/integrations/billing/webhooks.ts +2 -2
- package/src/convex/integrations/billing/welcome.ts +103 -0
- package/src/convex/integrations/billing.ts +20 -5
- package/src/convex/integrations/email.ts +17 -2
- package/src/convex/integrations/functions.ts +2 -2
- package/src/convex/integrations/launch.ts +247 -28
- package/src/convex/integrations/notifications.ts +16 -17
- package/src/convex/integrations/rate-limit.ts +18 -3
- package/src/convex/integrations/reports.ts +18 -5
- package/src/convex/integrations/retention.ts +73 -5
- package/src/convex/integrations/storage.ts +91 -6
- package/src/convex/label-format.ts +2 -2
- package/src/convex/label-groups/admin.ts +28 -0
- package/src/convex/label-groups/cancelFlow.ts +2 -2
- package/src/convex/label-groups/email.ts +2 -1
- package/src/convex/label-groups/errors.ts +6 -1
- package/src/convex/label-groups/gift.ts +5 -2
- package/src/convex/label-groups/legal.ts +31 -0
- package/src/convex/label-groups/notifications.ts +5 -3
- package/src/convex/label-groups/pastDue.ts +1 -1
- package/src/convex/label-groups/pricing.ts +4 -0
- package/src/convex/label-groups/referral.ts +2 -2
- package/src/convex/label-groups/report.ts +10 -1
- package/src/convex/label-groups/upload.ts +2 -0
- package/src/convex/label-groups/withdrawal.ts +1 -1
- package/src/convex/label-translations.ts +94 -34
- package/src/convex/labels.ts +25 -0
- package/src/convex/legal.ts +12 -2
- package/src/convex/log.ts +12 -1
- package/src/convex/monitoring.ts +6 -4
- package/src/convex/report-rules.ts +3 -0
- package/src/convex/sensitive-actions.ts +1 -0
- package/src/convex/test-models.ts +26 -2
- package/src/convex/test-moderation.ts +122 -0
- package/src/convex/test.ts +405 -8
- package/src/runtime/vue/components/account/AccountData.vue +2 -0
- package/src/runtime/vue/components/account/AccountDeletion.css +2 -1
- package/src/runtime/vue/components/account/ActivationChecklist.css +5 -2
- package/src/runtime/vue/components/account/ActivationChecklist.vue +1 -0
- package/src/runtime/vue/components/account/ConsentPrompt.css +8 -5
- package/src/runtime/vue/components/account/ConsentPromptDialog.vue +1 -0
- package/src/runtime/vue/components/account/ConsentPromptStorage.vue +1 -0
- package/src/runtime/vue/components/account/EmailUnsubscribe.css +6 -2
- package/src/runtime/vue/components/account/EmailUnsubscribe.vue +2 -2
- package/src/runtime/vue/components/account/HowDidYouHear.css +8 -3
- package/src/runtime/vue/components/account/HowDidYouHear.vue +1 -0
- package/src/runtime/vue/components/account/KeepAccount.css +3 -1
- package/src/runtime/vue/components/account/OnboardingFlow.css +6 -3
- package/src/runtime/vue/components/account/OnboardingFlow.vue +1 -0
- package/src/runtime/vue/components/account/ProfileIdentity.css +1 -1
- package/src/runtime/vue/components/account/ProfilePreferencesSection.css +3 -1
- package/src/runtime/vue/components/account/ProfilePreferencesSection.vue +4 -2
- package/src/runtime/vue/components/account/ProfileSettings.css +3 -1
- package/src/runtime/vue/components/account/ProfileSettings.vue +1 -0
- package/src/runtime/vue/components/account/SecurityAlerts.css +2 -1
- package/src/runtime/vue/components/account/SecurityAlerts.vue +2 -2
- package/src/runtime/vue/components/account/SecurityPasskeys.css +5 -3
- package/src/runtime/vue/components/account/SecuritySettings.css +2 -1
- package/src/runtime/vue/components/account/SecuritySettings.vue +1 -0
- package/src/runtime/vue/components/admin/AdminAccess.css +1 -1
- package/src/runtime/vue/components/admin/AdminAccess.vue +3 -1
- package/src/runtime/vue/components/admin/AdminAccessMemberTickets.vue +51 -0
- package/src/runtime/vue/components/admin/AdminAnnouncements.css +4 -2
- package/src/runtime/vue/components/admin/AdminBilling.css +1 -1
- package/src/runtime/vue/components/admin/AdminChart.css +2 -1
- package/src/runtime/vue/components/admin/AdminConsole.css +1 -0
- package/src/runtime/vue/components/admin/AdminExperiments.css +2 -1
- package/src/runtime/vue/components/admin/AdminFlags.css +4 -2
- package/src/runtime/vue/components/admin/AdminModeration.vue +148 -0
- package/src/runtime/vue/components/admin/AdminQueue.css +4 -2
- package/src/runtime/vue/components/admin/AdminReferrals.css +3 -1
- package/src/runtime/vue/components/admin/AdminReports.css +2 -1
- package/src/runtime/vue/components/admin/AdminRevenue.css +2 -1
- package/src/runtime/vue/components/admin/AdminUsers.vue +1 -0
- package/src/runtime/vue/components/admin/AdminWorkspaces.vue +1 -0
- package/src/runtime/vue/components/admin/admin.css +2 -1
- package/src/runtime/vue/components/auth/AuthForm.css +6 -3
- package/src/runtime/vue/components/auth/AuthForm.vue +4 -3
- package/src/runtime/vue/components/auth/AuthFormChoose.css +1 -0
- package/src/runtime/vue/components/auth/AuthFormPasskeyOffer.css +2 -1
- package/src/runtime/vue/components/auth/InviteRedeem.css +2 -0
- package/src/runtime/vue/components/auth/ReauthenticateCode.css +1 -1
- package/src/runtime/vue/components/auth/ReauthenticateDialog.css +6 -2
- package/src/runtime/vue/components/auth/ReauthenticateDialog.vue +3 -2
- package/src/runtime/vue/components/auth/WaitlistForm.css +3 -1
- package/src/runtime/vue/components/auth/WaitlistForm.vue +1 -0
- package/src/runtime/vue/components/auth/WaitlistPlace.css +3 -1
- package/src/runtime/vue/components/auth/WaitlistShare.css +6 -3
- package/src/runtime/vue/components/billing/BillingCheckoutLink.vue +2 -0
- package/src/runtime/vue/components/billing/BillingHistory.css +2 -1
- package/src/runtime/vue/components/billing/BillingHistory.vue +1 -0
- package/src/runtime/vue/components/billing/BillingPortalLink.vue +1 -0
- package/src/runtime/vue/components/billing/CancelFlow.css +8 -4
- package/src/runtime/vue/components/billing/CancelFlow.vue +2 -1
- package/src/runtime/vue/components/billing/CancelFlowEnd.vue +3 -1
- package/src/runtime/vue/components/billing/GiftList.css +5 -2
- package/src/runtime/vue/components/billing/PricingPackCard.css +2 -1
- package/src/runtime/vue/components/billing/PricingPlanCard.css +5 -3
- package/src/runtime/vue/components/billing/PricingPlanCard.vue +8 -1
- package/src/runtime/vue/components/billing/PricingTable.css +1 -1
- package/src/runtime/vue/components/billing/PricingTable.vue +23 -3
- package/src/runtime/vue/components/billing/ReferralCard.css +6 -3
- package/src/runtime/vue/components/billing/ReferralCard.vue +1 -0
- package/src/runtime/vue/components/billing/ReferralLanding.css +5 -2
- package/src/runtime/vue/components/billing/UpgradePrompt.css +6 -3
- package/src/runtime/vue/components/billing/UpgradePrompt.vue +1 -0
- package/src/runtime/vue/components/billing/UsageHistory.css +2 -1
- package/src/runtime/vue/components/billing/UsageHistory.vue +1 -0
- package/src/runtime/vue/components/billing/WithdrawalButton.css +6 -2
- package/src/runtime/vue/components/billing/WithdrawalButton.vue +2 -1
- package/src/runtime/vue/components/shared.css +24 -3
- package/src/runtime/vue/components/shell/AccessDenied.css +4 -1
- package/src/runtime/vue/components/shell/AccessDenied.vue +1 -0
- package/src/runtime/vue/components/shell/AccountMenu.vue +1 -0
- package/src/runtime/vue/components/shell/AiLabel.css +3 -2
- package/src/runtime/vue/components/shell/AiLabel.vue +4 -1
- package/src/runtime/vue/components/shell/AppShell.css +5 -3
- package/src/runtime/vue/components/shell/AppShell.vue +3 -0
- package/src/runtime/vue/components/shell/BackendNotices.vue +3 -2
- package/src/runtime/vue/components/shell/ConfirmDialog.css +5 -2
- package/src/runtime/vue/components/shell/ConnectionStatus.css +1 -1
- package/src/runtime/vue/components/shell/ConnectionStatus.vue +1 -0
- package/src/runtime/vue/components/shell/ContactForm.css +8 -1
- package/src/runtime/vue/components/shell/ContactForm.vue +1 -0
- package/src/runtime/vue/components/shell/FrameMain.vue +2 -0
- package/src/runtime/vue/components/shell/Gate.css +5 -2
- package/src/runtime/vue/components/shell/Gate.vue +2 -0
- package/src/runtime/vue/components/shell/GateQuota.vue +1 -0
- package/src/runtime/vue/components/shell/LegalCompany.vue +38 -0
- package/src/runtime/vue/components/shell/LegalContactPoints.vue +74 -0
- package/src/runtime/vue/components/shell/LegalDetail.vue +54 -0
- package/src/runtime/vue/components/shell/LegalDocument.css +21 -4
- package/src/runtime/vue/components/shell/LegalDocument.vue +54 -15
- package/src/runtime/vue/components/shell/LegalModeration.vue +94 -0
- package/src/runtime/vue/components/shell/LegalProcessors.vue +64 -22
- package/src/runtime/vue/components/shell/LegalStorage.vue +64 -23
- package/src/runtime/vue/components/shell/LegalVersion.vue +44 -0
- package/src/runtime/vue/components/shell/NoticeAnnouncement.css +2 -1
- package/src/runtime/vue/components/shell/NoticeDeletion.css +5 -2
- package/src/runtime/vue/components/shell/NoticeGift.css +2 -1
- package/src/runtime/vue/components/shell/NoticeGift.vue +8 -5
- package/src/runtime/vue/components/shell/NoticeImpersonation.css +2 -1
- package/src/runtime/vue/components/shell/NoticeLowCredits.css +6 -2
- package/src/runtime/vue/components/shell/NoticeMaintenance.css +2 -1
- package/src/runtime/vue/components/shell/NoticePastDue.css +6 -2
- package/src/runtime/vue/components/shell/NoticePastDue.vue +1 -1
- package/src/runtime/vue/components/shell/NotificationInbox.css +6 -4
- package/src/runtime/vue/components/shell/NotificationInbox.vue +1 -0
- package/src/runtime/vue/components/shell/ReportNotice.css +2 -1
- package/src/runtime/vue/components/shell/UploadField.css +4 -2
- package/src/runtime/vue/components/shell/UploadField.vue +21 -5
- package/src/runtime/vue/components/shell/WorkspaceSwitcher.css +4 -1
- package/src/runtime/vue/components/shell/WorkspaceSwitcher.vue +1 -0
- package/src/runtime/vue/components/tokens.css +21 -1
- package/src/runtime/vue/components/workspaces/AcceptInvitation.vue +1 -0
- package/src/runtime/vue/components/workspaces/AuditLog.css +2 -1
- package/src/runtime/vue/components/workspaces/AuditLog.vue +1 -0
- package/src/runtime/vue/components/workspaces/WorkspaceBilling.css +2 -1
- package/src/runtime/vue/components/workspaces/WorkspaceCredits.css +1 -0
- package/src/runtime/vue/components/workspaces/WorkspaceList.css +2 -1
- package/src/runtime/vue/components/workspaces/WorkspaceSettings.vue +1 -0
- package/src/runtime/vue/pages/gifts.vue +13 -2
- package/src/runtime/vue/pages/referral.vue +1 -2
- package/dist/devtools-client/_nuxt/CfQg3BRt.js +0 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function appPolicy(rules) {
|
|
2
|
+
const csp = rules["/**"]?.headers?.contentSecurityPolicy;
|
|
3
|
+
return typeof csp === "object" && csp !== null ? csp : null;
|
|
4
|
+
}
|
|
5
|
+
function sourcesOf(value) {
|
|
6
|
+
if (Array.isArray(value)) return value.map(String);
|
|
7
|
+
return typeof value === "string" ? value.split(/\s+/).filter(Boolean) : null;
|
|
8
|
+
}
|
|
9
|
+
export function allowOrigin(policy, chain, origin) {
|
|
10
|
+
const [own] = chain;
|
|
11
|
+
for (const name of chain) {
|
|
12
|
+
const sources = sourcesOf(policy[name]);
|
|
13
|
+
if (!sources) continue;
|
|
14
|
+
if (new Set(sources).has(origin)) return;
|
|
15
|
+
policy[name === "child-src" ? name : own] = [...sources.filter((source) => source !== "'none'"), origin];
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type SecurityNitroApp } from '../csp.js';
|
|
2
|
+
/** The origin a DSN reports to, its public key left out; `null` for a value that is no URL. */
|
|
3
|
+
export declare function dsnOrigin(dsn: string | undefined): string | null;
|
|
4
|
+
/**
|
|
5
|
+
* With the SDK wired, the security headers' policy lets the browser's error
|
|
6
|
+
* reports out: the DSN's origin joins `connect-src`, which the base module
|
|
7
|
+
* narrows to the deployment in production, or the `default-src` it falls
|
|
8
|
+
* back to. The module registers it after the base module's plugin, so its
|
|
9
|
+
* hook finds the narrowed directive. `nuxt/server` is its only server
|
|
10
|
+
* import, so the same file runs on Nitro 2 and Nitro 3.
|
|
11
|
+
*/
|
|
12
|
+
export default function monitoringSecurityPlugin(nitroApp: SecurityNitroApp): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useRuntimeConfig } from "nuxt/server";
|
|
2
|
+
import { allowOrigin, appPolicy } from "../csp.js";
|
|
3
|
+
const CONNECT = ["connect-src", "default-src"];
|
|
4
|
+
export function dsnOrigin(dsn) {
|
|
5
|
+
if (!dsn) return null;
|
|
6
|
+
try {
|
|
7
|
+
return new URL(dsn).origin;
|
|
8
|
+
} catch {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default function monitoringSecurityPlugin(nitroApp) {
|
|
13
|
+
nitroApp.hooks.hook("nuxt-security:routeRules", (rules) => {
|
|
14
|
+
const { dsn } = useRuntimeConfig().public.backend?.monitoring ?? {};
|
|
15
|
+
const origin = dsnOrigin(dsn);
|
|
16
|
+
const csp = appPolicy(rules);
|
|
17
|
+
if (origin && csp) allowOrigin(csp, CONNECT, origin);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
interface SecurityNitroApp {
|
|
3
|
-
hooks: {
|
|
4
|
-
hook: (name: 'nuxt-security:routeRules', run: (rules: Record<string, unknown>) => void) => unknown;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
1
|
+
import { type SecurityNitroApp } from '../csp.js';
|
|
7
2
|
/**
|
|
8
3
|
* With a challenge site key, the security headers' policy lets the
|
|
9
4
|
* challenge's script and frame in: its origin joins `script-src` and
|
|
@@ -14,4 +9,3 @@ interface SecurityNitroApp {
|
|
|
14
9
|
* the same file runs on Nitro 2 and Nitro 3.
|
|
15
10
|
*/
|
|
16
11
|
export default function protectionSecurityPlugin(nitroApp: SecurityNitroApp): void;
|
|
17
|
-
export {};
|
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
import { useRuntimeConfig } from "nuxt/server";
|
|
2
|
+
import { allowOrigin, appPolicy } from "../csp.js";
|
|
2
3
|
const CHALLENGE_ORIGIN = "https://challenges.cloudflare.com";
|
|
3
4
|
const DIRECTIVES = [
|
|
4
5
|
["script-src", "default-src"],
|
|
5
6
|
["frame-src", "child-src", "default-src"]
|
|
6
7
|
];
|
|
7
|
-
function sourcesOf(value) {
|
|
8
|
-
if (Array.isArray(value)) return value.map(String);
|
|
9
|
-
return typeof value === "string" ? value.split(/\s+/).filter(Boolean) : null;
|
|
10
|
-
}
|
|
11
|
-
function allow(policy, chain) {
|
|
12
|
-
const [own] = chain;
|
|
13
|
-
for (const name of chain) {
|
|
14
|
-
const sources = sourcesOf(policy[name]);
|
|
15
|
-
if (!sources) continue;
|
|
16
|
-
if (new Set(sources).has(CHALLENGE_ORIGIN)) return;
|
|
17
|
-
policy[name === "child-src" ? name : own] = [...sources.filter((source) => source !== "'none'"), CHALLENGE_ORIGIN];
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
8
|
export default function protectionSecurityPlugin(nitroApp) {
|
|
22
9
|
nitroApp.hooks.hook("nuxt-security:routeRules", (rules) => {
|
|
23
10
|
const siteKey = useRuntimeConfig().public.backend?.challengeSiteKey;
|
|
24
|
-
const csp = rules
|
|
25
|
-
if (!siteKey ||
|
|
26
|
-
for (const chain of DIRECTIVES)
|
|
11
|
+
const csp = appPolicy(rules);
|
|
12
|
+
if (!siteKey || !csp) return;
|
|
13
|
+
for (const chain of DIRECTIVES) allowOrigin(csp, chain, CHALLENGE_ORIGIN);
|
|
27
14
|
});
|
|
28
15
|
}
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
* swapped:
|
|
5
5
|
*
|
|
6
6
|
* - `#convex/auth-client`, the Better Auth client the session layer is built
|
|
7
|
-
* on (`useAuth`, `useBetterAuth`, the page guard),
|
|
8
|
-
* answers from the mock;
|
|
7
|
+
* on (`useAuth`, `useBetterAuth`, the page guard), which the base module
|
|
8
|
+
* loads on first use, for one that answers from the mock;
|
|
9
9
|
* - `nuxt-convex-module/client` and `nuxt-convex-module/vue`, for the base
|
|
10
10
|
* module's own entry with every export kept, whose composables also
|
|
11
11
|
* provide the mock where a plain `mount()` needs it.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* One private name reaches the base module's real entry for that stand-in;
|
|
14
|
+
* the session state the base module keeps between tests is reset through its
|
|
15
|
+
* public `nuxt-convex-module/testing`. With the aliases in a Vitest project,
|
|
16
|
+
* a test needs no `vi.mock`.
|
|
15
17
|
*
|
|
16
18
|
* Use them in a project with `@nuxt/test-utils`' `nuxt` environment
|
|
17
19
|
* (`defineVitestProject`, or `defineVitestConfig` for a single project): it
|
|
@@ -3,24 +3,18 @@ import { createRequire } from "node:module";
|
|
|
3
3
|
import { dirname, extname, join } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
const slashed = (path) => path.split("\\").join("/");
|
|
6
|
-
function
|
|
6
|
+
function baseClientEntry() {
|
|
7
7
|
const manifest = realpathSync(createRequire(import.meta.url).resolve("nuxt-convex-module/package.json"));
|
|
8
|
-
const root = dirname(manifest);
|
|
9
8
|
const { exports } = JSON.parse(readFileSync(manifest, "utf8"));
|
|
10
|
-
return
|
|
11
|
-
client: slashed(join(root, exports["./client"].import)),
|
|
12
|
-
useBetterAuth: slashed(join(root, dirname(exports["./better-auth/client"].import), "use-better-auth.js"))
|
|
13
|
-
};
|
|
9
|
+
return slashed(join(dirname(manifest), exports["./client"].import));
|
|
14
10
|
}
|
|
15
11
|
export function backendTestAliases() {
|
|
16
12
|
const here = fileURLToPath(import.meta.url);
|
|
17
13
|
const sibling = (name) => slashed(join(dirname(here), `${name}${extname(here)}`));
|
|
18
|
-
const base = baseModuleFiles();
|
|
19
14
|
return {
|
|
20
15
|
"#convex/auth-client": sibling("auth-client"),
|
|
21
16
|
"nuxt-convex-module/client": sibling("client"),
|
|
22
17
|
"nuxt-convex-module/vue": sibling("client"),
|
|
23
|
-
"#backend-test-utils/base-client":
|
|
24
|
-
"#backend-test-utils/base-use-better-auth": base.useBetterAuth
|
|
18
|
+
"#backend-test-utils/base-client": baseClientEntry()
|
|
25
19
|
};
|
|
26
20
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
// The base module's own
|
|
2
|
-
// gives
|
|
3
|
-
// ./install.ts) can import the real entry they stand in for
|
|
4
|
-
// importing themselves. Declared here, beside them, so the
|
|
5
|
-
// with them: an app's type check reads them as written
|
|
6
|
-
// src/runtime, which dist/runtime links to after
|
|
7
|
-
// that imports
|
|
8
|
-
// through imports alone, not a glob of this
|
|
1
|
+
// The base module's own client entry under the private name
|
|
2
|
+
// backendTestAliases() gives it (./aliases.ts), so the aliased modules
|
|
3
|
+
// (./client.ts, ./install.ts) can import the real entry they stand in for
|
|
4
|
+
// without importing themselves. Declared here, beside them, so the
|
|
5
|
+
// declaration ships with them: an app's type check reads them as written
|
|
6
|
+
// (the website's reads src/runtime, which dist/runtime links to after
|
|
7
|
+
// dev:prepare). Each file that imports it references this file, so a
|
|
8
|
+
// program that reaches it through imports alone, not a glob of this
|
|
9
|
+
// directory, loads it too.
|
|
9
10
|
|
|
10
11
|
declare module '#backend-test-utils/base-client' {
|
|
11
12
|
export * from 'nuxt-convex-module/client'
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
declare module '#backend-test-utils/base-use-better-auth' {
|
|
15
|
-
/** Forget the session token the base module's `useBetterAuth` cached. */
|
|
16
|
-
export function __resetUseBetterAuthForTests(): void
|
|
17
|
-
}
|
|
@@ -2,7 +2,7 @@ import { getFunctionName, makeFunctionReference } from "convex/server";
|
|
|
2
2
|
import { computed, getCurrentInstance, watch } from "vue";
|
|
3
3
|
import { clearNuxtState, tryUseNuxtApp } from "#app";
|
|
4
4
|
import { ConvexAuthStateKey, ConvexClientKey } from "#backend-test-utils/base-client";
|
|
5
|
-
import {
|
|
5
|
+
import { resetBetterAuthState } from "nuxt-convex-module/testing";
|
|
6
6
|
import { LAST_SIGN_IN_STATE } from "../vue/utils/last-sign-in.js";
|
|
7
7
|
import { BackendApiKey, beforeApiRead } from "../vue/utils/namespace.js";
|
|
8
8
|
import { activeBackendMock, callFunction, readQuery, registry } from "./mock.js";
|
|
@@ -109,6 +109,8 @@ function provideOnNuxtApp() {
|
|
|
109
109
|
}
|
|
110
110
|
registry.activated.add(provideOnNuxtApp);
|
|
111
111
|
beforeApiRead.add(provideMockOnCurrentApp);
|
|
112
|
-
registry.reset.add(
|
|
112
|
+
registry.reset.add(resetBetterAuthState);
|
|
113
113
|
registry.reset.add(forgetLastSignIn);
|
|
114
114
|
if (registry.active.value) provideOnNuxtApp();
|
|
115
|
+
void import("nuxt-convex-module/better-auth/client").then(({ loadAuthClient }) => loadAuthClient()).catch(() => {
|
|
116
|
+
});
|
package/dist/runtime/vue/a11y.js
CHANGED
|
@@ -15,7 +15,7 @@ export function announcePolitely(text) {
|
|
|
15
15
|
announcer = document.createElement("p");
|
|
16
16
|
announcer.setAttribute("role", "status");
|
|
17
17
|
announcer.setAttribute("aria-live", "polite");
|
|
18
|
-
announcer.setAttribute("data-backend", "
|
|
18
|
+
announcer.setAttribute("data-backend-announcer", "");
|
|
19
19
|
announcer.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0";
|
|
20
20
|
document.body.append(announcer);
|
|
21
21
|
}
|
|
@@ -19,10 +19,13 @@ type BackendAuthPlugin = ReturnType<typeof convexClient> | ReturnType<typeof ema
|
|
|
19
19
|
* `nuxt-convex-module` as its `betterAuth.authClient`, so the package's auth session
|
|
20
20
|
* is typed with exactly these plugins.
|
|
21
21
|
*
|
|
22
|
-
* Every plugin is registered here, at construction
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
22
|
+
* Every plugin is registered here, at construction. The base module loads
|
|
23
|
+
* this module on first use, not with every page: a signed-in visitor gets it
|
|
24
|
+
* at startup, beside the page, and a page a signed-out visitor never signs
|
|
25
|
+
* in on never downloads it. So it creates the client and does nothing else
|
|
26
|
+
* as it loads. The passkey plugin is the package's own
|
|
27
|
+
* (`./passkey-client`): Better Auth's, with the WebAuthn ceremony loaded
|
|
28
|
+
* apart from the client. So are the admin and organization
|
|
26
29
|
* plugins (`./admin-client`, `./organization-client`): Better Auth's,
|
|
27
30
|
* without the error-code tables a client never reads at runtime. The
|
|
28
31
|
* protection plugin answers the bot check's challenge on the requests that
|
|
@@ -36,7 +39,7 @@ type BackendAuthPlugin = ReturnType<typeof convexClient> | ReturnType<typeof ema
|
|
|
36
39
|
* Auth's there — `passkeyClient()` from `@better-auth/passkey/client`,
|
|
37
40
|
* `adminClient()` and `organizationClient()` from
|
|
38
41
|
* `better-auth/client/plugins` — which work the same and load more with
|
|
39
|
-
*
|
|
42
|
+
* the client (the passkey ceremony alone is about 12 kB).
|
|
40
43
|
*/
|
|
41
44
|
export declare const authClient: VueAuthClient<{
|
|
42
45
|
plugins: BackendAuthPlugin[];
|
|
@@ -91,6 +91,7 @@ provideAccountDataView({ labels, context, id, typed, mismatched, link });
|
|
|
91
91
|
<template>
|
|
92
92
|
<div
|
|
93
93
|
v-if="auth.isImpersonating.value"
|
|
94
|
+
data-backend
|
|
94
95
|
data-account="root"
|
|
95
96
|
>
|
|
96
97
|
<p data-account="refused">
|
|
@@ -99,6 +100,7 @@ provideAccountDataView({ labels, context, id, typed, mismatched, link });
|
|
|
99
100
|
</div>
|
|
100
101
|
<div
|
|
101
102
|
v-else
|
|
103
|
+
data-backend
|
|
102
104
|
data-account="root"
|
|
103
105
|
:aria-busy="pending !== null || account.isLoading.value ? 'true' : void 0"
|
|
104
106
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-account=section-delete]{border:
|
|
1
|
+
@layer nuxt-backend{[data-account=section-delete]{border:var(--bk-border-width) solid color-mix(in srgb,var(--bk-error) 30%,transparent);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);padding:.9rem}[data-account=confirm-input][aria-invalid=true]+[data-account=confirm-hint]{color:var(--bk-error)}[data-account=confirm-label]{font-size:.85rem;font-weight:600}[data-account=delete]{align-self:flex-start;border-color:color-mix(in srgb,var(--bk-error) 50%,transparent);color:var(--bk-error)}[data-account=confirm-text]{display:block;margin-block-end:.3rem}[data-account=section-delete][data-state=scheduled]{background:color-mix(in srgb,var(--bk-warn) 8%,transparent);border-color:color-mix(in srgb,var(--bk-warn) 55%,transparent)}[data-account=keep]{align-self:flex-start;border-color:var(--bk-accent);color:var(--bk-accent)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-activation=root]{background:var(--bk-surface);border:
|
|
1
|
+
@layer nuxt-backend{[data-activation=root]{background:var(--bk-surface);border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);color:var(--bk-ink);display:flex;flex-direction:column;gap:.6rem;padding:1rem}[data-activation=title]{font-size:1.1rem;margin:0}[data-activation=count]{color:var(--bk-muted);font-size:.9rem;margin:0}[data-activation=progress]{accent-color:var(--bk-accent);block-size:.5rem;inline-size:100%}[data-activation=tasks]{display:flex;flex-direction:column;gap:.35rem;list-style:none;margin:0;padding:0}[data-activation=task]{align-items:baseline;display:flex;gap:.6rem}[data-activation=task]:before{color:var(--bk-muted);content:"○"}[data-activation=task][data-state=done]:before{color:var(--bk-ok);content:"✓";font-weight:700}[data-activation=task][data-state=done] [data-activation=label]{color:var(--bk-muted);text-decoration:line-through}[data-activation=link]{color:var(--bk-accent);font-weight:600}[data-activation=state]{clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}[data-activation=congratulations],[data-activation=read-only]{font-weight:600;margin:0}[data-activation=congratulations]{color:var(--bk-ok)}[data-activation=read-only]{color:var(--bk-muted);font-size:.9rem;font-weight:400}[data-activation=dismiss]{align-self:flex-start;background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:inherit;cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));padding:.4rem .8rem}[data-activation=dismiss][aria-disabled=true]{cursor:progress;opacity:.7}[data-activation=root] :where(a,button):focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-activation=status]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-consent=dialog]{background:Canvas;border:
|
|
1
|
+
@layer nuxt-backend{[data-consent=dialog]{background:Canvas;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow-overlay);box-sizing:border-box;color:var(--bk-ink);margin:auto;max-height:calc(100vh - 2rem);overflow:auto;padding:1.25rem;width:min(32rem,calc(100vw - 2rem))}[data-consent=dialog]::backdrop{background:color-mix(in srgb,#000 55%,transparent)}[data-consent=form],[data-consent=item],[data-consent=list],[data-consent=storage]{display:flex;flex-direction:column;gap:.75rem}[data-consent=list],[data-consent=purposes]{list-style:none;margin:0;padding:0}[data-consent=purposes]{display:flex;flex-direction:column;gap:.35rem}:where([data-consent=purposes]) li:before{color:var(--bk-muted);content:"·";margin-inline-end:.5rem}[data-consent=note],[data-consent=title]{margin:0}[data-consent=note]{color:var(--bk-muted);font-size:.95em}[data-consent=age],[data-consent=label]{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem}[data-consent=age]{align-items:stretch;flex-direction:column}[data-consent=age-intro]{color:var(--bk-muted);font-size:.95em;line-height:1.5}[data-consent=age-question]{font-weight:600}[data-consent=checkbox]{accent-color:var(--bk-accent);block-size:1.1rem;inline-size:1.1rem;margin:0}[data-consent=purpose]{line-height:1.5}:where([data-consent=dialog],[data-consent=storage]) :where(button,a,input):focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-consent=flag]{color:var(--bk-muted);font-size:.85em}[data-consent=age-input]{background:var(--bk-surface);border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);color:inherit;font:inherit;font-variant-numeric:tabular-nums;max-width:8rem;padding:.5rem .65rem}[data-consent=age-input][aria-invalid=true]{border-color:var(--bk-error)}[data-consent=link]{color:inherit}[data-consent=error]{color:var(--bk-error);margin:0}[data-consent=actions]{display:flex;flex-wrap:wrap;gap:.6rem}[data-consent=allow],[data-consent=decline],[data-consent=later],[data-consent=submit]{background:var(--bk-surface);border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:inherit;cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));padding:.5rem .9rem}[data-consent=submit]{background:var(--bk-accent);border-color:transparent;color:var(--bk-on-accent)}:where([data-consent=dialog] button)[aria-disabled=true],:where([data-consent=storage] button)[aria-disabled=true]{cursor:progress;opacity:.6}[data-consent=storage]{background:Canvas;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow-overlay);color:var(--bk-ink);inset-block-end:1rem;inset-inline:1rem;margin-inline:auto;max-width:36rem;padding:1rem;position:fixed;z-index:40}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-unsubscribe=page]{color:var(--bk-ink);display:grid;gap:.75rem;justify-items:start;max-width:32rem}[data-unsubscribe=page] [data-unsubscribe=message]{margin:0}[data-unsubscribe=actions]{display:flex;flex-wrap:wrap;gap:.5rem}[data-unsubscribe=confirm],[data-unsubscribe=leave]{background:var(--bk-accent);border:
|
|
1
|
+
@layer nuxt-backend{[data-unsubscribe=page]{color:var(--bk-ink);display:grid;gap:.75rem;justify-items:start;max-width:32rem}[data-unsubscribe=page] [data-unsubscribe=message]{margin:0}[data-unsubscribe=actions]{display:flex;flex-wrap:wrap;gap:.5rem}[data-unsubscribe=confirm],[data-unsubscribe=leave]{background:var(--bk-accent);border:var(--bk-border-width) solid var(--bk-accent);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:var(--bk-on-accent);cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));font-weight:600;padding:.5rem 1rem}[data-unsubscribe=leave-all]{background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:inherit;cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));padding:.5rem 1rem}[data-unsubscribe=page] :where(button)[aria-disabled=true]{cursor:progress;opacity:.6}[data-unsubscribe=manage]:focus-visible,[data-unsubscribe=page] :where(button):focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-unsubscribe=manage]{color:var(--bk-accent)}[data-unsubscribe=error]{color:var(--bk-error);margin:0}[data-unsubscribe=status]:empty{display:none}}
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
manageTo: { type: String, required: false },
|
|
8
8
|
labels: { type: null, required: false }
|
|
9
9
|
});
|
|
10
|
-
const page = useEmailLink(() => props.link, () => props.labels);
|
|
10
|
+
const page = useEmailLink(() => props.link, { labels: () => props.labels });
|
|
11
11
|
const { state, link: named, topicName, error, announcement, leave, confirm } = page;
|
|
12
12
|
const { t } = page.labels;
|
|
13
13
|
const root = ref(null);
|
|
@@ -96,7 +96,7 @@ const { remember } = useOutcomeFocus(root, note, () => ["done", "done-all", "con
|
|
|
96
96
|
role="alert"
|
|
97
97
|
data-unsubscribe="error"
|
|
98
98
|
>
|
|
99
|
-
{{ error }}
|
|
99
|
+
{{ page.labels.errorMessage(error) }}
|
|
100
100
|
</p>
|
|
101
101
|
<span
|
|
102
102
|
role="status"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-source=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:.75rem}[data-source=question]{border:0;display:flex;flex-direction:column;gap:.4rem;margin:0;padding:0}[data-source=title]{font-size:1.1rem;font-weight:600;margin:0 0 .25rem;padding:0}[data-source=hint]{color:var(--bk-muted);font-size:.9rem;margin:0 0 .25rem}[data-source=option]{align-items:center;background:var(--bk-surface);border:
|
|
1
|
+
@layer nuxt-backend{[data-source=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:.75rem}[data-source=question]{border:0;display:flex;flex-direction:column;gap:.4rem;margin:0;padding:0}[data-source=title]{font-size:1.1rem;font-weight:600;margin:0 0 .25rem;padding:0}[data-source=hint]{color:var(--bk-muted);font-size:.9rem;margin:0 0 .25rem}[data-source=option]{align-items:center;background:var(--bk-surface);border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);cursor:pointer;display:flex;gap:.6rem;padding:.55rem .75rem}[data-source=option]:has(:checked){border-color:var(--bk-accent)}[data-source=choice]{accent-color:var(--bk-accent);margin:0}[data-source=other]{display:flex;flex-direction:column;gap:.25rem}[data-source=detail]{background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);color:inherit;font:inherit;padding:.5rem .75rem}[data-source=error]{color:var(--bk-error);margin:0}[data-source=actions]{display:flex;flex-wrap:wrap;gap:.5rem}[data-source=submit]{background:var(--bk-accent);border:0;border-radius:var(--bk-radius-control);color:var(--bk-on-accent)}[data-source=skip],[data-source=submit]{box-shadow:var(--bk-shadow-control);cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));padding:.5rem 1rem}[data-source=skip]{background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);color:inherit}:is([data-source=submit],[data-source=skip])[aria-disabled=true]{cursor:progress;opacity:.6}[data-source=status]{color:var(--bk-muted);margin:0}[data-source=status]:empty{display:none}}
|
|
@@ -46,6 +46,7 @@ async function finish(skip) {
|
|
|
46
46
|
<template>
|
|
47
47
|
<form
|
|
48
48
|
v-if="!question.isSignedOut.value || question.isLoading.value"
|
|
49
|
+
data-backend
|
|
49
50
|
data-source="root"
|
|
50
51
|
:data-state="question.isDone.value ? 'done' : question.isAnswered.value ? 'answered' : 'open'"
|
|
51
52
|
:aria-busy="question.isLoading.value || question.isPending.value ? 'true' : void 0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-deletion=keep-page]{color:var(--bk-ink);display:grid;gap:.75rem;justify-items:start;max-width:32rem}[data-deletion=keep-page] [data-deletion=message]{margin:0}[data-deletion=keep-page] [data-deletion=keep]{background:transparent;border:
|
|
1
|
+
@layer nuxt-backend{[data-deletion=keep-page]{color:var(--bk-ink);display:grid;gap:.75rem;justify-items:start;max-width:32rem}[data-deletion=keep-page] [data-deletion=message]{margin:0}[data-deletion=keep-page] [data-deletion=keep]{background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:inherit;cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));padding:.5rem 1rem}[data-deletion=keep-page] [data-deletion=keep][aria-disabled=true]{cursor:progress;opacity:.6}[data-deletion=keep-page] [data-deletion=keep]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-deletion=keep-page] [data-deletion=error]{color:var(--bk-error);margin:0}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-onboarding=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:1rem;margin-inline:auto;max-inline-size:36rem}[data-onboarding=steps]{display:flex;flex-wrap:wrap;font-size:.9rem;gap:.25rem 1rem;list-style:none;margin:0;padding:0}[data-onboarding=step-name]{color:var(--bk-muted)}[data-onboarding=step-name][data-state=current]{color:var(--bk-accent);font-weight:700;text-decoration:underline;text-underline-offset:.3em}[data-onboarding=step-name][data-state=done]:before{content:"✓ "}[data-onboarding=progress]{color:var(--bk-muted);font-size:.9rem;margin:0}[data-onboarding=step]{display:flex;flex-direction:column;gap:.75rem}[data-onboarding=step]:focus{outline:none}[data-onboarding=step]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:4px}[data-onboarding=step-title]{font-size:1.25rem;margin:0}[data-onboarding=intro]{color:var(--bk-muted);margin:0}[data-onboarding=root] :where(form,[data-onboarding=teammates],[data-onboarding=workspace],[data-onboarding=plan]){display:flex;flex-direction:column;gap:.75rem}[data-onboarding=label]{display:flex;flex-direction:column;font-weight:600;gap:.25rem}[data-onboarding=root] :where(input){background:transparent;border:
|
|
1
|
+
@layer nuxt-backend{[data-onboarding=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:1rem;margin-inline:auto;max-inline-size:36rem}[data-onboarding=steps]{display:flex;flex-wrap:wrap;font-size:.9rem;gap:.25rem 1rem;list-style:none;margin:0;padding:0}[data-onboarding=step-name]{color:var(--bk-muted)}[data-onboarding=step-name][data-state=current]{color:var(--bk-accent);font-weight:700;text-decoration:underline;text-underline-offset:.3em}[data-onboarding=step-name][data-state=done]:before{content:"✓ "}[data-onboarding=progress]{color:var(--bk-muted);font-size:.9rem;margin:0}[data-onboarding=step]{display:flex;flex-direction:column;gap:.75rem}[data-onboarding=step]:focus{outline:none}[data-onboarding=step]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:4px}[data-onboarding=step-title]{font-size:1.25rem;margin:0}[data-onboarding=intro]{color:var(--bk-muted);margin:0}[data-onboarding=root] :where(form,[data-onboarding=teammates],[data-onboarding=workspace],[data-onboarding=plan]){display:flex;flex-direction:column;gap:.75rem}[data-onboarding=label]{display:flex;flex-direction:column;font-weight:600;gap:.25rem}[data-onboarding=root] :where(input){background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);color:inherit;font:inherit;font-weight:400;padding:.55rem .7rem}[data-onboarding=root] [aria-invalid=true]{border-color:var(--bk-error)}[data-onboarding=hint]{color:var(--bk-muted);font-size:.85rem;margin:0}[data-onboarding=hint][data-invalid]{color:var(--bk-error)}[data-onboarding=actions],[data-onboarding=step-actions]{display:flex;flex-wrap:wrap;gap:.5rem}[data-onboarding=root] :where(button){background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:inherit;cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));font-weight:600;padding:.55rem .9rem}[data-onboarding=accept],[data-onboarding=next],[data-onboarding=send]{background:var(--bk-accent);border-color:transparent;color:var(--bk-on-accent)}[data-onboarding=root] :where(button[aria-disabled=true]){cursor:progress;opacity:.7}[data-onboarding=root] :where(button,input):focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-onboarding=invitations],[data-onboarding=invited]{list-style:none;margin:0;padding:0}[data-onboarding=invitation]{align-items:center;background:var(--bk-surface);border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);display:flex;flex-wrap:wrap;gap:.5rem;padding:.6rem .8rem}[data-onboarding=invitation]>:where(p){flex-basis:100%;font-weight:600;margin:0}[data-onboarding=list-title]{color:var(--bk-muted);font-size:.85rem;font-weight:600;margin:0}[data-onboarding=error]{color:var(--bk-error);margin:0}[data-onboarding=finished]{font-size:1.1rem;font-weight:600;margin:0}[data-onboarding=status]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-profile=identity]{align-items:center;display:flex;flex-wrap:wrap;gap:.8rem}[data-profile=avatar]{align-items:center;background:var(--bk-accent);border-radius:50%;color:var(--bk-on-accent);display:inline-flex;font-weight:700;height:2.8rem;justify-content:center;letter-spacing:.02em;width:2.8rem}[data-profile=identity-meta]{display:flex;flex-direction:column;gap:.1rem}[data-profile=identity-name]{font-weight:600}[data-profile=identity-email]{color:var(--bk-muted);font-size:.82rem}[data-profile=badges]{display:flex;flex-wrap:wrap;gap:.4rem;width:100%}[data-profile=badge]{border:
|
|
1
|
+
@layer nuxt-backend{[data-profile=identity]{align-items:center;display:flex;flex-wrap:wrap;gap:.8rem}[data-profile=avatar]{align-items:center;background:var(--bk-accent);border-radius:50%;color:var(--bk-on-accent);display:inline-flex;font-weight:700;height:2.8rem;justify-content:center;letter-spacing:.02em;width:2.8rem}[data-profile=identity-meta]{display:flex;flex-direction:column;gap:.1rem}[data-profile=identity-name]{font-weight:600}[data-profile=identity-email]{color:var(--bk-muted);font-size:.82rem}[data-profile=badges]{display:flex;flex-wrap:wrap;gap:.4rem;width:100%}[data-profile=badge]{border:var(--bk-border-width) solid var(--bk-edge);border-radius:999px;color:var(--bk-muted);font-size:.72rem;font-weight:600;padding:.15rem .55rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-preferences=title]{font-size:1rem;font-weight:600;margin:0}[data-preferences=topics]{display:grid;gap:.75rem;list-style:none;margin:0;padding:0}[data-preferences=topic-label]{align-items:center;display:flex;font-weight:600;gap:.5rem}[data-preferences=topic-input]{accent-color:var(--bk-accent);block-size:1rem;inline-size:1rem}[data-preferences=topic-input]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-preferences=topic] [data-profile=hint]{padding-inline-start:1.5rem}[data-preferences=pending]{color:var(--bk-warn)}[data-preferences=unsubscribe-all]{align-self:flex-start;background:transparent;border:
|
|
1
|
+
@layer nuxt-backend{[data-preferences=title]{font-size:1rem;font-weight:600;margin:0}[data-preferences=topics]{display:grid;gap:.75rem;list-style:none;margin:0;padding:0}[data-preferences=topic-label]{align-items:center;display:flex;font-weight:600;gap:.5rem}[data-preferences=topic-input]{accent-color:var(--bk-accent);block-size:1rem;inline-size:1rem}[data-preferences=topic-input]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-preferences=topic] [data-profile=hint]{padding-inline-start:1.5rem}[data-preferences=pending]{color:var(--bk-warn)}[data-preferences=unsubscribe-all]{align-self:flex-start;background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:inherit;cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));padding:.45rem .8rem}[data-preferences=unsubscribe-all][aria-disabled=true]{cursor:progress;opacity:.6}[data-preferences=unsubscribe-all]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-preferences=channels-title]{font-size:.95rem;font-weight:600;margin:.5rem 0 0}[data-preferences=channels]{display:grid;gap:.5rem;list-style:none;margin:0;padding:0}[data-preferences=kind]{align-items:baseline;border-block-end:1px solid var(--bk-edge);display:flex;flex-wrap:wrap;gap:.25rem 1rem;justify-content:space-between;padding-block:.4rem}[data-preferences=kind-name]{font-weight:600}[data-preferences=kind-channels]{display:flex;flex-wrap:wrap;gap:.25rem 1rem}[data-preferences=channel]{align-items:center;display:inline-flex;gap:.35rem}[data-preferences=channel-input]{accent-color:var(--bk-accent);block-size:1rem;inline-size:1rem}[data-preferences=channel-input]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}[data-preferences=error]{color:var(--bk-error);margin:0}[data-preferences=status]:empty{display:none}}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { computed, ref } from "vue";
|
|
3
3
|
import { useLabels } from "../../composables/use-labels";
|
|
4
4
|
import { notificationLabelKey } from "../../../../convex/notifications";
|
|
5
|
+
import { useMeterUnit } from "../../utils/meter-unit";
|
|
5
6
|
import { useProfileView } from "./profile-settings";
|
|
6
7
|
defineOptions({ name: "ProfilePreferencesSection" });
|
|
7
8
|
const props = defineProps({
|
|
@@ -10,6 +11,7 @@ const props = defineProps({
|
|
|
10
11
|
const view = useProfileView("ProfilePreferencesSection");
|
|
11
12
|
const { t, errorMessage } = useLabels("preferences");
|
|
12
13
|
const notificationWords = useLabels("notifications");
|
|
14
|
+
const unit = useMeterUnit();
|
|
13
15
|
const channelNames = { app: "channels.app", email: "channels.email", push: "channels.push" };
|
|
14
16
|
const headingId = `${view.id}-preferences`;
|
|
15
17
|
const outcome = ref(null);
|
|
@@ -26,7 +28,7 @@ async function save(event, target) {
|
|
|
26
28
|
}
|
|
27
29
|
function kindName(type) {
|
|
28
30
|
const key = `${notificationLabelKey(type)}.title`;
|
|
29
|
-
const text = notificationWords.t(key, { actor: notificationWords.t("actorSomeone"), workspace: notificationWords.t("workspaceUnnamed"), amount: "" });
|
|
31
|
+
const text = notificationWords.t(key, { actor: notificationWords.t("actorSomeone"), workspace: notificationWords.t("workspaceUnnamed"), amount: "", unit: unit.word(null) });
|
|
30
32
|
return text === `notifications.${key}` ? notificationWords.t("fallbackTitle") : text;
|
|
31
33
|
}
|
|
32
34
|
async function leaveAll() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-profile=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:1.6rem;max-width:30rem}[data-profile=badge][data-tone=ok]{border-color:color-mix(in srgb,var(--bk-ok) 40%,transparent);color:var(--bk-ok)}[data-profile=badge][data-tone=warn]{border-color:color-mix(in srgb,var(--bk-warn) 50%,transparent);color:var(--bk-warn)}[data-profile^=section-]{display:flex;flex-direction:column;gap:.6rem}[data-profile^=label-]{color:var(--bk-muted);display:flex;flex-direction:column;font-size:.85rem;gap:.3rem}[data-profile=hint]{color:var(--bk-muted);font-size:.8rem;line-height:1.5;margin:0}[data-profile=save],[data-profile=submit]{align-self:flex-start;background:var(--bk-accent);border:
|
|
1
|
+
@layer nuxt-backend{[data-profile=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:1.6rem;max-width:30rem}[data-profile=badge][data-tone=ok]{border-color:color-mix(in srgb,var(--bk-ok) 40%,transparent);color:var(--bk-ok)}[data-profile=badge][data-tone=warn]{border-color:color-mix(in srgb,var(--bk-warn) 50%,transparent);color:var(--bk-warn)}[data-profile^=section-]{display:flex;flex-direction:column;gap:.6rem}[data-profile^=label-]{color:var(--bk-muted);display:flex;flex-direction:column;font-size:.85rem;gap:.3rem}[data-profile=hint]{color:var(--bk-muted);font-size:.8rem;line-height:1.5;margin:0}[data-profile=save],[data-profile=submit]{align-self:flex-start;background:var(--bk-accent);border:var(--bk-border-width) solid var(--bk-accent);border-radius:var(--bk-radius-control);box-shadow:var(--bk-shadow-control);color:var(--bk-on-accent);cursor:pointer;font:inherit;font-family:var(--bk-font-control,var(--bk-font));font-weight:600;padding:.55rem .9rem}[data-profile=cancel]{align-self:flex-start;color:var(--bk-muted)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-security=alert-list]{display:flex;flex-direction:column;gap:.45rem;list-style:none;margin:0;padding:0}[data-security=alert]{align-items:center;border:
|
|
1
|
+
@layer nuxt-backend{[data-security=alert-list]{display:flex;flex-direction:column;gap:.45rem;list-style:none;margin:0;padding:0}[data-security=alert]{align-items:center;border:var(--bk-border-width) solid var(--bk-edge);border-left:3px solid var(--bk-warn);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);display:flex;font-size:.85rem;gap:.6rem;padding:.55rem .7rem}[data-security=alert][data-state=recovery]{border-left-color:var(--bk-error)}[data-security=alert-text]{flex:1}[data-security=alerts-empty]{color:var(--bk-muted);font-size:.85rem;margin:0}[data-security=alert-revoke]{color:var(--bk-error);font-size:.78rem;padding:.3rem .6rem}}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { busyAttributes } from "../../a11y";
|
|
4
|
+
import { alertDevice } from "./security-alerts";
|
|
4
5
|
import { useSecurityView } from "./security-settings";
|
|
5
6
|
defineOptions({ name: "SecurityAlerts" });
|
|
6
7
|
const props = defineProps({
|
|
@@ -11,7 +12,7 @@ const { t, errorMessage } = view.labels;
|
|
|
11
12
|
const list = computed(() => props.alerts.alerts.value ?? []);
|
|
12
13
|
const sessions = computed(() => view.context.value.sessions.sessions.value ?? []);
|
|
13
14
|
const sessionOf = (alert) => alert.sessionId ? sessions.value.find((row) => row.id === alert.sessionId) : void 0;
|
|
14
|
-
const device = (alert) =>
|
|
15
|
+
const device = (alert) => alertDevice(alert, t);
|
|
15
16
|
const sentence = (alert) => t(alert.recovery ? "alertRecovery" : "alertNewDevice", { device: device(alert), date: view.date(alert.at) });
|
|
16
17
|
</script>
|
|
17
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-security=input-passkey-name]{background:transparent;border:
|
|
1
|
+
@layer nuxt-backend{[data-security=input-passkey-name]{background:transparent;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);color:inherit;font:inherit;padding:.3rem .5rem}[data-security=add-passkey]{align-self:flex-start;background:var(--bk-accent);border-color:var(--bk-accent);color:var(--bk-on-accent)}[data-security=passkeys-empty]{color:var(--bk-muted);font-size:.85rem;margin:0}[data-security=passkey-only]{align-items:center;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);display:flex;flex-wrap:wrap;gap:.6rem;padding:.75rem .8rem}[data-security=passkey-only][data-state=on]{border-color:color-mix(in srgb,var(--bk-ok) 45%,transparent)}[data-security=passkey-only-hint]{color:var(--bk-muted);flex-basis:100%;font-size:.85rem;line-height:1.5;margin:0}[data-security=passkey-only-on]{background:var(--bk-accent);border-color:var(--bk-accent);color:var(--bk-on-accent)}[data-security=passkey-only-off],[data-security=recovery-code-new]{font-size:.85rem}[data-security=recovery-code]{background:color-mix(in srgb,var(--bk-warn) 10%,transparent);border:var(--bk-border-width) solid color-mix(in srgb,var(--bk-warn) 55%,transparent);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);flex-basis:100%;font-variant-numeric:tabular-nums;line-height:1.5;margin:0;overflow-wrap:anywhere;padding:.7rem .8rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{[data-security=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:1.6rem}[data-security^=section-]{display:flex;flex-direction:column;gap:.6rem}[data-security=message]:focus,[data-security^=section-]:focus{outline:none}[data-security=passkey-list],[data-security=session-list]{display:flex;flex-direction:column;gap:.45rem;list-style:none;margin:0;padding:0}[data-security=passkey],[data-security=session]{align-items:center;border:
|
|
1
|
+
@layer nuxt-backend{[data-security=root]{color:var(--bk-ink);display:flex;flex-direction:column;gap:1.6rem}[data-security^=section-]{display:flex;flex-direction:column;gap:.6rem}[data-security=message]:focus,[data-security^=section-]:focus{outline:none}[data-security=passkey-list],[data-security=session-list]{display:flex;flex-direction:column;gap:.45rem;list-style:none;margin:0;padding:0}[data-security=passkey],[data-security=session]{align-items:center;border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius);box-shadow:var(--bk-shadow);display:flex;font-size:.85rem;gap:.6rem;padding:.55rem .7rem}[data-security=passkey-name],[data-security=session-name]{font-weight:600}[data-security=passkey-meta],[data-security=session-meta]{color:var(--bk-muted);flex:1;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-security=remove],[data-security=rename],[data-security=revoke]{font-size:.78rem;padding:.3rem .6rem}[data-security=remove],[data-security=revoke]{border-color:color-mix(in srgb,var(--bk-error) 50%,transparent);color:var(--bk-error)}[data-security=revoke-others],[data-security=sign-out]{align-self:flex-start;color:var(--bk-muted)}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FunctionReference } from 'convex/server';
|
|
1
2
|
import { type ComputedRef } from 'vue';
|
|
2
3
|
import type { SignInAlert } from '../../../../convex/client/auth-types.js';
|
|
3
4
|
import type { BackendError } from '../../utils/backend-error.js';
|
|
@@ -11,3 +12,9 @@ export interface SignInAlertsState {
|
|
|
11
12
|
/** Why the list could not be read, else `null`. */
|
|
12
13
|
error: ComputedRef<BackendError | null>;
|
|
13
14
|
}
|
|
15
|
+
/** The function of `auth.api` the alerts read. */
|
|
16
|
+
export interface SignInAlertsApi {
|
|
17
|
+
listSignInAlerts?: FunctionReference<'query', 'public', Record<string, never>, SignInAlert[] | null>;
|
|
18
|
+
}
|
|
19
|
+
/** The device an alert names, in the `security` labels' words: `Firefox · macOS`, `Browser · iOS`, or "Unknown device". */
|
|
20
|
+
export declare function alertDevice(alert: Pick<SignInAlert, 'browser' | 'os'>, t: (key: 'device' | 'browser' | 'unknownDevice', params?: Record<string, string>) => string): string;
|
|
@@ -2,8 +2,12 @@ import { computed, inject } from "vue";
|
|
|
2
2
|
import { ConvexAuthStateKey } from "nuxt-convex-module/client";
|
|
3
3
|
import { absentQuery, useLiveQuery } from "../../utils/live-query.js";
|
|
4
4
|
import { useApiNamespace } from "../../utils/namespace.js";
|
|
5
|
-
export function
|
|
6
|
-
|
|
5
|
+
export function alertDevice(alert, t) {
|
|
6
|
+
if (alert.os) return t("device", { browser: alert.browser ?? t("browser"), os: alert.os });
|
|
7
|
+
return alert.browser ?? t("unknownDevice");
|
|
8
|
+
}
|
|
9
|
+
export function useSignInAlertsState(own) {
|
|
10
|
+
const api = own ?? useApiNamespace("auth");
|
|
7
11
|
const auth = inject(ConvexAuthStateKey, null);
|
|
8
12
|
const signedOut = computed(() => auth == null || !auth.isAuthenticated.value);
|
|
9
13
|
const authLoading = computed(() => auth != null && auth.isLoading.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer nuxt-backend{:where([data-admin=access])>section,[data-admin=access]{color:var(--bk-ink);display:flex;flex-direction:column;gap:.75rem;min-width:0}[data-admin=access-admit-form],[data-admin=access-create],[data-admin=access-phases],[data-admin=access-shown]{align-items:end;display:flex;flex-wrap:wrap;gap:.5rem}:where([data-admin=access]) label{display:flex;flex-direction:column;gap:.25rem}[data-admin=access-admit-email]{align-items:center;flex-direction:row;gap:.4rem}[data-admin=access-admit-form] [data-admin=hint]{flex-basis:100%;margin:0}[data-admin=access-secret]{border:
|
|
1
|
+
@layer nuxt-backend{:where([data-admin=access])>section,[data-admin=access]{color:var(--bk-ink);display:flex;flex-direction:column;gap:.75rem;min-width:0}[data-admin=access-admit-form],[data-admin=access-create],[data-admin=access-phases],[data-admin=access-shown]{align-items:end;display:flex;flex-wrap:wrap;gap:.5rem}:where([data-admin=access]) label{display:flex;flex-direction:column;gap:.25rem}[data-admin=access-admit-email]{align-items:center;flex-direction:row;gap:.4rem}[data-admin=access-admit-form] [data-admin=hint]{flex-basis:100%;margin:0}[data-admin=access-secret]{border:var(--bk-border-width) solid var(--bk-edge);border-radius:var(--bk-radius-control);overflow-wrap:anywhere;padding:.35rem .6rem}:where([data-admin=access]) table{border-collapse:collapse;width:100%}:where([data-admin=access]) td,:where([data-admin=access]) th{border-bottom:1px solid var(--bk-edge);padding:.35rem .5rem;text-align:start}:where([data-admin=access] tr)[data-state=expired],:where([data-admin=access] tr)[data-state=revoked],:where([data-admin=access] tr)[data-state=used-up],:where([data-admin=access] tr)[data-state=used]{color:var(--bk-muted)}[data-admin=access] [data-state=ok]{color:var(--bk-ok)}[data-admin=access] [data-state=error]{color:var(--bk-error)}}
|
|
@@ -3,6 +3,7 @@ import AdminTabDialogs from "./AdminTabDialogs.vue";
|
|
|
3
3
|
import AdminTabStatus from "./AdminTabStatus.vue";
|
|
4
4
|
import AdminAccessAdmissions from "./AdminAccessAdmissions.vue";
|
|
5
5
|
import AdminAccessInvites from "./AdminAccessInvites.vue";
|
|
6
|
+
import AdminAccessMemberTickets from "./AdminAccessMemberTickets.vue";
|
|
6
7
|
import AdminAccessPhase from "./AdminAccessPhase.vue";
|
|
7
8
|
import { useAccessTab } from "./admin-access-tab";
|
|
8
9
|
const props = defineProps({
|
|
@@ -35,6 +36,7 @@ const { t, access, data, message } = tab;
|
|
|
35
36
|
</p>
|
|
36
37
|
<AdminAccessPhase :tab="tab" />
|
|
37
38
|
<AdminAccessInvites :tab="tab" />
|
|
39
|
+
<AdminAccessMemberTickets :tab="tab" />
|
|
38
40
|
<AdminAccessAdmissions :tab="tab" />
|
|
39
41
|
</template>
|
|
40
42
|
<AdminTabStatus
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AccessTab } from './admin-access-tab.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tab: AccessTab;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|