@nextsparkjs/core 0.1.0-beta.185 → 0.1.0-beta.187
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/dist/components/app/guards/DeveloperGuard.d.ts.map +1 -1
- package/dist/components/app/guards/DeveloperGuard.js +8 -4
- package/dist/components/app/guards/SuperAdminGuard.d.ts.map +1 -1
- package/dist/components/app/guards/SuperAdminGuard.js +8 -4
- package/dist/components/app/layouts/PublicFooter.d.ts.map +1 -1
- package/dist/components/app/layouts/PublicFooter.js +2 -2
- package/dist/components/app/layouts/PublicNavbar.d.ts.map +1 -1
- package/dist/components/app/layouts/PublicNavbar.js +2 -2
- package/dist/components/app/misc/ThemeToggle.d.ts.map +1 -1
- package/dist/components/app/misc/ThemeToggle.js +4 -1
- package/dist/components/auth/DevKeyring.d.ts.map +1 -1
- package/dist/components/auth/DevKeyring.js +10 -2
- package/dist/components/auth/SessionCookieRefresher.d.ts +21 -0
- package/dist/components/auth/SessionCookieRefresher.d.ts.map +1 -0
- package/dist/components/auth/SessionCookieRefresher.js +11 -0
- package/dist/components/auth/forms/LoginForm.d.ts.map +1 -1
- package/dist/components/auth/forms/LoginForm.js +300 -6
- package/dist/components/auth/index.d.ts +1 -0
- package/dist/components/auth/index.d.ts.map +1 -1
- package/dist/components/auth/index.js +2 -0
- package/dist/components/billing/InvoicesTable.d.ts.map +1 -1
- package/dist/components/billing/InvoicesTable.js +4 -3
- package/dist/components/dashboard/block-editor/dynamic-form.d.ts.map +1 -1
- package/dist/components/dashboard/layouts/AuthGuard.d.ts.map +1 -1
- package/dist/components/dashboard/layouts/AuthGuard.js +2 -2
- package/dist/components/dashboard/layouts/DashboardAuthLayout.d.ts.map +1 -1
- package/dist/components/dashboard/layouts/DashboardAuthLayout.js +2 -2
- package/dist/components/dashboard/layouts/DashboardAuthSkeleton.d.ts +17 -0
- package/dist/components/dashboard/layouts/DashboardAuthSkeleton.d.ts.map +1 -0
- package/dist/components/dashboard/layouts/DashboardAuthSkeleton.js +52 -0
- package/dist/components/dashboard/layouts/Sidebar.d.ts.map +1 -1
- package/dist/components/dashboard/layouts/Sidebar.js +2 -3
- package/dist/components/dashboard/layouts/TopNavbar.js +2 -2
- package/dist/components/dashboard/layouts/index.d.ts +1 -0
- package/dist/components/dashboard/layouts/index.d.ts.map +1 -1
- package/dist/components/dashboard/layouts/index.js +2 -0
- package/dist/components/devtools/api-explorer/ApiExplorer.js +4 -4
- package/dist/components/entities/EntityFieldRenderer.d.ts.map +1 -1
- package/dist/components/entities/EntityFieldRenderer.js +3 -0
- package/dist/components/entities/EntityTable.d.ts.map +1 -1
- package/dist/components/entities/EntityTable.js +2 -1
- package/dist/components/entities/wrappers/EntityFormWrapper.d.ts.map +1 -1
- package/dist/components/entities/wrappers/EntityFormWrapper.js +7 -2
- package/dist/components/patterns/pages/PatternEditPage.d.ts +5 -1
- package/dist/components/patterns/pages/PatternEditPage.d.ts.map +1 -1
- package/dist/components/patterns/pages/PatternEditPage.js +16 -5
- package/dist/components/patterns/pages/PatternsCreatePage.d.ts +2 -1
- package/dist/components/patterns/pages/PatternsCreatePage.d.ts.map +1 -1
- package/dist/components/patterns/pages/PatternsCreatePage.js +17 -5
- package/dist/components/ui/combobox.d.ts +8 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +37 -44
- package/dist/components/ui/country-select.d.ts +3 -1
- package/dist/components/ui/country-select.d.ts.map +1 -1
- package/dist/components/ui/country-select.js +3 -1
- package/dist/components/ui/currency-select.d.ts +3 -1
- package/dist/components/ui/currency-select.d.ts.map +1 -1
- package/dist/components/ui/currency-select.js +3 -1
- package/dist/components/ui/sheet.d.ts +5 -0
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +46 -26
- package/dist/components/ui/timezone-select.d.ts +3 -1
- package/dist/components/ui/timezone-select.d.ts.map +1 -1
- package/dist/components/ui/timezone-select.js +3 -1
- package/dist/contexts/TeamContext.d.ts +6 -0
- package/dist/contexts/TeamContext.d.ts.map +1 -1
- package/dist/contexts/TeamContext.js +8 -1
- package/dist/emails/otp-verification.d.ts.map +1 -1
- package/dist/emails/reset-password.d.ts.map +1 -1
- package/dist/emails/team-invitation.d.ts.map +1 -1
- package/dist/emails/team-invitation.js +3 -2
- package/dist/emails/verify-email.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useAuth.d.ts +29 -0
- package/dist/hooks/useAuth.d.ts.map +1 -1
- package/dist/hooks/useAuth.js +24 -0
- package/dist/hooks/useEnsureUserMetadata.d.ts +22 -0
- package/dist/hooks/useEnsureUserMetadata.d.ts.map +1 -1
- package/dist/hooks/useEnsureUserMetadata.js +18 -5
- package/dist/hooks/useSessionCookieRefresh.d.ts +35 -0
- package/dist/hooks/useSessionCookieRefresh.d.ts.map +1 -0
- package/dist/hooks/useSessionCookieRefresh.js +49 -0
- package/dist/lib/api/api-error.d.ts +3 -1
- package/dist/lib/api/api-error.d.ts.map +1 -1
- package/dist/lib/api/api-error.js +4 -2
- package/dist/lib/api/auth/dual-auth.d.ts +38 -3
- package/dist/lib/api/auth/dual-auth.d.ts.map +1 -1
- package/dist/lib/api/auth/dual-auth.js +42 -7
- package/dist/lib/api/auth/permissions.d.ts +7 -2
- package/dist/lib/api/auth/permissions.d.ts.map +1 -1
- package/dist/lib/api/auth/permissions.js +2 -2
- package/dist/lib/api/auth/scope-policy.d.ts +71 -0
- package/dist/lib/api/auth/scope-policy.d.ts.map +1 -0
- package/dist/lib/api/auth/scope-policy.js +53 -0
- package/dist/lib/api/auth.d.ts +15 -0
- package/dist/lib/api/auth.d.ts.map +1 -1
- package/dist/lib/api/auth.js +17 -4
- package/dist/lib/api/entities.js +2 -1
- package/dist/lib/api/entity/audit-log.d.ts +35 -0
- package/dist/lib/api/entity/audit-log.d.ts.map +1 -0
- package/dist/lib/api/entity/audit-log.js +35 -0
- package/dist/lib/api/entity/generic-handler.d.ts.map +1 -1
- package/dist/lib/api/entity/generic-handler.js +333 -138
- package/dist/lib/api/entity-handler.js +2 -2
- package/dist/lib/api/helpers.d.ts +29 -4
- package/dist/lib/api/helpers.d.ts.map +1 -1
- package/dist/lib/api/helpers.js +30 -6
- package/dist/lib/api/keys.d.ts +16 -0
- package/dist/lib/api/keys.d.ts.map +1 -1
- package/dist/lib/api/keys.js +19 -1
- package/dist/lib/api/routes/patterns-usages.d.ts.map +1 -1
- package/dist/lib/api/routes/patterns-usages.js +3 -11
- package/dist/lib/auth/auth-methods.d.ts +52 -0
- package/dist/lib/auth/auth-methods.d.ts.map +1 -0
- package/dist/lib/auth/auth-methods.js +63 -0
- package/dist/lib/auth/registration-guard-plugin.d.ts.map +1 -1
- package/dist/lib/auth/registration-helpers.d.ts +9 -0
- package/dist/lib/auth/registration-helpers.d.ts.map +1 -1
- package/dist/lib/auth/registration-helpers.js +8 -2
- package/dist/lib/auth/security-notifications/device-fingerprint.d.ts +52 -0
- package/dist/lib/auth/security-notifications/device-fingerprint.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/device-fingerprint.js +42 -0
- package/dist/lib/auth/security-notifications/dispatcher.d.ts +37 -0
- package/dist/lib/auth/security-notifications/dispatcher.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/dispatcher.js +157 -0
- package/dist/lib/auth/security-notifications/index.d.ts +20 -0
- package/dist/lib/auth/security-notifications/index.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/index.js +22 -0
- package/dist/lib/auth/security-notifications/registry.d.ts +36 -0
- package/dist/lib/auth/security-notifications/registry.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/registry.js +26 -0
- package/dist/lib/auth/security-notifications/templates/email-changed.d.ts +12 -0
- package/dist/lib/auth/security-notifications/templates/email-changed.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/templates/email-changed.js +43 -0
- package/dist/lib/auth/security-notifications/templates/new-device-login.d.ts +7 -0
- package/dist/lib/auth/security-notifications/templates/new-device-login.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/templates/new-device-login.js +46 -0
- package/dist/lib/auth/security-notifications/templates/password-changed.d.ts +7 -0
- package/dist/lib/auth/security-notifications/templates/password-changed.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/templates/password-changed.js +35 -0
- package/dist/lib/auth/security-notifications/templates/shared.d.ts +36 -0
- package/dist/lib/auth/security-notifications/templates/shared.d.ts.map +1 -0
- package/dist/lib/auth/security-notifications/templates/shared.js +68 -0
- package/dist/lib/auth/security-notifications/types.d.ts +74 -0
- package/dist/lib/auth/security-notifications/types.d.ts.map +1 -0
- package/dist/lib/auth/session-config.d.ts +37 -0
- package/dist/lib/auth/session-config.d.ts.map +1 -0
- package/dist/lib/auth/session-config.js +59 -0
- package/dist/lib/auth/session-refresh.d.ts +46 -0
- package/dist/lib/auth/session-refresh.d.ts.map +1 -0
- package/dist/lib/auth/session-refresh.js +11 -0
- package/dist/lib/auth-client.d.ts +1639 -0
- package/dist/lib/auth-client.d.ts.map +1 -0
- package/dist/lib/auth-client.js +13 -1
- package/dist/lib/auth.d.ts.map +1 -1
- package/dist/lib/auth.js +45 -11
- package/dist/lib/billing/gateways/factory.d.ts +8 -3
- package/dist/lib/billing/gateways/factory.d.ts.map +1 -1
- package/dist/lib/billing/gateways/factory.js +37 -23
- package/dist/lib/billing/stripe-webhook.d.ts.map +1 -1
- package/dist/lib/billing/stripe-webhook.js +2 -1
- package/dist/lib/config/app.config.d.ts.map +1 -1
- package/dist/lib/config/app.config.js +71 -0
- package/dist/lib/config/config-sync.d.ts +1 -4
- package/dist/lib/config/config-sync.d.ts.map +1 -1
- package/dist/lib/config/config-sync.js +6 -2
- package/dist/lib/config/types.d.ts +130 -0
- package/dist/lib/config/types.d.ts.map +1 -1
- package/dist/lib/email/templates.d.ts +3 -3
- package/dist/lib/email/templates.d.ts.map +1 -1
- package/dist/lib/entities/api-generator.js +5 -5
- package/dist/lib/entities/entity-hooks.d.ts +9 -1
- package/dist/lib/entities/entity-hooks.d.ts.map +1 -1
- package/dist/lib/entities/entity-hooks.js +77 -4
- package/dist/lib/entities/schema-generator.d.ts.map +1 -1
- package/dist/lib/entities/schema-generator.js +20 -4
- package/dist/lib/entities/serialization.d.ts +2 -2
- package/dist/lib/entities/serialization.d.ts.map +1 -1
- package/dist/lib/entities/serialization.js +3 -2
- package/dist/lib/entities/types.d.ts +20 -0
- package/dist/lib/entities/types.d.ts.map +1 -1
- package/dist/lib/locale.d.ts.map +1 -1
- package/dist/lib/locale.js +4 -1
- package/dist/lib/mcp/audit.d.ts +8 -4
- package/dist/lib/mcp/audit.d.ts.map +1 -1
- package/dist/lib/plugins/hook-system.d.ts +13 -0
- package/dist/lib/plugins/hook-system.d.ts.map +1 -1
- package/dist/lib/plugins/hook-system.js +32 -2
- package/dist/lib/scheduled-actions/handlers/index.d.ts +1 -0
- package/dist/lib/scheduled-actions/handlers/index.d.ts.map +1 -1
- package/dist/lib/scheduled-actions/handlers/index.js +3 -1
- package/dist/lib/scheduled-actions/handlers/security-notification.d.ts +26 -0
- package/dist/lib/scheduled-actions/handlers/security-notification.d.ts.map +1 -0
- package/dist/lib/scheduled-actions/handlers/security-notification.js +54 -0
- package/dist/lib/selectors/core-selectors.d.ts +12 -0
- package/dist/lib/selectors/core-selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/auth.selectors.d.ts +12 -0
- package/dist/lib/selectors/domains/auth.selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/auth.selectors.js +14 -1
- package/dist/lib/selectors/selectors.d.ts +24 -0
- package/dist/lib/selectors/selectors.d.ts.map +1 -1
- package/dist/lib/services/api-docs.service.d.ts +5 -1
- package/dist/lib/services/api-docs.service.d.ts.map +1 -1
- package/dist/lib/services/api-presets.service.d.ts +6 -1
- package/dist/lib/services/api-presets.service.d.ts.map +1 -1
- package/dist/lib/services/feature.service.d.ts +58 -4
- package/dist/lib/services/feature.service.d.ts.map +1 -1
- package/dist/lib/services/generic-entity.service.d.ts.map +1 -1
- package/dist/lib/services/generic-entity.service.js +16 -32
- package/dist/lib/services/membership.service.d.ts +10 -2
- package/dist/lib/services/membership.service.d.ts.map +1 -1
- package/dist/lib/services/membership.service.js +37 -16
- package/dist/lib/services/permission.service.d.ts +10 -4
- package/dist/lib/services/permission.service.d.ts.map +1 -1
- package/dist/lib/services/plugin.service.d.ts +1 -1
- package/dist/lib/services/plugin.service.d.ts.map +1 -1
- package/dist/lib/services/subscription.service.d.ts.map +1 -1
- package/dist/lib/services/subscription.service.js +2 -1
- package/dist/lib/services/team-member.service.d.ts +15 -3
- package/dist/lib/services/team-member.service.d.ts.map +1 -1
- package/dist/lib/services/team-member.service.js +27 -6
- package/dist/lib/services/team.service.d.ts.map +1 -1
- package/dist/lib/teams/permissions.d.ts +3 -1
- package/dist/lib/teams/permissions.d.ts.map +1 -1
- package/dist/lib/teams/permissions.js +6 -0
- package/dist/lib/teams/schema.d.ts.map +1 -1
- package/dist/lib/teams/schema.js +3 -0
- package/dist/lib/template-resolver.d.ts +3 -3
- package/dist/lib/theme/forced-theme.d.ts +34 -0
- package/dist/lib/theme/forced-theme.d.ts.map +1 -0
- package/dist/lib/theme/forced-theme.js +27 -0
- package/dist/lib/theme/get-default-theme-mode.d.ts +3 -0
- package/dist/lib/theme/get-default-theme-mode.d.ts.map +1 -1
- package/dist/lib/theme/get-default-theme-mode.js +5 -3
- package/dist/lib/utils/cors.d.ts +13 -0
- package/dist/lib/utils/cors.d.ts.map +1 -1
- package/dist/lib/utils/cors.js +20 -0
- package/dist/messages/de/auth.json +25 -2
- package/dist/messages/de/index.d.ts +83 -0
- package/dist/messages/de/index.d.ts.map +1 -1
- package/dist/messages/de/index.js +2 -0
- package/dist/messages/de/index.ts +2 -0
- package/dist/messages/de/navigation.json +3 -1
- package/dist/messages/en/auth.json +25 -2
- package/dist/messages/en/index.d.ts +83 -0
- package/dist/messages/en/index.d.ts.map +1 -1
- package/dist/messages/en/index.js +2 -0
- package/dist/messages/en/index.ts +2 -0
- package/dist/messages/en/navigation.json +3 -1
- package/dist/messages/es/auth.json +25 -2
- package/dist/messages/es/index.d.ts +83 -0
- package/dist/messages/es/index.d.ts.map +1 -1
- package/dist/messages/es/index.js +2 -0
- package/dist/messages/es/index.ts +2 -0
- package/dist/messages/es/navigation.json +3 -1
- package/dist/messages/fr/auth.json +25 -2
- package/dist/messages/fr/index.d.ts +83 -0
- package/dist/messages/fr/index.d.ts.map +1 -1
- package/dist/messages/fr/index.js +2 -0
- package/dist/messages/fr/index.ts +2 -0
- package/dist/messages/fr/navigation.json +3 -1
- package/dist/messages/it/auth.json +25 -2
- package/dist/messages/it/index.d.ts +83 -0
- package/dist/messages/it/index.d.ts.map +1 -1
- package/dist/messages/it/index.js +2 -0
- package/dist/messages/it/index.ts +2 -0
- package/dist/messages/it/navigation.json +3 -1
- package/dist/messages/pt/auth.json +25 -2
- package/dist/messages/pt/index.d.ts +83 -0
- package/dist/messages/pt/index.d.ts.map +1 -1
- package/dist/messages/pt/index.js +2 -0
- package/dist/messages/pt/index.ts +2 -0
- package/dist/messages/pt/navigation.json +3 -1
- package/dist/migrations/005_api_audit_log.sql +2 -1
- package/dist/migrations/025_api_audit_log_nullable_api_key.sql +12 -0
- package/dist/migrations/026_login_events.sql +91 -0
- package/dist/migrations/027_rls_bypass_developer_and_system_admin_team.sql +197 -0
- package/dist/nextspark-registries.d.ts +580 -236
- package/dist/providers/DashboardProviders.d.ts +12 -3
- package/dist/providers/DashboardProviders.d.ts.map +1 -1
- package/dist/providers/DashboardProviders.js +6 -2
- package/dist/providers/theme-provider.d.ts +19 -2
- package/dist/providers/theme-provider.d.ts.map +1 -1
- package/dist/providers/theme-provider.js +6 -2
- package/dist/templates/app/(auth)/signup/page.tsx +8 -0
- package/dist/templates/app/(public)/[...slug]/page.tsx +9 -14
- package/dist/templates/app/api/auth/[...all]/route.ts +23 -1
- package/dist/templates/app/api/health/route.ts +4 -2
- package/dist/templates/app/api/internal/user-metadata/route.ts +5 -3
- package/dist/templates/app/api/mcp/route.ts +4 -1
- package/dist/templates/app/api/superadmin/subscriptions/route.ts +2 -1
- package/dist/templates/app/api/superadmin/teams/[teamId]/route.ts +4 -3
- package/dist/templates/app/api/superadmin/users/[userId]/route.ts +10 -3
- package/dist/templates/app/api/v1/api-keys/[id]/route.ts +50 -71
- package/dist/templates/app/api/v1/api-keys/route.ts +21 -43
- package/dist/templates/app/api/v1/auth/signup-with-invite/route.ts +14 -14
- package/dist/templates/app/api/v1/billing/cancel/route.ts +7 -6
- package/dist/templates/app/api/v1/billing/change-plan/route.ts +5 -4
- package/dist/templates/app/api/v1/billing/check-action/route.ts +6 -4
- package/dist/templates/app/api/v1/billing/checkout/route.ts +7 -5
- package/dist/templates/app/api/v1/billing/plans/route.ts +8 -12
- package/dist/templates/app/api/v1/billing/portal/route.ts +7 -5
- package/dist/templates/app/api/v1/billing/webhooks/polar/route.ts +1 -1
- package/dist/templates/app/api/v1/devtools/blocks/route.ts +5 -4
- package/dist/templates/app/api/v1/devtools/features/route.ts +5 -4
- package/dist/templates/app/api/v1/devtools/flows/route.ts +5 -4
- package/dist/templates/app/api/v1/devtools/scheduled-actions/route.ts +9 -7
- package/dist/templates/app/api/v1/devtools/scheduled-actions/run/route.ts +5 -4
- package/dist/templates/app/api/v1/devtools/testing/route.ts +5 -4
- package/dist/templates/app/api/v1/media/[id]/route.ts +13 -25
- package/dist/templates/app/api/v1/media/[id]/tags/route.ts +17 -25
- package/dist/templates/app/api/v1/media/check-duplicates/route.ts +5 -7
- package/dist/templates/app/api/v1/media/route.ts +5 -9
- package/dist/templates/app/api/v1/media/upload/route.ts +9 -21
- package/dist/templates/app/api/v1/media-tags/route.ts +9 -13
- package/dist/templates/app/api/v1/patterns/[id]/usages/route.ts +11 -19
- package/dist/templates/app/api/v1/post-categories/[id]/route.ts +9 -7
- package/dist/templates/app/api/v1/post-categories/route.ts +5 -4
- package/dist/templates/app/api/v1/team-invitations/[token]/accept/route.ts +16 -18
- package/dist/templates/app/api/v1/team-invitations/[token]/decline/route.ts +15 -17
- package/dist/templates/app/api/v1/team-invitations/[token]/route.ts +8 -8
- package/dist/templates/app/api/v1/team-invitations/route.ts +9 -11
- package/dist/templates/app/api/v1/teams/[teamId]/invitations/route.ts +41 -32
- package/dist/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +15 -16
- package/dist/templates/app/api/v1/teams/[teamId]/invoices/route.ts +14 -15
- package/dist/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +32 -36
- package/dist/templates/app/api/v1/teams/[teamId]/members/route.ts +33 -33
- package/dist/templates/app/api/v1/teams/[teamId]/route.ts +35 -41
- package/dist/templates/app/api/v1/teams/[teamId]/subscription/route.ts +5 -3
- package/dist/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +10 -6
- package/dist/templates/app/api/v1/teams/route.ts +33 -27
- package/dist/templates/app/api/v1/teams/switch/route.ts +11 -13
- package/dist/templates/app/api/v1/theme/[...path]/route.ts +23 -2
- package/dist/templates/app/api/v1/users/[id]/meta/[key]/route.ts +32 -77
- package/dist/templates/app/api/v1/users/[id]/route.ts +35 -68
- package/dist/templates/app/api/v1/users/route.ts +21 -25
- package/dist/templates/app/dashboard/layout.tsx +2 -6
- package/dist/templates/app/layout.ppr.tsx +15 -15
- package/dist/templates/app/layout.tsx +46 -20
- package/dist/templates/contents/themes/starter/config/app.config.ts +19 -0
- package/dist/templates/contents/themes/starter/config/theme.config.ts +6 -0
- package/dist/templates/contents/themes/starter/styles/globals.css +6 -2
- package/dist/templates/proxy.ts +46 -10
- package/dist/templates/tsconfig.json +4 -0
- package/dist/types/theme.d.ts +9 -0
- package/dist/types/theme.d.ts.map +1 -1
- package/migrations/005_api_audit_log.sql +2 -1
- package/migrations/025_api_audit_log_nullable_api_key.sql +12 -0
- package/migrations/026_login_events.sql +91 -0
- package/migrations/027_rls_bypass_developer_and_system_admin_team.sql +197 -0
- package/package.json +14 -11
- package/scripts/build/registry/__tests__/scope-registry.test.mjs +18 -0
- package/scripts/build/registry/generators/scope-registry.mjs +9 -2
- package/templates/app/(auth)/signup/page.tsx +8 -0
- package/templates/app/(public)/[...slug]/page.tsx +9 -14
- package/templates/app/api/auth/[...all]/route.ts +23 -1
- package/templates/app/api/health/route.ts +4 -2
- package/templates/app/api/internal/user-metadata/route.ts +5 -3
- package/templates/app/api/mcp/route.ts +4 -1
- package/templates/app/api/superadmin/subscriptions/route.ts +2 -1
- package/templates/app/api/superadmin/teams/[teamId]/route.ts +4 -3
- package/templates/app/api/superadmin/users/[userId]/route.ts +10 -3
- package/templates/app/api/v1/api-keys/[id]/route.ts +50 -71
- package/templates/app/api/v1/api-keys/route.ts +21 -43
- package/templates/app/api/v1/auth/signup-with-invite/route.ts +14 -14
- package/templates/app/api/v1/billing/cancel/route.ts +7 -6
- package/templates/app/api/v1/billing/change-plan/route.ts +5 -4
- package/templates/app/api/v1/billing/check-action/route.ts +6 -4
- package/templates/app/api/v1/billing/checkout/route.ts +7 -5
- package/templates/app/api/v1/billing/plans/route.ts +8 -12
- package/templates/app/api/v1/billing/portal/route.ts +7 -5
- package/templates/app/api/v1/billing/webhooks/polar/route.ts +1 -1
- package/templates/app/api/v1/devtools/blocks/route.ts +5 -4
- package/templates/app/api/v1/devtools/features/route.ts +5 -4
- package/templates/app/api/v1/devtools/flows/route.ts +5 -4
- package/templates/app/api/v1/devtools/scheduled-actions/route.ts +9 -7
- package/templates/app/api/v1/devtools/scheduled-actions/run/route.ts +5 -4
- package/templates/app/api/v1/devtools/testing/route.ts +5 -4
- package/templates/app/api/v1/media/[id]/route.ts +13 -25
- package/templates/app/api/v1/media/[id]/tags/route.ts +17 -25
- package/templates/app/api/v1/media/check-duplicates/route.ts +5 -7
- package/templates/app/api/v1/media/route.ts +5 -9
- package/templates/app/api/v1/media/upload/route.ts +9 -21
- package/templates/app/api/v1/media-tags/route.ts +9 -13
- package/templates/app/api/v1/patterns/[id]/usages/route.ts +11 -19
- package/templates/app/api/v1/post-categories/[id]/route.ts +9 -7
- package/templates/app/api/v1/post-categories/route.ts +5 -4
- package/templates/app/api/v1/team-invitations/[token]/accept/route.ts +16 -18
- package/templates/app/api/v1/team-invitations/[token]/decline/route.ts +15 -17
- package/templates/app/api/v1/team-invitations/[token]/route.ts +8 -8
- package/templates/app/api/v1/team-invitations/route.ts +9 -11
- package/templates/app/api/v1/teams/[teamId]/invitations/route.ts +41 -32
- package/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +15 -16
- package/templates/app/api/v1/teams/[teamId]/invoices/route.ts +14 -15
- package/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +32 -36
- package/templates/app/api/v1/teams/[teamId]/members/route.ts +33 -33
- package/templates/app/api/v1/teams/[teamId]/route.ts +35 -41
- package/templates/app/api/v1/teams/[teamId]/subscription/route.ts +5 -3
- package/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +10 -6
- package/templates/app/api/v1/teams/route.ts +33 -27
- package/templates/app/api/v1/teams/switch/route.ts +11 -13
- package/templates/app/api/v1/theme/[...path]/route.ts +23 -2
- package/templates/app/api/v1/users/[id]/meta/[key]/route.ts +32 -77
- package/templates/app/api/v1/users/[id]/route.ts +35 -68
- package/templates/app/api/v1/users/route.ts +21 -25
- package/templates/app/dashboard/layout.tsx +2 -6
- package/templates/app/layout.ppr.tsx +15 -15
- package/templates/app/layout.tsx +46 -20
- package/templates/contents/themes/starter/config/app.config.ts +19 -0
- package/templates/contents/themes/starter/config/theme.config.ts +6 -0
- package/templates/contents/themes/starter/styles/globals.css +6 -2
- package/templates/proxy.ts +46 -10
- package/templates/tsconfig.json +4 -0
- package/tests/jest/__mocks__/@nextsparkjs/registries/permissions-registry.ts +23 -0
- package/tests/jest/__mocks__/next-server.js +24 -0
- package/dist/components/teams/TeamSwitchModal.d.js +0 -0
- package/dist/components/ui/accordion.d.js +0 -0
- package/dist/components/ui/avatar.d.js +0 -0
- package/dist/components/ui/badge.d.js +0 -0
- package/dist/components/ui/button.d.js +0 -0
- package/dist/components/ui/card.d.js +0 -0
- package/dist/components/ui/dialog.d.js +0 -0
- package/dist/components/ui/dropdown-menu.d.js +0 -0
- package/dist/components/ui/input.d.js +0 -0
- package/dist/components/ui/progress.d.js +0 -0
- package/dist/components/ui/scroll-area.d.js +0 -0
- package/dist/components/ui/select.d.js +0 -0
- package/dist/components/ui/separator.d.js +0 -0
- package/dist/components/ui/table.d.js +0 -0
- package/dist/components/ui/textarea.d.js +0 -0
- package/dist/contexts/TeamContext.d.js +0 -0
- package/dist/hooks/useAuth.d.js +0 -0
- package/dist/hooks/useLastAuthMethod.d.js +0 -0
- package/dist/hooks/useOrigin.d.js +0 -0
- package/dist/lib/api/auth/dual-auth.d.js +0 -0
- package/dist/lib/api/auth.d.js +0 -0
- package/dist/lib/api/cache.d.js +0 -0
- package/dist/lib/api/keys.d.js +0 -0
- package/dist/lib/auth-client.d.js +0 -0
- package/dist/lib/auth-context.d.js +0 -0
- package/dist/lib/auth.d.js +0 -0
- package/dist/lib/billing/config-types.d.js +0 -0
- package/dist/lib/billing/enforcement.d.js +0 -0
- package/dist/lib/billing/helpers.d.js +0 -0
- package/dist/lib/billing/jobs.d.js +0 -0
- package/dist/lib/billing/types.d.js +0 -0
- package/dist/lib/blocks/loader.d.js +0 -0
- package/dist/lib/config/app.config.d.js +0 -0
- package/dist/lib/config/config-loader.d.js +0 -0
- package/dist/lib/config/config-sync.d.js +0 -0
- package/dist/lib/config/config-types.d.js +0 -0
- package/dist/lib/config/config-utils.d.js +0 -0
- package/dist/lib/config/dashboard-types.d.js +0 -0
- package/dist/lib/config/dashboard.config.d.js +0 -0
- package/dist/lib/config/icon-map.d.js +0 -0
- package/dist/lib/config/index.d.js +0 -7
- package/dist/lib/config/nextspark-types.d.js +0 -0
- package/dist/lib/config/roles-merge.d.js +0 -0
- package/dist/lib/config/types.d.js +0 -0
- package/dist/lib/db.d.js +0 -0
- package/dist/lib/email/factory.d.js +0 -0
- package/dist/lib/email/index.d.js +0 -3
- package/dist/lib/email/providers/console.d.js +0 -0
- package/dist/lib/email/providers/resend.d.js +0 -0
- package/dist/lib/email/templates.d.js +0 -0
- package/dist/lib/email/types.d.js +0 -0
- package/dist/lib/entities/types.d.js +0 -0
- package/dist/lib/permissions/system.d.js +0 -0
- package/dist/lib/permissions/types.d.js +0 -0
- package/dist/lib/plugins/hook-system.d.js +0 -0
- package/dist/lib/scheduled-actions/cleanup.d.js +0 -0
- package/dist/lib/scheduled-actions/index.d.js +0 -19
- package/dist/lib/scheduled-actions/initializer.d.js +0 -1
- package/dist/lib/scheduled-actions/processor.d.js +0 -0
- package/dist/lib/scheduled-actions/registry.d.js +0 -0
- package/dist/lib/scheduled-actions/scheduler.d.js +0 -0
- package/dist/lib/scheduled-actions/types.d.js +0 -0
- package/dist/lib/services/api-routes.service.d.js +0 -0
- package/dist/lib/services/entity-type.service.d.js +0 -0
- package/dist/lib/services/index.d.js +0 -40
- package/dist/lib/services/invoice.service.d.js +0 -0
- package/dist/lib/services/membership.service.d.js +0 -0
- package/dist/lib/services/meta.service.d.js +0 -0
- package/dist/lib/services/middleware.service.d.js +0 -0
- package/dist/lib/services/namespace.service.d.js +0 -0
- package/dist/lib/services/permission.service.d.js +0 -0
- package/dist/lib/services/plan.service.d.js +0 -0
- package/dist/lib/services/plugin.service.d.js +0 -0
- package/dist/lib/services/route-handler.service.d.js +0 -0
- package/dist/lib/services/scope.service.d.js +0 -0
- package/dist/lib/services/subscription.service.d.js +0 -0
- package/dist/lib/services/team-member.service.d.js +0 -0
- package/dist/lib/services/team.service.d.js +0 -0
- package/dist/lib/services/theme.service.d.js +0 -0
- package/dist/lib/services/usage.service.d.js +0 -0
- package/dist/lib/services/user-flags.service.d.js +0 -0
- package/dist/lib/services/user.service.d.js +0 -0
- package/dist/lib/teams/helpers.d.js +0 -0
- package/dist/lib/teams/permissions.d.js +0 -0
- package/dist/lib/teams/types.d.js +0 -0
- package/dist/lib/utils/config-merge.d.js +0 -0
- package/dist/lib/utils/file-logger.d.js +0 -0
- package/dist/lib/utils.d.js +0 -0
- package/dist/styles/classes.json +0 -1093
- package/dist/styles/ui.css +0 -2
- package/dist/types/auth.d.js +0 -0
- package/dist/types/blocks.d.js +0 -0
- package/dist/types/meta.types.d.js +0 -0
- package/dist/types/plugin.d.js +0 -0
- package/dist/types/testing.types.d.js +0 -0
- package/dist/types/theme.d.js +0 -0
- package/dist/types/user.types.d.js +0 -0
- package/scripts/build/build-ui-css.mjs +0 -351
- /package/dist/{components/app/layouts/PublicFooter.d.js → lib/auth/security-notifications/types.js} +0 -0
- /package/dist/{components/app/layouts/PublicNavbar.d.js → nextspark-registries.d.js} +0 -0
- /package/dist/{components/app/misc/ThemeToggle.d.js → types/use-intl-react-shim.d.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/fr/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/fr/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wBAqBU"}
|
|
@@ -6,6 +6,7 @@ import common from "./common.json";
|
|
|
6
6
|
import dashboard from "./dashboard.json";
|
|
7
7
|
import devtools from "./devtools.json";
|
|
8
8
|
import docs from "./docs.json";
|
|
9
|
+
import email from "./email.json";
|
|
9
10
|
import entities from "./entities.json";
|
|
10
11
|
import footer from "./footer.json";
|
|
11
12
|
import home from "./home.json";
|
|
@@ -26,6 +27,7 @@ var fr_default = {
|
|
|
26
27
|
dashboard,
|
|
27
28
|
devtools,
|
|
28
29
|
docs,
|
|
30
|
+
email,
|
|
29
31
|
entities,
|
|
30
32
|
footer,
|
|
31
33
|
home,
|
|
@@ -6,6 +6,7 @@ import common from './common.json'
|
|
|
6
6
|
import dashboard from './dashboard.json'
|
|
7
7
|
import devtools from './devtools.json'
|
|
8
8
|
import docs from './docs.json'
|
|
9
|
+
import email from './email.json'
|
|
9
10
|
import entities from './entities.json'
|
|
10
11
|
import footer from './footer.json'
|
|
11
12
|
import home from './home.json'
|
|
@@ -27,6 +28,7 @@ export default {
|
|
|
27
28
|
dashboard,
|
|
28
29
|
devtools,
|
|
29
30
|
docs,
|
|
31
|
+
email,
|
|
30
32
|
entities,
|
|
31
33
|
footer,
|
|
32
34
|
home,
|
|
@@ -19,7 +19,21 @@
|
|
|
19
19
|
"submitHelp": "Premi Invio o clicca per accedere",
|
|
20
20
|
"lastUsed": "Ultimo Utilizzato",
|
|
21
21
|
"loginWithEmail": "Accedi con Email",
|
|
22
|
-
"backToGoogle": "Torna alle opzioni principali"
|
|
22
|
+
"backToGoogle": "Torna alle opzioni principali",
|
|
23
|
+
"useOtp": "Preferisco un codice via email",
|
|
24
|
+
"usePassword": "Preferisco accedere con la password",
|
|
25
|
+
"otp": {
|
|
26
|
+
"emailHelp": "Nessuna password: ti inviamo un codice monouso via email.",
|
|
27
|
+
"sendCode": "Inviami un codice di accesso",
|
|
28
|
+
"sendingCode": "Invio del codice...",
|
|
29
|
+
"codeSent": "Abbiamo inviato un codice di 6 cifre a {email}. Scade tra 5 minuti.",
|
|
30
|
+
"codeLabel": "Codice di accesso",
|
|
31
|
+
"codePlaceholder": "123456",
|
|
32
|
+
"verifyCode": "Accedi con il codice",
|
|
33
|
+
"verifyingCode": "Verifica del codice...",
|
|
34
|
+
"resendCode": "Invia di nuovo il codice",
|
|
35
|
+
"changeEmail": "Usa un'altra email"
|
|
36
|
+
}
|
|
23
37
|
},
|
|
24
38
|
"footer": {
|
|
25
39
|
"noAccount": "Non hai un account?",
|
|
@@ -34,7 +48,12 @@
|
|
|
34
48
|
"googleSigningIn": "Reindirizzamento a Google...",
|
|
35
49
|
"googleSignInSuccess": "Accesso con Google effettuato con successo",
|
|
36
50
|
"googleSignInFailed": "Errore con Google",
|
|
37
|
-
"googleSignInError": "Errore con Google: {error}"
|
|
51
|
+
"googleSignInError": "Errore con Google: {error}",
|
|
52
|
+
"otpSending": "Invio del codice di accesso...",
|
|
53
|
+
"otpSent": "Codice inviato. Controlla la tua casella di posta.",
|
|
54
|
+
"otpSendFailed": "Impossibile inviare il codice di accesso",
|
|
55
|
+
"otpVerifying": "Verifica del codice...",
|
|
56
|
+
"otpVerifyFailed": "Impossibile verificare il codice"
|
|
38
57
|
},
|
|
39
58
|
"errors": {
|
|
40
59
|
"invalidCredentials": "Email o password non validi",
|
|
@@ -46,6 +65,10 @@
|
|
|
46
65
|
"serverError": "Errore del server. Per favore riprova piu tardi",
|
|
47
66
|
"invalidEmail": "Email non valida",
|
|
48
67
|
"passwordTooShort": "La password deve contenere almeno 6 caratteri",
|
|
68
|
+
"otpInvalidCode": "Inserisci il codice di 6 cifre ricevuto via email",
|
|
69
|
+
"otpInvalid": "Codice non valido. Controllalo e riprova",
|
|
70
|
+
"otpExpired": "Questo codice è scaduto. Richiedine uno nuovo",
|
|
71
|
+
"otpTooMany": "Troppi tentativi. Richiedi un nuovo codice",
|
|
49
72
|
"google": {
|
|
50
73
|
"invalidCredentials": "Errore di autenticazione con Google",
|
|
51
74
|
"userNotFound": "Nessun account trovato per questo utente Google",
|
|
@@ -248,6 +248,20 @@ declare const _default: {
|
|
|
248
248
|
lastUsed: string;
|
|
249
249
|
loginWithEmail: string;
|
|
250
250
|
backToGoogle: string;
|
|
251
|
+
useOtp: string;
|
|
252
|
+
usePassword: string;
|
|
253
|
+
otp: {
|
|
254
|
+
emailHelp: string;
|
|
255
|
+
sendCode: string;
|
|
256
|
+
sendingCode: string;
|
|
257
|
+
codeSent: string;
|
|
258
|
+
codeLabel: string;
|
|
259
|
+
codePlaceholder: string;
|
|
260
|
+
verifyCode: string;
|
|
261
|
+
verifyingCode: string;
|
|
262
|
+
resendCode: string;
|
|
263
|
+
changeEmail: string;
|
|
264
|
+
};
|
|
251
265
|
};
|
|
252
266
|
footer: {
|
|
253
267
|
noAccount: string;
|
|
@@ -263,6 +277,11 @@ declare const _default: {
|
|
|
263
277
|
googleSignInSuccess: string;
|
|
264
278
|
googleSignInFailed: string;
|
|
265
279
|
googleSignInError: string;
|
|
280
|
+
otpSending: string;
|
|
281
|
+
otpSent: string;
|
|
282
|
+
otpSendFailed: string;
|
|
283
|
+
otpVerifying: string;
|
|
284
|
+
otpVerifyFailed: string;
|
|
266
285
|
};
|
|
267
286
|
errors: {
|
|
268
287
|
invalidCredentials: string;
|
|
@@ -274,6 +293,10 @@ declare const _default: {
|
|
|
274
293
|
serverError: string;
|
|
275
294
|
invalidEmail: string;
|
|
276
295
|
passwordTooShort: string;
|
|
296
|
+
otpInvalidCode: string;
|
|
297
|
+
otpInvalid: string;
|
|
298
|
+
otpExpired: string;
|
|
299
|
+
otpTooMany: string;
|
|
277
300
|
google: {
|
|
278
301
|
invalidCredentials: string;
|
|
279
302
|
userNotFound: string;
|
|
@@ -1131,6 +1154,64 @@ declare const _default: {
|
|
|
1131
1154
|
description: string;
|
|
1132
1155
|
};
|
|
1133
1156
|
};
|
|
1157
|
+
readonly email: {
|
|
1158
|
+
verifyEmail: {
|
|
1159
|
+
subject: string;
|
|
1160
|
+
headerSubtitle: string;
|
|
1161
|
+
title: string;
|
|
1162
|
+
greetingPrefix: string;
|
|
1163
|
+
intro: string;
|
|
1164
|
+
buttonLabel: string;
|
|
1165
|
+
helpHeading: string;
|
|
1166
|
+
helpInstructions: string;
|
|
1167
|
+
copyright: string;
|
|
1168
|
+
footerLine1: string;
|
|
1169
|
+
footerLine2: string;
|
|
1170
|
+
};
|
|
1171
|
+
resetPassword: {
|
|
1172
|
+
subject: string;
|
|
1173
|
+
headerSubtitle: string;
|
|
1174
|
+
title: string;
|
|
1175
|
+
greetingPrefix: string;
|
|
1176
|
+
intro: string;
|
|
1177
|
+
buttonLabel: string;
|
|
1178
|
+
securityNoticeTitle: string;
|
|
1179
|
+
securityNoticeExpiry: string;
|
|
1180
|
+
securityNoticeIgnore: string;
|
|
1181
|
+
defaultExpiresIn: string;
|
|
1182
|
+
helpHeading: string;
|
|
1183
|
+
helpInstructions: string;
|
|
1184
|
+
copyright: string;
|
|
1185
|
+
footerLine1: string;
|
|
1186
|
+
footerLine2: string;
|
|
1187
|
+
};
|
|
1188
|
+
otpVerification: {
|
|
1189
|
+
subject: string;
|
|
1190
|
+
headerSubtitle: string;
|
|
1191
|
+
title: string;
|
|
1192
|
+
intro: string;
|
|
1193
|
+
expiresNotice: string;
|
|
1194
|
+
ignoreNotice: string;
|
|
1195
|
+
copyright: string;
|
|
1196
|
+
footerLine1: string;
|
|
1197
|
+
};
|
|
1198
|
+
teamInvitation: {
|
|
1199
|
+
subject: string;
|
|
1200
|
+
headerSubtitle: string;
|
|
1201
|
+
title: string;
|
|
1202
|
+
bodyIntro: string;
|
|
1203
|
+
bodyAction: string;
|
|
1204
|
+
buttonLabel: string;
|
|
1205
|
+
detailsTitle: string;
|
|
1206
|
+
detailsExpiry: string;
|
|
1207
|
+
detailsCreateAccount: string;
|
|
1208
|
+
helpHeading: string;
|
|
1209
|
+
helpInstructions: string;
|
|
1210
|
+
copyright: string;
|
|
1211
|
+
footerSentTo: string;
|
|
1212
|
+
footerUnexpected: string;
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1134
1215
|
readonly entities: {
|
|
1135
1216
|
actions: {
|
|
1136
1217
|
create: string;
|
|
@@ -1229,6 +1310,8 @@ declare const _default: {
|
|
|
1229
1310
|
features: string;
|
|
1230
1311
|
pricing: string;
|
|
1231
1312
|
support: string;
|
|
1313
|
+
quickCreate: string;
|
|
1314
|
+
quickCreateNew: string;
|
|
1232
1315
|
};
|
|
1233
1316
|
readonly patterns: {
|
|
1234
1317
|
entity: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/it/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/it/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wBAqBU"}
|
|
@@ -6,6 +6,7 @@ import common from "./common.json";
|
|
|
6
6
|
import dashboard from "./dashboard.json";
|
|
7
7
|
import devtools from "./devtools.json";
|
|
8
8
|
import docs from "./docs.json";
|
|
9
|
+
import email from "./email.json";
|
|
9
10
|
import entities from "./entities.json";
|
|
10
11
|
import footer from "./footer.json";
|
|
11
12
|
import home from "./home.json";
|
|
@@ -26,6 +27,7 @@ var it_default = {
|
|
|
26
27
|
dashboard,
|
|
27
28
|
devtools,
|
|
28
29
|
docs,
|
|
30
|
+
email,
|
|
29
31
|
entities,
|
|
30
32
|
footer,
|
|
31
33
|
home,
|
|
@@ -6,6 +6,7 @@ import common from './common.json'
|
|
|
6
6
|
import dashboard from './dashboard.json'
|
|
7
7
|
import devtools from './devtools.json'
|
|
8
8
|
import docs from './docs.json'
|
|
9
|
+
import email from './email.json'
|
|
9
10
|
import entities from './entities.json'
|
|
10
11
|
import footer from './footer.json'
|
|
11
12
|
import home from './home.json'
|
|
@@ -27,6 +28,7 @@ export default {
|
|
|
27
28
|
dashboard,
|
|
28
29
|
devtools,
|
|
29
30
|
docs,
|
|
31
|
+
email,
|
|
30
32
|
entities,
|
|
31
33
|
footer,
|
|
32
34
|
home,
|
|
@@ -19,7 +19,21 @@
|
|
|
19
19
|
"submitHelp": "Pressione Enter ou clique para entrar",
|
|
20
20
|
"lastUsed": "Ultimo Usado",
|
|
21
21
|
"loginWithEmail": "Entrar com Email",
|
|
22
|
-
"backToGoogle": "Voltar para opcoes principais"
|
|
22
|
+
"backToGoogle": "Voltar para opcoes principais",
|
|
23
|
+
"useOtp": "Prefiro um código por email",
|
|
24
|
+
"usePassword": "Prefiro entrar com senha",
|
|
25
|
+
"otp": {
|
|
26
|
+
"emailHelp": "Sem senha: enviamos um código de uso único para o seu email.",
|
|
27
|
+
"sendCode": "Enviar um código de acesso",
|
|
28
|
+
"sendingCode": "Enviando código...",
|
|
29
|
+
"codeSent": "Enviamos um código de 6 dígitos para {email}. Ele expira em 5 minutos.",
|
|
30
|
+
"codeLabel": "Código de acesso",
|
|
31
|
+
"codePlaceholder": "123456",
|
|
32
|
+
"verifyCode": "Entrar com o código",
|
|
33
|
+
"verifyingCode": "Verificando código...",
|
|
34
|
+
"resendCode": "Reenviar código",
|
|
35
|
+
"changeEmail": "Usar outro email"
|
|
36
|
+
}
|
|
23
37
|
},
|
|
24
38
|
"footer": {
|
|
25
39
|
"noAccount": "Nao tem uma conta?",
|
|
@@ -34,7 +48,12 @@
|
|
|
34
48
|
"googleSigningIn": "Redirecionando para Google...",
|
|
35
49
|
"googleSignInSuccess": "Login com Google realizado com sucesso",
|
|
36
50
|
"googleSignInFailed": "Erro com Google",
|
|
37
|
-
"googleSignInError": "Erro com Google: {error}"
|
|
51
|
+
"googleSignInError": "Erro com Google: {error}",
|
|
52
|
+
"otpSending": "Enviando código de acesso...",
|
|
53
|
+
"otpSent": "Código enviado. Verifique sua caixa de entrada.",
|
|
54
|
+
"otpSendFailed": "Não foi possível enviar o código de acesso",
|
|
55
|
+
"otpVerifying": "Verificando código...",
|
|
56
|
+
"otpVerifyFailed": "Não foi possível verificar o código"
|
|
38
57
|
},
|
|
39
58
|
"errors": {
|
|
40
59
|
"invalidCredentials": "Email ou senha invalidos",
|
|
@@ -46,6 +65,10 @@
|
|
|
46
65
|
"serverError": "Erro do servidor. Por favor tente novamente mais tarde",
|
|
47
66
|
"invalidEmail": "Email invalido",
|
|
48
67
|
"passwordTooShort": "A senha deve ter pelo menos 6 caracteres",
|
|
68
|
+
"otpInvalidCode": "Digite o código de 6 dígitos do seu email",
|
|
69
|
+
"otpInvalid": "Código inválido. Confira e tente de novo",
|
|
70
|
+
"otpExpired": "Este código expirou. Peça um novo",
|
|
71
|
+
"otpTooMany": "Muitas tentativas. Peça um novo código",
|
|
49
72
|
"google": {
|
|
50
73
|
"invalidCredentials": "Erro de autenticacao com Google",
|
|
51
74
|
"userNotFound": "Nenhuma conta encontrada para este usuario do Google",
|
|
@@ -248,6 +248,20 @@ declare const _default: {
|
|
|
248
248
|
lastUsed: string;
|
|
249
249
|
loginWithEmail: string;
|
|
250
250
|
backToGoogle: string;
|
|
251
|
+
useOtp: string;
|
|
252
|
+
usePassword: string;
|
|
253
|
+
otp: {
|
|
254
|
+
emailHelp: string;
|
|
255
|
+
sendCode: string;
|
|
256
|
+
sendingCode: string;
|
|
257
|
+
codeSent: string;
|
|
258
|
+
codeLabel: string;
|
|
259
|
+
codePlaceholder: string;
|
|
260
|
+
verifyCode: string;
|
|
261
|
+
verifyingCode: string;
|
|
262
|
+
resendCode: string;
|
|
263
|
+
changeEmail: string;
|
|
264
|
+
};
|
|
251
265
|
};
|
|
252
266
|
footer: {
|
|
253
267
|
noAccount: string;
|
|
@@ -263,6 +277,11 @@ declare const _default: {
|
|
|
263
277
|
googleSignInSuccess: string;
|
|
264
278
|
googleSignInFailed: string;
|
|
265
279
|
googleSignInError: string;
|
|
280
|
+
otpSending: string;
|
|
281
|
+
otpSent: string;
|
|
282
|
+
otpSendFailed: string;
|
|
283
|
+
otpVerifying: string;
|
|
284
|
+
otpVerifyFailed: string;
|
|
266
285
|
};
|
|
267
286
|
errors: {
|
|
268
287
|
invalidCredentials: string;
|
|
@@ -274,6 +293,10 @@ declare const _default: {
|
|
|
274
293
|
serverError: string;
|
|
275
294
|
invalidEmail: string;
|
|
276
295
|
passwordTooShort: string;
|
|
296
|
+
otpInvalidCode: string;
|
|
297
|
+
otpInvalid: string;
|
|
298
|
+
otpExpired: string;
|
|
299
|
+
otpTooMany: string;
|
|
277
300
|
google: {
|
|
278
301
|
invalidCredentials: string;
|
|
279
302
|
userNotFound: string;
|
|
@@ -1131,6 +1154,64 @@ declare const _default: {
|
|
|
1131
1154
|
description: string;
|
|
1132
1155
|
};
|
|
1133
1156
|
};
|
|
1157
|
+
readonly email: {
|
|
1158
|
+
verifyEmail: {
|
|
1159
|
+
subject: string;
|
|
1160
|
+
headerSubtitle: string;
|
|
1161
|
+
title: string;
|
|
1162
|
+
greetingPrefix: string;
|
|
1163
|
+
intro: string;
|
|
1164
|
+
buttonLabel: string;
|
|
1165
|
+
helpHeading: string;
|
|
1166
|
+
helpInstructions: string;
|
|
1167
|
+
copyright: string;
|
|
1168
|
+
footerLine1: string;
|
|
1169
|
+
footerLine2: string;
|
|
1170
|
+
};
|
|
1171
|
+
resetPassword: {
|
|
1172
|
+
subject: string;
|
|
1173
|
+
headerSubtitle: string;
|
|
1174
|
+
title: string;
|
|
1175
|
+
greetingPrefix: string;
|
|
1176
|
+
intro: string;
|
|
1177
|
+
buttonLabel: string;
|
|
1178
|
+
securityNoticeTitle: string;
|
|
1179
|
+
securityNoticeExpiry: string;
|
|
1180
|
+
securityNoticeIgnore: string;
|
|
1181
|
+
defaultExpiresIn: string;
|
|
1182
|
+
helpHeading: string;
|
|
1183
|
+
helpInstructions: string;
|
|
1184
|
+
copyright: string;
|
|
1185
|
+
footerLine1: string;
|
|
1186
|
+
footerLine2: string;
|
|
1187
|
+
};
|
|
1188
|
+
otpVerification: {
|
|
1189
|
+
subject: string;
|
|
1190
|
+
headerSubtitle: string;
|
|
1191
|
+
title: string;
|
|
1192
|
+
intro: string;
|
|
1193
|
+
expiresNotice: string;
|
|
1194
|
+
ignoreNotice: string;
|
|
1195
|
+
copyright: string;
|
|
1196
|
+
footerLine1: string;
|
|
1197
|
+
};
|
|
1198
|
+
teamInvitation: {
|
|
1199
|
+
subject: string;
|
|
1200
|
+
headerSubtitle: string;
|
|
1201
|
+
title: string;
|
|
1202
|
+
bodyIntro: string;
|
|
1203
|
+
bodyAction: string;
|
|
1204
|
+
buttonLabel: string;
|
|
1205
|
+
detailsTitle: string;
|
|
1206
|
+
detailsExpiry: string;
|
|
1207
|
+
detailsCreateAccount: string;
|
|
1208
|
+
helpHeading: string;
|
|
1209
|
+
helpInstructions: string;
|
|
1210
|
+
copyright: string;
|
|
1211
|
+
footerSentTo: string;
|
|
1212
|
+
footerUnexpected: string;
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1134
1215
|
readonly entities: {
|
|
1135
1216
|
actions: {
|
|
1136
1217
|
create: string;
|
|
@@ -1229,6 +1310,8 @@ declare const _default: {
|
|
|
1229
1310
|
features: string;
|
|
1230
1311
|
pricing: string;
|
|
1231
1312
|
support: string;
|
|
1313
|
+
quickCreate: string;
|
|
1314
|
+
quickCreateNew: string;
|
|
1232
1315
|
};
|
|
1233
1316
|
readonly patterns: {
|
|
1234
1317
|
entity: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/pt/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/pt/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ools from "./devtools.json";
|
|
8
8
|
import docs from "./docs.json";
|
|
9
|
+
import email from "./email.json";
|
|
9
10
|
import entities from "./entities.json";
|
|
10
11
|
import footer from "./footer.json";
|
|
11
12
|
import home from "./home.json";
|
|
@@ -26,6 +27,7 @@ var pt_default = {
|
|
|
26
27
|
dashboard,
|
|
27
28
|
devtools,
|
|
28
29
|
docs,
|
|
30
|
+
email,
|
|
29
31
|
entities,
|
|
30
32
|
footer,
|
|
31
33
|
home,
|
|
@@ -6,6 +6,7 @@ import common from './common.json'
|
|
|
6
6
|
import dashboard from './dashboard.json'
|
|
7
7
|
import devtools from './devtools.json'
|
|
8
8
|
import docs from './docs.json'
|
|
9
|
+
import email from './email.json'
|
|
9
10
|
import entities from './entities.json'
|
|
10
11
|
import footer from './footer.json'
|
|
11
12
|
import home from './home.json'
|
|
@@ -27,6 +28,7 @@ export default {
|
|
|
27
28
|
dashboard,
|
|
28
29
|
devtools,
|
|
29
30
|
docs,
|
|
31
|
+
email,
|
|
30
32
|
entities,
|
|
31
33
|
footer,
|
|
32
34
|
home,
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
CREATE TABLE IF NOT EXISTS "api_audit_log" (
|
|
5
5
|
id TEXT PRIMARY KEY DEFAULT gen_random_uuid()::text,
|
|
6
|
-
|
|
6
|
+
-- NULL for session-authenticated requests (see 025_api_audit_log_nullable_api_key.sql)
|
|
7
|
+
"apiKeyId" TEXT REFERENCES public."api_key"(id) ON DELETE CASCADE,
|
|
7
8
|
"userId" TEXT NOT NULL REFERENCES public."users"(id) ON DELETE CASCADE,
|
|
8
9
|
endpoint TEXT NOT NULL,
|
|
9
10
|
method TEXT NOT NULL,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- Migration: 025_api_audit_log_nullable_api_key.sql
|
|
2
|
+
-- Description: Allow api_audit_log rows without an API key (#105)
|
|
3
|
+
--
|
|
4
|
+
-- The generic entity routes (/api/v1/[entity], /api/v1/[entity]/[id]) now
|
|
5
|
+
-- write an audit row for every authenticated request, whether it was
|
|
6
|
+
-- authenticated with an API key or with a browser session. Session requests
|
|
7
|
+
-- have no key, so "apiKeyId" must accept NULL. The foreign key stays as-is:
|
|
8
|
+
-- a FK only constrains non-null values.
|
|
9
|
+
--
|
|
10
|
+
-- Idempotent: DROP NOT NULL on an already-nullable column is a no-op.
|
|
11
|
+
|
|
12
|
+
ALTER TABLE "api_audit_log" ALTER COLUMN "apiKeyId" DROP NOT NULL;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
-- Migration: 026_login_events.sql
|
|
2
|
+
-- Description: login_events — per-user device/login history for built-in
|
|
3
|
+
-- security email notifications (new-device login alerts).
|
|
4
|
+
-- Date: 2026-09-01
|
|
5
|
+
-- Issue: #75
|
|
6
|
+
--
|
|
7
|
+
-- Why 026 (and not 022 as the issue text proposed, nor 025):
|
|
8
|
+
-- The issue was written when the migration sequence ended earlier. By the
|
|
9
|
+
-- time this branch was authored the sequence already went through
|
|
10
|
+
-- 024_teams_soft_delete.sql (022 and 023 are taken by rls_runtime_roles and
|
|
11
|
+
-- the invitations index), so this migration was originally 025. It was
|
|
12
|
+
-- renumbered to 026 when merging to main, because 025 had in the meantime
|
|
13
|
+
-- been taken by 025_api_audit_log_nullable_api_key.sql (issue #105).
|
|
14
|
+
--
|
|
15
|
+
-- What this backs:
|
|
16
|
+
-- The security-notifications dispatcher records one row per successful sign-in
|
|
17
|
+
-- with a device fingerprint = sha256(normalizedUA | ip/24). A sign-in whose
|
|
18
|
+
-- (userId, deviceFingerprint) pair has never been seen is flagged isNew=true
|
|
19
|
+
-- and triggers a "new device" email via the auth:security-notification
|
|
20
|
+
-- scheduled action. Known fingerprints are still logged (isNew=false) but send
|
|
21
|
+
-- no email. The table is also the substrate for a future login-history UI
|
|
22
|
+
-- (out of scope here — see issue #75 "Out of scope").
|
|
23
|
+
--
|
|
24
|
+
-- Append-only: rows are never updated, so there is no "updatedAt"/set_updated_at
|
|
25
|
+
-- trigger (unlike mutable entity tables). city/country are nullable for a future
|
|
26
|
+
-- geolocation enhancement (also out of scope).
|
|
27
|
+
|
|
28
|
+
-- ============================================
|
|
29
|
+
-- TABLE
|
|
30
|
+
-- ============================================
|
|
31
|
+
DROP TABLE IF EXISTS public."login_events" CASCADE;
|
|
32
|
+
|
|
33
|
+
CREATE TABLE IF NOT EXISTS public."login_events" (
|
|
34
|
+
-- Primary Key (TEXT not UUID — Better Auth convention)
|
|
35
|
+
id TEXT PRIMARY KEY DEFAULT gen_random_uuid()::text,
|
|
36
|
+
|
|
37
|
+
-- Relational Fields
|
|
38
|
+
"userId" TEXT NOT NULL REFERENCES public."users"(id) ON DELETE CASCADE,
|
|
39
|
+
|
|
40
|
+
-- Entity-specific fields
|
|
41
|
+
"ipAddress" TEXT,
|
|
42
|
+
"userAgent" TEXT,
|
|
43
|
+
"deviceFingerprint" TEXT NOT NULL,
|
|
44
|
+
city TEXT,
|
|
45
|
+
country TEXT,
|
|
46
|
+
"isNew" BOOLEAN NOT NULL DEFAULT false,
|
|
47
|
+
|
|
48
|
+
-- System fields (append-only: created only, never updated)
|
|
49
|
+
"createdAt" TIMESTAMPTZ NOT NULL DEFAULT now()
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
COMMENT ON TABLE public."login_events" IS 'Per-user login/device history backing built-in new-device security email notifications (issue #75).';
|
|
53
|
+
COMMENT ON COLUMN public."login_events"."userId" IS 'Owner of the login event.';
|
|
54
|
+
COMMENT ON COLUMN public."login_events"."ipAddress" IS 'Best-effort client IP captured at sign-in (may be a proxy address).';
|
|
55
|
+
COMMENT ON COLUMN public."login_events"."userAgent" IS 'Raw User-Agent header captured at sign-in.';
|
|
56
|
+
COMMENT ON COLUMN public."login_events"."deviceFingerprint" IS 'sha256(normalizedUA | ip/24). Stable across patch-version UA churn and within a /24 network so routine re-logins from the same device do not re-alert.';
|
|
57
|
+
COMMENT ON COLUMN public."login_events".city IS 'Reserved for future geolocation enrichment (nullable, unused today).';
|
|
58
|
+
COMMENT ON COLUMN public."login_events".country IS 'Reserved for future geolocation enrichment (nullable, unused today).';
|
|
59
|
+
COMMENT ON COLUMN public."login_events"."isNew" IS 'True when this (userId, deviceFingerprint) pair had not been seen before this row → a new-device email was queued.';
|
|
60
|
+
|
|
61
|
+
-- ============================================
|
|
62
|
+
-- INDEXES
|
|
63
|
+
-- ============================================
|
|
64
|
+
-- Most-recent-first history lookups per user (login-history UI, TTL checks).
|
|
65
|
+
CREATE INDEX IF NOT EXISTS idx_login_events_user_created
|
|
66
|
+
ON public."login_events" ("userId", "createdAt" DESC);
|
|
67
|
+
|
|
68
|
+
-- "Have we seen this fingerprint for this user?" — the new-device decision.
|
|
69
|
+
CREATE INDEX IF NOT EXISTS idx_login_events_user_fingerprint
|
|
70
|
+
ON public."login_events" ("userId", "deviceFingerprint");
|
|
71
|
+
|
|
72
|
+
-- ============================================
|
|
73
|
+
-- RLS
|
|
74
|
+
-- ============================================
|
|
75
|
+
-- A user may read ONLY their own login events; superadmin/developer bypass via
|
|
76
|
+
-- can_bypass_rls() (defined in 001). Writes are service-only: the dispatcher
|
|
77
|
+
-- inserts with no user GUC (service/bypass pool), matching how session/account
|
|
78
|
+
-- rows are written in 002. Mirrors the "self read + service write" pattern.
|
|
79
|
+
ALTER TABLE public."login_events" ENABLE ROW LEVEL SECURITY;
|
|
80
|
+
|
|
81
|
+
DROP POLICY IF EXISTS "Login events self read" ON public."login_events";
|
|
82
|
+
DROP POLICY IF EXISTS "Login events service write" ON public."login_events";
|
|
83
|
+
|
|
84
|
+
CREATE POLICY "Login events self read" ON public."login_events"
|
|
85
|
+
FOR SELECT TO authenticated
|
|
86
|
+
USING (public.can_bypass_rls() OR "userId" = public.get_auth_user_id());
|
|
87
|
+
|
|
88
|
+
CREATE POLICY "Login events service write" ON public."login_events"
|
|
89
|
+
FOR ALL TO authenticated
|
|
90
|
+
USING (public.can_bypass_rls())
|
|
91
|
+
WITH CHECK (public.can_bypass_rls());
|