nuxt-backend 0.3.0 → 0.4.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 +8 -1
- package/dist/chunks/catalog.mjs +1 -1
- package/dist/chunks/doctor.mjs +102 -8
- 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 +6 -6
- package/dist/cli.mjs +285 -140
- package/dist/convex/catalog.d.ts +8 -0
- package/dist/convex/catalog.d.ts.map +1 -1
- package/dist/convex/catalog.js +16 -0
- package/dist/convex/catalog.js.map +1 -1
- package/dist/convex/components/backend/_generated/component.d.ts +21 -1
- package/dist/convex/components/backend/_generated/component.d.ts.map +1 -1
- package/dist/convex/components/backend/billing.d.ts +7 -0
- package/dist/convex/components/backend/billing.d.ts.map +1 -1
- package/dist/convex/components/backend/billing.js +20 -5
- package/dist/convex/components/backend/billing.js.map +1 -1
- package/dist/convex/components/backend/jobs.d.ts +69 -1
- package/dist/convex/components/backend/jobs.d.ts.map +1 -1
- package/dist/convex/components/backend/jobs.js +103 -5
- package/dist/convex/components/backend/jobs.js.map +1 -1
- package/dist/convex/components/backend/schema.d.ts +46 -18
- package/dist/convex/components/backend/schema.d.ts.map +1 -1
- package/dist/convex/components/backend/schema.js +11 -0
- package/dist/convex/components/backend/schema.js.map +1 -1
- package/dist/convex/components/backend/subscriptions.d.ts +3 -3
- package/dist/convex/delivery.d.ts +17 -0
- package/dist/convex/delivery.d.ts.map +1 -1
- package/dist/convex/delivery.js +26 -1
- package/dist/convex/delivery.js.map +1 -1
- package/dist/convex/emails/renewal-reminder.d.ts.map +1 -1
- package/dist/convex/emails/renewal-reminder.js +17 -1
- package/dist/convex/emails/renewal-reminder.js.map +1 -1
- package/dist/convex/errors.d.ts +7 -5
- package/dist/convex/errors.d.ts.map +1 -1
- package/dist/convex/errors.js +24 -9
- package/dist/convex/errors.js.map +1 -1
- package/dist/convex/events.d.ts +10 -0
- package/dist/convex/events.d.ts.map +1 -1
- package/dist/convex/events.js +7 -0
- package/dist/convex/events.js.map +1 -1
- package/dist/convex/integrations/ai/images.d.ts.map +1 -1
- package/dist/convex/integrations/ai/images.js +20 -7
- package/dist/convex/integrations/ai/images.js.map +1 -1
- package/dist/convex/integrations/ai/job-errors.d.ts +32 -4
- package/dist/convex/integrations/ai/job-errors.d.ts.map +1 -1
- package/dist/convex/integrations/ai/job-errors.js +55 -8
- package/dist/convex/integrations/ai/job-errors.js.map +1 -1
- package/dist/convex/integrations/ai/jobs.d.ts +128 -7
- package/dist/convex/integrations/ai/jobs.d.ts.map +1 -1
- package/dist/convex/integrations/ai/jobs.js +395 -63
- package/dist/convex/integrations/ai/jobs.js.map +1 -1
- package/dist/convex/integrations/ai/models.d.ts +1 -1
- package/dist/convex/integrations/ai/models.d.ts.map +1 -1
- package/dist/convex/integrations/ai/moderation.d.ts +9 -3
- package/dist/convex/integrations/ai/moderation.d.ts.map +1 -1
- package/dist/convex/integrations/ai/moderation.js +4 -2
- package/dist/convex/integrations/ai/moderation.js.map +1 -1
- package/dist/convex/integrations/ai.d.ts +2 -2
- package/dist/convex/integrations/ai.d.ts.map +1 -1
- package/dist/convex/integrations/ai.js +1 -1
- package/dist/convex/integrations/ai.js.map +1 -1
- package/dist/convex/integrations/billing/context.d.ts.map +1 -1
- package/dist/convex/integrations/billing/context.js +5 -2
- package/dist/convex/integrations/billing/context.js.map +1 -1
- package/dist/convex/integrations/billing/credits.d.ts +1 -0
- package/dist/convex/integrations/billing/credits.d.ts.map +1 -1
- package/dist/convex/integrations/billing/credits.js +4 -1
- 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/gifts.d.ts.map +1 -1
- package/dist/convex/integrations/billing/history.d.ts.map +1 -1
- package/dist/convex/integrations/billing/passes.d.ts +2 -2
- package/dist/convex/integrations/billing/passes.d.ts.map +1 -1
- package/dist/convex/integrations/billing/passes.js +3 -11
- package/dist/convex/integrations/billing/passes.js.map +1 -1
- package/dist/convex/integrations/billing/provider-failure.d.ts +17 -0
- package/dist/convex/integrations/billing/provider-failure.d.ts.map +1 -0
- package/dist/convex/integrations/billing/provider-failure.js +52 -0
- package/dist/convex/integrations/billing/provider-failure.js.map +1 -0
- package/dist/convex/integrations/billing/quotas.d.ts.map +1 -1
- package/dist/convex/integrations/billing/subscriptions.d.ts.map +1 -1
- package/dist/convex/integrations/billing/types/setup.d.ts +1 -0
- package/dist/convex/integrations/billing/types/setup.d.ts.map +1 -1
- package/dist/convex/integrations/billing/types/surface.d.ts +9 -1
- package/dist/convex/integrations/billing/types/surface.d.ts.map +1 -1
- package/dist/convex/integrations/email-sync.d.ts +24 -2
- package/dist/convex/integrations/email-sync.d.ts.map +1 -1
- package/dist/convex/integrations/email-sync.js +54 -23
- package/dist/convex/integrations/email-sync.js.map +1 -1
- package/dist/convex/integrations/inbound.d.ts +16 -7
- package/dist/convex/integrations/inbound.d.ts.map +1 -1
- package/dist/convex/integrations/inbound.js +21 -10
- package/dist/convex/integrations/inbound.js.map +1 -1
- package/dist/convex/integrations/launch.d.ts +17 -1
- package/dist/convex/integrations/launch.d.ts.map +1 -1
- package/dist/convex/integrations/launch.js +32 -3
- package/dist/convex/integrations/launch.js.map +1 -1
- package/dist/convex/integrations/referrals.d.ts +20 -0
- package/dist/convex/integrations/referrals.d.ts.map +1 -1
- package/dist/convex/integrations/referrals.js +14 -9
- package/dist/convex/integrations/referrals.js.map +1 -1
- package/dist/convex/integrations/storage.d.ts +67 -0
- package/dist/convex/integrations/storage.d.ts.map +1 -1
- package/dist/convex/integrations/storage.js +42 -1
- package/dist/convex/integrations/storage.js.map +1 -1
- package/dist/convex/label-groups/admin.d.ts +3 -0
- package/dist/convex/label-groups/admin.d.ts.map +1 -1
- package/dist/convex/label-groups/admin.js +3 -0
- package/dist/convex/label-groups/admin.js.map +1 -1
- package/dist/convex/label-groups/audit.d.ts +1 -0
- package/dist/convex/label-groups/audit.d.ts.map +1 -1
- package/dist/convex/label-groups/audit.js +1 -0
- package/dist/convex/label-groups/audit.js.map +1 -1
- package/dist/convex/label-groups/auth.d.ts +7 -0
- package/dist/convex/label-groups/auth.d.ts.map +1 -1
- package/dist/convex/label-groups/auth.js +7 -0
- package/dist/convex/label-groups/auth.js.map +1 -1
- package/dist/convex/label-groups/errors.d.ts +9 -0
- package/dist/convex/label-groups/errors.d.ts.map +1 -1
- package/dist/convex/label-groups/errors.js +12 -0
- package/dist/convex/label-groups/errors.js.map +1 -1
- package/dist/convex/label-groups/gift.d.ts +24 -0
- package/dist/convex/label-groups/gift.d.ts.map +1 -1
- package/dist/convex/label-groups/gift.js +27 -0
- package/dist/convex/label-groups/gift.js.map +1 -1
- package/dist/convex/label-groups/legal.d.ts +1 -1
- package/dist/convex/label-groups/pricing.d.ts +15 -0
- package/dist/convex/label-groups/pricing.d.ts.map +1 -1
- package/dist/convex/label-groups/pricing.js +20 -0
- package/dist/convex/label-groups/pricing.js.map +1 -1
- package/dist/convex/label-groups/referral.d.ts +4 -0
- package/dist/convex/label-groups/referral.d.ts.map +1 -1
- package/dist/convex/label-groups/referral.js +4 -0
- package/dist/convex/label-groups/referral.js.map +1 -1
- package/dist/convex/label-groups/settings.d.ts +34 -0
- package/dist/convex/label-groups/settings.d.ts.map +1 -1
- package/dist/convex/label-groups/settings.js +39 -0
- package/dist/convex/label-groups/settings.js.map +1 -1
- package/dist/convex/label-groups/waitlist.d.ts +5 -0
- package/dist/convex/label-groups/waitlist.d.ts.map +1 -1
- package/dist/convex/label-groups/waitlist.js +7 -2
- package/dist/convex/label-groups/waitlist.js.map +1 -1
- package/dist/convex/labels.d.ts +103 -1
- package/dist/convex/labels.d.ts.map +1 -1
- package/dist/convex/legal.d.ts +18 -1
- package/dist/convex/legal.d.ts.map +1 -1
- package/dist/convex/legal.js +17 -2
- package/dist/convex/legal.js.map +1 -1
- package/dist/convex/log.js +8 -0
- package/dist/convex/log.js.map +1 -1
- package/dist/convex/money.d.ts +10 -0
- package/dist/convex/money.d.ts.map +1 -0
- package/dist/convex/money.js +37 -0
- package/dist/convex/money.js.map +1 -0
- package/dist/convex/report-rules.d.ts +6 -0
- package/dist/convex/report-rules.d.ts.map +1 -1
- package/dist/convex/report-rules.js +15 -0
- package/dist/convex/report-rules.js.map +1 -1
- package/dist/convex/test-billing.d.ts +83 -0
- package/dist/convex/test-billing.d.ts.map +1 -0
- package/dist/convex/test-billing.js +131 -0
- package/dist/convex/test-billing.js.map +1 -0
- package/dist/convex/test-models.d.ts +14 -2
- package/dist/convex/test-models.d.ts.map +1 -1
- package/dist/convex/test-models.js +61 -4
- package/dist/convex/test-models.js.map +1 -1
- package/dist/devtools-client/index.html +1 -1
- package/dist/eslint.d.mts +2 -1
- package/dist/eslint.mjs +2 -1
- package/dist/module.d.ts +45 -2
- package/dist/module.js +2 -2
- package/dist/module.json +1 -1
- package/dist/runtime/chunk-recovery.d.ts +13 -0
- package/dist/runtime/chunk-recovery.js +1 -0
- package/dist/runtime/locales/de.json +113 -7
- package/dist/runtime/locales/en.json +114 -8
- package/dist/runtime/locales/es.json +113 -7
- package/dist/runtime/locales/fr.json +113 -7
- package/dist/runtime/locales/ru.json +113 -7
- package/dist/runtime/server/chunk-recovery.d.ts +49 -0
- package/dist/runtime/server/chunk-recovery.js +44 -0
- package/dist/runtime/server/csp.d.ts +7 -2
- package/dist/runtime/server/csp.js +2 -2
- package/dist/runtime/server/photo-decoder-csp.d.ts +17 -0
- package/dist/runtime/server/photo-decoder-csp.js +9 -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/ConsentPrompt.css +1 -1
- package/dist/runtime/vue/components/account/EmailUnsubscribe.css +1 -1
- package/dist/runtime/vue/components/account/HowDidYouHear.css +1 -1
- 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/ProfileIdentity.css +1 -1
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.css +1 -1
- package/dist/runtime/vue/components/account/ProfileSettings.css +1 -1
- package/dist/runtime/vue/components/account/SecurityAlerts.css +1 -1
- package/dist/runtime/vue/components/account/SecurityPasskeys.css +1 -1
- package/dist/runtime/vue/components/account/SecuritySessions.css +1 -1
- package/dist/runtime/vue/components/account/SecuritySettings.css +1 -1
- package/dist/runtime/vue/components/admin/AdminAccess.css +1 -1
- 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/AdminQueue.css +1 -1
- package/dist/runtime/vue/components/admin/AdminQueueJob.vue +5 -2
- 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 +3 -0
- package/dist/runtime/vue/components/admin/AdminUsers.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/admin-access-tab.js +2 -1
- package/dist/runtime/vue/components/admin/admin-revenue-tab.js +4 -1
- 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.d.vue.ts +7 -0
- package/dist/runtime/vue/components/auth/AuthForm.vue +1 -2
- package/dist/runtime/vue/components/auth/AuthForm.vue.d.ts +7 -0
- package/dist/runtime/vue/components/auth/AuthFormChoose.css +1 -1
- package/dist/runtime/vue/components/auth/AuthFormHeader.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/InviteRedeem.vue +95 -8
- 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/ReauthenticatePasskey.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistForm.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistForm.d.vue.ts +5 -0
- package/dist/runtime/vue/components/auth/WaitlistForm.vue +3 -5
- package/dist/runtime/vue/components/auth/WaitlistForm.vue.d.ts +5 -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/auth/WaitlistShare.vue +1 -7
- package/dist/runtime/vue/components/auth/WaitlistStatus.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistStatus.vue +120 -23
- package/dist/runtime/vue/components/auth/auth-form.d.ts +1 -1
- package/dist/runtime/vue/components/auth/waitlist-form.js +1 -1
- package/dist/runtime/vue/components/billing/BillingHistory.css +1 -1
- package/dist/runtime/vue/components/billing/BillingHistoryOrder.css +1 -1
- package/dist/runtime/vue/components/billing/CancelConfirmGroup.vue +2 -7
- package/dist/runtime/vue/components/billing/CancelFlow.css +1 -1
- package/dist/runtime/vue/components/billing/GiftForm.css +1 -0
- package/dist/runtime/vue/components/billing/GiftForm.d.vue.ts +105 -0
- package/dist/runtime/vue/components/billing/GiftForm.vue +228 -0
- package/dist/runtime/vue/components/billing/GiftForm.vue.d.ts +105 -0
- package/dist/runtime/vue/components/billing/GiftList.css +1 -1
- package/dist/runtime/vue/components/billing/GiftList.d.vue.ts +87 -2
- package/dist/runtime/vue/components/billing/GiftList.vue +7 -4
- package/dist/runtime/vue/components/billing/GiftList.vue.d.ts +87 -2
- package/dist/runtime/vue/components/billing/GiftReceived.vue +11 -3
- package/dist/runtime/vue/components/billing/PlanChangeConfirmGroup.d.vue.ts +7 -0
- package/dist/runtime/vue/components/billing/PlanChangeConfirmGroup.vue +50 -0
- package/dist/runtime/vue/components/billing/PlanChangeConfirmGroup.vue.d.ts +7 -0
- package/dist/runtime/vue/components/billing/PricingChangeConfirm.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/PricingChangeConfirm.vue +17 -0
- package/dist/runtime/vue/components/billing/PricingChangeConfirm.vue.d.ts +4 -0
- 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 +15 -0
- package/dist/runtime/vue/components/billing/PricingTable.css +1 -1
- package/dist/runtime/vue/components/billing/PricingTable.d.vue.ts +24 -2
- package/dist/runtime/vue/components/billing/PricingTable.vue +84 -17
- package/dist/runtime/vue/components/billing/PricingTable.vue.d.ts +24 -2
- package/dist/runtime/vue/components/billing/ReferralCard.css +1 -1
- package/dist/runtime/vue/components/billing/ReferralCard.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/ReferralCard.vue.d.ts +4 -0
- package/dist/runtime/vue/components/billing/ReferralLanding.css +1 -1
- package/dist/runtime/vue/components/billing/ReferralLanding.vue +44 -2
- package/dist/runtime/vue/components/billing/UpgradePrompt.css +1 -1
- package/dist/runtime/vue/components/billing/UsageHistory.css +1 -1
- package/dist/runtime/vue/components/billing/WithdrawalButton.css +1 -1
- package/dist/runtime/vue/components/billing/cancel-flow.js +2 -1
- package/dist/runtime/vue/components/billing/pricing-table.d.ts +10 -0
- package/dist/runtime/vue/components/billing/withdrawal-button.d.ts +3 -2
- package/dist/runtime/vue/components/billing/withdrawal-button.js +13 -33
- 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/AiLabel.css +1 -1
- package/dist/runtime/vue/components/shell/AppShell.css +1 -1
- 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/ContactForm.css +1 -1
- package/dist/runtime/vue/components/shell/Gate.css +1 -1
- package/dist/runtime/vue/components/shell/LegalDocument.css +1 -1
- 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/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/ReportAppeal.vue +16 -13
- 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/WorkspaceSwitcher.css +1 -1
- package/dist/runtime/vue/components/shell/report-form.js +1 -44
- package/dist/runtime/vue/components/tokens.css +1 -1
- package/dist/runtime/vue/components/workspaces/AuditLog.css +1 -1
- package/dist/runtime/vue/components/workspaces/AuditLog.d.vue.ts +1 -0
- package/dist/runtime/vue/components/workspaces/AuditLog.vue.d.ts +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.css +1 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.vue +29 -50
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingPause.d.vue.ts +3 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingPause.vue +69 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingPause.vue.d.ts +3 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingSwitch.d.vue.ts +3 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingSwitch.vue +54 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingSwitch.vue.d.ts +3 -0
- 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 +38 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue +32 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue.d.ts +38 -0
- package/dist/runtime/vue/components/workspaces/workspace-billing.d.ts +39 -2
- package/dist/runtime/vue/components/workspaces/workspace-billing.js +94 -2
- package/dist/runtime/vue/components/workspaces/workspace-settings.d.ts +4 -0
- package/dist/runtime/vue/composables/billing-format.d.ts +9 -4
- package/dist/runtime/vue/composables/billing-format.js +17 -9
- package/dist/runtime/vue/composables/billing-provider.js +3 -2
- package/dist/runtime/vue/composables/prepare-photo.d.ts +75 -0
- package/dist/runtime/vue/composables/prepare-photo.js +223 -0
- package/dist/runtime/vue/composables/use-access.d.ts +23 -2
- package/dist/runtime/vue/composables/use-access.js +22 -3
- package/dist/runtime/vue/composables/use-billing.d.ts +76 -5
- package/dist/runtime/vue/composables/use-billing.js +48 -0
- package/dist/runtime/vue/composables/use-gift-form.d.ts +123 -0
- package/dist/runtime/vue/composables/use-gift-form.js +169 -0
- package/dist/runtime/vue/composables/use-gift-list.d.ts +44 -4
- package/dist/runtime/vue/composables/use-gift-list.js +11 -5
- package/dist/runtime/vue/composables/use-install-prompt.d.ts +71 -0
- package/dist/runtime/vue/composables/use-install-prompt.js +53 -0
- package/dist/runtime/vue/composables/use-labels.js +17 -23
- package/dist/runtime/vue/composables/use-login-flow.d.ts +9 -0
- package/dist/runtime/vue/composables/use-login-flow.js +7 -0
- package/dist/runtime/vue/composables/use-orders.d.ts +1 -1
- package/dist/runtime/vue/composables/use-pricing.d.ts +54 -5
- package/dist/runtime/vue/composables/use-pricing.js +37 -10
- package/dist/runtime/vue/composables/use-push-subscription.js +1 -7
- package/dist/runtime/vue/composables/use-referral-invite.d.ts +17 -2
- package/dist/runtime/vue/composables/use-referral-invite.js +10 -1
- package/dist/runtime/vue/composables/use-referrals.js +2 -1
- package/dist/runtime/vue/composables/use-report-appeal.d.ts +86 -0
- package/dist/runtime/vue/composables/use-report-appeal.js +61 -0
- package/dist/runtime/vue/composables/use-return-path.d.ts +5 -4
- package/dist/runtime/vue/composables/use-return-path.js +16 -2
- package/dist/runtime/vue/composables/use-waitlist.d.ts +13 -1
- package/dist/runtime/vue/composables/use-waitlist.js +15 -4
- package/dist/runtime/vue/composables/use-withdrawal.d.ts +63 -0
- package/dist/runtime/vue/composables/use-withdrawal.js +38 -0
- package/dist/runtime/vue/middleware/page-access.js +2 -2
- package/dist/runtime/vue/pages/gifts.vue +2 -0
- package/dist/runtime/vue/pages/login.vue +5 -7
- package/dist/runtime/vue/pages/report.vue +2 -3
- package/dist/runtime/vue/parts.d.ts +5 -0
- package/dist/runtime/vue/plugins/chunk-recovery.client.d.ts +10 -0
- package/dist/runtime/vue/plugins/chunk-recovery.client.js +10 -0
- package/dist/runtime/vue/plugins/install-banner.client.d.ts +7 -0
- package/dist/runtime/vue/plugins/install-banner.client.js +5 -0
- package/dist/runtime/vue/plugins/install-prompt.client.d.ts +7 -0
- package/dist/runtime/vue/plugins/install-prompt.client.js +6 -0
- package/dist/runtime/vue/plugins/session-ended.js +2 -3
- package/dist/runtime/vue/utils/active-locale.js +8 -0
- package/dist/runtime/vue/utils/confirm-group.d.ts +18 -0
- package/dist/runtime/vue/utils/confirm-group.js +17 -0
- package/dist/runtime/vue/utils/display-mode.d.ts +8 -0
- package/dist/runtime/vue/utils/display-mode.js +11 -0
- package/dist/runtime/vue/utils/heic-absent.d.ts +2 -0
- package/dist/runtime/vue/utils/heic-absent.js +3 -0
- package/dist/runtime/vue/utils/intl.d.ts +12 -4
- package/dist/runtime/vue/utils/intl.js +13 -2
- package/dist/runtime/vue/utils/kept-invite.js +6 -29
- package/dist/runtime/vue/utils/page-origin.d.ts +15 -0
- package/dist/runtime/vue/utils/page-origin.js +8 -0
- package/dist/runtime/vue/utils/page-rules.d.ts +9 -0
- package/dist/runtime/vue/utils/page-rules.js +3 -0
- package/dist/runtime/vue/utils/plan-change-confirm.d.ts +76 -0
- package/dist/runtime/vue/utils/plan-change-confirm.js +39 -0
- package/dist/runtime/vue/utils/pricing-bindings.d.ts +7 -1
- package/dist/runtime/vue/utils/pricing-bindings.js +21 -0
- package/dist/runtime/vue/utils/pricing-seo.js +4 -2
- package/dist/runtime/vue/utils/tab-keep.d.ts +17 -0
- package/dist/runtime/vue/utils/tab-keep.js +46 -0
- package/dist/shared/{nuxt-backend.Bq_mhlky.mjs → nuxt-backend.9IVxzzft.mjs} +55 -10
- package/dist/shared/{nuxt-backend.DmZI-QSO.mjs → nuxt-backend.BCjeoX0x.mjs} +2 -26
- package/dist/shared/{nuxt-backend.D9qXcOOI.mjs → nuxt-backend.Baxb382E.mjs} +1 -1
- package/dist/shared/{nuxt-backend.Lk2MQI2u.mjs → nuxt-backend.BjQoqNIu.mjs} +26 -2
- package/dist/shared/{nuxt-backend.G4JryO1q.mjs → nuxt-backend.CbR37s_c.mjs} +255 -49
- package/package.json +6 -1
- package/skills/nuxt-backend/references/api.md +26 -10
- package/skills/nuxt-backend/references/renames.json +104 -0
- package/skills/nuxt-backend/references/surface.json +30 -2
- package/skills/nuxt-backend-ai/references/api.md +2 -1
- package/skills/nuxt-backend-auth/references/api.md +1 -1
- package/skills/nuxt-backend-billing/references/api.md +2 -0
- package/skills/nuxt-backend-data/references/api.md +4 -1
- package/skills/nuxt-backend-email/SKILL.md +5 -2
- package/skills/nuxt-backend-email/references/api.md +1 -0
- package/skills/nuxt-backend-growth/references/api.md +4 -0
- package/skills/nuxt-backend-ship/SKILL.md +1 -1
- package/skills/nuxt-backend-ship/references/api.md +9 -5
- package/skills/nuxt-backend-ui/SKILL.md +10 -5
- package/skills/nuxt-backend-upgrade/SKILL.md +4 -3
- package/skills/nuxt-backend-upgrade/references/upgrade.md +43 -0
- package/src/convex/catalog.ts +17 -0
- package/src/convex/components/backend/_generated/component.ts +30 -2
- package/src/convex/components/backend/billing.ts +19 -5
- package/src/convex/components/backend/jobs.ts +102 -5
- package/src/convex/components/backend/schema.ts +11 -0
- package/src/convex/delivery.ts +26 -1
- package/src/convex/emails/renewal-reminder.ts +19 -1
- package/src/convex/errors.ts +23 -9
- package/src/convex/events.ts +7 -0
- package/src/convex/integrations/ai/images.ts +22 -8
- package/src/convex/integrations/ai/job-errors.ts +64 -9
- package/src/convex/integrations/ai/jobs.ts +509 -64
- package/src/convex/integrations/ai/models.ts +1 -1
- package/src/convex/integrations/ai/moderation.ts +10 -5
- package/src/convex/integrations/ai.ts +6 -1
- package/src/convex/integrations/billing/context.ts +6 -3
- package/src/convex/integrations/billing/credits.ts +4 -1
- package/src/convex/integrations/billing/passes.ts +3 -11
- package/src/convex/integrations/billing/provider-failure.ts +56 -0
- package/src/convex/integrations/billing/types/setup.ts +1 -1
- package/src/convex/integrations/billing/types/surface.ts +9 -2
- package/src/convex/integrations/email-sync.ts +74 -26
- package/src/convex/integrations/inbound.ts +32 -16
- package/src/convex/integrations/launch.ts +52 -5
- package/src/convex/integrations/referrals.ts +25 -7
- package/src/convex/integrations/storage.ts +107 -1
- package/src/convex/label-groups/admin.ts +3 -0
- package/src/convex/label-groups/audit.ts +1 -0
- package/src/convex/label-groups/auth.ts +7 -0
- package/src/convex/label-groups/errors.ts +12 -0
- package/src/convex/label-groups/gift.ts +27 -0
- package/src/convex/label-groups/pricing.ts +20 -0
- package/src/convex/label-groups/referral.ts +4 -0
- package/src/convex/label-groups/settings.ts +39 -0
- package/src/convex/label-groups/waitlist.ts +7 -2
- package/src/convex/legal.ts +23 -2
- package/src/convex/log.ts +8 -0
- package/src/convex/money.ts +40 -0
- package/src/convex/report-rules.ts +16 -0
- package/src/convex/test-billing.ts +189 -0
- package/src/convex/test-models.ts +59 -4
- package/src/convex/test.ts +95 -8
- package/src/runtime/vue/components/account/AccountDeletion.css +1 -1
- package/src/runtime/vue/components/account/ActivationChecklist.css +5 -3
- package/src/runtime/vue/components/account/ConsentPrompt.css +7 -5
- package/src/runtime/vue/components/account/EmailUnsubscribe.css +8 -4
- package/src/runtime/vue/components/account/HowDidYouHear.css +9 -5
- package/src/runtime/vue/components/account/KeepAccount.css +4 -2
- package/src/runtime/vue/components/account/OnboardingFlow.css +6 -4
- package/src/runtime/vue/components/account/ProfileIdentity.css +1 -1
- package/src/runtime/vue/components/account/ProfilePreferencesSection.css +4 -2
- package/src/runtime/vue/components/account/ProfileSettings.css +4 -2
- package/src/runtime/vue/components/account/SecurityAlerts.css +1 -1
- package/src/runtime/vue/components/account/SecurityPasskeys.css +3 -3
- package/src/runtime/vue/components/account/SecuritySessions.css +1 -1
- package/src/runtime/vue/components/account/SecuritySettings.css +1 -1
- package/src/runtime/vue/components/admin/AdminAccess.css +1 -1
- package/src/runtime/vue/components/admin/AdminAnnouncements.css +2 -2
- package/src/runtime/vue/components/admin/AdminBilling.css +1 -1
- package/src/runtime/vue/components/admin/AdminChart.css +1 -1
- package/src/runtime/vue/components/admin/AdminConsole.css +1 -0
- package/src/runtime/vue/components/admin/AdminExperiments.css +1 -1
- package/src/runtime/vue/components/admin/AdminFlags.css +2 -2
- package/src/runtime/vue/components/admin/AdminQueue.css +5 -3
- package/src/runtime/vue/components/admin/AdminQueueJob.vue +6 -2
- package/src/runtime/vue/components/admin/AdminReferrals.css +4 -2
- package/src/runtime/vue/components/admin/AdminReports.css +1 -1
- package/src/runtime/vue/components/admin/AdminRevenue.css +1 -1
- package/src/runtime/vue/components/admin/admin.css +3 -3
- package/src/runtime/vue/components/auth/AuthForm.css +7 -4
- package/src/runtime/vue/components/auth/AuthForm.vue +1 -2
- package/src/runtime/vue/components/auth/AuthFormChoose.css +2 -1
- package/src/runtime/vue/components/auth/AuthFormHeader.css +1 -1
- package/src/runtime/vue/components/auth/AuthFormPasskeyOffer.css +1 -1
- package/src/runtime/vue/components/auth/InviteRedeem.css +56 -2
- package/src/runtime/vue/components/auth/InviteRedeem.vue +110 -9
- package/src/runtime/vue/components/auth/ReauthenticateCode.css +1 -1
- package/src/runtime/vue/components/auth/ReauthenticateDialog.css +6 -3
- package/src/runtime/vue/components/auth/ReauthenticatePasskey.css +1 -1
- package/src/runtime/vue/components/auth/WaitlistForm.css +4 -2
- package/src/runtime/vue/components/auth/WaitlistForm.vue +5 -6
- package/src/runtime/vue/components/auth/WaitlistPlace.css +4 -2
- package/src/runtime/vue/components/auth/WaitlistShare.css +6 -4
- package/src/runtime/vue/components/auth/WaitlistShare.vue +2 -8
- package/src/runtime/vue/components/auth/WaitlistStatus.css +27 -1
- package/src/runtime/vue/components/auth/WaitlistStatus.vue +153 -31
- package/src/runtime/vue/components/billing/BillingHistory.css +2 -2
- package/src/runtime/vue/components/billing/BillingHistoryOrder.css +1 -1
- package/src/runtime/vue/components/billing/CancelConfirmGroup.vue +2 -8
- package/src/runtime/vue/components/billing/CancelFlow.css +6 -4
- package/src/runtime/vue/components/billing/GiftForm.css +89 -0
- package/src/runtime/vue/components/billing/GiftForm.vue +251 -0
- package/src/runtime/vue/components/billing/GiftList.css +5 -3
- package/src/runtime/vue/components/billing/GiftList.vue +21 -9
- package/src/runtime/vue/components/billing/GiftReceived.vue +11 -3
- package/src/runtime/vue/components/billing/PlanChangeConfirmGroup.vue +59 -0
- package/src/runtime/vue/components/billing/PricingChangeConfirm.vue +22 -0
- package/src/runtime/vue/components/billing/PricingPackCard.css +1 -1
- package/src/runtime/vue/components/billing/PricingPlanCard.css +31 -4
- package/src/runtime/vue/components/billing/PricingPlanCard.vue +17 -2
- package/src/runtime/vue/components/billing/PricingTable.css +2 -2
- package/src/runtime/vue/components/billing/PricingTable.vue +141 -28
- package/src/runtime/vue/components/billing/ReferralCard.css +6 -4
- package/src/runtime/vue/components/billing/ReferralLanding.css +14 -3
- package/src/runtime/vue/components/billing/ReferralLanding.vue +54 -3
- package/src/runtime/vue/components/billing/UpgradePrompt.css +6 -4
- package/src/runtime/vue/components/billing/UsageHistory.css +2 -2
- package/src/runtime/vue/components/billing/WithdrawalButton.css +5 -3
- package/src/runtime/vue/components/shared.css +62 -9
- package/src/runtime/vue/components/shell/AccessDenied.css +5 -3
- package/src/runtime/vue/components/shell/AiLabel.css +2 -2
- package/src/runtime/vue/components/shell/AppShell.css +5 -3
- package/src/runtime/vue/components/shell/ConfirmDialog.css +5 -3
- package/src/runtime/vue/components/shell/ConnectionStatus.css +1 -1
- package/src/runtime/vue/components/shell/ContactForm.css +4 -2
- package/src/runtime/vue/components/shell/Gate.css +5 -3
- package/src/runtime/vue/components/shell/LegalDocument.css +1 -1
- package/src/runtime/vue/components/shell/NoticeAnnouncement.css +1 -1
- package/src/runtime/vue/components/shell/NoticeDeletion.css +5 -3
- package/src/runtime/vue/components/shell/NoticeGift.css +1 -1
- package/src/runtime/vue/components/shell/NoticeImpersonation.css +1 -1
- package/src/runtime/vue/components/shell/NoticeLowCredits.css +6 -3
- package/src/runtime/vue/components/shell/NoticeMaintenance.css +1 -1
- package/src/runtime/vue/components/shell/NoticePastDue.css +5 -3
- package/src/runtime/vue/components/shell/NotificationInbox.css +6 -4
- package/src/runtime/vue/components/shell/ReportAppeal.vue +17 -14
- package/src/runtime/vue/components/shell/ReportNotice.css +1 -1
- package/src/runtime/vue/components/shell/UploadField.css +5 -3
- package/src/runtime/vue/components/shell/WorkspaceSwitcher.css +5 -3
- package/src/runtime/vue/components/tokens.css +30 -0
- package/src/runtime/vue/components/workspaces/AuditLog.css +2 -2
- package/src/runtime/vue/components/workspaces/WorkspaceBilling.css +75 -2
- package/src/runtime/vue/components/workspaces/WorkspaceBilling.vue +45 -53
- package/src/runtime/vue/components/workspaces/WorkspaceBillingPause.vue +79 -0
- package/src/runtime/vue/components/workspaces/WorkspaceBillingSwitch.vue +63 -0
- package/src/runtime/vue/components/workspaces/WorkspaceCredits.css +1 -0
- package/src/runtime/vue/components/workspaces/WorkspaceList.css +2 -2
- package/src/runtime/vue/components/workspaces/WorkspaceSettings.vue +47 -4
- package/src/runtime/vue/pages/gifts.vue +12 -7
- package/src/runtime/vue/pages/invite.vue +4 -2
- package/src/runtime/vue/pages/login.vue +8 -8
- package/src/runtime/vue/pages/report.vue +2 -3
- package/src/runtime/vue/pages/waitlist.vue +8 -5
|
@@ -27,6 +27,9 @@ skill's own `references/api.md` has the part it covers. The docs: https://nuxt-b
|
|
|
27
27
|
| `useOrders()` | The signed-in customer's billing history — past charges straight from the provider's orders API, plus the per-order invoice link. |
|
|
28
28
|
| `useUsage()` | Consumption history for a credit meter, read from the provider's events API — the events your server ingested when it spent credits. |
|
|
29
29
|
| `useGifts()` | Gifts, from both sides. |
|
|
30
|
+
| `useGiftList()` | The gift lists without their markup: what a person received and sent, with names, dates and states in their language, and every action over `useGifts()`, a cancel behind a recent sign-in. |
|
|
31
|
+
| `useGiftForm()` | The gift form without its markup: a credit pack or a plan pass with its length (the lengths the plan is gifted for, at their live prices), the recipient, a note and a delivery day, and the send, which signs a visitor in and brings them back, then opens the purchaser's checkout over `useGifts().send`. |
|
|
32
|
+
| `useWithdrawal()` | The EU withdrawal window: whether the signed-in billing manager's purchase is still inside the 14 days of the Consumer Rights Directive's Art. 9, until when, and the withdrawal itself, the withdrawal function of its Art. 11a — what `<WithdrawalButton>` is built on, for a section of your own around it. |
|
|
30
33
|
| `useReferrals()` | A person's referral code, link and rewards: the data behind `<ReferralCard>`, for a page of your own. |
|
|
31
34
|
| `useReferralInvite()` | The state of the page a referral link (`/r/<code>`) opens, headless: what the link offers, the sign-in that returns to the page, and the claim. |
|
|
32
35
|
| `useReferralAdmin()` | The admin console's Referrals tab, as data: the program's totals, the top referrers, the flagged queue and one referrer's history, through `backend/referrals.ts`, and the decision an administrator makes on a flagged referral. |
|
|
@@ -48,25 +51,31 @@ skill's own `references/api.md` has the part it covers. The docs: https://nuxt-b
|
|
|
48
51
|
| `useWaitlistAdmin()` | The admin console's Waitlist tab, as data: the waiting people (the oldest first, narrowed by a filter) with a count per status, and the changes an administrator makes, through `backend/waitlist.ts`. |
|
|
49
52
|
| `useShareLink()` | One row's share link: whether it has a live one and since when, read live, and the actions that turn it on (or mint a new one) and off, through `getShareLink`, `enableShareLink` and `revokeShareLink` of `backend/storage.ts`. |
|
|
50
53
|
| `useUploadField()` | The upload field without its markup: pick a file (by the button or by dropping it), run your `prepare` on it, upload it with the base module's `useUploadQueue` through the upload URL `setupStorage` mints, then hand the storage id to your `claim`, where the deployment checks it. |
|
|
54
|
+
| `preparePhoto()` | Make one photo ready to send, in the browser: decoded (a HEIC through `heic-to` when this browser can't open it, loaded only then), turned upright by its EXIF orientation, scaled down to `longEdge`, and re-encoded as `type` (JPEG by default) on a canvas, which keeps the pixels and drops every metadata tag, GPS included. |
|
|
55
|
+
| `isPhotoFile()` | Whether a file picked, dropped or pasted is worth preparing as a photo: an image type other than SVG and GIF, or a HEIC the device left untyped. |
|
|
56
|
+
| `PhotoPrepError()` | A photo `preparePhoto` could not make ready, as the refusal it is: `invalid_input` on `file`, with `reason`. |
|
|
51
57
|
| `useNotifications()` | The signed-in account's in-app notifications, live: newest first, paged with `loadMore`, with the unread count and the actions that mark them read. |
|
|
52
58
|
| `useNotificationInbox()` | `<NotificationInbox>` without its markup: the notifications, where the inbox is, the button's name with the unread count in it, and the bindings for a button and a list that open on the browser's own popover. |
|
|
53
59
|
| `useEmailPreferences()` | The email topics the signed-in person receives and their notification channels, kind by kind, live, and the actions that change them: the same choices as the profile's Email section, the unsubscribe page and the provider's own page, which all stay in step. |
|
|
54
60
|
| `useEmailLink()` | The unsubscribe page without its markup: what the link names, and one press that leaves the topic (or every topic), or confirms a double opt-in. |
|
|
55
61
|
| `usePushSubscription()` | Web push on this device, for the signed-in person: whether the browser can take it, whether this device is subscribed, the permission, and the actions that subscribe and unsubscribe it. |
|
|
62
|
+
| `useInstallPrompt()` | Offer the install of the app from a button of its own: whether the browser handed over its install dialog, whether the app is installed, and the action that opens the dialog. |
|
|
56
63
|
| `useAnnouncements()` | The announcements an administrator published that the signed-in person has not dismissed, live: what `<BackendNotices>`' `announcement` notice shows. |
|
|
57
64
|
| `useAnnouncementsAdmin()` | The admin console's Announcements tab, as data: every announcement with its notice and its broadcast, and the changes an administrator makes, through `backend/email.ts`. |
|
|
58
65
|
| `useContactForm()` | The contact form without its markup: a name and an address for a visitor, the message alone for a signed-in account (so the same form on a page behind sign-in is a feedback form), the bot check, a honeypot, and the deployment's refusals. |
|
|
59
66
|
| `useReportForm()` | A report about content of the app's, without its markup. |
|
|
67
|
+
| `useReportAppeal()` | The appeal of a content decision, without its markup: the decision a `#appeal=<token>` link names, the appeal's state, and sending it once. |
|
|
60
68
|
| `useOnboarding()` | The first run at `/welcome` without its markup: the steps in order, where the person is, moving between them, and the stamp that ends it. |
|
|
61
69
|
| `useActivation()` | The activation checklist without its markup: the first tasks `defineActivation` declares, which of them are done, the progress, and dismissing it. |
|
|
62
70
|
| `useExperiment()` | The variant of an experiment, a `defineFlags` flag with `variants`, for whoever is looking. |
|
|
63
71
|
| `useAppShell()` | The app shell without its markup: who is signed in, the links of the account menu, signing out, and the workspace switcher. |
|
|
64
72
|
| `useInboxAdmin()` | The admin console's Inbox tab, as data: what people sent through the contact form and by email (reply addresses, workspace addresses, the support inbox), newest first, and the replies an administrator sends to the support inbox's threads, through `backend/email.ts`. |
|
|
65
73
|
| `getBackendError()` | Read a refusal out of anything a call threw or resolved with: a `backendError()` from a Convex function, the rate limiter's own `RateLimited` error, an auth client's `{ data, error }` result or its `error`, a Better Auth `APIError`, and any of these as an `Error`'s `cause`. |
|
|
74
|
+
| `formatBillingAmount()` | Money the way the provider states it — a minor-unit integer plus an ISO currency code — rendered in `locale`, else the app's active `@nuxtjs/i18n` locale, else English: never the visitor's own, so a server render and the browser write it alike. |
|
|
66
75
|
| `useBackendConfig()` | `appConfig.backend` with the package defaults merged in — the shipped components read content (plan catalog, labels, brand) through this, so a partial user config is always safe to destructure. |
|
|
67
76
|
| `useLabels()` | The labels of one packaged component's group, resolved for the person reading them. |
|
|
68
77
|
| `useBackendPagePath()` | Where a ready-made page lives, for a link to it: the path the module mounted it at (the `pages` module option, else its default), in the active locale when the app uses `@nuxtjs/i18n` (through its `localePath`, so `/pricing` reads `/fr/pricing` under a prefix strategy). |
|
|
69
|
-
| `useReturnPath()` | Where the person goes once a page that interrupted them is done: the page they were headed for, from the `?redirect=` the sign-in and the first-run redirect carry (kept to a path on this site, so a link can never send them elsewhere), else where sign-in lands (`redirects.afterSignIn`, `/` without it). |
|
|
78
|
+
| `useReturnPath()` | Where the person goes once a page that interrupted them is done: the page they were headed for, from the `?redirect=` the sign-in and the first-run redirect carry (kept to a path on this site, so a link can never send them elsewhere, and never to the sign-in page, which would ask them to sign in again), else where sign-in lands (`redirects.afterSignIn`, `/` without it). |
|
|
70
79
|
| `useEmailStatus()` | Reactive delivery status for a sent email. |
|
|
71
80
|
| `useSandboxInbox()` | The mail a test address received within the last hour, refreshed while the page is open — so a demo, a preview deployment or an e2e run can finish an email-code sign-in without a real mailbox. |
|
|
72
81
|
| `useWorkflowStatus()` | Reactively track a durable Workflow's status. |
|
|
@@ -104,6 +113,8 @@ types, auto-imported too: `AsyncQueryData`, `AsyncQueryOptions`, `AsyncQueryRetu
|
|
|
104
113
|
| `<UpgradePrompt>` | What someone whose plan lacks a feature sees: a sentence naming the plans on sale that include it, in pricing order, and a link to the first of them on the pricing page (`/pricing?plan=<key>`). |
|
|
105
114
|
| `<CancelFlow>` | Cancelling takes one step; a save offer is one optional step. |
|
|
106
115
|
| `<WithdrawalButton>` | The EU withdrawal button (Consumer Rights Directive Art. 11a, from 2026-06-19): "Withdraw from contract here", for a purchase inside its 14 days, then a confirm step, "Confirm withdrawal". |
|
|
116
|
+
| `<GiftForm>` | The gift form: a credit pack or a plan pass with its length (the lengths the plan is gifted for, at their live prices), the recipient's email, a note and a delivery day, then the purchaser's own checkout (`useGifts().send`). |
|
|
117
|
+
| `<GiftList>` | The gifts a person received, each to claim into a workspace they manage, and the gifts they sent, each with what they can still do until it is claimed: resend its notice, address it to someone else, date it again, or cancel it for a refund behind a recent sign-in. |
|
|
107
118
|
| `<ReferralCard>` | A person's referral link, with copy and share buttons and the disclosure of the reward: the link is `/r/<code>` on this site, made the first time the card is read. |
|
|
108
119
|
| `<AdminUsers>` | Every account of the app, for its administrators: a search by address, a page at a time (`AdminUsersTable`), and a drawer with one account in full (`AdminUserDrawer`): its role, its ban, its device sessions and workspaces, and "Impersonate". |
|
|
109
120
|
| `<AdminWorkspaces>` | Every workspace of the app, read-only, for its administrators: a search by name, a page at a time (`AdminWorkspacesTable`), and a drawer with one workspace's members and open invitations (`AdminWorkspaceDrawer`). |
|
|
@@ -139,7 +150,7 @@ The base module's, under neutral names: `<Authenticated>`, `<Unauthenticated>`,
|
|
|
139
150
|
| `accessibility` | `/legal/accessibility` | The accessibility statement (public): the standard the app follows, how it is checked, and where to report a barrier, filled from `appConfig.backend.legal` and marked "not legal advice". |
|
|
140
151
|
| `admin` | `/admin` | The admin console: accounts, workspaces, the activity trail and the app's health (private and hidden: it answers 404 to anyone without the `admin` role). |
|
|
141
152
|
| `gifts` | `/gifts` | The gifts a person sent and received, with resend, change, cancel and claim (private). |
|
|
142
|
-
| `invite` | `/invite` | Where an access link lands (public, kept out of search indexes): it checks the link's token and sends the person on to sign in. |
|
|
153
|
+
| `invite` | `/invite` | Where an access link lands (public, kept out of search indexes): it checks the link's token, or a code typed by hand, and sends the person on to sign in. |
|
|
143
154
|
| `keepAccount` | `/account/keep` | Where the "keep my account" link of a scheduled deletion lands (public, kept out of search indexes). |
|
|
144
155
|
| `login` | `/login` | The sign-in page (public, kept out of search indexes), and where the page guard sends a signed-out visitor. |
|
|
145
156
|
| `pricing` | `/pricing` | The pricing page (public). |
|
|
@@ -152,7 +163,7 @@ The base module's, under neutral names: `<Authenticated>`, `<Unauthenticated>`,
|
|
|
152
163
|
| `subprocessors` | `/legal/subprocessors` | The subprocessor list (public): each service that processes personal data for the capabilities the app uses, what it handles, where, and its agreement; marked "not legal advice". |
|
|
153
164
|
| `terms` | `/legal/terms` | The terms of service (public): the company and contact, accounts and sign-in, plans and renewal, the merchant of record's role and the content rules, filled from `appConfig.backend.legal` and the capabilities the app uses, and marked "not legal advice". |
|
|
154
165
|
| `unsubscribe` | `/unsubscribe` | Where a topic email's unsubscribe link and a double opt-in's confirmation link land (public, kept out of search indexes and caches): one press leaves the topic, or confirms it. |
|
|
155
|
-
| `waitlist` | `/waitlist` |
|
|
166
|
+
| `waitlist` | `/waitlist` | The waitlist (public, kept out of search indexes): the join in early access, and a person's place in the line, read from the signed token in a status link's fragment; it follows the launch phase. |
|
|
156
167
|
| `welcome` | `/welcome` | The first run a new account sees once after its first sign-in: name, workspace, teammates and a plan, with steps of your own (private). |
|
|
157
168
|
|
|
158
169
|
## Import paths
|
|
@@ -337,9 +348,10 @@ Types: `WorkflowId`, `WorkflowStatus`, `WorkflowComponents`, `EmailSequenceStep`
|
|
|
337
348
|
| `MODERATION_CATEGORIES` | Every category, in the order a statement of reasons lists them. |
|
|
338
349
|
| `defineJobQueue()` | Declare the app's generation queue, once, in `backend/jobs.ts`: kinds of jobs (`jobs.define`) run their steps (`jobs.step`) in a fair line with tiers from plan features, each model under a limit that adapts to `429`s, credits held while a job waits, charged when it starts and refunded when it fails, and each job's cost reported to the billing provider. |
|
|
339
350
|
| `vJobEnd` | How a job ended, as `onJobEnd` receives it: use these as your function's `args` (`internalMutation({ args: vJobEnd, handler })`). |
|
|
351
|
+
| `vOwedCharge` | How an owed charge ended, as `onOwedCharge` receives it: use these as your function's `args` (`internalMutation({ args: vOwedCharge, handler })`). |
|
|
340
352
|
| `retryable()` | An error a job step throws for a failure another attempt may not meet, such as a model that answered with no image: the queue waits and runs the step again, up to 4 attempts, as for a provider's passing error, instead of failing the job at once. |
|
|
341
353
|
|
|
342
|
-
Types: `AiRateLimiter`, `AiComponents`, `AiBudget`, `AiSpendLimit`, `CreditsBalanceEvent`, `AiCreditsConfig`, `AiModel`, `AiGateway`, `ModelRoutes`, `InferenceRegion`, `MeteredModel`, `ModelStatus`, `SetupAiConfig`, `AiGuestConfig`, `GuestClaim`, `MeteredUsage`, `FinalizedCost`, `ReportedCost`, `MeteredCost`, `MeteredContext`, `MeteredActionConfig`, `MeteredStreamConfig`, `PersonCost`, `AiCosts`, `AiApi`, `Ai`, `ModelPrice`, `TokenPriceTable`, `TokenUsage`, `GeneratedImage`, `ImageStoreContext`, `JobProvenance`, `ProvenanceConfig`, `StoreImageOptions`, `Chat`, `ChatConfig`, `ChatMessage`, `ChatReply`, `ChatThread`, `AiEmbeddingModel`, `Knowledge`, `KnowledgeAddCost`, `KnowledgeApi`, `KnowledgeConfig`, `KnowledgeDocument`, `KnowledgePassage`, `ModerationConfig`, `ModerationCtx`, `ModerationFlag`, `ModerationInput`, `ModerationLog`, `ModerationStatement`, `ModerationSubject`, `ModerationVerdict`, `AzureContentSafetyOptions`, `KnownAbuseProvider`, `ModerationImage`, `ModerationProvider`, `ProviderEnv`, `ProviderInput`, `CategoryScore`, `ModerationCategory`, `ProviderReading`, `AdminJobView`, `CancelOptions`, `DefineJobQueueOptions`, `EnqueueOptions`, `GuestJobs`, `JobContext`, `JobDefinition`, `JobEnd`, `JobModelLimit`, `JobProgress`, `JobRecord`, `JobQueue`, `JobQueueApi`, `JobQueueComponents`, `JobStepContext`, `JobStepDefinition`, `JobTier`, `JobView`, `OnJobEnd`, `QueueChange`, `StepResult`, `AiImageModel`.
|
|
354
|
+
Types: `AiRateLimiter`, `AiComponents`, `AiBudget`, `AiSpendLimit`, `CreditsBalanceEvent`, `AiCreditsConfig`, `AiModel`, `AiGateway`, `ModelRoutes`, `InferenceRegion`, `MeteredModel`, `ModelStatus`, `SetupAiConfig`, `AiGuestConfig`, `GuestClaim`, `MeteredUsage`, `FinalizedCost`, `ReportedCost`, `MeteredCost`, `MeteredContext`, `MeteredActionConfig`, `MeteredStreamConfig`, `PersonCost`, `AiCosts`, `AiApi`, `Ai`, `ModelPrice`, `TokenPriceTable`, `TokenUsage`, `GeneratedImage`, `ImageStoreContext`, `JobProvenance`, `ProvenanceConfig`, `StoreImageOptions`, `Chat`, `ChatConfig`, `ChatMessage`, `ChatReply`, `ChatThread`, `AiEmbeddingModel`, `Knowledge`, `KnowledgeAddCost`, `KnowledgeApi`, `KnowledgeConfig`, `KnowledgeDocument`, `KnowledgePassage`, `ModerationConfig`, `ModerationCtx`, `ModerationFlag`, `ModerationInput`, `ModerationLog`, `ModerationStatement`, `ModerationSubject`, `ModerationVerdict`, `AzureContentSafetyOptions`, `KnownAbuseProvider`, `ModerationImage`, `ModerationProvider`, `ProviderEnv`, `ProviderInput`, `CategoryScore`, `ModerationCategory`, `ProviderReading`, `AdminJobView`, `CancelOptions`, `DefineJobQueueOptions`, `EnqueueOptions`, `GuestJobs`, `JobContext`, `JobDefinition`, `JobChargeOptions`, `JobEnd`, `JobModelLimit`, `JobOwed`, `JobProgress`, `JobRecord`, `JobQueue`, `JobQueueApi`, `JobQueueComponents`, `JobStepContext`, `JobStepDefinition`, `JobTier`, `JobView`, `OnJobEnd`, `OnOwedCharge`, `OwedCharge`, `QueueChange`, `StepJob`, `StepResult`, `AiImageModel`.
|
|
343
355
|
|
|
344
356
|
### `nuxt-backend/storage`
|
|
345
357
|
|
|
@@ -353,7 +365,7 @@ Types: `AiRateLimiter`, `AiComponents`, `AiBudget`, `AiSpendLimit`, `CreditsBala
|
|
|
353
365
|
| `sniffContentType()` | The type a file is, read from its signature (its first bytes), or `null` for one the package does not recognise. |
|
|
354
366
|
| `stripImageMetadata()` | An image's bytes without its EXIF, XMP, IPTC and GPS data, its container rewritten and its pixels untouched, so quality is unchanged: JPEG, PNG and WebP. |
|
|
355
367
|
|
|
356
|
-
Types: `FileOwner`, `StoredFile`, `ResolvedShareLink`, `ShareLinkState`, `MintedShareLink`, `StorageApi`, `StorageReadCtx`, `StorageWriteCtx`, `ShareCtx`, `ShareMutationCtx`, `EnabledShareLink`, `ShareableOptions`, `StorageQuota`, `SetupStorageOptions`, `Storage`, `StorageComponents`.
|
|
368
|
+
Types: `FileOwner`, `StoredFile`, `ResolvedShareLink`, `ShareLinkState`, `MintedShareLink`, `StorageApi`, `StorageReadCtx`, `StorageWriteCtx`, `ShareCtx`, `ShareMutationCtx`, `EnabledShareLink`, `ShareableOptions`, `UploadSafety`, `AcceptUploadOptions`, `StorageQuota`, `SetupStorageOptions`, `Storage`, `StorageComponents`.
|
|
357
369
|
|
|
358
370
|
### `nuxt-backend/notifications`
|
|
359
371
|
|
|
@@ -403,6 +415,7 @@ Types: `BackendPaths`, `DefineBackendAuthConfigOptions`.
|
|
|
403
415
|
| `defineBackendTestApp()` | Your app under test: a fresh convex-test instance per call, with the `backend` component and every component the scaffolded `convex.config.ts` mounts (the action cache, aggregate, migrations, persistent text streaming, the billing provider, the rate limiter, the sharded counter, workflows and the workpool) registered under the names it mounts them by, and the Agent and RAG components (`agent`, `rag`) when the app installs them. |
|
|
404
416
|
| `TEST_PNG` | A valid 2 × 2 PNG: what the storage check sniffs, strips and serves. |
|
|
405
417
|
| `upload()` | Send a file into the `backend` component's storage, claimed by nobody, as the browser leaves it after posting to an upload URL, and return its storage id. |
|
|
418
|
+
| `fileExists()` | Whether a file is in the `backend` component's storage, by its storage id: what a test of a deletion, a sweep or an erasure checks. |
|
|
406
419
|
| `TEST_STORAGE_URL` | Where convex-test's `ctx.storage.getUrl` points: a deployment that does not exist. |
|
|
407
420
|
| `stubStorageFetch()` | Answer `fetch` for the files your functions stored, with their bytes and type, as the deployment's storage would: a model handed a photo by URL, or a signed URL's route reading the file, gets the real file under test. |
|
|
408
421
|
| `drain()` | Run every scheduled function to the end, one at a time: storage checks, the job queue and its steps, workflows, deliveries and retries. |
|
|
@@ -413,9 +426,11 @@ Types: `BackendPaths`, `DefineBackendAuthConfigOptions`.
|
|
|
413
426
|
| `TEST_FAINT()` | The marker that finds a category faintly, just under its threshold. |
|
|
414
427
|
| `TEST_KNOWN_ABUSE` | The marker the known-abuse fake matches. |
|
|
415
428
|
| `TEST_UNSAFE()` | The marker that finds a category at full strength. |
|
|
429
|
+
| `TEST_UNSAFE_CODE()` | The marker that has the mock safety classifier answer chosen Llama Guard codes: `TEST_UNSAFE_CODE('S7')` is `[[unsafe:S7]]`, answered `unsafe\nS7`; several codes join with a comma (`'S1,S10'`). |
|
|
430
|
+
| `stubBillingProvider()` | Answer the billing provider's usage-event ingest in `fetch`, as its API would: every charge, refund and cost report the package's billing sends is taken and kept once by its idempotency key, and reported back in `events`, `charges` and `refunds`. |
|
|
416
431
|
| `default` | The default export. |
|
|
417
432
|
|
|
418
|
-
Types: `ComponentTestKit`, `BackendTestAppOptions`, `TestFile`, `TestUploadOptions`, `BackendTestApp`, `StubStorageFetchOptions`, `TestTimers`, `TestBilling`, `TestUserOptions`, `TestUser`.
|
|
433
|
+
Types: `ComponentTestKit`, `BackendTestAppOptions`, `TestFile`, `TestUploadOptions`, `BackendTestApp`, `StubStorageFetchOptions`, `TestTimers`, `DrainOptions`, `TestBilling`, `TestUserOptions`, `TestUser`, `StubBillingProviderOptions`, `TestBillingProvider`, `TestUsageEvent`.
|
|
419
434
|
|
|
420
435
|
### `nuxt-backend/test-utils`
|
|
421
436
|
|
|
@@ -434,7 +449,7 @@ Types: `RenderEmailOptions`, `BackendMock`, `BackendMockCall`, `BackendMockInit`
|
|
|
434
449
|
| Export | What it is |
|
|
435
450
|
|---|---|
|
|
436
451
|
| `BACKEND_ESLINT_RULES` | The rules the preset turns on, at the levels of the plugin's own recommended config. |
|
|
437
|
-
| `backendEslint()` | Two flat-config entries: `nuxt-backend:convex` applies the Convex rules to the functions directory (tests excluded), and `nuxt-backend:generated` ignores every `_generated` folder in it. |
|
|
452
|
+
| `backendEslint()` | Two flat-config entries: `nuxt-backend:convex` applies the Convex rules to the functions directory (tests excluded), and `nuxt-backend:generated` ignores every `_generated` folder in it and the files the module generates there (brand, paths, labels and the billing id map). |
|
|
438
453
|
|
|
439
454
|
Types: `BackendEslintOptions`.
|
|
440
455
|
|
|
@@ -467,8 +482,8 @@ Check the project + deployment configuration.
|
|
|
467
482
|
|
|
468
483
|
- `--cwd`: Project directory
|
|
469
484
|
- `--json`: Machine-readable output
|
|
470
|
-
- `--fix`: Repair what doctor can: restore missing scaffold files, add missing mounts and routes, push env (`env push`), at a terminal make the first administrator,
|
|
471
|
-
- `--yes`: With --fix: apply the provider changes without asking (for a script or CI)
|
|
485
|
+
- `--fix`: Repair what doctor can: restore missing scaffold files, add missing mounts and routes, push env (`env push`), at a terminal make the first administrator, then, each after you confirm it, run `email sync`, apply the provider settings the billing findings recommend and turn a webhook endpoint back on
|
|
486
|
+
- `--yes`: With --fix: run `email sync` and apply the provider changes without asking (for a script or CI; without it and without a terminal, they are listed and skipped)
|
|
472
487
|
- `--prod`: Check the production deployment: missing email/billing config becomes a failure, its switches and email are read, and its live site is probed
|
|
473
488
|
- `--only`: Check only these capabilities, comma-separated: auth, data, jobs, billing, email, notifications, ai, protection, monitoring, flags, analytics, hosting
|
|
474
489
|
|
|
@@ -609,7 +624,7 @@ Copy a part's, a page's or an email's packaged source into the app, stamped with
|
|
|
609
624
|
|
|
610
625
|
### `npx nuxt-backend deploy`
|
|
611
626
|
|
|
612
|
-
Take production from nothing to a passing doctor --prod: link or create the production deployment, push its env, push the backend, sync the billing catalog, register both webhooks, write the app's env into the Vercel project, then run doctor --prod. Safe to run again.
|
|
627
|
+
Take production from nothing to a passing doctor --prod: link or create the production deployment, push its env, push the backend, sync the billing catalog, run the package's data migrations, register both webhooks, write the app's env into the Vercel project, then run doctor --prod. Safe to run again.
|
|
613
628
|
|
|
614
629
|
- `--cwd`: Project directory
|
|
615
630
|
- `--dry-run`: Print every step it would take, and change nothing
|
|
@@ -707,6 +722,7 @@ The app's parts, each detected as `live`, `test`, `missing` or `failing`: `npx n
|
|
|
707
722
|
| `convex-config` | data | Mounts and routes |
|
|
708
723
|
| `function-contract` | data | Function contract |
|
|
709
724
|
| `agent-files` | data | Agent files |
|
|
725
|
+
| `env-example` | data | .env.example |
|
|
710
726
|
| `name-collisions` | data | Name collisions |
|
|
711
727
|
| `bundle-duplicates` | data | Duplicate packages in the Convex bundle |
|
|
712
728
|
| `billing-access` | billing | Billing access |
|
|
@@ -1,6 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "Every public name a release renamed, reshaped or removed, with the Upgrade page section that explains it. `npx nuxt-backend upgrade` rewrites none of an app's code: the edit is yours. Generated by `pnpm generate` (scripts/agent-guidance.mjs). Do not edit: change the code it reads.",
|
|
3
3
|
"renames": [
|
|
4
|
+
{
|
|
5
|
+
"from": "doctor --fix",
|
|
6
|
+
"to": "--yes",
|
|
7
|
+
"change": "reshaped",
|
|
8
|
+
"section": "`doctor --fix` asks before it syncs email, and a deploy runs the package's migrations",
|
|
9
|
+
"note": "the email sync is planned as a dry run and applied on a yes at a terminal or with `--yes`; without either it lists the plan and writes nothing, and a sync that fails fails `doctor --fix`",
|
|
10
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#doctor---fix-asks-before-it-syncs-email-and-a-deploy-runs-the-packages-migrations"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"from": "npx nuxt-backend upgrade --prod --yes",
|
|
14
|
+
"to": "npx nuxt-backend deploy",
|
|
15
|
+
"change": "reshaped",
|
|
16
|
+
"section": "`doctor --fix` asks before it syncs email, and a deploy runs the package's migrations",
|
|
17
|
+
"note": "`deploy` and `deploy --build` run the package's data migrations and the workpool's backfill after a production push; the `upgrade --prod --yes` step after them finds nothing left, and stays only after a deploy that runs `convex deploy` itself",
|
|
18
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#doctor---fix-asks-before-it-syncs-email-and-a-deploy-runs-the-packages-migrations"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"from": "/_nuxt/",
|
|
22
|
+
"to": "/_dev/",
|
|
23
|
+
"change": "reshaped",
|
|
24
|
+
"section": "A replaced page follows its shape, and `nuxt dev` serves its modules from a path of their own",
|
|
25
|
+
"note": "on `nuxt dev`, an app that sets no `app.buildAssetsDir` gets its modules from `/_dev/`, and every module is served `Cache-Control: no-cache` unless the app sets its own in `vite.server.headers`; match `/_dev/` in a dev proxy rule or test matcher",
|
|
26
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#a-replaced-page-follows-its-shape-and-nuxt-dev-serves-its-modules-from-a-path-of-their-own"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"from": "r/[...slug].vue",
|
|
30
|
+
"to": "app/pages/r/[code].vue",
|
|
31
|
+
"change": "reshaped",
|
|
32
|
+
"section": "A replaced page follows its shape, and `nuxt dev` serves its modules from a path of their own",
|
|
33
|
+
"note": "only a page of the packaged page's shape replaces it; a catch-all or optional page leaves the packaged page beside it",
|
|
34
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#a-replaced-page-follows-its-shape-and-nuxt-dev-serves-its-modules-from-a-path-of-their-own"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"from": "<PricingTable>",
|
|
38
|
+
"to": "proration: 'invoice'",
|
|
39
|
+
"change": "reshaped",
|
|
40
|
+
"section": "Plan switches ask first, and prices keep their currency's own digits",
|
|
41
|
+
"note": "a subscriber's switch asks first and bills the difference at once; a gifted plan's holder checks the new plan out; `usePricing().bind.planAction` switches the same way without asking",
|
|
42
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#plan-switches-ask-first-and-prices-keep-their-currencys-own-digits"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"from": "$99.00",
|
|
46
|
+
"to": "$99",
|
|
47
|
+
"change": "reshaped",
|
|
48
|
+
"section": "Plan switches ask first, and prices keep their currency's own digits",
|
|
49
|
+
"note": "amounts follow the currency's smallest unit (whole JPY, KRW and the other zero-decimal currencies, thousandths for BHD, JOD, KWD, OMR and TND), a whole amount with no decimals, in the pages and the renewal email alike; 0.3 divided every amount by 100",
|
|
50
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#plan-switches-ask-first-and-prices-keep-their-currencys-own-digits"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"from": "errors.unavailable",
|
|
54
|
+
"to": "errors.unavailable_<service>",
|
|
55
|
+
"change": "reshaped",
|
|
56
|
+
"section": "An app's own error sentence keeps winning, and the browser's install banner stays",
|
|
57
|
+
"note": "a refusal from a service that is down reads `errors.unavailable_<service>` when no sentence for the reason fits; the app's own labels are searched first, so its `errors.unavailable` keeps winning",
|
|
58
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#an-apps-own-error-sentence-keeps-winning-and-the-browsers-install-banner-stays"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"from": "installable",
|
|
62
|
+
"to": "backend.installable.browserBanner: false",
|
|
63
|
+
"change": "reshaped",
|
|
64
|
+
"section": "An app's own error sentence keeps winning, and the browser's install banner stays",
|
|
65
|
+
"note": "`useInstallPrompt()` keeps the browser's install event and leaves its own banner showing; `browserBanner: false` stops the banner",
|
|
66
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#an-apps-own-error-sentence-keeps-winning-and-the-browsers-install-banner-stays"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"from": "access.memberTickets",
|
|
70
|
+
"to": "access.memberTickets({ referrals })",
|
|
71
|
+
"change": "reshaped",
|
|
72
|
+
"section": "Member tickets credit their member as a referral, and tokens leave the address bar",
|
|
73
|
+
"note": "pass the app's `setupReferrals` instance for each friend a ticket admits to be claimed as its member's referral, as their account is made",
|
|
74
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#member-tickets-credit-their-member-as-a-referral-and-tokens-leave-the-address-bar"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"from": "/waitlist",
|
|
78
|
+
"to": "the status email's link",
|
|
79
|
+
"change": "reshaped",
|
|
80
|
+
"section": "Member tickets credit their member as a referral, and tokens leave the address bar",
|
|
81
|
+
"note": "the page keeps a status token in the tab, never in the address, so a bookmark no longer holds a place",
|
|
82
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#member-tickets-credit-their-member-as-a-referral-and-tokens-leave-the-address-bar"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"from": "insufficient_credits",
|
|
86
|
+
"to": "not_ready",
|
|
87
|
+
"change": "reshaped",
|
|
88
|
+
"section": "A job waits for billing to catch up, and owes a charge the provider refuses for now",
|
|
89
|
+
"note": "a job whose first step finds no credit meter or no billing customer yet waits about five minutes, its hold taken, then fails `not_ready` (reason `not_synced` or `no_customer`); only a balance short of the credits fails `insufficient_credits`",
|
|
90
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#a-job-waits-for-billing-to-catch-up-and-owes-a-charge-the-provider-refuses-for-now"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"from": "job.charge",
|
|
94
|
+
"to": "onOwedCharge",
|
|
95
|
+
"change": "reshaped",
|
|
96
|
+
"section": "A job waits for billing to catch up, and owes a charge the provider refuses for now",
|
|
97
|
+
"note": "a refusal that may pass (no answer, `408`, `429`, `5xx`, no customer yet) leaves the charge owed: the job ends `done` with `owed`, its credits held, and the queue tries it in the background; any other `4xx` gives it up at once, the job still `done` and its hold back",
|
|
98
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#a-job-waits-for-billing-to-catch-up-and-owes-a-charge-the-provider-refuses-for-now"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"from": "NoImageGeneratedError",
|
|
102
|
+
"to": "retryable(message)",
|
|
103
|
+
"change": "reshaped",
|
|
104
|
+
"section": "A job waits for billing to catch up, and owes a charge the provider refuses for now",
|
|
105
|
+
"note": "an empty image answer is tried once more, then fails `provider_refused`; with a finish reason for safety it fails `content_blocked` at once; throw `retryable(message)` to keep four attempts",
|
|
106
|
+
"url": "https://nuxt-backend.dev/docs/ship/releases/upgrade#a-job-waits-for-billing-to-catch-up-and-owes-a-charge-the-provider-refuses-for-now"
|
|
107
|
+
},
|
|
4
108
|
{
|
|
5
109
|
"from": "catalog priced in its pinned `currency` alone",
|
|
6
110
|
"to": "prices: { usd: { month: 1200 }, eur: { month: 1100 } }",
|
|
@@ -606,7 +606,8 @@
|
|
|
606
606
|
"priceTokens",
|
|
607
607
|
"retryable",
|
|
608
608
|
"setupAi",
|
|
609
|
-
"vJobEnd"
|
|
609
|
+
"vJobEnd",
|
|
610
|
+
"vOwedCharge"
|
|
610
611
|
],
|
|
611
612
|
"types": [
|
|
612
613
|
"AdminJobView",
|
|
@@ -640,10 +641,12 @@
|
|
|
640
641
|
"GuestJobs",
|
|
641
642
|
"ImageStoreContext",
|
|
642
643
|
"InferenceRegion",
|
|
644
|
+
"JobChargeOptions",
|
|
643
645
|
"JobContext",
|
|
644
646
|
"JobDefinition",
|
|
645
647
|
"JobEnd",
|
|
646
648
|
"JobModelLimit",
|
|
649
|
+
"JobOwed",
|
|
647
650
|
"JobProgress",
|
|
648
651
|
"JobProvenance",
|
|
649
652
|
"JobQueue",
|
|
@@ -682,6 +685,8 @@
|
|
|
682
685
|
"ModerationSubject",
|
|
683
686
|
"ModerationVerdict",
|
|
684
687
|
"OnJobEnd",
|
|
688
|
+
"OnOwedCharge",
|
|
689
|
+
"OwedCharge",
|
|
685
690
|
"PersonCost",
|
|
686
691
|
"ProvenanceConfig",
|
|
687
692
|
"ProviderEnv",
|
|
@@ -690,6 +695,7 @@
|
|
|
690
695
|
"QueueChange",
|
|
691
696
|
"ReportedCost",
|
|
692
697
|
"SetupAiConfig",
|
|
698
|
+
"StepJob",
|
|
693
699
|
"StepResult",
|
|
694
700
|
"StoreImageOptions",
|
|
695
701
|
"TokenPriceTable",
|
|
@@ -707,6 +713,7 @@
|
|
|
707
713
|
"stripImageMetadata"
|
|
708
714
|
],
|
|
709
715
|
"types": [
|
|
716
|
+
"AcceptUploadOptions",
|
|
710
717
|
"EnabledShareLink",
|
|
711
718
|
"FileOwner",
|
|
712
719
|
"MintedShareLink",
|
|
@@ -722,7 +729,8 @@
|
|
|
722
729
|
"StorageQuota",
|
|
723
730
|
"StorageReadCtx",
|
|
724
731
|
"StorageWriteCtx",
|
|
725
|
-
"StoredFile"
|
|
732
|
+
"StoredFile",
|
|
733
|
+
"UploadSafety"
|
|
726
734
|
]
|
|
727
735
|
},
|
|
728
736
|
"nuxt-backend/notifications": {
|
|
@@ -805,14 +813,17 @@
|
|
|
805
813
|
"TEST_PNG",
|
|
806
814
|
"TEST_STORAGE_URL",
|
|
807
815
|
"TEST_UNSAFE",
|
|
816
|
+
"TEST_UNSAFE_CODE",
|
|
808
817
|
"asUser",
|
|
809
818
|
"default",
|
|
810
819
|
"defineBackendTestApp",
|
|
811
820
|
"drain",
|
|
821
|
+
"fileExists",
|
|
812
822
|
"register",
|
|
813
823
|
"seedBilling",
|
|
814
824
|
"seedCredits",
|
|
815
825
|
"seedWorkspace",
|
|
826
|
+
"stubBillingProvider",
|
|
816
827
|
"stubStorageFetch",
|
|
817
828
|
"upload"
|
|
818
829
|
],
|
|
@@ -820,11 +831,15 @@
|
|
|
820
831
|
"BackendTestApp",
|
|
821
832
|
"BackendTestAppOptions",
|
|
822
833
|
"ComponentTestKit",
|
|
834
|
+
"DrainOptions",
|
|
835
|
+
"StubBillingProviderOptions",
|
|
823
836
|
"StubStorageFetchOptions",
|
|
824
837
|
"TestBilling",
|
|
838
|
+
"TestBillingProvider",
|
|
825
839
|
"TestFile",
|
|
826
840
|
"TestTimers",
|
|
827
841
|
"TestUploadOptions",
|
|
842
|
+
"TestUsageEvent",
|
|
828
843
|
"TestUser",
|
|
829
844
|
"TestUserOptions"
|
|
830
845
|
]
|
|
@@ -861,7 +876,11 @@
|
|
|
861
876
|
},
|
|
862
877
|
"autoImports": {
|
|
863
878
|
"composables": [
|
|
879
|
+
"PhotoPrepError",
|
|
880
|
+
"formatBillingAmount",
|
|
864
881
|
"getBackendError",
|
|
882
|
+
"isPhotoFile",
|
|
883
|
+
"preparePhoto",
|
|
865
884
|
"useAccessAdmin",
|
|
866
885
|
"useAccessPhase",
|
|
867
886
|
"useAccount",
|
|
@@ -892,9 +911,12 @@
|
|
|
892
911
|
"useFeatures",
|
|
893
912
|
"useFlag",
|
|
894
913
|
"useFlagAdmin",
|
|
914
|
+
"useGiftForm",
|
|
915
|
+
"useGiftList",
|
|
895
916
|
"useGifts",
|
|
896
917
|
"useHumanCheck",
|
|
897
918
|
"useInboxAdmin",
|
|
919
|
+
"useInstallPrompt",
|
|
898
920
|
"useInvite",
|
|
899
921
|
"useJob",
|
|
900
922
|
"useLabels",
|
|
@@ -911,6 +933,7 @@
|
|
|
911
933
|
"useReferralAdmin",
|
|
912
934
|
"useReferralInvite",
|
|
913
935
|
"useReferrals",
|
|
936
|
+
"useReportAppeal",
|
|
914
937
|
"useReportForm",
|
|
915
938
|
"useReturnPath",
|
|
916
939
|
"useSandboxInbox",
|
|
@@ -922,6 +945,7 @@
|
|
|
922
945
|
"useUsage",
|
|
923
946
|
"useWaitlist",
|
|
924
947
|
"useWaitlistAdmin",
|
|
948
|
+
"useWithdrawal",
|
|
925
949
|
"useWorkflowStatus",
|
|
926
950
|
"useWorkspace"
|
|
927
951
|
],
|
|
@@ -945,6 +969,8 @@
|
|
|
945
969
|
"ConsentPrompt",
|
|
946
970
|
"ContactForm",
|
|
947
971
|
"Gate",
|
|
972
|
+
"GiftForm",
|
|
973
|
+
"GiftList",
|
|
948
974
|
"HowDidYouHear",
|
|
949
975
|
"LegalContactPoints",
|
|
950
976
|
"LegalDetail",
|
|
@@ -1002,6 +1028,7 @@
|
|
|
1002
1028
|
"OnboardingTeammates",
|
|
1003
1029
|
"OnboardingWorkspace",
|
|
1004
1030
|
"PricingCancelConfirm",
|
|
1031
|
+
"PricingChangeConfirm",
|
|
1005
1032
|
"PricingCurrencySelect",
|
|
1006
1033
|
"PricingEmailOptOut",
|
|
1007
1034
|
"PricingPackCard",
|
|
@@ -1264,6 +1291,7 @@
|
|
|
1264
1291
|
"convex-config": "data",
|
|
1265
1292
|
"function-contract": "data",
|
|
1266
1293
|
"agent-files": "data",
|
|
1294
|
+
"env-example": "data",
|
|
1267
1295
|
"name-collisions": "data",
|
|
1268
1296
|
"bundle-duplicates": "data",
|
|
1269
1297
|
"billing-access": "billing",
|
|
@@ -37,9 +37,10 @@ core skill, `nuxt-backend`, lists every public name in its own `references/api.m
|
|
|
37
37
|
| `MODERATION_CATEGORIES` | Every category, in the order a statement of reasons lists them. |
|
|
38
38
|
| `defineJobQueue()` | Declare the app's generation queue, once, in `backend/jobs.ts`: kinds of jobs (`jobs.define`) run their steps (`jobs.step`) in a fair line with tiers from plan features, each model under a limit that adapts to `429`s, credits held while a job waits, charged when it starts and refunded when it fails, and each job's cost reported to the billing provider. |
|
|
39
39
|
| `vJobEnd` | How a job ended, as `onJobEnd` receives it: use these as your function's `args` (`internalMutation({ args: vJobEnd, handler })`). |
|
|
40
|
+
| `vOwedCharge` | How an owed charge ended, as `onOwedCharge` receives it: use these as your function's `args` (`internalMutation({ args: vOwedCharge, handler })`). |
|
|
40
41
|
| `retryable()` | An error a job step throws for a failure another attempt may not meet, such as a model that answered with no image: the queue waits and runs the step again, up to 4 attempts, as for a provider's passing error, instead of failing the job at once. |
|
|
41
42
|
|
|
42
|
-
Types: `AiRateLimiter`, `AiComponents`, `AiBudget`, `AiSpendLimit`, `CreditsBalanceEvent`, `AiCreditsConfig`, `AiModel`, `AiGateway`, `ModelRoutes`, `InferenceRegion`, `MeteredModel`, `ModelStatus`, `SetupAiConfig`, `AiGuestConfig`, `GuestClaim`, `MeteredUsage`, `FinalizedCost`, `ReportedCost`, `MeteredCost`, `MeteredContext`, `MeteredActionConfig`, `MeteredStreamConfig`, `PersonCost`, `AiCosts`, `AiApi`, `Ai`, `ModelPrice`, `TokenPriceTable`, `TokenUsage`, `GeneratedImage`, `ImageStoreContext`, `JobProvenance`, `ProvenanceConfig`, `StoreImageOptions`, `Chat`, `ChatConfig`, `ChatMessage`, `ChatReply`, `ChatThread`, `AiEmbeddingModel`, `Knowledge`, `KnowledgeAddCost`, `KnowledgeApi`, `KnowledgeConfig`, `KnowledgeDocument`, `KnowledgePassage`, `ModerationConfig`, `ModerationCtx`, `ModerationFlag`, `ModerationInput`, `ModerationLog`, `ModerationStatement`, `ModerationSubject`, `ModerationVerdict`, `AzureContentSafetyOptions`, `KnownAbuseProvider`, `ModerationImage`, `ModerationProvider`, `ProviderEnv`, `ProviderInput`, `CategoryScore`, `ModerationCategory`, `ProviderReading`, `AdminJobView`, `CancelOptions`, `DefineJobQueueOptions`, `EnqueueOptions`, `GuestJobs`, `JobContext`, `JobDefinition`, `JobEnd`, `JobModelLimit`, `JobProgress`, `JobRecord`, `JobQueue`, `JobQueueApi`, `JobQueueComponents`, `JobStepContext`, `JobStepDefinition`, `JobTier`, `JobView`, `OnJobEnd`, `QueueChange`, `StepResult`, `AiImageModel`.
|
|
43
|
+
Types: `AiRateLimiter`, `AiComponents`, `AiBudget`, `AiSpendLimit`, `CreditsBalanceEvent`, `AiCreditsConfig`, `AiModel`, `AiGateway`, `ModelRoutes`, `InferenceRegion`, `MeteredModel`, `ModelStatus`, `SetupAiConfig`, `AiGuestConfig`, `GuestClaim`, `MeteredUsage`, `FinalizedCost`, `ReportedCost`, `MeteredCost`, `MeteredContext`, `MeteredActionConfig`, `MeteredStreamConfig`, `PersonCost`, `AiCosts`, `AiApi`, `Ai`, `ModelPrice`, `TokenPriceTable`, `TokenUsage`, `GeneratedImage`, `ImageStoreContext`, `JobProvenance`, `ProvenanceConfig`, `StoreImageOptions`, `Chat`, `ChatConfig`, `ChatMessage`, `ChatReply`, `ChatThread`, `AiEmbeddingModel`, `Knowledge`, `KnowledgeAddCost`, `KnowledgeApi`, `KnowledgeConfig`, `KnowledgeDocument`, `KnowledgePassage`, `ModerationConfig`, `ModerationCtx`, `ModerationFlag`, `ModerationInput`, `ModerationLog`, `ModerationStatement`, `ModerationSubject`, `ModerationVerdict`, `AzureContentSafetyOptions`, `KnownAbuseProvider`, `ModerationImage`, `ModerationProvider`, `ProviderEnv`, `ProviderInput`, `CategoryScore`, `ModerationCategory`, `ProviderReading`, `AdminJobView`, `CancelOptions`, `DefineJobQueueOptions`, `EnqueueOptions`, `GuestJobs`, `JobContext`, `JobDefinition`, `JobChargeOptions`, `JobEnd`, `JobModelLimit`, `JobOwed`, `JobProgress`, `JobRecord`, `JobQueue`, `JobQueueApi`, `JobQueueComponents`, `JobStepContext`, `JobStepDefinition`, `JobTier`, `JobView`, `OnJobEnd`, `OnOwedCharge`, `OwedCharge`, `QueueChange`, `StepJob`, `StepResult`, `AiImageModel`.
|
|
43
44
|
|
|
44
45
|
## Doctor findings
|
|
45
46
|
|
|
@@ -13,7 +13,7 @@ core skill, `nuxt-backend`, lists every public name in its own `references/api.m
|
|
|
13
13
|
|---|---|
|
|
14
14
|
| `useAuth()` | Who is signed in: the session, the app-wide role, whether an administrator is visiting, and signing out. |
|
|
15
15
|
| `useLoginFlow()` | The headless login flow behind `<AuthForm>` — bring your own markup and wire these refs/actions to it. |
|
|
16
|
-
| `useReturnPath()` | Where the person goes once a page that interrupted them is done: the page they were headed for, from the `?redirect=` the sign-in and the first-run redirect carry (kept to a path on this site, so a link can never send them elsewhere), else where sign-in lands (`redirects.afterSignIn`, `/` without it). |
|
|
16
|
+
| `useReturnPath()` | Where the person goes once a page that interrupted them is done: the page they were headed for, from the `?redirect=` the sign-in and the first-run redirect carry (kept to a path on this site, so a link can never send them elsewhere, and never to the sign-in page, which would ask them to sign in again), else where sign-in lands (`redirects.afterSignIn`, `/` without it). |
|
|
17
17
|
| `useEmailChange()` | The headless email change behind `<ProfileSettings>`: a code from the current address proves the person asking still holds it, a code from the new address proves they hold that one too. |
|
|
18
18
|
| `useWorkspace()` | Workspace state and actions: the list, the switch, the members and the full invitation flow (invite / accept / decline / cancel — the packaged `AcceptInvitation` component and `/accept-invitation` page build on these). |
|
|
19
19
|
| `usePasskeys()` | Passkey management over the auth client — list, register, rename, remove. |
|
|
@@ -17,6 +17,8 @@ core skill, `nuxt-backend`, lists every public name in its own `references/api.m
|
|
|
17
17
|
| `usePricing()` | The app's plans and credit packs as a pricing page shows them — every plan with its monthly and yearly price, what a year saves, its trial and the credits it grants per cycle; every pack with its price per credit and which is the best value — read through the scaffolded `getPricing`, in the visitor's currency where the catalog prices it. |
|
|
18
18
|
| `useOrders()` | The signed-in customer's billing history — past charges straight from the provider's orders API, plus the per-order invoice link. |
|
|
19
19
|
| `useUsage()` | Consumption history for a credit meter, read from the provider's events API — the events your server ingested when it spent credits. |
|
|
20
|
+
| `useWithdrawal()` | The EU withdrawal window: whether the signed-in billing manager's purchase is still inside the 14 days of the Consumer Rights Directive's Art. 9, until when, and the withdrawal itself, the withdrawal function of its Art. 11a — what `<WithdrawalButton>` is built on, for a section of your own around it. |
|
|
21
|
+
| `formatBillingAmount()` | Money the way the provider states it — a minor-unit integer plus an ISO currency code — rendered in `locale`, else the app's active `@nuxtjs/i18n` locale, else English: never the visitor's own, so a server render and the browser write it alike. |
|
|
20
22
|
|
|
21
23
|
## Components
|
|
22
24
|
|
|
@@ -18,6 +18,9 @@ core skill, `nuxt-backend`, lists every public name in its own `references/api.m
|
|
|
18
18
|
| `useWorkflowStatus()` | Reactively track a durable Workflow's status. |
|
|
19
19
|
| `useShareLink()` | One row's share link: whether it has a live one and since when, read live, and the actions that turn it on (or mint a new one) and off, through `getShareLink`, `enableShareLink` and `revokeShareLink` of `backend/storage.ts`. |
|
|
20
20
|
| `useUploadField()` | The upload field without its markup: pick a file (by the button or by dropping it), run your `prepare` on it, upload it with the base module's `useUploadQueue` through the upload URL `setupStorage` mints, then hand the storage id to your `claim`, where the deployment checks it. |
|
|
21
|
+
| `preparePhoto()` | Make one photo ready to send, in the browser: decoded (a HEIC through `heic-to` when this browser can't open it, loaded only then), turned upright by its EXIF orientation, scaled down to `longEdge`, and re-encoded as `type` (JPEG by default) on a canvas, which keeps the pixels and drops every metadata tag, GPS included. |
|
|
22
|
+
| `isPhotoFile()` | Whether a file picked, dropped or pasted is worth preparing as a photo: an image type other than SVG and GIF, or a HEIC the device left untyped. |
|
|
23
|
+
| `PhotoPrepError()` | A photo `preparePhoto` could not make ready, as the refusal it is: `invalid_input` on `file`, with `reason`. |
|
|
21
24
|
|
|
22
25
|
## Components
|
|
23
26
|
|
|
@@ -77,4 +80,4 @@ Types: `WorkflowId`, `WorkflowStatus`, `WorkflowComponents`, `EmailSequenceStep`
|
|
|
77
80
|
| `sniffContentType()` | The type a file is, read from its signature (its first bytes), or `null` for one the package does not recognise. |
|
|
78
81
|
| `stripImageMetadata()` | An image's bytes without its EXIF, XMP, IPTC and GPS data, its container rewritten and its pixels untouched, so quality is unchanged: JPEG, PNG and WebP. |
|
|
79
82
|
|
|
80
|
-
Types: `FileOwner`, `StoredFile`, `ResolvedShareLink`, `ShareLinkState`, `MintedShareLink`, `StorageApi`, `StorageReadCtx`, `StorageWriteCtx`, `ShareCtx`, `ShareMutationCtx`, `EnabledShareLink`, `ShareableOptions`, `StorageQuota`, `SetupStorageOptions`, `Storage`, `StorageComponents`.
|
|
83
|
+
Types: `FileOwner`, `StoredFile`, `ResolvedShareLink`, `ShareLinkState`, `MintedShareLink`, `StorageApi`, `StorageReadCtx`, `StorageWriteCtx`, `ShareCtx`, `ShareMutationCtx`, `EnabledShareLink`, `ShareableOptions`, `UploadSafety`, `AcceptUploadOptions`, `StorageQuota`, `SetupStorageOptions`, `Storage`, `StorageComponents`.
|
|
@@ -76,7 +76,10 @@ last hour; the package keeps no copy. To sign in without a mailbox, request a co
|
|
|
76
76
|
## Mail sent to the app
|
|
77
77
|
|
|
78
78
|
- `setupEmail({ inbound: { domain, support, onReply, onWorkspaceMail }, contact: { to } })`. `domain` is a
|
|
79
|
-
receiving subdomain pointed at the provider; `support` is an Inboxes address
|
|
79
|
+
receiving subdomain pointed at the provider; `support` is an Inboxes address, and wins over
|
|
80
|
+
`contact.to`. Without `support`, on a `development` deployment the `contact.to` copy goes to
|
|
81
|
+
`delivered@resend.dev`, so no environment switch is needed; a sandbox or preview holds it back (its
|
|
82
|
+
dev inbox may be public), and sends none to a test address there. Give `contact.to` a real address.
|
|
80
83
|
- A reply by email: `replyTo: [await email.replyAddress(ctx, { userId, thread })]` on a send. The reply
|
|
81
84
|
reaches `onReply` only from the person's own address, passing DMARC. Mail for a workspace's slug
|
|
82
85
|
reaches `onWorkspaceMail`. Text in mail is untrusted data, never instructions.
|
|
@@ -105,7 +108,7 @@ last hour; the package keeps no copy. To sign in without a mailbox, request a co
|
|
|
105
108
|
- [Receive email](https://nuxt-backend.dev/docs/build/email/inbound): Turn mail sent to your app into app events and conversations: replies that reach the right person and thread, an address per workspace, and a shared support inbox with reply by email, on Resend's receiving and Inboxes, checked for spoofing before your code sees them.
|
|
106
109
|
- [Notify people about your own events](https://nuxt-backend.dev/docs/build/email/notifications/custom-events): Record an event of your own on the shared event path, turn it into a notification with setupNotifications' notify option, give it words in your messages, and deliver it in the app, by email and as push, under each person's choices.
|
|
107
110
|
- [Send web push notifications](https://nuxt-backend.dev/docs/build/email/notifications/web-push): Notifications on a person's phone or desktop with the app closed, in Safari, Chromium and Firefox: VAPID keys env push generates, messages signed and encrypted inside your deployment, usePushSubscription in a click, and each kind opted into.
|
|
108
|
-
- [Make the app installable](https://nuxt-backend.dev/docs/build/email/notifications/installable): Let people install your app on their phone or desktop: a web app manifest from your brand and two icons, the one service worker push already uses,
|
|
111
|
+
- [Make the app installable](https://nuxt-backend.dev/docs/build/email/notifications/installable): Let people install your app on their phone or desktop: a web app manifest from your brand and two icons, the one service worker push already uses, what each browser offers, including the Home Screen install that iPhone and iPad need for push, and an install button of your own.
|
|
109
112
|
- [Show in-app notifications](https://nuxt-backend.dev/docs/build/email/notifications): Put `<NotificationInbox>` in your header and every event the backend records about a person (an invitation, a role, low credits, a payment, a gift, a bounce) reaches it live, in their language, with the channel matrix that decides which kinds may also email or push.
|
|
110
113
|
<!-- /generated:tasks -->
|
|
111
114
|
|
|
@@ -18,6 +18,7 @@ core skill, `nuxt-backend`, lists every public name in its own `references/api.m
|
|
|
18
18
|
| `useEmailPreferences()` | The email topics the signed-in person receives and their notification channels, kind by kind, live, and the actions that change them: the same choices as the profile's Email section, the unsubscribe page and the provider's own page, which all stay in step. |
|
|
19
19
|
| `useEmailLink()` | The unsubscribe page without its markup: what the link names, and one press that leaves the topic (or every topic), or confirms a double opt-in. |
|
|
20
20
|
| `usePushSubscription()` | Web push on this device, for the signed-in person: whether the browser can take it, whether this device is subscribed, the permission, and the actions that subscribe and unsubscribe it. |
|
|
21
|
+
| `useInstallPrompt()` | Offer the install of the app from a button of its own: whether the browser handed over its install dialog, whether the app is installed, and the action that opens the dialog. |
|
|
21
22
|
| `useAnnouncements()` | The announcements an administrator published that the signed-in person has not dismissed, live: what `<BackendNotices>`' `announcement` notice shows. |
|
|
22
23
|
| `useAnnouncementsAdmin()` | The admin console's Announcements tab, as data: every announcement with its notice and its broadcast, and the changes an administrator makes, through `backend/email.ts`. |
|
|
23
24
|
| `useContactForm()` | The contact form without its markup: a name and an address for a visitor, the message alone for a signed-in account (so the same form on a page behind sign-in is a feedback form), the bot check, a honeypot, and the deployment's refusals. |
|
|
@@ -13,6 +13,8 @@ core skill, `nuxt-backend`, lists every public name in its own `references/api.m
|
|
|
13
13
|
|---|---|
|
|
14
14
|
| `useCampaign()` | The campaign a visitor arrived with, read from the address: a campaign link's discount code and its UTM attribution, ready for checkout. |
|
|
15
15
|
| `useGifts()` | Gifts, from both sides. |
|
|
16
|
+
| `useGiftForm()` | The gift form without its markup: a credit pack or a plan pass with its length (the lengths the plan is gifted for, at their live prices), the recipient, a note and a delivery day, and the send, which signs a visitor in and brings them back, then opens the purchaser's checkout over `useGifts().send`. |
|
|
17
|
+
| `useGiftList()` | The gift lists without their markup: what a person received and sent, with names, dates and states in their language, and every action over `useGifts()`, a cancel behind a recent sign-in. |
|
|
16
18
|
| `useOnboarding()` | The first run at `/welcome` without its markup: the steps in order, where the person is, moving between them, and the stamp that ends it. |
|
|
17
19
|
| `useActivation()` | The activation checklist without its markup: the first tasks `defineActivation` declares, which of them are done, the progress, and dismissing it. |
|
|
18
20
|
| `useExperiment()` | The variant of an experiment, a `defineFlags` flag with `variants`, for whoever is looking. |
|
|
@@ -28,6 +30,8 @@ core skill, `nuxt-backend`, lists every public name in its own `references/api.m
|
|
|
28
30
|
| `<ActivationChecklist>` | The first tasks that lead to value, with progress, for a page of your app: the tasks `defineActivation` declares, each ticked off when its event is recorded, "2 of 4 done", a link per open task and a Dismiss button. |
|
|
29
31
|
| `<HowDidYouHear>` | One optional question after sign-up: "How did you hear about us?". |
|
|
30
32
|
| `<ReferralCard>` | A person's referral link, with copy and share buttons and the disclosure of the reward: the link is `/r/<code>` on this site, made the first time the card is read. |
|
|
33
|
+
| `<GiftForm>` | The gift form: a credit pack or a plan pass with its length (the lengths the plan is gifted for, at their live prices), the recipient's email, a note and a delivery day, then the purchaser's own checkout (`useGifts().send`). |
|
|
34
|
+
| `<GiftList>` | The gifts a person received, each to claim into a workspace they manage, and the gifts they sent, each with what they can still do until it is claimed: resend its notice, address it to someone else, date it again, or cancel it for a refund behind a recent sign-in. |
|
|
31
35
|
|
|
32
36
|
## Doctor findings
|
|
33
37
|
|
|
@@ -146,7 +146,7 @@ unless the user asks. Overrides, rollouts, key rules and the audit trail are in
|
|
|
146
146
|
**Ship**
|
|
147
147
|
|
|
148
148
|
- [Deploy to Vercel](https://nuxt-backend.dev/docs/ship/deploy/vercel): What an app gets on Vercel, the host the package is built on first: BotID, Sentry's integration, the AI Gateway and the project's env, then this site's own setup as a reference: Web Analytics and Speed Insights without cookies, Firewall rate limits and a keyless model for the docs assistant.
|
|
149
|
-
- [Deploy in one command](https://nuxt-backend.dev/docs/ship/deploy/one-command): `nuxt-backend deploy` links the production deployment, pushes its env, deploys the backend, syncs the billing catalog, registers both webhooks, writes the app's env into the Vercel project and runs `doctor --prod`, step by step and safe to run again.
|
|
149
|
+
- [Deploy in one command](https://nuxt-backend.dev/docs/ship/deploy/one-command): `nuxt-backend deploy` links the production deployment, pushes its env, deploys the backend and migrates its data, syncs the billing catalog, registers both webhooks, writes the app's env into the Vercel project and runs `doctor --prod`, step by step and safe to run again.
|
|
150
150
|
- [Start from the deploy template](https://nuxt-backend.dev/docs/ship/deploy/template): A new app deployed to Vercel from its first commit: the starter as a Vercel template, with Convex added through the Vercel Marketplace, running on the providers' test modes until `nuxt-backend deploy` switches it to production.
|
|
151
151
|
- [Set up preview environments](https://nuxt-backend.dev/docs/ship/deploy/previews): Give a branch's preview build a backend of its own, with a generated auth secret, the branch's exact origin as SITE_URL and BACKEND_ENVIRONMENT set to preview, from the build or from the project's env defaults.
|
|
152
152
|
- [Deploy a demo or staging app](https://nuxt-backend.dev/docs/ship/deploy/staging): Run a public demo or a staging copy of your app in production mode while every provider stays in its test mode, with BACKEND_ENVIRONMENT set to sandbox, a Convex project of its own, Polar's sandbox and Resend's test addresses.
|