The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: feature toggle tests (#38282)
Chris Chinchilla6821c07811fe
diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsxindex f6d2be258b8..85f11423335 100644--- a/apps/docs/app/page.tsx+++ b/apps/docs/app/page.tsx@@ -3,6 +3,7 @@ import Link from 'next/link'import { cn, IconBackground, TextLink } from 'ui'import { IconPanel } from 'ui-patterns/IconPanel'+import { isFeatureEnabled } from 'common'import MenuIconPicker from '~/components/Navigation/NavigationMenu/MenuIconPicker'import { MIGRATION_PAGES } from '~/components/Navigation/NavigationMenu/NavigationMenu.constants'import { GlassPanelWithIconPicker } from '~/features/ui/GlassPanelWithIconPicker'@@ -10,6 +11,14 @@ import { IconPanelWithIconPicker } from '~/features/ui/IconPanelWithIconPicker'import HomeLayout from '~/layouts/HomeLayout'import { BASE_PATH } from '~/lib/constants'+const { sdkCsharp, sdkDart, sdkKotlin, sdkPython, sdkSwift } = isFeatureEnabled([+ 'sdk:csharp',+ 'sdk:dart',+ 'sdk:kotlin',+ 'sdk:python',+ 'sdk:swift',+])+const generateMetadata = async (_, parent: ResolvingMetadata): Promise<Metadata> => {const parentAlternates = (await parent).alternates@@ -119,31 +128,37 @@ const clientLibraries = [title: 'Javascript',icon: 'reference-javascript',href: '/reference/javascript/introduction',+ enabled: true,},{title: 'Flutter',icon: 'reference-dart',href: '/reference/dart/introduction',+ enabled: sdkDart,},{title: 'Python',icon: 'reference-python',href: '/reference/python/introduction',+ enabled: sdkPython,},{title: 'C#',icon: 'reference-csharp',href: '/reference/csharp/introduction',+ enabled: sdkCsharp,},{title: 'Swift',icon: 'reference-swift',href: '/reference/swift/introduction',+ enabled: sdkSwift,},{title: 'Kotlin',icon: 'reference-kotlin',href: '/reference/kotlin/introduction',+ enabled: sdkKotlin,},]@@ -224,18 +239,21 @@ const HomePage = () => (</div><div className="grid col-span-8 grid-cols-12 gap-6 not-prose">- {clientLibraries.map((library) => {- return (- <Link- href={library.href}- key={library.title}- passHref- className="col-span-6 md:col-span-4"- >- <IconPanelWithIconPicker {...library} />- </Link>- )- })}+ {clientLibraries+ .filter((library) => library.enabled)++ .map((library) => {+ return (+ <Link+ href={library.href}+ key={library.title}+ passHref+ className="col-span-6 md:col-span-4"+ >+ <IconPanelWithIconPicker {...library} />+ </Link>+ )+ })}</div></div>diff --git a/apps/docs/components/HomePageCover.tsx b/apps/docs/components/HomePageCover.tsxindex 25bd3b32a48..d89453b466b 100644--- a/apps/docs/components/HomePageCover.tsx+++ b/apps/docs/components/HomePageCover.tsx@@ -3,12 +3,17 @@import { ChevronRight, Play, Sparkles } from 'lucide-react'import Link from 'next/link'-import { useBreakpoint } from 'common'+import { isFeatureEnabled, useBreakpoint } from 'common'import { cn, IconBackground } from 'ui'import { IconPanel } from 'ui-patterns/IconPanel'import DocsCoverLogo from './DocsCoverLogo'+const { sdkDart: sdkDartEnabled, sdkKotlin: sdkKotlinEnabled } = isFeatureEnabled([+ 'sdk:dart',+ 'sdk:kotlin',+])+function AiPrompt({ className }: { className?: string }) {return (<Link@@ -52,11 +57,13 @@ const HomePageCover = (props) => {tooltip: 'Flutter',icon: '/docs/img/icons/flutter-icon',href: '/guides/getting-started/quickstarts/flutter',+ enabled: sdkDartEnabled,},{tooltip: 'Android Kotlin',icon: '/docs/img/icons/kotlin-icon',href: '/guides/getting-started/quickstarts/kotlin',+ enabled: sdkKotlinEnabled,},{tooltip: 'SvelteKit',@@ -109,16 +116,18 @@ const HomePageCover = (props) => {</div><div className="shrink-0"><div className="flex flex-wrap md:grid md:grid-cols-5 gap-2 sm:gap-3">- {frameworks.map((framework, i) => (- <Link key={i} href={framework.href} passHref className="no-underline">- <IconPanel- iconSize={iconSize}- hideArrow- tooltip={framework.tooltip}- icon={framework.icon}- />- </Link>- ))}+ {frameworks+ .filter((framework) => framework.enabled !== false)+ .map((framework, i) => (+ <Link key={i} href={framework.href} passHref className="no-underline">+ <IconPanel+ iconSize={iconSize}+ hideArrow+ tooltip={framework.tooltip}+ icon={framework.icon}+ />+ </Link>+ ))}</div><AiPrompt className="mt-6" /></div>@@ -135,7 +144,7 @@ const HomePageCover = (props) => {<h1 className="m-0 mb-3 text-2xl sm:text-3xl text-foreground">{props.title}</h1><p className="m-0 text-foreground-light">Learn how to get up and running with Supabase through tutorials, APIs and platform- resources.+ resources. Differences TBD.</p></div></div>diff --git a/apps/docs/components/Navigation/Navigation.types.ts b/apps/docs/components/Navigation/Navigation.types.tsindex ce2c2dec841..7918a38e68e 100644--- a/apps/docs/components/Navigation/Navigation.types.ts+++ b/apps/docs/components/Navigation/Navigation.types.ts@@ -11,6 +11,7 @@ export interface NavMenuSection {name: stringurl?: `/${string}` | `https://${string}`items: Partial<NavMenuSection>[]+ enabled?: boolean}type MenuItem = {@@ -20,6 +21,7 @@ type MenuItem = {level?: stringhasLightIcon?: booleancommunity?: boolean+ enabled?: boolean}export type DropdownMenuItem = MenuItem & {diff --git a/apps/docs/components/Navigation/NavigationMenu/GlobalNavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/GlobalNavigationMenu.tsxindex ce620239cf0..8b57fd7c29e 100644--- a/apps/docs/components/Navigation/NavigationMenu/GlobalNavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/GlobalNavigationMenu.tsx@@ -22,7 +22,7 @@ import { GLOBAL_MENU_ITEMS } from './NavigationMenu.constants'/*** Get TopNav active label based on current pathname*/-export const useActiveMenuLabel = (GLOBAL_MENU_ITEMS) => {+export const useActiveMenuLabel = (menu: typeof GLOBAL_MENU_ITEMS) => {const pathname = usePathname()const [activeLabel, setActiveLabel] = useState('')@@ -32,8 +32,10 @@ export const useActiveMenuLabel = (GLOBAL_MENU_ITEMS) => {return setActiveLabel('Home')}- for (let index = 0; index < GLOBAL_MENU_ITEMS.length; index++) {- const section = GLOBAL_MENU_ITEMS[index]+ for (let index = 0; index < menu.length; index++) {+ const section = menu[index]+ if (section[0].enabled === false) continue+// check if first level menu items match beginning of urlif (section[0].href?.startsWith(pathname)) {return setActiveLabel(section[0].label)@@ -41,13 +43,15 @@ export const useActiveMenuLabel = (GLOBAL_MENU_ITEMS) => {// check if second level menu items match beginning of urlif (section[0].menuItems) {section[0].menuItems.map((menuItemGroup) =>- menuItemGroup.map(- (menuItem) => menuItem.href?.startsWith(pathname) && setActiveLabel(section[0].label)- )+ menuItemGroup+ .filter((menuItem) => menuItem.enabled !== false)+ .map(+ (menuItem) => menuItem.href?.startsWith(pathname) && setActiveLabel(section[0].label)+ ))}}- }, [pathname])+ }, [pathname, menu])return activeLabel}@@ -67,65 +71,14 @@ const GlobalNavigationMenu: FC = () => {viewportClassName="mt-0 max-w-screen overflow-hidden border-0 rounded-none mt-1.5 rounded-md !border-x"><NavigationMenuList className="px-6 space-x-2 h-[var(--header-height)]">- {GLOBAL_MENU_ITEMS.map((section, sectionIdx) =>- section[0].menuItems ? (- <NavigationMenuItem- key={`desktop-docs-menu-section-${section[0].label}-${sectionIdx}`}- className="text-sm relative h-full"- >- <NavigationMenuTrigger- className={cn(- navigationMenuTriggerStyle(),- triggerClassName,- activeLabel === section[0].label && 'text-foreground border-foreground'- )}+ {GLOBAL_MENU_ITEMS.filter((section) => section[0].enabled !== false).map(+ (section, sectionIdx) =>+ section[0].menuItems ? (+ <NavigationMenuItem+ key={`desktop-docs-menu-section-${section[0].label}-${sectionIdx}`}+ className="text-sm relative h-full">- {section[0].label === 'Home' ? (- <MenuIconPicker icon={section[0].icon || ''} />- ) : (- section[0].label- )}- </NavigationMenuTrigger>- <NavigationMenuContent className="!top-[calc(100%+4px)] min-w-[14rem] max-h-[calc(100vh-4rem)] border-y w-screen md:w-64 overflow-hidden overflow-y-auto rounded-none md:rounded-md md:border border-overlay bg-overlay text-foreground-light shadow-md !duration-0">- <div className="p-3 md:p-1">- {section[0].menuItems?.map((menuItem, menuItemIndex) => (- <Fragment key={`desktop-docs-menu-section-${menuItemIndex}-${menuItemIndex}`}>- {menuItemIndex !== 0 && <MenubarSeparator className="bg-border-muted" />}- {menuItem.map((item, itemIdx) =>- !item.href ? (- <div- key={`desktop-docs-menu-section-label-${item.label}-${itemIdx}`}- className="font-mono tracking-wider flex items-center text-foreground-muted text-xs uppercase rounded-md p-2 leading-none"- >- {item.label}- </div>- ) : (- <NavigationMenuLink- key={`desktop-docs-menu-section-label-${item.label}-${itemIdx}`}- asChild- >- <MenuItem- href={item.href}- title={item.label}- community={item.community}- icon={item.icon}- />- </NavigationMenuLink>- )- )}- </Fragment>- ))}- </div>- </NavigationMenuContent>- </NavigationMenuItem>- ) : (- <NavigationMenuItem- key={`desktop-docs-menu-section-${section[0].label}-${sectionIdx}`}- className="text-sm relative h-full"- >- <NavigationMenuLink asChild>- <Link- href={section[0].href || '#'}+ <NavigationMenuTriggerclassName={cn(navigationMenuTriggerStyle(),triggerClassName,@@ -137,10 +90,66 @@ const GlobalNavigationMenu: FC = () => {) : (section[0].label)}- </Link>- </NavigationMenuLink>- </NavigationMenuItem>- )+ </NavigationMenuTrigger>+ <NavigationMenuContent className="!top-[calc(100%+4px)] min-w-[14rem] max-h-[calc(100vh-4rem)] border-y w-screen md:w-64 overflow-hidden overflow-y-auto rounded-none md:rounded-md md:border border-overlay bg-overlay text-foreground-light shadow-md !duration-0">+ <div className="p-3 md:p-1">+ {section[0].menuItems?.map((menuItem, menuItemIndex) => (+ <Fragment+ key={`desktop-docs-menu-section-${menuItemIndex}-${menuItemIndex}`}+ >+ {menuItemIndex !== 0 && <MenubarSeparator className="bg-border-muted" />}+ {menuItem+ .filter((item) => item.enabled !== false)+ .map((item, itemIdx) =>+ !item.href ? (+ <div+ key={`desktop-docs-menu-section-label-${item.label}-${itemIdx}`}+ className="font-mono tracking-wider flex items-center text-foreground-muted text-xs uppercase rounded-md p-2 leading-none"+ >+ {item.label}+ </div>+ ) : (+ <NavigationMenuLink+ key={`desktop-docs-menu-section-label-${item.label}-${itemIdx}`}+ asChild+ >+ <MenuItem+ href={item.href}+ title={item.label}+ community={item.community}+ icon={item.icon}+ />+ </NavigationMenuLink>+ )+ )}+ </Fragment>+ ))}+ </div>+ </NavigationMenuContent>+ </NavigationMenuItem>+ ) : (+ <NavigationMenuItem+ key={`desktop-docs-menu-section-${section[0].label}-${sectionIdx}`}+ className="text-sm relative h-full"+ >+ <NavigationMenuLink asChild>+ <Link+ href={section[0].href || '#'}+ className={cn(+ navigationMenuTriggerStyle(),+ triggerClassName,+ activeLabel === section[0].label && 'text-foreground border-foreground'+ )}+ >+ {section[0].label === 'Home' ? (+ <MenuIconPicker icon={section[0].icon || ''} />+ ) : (+ section[0].label+ )}+ </Link>+ </NavigationMenuLink>+ </NavigationMenuItem>+ ))}</NavigationMenuList></NavigationMenu>diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 87102c911f3..ea41b02c326 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -1,9 +1,32 @@import type { ComponentProps } from 'react'+import { isFeatureEnabled } from 'common'import type { IconPanel } from 'ui-patterns/IconPanel'-import type { GlobalMenuItems, NavMenuConstant, NavMenuSection } from '../Navigation.types'+const {+ authenticationShowProviders: allAuthProvidersEnabled,+ billingAll: billingEnabled,+ 'docsSelf-hosting': selfHostingEnabled,+ sdkCsharp: sdkCsharpEnabled,+ sdkDart: sdkDartEnabled,+ sdkKotlin: sdkKotlinEnabled,+ sdkPython: sdkPythonEnabled,+ sdkSwift: sdkSwiftEnabled,+} = isFeatureEnabled([+ 'authentication:show_providers',+ 'billing:all',+ 'docs:self-hosting',+ 'sdk:csharp',+ 'sdk:dart',+ 'sdk:kotlin',+ 'sdk:python',+ 'sdk:swift',+])++const jsOnly =+ !sdkCsharpEnabled && !sdkDartEnabled && !sdkKotlinEnabled && !sdkPythonEnabled && !sdkSwiftEnabled+export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [[{@@ -21,31 +44,31 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [{label: 'Database',icon: 'database',- href: '/guides/database/overview',+ href: '/guides/database/overview' as `/${string}`,level: 'database',},{label: 'Auth',icon: 'auth',- href: '/guides/auth',+ href: '/guides/auth' as `/${string}`,level: 'auth',},{label: 'Storage',icon: 'storage',- href: '/guides/storage',+ href: '/guides/storage' as `/${string}`,level: 'storage',},{label: 'Edge Functions',icon: 'edge-functions',- href: '/guides/functions',+ href: '/guides/functions' as `/${string}`,level: 'functions',},{label: 'Realtime',icon: 'realtime',- href: '/guides/realtime',+ href: '/guides/realtime' as `/${string}`,level: 'realtime',},],@@ -54,19 +77,19 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [{label: 'AI & Vectors',icon: 'ai',- href: '/guides/ai',+ href: '/guides/ai' as `/${string}`,level: 'ai',},{label: 'Cron',icon: 'cron',- href: '/guides/cron',+ href: '/guides/cron' as `/${string}`,level: 'cron',},{label: 'Queues',icon: 'queues',- href: '/guides/queues',+ href: '/guides/queues' as `/${string}`,level: 'queues',},],@@ -81,26 +104,27 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [{label: 'Local Development & CLI',icon: 'dev-cli',- href: '/guides/local-development',+ href: '/guides/local-development' as `/${string}`,level: 'local_development',},{label: 'Deployment',icon: 'deployment',- href: '/guides/deployment',+ href: '/guides/deployment' as `/${string}`,level: 'deployment',},{label: 'Self-Hosting',icon: 'self-hosting',- href: '/guides/self-hosting',+ href: '/guides/self-hosting' as `/${string}`,level: 'self_hosting',+ enabled: selfHostingEnabled,},{label: 'Integrations',icon: 'integrations',hasLightIcon: true,- href: '/guides/integrations',+ href: '/guides/integrations' as `/${string}`,level: 'integrations',},],@@ -115,25 +139,26 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [{label: 'Platform Management',icon: 'platform',- href: '/guides/platform',+ href: '/guides/platform' as `/${string}`,level: 'platform',},{label: 'Security & Compliance',icon: 'security',- href: '/guides/security',+ href: '/guides/security' as `/${string}`,level: 'security',},{label: 'Telemetry',icon: 'telemetry',- href: '/guides/telemetry',+ href: '/guides/telemetry' as `/${string}`,level: 'telemetry',},{label: 'Troubleshooting',icon: 'troubleshooting',- href: '/guides/troubleshooting',+ href: '/guides/troubleshooting' as `/${string}`,+ level: 'troubleshooting',},],],@@ -150,53 +175,58 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [{label: 'JavaScript',icon: 'reference-javascript',- href: '/reference/javascript',+ href: '/reference/javascript' as `/${string}`,level: 'reference_javascript',},{label: 'Flutter',icon: 'reference-dart',- href: '/reference/dart',+ href: '/reference/dart' as `/${string}`,level: 'reference_dart',+ enabled: sdkDartEnabled,},{label: 'Swift',icon: 'reference-swift',- href: '/reference/swift',+ href: '/reference/swift' as `/${string}`,level: 'reference_swift',+ enabled: sdkSwiftEnabled,},{label: 'Python',icon: 'reference-python',- href: '/reference/python',+ href: '/reference/python' as `/${string}`,level: 'reference_python',+ enabled: sdkPythonEnabled,},{label: 'C#',icon: 'reference-csharp',- href: '/reference/csharp',+ href: '/reference/csharp' as `/${string}`,level: 'reference_csharp',community: true,+ enabled: sdkCsharpEnabled,},{label: 'Kotlin',icon: 'reference-kotlin',- href: '/reference/kotlin',+ href: '/reference/kotlin' as `/${string}`,level: 'reference_kotlin',community: true,+ enabled: sdkKotlinEnabled,},],[{label: 'CLI Commands',icon: 'reference-cli',- href: '/reference/cli/introduction',+ href: '/reference/cli/introduction' as `/${string}`,level: 'reference_javascript',},{label: 'Management API',icon: 'reference-api',- href: '/reference/api/introduction',+ href: '/reference/api/introduction' as `/${string}`,level: 'reference_javascript',},],@@ -205,13 +235,13 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [{label: 'REST',icon: 'rest',- href: '/guides/api',+ href: '/guides/api' as `/${string}`,level: 'api',},{label: 'GraphQL',icon: 'graphql',- href: '/guides/graphql',+ href: '/guides/graphql' as `/${string}`,level: 'graphql',},],@@ -226,14 +256,14 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [{label: 'Glossary',icon: 'resources',- href: '/guides/resources/glossary',+ href: '/guides/resources/glossary' as `/${string}`,level: 'resources',},{label: 'Changelog',icon: 'changelog',hasLightIcon: true,- href: 'https://supabase.com/changelog',+ href: 'https://supabase.com/changelog' as `/${string}`,level: 'changelog',},{@@ -267,28 +297,40 @@ export const gettingstarted: NavMenuConstant = {{ name: 'Nuxt', url: '/guides/getting-started/quickstarts/nuxtjs' },{ name: 'Vue', url: '/guides/getting-started/quickstarts/vue' },{ name: 'Hono', url: '/guides/getting-started/quickstarts/hono' },- { name: 'Flutter', url: '/guides/getting-started/quickstarts/flutter' },- { name: 'iOS SwiftUI', url: '/guides/getting-started/quickstarts/ios-swiftui' },+ {+ name: 'Flutter',+ url: '/guides/getting-started/quickstarts/flutter',+ enabled: sdkDartEnabled,+ },+ {+ name: 'iOS SwiftUI',+ url: '/guides/getting-started/quickstarts/ios-swiftui',+ enabled: sdkSwiftEnabled,+ },{name: 'Android Kotlin',- url: '/guides/getting-started/quickstarts/kotlin',+ url: '/guides/getting-started/quickstarts/kotlin' as `/${string}`,+ enabled: sdkKotlinEnabled,},{name: 'SvelteKit',- url: '/guides/getting-started/quickstarts/sveltekit',+ url: '/guides/getting-started/quickstarts/sveltekit' as `/${string}`,},{name: 'Laravel PHP',- url: '/guides/getting-started/quickstarts/laravel',+ url: '/guides/getting-started/quickstarts/laravel' as `/${string}`,+ enabled: !jsOnly,},{name: 'Ruby on Rails',- url: '/guides/getting-started/quickstarts/ruby-on-rails',+ url: '/guides/getting-started/quickstarts/ruby-on-rails' as `/${string}`,+ enabled: !jsOnly,},+{ name: 'SolidJS', url: '/guides/getting-started/quickstarts/solidjs' },{name: 'RedwoodJS',- url: '/guides/getting-started/quickstarts/redwoodjs',+ url: '/guides/getting-started/quickstarts/redwoodjs' as `/${string}`,},{ name: 'refine', url: '/guides/getting-started/quickstarts/refine' },],@@ -298,43 +340,43 @@ export const gettingstarted: NavMenuConstant = {items: [{name: 'Next.js',- url: '/guides/getting-started/tutorials/with-nextjs',+ url: '/guides/getting-started/tutorials/with-nextjs' as `/${string}`,},{name: 'React',- url: '/guides/getting-started/tutorials/with-react',+ url: '/guides/getting-started/tutorials/with-react' as `/${string}`,},{name: 'Vue 3',- url: '/guides/getting-started/tutorials/with-vue-3',+ url: '/guides/getting-started/tutorials/with-vue-3' as `/${string}`,},{name: 'Nuxt 3',- url: '/guides/getting-started/tutorials/with-nuxt-3',+ url: '/guides/getting-started/tutorials/with-nuxt-3' as `/${string}`,},{name: 'Angular',- url: '/guides/getting-started/tutorials/with-angular',+ url: '/guides/getting-started/tutorials/with-angular' as `/${string}`,},{name: 'RedwoodJS',- url: '/guides/getting-started/tutorials/with-redwoodjs',+ url: '/guides/getting-started/tutorials/with-redwoodjs' as `/${string}`,},{name: 'SolidJS',- url: '/guides/getting-started/tutorials/with-solidjs',+ url: '/guides/getting-started/tutorials/with-solidjs' as `/${string}`,},{name: 'Svelte',- url: '/guides/getting-started/tutorials/with-svelte',+ url: '/guides/getting-started/tutorials/with-svelte' as `/${string}`,},{name: 'SvelteKit',- url: '/guides/getting-started/tutorials/with-sveltekit',+ url: '/guides/getting-started/tutorials/with-sveltekit' as `/${string}`,},{name: 'refine',- url: '/guides/getting-started/tutorials/with-refine',+ url: '/guides/getting-started/tutorials/with-refine' as `/${string}`,},],},@@ -343,31 +385,36 @@ export const gettingstarted: NavMenuConstant = {items: [{name: 'Flutter',- url: '/guides/getting-started/tutorials/with-flutter',+ url: '/guides/getting-started/tutorials/with-flutter' as `/${string}`,+ enabled: sdkDartEnabled,},+{name: 'Expo React Native',- url: '/guides/getting-started/tutorials/with-expo-react-native',+ url: '/guides/getting-started/tutorials/with-expo-react-native' as `/${string}`,},{name: 'Android Kotlin',- url: '/guides/getting-started/tutorials/with-kotlin',+ url: '/guides/getting-started/tutorials/with-kotlin' as `/${string}`,+ enabled: sdkKotlinEnabled,},+{name: 'Ionic React',- url: '/guides/getting-started/tutorials/with-ionic-react',+ url: '/guides/getting-started/tutorials/with-ionic-react' as `/${string}`,},{name: 'Ionic Vue',- url: '/guides/getting-started/tutorials/with-ionic-vue',+ url: '/guides/getting-started/tutorials/with-ionic-vue' as `/${string}`,},{name: 'Ionic Angular',- url: '/guides/getting-started/tutorials/with-ionic-angular',+ url: '/guides/getting-started/tutorials/with-ionic-angular' as `/${string}`,},{name: 'Swift',- url: '/guides/getting-started/tutorials/with-swift',+ url: '/guides/getting-started/tutorials/with-swift' as `/${string}`,+ enabled: sdkSwiftEnabled,},],},@@ -377,11 +424,11 @@ export const gettingstarted: NavMenuConstant = {items: [{name: 'Prompts',- url: '/guides/getting-started/ai-prompts',+ url: '/guides/getting-started/ai-prompts' as `/${string}`,},{name: 'Model context protocol (MCP)',- url: '/guides/getting-started/mcp',+ url: '/guides/getting-started/mcp' as `/${string}`,},],},@@ -561,12 +608,12 @@ export const auth = {items: [{name: 'Next.js',- url: '/guides/auth/quickstarts/nextjs',+ url: '/guides/auth/quickstarts/nextjs' as `/${string}`,},{ name: 'React', url: '/guides/auth/quickstarts/react', items: [] },{name: 'React Native',- url: '/guides/auth/quickstarts/react-native',+ url: '/guides/auth/quickstarts/react-native' as `/${string}`,},],},@@ -596,46 +643,68 @@ export const auth = {{ name: 'Next.js guide', url: '/guides/auth/server-side/nextjs' },{name: 'SvelteKit guide',- url: '/guides/auth/server-side/sveltekit',+ url: '/guides/auth/server-side/sveltekit' as `/${string}`,},{ name: 'Creating a client', url: '/guides/auth/server-side/creating-a-client' },{name: 'Migrating from Auth Helpers',- url: '/guides/auth/server-side/migrating-to-ssr-from-auth-helpers',+ url: '/guides/auth/server-side/migrating-to-ssr-from-auth-helpers' as `/${string}`,},{name: 'Advanced guide',- url: '/guides/auth/server-side/advanced-guide',+ url: '/guides/auth/server-side/advanced-guide' as `/${string}`,},],},- { name: 'Password-based', url: '/guides/auth/passwords' },- { name: 'Email (Magic Link or OTP)', url: '/guides/auth/auth-email-passwordless' },+ {+ name: 'Password-based',+ url: '/guides/auth/passwords',+ enabled: allAuthProvidersEnabled,+ },+ {+ name: 'Email (Magic Link or OTP)',+ url: '/guides/auth/auth-email-passwordless',+ enabled: allAuthProvidersEnabled,+ },{name: 'Phone Login',- url: '/guides/auth/phone-login',+ url: '/guides/auth/phone-login' as `/${string}`,+ enabled: allAuthProvidersEnabled,},+{name: 'Social Login (OAuth)',url: '/guides/auth/social-login',items: [...SocialLoginItems],+ enabled: allAuthProvidersEnabled,},+{name: 'Enterprise SSO',url: '/guides/auth/enterprise-sso',+ enabled: allAuthProvidersEnabled,items: [{name: 'SAML 2.0',- url: '/guides/auth/enterprise-sso/auth-sso-saml',+ url: '/guides/auth/enterprise-sso/auth-sso-saml' as `/${string}`,},],},- { name: 'Anonymous Sign-Ins', url: '/guides/auth/auth-anonymous' },- { name: 'Web3 (Sign in with Solana)', url: '/guides/auth/auth-web3' },++ {+ name: 'Anonymous Sign-Ins',+ url: '/guides/auth/auth-anonymous',+ enabled: allAuthProvidersEnabled,+ },+ {+ name: 'Web3 (Sign in with Solana)',+ url: '/guides/auth/auth-web3',+ enabled: allAuthProvidersEnabled,+ },{ name: 'Mobile Deep Linking', url: '/guides/auth/native-mobile-deep-linking' },{name: 'Identity Linking',- url: '/guides/auth/auth-identity-linking',+ url: '/guides/auth/auth-identity-linking' as `/${string}`,},{name: 'Multi-Factor Authentication',@@ -647,7 +716,7 @@ export const auth = {},{name: 'Signout',- url: '/guides/auth/signout',+ url: '/guides/auth/signout' as `/${string}`,},],},@@ -660,6 +729,7 @@ export const auth = {},{name: 'Third-party auth',+ enabled: allAuthProvidersEnabled,items: [{ name: 'Overview', url: '/guides/auth/third-party/overview' },{ name: 'Clerk', url: '/guides/auth/third-party/clerk' },@@ -674,12 +744,12 @@ export const auth = {items: [{name: 'General Configuration',- url: '/guides/auth/general-configuration',+ url: '/guides/auth/general-configuration' as `/${string}`,},{ name: 'Email Templates', url: '/guides/auth/auth-email-templates' },{name: 'Redirect URLs',- url: '/guides/auth/redirect-urls',+ url: '/guides/auth/redirect-urls' as `/${string}`,},{name: 'Auth Hooks',@@ -687,27 +757,27 @@ export const auth = {items: [{name: 'Custom access token hook',- url: '/guides/auth/auth-hooks/custom-access-token-hook',+ url: '/guides/auth/auth-hooks/custom-access-token-hook' as `/${string}`,},{name: 'Send SMS hook',- url: '/guides/auth/auth-hooks/send-sms-hook',+ url: '/guides/auth/auth-hooks/send-sms-hook' as `/${string}`,},{name: 'Send email hook',- url: '/guides/auth/auth-hooks/send-email-hook',+ url: '/guides/auth/auth-hooks/send-email-hook' as `/${string}`,},{name: 'MFA verification hook',- url: '/guides/auth/auth-hooks/mfa-verification-hook',+ url: '/guides/auth/auth-hooks/mfa-verification-hook' as `/${string}`,},{name: 'Password verification hook',- url: '/guides/auth/auth-hooks/password-verification-hook',+ url: '/guides/auth/auth-hooks/password-verification-hook' as `/${string}`,},{name: 'Before User Created hook',- url: '/guides/auth/auth-hooks/before-user-created-hook',+ url: '/guides/auth/auth-hooks/before-user-created-hook' as `/${string}`,},],},@@ -730,22 +800,23 @@ export const auth = {{ name: 'Row Level Security', url: '/guides/database/postgres/row-level-security' },{name: 'Column Level Security',- url: '/guides/database/postgres/column-level-security',+ url: '/guides/database/postgres/column-level-security' as `/${string}`,},{name: 'Custom Claims & RBAC',- url: '/guides/database/postgres/custom-claims-and-role-based-access-control-rbac',+ url: '/guides/database/postgres/custom-claims-and-role-based-access-control-rbac' as `/${string}`,},],},{name: 'Auth UI',url: undefined,+ enabled: allAuthProvidersEnabled,items: [{ name: 'Auth UI (Deprecated)', url: '/guides/auth/auth-helpers/auth-ui' },{name: 'Flutter Auth UI',- url: '/guides/auth/auth-helpers/flutter-auth-ui',+ url: '/guides/auth/auth-helpers/flutter-auth-ui' as `/${string}`,},],},@@ -762,7 +833,7 @@ const ormQuickstarts: NavMenuSection = {items: [{name: 'Prisma troubleshooting',- url: '/guides/database/prisma/prisma-troubleshooting',+ url: '/guides/database/prisma/prisma-troubleshooting' as `/${string}`,},],},@@ -816,7 +887,7 @@ export const database: NavMenuConstant = {items: [{name: 'Connecting to your database',- url: '/guides/database/connecting-to-postgres',+ url: '/guides/database/connecting-to-postgres' as `/${string}`,},{ name: 'Importing data', url: '/guides/database/import-data' },{ name: 'Securing your data', url: '/guides/database/secure-data' },@@ -828,16 +899,16 @@ export const database: NavMenuConstant = {items: [{name: 'Managing tables, views, and data',- url: '/guides/database/tables',+ url: '/guides/database/tables' as `/${string}`,},{name: 'Working with arrays',- url: '/guides/database/arrays',+ url: '/guides/database/arrays' as `/${string}`,},{ name: 'Managing indexes', url: '/guides/database/postgres/indexes' },{name: 'Querying joins and nested tables',- url: '/guides/database/joins-and-nesting',+ url: '/guides/database/joins-and-nesting' as `/${string}`,},{ name: 'JSON and unstructured data', url: '/guides/database/json' },],@@ -848,32 +919,32 @@ export const database: NavMenuConstant = {items: [{name: 'Implementing cascade deletes',- url: '/guides/database/postgres/cascade-deletes',+ url: '/guides/database/postgres/cascade-deletes' as `/${string}`,},{ name: 'Managing enums', url: '/guides/database/postgres/enums' },{name: 'Managing database functions',- url: '/guides/database/functions',+ url: '/guides/database/functions' as `/${string}`,},{name: 'Managing database triggers',- url: '/guides/database/postgres/triggers',+ url: '/guides/database/postgres/triggers' as `/${string}`,},{name: 'Managing database webhooks',- url: '/guides/database/webhooks',+ url: '/guides/database/webhooks' as `/${string}`,},{name: 'Using Full Text Search',- url: '/guides/database/full-text-search',+ url: '/guides/database/full-text-search' as `/${string}`,},{name: 'Partitioning your tables',- url: '/guides/database/partitions',+ url: '/guides/database/partitions' as `/${string}`,},{name: 'Managing connections',- url: '/guides/database/connection-management',+ url: '/guides/database/connection-management' as `/${string}`,},],},@@ -883,7 +954,7 @@ export const database: NavMenuConstant = {items: [{name: 'Overview',- url: '/guides/database/orioledb',+ url: '/guides/database/orioledb' as `/${string}`,},],},@@ -893,32 +964,32 @@ export const database: NavMenuConstant = {items: [{name: 'Row Level Security',- url: '/guides/database/postgres/row-level-security',+ url: '/guides/database/postgres/row-level-security' as `/${string}`,},{name: 'Column Level Security',- url: '/guides/database/postgres/column-level-security',+ url: '/guides/database/postgres/column-level-security' as `/${string}`,},{name: 'Hardening the Data API',- url: '/guides/database/hardening-data-api',+ url: '/guides/database/hardening-data-api' as `/${string}`,},{name: 'Custom Claims & RBAC',- url: '/guides/database/postgres/custom-claims-and-role-based-access-control-rbac',+ url: '/guides/database/postgres/custom-claims-and-role-based-access-control-rbac' as `/${string}`,},{name: 'Managing Postgres Roles',- url: '/guides/database/postgres/roles',+ url: '/guides/database/postgres/roles' as `/${string}`,},{name: 'Using Custom Postgres Roles',- url: '/guides/storage/schema/custom-roles',+ url: '/guides/storage/schema/custom-roles' as `/${string}`,},{ name: 'Managing secrets with Vault', url: '/guides/database/vault' },{name: 'Superuser Access and Unsupported Operations',- url: '/guides/database/postgres/roles-superuser',+ url: '/guides/database/postgres/roles-superuser' as `/${string}`,},],},@@ -928,20 +999,20 @@ export const database: NavMenuConstant = {items: [{name: 'Database configuration',- url: '/guides/database/postgres/configuration',+ url: '/guides/database/postgres/configuration' as `/${string}`,},{name: 'Query optimization',- url: '/guides/database/query-optimization',+ url: '/guides/database/query-optimization' as `/${string}`,},{name: 'Database Advisors',- url: '/guides/database/database-advisors',+ url: '/guides/database/database-advisors' as `/${string}`,},{ name: 'Testing your database', url: '/guides/database/testing' },{name: 'Customizing Postgres config',- url: '/guides/database/custom-postgres-config',+ url: '/guides/database/custom-postgres-config' as `/${string}`,},],},@@ -951,23 +1022,23 @@ export const database: NavMenuConstant = {items: [{name: 'Timeouts',- url: '/guides/database/postgres/timeouts',+ url: '/guides/database/postgres/timeouts' as `/${string}`,},{name: 'Debugging and monitoring',- url: '/guides/database/inspect',+ url: '/guides/database/inspect' as `/${string}`,},{name: 'Debugging performance issues',- url: '/guides/database/debugging-performance',+ url: '/guides/database/debugging-performance' as `/${string}`,},{name: 'Supavisor',- url: '/guides/database/supavisor',+ url: '/guides/database/supavisor' as `/${string}`,},{name: 'Troubleshooting',- url: '/guides/database/troubleshooting',+ url: '/guides/database/troubleshooting' as `/${string}`,},],},@@ -980,11 +1051,11 @@ export const database: NavMenuConstant = {{ name: 'Overview', url: '/guides/database/replication' },{name: 'Setting up replication',- url: '/guides/database/replication/setting-up-replication',+ url: '/guides/database/replication/setting-up-replication' as `/${string}`,},{name: 'Monitoring replication',- url: '/guides/database/replication/monitoring-replication',+ url: '/guides/database/replication/monitoring-replication' as `/${string}`,},{ name: 'FAQ', url: '/guides/database/replication/faq' },],@@ -996,107 +1067,107 @@ export const database: NavMenuConstant = {{ name: 'Overview', url: '/guides/database/extensions' },{name: 'HypoPG: Hypothetical indexes',- url: '/guides/database/extensions/hypopg',+ url: '/guides/database/extensions/hypopg' as `/${string}`,},{name: 'plv8 (deprecated)',- url: '/guides/database/extensions/plv8',+ url: '/guides/database/extensions/plv8' as `/${string}`,},{name: 'http: RESTful Client',- url: '/guides/database/extensions/http',+ url: '/guides/database/extensions/http' as `/${string}`,},{name: 'index_advisor: Query optimization',- url: '/guides/database/extensions/index_advisor',+ url: '/guides/database/extensions/index_advisor' as `/${string}`,},{name: 'PGAudit: Postgres Auditing',- url: '/guides/database/extensions/pgaudit',+ url: '/guides/database/extensions/pgaudit' as `/${string}`,},{name: 'pgjwt (deprecated)',- url: '/guides/database/extensions/pgjwt',+ url: '/guides/database/extensions/pgjwt' as `/${string}`,},{name: 'PGroonga: Multilingual Full Text Search',- url: '/guides/database/extensions/pgroonga',+ url: '/guides/database/extensions/pgroonga' as `/${string}`,},{name: 'pgRouting: Geospatial Routing',- url: '/guides/database/extensions/pgrouting',+ url: '/guides/database/extensions/pgrouting' as `/${string}`,},{name: 'pg_cron: Schedule Recurring Jobs',- url: '/guides/database/extensions/pg_cron',+ url: '/guides/database/extensions/pg_cron' as `/${string}`,},{name: 'pg_graphql: GraphQL Support',- url: '/guides/database/extensions/pg_graphql',+ url: '/guides/database/extensions/pg_graphql' as `/${string}`,},{name: 'pg_hashids: Short UIDs',- url: '/guides/database/extensions/pg_hashids',+ url: '/guides/database/extensions/pg_hashids' as `/${string}`,},{name: 'pg_jsonschema: JSON Schema Validation',- url: '/guides/database/extensions/pg_jsonschema',+ url: '/guides/database/extensions/pg_jsonschema' as `/${string}`,},{name: 'pg_net: Async Networking',- url: '/guides/database/extensions/pg_net',+ url: '/guides/database/extensions/pg_net' as `/${string}`,},{name: 'pg_plan_filter: Restrict Total Cost',- url: '/guides/database/extensions/pg_plan_filter',+ url: '/guides/database/extensions/pg_plan_filter' as `/${string}`,},{name: 'postgres_fdw: query data from an external Postgres server',- url: '/guides/database/extensions/postgres_fdw',+ url: '/guides/database/extensions/postgres_fdw' as `/${string}`,},{name: 'pgvector: Embeddings and vector similarity',- url: '/guides/database/extensions/pgvector',+ url: '/guides/database/extensions/pgvector' as `/${string}`,},{name: 'pg_stat_statements: SQL Planning and Execution Statistics',- url: '/guides/database/extensions/pg_stat_statements',+ url: '/guides/database/extensions/pg_stat_statements' as `/${string}`,},{name: 'pg_repack: Storage Optimization',- url: '/guides/database/extensions/pg_repack',+ url: '/guides/database/extensions/pg_repack' as `/${string}`,},{name: 'PostGIS: Geo queries',- url: '/guides/database/extensions/postgis',+ url: '/guides/database/extensions/postgis' as `/${string}`,},{name: 'pgmq: Queues',- url: '/guides/database/extensions/pgmq',+ url: '/guides/database/extensions/pgmq' as `/${string}`,},{name: 'pgsodium (pending deprecation): Encryption Features',- url: '/guides/database/extensions/pgsodium',+ url: '/guides/database/extensions/pgsodium' as `/${string}`,},{name: 'pgTAP: Unit Testing',- url: '/guides/database/extensions/pgtap',+ url: '/guides/database/extensions/pgtap' as `/${string}`,},{name: 'plpgsql_check: PL/pgSQL Linter',- url: '/guides/database/extensions/plpgsql_check',+ url: '/guides/database/extensions/plpgsql_check' as `/${string}`,},{name: 'timescaledb (deprecated)',- url: '/guides/database/extensions/timescaledb',+ url: '/guides/database/extensions/timescaledb' as `/${string}`,},{name: 'uuid-ossp: Unique Identifiers',- url: '/guides/database/extensions/uuid-ossp',+ url: '/guides/database/extensions/uuid-ossp' as `/${string}`,},{name: 'RUM: inverted index for full-text search',- url: '/guides/database/extensions/rum',+ url: '/guides/database/extensions/rum' as `/${string}`,},],},@@ -1106,75 +1177,75 @@ export const database: NavMenuConstant = {items: [{name: 'Overview',- url: '/guides/database/extensions/wrappers/overview',+ url: '/guides/database/extensions/wrappers/overview' as `/${string}`,},{name: 'Connecting to Auth0',- url: '/guides/database/extensions/wrappers/auth0',+ url: '/guides/database/extensions/wrappers/auth0' as `/${string}`,},{name: 'Connecting to Airtable',- url: '/guides/database/extensions/wrappers/airtable',+ url: '/guides/database/extensions/wrappers/airtable' as `/${string}`,},{name: 'Connecting to AWS Cognito',- url: '/guides/database/extensions/wrappers/cognito',+ url: '/guides/database/extensions/wrappers/cognito' as `/${string}`,},{name: 'Connecting to AWS S3',- url: '/guides/database/extensions/wrappers/s3',+ url: '/guides/database/extensions/wrappers/s3' as `/${string}`,},{name: 'Connecting to BigQuery',- url: '/guides/database/extensions/wrappers/bigquery',+ url: '/guides/database/extensions/wrappers/bigquery' as `/${string}`,},{name: 'Connecting to Clerk',- url: '/guides/database/extensions/wrappers/clerk',+ url: '/guides/database/extensions/wrappers/clerk' as `/${string}`,},{name: 'Connecting to ClickHouse',- url: '/guides/database/extensions/wrappers/clickhouse',+ url: '/guides/database/extensions/wrappers/clickhouse' as `/${string}`,},{name: 'Connecting to DuckDB',- url: '/guides/database/extensions/wrappers/duckdb',+ url: '/guides/database/extensions/wrappers/duckdb' as `/${string}`,},{name: 'Connecting to Firebase',- url: '/guides/database/extensions/wrappers/firebase',+ url: '/guides/database/extensions/wrappers/firebase' as `/${string}`,},{name: 'Connecting to Iceberg',- url: '/guides/database/extensions/wrappers/iceberg',+ url: '/guides/database/extensions/wrappers/iceberg' as `/${string}`,},{name: 'Connecting to Logflare',- url: '/guides/database/extensions/wrappers/logflare',+ url: '/guides/database/extensions/wrappers/logflare' as `/${string}`,},{name: 'Connecting to MSSQL',- url: '/guides/database/extensions/wrappers/mssql',+ url: '/guides/database/extensions/wrappers/mssql' as `/${string}`,},{name: 'Connecting to Notion',- url: '/guides/database/extensions/wrappers/notion',+ url: '/guides/database/extensions/wrappers/notion' as `/${string}`,},{name: 'Connecting to Paddle',- url: '/guides/database/extensions/wrappers/paddle',+ url: '/guides/database/extensions/wrappers/paddle' as `/${string}`,},{name: 'Connecting to Redis',- url: '/guides/database/extensions/wrappers/redis',+ url: '/guides/database/extensions/wrappers/redis' as `/${string}`,},{name: 'Connecting to Snowflake',- url: '/guides/database/extensions/wrappers/snowflake',+ url: '/guides/database/extensions/wrappers/snowflake' as `/${string}`,},{name: 'Connecting to Stripe',- url: '/guides/database/extensions/wrappers/stripe',+ url: '/guides/database/extensions/wrappers/stripe' as `/${string}`,},],},@@ -1184,19 +1255,19 @@ export const database: NavMenuConstant = {items: [{name: 'Drop All Tables in Schema',- url: '/guides/database/postgres/dropping-all-tables-in-schema',+ url: '/guides/database/postgres/dropping-all-tables-in-schema' as `/${string}`,},{name: 'Select First Row per Group',- url: '/guides/database/postgres/first-row-in-group',+ url: '/guides/database/postgres/first-row-in-group' as `/${string}`,},{name: 'Print PostgreSQL Version',- url: '/guides/database/postgres/which-version-of-postgres',+ url: '/guides/database/postgres/which-version-of-postgres' as `/${string}`,},{name: 'Replicating from Supabase to External Postgres',- url: '/guides/database/postgres/setup-replication-external',+ url: '/guides/database/postgres/setup-replication-external' as `/${string}`,},],},@@ -1284,35 +1355,35 @@ export const api: NavMenuConstant = {items: [{name: 'Managing tables, views, and data',- url: '/guides/database/tables',+ url: '/guides/database/tables' as `/${string}`,},{name: 'Querying joins and nested tables',- url: '/guides/database/joins-and-nesting',+ url: '/guides/database/joins-and-nesting' as `/${string}`,},{name: 'JSON and unstructured data',- url: '/guides/database/json',+ url: '/guides/database/json' as `/${string}`,},{name: 'Managing database functions',- url: '/guides/database/functions',+ url: '/guides/database/functions' as `/${string}`,},{name: 'Using full-text search',- url: '/guides/database/full-text-search',+ url: '/guides/database/full-text-search' as `/${string}`,},{name: 'Debugging performance issues',- url: '/guides/database/debugging-performance',+ url: '/guides/database/debugging-performance' as `/${string}`,},{name: 'Using custom schemas',- url: '/guides/api/using-custom-schemas',+ url: '/guides/api/using-custom-schemas' as `/${string}`,},{name: 'Converting from SQL to JavaScript API',- url: '/guides/api/sql-to-api',+ url: '/guides/api/sql-to-api' as `/${string}`,},],},@@ -1359,15 +1430,15 @@ export const functions: NavMenuConstant = {items: [{name: 'Quickstart (Dashboard)',- url: '/guides/functions/quickstart-dashboard',+ url: '/guides/functions/quickstart-dashboard' as `/${string}`,},{name: 'Quickstart (CLI)',- url: '/guides/functions/quickstart',+ url: '/guides/functions/quickstart' as `/${string}`,},{name: 'Development Environment',- url: '/guides/functions/development-environment',+ url: '/guides/functions/development-environment' as `/${string}`,},],},@@ -1388,7 +1459,7 @@ export const functions: NavMenuConstant = {{ name: 'Routing', url: '/guides/functions/routing' },{name: 'Deploy to Production',- url: '/guides/functions/deploy',+ url: '/guides/functions/deploy' as `/${string}`,},],},@@ -1398,19 +1469,19 @@ export const functions: NavMenuConstant = {items: [{name: 'Local Debugging with DevTools',- url: '/guides/functions/debugging-tools',+ url: '/guides/functions/debugging-tools' as `/${string}`,},{name: 'Testing your Functions',- url: '/guides/functions/unit-test',+ url: '/guides/functions/unit-test' as `/${string}`,},{name: 'Logging',- url: '/guides/functions/logging',+ url: '/guides/functions/logging' as `/${string}`,},{name: 'Troubleshooting',- url: '/guides/functions/troubleshooting',+ url: '/guides/functions/troubleshooting' as `/${string}`,},],},@@ -1420,19 +1491,20 @@ export const functions: NavMenuConstant = {items: [{name: 'Regional invocations',- url: '/guides/functions/regional-invocation',+ url: '/guides/functions/regional-invocation' as `/${string}`,},{name: 'Status codes',- url: '/guides/functions/status-codes',+ url: '/guides/functions/status-codes' as `/${string}`,},{name: 'Limits',- url: '/guides/functions/limits',+ url: '/guides/functions/limits' as `/${string}`,},{name: 'Pricing',- url: '/guides/functions/pricing',+ url: '/guides/functions/pricing' as `/${string}`,+ enabled: billingEnabled,},],},@@ -1463,63 +1535,63 @@ export const functions: NavMenuConstant = {items: [{name: 'Auth Send Email Hook',- url: '/guides/functions/examples/auth-send-email-hook-react-email-resend',+ url: '/guides/functions/examples/auth-send-email-hook-react-email-resend' as `/${string}`,},{name: 'CORS support for invoking from the browser',- url: '/guides/functions/cors',+ url: '/guides/functions/cors' as `/${string}`,},{name: 'Scheduling Functions',- url: '/guides/functions/schedule-functions',+ url: '/guides/functions/schedule-functions' as `/${string}`,},{name: 'Sending Push Notifications',- url: '/guides/functions/examples/push-notifications',+ url: '/guides/functions/examples/push-notifications' as `/${string}`,},{name: 'Generating AI images',- url: '/guides/functions/examples/amazon-bedrock-image-generator',+ url: '/guides/functions/examples/amazon-bedrock-image-generator' as `/${string}`,},{name: 'Generating OG images ',- url: '/guides/functions/examples/og-image',+ url: '/guides/functions/examples/og-image' as `/${string}`,},{name: 'Semantic AI Search',- url: '/guides/functions/examples/semantic-search',+ url: '/guides/functions/examples/semantic-search' as `/${string}`,},{name: 'CAPTCHA support with Cloudflare Turnstile',- url: '/guides/functions/examples/cloudflare-turnstile',+ url: '/guides/functions/examples/cloudflare-turnstile' as `/${string}`,},{name: 'Building a Discord Bot',- url: '/guides/functions/examples/discord-bot',+ url: '/guides/functions/examples/discord-bot' as `/${string}`,},{name: 'Building a Telegram Bot',- url: '/guides/functions/examples/telegram-bot',+ url: '/guides/functions/examples/telegram-bot' as `/${string}`,},{name: 'Handling Stripe Webhooks ',- url: '/guides/functions/examples/stripe-webhooks',+ url: '/guides/functions/examples/stripe-webhooks' as `/${string}`,},{name: 'Rate-limiting with Redis',- url: '/guides/functions/examples/rate-limiting',+ url: '/guides/functions/examples/rate-limiting' as `/${string}`,},{name: 'Taking Screenshots with Puppeteer',- url: '/guides/functions/examples/screenshots',+ url: '/guides/functions/examples/screenshots' as `/${string}`,},{name: 'Slack Bot responding to mentions',- url: '/guides/functions/examples/slack-bot-mention',+ url: '/guides/functions/examples/slack-bot-mention' as `/${string}`,},{name: 'Image Transformation & Optimization',- url: '/guides/functions/examples/image-manipulation',+ url: '/guides/functions/examples/image-manipulation' as `/${string}`,},],},@@ -1530,40 +1602,40 @@ export const functions: NavMenuConstant = {{ name: 'Dart Edge on Supabase', url: '/guides/functions/dart-edge' },{name: 'Browserless.io',- url: '/guides/functions/examples/screenshots',+ url: '/guides/functions/examples/screenshots' as `/${string}`,},{name: 'Hugging Face',- url: '/guides/ai/examples/huggingface-image-captioning',+ url: '/guides/ai/examples/huggingface-image-captioning' as `/${string}`,},{name: 'Monitoring with Sentry',- url: '/guides/functions/examples/sentry-monitoring',+ url: '/guides/functions/examples/sentry-monitoring' as `/${string}`,},{ name: 'OpenAI API', url: '/guides/ai/examples/openai' },{name: 'React Email',- url: '/guides/functions/examples/auth-send-email-hook-react-email-resend',+ url: '/guides/functions/examples/auth-send-email-hook-react-email-resend' as `/${string}`,},{name: 'Sending Emails with Resend',- url: '/guides/functions/examples/send-emails',+ url: '/guides/functions/examples/send-emails' as `/${string}`,},{name: 'Upstash Redis',- url: '/guides/functions/examples/upstash-redis',+ url: '/guides/functions/examples/upstash-redis' as `/${string}`,},{name: 'Type-Safe SQL with Kysely',- url: '/guides/functions/kysely-postgres',+ url: '/guides/functions/kysely-postgres' as `/${string}`,},{name: 'Text To Speech with ElevenLabs',- url: '/guides/functions/examples/elevenlabs-generate-speech-stream',+ url: '/guides/functions/examples/elevenlabs-generate-speech-stream' as `/${string}`,},{name: 'Speech Transcription with ElevenLabs',- url: '/guides/functions/examples/elevenlabs-transcribe-speech',+ url: '/guides/functions/examples/elevenlabs-transcribe-speech' as `/${string}`,},],},@@ -1591,7 +1663,7 @@ export const realtime: NavMenuConstant = {{ name: 'Presence', url: '/guides/realtime/presence' },{name: 'Postgres Changes',- url: '/guides/realtime/postgres-changes',+ url: '/guides/realtime/postgres-changes' as `/${string}`,},{ name: 'Settings', url: '/guides/realtime/settings' },],@@ -1607,19 +1679,19 @@ export const realtime: NavMenuConstant = {items: [{name: 'Subscribing to Database Changes',- url: '/guides/realtime/subscribing-to-database-changes',+ url: '/guides/realtime/subscribing-to-database-changes' as `/${string}`,},{name: 'Using Realtime with Next.js',- url: '/guides/realtime/realtime-with-nextjs',+ url: '/guides/realtime/realtime-with-nextjs' as `/${string}`,},{name: 'Using Realtime Presence with Flutter',- url: '/guides/realtime/realtime-user-presence',+ url: '/guides/realtime/realtime-user-presence' as `/${string}`,},{name: 'Listening to Postgres Changes with Flutter',- url: '/guides/realtime/realtime-listening-flutter',+ url: '/guides/realtime/realtime-listening-flutter' as `/${string}`,},],},@@ -1628,7 +1700,11 @@ export const realtime: NavMenuConstant = {url: undefined,items: [{ name: 'Quotas', url: '/guides/realtime/quotas' },- { name: 'Pricing', url: '/guides/realtime/pricing' },+ {+ name: 'Pricing',+ url: '/guides/realtime/pricing' as `/${string}`,+ enabled: billingEnabled,+ },{ name: 'Architecture', url: '/guides/realtime/architecture' },{ name: 'Protocol', url: '/guides/realtime/protocol', items: [] },{ name: 'Benchmarks', url: '/guides/realtime/benchmarks' },@@ -1659,7 +1735,7 @@ export const storage: NavMenuConstant = {{ name: 'Fundamentals', url: '/guides/storage/buckets/fundamentals' },{name: 'Creating Buckets',- url: '/guides/storage/buckets/creating-buckets',+ url: '/guides/storage/buckets/creating-buckets' as `/${string}`,},],},@@ -1669,11 +1745,11 @@ export const storage: NavMenuConstant = {items: [{name: 'Ownership',- url: '/guides/storage/security/ownership',+ url: '/guides/storage/security/ownership' as `/${string}`,},{name: 'Access Control',- url: '/guides/storage/security/access-control',+ url: '/guides/storage/security/access-control' as `/${string}`,},],},@@ -1683,15 +1759,15 @@ export const storage: NavMenuConstant = {items: [{name: 'Standard Uploads',- url: '/guides/storage/uploads/standard-uploads',+ url: '/guides/storage/uploads/standard-uploads' as `/${string}`,},{name: 'Resumable Uploads',- url: '/guides/storage/uploads/resumable-uploads',+ url: '/guides/storage/uploads/resumable-uploads' as `/${string}`,},{name: 'S3 Uploads',- url: '/guides/storage/uploads/s3-uploads',+ url: '/guides/storage/uploads/s3-uploads' as `/${string}`,},{ name: 'Limits', url: '/guides/storage/uploads/file-limits' },],@@ -1703,11 +1779,11 @@ export const storage: NavMenuConstant = {{ name: 'Serving assets', url: '/guides/storage/serving/downloads' },{name: 'Image Transformations',- url: '/guides/storage/serving/image-transformations',+ url: '/guides/storage/serving/image-transformations' as `/${string}`,},{name: 'Bandwidth & Storage Egress',- url: '/guides/storage/serving/bandwidth',+ url: '/guides/storage/serving/bandwidth' as `/${string}`,},],},@@ -1717,7 +1793,11 @@ export const storage: NavMenuConstant = {items: [{ name: 'Copy / Move Objects', url: '/guides/storage/management/copy-move-objects' },{ name: 'Delete Objects', url: '/guides/storage/management/delete-objects' },- { name: 'Pricing', url: '/guides/storage/management/pricing' },+ {+ name: 'Pricing',+ url: '/guides/storage/management/pricing' as `/${string}`,+ enabled: billingEnabled,+ },],},{@@ -1735,15 +1815,15 @@ export const storage: NavMenuConstant = {{ name: 'Introduction', url: '/guides/storage/analytics/introduction' },{name: 'Creating Analytics Buckets',- url: '/guides/storage/analytics/creating-analytics-buckets',+ url: '/guides/storage/analytics/creating-analytics-buckets' as `/${string}`,},{name: 'Connecting to Analytics Buckets',- url: '/guides/storage/analytics/connecting-to-analytics-bucket',+ url: '/guides/storage/analytics/connecting-to-analytics-bucket' as `/${string}`,},{name: 'Limits',- url: '/guides/storage/analytics/limits',+ url: '/guides/storage/analytics/limits' as `/${string}`,},],},@@ -1772,7 +1852,7 @@ export const storage: NavMenuConstant = {{ name: 'Database Design', url: '/guides/storage/schema/design' },{name: 'Helper Functions',- url: '/guides/storage/schema/helper-functions',+ url: '/guides/storage/schema/helper-functions' as `/${string}`,},{ name: 'Custom Roles', url: '/guides/storage/schema/custom-roles' },],@@ -1819,20 +1899,20 @@ export const ai = {},{name: 'Automatic embeddings',- url: '/guides/ai/automatic-embeddings',+ url: '/guides/ai/automatic-embeddings' as `/${string}`,},{name: 'Engineering for scale',- url: '/guides/ai/engineering-for-scale',+ url: '/guides/ai/engineering-for-scale' as `/${string}`,},{name: 'Choosing Compute Add-on',- url: '/guides/ai/choosing-compute-addon',+ url: '/guides/ai/choosing-compute-addon' as `/${string}`,},{ name: 'Going to Production', url: '/guides/ai/going-to-prod' },{name: 'RAG with Permissions',- url: '/guides/ai/rag-with-permissions',+ url: '/guides/ai/rag-with-permissions' as `/${string}`,},],},@@ -1851,25 +1931,25 @@ export const ai = {items: [{name: 'OpenAI completions using Edge Functions',- url: '/guides/ai/examples/openai',+ url: '/guides/ai/examples/openai' as `/${string}`,},{name: 'Generate image captions using Hugging Face',- url: '/guides/ai/examples/huggingface-image-captioning',+ url: '/guides/ai/examples/huggingface-image-captioning' as `/${string}`,},{name: 'Generate Embeddings',- url: '/guides/ai/quickstarts/generate-text-embeddings',+ url: '/guides/ai/quickstarts/generate-text-embeddings' as `/${string}`,},{name: 'Adding generative Q&A to your documentation',- url: '/guides/ai/examples/headless-vector-search',+ url: '/guides/ai/examples/headless-vector-search' as `/${string}`,},{name: 'Adding generative Q&A to your Next.js site',- url: '/guides/ai/examples/nextjs-vector-search',+ url: '/guides/ai/examples/nextjs-vector-search' as `/${string}`,},],},@@ -1890,32 +1970,32 @@ export const ai = {items: [{name: 'Developing locally with Vecs',- url: '/guides/ai/vecs-python-client',+ url: '/guides/ai/vecs-python-client' as `/${string}`,},{name: 'Creating and managing collections',- url: '/guides/ai/quickstarts/hello-world',+ url: '/guides/ai/quickstarts/hello-world' as `/${string}`,},{name: 'Text Deduplication',- url: '/guides/ai/quickstarts/text-deduplication',+ url: '/guides/ai/quickstarts/text-deduplication' as `/${string}`,},{name: 'Face similarity search',- url: '/guides/ai/quickstarts/face-similarity',+ url: '/guides/ai/quickstarts/face-similarity' as `/${string}`,},{name: 'Image search with OpenAI CLIP',- url: '/guides/ai/examples/image-search-openai-clip',+ url: '/guides/ai/examples/image-search-openai-clip' as `/${string}`,},{name: 'Semantic search with Amazon Titan',- url: '/guides/ai/examples/semantic-image-search-amazon-titan',+ url: '/guides/ai/examples/semantic-image-search-amazon-titan' as `/${string}`,},{name: 'Building ChatGPT Plugins',- url: '/guides/ai/examples/building-chatgpt-plugins',+ url: '/guides/ai/examples/building-chatgpt-plugins' as `/${string}`,},],},@@ -1925,31 +2005,31 @@ export const ai = {items: [{name: 'LangChain',- url: '/guides/ai/langchain',+ url: '/guides/ai/langchain' as `/${string}`,},{name: 'Hugging Face',- url: '/guides/ai/hugging-face',+ url: '/guides/ai/hugging-face' as `/${string}`,},{name: 'Google Colab',- url: '/guides/ai/google-colab',+ url: '/guides/ai/google-colab' as `/${string}`,},{name: 'LlamaIndex',- url: '/guides/ai/integrations/llamaindex',+ url: '/guides/ai/integrations/llamaindex' as `/${string}`,},{name: 'Roboflow',- url: '/guides/ai/integrations/roboflow',+ url: '/guides/ai/integrations/roboflow' as `/${string}`,},{name: 'Amazon Bedrock',- url: '/guides/ai/integrations/amazon-bedrock',+ url: '/guides/ai/integrations/amazon-bedrock' as `/${string}`,},{name: 'Mixpeek',- url: '/guides/ai/examples/mixpeek-video-search',+ url: '/guides/ai/examples/mixpeek-video-search' as `/${string}`,},],},@@ -1978,23 +2058,23 @@ export const local_development: NavMenuConstant = {{ name: 'Getting started', url: '/guides/local-development/overview' },{name: 'Declarative database schemas',- url: '/guides/local-development/declarative-database-schemas',+ url: '/guides/local-development/declarative-database-schemas' as `/${string}`,},{name: 'Seeding your database',- url: '/guides/local-development/seeding-your-database',+ url: '/guides/local-development/seeding-your-database' as `/${string}`,},{name: 'Managing config and secrets',- url: '/guides/local-development/managing-config',+ url: '/guides/local-development/managing-config' as `/${string}`,},{name: 'Restoring downloaded backup',- url: '/guides/local-development/restoring-downloaded-backup',+ url: '/guides/local-development/restoring-downloaded-backup' as `/${string}`,},{name: 'Customizing email templates',- url: '/guides/local-development/customizing-email-templates',+ url: '/guides/local-development/customizing-email-templates' as `/${string}`,},],},@@ -2005,12 +2085,12 @@ export const local_development: NavMenuConstant = {{ name: 'Getting started', url: '/guides/local-development/testing/overview' },{name: 'pgTAP advanced guide',- url: '/guides/local-development/testing/pgtap-extended',+ url: '/guides/local-development/testing/pgtap-extended' as `/${string}`,},{ name: 'Database testing', url: '/guides/database/testing' },{name: 'RLS policies testing',- url: '/guides/database/extensions/pgtap#testing-rls-policies',+ url: '/guides/database/extensions/pgtap#testing-rls-policies' as `/${string}`,},],},@@ -2120,7 +2200,7 @@ export const security: NavMenuConstant = {{ name: 'Production Checklist', url: '/guides/deployment/going-into-prod' },{name: 'Shared Responsibility Model',- url: '/guides/deployment/shared-responsibility-model',+ url: '/guides/deployment/shared-responsibility-model' as `/${string}`,},{ name: 'Row Level Security', url: '/guides/database/postgres/row-level-security' },{ name: 'Hardening the Data API', url: '/guides/database/hardening-data-api' },@@ -2155,11 +2235,11 @@ export const platform: NavMenuConstant = {items: [{name: 'Restore Dashboard backup',- url: '/guides/platform/migrating-within-supabase/dashboard-restore',+ url: '/guides/platform/migrating-within-supabase/dashboard-restore' as `/${string}`,},{name: 'Backup and restore using CLI',- url: '/guides/platform/migrating-within-supabase/backup-restore',+ url: '/guides/platform/migrating-within-supabase/backup-restore' as `/${string}`,},],},@@ -2176,7 +2256,7 @@ export const platform: NavMenuConstant = {items: [{name: 'Access Control',- url: '/guides/platform/access-control',+ url: '/guides/platform/access-control' as `/${string}`,},{name: 'Multi-factor Authentication',@@ -2184,13 +2264,13 @@ export const platform: NavMenuConstant = {items: [{name: 'Enforce MFA on organization',- url: '/guides/platform/mfa/org-mfa-enforcement',+ url: '/guides/platform/mfa/org-mfa-enforcement' as `/${string}`,},],},{name: 'Transfer Project',- url: '/guides/platform/project-transfer',+ url: '/guides/platform/project-transfer' as `/${string}`,},{name: 'Restore to a new project',@@ -2203,7 +2283,7 @@ export const platform: NavMenuConstant = {{ name: 'SSO with Azure AD', url: '/guides/platform/sso/azure' },{name: 'SSO with Google Workspace',- url: '/guides/platform/sso/gsuite',+ url: '/guides/platform/sso/gsuite' as `/${string}`,},{ name: 'SSO with Okta', url: '/guides/platform/sso/okta' },],@@ -2214,137 +2294,143 @@ export const platform: NavMenuConstant = {name: 'Platform Configuration',url: undefined,items: [- { name: 'Regions', url: '/guides/platform/regions' },- { name: 'Compute and Disk', url: '/guides/platform/compute-and-disk' },- { name: 'Database Size', url: '/guides/platform/database-size' },- { name: 'HIPAA Projects', url: '/guides/platform/hipaa-projects' },+ { name: 'Regions', url: '/guides/platform/regions' as `/${string}` },+ { name: 'Compute and Disk', url: '/guides/platform/compute-and-disk' as `/${string}` },+ { name: 'Database Size', url: '/guides/platform/database-size' as `/${string}` },+ { name: 'HIPAA Projects', url: '/guides/platform/hipaa-projects' as `/${string}` },{name: 'Network Restrictions',- url: '/guides/platform/network-restrictions',+ url: '/guides/platform/network-restrictions' as `/${string}`,+ },+ { name: 'Performance Tuning', url: '/guides/platform/performance' as `/${string}` },+ { name: 'SSL Enforcement', url: '/guides/platform/ssl-enforcement' as `/${string}` },+ {+ name: 'Default Platform Permissions',+ url: '/guides/platform/permissions' as `/${string}`,},- { name: 'Performance Tuning', url: '/guides/platform/performance' },- { name: 'SSL Enforcement', url: '/guides/platform/ssl-enforcement' },- { name: 'Default Platform Permissions', url: '/guides/platform/permissions' },- { name: 'PrivateLink', url: '/guides/platform/privatelink' },+ { name: 'PrivateLink', url: '/guides/platform/privatelink' as `/${string}` },],},{name: 'Billing',url: undefined,+ enabled: billingEnabled,items: [{name: 'About billing on Supabase',- url: '/guides/platform/billing-on-supabase',+ url: '/guides/platform/billing-on-supabase' as `/${string}`,},{name: 'Get set up for billing',- url: '/guides/platform/get-set-up-for-billing',+ url: '/guides/platform/get-set-up-for-billing' as `/${string}`,},{name: 'Manage your subscription',- url: '/guides/platform/manage-your-subscription',+ url: '/guides/platform/manage-your-subscription' as `/${string}`,},{name: 'Manage your usage',- url: '/guides/platform/manage-your-usage',+ url: '/guides/platform/manage-your-usage' as `/${string}`,items: [+ { name: 'Usage limits', url: '/guides/platform/usage-limits' as `/${string}` },+ { name: 'Overages', url: '/guides/platform/overages' as `/${string}` },{name: 'Compute',- url: '/guides/platform/manage-your-usage/compute',+ url: '/guides/platform/manage-your-usage/compute' as `/${string}`,},{name: 'Egress',- url: '/guides/platform/manage-your-usage/egress',+ url: '/guides/platform/manage-your-usage/egress' as `/${string}`,},{name: 'Disk Size',- url: '/guides/platform/manage-your-usage/disk-size',+ url: '/guides/platform/manage-your-usage/disk-size' as `/${string}`,},{name: 'Disk Throughput',- url: '/guides/platform/manage-your-usage/disk-throughput',+ url: '/guides/platform/manage-your-usage/disk-throughput' as `/${string}`,},{name: 'Disk IOPS',- url: '/guides/platform/manage-your-usage/disk-iops',+ url: '/guides/platform/manage-your-usage/disk-iops' as `/${string}`,},{name: 'Monthly Active Users',- url: '/guides/platform/manage-your-usage/monthly-active-users',+ url: '/guides/platform/manage-your-usage/monthly-active-users' as `/${string}`,},{name: 'Monthly Active Third-Party Users',- url: '/guides/platform/manage-your-usage/monthly-active-users-third-party',+ url: '/guides/platform/manage-your-usage/monthly-active-users-third-party' as `/${string}`,},{name: 'Monthly Active SSO Users',- url: '/guides/platform/manage-your-usage/monthly-active-users-sso',+ url: '/guides/platform/manage-your-usage/monthly-active-users-sso' as `/${string}`,},{name: 'Storage Size',- url: '/guides/platform/manage-your-usage/storage-size',+ url: '/guides/platform/manage-your-usage/storage-size' as `/${string}`,},{name: 'Storage Image Transformations',- url: '/guides/platform/manage-your-usage/storage-image-transformations',+ url: '/guides/platform/manage-your-usage/storage-image-transformations' as `/${string}`,},{name: 'Edge Function Invocations',- url: '/guides/platform/manage-your-usage/edge-function-invocations',+ url: '/guides/platform/manage-your-usage/edge-function-invocations' as `/${string}`,},{name: 'Realtime Messages',- url: '/guides/platform/manage-your-usage/realtime-messages',+ url: '/guides/platform/manage-your-usage/realtime-messages' as `/${string}`,},{name: 'Realtime Peak Connections',- url: '/guides/platform/manage-your-usage/realtime-peak-connections',+ url: '/guides/platform/manage-your-usage/realtime-peak-connections' as `/${string}`,},{name: 'Custom Domains',- url: '/guides/platform/manage-your-usage/custom-domains',+ url: '/guides/platform/manage-your-usage/custom-domains' as `/${string}`,},{name: 'Point-in-Time Recovery',- url: '/guides/platform/manage-your-usage/point-in-time-recovery',+ url: '/guides/platform/manage-your-usage/point-in-time-recovery' as `/${string}`,},{name: 'IPv4',- url: '/guides/platform/manage-your-usage/ipv4',+ url: '/guides/platform/manage-your-usage/ipv4' as `/${string}`,},{name: 'MFA Phone',- url: '/guides/platform/manage-your-usage/advanced-mfa-phone',+ url: '/guides/platform/manage-your-usage/advanced-mfa-phone' as `/${string}`,},{name: 'Read Replicas',- url: '/guides/platform/manage-your-usage/read-replicas',+ url: '/guides/platform/manage-your-usage/read-replicas' as `/${string}`,},{name: 'Branching',- url: '/guides/platform/manage-your-usage/branching',+ url: '/guides/platform/manage-your-usage/branching' as `/${string}`,},{name: 'Log Drains',- url: '/guides/platform/manage-your-usage/log-drains',+ url: '/guides/platform/manage-your-usage/log-drains' as `/${string}`,},],},{name: 'Your monthly invoice',- url: '/guides/platform/your-monthly-invoice',+ url: '/guides/platform/your-monthly-invoice' as `/${string}`,},{name: 'Control your costs',- url: '/guides/platform/cost-control',+ url: '/guides/platform/cost-control' as `/${string}`,},{name: 'Credits',- url: '/guides/platform/credits',+ url: '/guides/platform/credits' as `/${string}`,},{name: 'Billing FAQ',- url: '/guides/platform/billing-faq',+ url: '/guides/platform/billing-faq' as `/${string}`,},],},@@ -2363,27 +2449,27 @@ export const telemetry: NavMenuConstant = {items: [{name: 'Logging',- url: '/guides/telemetry/logs',+ url: '/guides/telemetry/logs' as `/${string}`,},{name: 'Advanced log filtering',- url: '/guides/telemetry/advanced-log-filtering',+ url: '/guides/telemetry/advanced-log-filtering' as `/${string}`,},{name: 'Log drains',- url: '/guides/telemetry/log-drains',+ url: '/guides/telemetry/log-drains' as `/${string}`,},{name: 'Reports',- url: '/guides/telemetry/reports',+ url: '/guides/telemetry/reports' as `/${string}`,},{name: 'Metrics',- url: '/guides/telemetry/metrics',+ url: '/guides/telemetry/metrics' as `/${string}`,},{name: 'Sentry integration',- url: '/guides/telemetry/sentry-monitoring',+ url: '/guides/telemetry/sentry-monitoring' as `/${string}`,},],},@@ -2416,7 +2502,7 @@ export const self_hosting: NavMenuConstant = {items: [{name: 'Reference',- url: '/reference/self-hosting-storage/introduction',+ url: '/reference/self-hosting-storage/introduction' as `/${string}`,},{ name: 'Configuration', url: '/guides/self-hosting/storage/config' },],@@ -2426,7 +2512,7 @@ export const self_hosting: NavMenuConstant = {items: [{name: 'Reference',- url: '/reference/self-hosting-realtime/introduction',+ url: '/reference/self-hosting-realtime/introduction' as `/${string}`,},{ name: 'Configuration', url: '/guides/self-hosting/realtime/config' },],@@ -2480,12 +2566,12 @@ export const deployment: NavMenuConstant = {{ name: 'Branching via GitHub', url: '/guides/deployment/branching/github-integration' },{name: 'Branching via dashboard',- url: '/guides/deployment/branching/dashboard',+ url: '/guides/deployment/branching/dashboard' as `/${string}`,},{name: 'Working with branches',- url: '/guides/deployment/branching/working-with-branches',+ url: '/guides/deployment/branching/working-with-branches' as `/${string}`,},{ name: 'Configuration', url: '/guides/deployment/branching/configuration' },{ name: 'Integrations', url: '/guides/deployment/branching/integrations' },@@ -2506,7 +2592,7 @@ export const deployment: NavMenuConstant = {items: [{name: 'Shared responsibility model',- url: '/guides/deployment/shared-responsibility-model',+ url: '/guides/deployment/shared-responsibility-model' as `/${string}`,},{ name: 'Maturity model', url: '/guides/deployment/maturity-model' },{ name: 'Production checklist', url: '/guides/deployment/going-into-prod' },@@ -2518,7 +2604,7 @@ export const deployment: NavMenuConstant = {items: [{name: 'Generate types from your database',- url: '/guides/deployment/ci/generating-types',+ url: '/guides/deployment/ci/generating-types' as `/${string}`,},{ name: 'Automated testing', url: '/guides/deployment/ci/testing' },{ name: 'Back up your database', url: '/guides/deployment/ci/backups' },@@ -2554,7 +2640,7 @@ export const integrations: NavMenuConstant = {items: [{name: 'OAuth scopes',- url: '/guides/integrations/build-a-supabase-integration/oauth-scopes',+ url: '/guides/integrations/build-a-supabase-integration/oauth-scopes' as `/${string}`,},],},@@ -2575,39 +2661,44 @@ export const reference = {name: 'supabase-js',url: '/reference/javascript/start',level: 'reference_javascript',- icon: '/img/icons/menu/reference-javascript',+ icon: '/img/icons/menu/reference-javascript' as `/${string}`,},{name: 'supabase-dart',url: '/reference/dart/start',level: 'reference_dart',- icon: '/img/icons/menu/reference-dart',+ icon: '/img/icons/menu/reference-dart' as `/${string}`,+ enabled: sdkDartEnabled,},{name: 'supabase-csharp',url: '/reference/csharp/start',level: 'reference_csharp',- icon: '/img/icons/menu/reference-csharp',+ icon: '/img/icons/menu/reference-csharp' as `/${string}`,+ enabled: sdkCsharpEnabled,},{name: 'supbase-python',url: '/reference/python/start',level: 'reference_python',- icon: '/img/icons/menu/reference-python',+ icon: '/img/icons/menu/reference-python' as `/${string}`,+ enabled: sdkPythonEnabled,},{name: 'supbase-swift',url: '/reference/swift/start',level: 'reference_swift',items: [],- icon: '/img/icons/menu/reference-swift',+ icon: '/img/icons/menu/reference-swift' as `/${string}`,+ enabled: sdkSwiftEnabled,},{name: 'supabase-kt',url: '/reference/kotlin/start',level: 'reference_kotlin',items: [],- icon: '/img/icons/menu/reference-kotlin',+ icon: '/img/icons/menu/reference-kotlin' as `/${string}`,+ enabled: sdkKotlinEnabled,},],},@@ -2617,12 +2708,12 @@ export const reference = {{name: 'Supabase CLI',url: '/reference/cli/start',- icon: '/img/icons/menu/reference-cli',+ icon: '/img/icons/menu/reference-cli' as `/${string}`,},{name: 'Management API',url: '/reference/javascript',- icon: '/img/icons/menu/reference-api',+ icon: '/img/icons/menu/reference-api' as `/${string}`,},],},@@ -2651,6 +2742,7 @@ export const reference_javascript_v2 = {},}+// TODO: How to?export const reference_dart_v1 = {icon: 'reference-dart',title: 'Flutter',@@ -2829,6 +2921,7 @@ export const references = [description: 'something about the reference',icon: '/docs/img/icons/python-icon.svg',url: '/reference/python/start',+ enabled: sdkPythonEnabled,},{label: 'supabase-dart',@@ -2836,6 +2929,7 @@ export const references = [description: 'something about the reference',icon: '/docs/img/icons/dart-icon.svg',url: '/reference/dart/start',+ enabled: sdkDartEnabled,},{label: 'supabase-csharp',@@ -2843,6 +2937,7 @@ export const references = [description: 'something about the reference',icon: '/docs/img/icons/c-sharp-icon.svg',url: '/reference/csharp/start',+ enabled: sdkCsharpEnabled,},{label: 'supabase-swift',@@ -2850,6 +2945,7 @@ export const references = [description: 'something about the reference',icon: '/docs/img/icons/swift-icon.svg',url: '/reference/swift/start',+ enabled: sdkSwiftEnabled,},{label: 'supabase-kt',@@ -2857,6 +2953,7 @@ export const references = [description: 'something about the reference',icon: '/docs/img/icons/kotlin-icon.svg',url: '/reference/kotlin/start',+ enabled: sdkKotlinEnabled,},],},diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsxindex cc6c052a369..83e26413c38 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx@@ -94,23 +94,25 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any{props.subItem.items && props.subItem.items.length > 0 && (<Accordion.Content className="transition data-open:animate-slide-down data-closed:animate-slide-up ml-2">- {props.subItem.items.map((subSubItem) => {- return (- <li key={props.subItem.name}>- <Link- href={`${subSubItem.url}`}- className={[- 'cursor-pointer transition text-sm',- subSubItem.url === pathname- ? 'text-brand'- : 'hover:text-brand text-foreground-lighter',- ].join(' ')}- >- {subSubItem.name}- </Link>- </li>- )- })}+ {props.subItem.items+ .filter((subItem) => subItem.enabled !== false)+ .map((subSubItem) => {+ return (+ <li key={props.subItem.name}>+ <Link+ href={`${subSubItem.url}`}+ className={[+ 'cursor-pointer transition text-sm',+ subSubItem.url === pathname+ ? 'text-brand'+ : 'hover:text-brand text-foreground-lighter',+ ].join(' ')}+ >+ {subSubItem.name}+ </Link>+ </li>+ )+ })}</Accordion.Content>)}</Accordion.Item>@@ -153,28 +155,30 @@ const Content = (props) => {</div></Link>- {menu.items.map((x) => {- return (- <div key={x.name}>- {x.items && x.items.length > 0 ? (- <div className="flex flex-col gap-2.5">- {x.items.map((subItem, subItemIndex) => {- return (- <ContentAccordionLink- key={subItem.name}- subItem={subItem}- subItemIndex={subItemIndex}- parent={x}- />- )- })}- </div>- ) : x.url ? (- <ContentLink url={x.url} icon={x.icon} name={x.name} key={x.name} />- ) : null}- </div>- )- })}+ {menu.items+ .filter((item) => item.enabled !== false)+ .map((x) => {+ return (+ <div key={x.name}>+ {x.items && x.items.length > 0 ? (+ <div className="flex flex-col gap-2.5">+ {x.items.map((subItem, subItemIndex) => {+ return (+ <ContentAccordionLink+ key={subItem.name}+ subItem={subItem}+ subItemIndex={subItemIndex}+ parent={x}+ />+ )+ })}+ </div>+ ) : x.url ? (+ <ContentLink url={x.url} icon={x.icon} name={x.name} key={x.name} />+ ) : null}+ </div>+ )+ })}</ul>)}diff --git a/apps/docs/content/_partials/billing/pricing/pricing_custom_domains.mdx b/apps/docs/content/_partials/billing/pricing/pricing_custom_domains.mdxnew file mode 100644index 00000000000..3e5d3b686d5--- /dev/null+++ b/apps/docs/content/_partials/billing/pricing/pricing_custom_domains.mdx@@ -0,0 +1,3 @@+## Pricing++For a detailed breakdown of how charges are calculated, refer to [Manage Custom Domain usage](/docs/guides/platform/manage-your-usage/custom-domains).diff --git a/apps/docs/content/_partials/billing/pricing/pricing_ipv4.mdx b/apps/docs/content/_partials/billing/pricing/pricing_ipv4.mdxnew file mode 100644index 00000000000..e07ea856d3d--- /dev/null+++ b/apps/docs/content/_partials/billing/pricing/pricing_ipv4.mdx@@ -0,0 +1,3 @@+## Pricing++For a detailed breakdown of how charges are calculated, refer to [Manage IPv4 usage](/docs/guides/platform/manage-your-usage/ipv4).diff --git a/apps/docs/content/_partials/billing/pricing/pricing_mau_sso.mdx b/apps/docs/content/_partials/billing/pricing/pricing_mau_sso.mdxindex bf5d2628bd6..8ba7741e9b9 100644--- a/apps/docs/content/_partials/billing/pricing/pricing_mau_sso.mdx+++ b/apps/docs/content/_partials/billing/pricing/pricing_mau_sso.mdx@@ -1,2 +1,6 @@+## Pricing+<Price price="0.015" /> per SSO MAU. You are only charged for usage exceeding your subscription plan'squota.++For a detailed breakdown of how charges are calculated, refer to [Manage Monthly Active SSO Users usage](/docs/guides/platform/manage-your-usage/monthly-active-users-sso).diff --git a/apps/docs/content/_partials/billing/pricing/pricing_mau_third_party.mdx b/apps/docs/content/_partials/billing/pricing/pricing_mau_third_party.mdxindex aa7576751bd..cbfccef3877 100644--- a/apps/docs/content/_partials/billing/pricing/pricing_mau_third_party.mdx+++ b/apps/docs/content/_partials/billing/pricing/pricing_mau_third_party.mdx@@ -1,2 +1,6 @@+## Pricing+<Price price="0.00325" /> per Third-Party MAU. You are only charged for usage exceeding your subscriptionplan's quota.++For a detailed breakdown of how charges are calculated, refer to [Manage Monthly Active Third-Party Users usage](/docs/guides/platform/manage-your-usage/monthly-active-users-third-party).diff --git a/apps/docs/content/_partials/billing/pricing/pricing_mfa_phone.mdx b/apps/docs/content/_partials/billing/pricing/pricing_mfa_phone.mdxindex 5635b906706..6708ec7a9d0 100644--- a/apps/docs/content/_partials/billing/pricing/pricing_mfa_phone.mdx+++ b/apps/docs/content/_partials/billing/pricing/pricing_mfa_phone.mdx@@ -1,3 +1,5 @@+## Pricing+<Price price="0.1027" /> per hour (<Price price="75" /> per month) for the first project. <Price price="0.0137" /> perhour (<Price price="10" /> per month) for every additional project.@@ -6,3 +8,5 @@ hour (<Price price="10" /> per month) for every additional project.| Pro | <Price price="75" /> | <Price price="10" /> | <Price price="10" /> || Team | <Price price="75" /> | <Price price="10" /> | <Price price="10" /> || Enterprise | Custom | Custom | Custom |++For a detailed breakdown of how charges are calculated, refer to [Manage Advanced MFA Phone usage](/docs/guides/platform/manage-your-usage/advanced-mfa-phone).diff --git a/apps/docs/content/_partials/billing/pricing/pricing_pitr.mdx b/apps/docs/content/_partials/billing/pricing/pricing_pitr.mdxindex 36b2c8801f1..98559804a69 100644--- a/apps/docs/content/_partials/billing/pricing/pricing_pitr.mdx+++ b/apps/docs/content/_partials/billing/pricing/pricing_pitr.mdx@@ -1,3 +1,5 @@+### Pricing+Pricing depends on the recovery retention period, which determines how many days back you can restore data to any chosen point of up to seconds in granularity.| Recovery Retention Period in Days | Hourly Price USD | Monthly Price USD |@@ -5,3 +7,5 @@ Pricing depends on the recovery retention period, which determines how many days| 7 | <Price price="0.137" /> | <Price price="100" /> || 14 | <Price price="0.274" /> | <Price price="200" /> || 28 | <Price price="0.55" /> | <Price price="400" /> |++For a detailed breakdown of how charges are calculated, refer to [Manage Point-in-Time Recovery usage](/docs/guides/platform/manage-your-usage/point-in-time-recovery).diff --git a/apps/docs/content/_partials/billing/pricing/pricing_storage_image_transformations.mdx b/apps/docs/content/_partials/billing/pricing/pricing_storage_image_transformations.mdxindex 4c4d4d429db..f8d93e45ab6 100644--- a/apps/docs/content/_partials/billing/pricing/pricing_storage_image_transformations.mdx+++ b/apps/docs/content/_partials/billing/pricing/pricing_storage_image_transformations.mdx@@ -1,3 +1,5 @@+## Pricing+<Price price="5" /> per 1,000 origin images. You are only charged for usage exceeding your subscriptionplan's quota.@@ -12,3 +14,5 @@ The count resets at the start of each billing cycle.| Pro | 100 | <Price price="5" /> per 1,000 origin images || Team | 100 | <Price price="5" /> per 1,000 origin images || Enterprise | Custom | Custom |++For a detailed breakdown of how charges are calculated, refer to [Manage Storage Image Transformations usage](/docs/guides/platform/manage-your-usage/storage-image-transformations).diff --git a/apps/docs/content/_partials/providers.mdx b/apps/docs/content/_partials/providers.mdxnew file mode 100644index 00000000000..4f4fe7f2def--- /dev/null+++ b/apps/docs/content/_partials/providers.mdx@@ -0,0 +1,11 @@+## Providers++Supabase Auth works with many popular Auth methods, including Social and Phone Auth using third-party providers. See the following sections for a list of supported third-party providers.++### Social Auth++<AuthProviders type="social" />++### Phone Auth++<AuthProviders type="phone" />diff --git a/apps/docs/content/guides/api/quickstart.mdx b/apps/docs/content/guides/api/quickstart.mdxindex 7ba5b9b8809..432838a2aa8 100644--- a/apps/docs/content/guides/api/quickstart.mdx+++ b/apps/docs/content/guides/api/quickstart.mdx@@ -156,6 +156,7 @@ const { data, error } = await supabase.from('todos').select()```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -163,6 +164,8 @@ final data = await supabase.from('todos').select('*');```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -170,6 +173,8 @@ response = supabase.table('todos').select("*").execute()```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -177,4 +182,5 @@ let response = try await supabase.from("todos").select()```</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/api/using-custom-schemas.mdx b/apps/docs/content/guides/api/using-custom-schemas.mdxindex 5f9fe4770d5..55af9da01d2 100644--- a/apps/docs/content/guides/api/using-custom-schemas.mdx+++ b/apps/docs/content/guides/api/using-custom-schemas.mdx@@ -57,8 +57,8 @@ const { data: todos, error } = await supabase.schema('myschema').from('todos').s```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">-```dart// Initialize the Flutter clientawait Supabase.initialize(@@ -73,9 +73,10 @@ final data = await supabase.from('todos').select();// You can also change the target schema on a per-query basisfinal data = await supabase.schema('myschema').from('todos').select();-```+````</TabPanel>+</$Show><TabPanel id="curl" label="cURL">```bash@@ -94,7 +95,7 @@ curl -X POST '<SUPABASE_URL>/rest/v1/todos' \-H "Content-Type: application/json" \-H "Content-Profile: myschema" \-d '{"column_name": "value"}'-```+````</TabPanel></Tabs>diff --git a/apps/docs/content/guides/auth.mdx b/apps/docs/content/guides/auth.mdxindex 213d1b91a1c..849e30219a0 100644--- a/apps/docs/content/guides/auth.mdx+++ b/apps/docs/content/guides/auth.mdx@@ -27,17 +27,9 @@ Auth uses your project's Postgres database under the hood, storing user data andAuth also enables access control to your database's automatically generated [REST API](/docs/guides/api). When using Supabase SDKs, your data requests are automatically sent with the user's Auth Token. The Auth Token scopes database access on a row-by-row level when used along with [RLS policies](/docs/guides/database/postgres/row-level-security).-## Providers--Supabase Auth works with many popular Auth methods, including Social and Phone Auth using third-party providers. See the following sections for a list of supported third-party providers.--### Social Auth--<AuthProviders type="social" />--### Phone Auth--<AuthProviders type="phone" />+<$Show if="authentication:show_providers">+<$Partial path="providers.mdx" />+</$Show>## Pricingdiff --git a/apps/docs/content/guides/auth/auth-anonymous.mdx b/apps/docs/content/guides/auth/auth-anonymous.mdxindex 30b6af58592..f6c16268b0f 100644--- a/apps/docs/content/guides/auth/auth-anonymous.mdx+++ b/apps/docs/content/guides/auth/auth-anonymous.mdx@@ -64,6 +64,7 @@ const { data, error } = await supabase.auth.signInAnonymously()```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Flutter">Call the [`signInAnonymously()`](/docs/reference/dart/auth-signinanonymously) method:@@ -73,6 +74,8 @@ await supabase.auth.signInAnonymously();```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Call the [`signInAnonymously()`](/docs/reference/swift/auth-signinanonymously) method:@@ -82,6 +85,8 @@ let session = try await supabase.auth.signInAnonymously()```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">Call the [`signInAnonymously()`](/docs/reference/kotlin/auth-signinanonymously) method:@@ -91,6 +96,8 @@ supabase.auth.signInAnonymously()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">Call the [`sign_in_anonymously()`](/docs/reference/python/auth-signinanonymously) method:@@ -100,6 +107,7 @@ response = supabase.auth.sign_in_anonymously()```</TabPanel>+</$Show></Tabs>## Convert an anonymous user to a permanent user@@ -138,6 +146,7 @@ const { data: updatePasswordData, error: updatePasswordError } = await supabase.```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Flutter">You can use the [`updateUser()`](/docs/reference/dart/auth-updateuser) method to link an email or phone identity to the anonymous user.@@ -147,6 +156,8 @@ await supabase.auth.updateUser(UserAttributes(email: '[email protected]'))```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">You can use the [`updateUser()`](/docs/reference/swift/auth-updateuser) method to link an email or phone identity to the anonymous user.@@ -158,6 +169,8 @@ try await supabase.auth.updateUser(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">You can use the [`updateUser()`](/docs/reference/kotlin/auth-updateuser) method to link an email or phone identity to the anonymous user.@@ -169,6 +182,8 @@ supabase.auth.updateUser {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">You can use the [`update_user()`](/docs/reference/python/auth-updateuser) method to link an email or phone identity to the anonymous user. To add a password for the anonymous user, the user's email or phone number needs to be verified first.@@ -188,6 +203,7 @@ response = supabase.auth.update_user({```</TabPanel>+</$Show></Tabs>### Link an OAuth identity@@ -212,6 +228,7 @@ const { data, error } = await supabase.auth.linkIdentity({ provider: 'google' })```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Flutter">You can use the [`linkIdentity()`](/docs/reference/dart/auth-linkidentity) method to link an OAuth identity to the anonymous user.@@ -221,6 +238,8 @@ await supabase.auth.linkIdentity(OAuthProvider.google);```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">You can use the [`linkIdentity()`](/docs/reference/swift/auth-linkidentity) method to link an OAuth identity to the anonymous user.@@ -230,6 +249,8 @@ try await supabase.auth.linkIdentity(provider: .google)```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">You can use the [`linkIdentity()`](/docs/reference/kotlin/auth-linkidentity) method to link an OAuth identity to the anonymous user.@@ -239,6 +260,8 @@ supabase.auth.linkIdentity(Google)```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">You can use the [`link_identity()`](/docs/reference/python/auth-linkidentity) method to link an OAuth identity to the anonymous user.@@ -248,6 +271,7 @@ response = supabase.auth.link_identity({'provider': 'google'})```</TabPanel>+</$Show></Tabs>## Access controldiff --git a/apps/docs/content/guides/auth/auth-email-passwordless.mdx b/apps/docs/content/guides/auth/auth-email-passwordless.mdxindex c6f2a6af289..ee2fc051a05 100644--- a/apps/docs/content/guides/auth/auth-email-passwordless.mdx+++ b/apps/docs/content/guides/auth/auth-email-passwordless.mdx@@ -81,6 +81,7 @@ const { error } = await supabase.auth.signInWithOtp({Read the [Deep Linking Documentation](/docs/guides/auth/native-mobile-deep-linking) to learn how to handle deep linking.</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -90,6 +91,8 @@ Future<void> signInWithEmail() async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -102,6 +105,8 @@ try await supabase.auth.signInWithOTP(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -113,6 +118,8 @@ suspend fun signInWithEmail() {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -127,6 +134,7 @@ response = supabase.auth.sign_in_with_otp({```</TabPanel>+</$Show></Tabs>{/* supa-mdx-lint-disable-next-line Rule004ExcludeWords */}@@ -207,6 +215,7 @@ const { data, error } = await supabase.auth.signInWithOtp({```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -216,6 +225,8 @@ Future<void> signInWithEmailOtp() async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -227,6 +238,8 @@ try await supabase.auth.signInWithOTP(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -238,6 +251,8 @@ suspend fun signInWithEmailOtp() {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -251,6 +266,7 @@ response = supabase.auth.sign_in_with_otp({```</TabPanel>+</$Show></Tabs>If the request is successful, you receive a response with `error: null` and a `data` object where both `user` and `session` are null. Let the user know to check their email inbox.@@ -296,6 +312,7 @@ const {```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -307,6 +324,8 @@ try await supabase.auth.verifyOTP(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -314,6 +333,8 @@ supabase.auth.verifyEmailOtp(type = OtpType.Email.EMAIL, email = "email", token```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -325,6 +346,7 @@ response = supabase.auth.verify_otp({```</TabPanel>+</$Show></Tabs>If successful, the user is now logged in, and you receive a valid session that looks like:diff --git a/apps/docs/content/guides/auth/auth-identity-linking.mdx b/apps/docs/content/guides/auth/auth-identity-linking.mdxindex 43198263a2c..8ccdb45aae4 100644--- a/apps/docs/content/guides/auth/auth-identity-linking.mdx+++ b/apps/docs/content/guides/auth/auth-identity-linking.mdx@@ -42,6 +42,7 @@ const { data, error } = await supabase.auth.linkIdentity({ provider: 'google' })```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">Supabase Auth allows a user to initiate identity linking with a different email address when they are logged in. To link an OAuth identity to the user, call [`linkIdentity()`](/docs/reference/dart/auth-linkidentity):@@ -51,6 +52,8 @@ await supabase.auth.linkIdentity(OAuthProvider.google);```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Supabase Auth allows a user to initiate identity linking with a different email address when they are logged in. To link an OAuth identity to the user, call [`linkIdentity()`](/docs/reference/swift/auth-linkidentity):@@ -60,6 +63,8 @@ try await supabase.auth.linkIdentity(provider: .google)```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">Supabase Auth allows a user to initiate identity linking with a different email address when they are logged in. To link an OAuth identity to the user, call [`linkIdentity()`](/docs/reference/kotlin/auth-linkidentity):@@ -69,6 +74,8 @@ supabase.auth.linkIdentity(Google)```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">Supabase Auth allows a user to initiate identity linking with a different email address when they are logged in. To link an OAuth identity to the user, call [`link_identity()`](/docs/reference/python/auth-linkidentity):@@ -78,6 +85,7 @@ response = supabase.auth.link_identity({'provider': 'google'})```</TabPanel>+</$Show></Tabs>In the example above, the user will be redirected to Google to complete the OAuth2.0 flow. Once the OAuth2.0 flow has completed successfully, the user will be redirected back to the application and the Google identity will be linked to the user. You can enable manual linking from your project's authentication [configuration options](/dashboard/project/_/settings/auth) or by setting the environment variable `GOTRUE_SECURITY_MANUAL_LINKING_ENABLED: true` when self-hosting.@@ -115,6 +123,7 @@ if (!identitiesError) {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">You can use [`getUserIdentities()`](/docs/reference/dart/auth-getuseridentities) to fetch all the identities linked to a user. Then, call [`unlinkIdentity()`](/docs/reference/dart/auth-unlinkidentity) to unlink the identity. The user needs to be logged in and have at least 2 linked identities in order to unlink an existing identity.@@ -132,6 +141,8 @@ await supabase.auth.unlinkIdentity(googleIdentity);```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">You can use [`getUserIdentities()`](/docs/reference/swift/auth-getuseridentities) to fetch all the identities linked to a user. Then, call [`unlinkIdentity()`](/docs/reference/swift/auth-unlinkidentity) to unlink the identity. The user needs to be logged in and have at least 2 linked identities in order to unlink an existing identity.@@ -148,6 +159,8 @@ try await supabase.auth.unlinkIdentity(googleIdentity)```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">You can use [`currentIdentitiesOrNull()`](/docs/reference/kotlin/auth-getuseridentities) to get all the identities linked to a user. Then, call [`unlinkIdentity()`](/docs/reference/kotlin/auth-unlinkidentity) to unlink the identity. The user needs to be logged in and have at least 2 linked identities in order to unlink an existing identity.@@ -164,6 +177,8 @@ supabase.auth.unlinkIdentity(googleIdentity.identityId!!)```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">You can use [`get_user_identities()`](/docs/reference/python/auth-getuseridentities) to fetch all the identities linked to a user. Then, call [`unlink_identity()`](/docs/reference/python/auth-unlinkidentity) to unlink the identity. The user needs to be logged in and have at least 2 linked identities in order to unlink an existing identity.@@ -181,6 +196,7 @@ if google_identity:```</TabPanel>+</$Show></Tabs>## Frequently asked questionsdiff --git a/apps/docs/content/guides/auth/auth-mfa/phone.mdx b/apps/docs/content/guides/auth/auth-mfa/phone.mdxindex 35292146ba8..f29187d7227 100644--- a/apps/docs/content/guides/auth/auth-mfa/phone.mdx+++ b/apps/docs/content/guides/auth/auth-mfa/phone.mdx@@ -310,8 +310,6 @@ Each code is valid for up to 5 minutes, after which a new one can be sent. SucceBe aware that Phone MFA is vulnerable to SIM swap attacks where an attacker will call a mobile provider and ask to port the target's phone number to a new SIM card and then use the said SIM card to intercept an MFA code. Evaluate the your application's tolerance for such an attack. You can read more about SIM swapping attacks [here](https://en.wikipedia.org/wiki/SIM_swap_scam)-## Pricing-+<$Show if="billing:all"><$Partial path="billing/pricing/pricing_mfa_phone.mdx" />--For a detailed breakdown of how charges are calculated, refer to [Manage Advanced MFA Phone usage](/docs/guides/platform/manage-your-usage/advanced-mfa-phone).+</$Show>diff --git a/apps/docs/content/guides/auth/debugging/error-codes.mdx b/apps/docs/content/guides/auth/debugging/error-codes.mdxindex 43dd3a762d2..9e0b429fcfc 100644--- a/apps/docs/content/guides/auth/debugging/error-codes.mdx+++ b/apps/docs/content/guides/auth/debugging/error-codes.mdx@@ -36,6 +36,7 @@ Error objects are split in a few classes:Errors originating from the server API classed as `AuthApiError` always have a `code` property that can be used to identify the error returned by the server. The `status` property is also present, encoding the HTTP status code received in the response.</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">All errors originating from the `supabase.auth` namespace of the client library will be wrapped by the `AuthException` class.@@ -44,12 +45,16 @@ Error objects are split in a few classes. `AuthApiException` is an exception whiErrors originating from the server API classed as `AuthApiException` always have a `code` property that can be used to identify the error returned by the server. The `statusCode` property is also present, encoding the HTTP status code received in the response.</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">All errors originating from the `supabase.auth` namespace of the client library will be a case of the `AuthError` enum.The `api(message:errorCode:underlyingData:underlyingResponse:)` case is a special case for errors which originates from the Supabase Auth API, this error always have an `errorCode` property that can be used to identify the error returned by the server.</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">All errors originating from the `supabase.auth` namespace of the client library will be wrapped by the `AuthError` class.@@ -58,6 +63,8 @@ Error objects are split in a few classes. `AuthApiError` is an error which origiErrors originating from the server API classed as `AuthApiError` always have a `code` property that can be used to identify the error returned by the server. The `status` property is also present, encoding the HTTP status code received in the response.</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">All exceptions originating from the `supabase.auth` namespace of the Kotlin client library will be a subclass of `RestException`.@@ -70,6 +77,7 @@ Rest exceptions are split into a few classes:All instances and subclasses of a `AuthRestException` have a `errorCode` property that can be used to identify the error returned by the server.</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/auth/enterprise-sso/auth-sso-saml.mdx b/apps/docs/content/guides/auth/enterprise-sso/auth-sso-saml.mdxindex 77144658e12..653b7a4c6e7 100644--- a/apps/docs/content/guides/auth/enterprise-sso/auth-sso-saml.mdx+++ b/apps/docs/content/guides/auth/enterprise-sso/auth-sso-saml.mdx@@ -206,6 +206,7 @@ supabase.auth.signInWithSSO({Calling [`signInWithSSO`](/docs/reference/javascript/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead.</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -217,6 +218,8 @@ await supabase.auth.signInWithSSO(Calling [`signInWithSSO`](/docs/reference/dart/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead.</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -228,6 +231,8 @@ try await supabase.auth.signInWithSSO(Calling [`signInWithSSO`](/docs/reference/swift/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead.</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -239,6 +244,7 @@ supabase.auth.signInWith(SSO) {Calling [`signInWith(SSO)`](/docs/reference/kotlin/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead.</TabPanel>+</$Show></Tabs>### Understanding attribute mappings@@ -384,11 +390,9 @@ supabase sso show <provider-id> --project-ref <your-project>You can use the `-o json` flag to output the information as JSON, should you need to. Other formats may be supported, use `--help` to see all available options.-## Pricing-+<$Show if="billing:all"><$Partial path="billing/pricing/pricing_mau_sso.mdx" />--For a detailed breakdown of how charges are calculated, refer to [Manage Monthly Active SSO Users usage](/docs/guides/platform/manage-your-usage/monthly-active-users-sso).+</$Show>## Frequently asked questionsdiff --git a/apps/docs/content/guides/auth/jwts.mdx b/apps/docs/content/guides/auth/jwts.mdxindex cc98b5825f2..bbdf43a7738 100644--- a/apps/docs/content/guides/auth/jwts.mdx+++ b/apps/docs/content/guides/auth/jwts.mdx@@ -106,6 +106,8 @@ const supabase = createClient(</TabPanel>+<$Show if="sdk:dart">+<TabPanel id="dart" label="Flutter">```dart@@ -120,6 +122,9 @@ await Supabase.initialize(```</TabPanel>+</$Show>++<$Show if="sdk:swift"><TabPanel id="swift" label="Swift (iOS)">@@ -140,6 +145,9 @@ let supabase = SupabaseClient(```</TabPanel>+</$Show>++<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">@@ -155,6 +163,7 @@ val supabase = createSupabaseClient(```</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/auth/managing-user-data.mdx b/apps/docs/content/guides/auth/managing-user-data.mdxindex 150c6069ab2..625f6434d5d 100644--- a/apps/docs/content/guides/auth/managing-user-data.mdx+++ b/apps/docs/content/guides/auth/managing-user-data.mdx@@ -85,6 +85,7 @@ const { data, error } = await supabase.auth.signUp({```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -99,6 +100,8 @@ final res = await supabase.auth.signUp(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -113,6 +116,8 @@ try await supabase.auth.signUp(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -127,6 +132,7 @@ val data = supabase.auth.signUpWith(Email) {```</TabPanel>+</$Show></Tabs>User metadata is stored on the `raw_user_meta_data` column of the `auth.users` table. To view the metadata:@@ -152,6 +158,7 @@ let metadata = user?.user_metadata```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -160,6 +167,8 @@ final Map<String, dynamic>? metadata = user?.userMetadata;```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -168,6 +177,8 @@ let metadata = user.userMetadata```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -178,6 +189,7 @@ val metadata = user?.userMetadata```</TabPanel>+</$Show></Tabs>## Deleting usersdiff --git a/apps/docs/content/guides/auth/native-mobile-deep-linking.mdx b/apps/docs/content/guides/auth/native-mobile-deep-linking.mdxindex 28058e5fe40..c8473e7dc08 100644--- a/apps/docs/content/guides/auth/native-mobile-deep-linking.mdx+++ b/apps/docs/content/guides/auth/native-mobile-deep-linking.mdx@@ -304,6 +304,8 @@ With Deep Linking, you can configure this redirect to open a specific page. This</TabPanel>+<$Show if="sdk:swift">+<TabPanel id="swift" label="Swift">### Deep link config@@ -342,6 +344,8 @@ With Deep Linking, you can configure this redirect to open a specific page. This```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Android Kotlin">### Deep link config@@ -396,4 +400,5 @@ With Deep Linking, you can configure this redirect to open a specific page. ThisThe user will now be authenticated when your app receives a valid deep link!</TabPanel>+ </$Show></Tabs>diff --git a/apps/docs/content/guides/auth/passwords.mdx b/apps/docs/content/guides/auth/passwords.mdxindex 218d675e6da..2ff8353c077 100644--- a/apps/docs/content/guides/auth/passwords.mdx+++ b/apps/docs/content/guides/auth/passwords.mdx@@ -72,6 +72,7 @@ async function signUpNewUser() {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">To sign up the user, call [signUp()](/docs/reference/dart/auth-signup) with their email address and password:@@ -86,6 +87,8 @@ Future<void> signUpNewUser() async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">To sign up the user, call [signUp()](/docs/reference/swift/auth-signup) with their email address and password.@@ -103,6 +106,8 @@ let response = try await supabase.auth.signUp(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">To sign up the user, call [signUpWith(Email)](/docs/reference/kotlin/auth-signup) with their email address and password:@@ -117,6 +122,8 @@ suspend fun signUpNewUser() {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">To sign up the user, call [signUp()](/docs/reference/python/auth-signup) with their email address and password.@@ -136,6 +143,7 @@ data = await supabase.auth.sign_up({```</TabPanel>+</$Show></Tabs></TabPanel>@@ -409,6 +417,7 @@ async function signUpNewUser() {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">To sign up the user, call [signUp()](/docs/reference/dart/auth-signup) with their email address and password:@@ -423,6 +432,8 @@ Future<void> signUpNewUser() async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">To sign up the user, call [signUp()](/docs/reference/swift/auth-signup) with their email address and password:@@ -435,6 +446,8 @@ let response = try await supabase.auth.signUp(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">To sign up the user, call [signUpWith(Email)](/docs/reference/kotlin/auth-signup) with their email address and password:@@ -449,6 +462,8 @@ suspend fun signUpNewUser() {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">To sign up the user, call [signUp()](/docs/reference/python/auth-signup) with their email address and password:@@ -461,6 +476,7 @@ data = supabase.auth.sign_up({```</TabPanel>+</$Show></Tabs></TabPanel>@@ -493,6 +509,7 @@ async function signInWithEmail() {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">When your user signs in, call [`signInWithPassword()`](/docs/reference/dart/auth-signinwithpassword) with their email address and password:@@ -507,6 +524,8 @@ Future<void> signInWithEmail() async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">When your user signs in, call [signIn(email:password:)](/docs/reference/swift/auth-signinwithpassword) with their email address and password:@@ -519,6 +538,8 @@ try await supabase.auth.signIn(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Email)](/docs/reference/kotlin/auth-signinwithpassword) with their email address and password:@@ -533,6 +554,8 @@ suspend fun signInWithEmail() {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">When your user signs in, call [sign_in_with_password()](/docs/reference/python/auth-signinwithpassword) with their email address and password:@@ -545,6 +568,7 @@ data = client.auth.sign_in_with_password({```</TabPanel>+</$Show></Tabs>### Resetting a password@@ -583,6 +607,7 @@ await supabase.auth.resetPasswordForEmail('[email protected]', {```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -593,6 +618,8 @@ try await supabase.auth.resetPasswordForEmail(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -605,6 +632,8 @@ supabase.auth.resetPasswordForEmail(If you are on one of the Kotlin targets that have built-in support for redirect URL handling, such as Android, see [OAuth and OTP link verification](https://supabase.com/docs/reference/kotlin/initializing).</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -615,6 +644,7 @@ client.auth.reset_password_email(```</TabPanel>+</$Show></Tabs>#### Step 2: Create a change password page@@ -880,6 +910,7 @@ async function resetPassword() {```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -887,6 +918,8 @@ try await supabase.auth.resetPasswordForEmail("[email protected]")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -896,6 +929,8 @@ supabase.gotrue.sendRecoveryEmail(```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -903,6 +938,7 @@ supabase.auth.reset_password_email('[email protected]')```</TabPanel>+</$Show></Tabs>Once you have a session, collect the user's new password and call `updateUser` to update their password.@@ -929,6 +965,7 @@ await supabase.auth.updateUser({ password: 'new_password' })```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -936,6 +973,8 @@ try await supabase.auth.updateUser(user: UserAttributes(password: newPassword))```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -945,6 +984,8 @@ supabase.auth.updateUser {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -952,6 +993,7 @@ supabase.auth.update_user({'password': 'new_password'})```</TabPanel>+</$Show></Tabs>### Email sending@@ -1022,6 +1064,7 @@ const { data, error } = await supabase.auth.signUp({```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1032,6 +1075,8 @@ try await supabase.auth.signUp(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1042,6 +1087,8 @@ supabase.auth.signUpWith(Phone) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1052,6 +1099,7 @@ supabase.auth.sign_up({```</TabPanel>+</$Show><TabPanel id="http" label="HTTP">```bash@@ -1096,6 +1144,7 @@ const {```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to `verifyOTP`:@@ -1109,6 +1158,8 @@ try await supabase.auth.verifyOTP(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to `verifyPhoneOtp`:@@ -1122,6 +1173,8 @@ supabase.auth.verifyPhoneOtp(```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to `verify_otp`:@@ -1135,6 +1188,7 @@ supabase.auth.verify_otp({```</TabPanel>+</$Show><TabPanel id="http" label="HTTP">```bash@@ -1176,6 +1230,7 @@ const { data, error } = await supabase.auth.signInWithPassword({```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1186,6 +1241,8 @@ try await supabase.auth.signIn(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1196,6 +1253,8 @@ supabase.auth.signInWith(Phone) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1206,6 +1265,7 @@ supabase.auth.sign_in_with_password({```</TabPanel>+</$Show><TabPanel id="http" label="HTTP">```bashdiff --git a/apps/docs/content/guides/auth/phone-login.mdx b/apps/docs/content/guides/auth/phone-login.mdxindex 5f6279b5a13..fab354ef5a2 100644--- a/apps/docs/content/guides/auth/phone-login.mdx+++ b/apps/docs/content/guides/auth/phone-login.mdx@@ -57,6 +57,7 @@ const { data, error } = await supabase.auth.signInWithOtp({```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -66,6 +67,8 @@ try await supabase.auth.signInWithOTP(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -75,6 +78,8 @@ supabase.auth.signInWith(OTP) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -84,6 +89,7 @@ response = supabase.auth.sign_in_with_otp({```</TabPanel>+</$Show><TabPanel id="http" label="HTTP">```bash@@ -131,6 +137,7 @@ const {```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to `verifyOTP`:@@ -144,6 +151,8 @@ try await supabase.auth.verifyOTP(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to `verifyPhoneOtp`:@@ -157,6 +166,8 @@ supabase.auth.verifyPhoneOtp(```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to `verify_otp`:@@ -170,6 +181,7 @@ response = supabase.auth.verify_otp({```</TabPanel>+</$Show><TabPanel id="http" label="HTTP">```bash@@ -223,6 +235,7 @@ const { data, error } = await supabase.auth.updateUser({```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -234,6 +247,8 @@ try await supabase.auth.updateUser(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -243,6 +258,8 @@ supabase.auth.updateUser {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -252,6 +269,7 @@ response = supabase.auth.update_user({```</TabPanel>+</$Show></Tabs>The user receives an SMS with a 6-digit pin that you must [verify](#verifying-a-phone-otp) within 60 seconds.diff --git a/apps/docs/content/guides/auth/signout.mdx b/apps/docs/content/guides/auth/signout.mdxindex 66cbd826f11..932c0bb9b71 100644--- a/apps/docs/content/guides/auth/signout.mdx+++ b/apps/docs/content/guides/auth/signout.mdx@@ -30,6 +30,7 @@ async function signOut() {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -39,6 +40,8 @@ Future<void> signOut() async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -46,6 +49,8 @@ try await supabase.auth.signOut()```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -55,6 +60,8 @@ suspend fun logout() {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -62,6 +69,7 @@ supabase.auth.sign_out()```</TabPanel>+</$Show></Tabs>## Sign out and scopes@@ -99,6 +107,7 @@ await supabase.auth.signOut({ scope: 'local' })```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -110,6 +119,8 @@ await supabase.auth.signOut(scope: SignOutScope.global);```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -121,6 +132,7 @@ supabase.auth.signOut(SignOutScope.GLOBAL)```</TabPanel>+</$Show></Tabs>Upon sign out, all refresh tokens and potentially other database objects related to the affected sessions are destroyed and the client library removes the session stored in the local storage medium.diff --git a/apps/docs/content/guides/auth/social-login/auth-apple.mdx b/apps/docs/content/guides/auth/social-login/auth-apple.mdxindex 98d33c6856c..53c5927a333 100644--- a/apps/docs/content/guides/auth/social-login/auth-apple.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-apple.mdx@@ -320,6 +320,8 @@ curl -X PATCH "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \</TabPanel>+<$Show if="sdk:swift">+<TabPanel id="swift" label="Swift">## Using native sign in with Apple in Swift@@ -378,6 +380,9 @@ curl -X PATCH "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \</Admonition></TabPanel>+ </$Show>++<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">@@ -419,4 +424,5 @@ curl -X PATCH "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \```</TabPanel>+ </$Show></Tabs>diff --git a/apps/docs/content/guides/auth/social-login/auth-azure.mdx b/apps/docs/content/guides/auth/social-login/auth-azure.mdxindex c9176e917ee..9967206d72d 100644--- a/apps/docs/content/guides/auth/social-login/auth-azure.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-azure.mdx@@ -180,6 +180,7 @@ Future<void> signInWithAzure() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Azure` as the `Provider`:@@ -193,6 +194,7 @@ suspend fun signInWithAzure() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -230,6 +232,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -241,6 +244,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Obtain the provider refresh token@@ -284,6 +288,7 @@ Future<void> signInWithAzure() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -295,6 +300,7 @@ suspend fun signInWithAzure() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdxindex 24eb3432ac0..d41f1673825 100644--- a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx@@ -91,6 +91,7 @@ Future<void> signInWithBitbucket() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Bitbucket` as the `Provider`:@@ -102,6 +103,7 @@ suspend fun signInWithBitbucket() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -142,6 +144,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -153,6 +156,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-discord.mdx b/apps/docs/content/guides/auth/social-login/auth-discord.mdxindex 927854fdef2..6e6fdc7a702 100644--- a/apps/docs/content/guides/auth/social-login/auth-discord.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-discord.mdx@@ -108,6 +108,7 @@ Future<void> signInWithDiscord() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Discord` as the `Provider`:@@ -119,6 +120,7 @@ suspend fun signInWithDiscord() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -161,6 +163,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -172,6 +175,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx b/apps/docs/content/guides/auth/social-login/auth-facebook.mdxindex 5412fefbec7..5ae0b7271b1 100644--- a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-facebook.mdx@@ -171,6 +171,7 @@ Make sure to configure your Facebook app properly and add the required permissio</Admonition></TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">When your user signs in, call [`signInWithOAuth()`](/docs/reference/swift/auth-signinwithoauth) with `facebook` as the `provider`:@@ -191,6 +192,8 @@ func signInWithFacebook() async throws {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Facebook` as the `Provider`:@@ -202,6 +205,7 @@ suspend fun signInWithFacebook() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -239,6 +243,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">When your user signs out, call [signOut()](/docs/reference/swift/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -250,6 +255,8 @@ func signOut() async throws {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -261,6 +268,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>Now, you should be able to login with Facebook and alert you to `Submit for Login Review` when users try to sign into your app. Follow the instructions there to make your app go live for full features and products.diff --git a/apps/docs/content/guides/auth/social-login/auth-figma.mdx b/apps/docs/content/guides/auth/social-login/auth-figma.mdxindex 6fd11bdc0c9..f934234e9c8 100644--- a/apps/docs/content/guides/auth/social-login/auth-figma.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-figma.mdx@@ -88,6 +88,7 @@ Future<void> signInWithFigma() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Figma` as the `Provider`:@@ -99,6 +100,7 @@ suspend fun signInWithFigma() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -136,6 +138,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -147,6 +150,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-github.mdx b/apps/docs/content/guides/auth/social-login/auth-github.mdxindex a23a426d2f0..2fdb1896505 100644--- a/apps/docs/content/guides/auth/social-login/auth-github.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-github.mdx@@ -103,6 +103,7 @@ Future<void> signInWithGithub() async {```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">When your user signs in, call [`signInWithOAuth`](/docs/reference/swift/auth-signinwithoauth) with `.github` as the `Provider`:@@ -117,6 +118,8 @@ func signInWithGithub() async throws {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with [`Github`](https://github.com/supabase-community/supabase-kt/blob/master/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/providers/Providers.kt#L16-L20) as the `Provider`:@@ -128,6 +131,7 @@ suspend fun signInWithGithub() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -168,6 +172,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -179,6 +184,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdxindex 56df4e93f72..91c74107c49 100644--- a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx@@ -88,6 +88,7 @@ Future<void> signInWithGitLab() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Gitlab` as the `Provider`:@@ -99,6 +100,7 @@ suspend fun signInWithGitLab() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -139,6 +141,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -150,6 +153,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-google.mdx b/apps/docs/content/guides/auth/social-login/auth-google.mdxindex be691bad7f7..42be9b5d23c 100644--- a/apps/docs/content/guides/auth/social-login/auth-google.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-google.mdx@@ -145,6 +145,8 @@ To use Google's pre-built signin buttons:</TabPanel>+<$Show if="sdk:swift">+<TabPanel id="swift" label="Swift">Google sign-in with Supabase is done through the [`GoogleSignIn-iOS`](https://github.com/google/GoogleSignIn-iOS) package.@@ -189,6 +191,7 @@ To use Google's pre-built signin buttons:3. Add web client ID and iOS client ID from step 1 in the [Google provider on the Supabase Dashboard](https://supabase.com/dashboard/project/_/auth/providers), under _Client IDs_, separated by a comma. Enable the `Skip nonce check` option.</TabPanel>+ </$Show><TabPanel id="android" label="Android (Kotlin)">diff --git a/apps/docs/content/guides/auth/social-login/auth-kakao.mdx b/apps/docs/content/guides/auth/social-login/auth-kakao.mdxindex 950c50f67bb..97da18051a7 100644--- a/apps/docs/content/guides/auth/social-login/auth-kakao.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-kakao.mdx@@ -112,6 +112,7 @@ Future<void> signInWithKakao() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Kakao` as the `Provider`:@@ -123,6 +124,7 @@ suspend fun signInWithKakao() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -156,6 +158,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -167,6 +170,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Using Kakao Login JS SDKdiff --git a/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx b/apps/docs/content/guides/auth/social-login/auth-keycloak.mdxindex 73ec7c240af..df911c2794f 100644--- a/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx@@ -106,6 +106,7 @@ Future<void> signInWithKeycloak() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Keycloak` as the `Provider`:@@ -119,6 +120,7 @@ suspend fun signInWithKeycloak() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -152,6 +154,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -167,6 +170,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdxindex 8a04410f563..beee52a0ba9 100644--- a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx@@ -108,6 +108,7 @@ Future<void> signInWithLinkedIn() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `LinkedIn` as the `Provider`:@@ -119,6 +120,7 @@ suspend fun signInWithKaLinkedIn() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -156,6 +158,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -167,6 +170,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## LinkedIn Open ID Connect (OIDC)diff --git a/apps/docs/content/guides/auth/social-login/auth-notion.mdx b/apps/docs/content/guides/auth/social-login/auth-notion.mdxindex 4b3b115b9dc..6a4db97cbe7 100644--- a/apps/docs/content/guides/auth/social-login/auth-notion.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-notion.mdx@@ -88,6 +88,7 @@ Future<void> signInWithNotion() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Notion` as the `Provider`:@@ -99,6 +100,7 @@ suspend fun signInWithNotion() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -136,6 +138,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -147,6 +150,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-slack.mdx b/apps/docs/content/guides/auth/social-login/auth-slack.mdxindex e1715289ba5..172eed7207d 100644--- a/apps/docs/content/guides/auth/social-login/auth-slack.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-slack.mdx@@ -124,6 +124,7 @@ Future<void> signInWithSlack() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `SlackOIDC` as the `Provider`:@@ -135,6 +136,7 @@ suspend fun signInWithSlack() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -172,6 +174,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -183,6 +186,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx b/apps/docs/content/guides/auth/social-login/auth-spotify.mdxindex 6c74d83480c..57cd5f5f6a7 100644--- a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-spotify.mdx@@ -118,6 +118,7 @@ Future<void> signInWithSpotify() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Spotify` as the `Provider`:@@ -129,6 +130,7 @@ suspend fun signInWithSpotify() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -166,6 +168,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -177,6 +180,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx b/apps/docs/content/guides/auth/social-login/auth-twitch.mdxindex ad356b654af..3a4a2b8e978 100644--- a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-twitch.mdx@@ -103,6 +103,7 @@ Future<void> signInWithTwitch() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Twitch` as the `Provider`:@@ -114,6 +115,7 @@ suspend fun signInWithTwitch() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -151,6 +153,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -162,6 +165,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx b/apps/docs/content/guides/auth/social-login/auth-twitter.mdxindex b78996ceba3..6308bcc40d5 100644--- a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-twitter.mdx@@ -115,6 +115,7 @@ Future<void> signInWithTwitter() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Twitter` as the `Provider`:@@ -126,6 +127,7 @@ suspend fun signInWithTwitter() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -166,6 +168,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -177,6 +180,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx b/apps/docs/content/guides/auth/social-login/auth-zoom.mdxindex 71bbe5d6f96..b1714a6f58d 100644--- a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-zoom.mdx@@ -119,6 +119,7 @@ Future<void> signInWithZoom() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs in, call [signInWith(Provider)](/docs/reference/kotlin/auth-signinwithoauth) with `Zoom` as the `Provider`:@@ -130,6 +131,7 @@ suspend fun signInWithZoom() {```</TabPanel>+</$Show></Tabs><$Partial path="oauth_pkce_flow.mdx" />@@ -167,6 +169,7 @@ Future<void> signOut() async {```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:@@ -178,6 +181,7 @@ suspend fun signOut() {```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/auth/third-party/auth0.mdx b/apps/docs/content/guides/auth/third-party/auth0.mdxindex 76cf04be643..634378b437a 100644--- a/apps/docs/content/guides/auth/third-party/auth0.mdx+++ b/apps/docs/content/guides/auth/third-party/auth0.mdx@@ -49,6 +49,8 @@ const supabase = createClient(</TabPanel>+<$Show if="sdk:swift">+<TabPanel id="swift" label="Swift (iOS)">```swift@@ -73,6 +75,9 @@ let supabase = SupabaseClient(```</TabPanel>+</$Show>++<$Show if="sdk:dart"><TabPanel id="dart" label="Flutter">@@ -96,6 +101,9 @@ Future<void> main() async {```</TabPanel>+</$Show>++<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">@@ -114,6 +122,7 @@ val supabase = createSupabaseClient(```</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/auth/third-party/aws-cognito.mdx b/apps/docs/content/guides/auth/third-party/aws-cognito.mdxindex d2ced1133a8..72e99ecf8a8 100644--- a/apps/docs/content/guides/auth/third-party/aws-cognito.mdx+++ b/apps/docs/content/guides/auth/third-party/aws-cognito.mdx@@ -43,6 +43,8 @@ Hub.listen('auth', () => {</TabPanel>+<$Show if="sdk:swift">+<TabPanel id="swift" label="Swift (iOS)">```swift@@ -72,6 +74,9 @@ let supabase = SupabaseClient(```</TabPanel>+</$Show>++<$Show if="sdk:dart"><TabPanel id="dart" label="Flutter">@@ -96,6 +101,9 @@ Future<void> main() async {```</TabPanel>+</$Show>++<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">@@ -128,6 +136,7 @@ suspend fun getAccessToken(): String? {```</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/auth/third-party/clerk.mdx b/apps/docs/content/guides/auth/third-party/clerk.mdxindex f860db26d15..f7a809a7765 100644--- a/apps/docs/content/guides/auth/third-party/clerk.mdx+++ b/apps/docs/content/guides/auth/third-party/clerk.mdx@@ -45,6 +45,8 @@ hideElidedLines={true}</TabPanel>+<$Show if="sdk:dart">+<TabPanel id="dart" label="Flutter">```dart@@ -63,6 +65,9 @@ await Supabase.initialize(```</TabPanel>+</$Show>++<$Show if="sdk:swift"><TabPanel id="swift" label="Swift (iOS)">@@ -84,6 +89,7 @@ let supabase = SupabaseClient(```</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/auth/third-party/firebase-auth.mdx b/apps/docs/content/guides/auth/third-party/firebase-auth.mdxindex 438141cd5a0..a9a2b9246c0 100644--- a/apps/docs/content/guides/auth/third-party/firebase-auth.mdx+++ b/apps/docs/content/guides/auth/third-party/firebase-auth.mdx@@ -40,6 +40,8 @@ Make sure the all users in your application have the `role: 'authenticated'` [cu</TabPanel>+<$Show if="sdk:dart">+<TabPanel id="dart" label="Flutter">Creating a client for the Web is as easy as passing the `accessToken` async function. This function should [return the Firebase Auth JWT of the current user](https://firebase.google.com/docs/auth/admin/verify-id-tokens) (or null if no such user) is found.@@ -59,6 +61,9 @@ await Supabase.initialize(Make sure the all users in your application have the `role: 'authenticated'` [custom claim](https://firebase.google.com/docs/auth/admin/custom-claims) set. If you're using the `onCreate` Cloud Function to add this custom claim to newly signed up users, you will need to call `getIdToken(/* forceRefresh */ true)` immediately after sign up as the `onCreate` function does not run synchronously.</TabPanel>+</$Show>++<$Show if="sdk:swift"><TabPanel id="swift" label="Swift (iOS)">@@ -86,6 +91,9 @@ let supabase = SupabaseClient(```</TabPanel>+</$Show>++<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin (Android)">@@ -106,6 +114,9 @@ val supabase = createSupabaseClient(```</TabPanel>+</$Show>++<$Show if="sdk:kotlin"><TabPanel id="kotlinmp" label="Kotlin (Multiplatform)">@@ -126,6 +137,7 @@ val supabase = createSupabaseClient(```</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/auth/third-party/overview.mdx b/apps/docs/content/guides/auth/third-party/overview.mdxindex 77d950275da..e110ec0e003 100644--- a/apps/docs/content/guides/auth/third-party/overview.mdx+++ b/apps/docs/content/guides/auth/third-party/overview.mdx@@ -30,8 +30,6 @@ There are some limitations you should be aware of when using third-party authent2. The JWT signing keys from the third-party provider are stored in the configuration of your project, and are checked for changes periodically. If you are rotating your keys (when supported) allow up to 30 minutes for the change to be picked up.3. It is not possible to disable Supabase Auth at this time.-## Pricing-+<$Show if="billing:all"><$Partial path="billing/pricing/pricing_mau_third_party.mdx" />--For a detailed breakdown of how charges are calculated, refer to [Manage Monthly Active Third-Party Users usage](/docs/guides/platform/manage-your-usage/monthly-active-users-third-party).+</$Show>diff --git a/apps/docs/content/guides/database/arrays.mdx b/apps/docs/content/guides/database/arrays.mdxindex 0faad66a9dd..4d4aa9dfbec 100644--- a/apps/docs/content/guides/database/arrays.mdx+++ b/apps/docs/content/guides/database/arrays.mdx@@ -73,6 +73,7 @@ const { data, error } = await supabase```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Insert a record from the Swift client:@@ -97,6 +98,8 @@ try await supabase```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">Insert a record from the Python client:@@ -114,6 +117,7 @@ supabase.from_('arraytest').insert(```</TabPanel>+</$Show></Tabs>## View the results@@ -204,6 +208,7 @@ returns:```</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">This returns the entire array field:@@ -228,6 +233,7 @@ returns:```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/database/extensions/plv8.mdx b/apps/docs/content/guides/database/extensions/plv8.mdxindex eb497655507..89e1a8a51b9 100644--- a/apps/docs/content/guides/database/extensions/plv8.mdx+++ b/apps/docs/content/guides/database/extensions/plv8.mdx@@ -90,6 +90,7 @@ const { data, error } = supabase.rpc('function_name')```</TabPanel>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -97,6 +98,7 @@ val data = supabase.postgrest.rpc("function_name")```</TabPanel>+</$Show></Tabs>## Examplesdiff --git a/apps/docs/content/guides/database/extensions/postgis.mdx b/apps/docs/content/guides/database/extensions/postgis.mdxindex c338c1ac912..fbdde09bdb5 100644--- a/apps/docs/content/guides/database/extensions/postgis.mdx+++ b/apps/docs/content/guides/database/extensions/postgis.mdx@@ -128,6 +128,7 @@ const { error } = await supabase.from('restaurants').insert([```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -148,6 +149,8 @@ await supabase.from('restaurants').insert([```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -168,6 +171,8 @@ try await supabase.from("restaurants")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -187,6 +192,7 @@ val data = supabase.from("restaurants").insert(listOf(```</TabPanel>+</$Show></Tabs>Notice the order in which you pass the latitude and longitude. Longitude comes first, and is because longitude represents the x-axis of the location. Another thing to watch for is when inserting data from the client library, there is no comma between the two values, just a single space.@@ -241,6 +247,7 @@ const { data, error } = await supabase.rpc('nearby_restaurants', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -251,6 +258,8 @@ final data = await supabase.rpc('nearby_restaurants',params: {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -279,6 +288,8 @@ let response: Response = try await supabase.rpc(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -292,6 +303,7 @@ val data = supabase.postgrest.rpc(```</TabPanel>+</$Show><TabPanel id="result" label="Result">```json@@ -367,6 +379,7 @@ const { data, error } = await supabase.rpc('restaurants_in_view', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -379,6 +392,8 @@ final data = await supabase.rpc('restaurants_in_view', params: {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -403,6 +418,8 @@ let response: Response = try await supabase.rpc(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -418,6 +435,7 @@ val data = supabase.postgrest.rpc(```</TabPanel>+</$Show><TabPanel id="result" label="Result">```jsondiff --git a/apps/docs/content/guides/database/full-text-search.mdx b/apps/docs/content/guides/database/full-text-search.mdxindex e2f21d5a484..27a08579f17 100644--- a/apps/docs/content/guides/database/full-text-search.mdx+++ b/apps/docs/content/guides/database/full-text-search.mdx@@ -129,6 +129,7 @@ const { data, error } = await supabase.from('books').select().eq('title', 'Harry```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -139,6 +140,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -149,6 +152,8 @@ let response = try await supabase.from("books")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -160,6 +165,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -167,6 +174,7 @@ data = supabase.from_('books').select().eq('title', 'Harry').execute()```</TabPanel>+</$Show></Tabs>The equality symbol above (`=`) is very "strict" on what it matches. In a full text search context, we might want to find all "Harry Potter" books and so we can rewrite the@@ -195,6 +203,7 @@ const { data, error } = await supabase.from('books').select().textSearch('title'```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -205,6 +214,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -214,6 +225,8 @@ let response = try await supabase.from("books")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -225,6 +238,7 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show></Tabs>## Basic full text queries@@ -260,6 +274,7 @@ const { data, error } = await supabase.from('books').select().textSearch('descri```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -270,6 +285,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -280,6 +297,8 @@ let response = await client.from("books")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -291,6 +310,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -298,6 +319,7 @@ data = supabase.from_('books').select().text_search('description', "'big'").exec```</TabPanel>+</$Show><TabPanel id="data" label="Data">@@ -355,6 +377,7 @@ const { data, error } = await supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```sql@@ -371,6 +394,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```sql@@ -388,6 +413,8 @@ let response = try await client```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```sql@@ -405,6 +432,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```sql@@ -418,6 +447,7 @@ data = supabase.from_('books').select().text_search('title_description', "little```</TabPanel>+</$Show><TabPanel id="data" label="Data">{/* supa-mdx-lint-disable Rule003Spelling */}@@ -466,6 +496,7 @@ const { data, error } = await supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -476,6 +507,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -487,6 +520,8 @@ let response = try await client```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -498,6 +533,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -505,6 +542,7 @@ data = supabase.from_('books').select().text_search('description', "'little' & '```</TabPanel>+</$Show><TabPanel id="data" label="Data">{/* supa-mdx-lint-disable Rule003Spelling */}@@ -552,6 +590,7 @@ const { data, error } = await supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -562,6 +601,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -573,6 +614,8 @@ let response = try await client```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -584,6 +627,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -591,6 +636,7 @@ response = client.from_('books').select().text_search('description', "'little' |```</TabPanel>+</$Show><TabPanel id="data" label="Data">{/* supa-mdx-lint-disable Rule003Spelling */}@@ -652,6 +698,7 @@ const { data, error } = await supabase.rpc('search_books_by_title_prefix', { pre```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -659,6 +706,8 @@ final data = await supabase.rpc('search_books_by_title_prefix', params: { 'prefi```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -670,6 +719,8 @@ let response = try await supabase.rpc(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -678,6 +729,8 @@ val result = supabase.postgrest.rpc("search_books_by_title_prefix", rpcParams)```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -685,6 +738,7 @@ data = client.rpc('search_books_by_title_prefix', { 'prefix': 'Lit' }).execute()```</TabPanel>+</$Show></Tabs>This function takes a prefix parameter and returns all books where the title contains a word starting with that prefix. The `:*` operator is used to denote a prefix match in the `to_tsquery()` function.@@ -777,6 +831,7 @@ const { data, error } = await supabase.from('books').select().textSearch('fts',```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -787,6 +842,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -798,6 +855,8 @@ let response = try await client```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -809,6 +868,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -816,6 +877,7 @@ data = client.from_('books').select().text_search('fts', "'little' & 'big'").exe```</TabPanel>+</$Show><TabPanel id="data" label="Data">{/* supa-mdx-lint-disable Rule003Spelling */}@@ -868,6 +930,7 @@ const { data, error } = await supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -878,6 +941,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -889,6 +954,8 @@ let response = try await client```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -900,6 +967,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -907,6 +976,7 @@ data = client.from_('books').select().text_search('description', "'big' <-> 'dre```</TabPanel>+</$Show></Tabs>We can also use the `<->` to find words within a certain distance of each other. For example to find `year` and `school` within 2 words of each other:@@ -940,6 +1010,7 @@ const { data, error } = await supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -950,6 +1021,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -961,6 +1034,8 @@ let response = try await supabase```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -972,6 +1047,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -979,6 +1056,7 @@ data = client.from_('books').select().text_search('description', "'year' <2> 'sc```</TabPanel>+</$Show></Tabs>### Negation: `!` [#negation]@@ -1015,6 +1093,7 @@ const { data, error } = await supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1025,6 +1104,8 @@ final result = await client```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1036,6 +1117,8 @@ let response = try await client```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1047,6 +1130,8 @@ val data = supabase.from("books").select {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1054,6 +1139,7 @@ data = client.from_('books').select().text_search('description', "'big' & !'litt```</TabPanel>+</$Show></Tabs>## Resourcesdiff --git a/apps/docs/content/guides/database/functions.mdx b/apps/docs/content/guides/database/functions.mdxindex 8186c100eb4..3a6cac523b4 100644--- a/apps/docs/content/guides/database/functions.mdx+++ b/apps/docs/content/guides/database/functions.mdx@@ -91,6 +91,7 @@ const { data, error } = await supabase.rpc('hello_world')Reference: [`rpc()`](../../reference/javascript/rpc)</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -101,6 +102,8 @@ final data = await supabaseReference: [`rpc()`](../../reference/dart/rpc)</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -110,6 +113,8 @@ try await supabase.rpc("hello_world").execute()Reference: [`rpc()`](../../reference/swift/rpc)</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -119,6 +124,8 @@ val data = supabase.postgrest.rpc("hello_world")Reference: [`rpc()`](../../reference/kotlin/rpc)</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -128,6 +135,7 @@ data = supabase.rpc('hello_world').execute()Reference: [`rpc()`](../../reference/python/rpc)</TabPanel>+</$Show></Tabs>## Returning data sets@@ -236,6 +244,7 @@ const { data, error } = supabase.rpc('get_planets').eq('id', 1)```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -245,6 +254,8 @@ final data = await supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -252,6 +263,8 @@ let response = try await supabase.rpc("get_planets").eq("id", value: 1).execute(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -263,6 +276,8 @@ val data = supabase.postgrest.rpc("get_planets") {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -270,6 +285,7 @@ data = supabase.rpc('get_planets').eq('id', 1).execute()```</TabPanel>+</$Show></Tabs>## Passing parameters@@ -316,6 +332,7 @@ const { data, error } = await supabase.rpc('add_planet', { name: 'Jakku' })```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -324,6 +341,8 @@ final data = await supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Using `Encodable` type:@@ -351,6 +370,8 @@ try await supabase.rpc(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -363,6 +384,8 @@ val data = supabase.postgrest.rpc(```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -370,6 +393,7 @@ data = supabase.rpc('add_planet', params={'name': 'Jakku'}).execute()```</TabPanel>+</$Show></Tabs>## Suggestionsdiff --git a/apps/docs/content/guides/database/joins-and-nesting.mdx b/apps/docs/content/guides/database/joins-and-nesting.mdxindex 8921f0e568d..92f2a4a960f 100644--- a/apps/docs/content/guides/database/joins-and-nesting.mdx+++ b/apps/docs/content/guides/database/joins-and-nesting.mdx@@ -129,6 +129,7 @@ const sectionsWithInstruments: SectionsWithInstruments = data```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -136,6 +137,8 @@ final data = await supabase.from('orchestral_sections').select('id, name, instru```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -158,6 +161,8 @@ let orchestralSections: [OrchestralSection] = try await supabase```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -165,6 +170,8 @@ val data = supabase.from("orchestral_sections").select(Columns.raw("id, name, in```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -172,6 +179,7 @@ data = supabase.from_('orchestral_sections').select('id, name, instruments(id, n```</TabPanel>+</$Show><TabPanel id="graphql" label="GraphQL">```javascript@@ -245,6 +253,7 @@ const { data, error } = await supabase.from('teams').select(````</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -252,6 +261,8 @@ final data = await supabase.from('teams').select('id, team_name, users(id, name)```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -284,6 +295,8 @@ let teams [Team] = try await supabase```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -291,6 +304,8 @@ val data = supabase.from("teams").select(Columns.raw("id, team_name, users(id, n```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -298,6 +313,7 @@ data = supabase.from_('teams').select('id, team_name, users(id, name)').execute(```</TabPanel>+</$Show><TabPanel id="graphql" label="GraphQL">````javascript@@ -396,6 +412,7 @@ const { data, error } = await supabase.from('shifts').select(```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -415,6 +432,8 @@ end_scan:scans!scan_id_end (```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -466,6 +485,9 @@ let shifts: [Shift] = try await supabase```</TabPanel>+</$Show>++<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">@@ -486,6 +508,8 @@ end_scan:scans!scan_id_end (```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -505,6 +529,7 @@ data = supabase.from_('shifts').select("""```</TabPanel>+</$Show><TabPanel id="graphql" label="GraphQL">```javascriptdiff --git a/apps/docs/content/guides/database/json.mdx b/apps/docs/content/guides/database/json.mdxindex 1619c015cb6..e062dd8fa01 100644--- a/apps/docs/content/guides/database/json.mdx+++ b/apps/docs/content/guides/database/json.mdx@@ -183,6 +183,7 @@ const { data, error } = await supabase.from('books').insert([```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -237,6 +238,8 @@ await supabase.from('books').insert([```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Supabase Swift provides a convenience `AnyJSON` type.@@ -301,6 +304,8 @@ try await supabase.from("books")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -330,6 +335,8 @@ val data = supabase.from("books").insert(listOf(```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -384,6 +391,7 @@ supabase.from_('books').insert([```</TabPanel>+</$Show></Tabs>## Query JSON data@@ -425,6 +433,7 @@ const { data, error } = await supabase.from('books').select(````</TabPanel>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -443,6 +452,8 @@ try await supabase```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -456,6 +467,8 @@ val data = supabase.from("books").select(Columns.raw("""```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -470,6 +483,7 @@ data = supabase.from_('books').select("""```</TabPanel>+</$Show><TabPanel id="result" label="Result">| title | description | price | low_age | high_age |diff --git a/apps/docs/content/guides/database/tables.mdx b/apps/docs/content/guides/database/tables.mdxindex 547d61ebb17..ad9db5e13a0 100644--- a/apps/docs/content/guides/database/tables.mdx+++ b/apps/docs/content/guides/database/tables.mdx@@ -226,6 +226,7 @@ const { data, error } = await supabase.from('movies').insert([```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -241,6 +242,8 @@ await supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -263,6 +266,8 @@ try await supabase.from("movies")```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -279,6 +284,8 @@ client.from_("movies").insert([```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -299,6 +306,7 @@ supabase```</TabPanel>+</$Show></Tabs>### Bulk data loadingdiff --git a/apps/docs/content/guides/getting-started.mdx b/apps/docs/content/guides/getting-started.mdxindex 3e50b8ff57b..9024dc736f4 100644--- a/apps/docs/content/guides/getting-started.mdx+++ b/apps/docs/content/guides/getting-started.mdx@@ -101,6 +101,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from a React app.',icon: '/docs/img/icons/react-icon',+ enabled: true,},{title: 'Next.js',@@ -109,6 +110,7 @@ hideToc: true'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Next.js app.',icon: '/docs/img/icons/nextjs-icon',hasLightIcon: true,+ enabled: true,},{title: 'Nuxt',@@ -116,6 +118,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Nuxt app.',icon: '/docs/img/icons/nuxt-icon',+ enabled: true,},{title: 'Hono',@@ -123,6 +126,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, secure it with auth, and query the data from a Hono app.',icon: '/docs/img/icons/hono-icon',+ enabled: true,},{title: 'RedwoodJS',@@ -130,6 +134,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database using Prisma migration and seeds, and query the data from a RedwoodJS app.',icon: '/docs/img/icons/redwood-icon',+ enabled: true,},{title: 'Flutter',@@ -137,6 +142,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Flutter app.',icon: '/docs/img/icons/flutter-icon',+ enabled: isFeatureEnabled('sdk:dart'),},{title: 'iOS SwiftUI',@@ -144,6 +150,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from an iOS app.',icon: '/docs/img/icons/swift-icon',+ enabled: isFeatureEnabled('sdk:swift'),},{title: 'Android Kotlin',@@ -151,6 +158,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from an Android Kotlin app.',icon: '/docs/img/icons/kotlin-icon',+ enabled: isFeatureEnabled('sdk:kotlin'),},{title: 'SvelteKit',@@ -158,6 +166,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from a SvelteKit app.',icon: '/docs/img/icons/svelte-icon',+ enabled: true,},{title: 'SolidJS',@@ -165,6 +174,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from a SolidJS app.',icon: '/docs/img/icons/solidjs-icon',+ enabled: true,},{title: 'Vue',@@ -172,6 +182,7 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Vue app.',icon: '/docs/img/icons/vuejs-icon',+ enabled: true,},{title: 'refine',@@ -179,22 +190,25 @@ hideToc: truedescription:'Learn how to create a Supabase project, add some sample data to your database, and query the data from a refine app.',icon: '/docs/img/icons/refine-icon',+ enabled: true,},- ].map((item) => {- return (- <Link href={`${item.href}`} key={item.title} passHref className={'col-span-4'}>- <GlassPanel- title={item.title}- span="col-span-6"- background={false}- icon={item.icon}- hasLightIcon={item.hasLightIcon}- >- {item.description}- </GlassPanel>- </Link>- )- })}+ ]+ .filter((item) => item.enabled !== false)+ .map((item) => {+ return (+ <Link href={`${item.href}`} key={item.title} passHref className={'col-span-4'}>+ <GlassPanel+ title={item.title}+ span="col-span-6"+ background={false}+ icon={item.icon}+ hasLightIcon={item.hasLightIcon}+ >+ {item.description}+ </GlassPanel>+ </Link>+ )+ })}</div>### Web app demos@@ -208,63 +222,63 @@ hideToc: truedescription:'Learn how to build a user management app with Next.js and Supabase Database, Auth, and Storage functionality.',icon: '/docs/img/icons/nextjs-icon',- hasLightIcon: true+ hasLightIcon: true,},{title: 'React',href: '/guides/getting-started/tutorials/with-react',description:'Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/react-icon'+ icon: '/docs/img/icons/react-icon',},{title: 'Vue 3',href: '/guides/getting-started/tutorials/with-vue-3',description:'Learn how to build a user management app with Vue 3 and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/vuejs-icon'+ icon: '/docs/img/icons/vuejs-icon',},{title: 'Nuxt 3',href: '/guides/getting-started/tutorials/with-nuxt-3',description:'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/nuxt-icon'+ icon: '/docs/img/icons/nuxt-icon',},{title: 'Angular',href: '/guides/getting-started/tutorials/with-angular',description:'Learn how to build a user management app with Angular and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/angular-icon'+ icon: '/docs/img/icons/angular-icon',},{title: 'RedwoodJS',href: '/guides/getting-started/tutorials/with-redwoodjs',description:'Learn how to build a user management app with RedwoodJS and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/redwood-icon'+ icon: '/docs/img/icons/redwood-icon',},{title: 'Svelte',href: '/guides/getting-started/tutorials/with-svelte',description:'Learn how to build a user management app with Svelte and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/svelte-icon'+ icon: '/docs/img/icons/svelte-icon',},{title: 'SvelteKit',href: '/guides/getting-started/tutorials/with-sveltekit',description:'Learn how to build a user management app with SvelteKit and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/svelte-icon'+ icon: '/docs/img/icons/svelte-icon',},{title: 'refine',href: '/guides/getting-started/tutorials/with-refine',description:'Learn how to build a user management app with refine and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/refine-icon'+ icon: '/docs/img/icons/refine-icon',}].map((item) => {@@ -295,7 +309,8 @@ hideToc: truehref: '/guides/getting-started/tutorials/with-flutter',description:'Learn how to build a user management app with Flutter and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/flutter-icon'+ icon: '/docs/img/icons/flutter-icon',+ enabled: isFeatureEnabled('sdk:dart')},{title: 'Expo React Native',@@ -303,44 +318,52 @@ hideToc: truedescription:'Learn how to build a user management app with Expo React Native and Supabase Database, Auth, and Storage functionality.',icon: '/docs/img/icons/expo-icon',- hasLightIcon: true+ hasLightIcon: true,+ enabled: true},{title: 'Android Kotlin',href: '/guides/getting-started/tutorials/with-kotlin',description:'Learn how to build a product management app with Android and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/kotlin-icon'+ icon: '/docs/img/icons/kotlin-icon',+ enabled: isFeatureEnabled('sdk:kotlin')},{title: 'iOS Swift',href: '/guides/getting-started/tutorials/with-swift',description:'Learn how to build a user management app with iOS and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/swift-icon'+ icon: '/docs/img/icons/swift-icon',+ enabled: isFeatureEnabled('sdk:swift')},{title: 'Ionic React',href: '/guides/getting-started/tutorials/with-ionic-react',description:'Learn how to build a user management app with Ionic React and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/ionic-icon'+ icon: '/docs/img/icons/ionic-icon',+ enabled: true},{title: 'Ionic Vue',href: '/guides/getting-started/tutorials/with-ionic-vue',description:'Learn how to build a user management app with Ionic Vue and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/ionic-icon'+ icon: '/docs/img/icons/ionic-icon',+ enabled: true},{title: 'Ionic Angular',href: '/guides/getting-started/tutorials/with-ionic-angular',description:'Learn how to build a user management app with Ionic Angular and Supabase Database, Auth, and Storage functionality.',- icon: '/docs/img/icons/ionic-icon'+ icon: '/docs/img/icons/ionic-icon',+ enabled: true}- ].map((item) => {+ ]+.filter((item) => item.enabled !== false)+.map((item) => {return (<Link href={`${item.href}`} key={item.title} passHref className={'col-span-4'}><GlassPaneldiff --git a/apps/docs/content/guides/platform/backups.mdx b/apps/docs/content/guides/platform/backups.mdxindex 27ad8b94a2d..ddc201410f7 100644--- a/apps/docs/content/guides/platform/backups.mdx+++ b/apps/docs/content/guides/platform/backups.mdx@@ -163,11 +163,9 @@ A date and time picker will be provided upon pressing the `Start a restore` buttAfter locking in the desired point in time to recover to, The Dashboard will then prompt for a review and confirmation before proceeding with the restoration. The project will be inaccessible following this. As such, do ensure to allot for downtime beforehand. This is dependent on the size of the database. The larger it is, the longer the downtime will be. Once the confirmation has been given, the latest physical backup available is downloaded to the project and the database is partially restored. WAL files generated after this physical backup up to the specified point-in-time are then downloaded. The underlying records of transactions in these files are replayed against the database to complete the restoration. The Dashboard will display a notification once the restoration completes.-### Pricing-+<$Show if="billing:all"><$Partial path="billing/pricing/pricing_pitr.mdx" />--For a detailed breakdown of how charges are calculated, refer to [Manage Point-in-Time Recovery usage](/docs/guides/platform/manage-your-usage/point-in-time-recovery).+</$Show>## Restore to a new projectdiff --git a/apps/docs/content/guides/platform/custom-domains.mdx b/apps/docs/content/guides/platform/custom-domains.mdxindex e4d4a5e8847..05b4f37e013 100644--- a/apps/docs/content/guides/platform/custom-domains.mdx+++ b/apps/docs/content/guides/platform/custom-domains.mdx@@ -217,6 +217,6 @@ Use the [`vanity-subdomains delete`](/docs/reference/cli/supabase-vanity-subdomasupabase vanity-subdomains delete --project-ref abcdefghijklmnopqrst --experimental```-## Pricing--For a detailed breakdown of how charges are calculated, refer to [Manage Custom Domain usage](/docs/guides/platform/manage-your-usage/custom-domains).+<$Show if="billing:all">+<$Partial path="billing/pricing/pricing_custom_domains.mdx" />+</$Show>diff --git a/apps/docs/content/guides/platform/ipv4-address.mdx b/apps/docs/content/guides/platform/ipv4-address.mdxindex 13c0b01abe7..4e1afd14e94 100644--- a/apps/docs/content/guides/platform/ipv4-address.mdx+++ b/apps/docs/content/guides/platform/ipv4-address.mdx@@ -126,6 +126,6 @@ Always uses an IPv4 addresspostgresql://postgres.ajrbwkcuthywfddihrmflo:[YOUR-PASSWORD]@aws-0-us-east-1.pooler.supabase.com:5432/postgres```-## Pricing--For a detailed breakdown of how charges are calculated, refer to [Manage IPv4 usage](/docs/guides/platform/manage-your-usage/ipv4).+<$Show if="billing:all">+<$Partial path="billing/pricing/pricing_ipv4.mdx" />+</$Show>diff --git a/apps/docs/content/guides/realtime/authorization.mdx b/apps/docs/content/guides/realtime/authorization.mdxindex 9fb4f3aa8aa..1ba5a3d45f3 100644--- a/apps/docs/content/guides/realtime/authorization.mdx+++ b/apps/docs/content/guides/realtime/authorization.mdx@@ -171,6 +171,7 @@ Then, to join a topic with RLS enabled, instantiate the Channel with the `privat```</TabPanel>+ <$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dartfinal channel = supabase.channel(@@ -190,6 +191,8 @@ Then, to join a topic with RLS enabled, instantiate the Channel with the `privat```</TabPanel>+ </$Show>+ <$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swiftlet channel = supabase.channel("room-1") {@@ -207,6 +210,8 @@ Then, to join a topic with RLS enabled, instantiate the Channel with the `privat```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlinval channel = supabase.channel("room-1") {@@ -220,6 +225,8 @@ Then, to join a topic with RLS enabled, instantiate the Channel with the `privat```</TabPanel>+ </$Show>+ <$Show if="sdk:python"><TabPanel id="python" label="Python">```pychannel = realtime.channel(@@ -238,6 +245,7 @@ Then, to join a topic with RLS enabled, instantiate the Channel with the `privat```</TabPanel>+ </$Show></Tabs>#### Allow a user to send a Broadcast messagediff --git a/apps/docs/content/guides/realtime/broadcast.mdx b/apps/docs/content/guides/realtime/broadcast.mdxindex 18bce679967..93791899048 100644--- a/apps/docs/content/guides/realtime/broadcast.mdx+++ b/apps/docs/content/guides/realtime/broadcast.mdx@@ -33,6 +33,7 @@ Go to your Supabase project's [API Settings](https://supabase.com/dashboard/proj```</TabPanel>+ <$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -50,6 +51,8 @@ Go to your Supabase project's [API Settings](https://supabase.com/dashboard/proj```</TabPanel>+ </$Show>+ <$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -62,6 +65,8 @@ Go to your Supabase project's [API Settings](https://supabase.com/dashboard/proj```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -73,6 +78,8 @@ Go to your Supabase project's [API Settings](https://supabase.com/dashboard/proj```</TabPanel>+ </$Show>+ <$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -88,6 +95,7 @@ Go to your Supabase project's [API Settings](https://supabase.com/dashboard/proj```</TabPanel>+ </$Show></Tabs>### Receiving Broadcast messages@@ -129,6 +137,7 @@ You can provide a callback for the `broadcast` channel to receive messages. This```</TabPanel>+ <$Show if="sdk:dart"><TabPanel id="dart" label="Dart">{/* prettier-ignore */}@@ -150,6 +159,8 @@ You can provide a callback for the `broadcast` channel to receive messages. This```</TabPanel>+ </$Show>+ <$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -166,6 +177,8 @@ You can provide a callback for the `broadcast` channel to receive messages. This```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">{/* prettier-ignore */}@@ -182,6 +195,8 @@ You can provide a callback for the `broadcast` channel to receive messages. This```</TabPanel>+ </$Show>+ <$Show if="sdk:python"><TabPanel id="python" label="Python"><Admonition type="note">@@ -205,6 +220,7 @@ You can provide a callback for the `broadcast` channel to receive messages. This```</TabPanel>+ </$Show></Tabs>## Send messages@@ -260,6 +276,8 @@ You can use the Supabase client libraries to send Broadcast messages.</TabPanel>+<$Show if="sdk:dart">+<TabPanel id="dart" label="Dart">{/* prettier-ignore */}@@ -287,6 +305,8 @@ You can use the Supabase client libraries to send Broadcast messages.```</TabPanel>+ </$Show>+ <$Show if="sdk:swift"><TabPanel id="swift" label="Swift">{/* prettier-ignore */}@@ -307,6 +327,8 @@ You can use the Supabase client libraries to send Broadcast messages.```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlinval myChannel = supabase.channel("test-channel") {@@ -329,6 +351,9 @@ You can use the Supabase client libraries to send Broadcast messages.```</TabPanel>+ </$Show>++<$Show if="sdk:python"><TabPanel id="python" label="Python">@@ -356,6 +381,7 @@ You can use the Supabase client libraries to send Broadcast messages.```</TabPanel>+ </$Show></Tabs>{/* supa-mdx-lint-disable-next-line Rule001HeadingCase */}### Broadcast from the Database@@ -484,6 +510,7 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ <$Show if="sdk:dart"><TabPanel id="dart" label="Dart">By default, broadcast messages are only sent to other clients. You can broadcast messages back to the sender by setting Broadcast's `self` parameter to `true`.@@ -512,6 +539,8 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ </$Show>+ <$Show if="sdk:swift"><TabPanel id="swift" label="Swift">By default, broadcast messages are only sent to other clients. You can broadcast messages back to the sender by setting Broadcast's `receiveOwnBroadcasts` parameter to `true`.@@ -534,6 +563,8 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">By default, broadcast messages are only sent to other clients. You can broadcast messages back to the sender by setting Broadcast's `receiveOwnBroadcasts` parameter to `true`.@@ -562,6 +593,8 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ </$Show>+ <$Show if="sdk:python"><TabPanel id="python" label="Python"><Admonition type="note">@@ -595,6 +628,7 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ </$Show></Tabs>### Acknowledge messages@@ -636,6 +670,7 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ <$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -659,6 +694,8 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ </$Show>+ <$Show if="sdk:swift"><TabPanel id="swift" label="Swift">You can confirm that Realtime received your message by setting Broadcast's `acknowledgeBroadcasts` config to `true`.@@ -674,6 +711,8 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">By default, broadcast messages are only sent to other clients. You can broadcast messages back to the sender by setting Broadcast's `acknowledgeBroadcasts` parameter to `true`.@@ -691,9 +730,12 @@ You can pass configuration options while initializing the Supabase Client.```</TabPanel>+ </$Show>+ <$Show if="sdk:python"><TabPanel id="python" label="Python">Unsupported in Python yet.</TabPanel>+ </$Show></Tabs>Use this to guarantee that the server has received the message before resolving `channelD.send`'s promise. If the `ack` config is not set to `true` when creating the channel, the promise returned by `channelD.send` will resolve immediately.@@ -736,6 +778,7 @@ You can also send a Broadcast message by making an HTTP request to Realtime serv```</TabPanel>+ <$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart// No need to subscribe to channel@@ -751,6 +794,8 @@ You can also send a Broadcast message by making an HTTP request to Realtime serv```</TabPanel>+ </$Show>+ <$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swiftlet myChannel = await supabase.channel("room-2") {@@ -763,6 +808,8 @@ You can also send a Broadcast message by making an HTTP request to Realtime serv```</TabPanel>+ </$Show>+ <$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlinval myChannel = supabase.channel("room-2") {@@ -779,9 +826,12 @@ You can also send a Broadcast message by making an HTTP request to Realtime serv```</TabPanel>+ </$Show>+ <$Show if="sdk:python"><TabPanel id="python" label="Python">Unsupported in Python yet.</TabPanel>+ </$Show></Tabs>## Trigger broadcast messages from your databasediff --git a/apps/docs/content/guides/realtime/postgres-changes.mdx b/apps/docs/content/guides/realtime/postgres-changes.mdxindex 993b6935fd6..d2b35ac32e6 100644--- a/apps/docs/content/guides/realtime/postgres-changes.mdx+++ b/apps/docs/content/guides/realtime/postgres-changes.mdx@@ -238,6 +238,7 @@ const changes = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -252,6 +253,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -272,6 +275,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -293,6 +298,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -305,6 +312,7 @@ changes = supabase.channel('schema-db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>The channel name can be any string except 'realtime'.@@ -337,6 +345,7 @@ const changes = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -350,6 +359,8 @@ final changes = supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Use `InsertAction.self` as type to listen only to database `INSERT`s:@@ -367,6 +378,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">Use `PostgresAction.Insert` as type to listen only to database `INSERT`s:@@ -386,6 +399,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -398,6 +413,7 @@ changes = supabase.channel('schema-db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>The channel name can be any string except 'realtime'.@@ -430,6 +446,7 @@ const changes = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -443,6 +460,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Use `UpdateAction.self` as type to listen only to database `UPDATE`s:@@ -460,6 +479,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">Use `PostgresAction.Update` as type to listen only to database `UPDATE`s:@@ -479,6 +500,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -491,6 +514,7 @@ changes = supabase.channel('schema-db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>The channel name can be any string except 'realtime'.@@ -523,6 +547,7 @@ const changes = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -536,6 +561,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Use `DeleteAction.self` as type to listen only to database `DELETE`s:@@ -553,6 +580,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">Use `PostgresAction.Delete` as type to listen only to database `DELETE`s:@@ -572,6 +601,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -584,6 +615,7 @@ changes = supabase.channel('schema-db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>The channel name can be any string except 'realtime'.@@ -617,6 +649,7 @@ const changes = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -631,6 +664,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swfit"><TabPanel id="swift" label="Swift">```swift@@ -651,6 +686,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -670,6 +707,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -683,6 +722,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>The channel name can be any string except 'realtime'.@@ -725,6 +765,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -744,6 +785,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -756,6 +799,8 @@ await myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -770,6 +815,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -787,6 +834,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>### Filtering for specific changes@@ -819,6 +867,7 @@ const changes = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -838,6 +887,8 @@ const changes = supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -858,6 +909,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -878,6 +931,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -892,6 +947,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>## Available filters@@ -928,6 +984,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -947,6 +1004,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -967,6 +1026,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -987,6 +1048,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1001,6 +1064,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>This filter uses Postgres's `=` filter.@@ -1035,6 +1099,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1054,6 +1119,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1074,6 +1141,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1095,6 +1164,8 @@ myChannel.join()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1109,6 +1180,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>This filter uses Postgres's `!=` filter.@@ -1143,6 +1215,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1162,6 +1235,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1182,6 +1257,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1202,6 +1279,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1216,6 +1295,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>This filter uses Postgres's `<` filter, so it works for non-numeric types. Make sure to check the expected behavior of the compared data's type.@@ -1250,6 +1330,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1269,6 +1350,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1289,6 +1372,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1309,6 +1394,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1323,6 +1410,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>This filter uses Postgres' `<=` filter, so it works for non-numeric types. Make sure to check the expected behavior of the compared data's type.@@ -1357,6 +1445,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1376,6 +1465,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1396,6 +1487,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1416,6 +1509,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1430,6 +1525,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>This filter uses Postgres's `>` filter, so it works for non-numeric types. Make sure to check the expected behavior of the compared data's type.@@ -1464,6 +1560,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1483,6 +1580,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1503,6 +1602,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1523,6 +1624,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1537,6 +1640,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>This filter uses Postgres's `>=` filter, so it works for non-numeric types. Make sure to check the expected behavior of the compared data's type.@@ -1571,6 +1675,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1590,6 +1695,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1610,6 +1717,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1630,6 +1739,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1644,6 +1755,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>This filter uses Postgres's `= ANY`. Realtime allows a maximum of 100 values for this filter.@@ -1724,6 +1836,7 @@ const channel = supabase```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1746,6 +1859,8 @@ supabase```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1768,6 +1883,8 @@ for await change in changes {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -1793,6 +1910,8 @@ myChannel.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1809,6 +1928,7 @@ changes = supabase.channel('db-changes').on_postgres_changes(```</TabPanel>+</$Show></Tabs>### Refreshed tokens@@ -1833,6 +1953,7 @@ supabase.realtime.setAuth('fresh-token')```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -1840,6 +1961,8 @@ supabase.realtime.setAuth('fresh-token');```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -1847,6 +1970,8 @@ await supabase.realtime.setAuth("fresh-token")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">In Kotlin, you have to update the token manually per channel:@@ -1856,6 +1981,8 @@ myChannel.updateAuth("fresh-token")```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -1863,6 +1990,7 @@ supabase.realtime.set_auth('fresh-token')```</TabPanel>+</$Show></Tabs>## Limitationsdiff --git a/apps/docs/content/guides/realtime/presence.mdx b/apps/docs/content/guides/realtime/presence.mdxindex 2c599015f08..86b474cc665 100644--- a/apps/docs/content/guides/realtime/presence.mdx+++ b/apps/docs/content/guides/realtime/presence.mdx@@ -33,6 +33,7 @@ const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -49,6 +50,8 @@ final supabase = Supabase.instance.client;```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -60,6 +63,8 @@ let realtime = supabase.realtime```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -71,6 +76,8 @@ val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -83,6 +90,7 @@ supabase = create_client(SUPABASE_URL, SUPABASE_KEY)```</TabPanel>+</$Show></Tabs>### Sync and track state@@ -120,6 +128,7 @@ roomOne```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -138,6 +147,8 @@ roomOne.onPresenceSync((_) {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">Listen to the presence change stream, emitting a new `PresenceAction` whenever someone joins or leaves:@@ -155,6 +166,8 @@ for await presence in presenceStream {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">Listen to the presence change flow, emitting new a new `PresenceAction` whenever someone joins or leaves:@@ -173,6 +186,8 @@ roomOne.subscribe()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">Listen to the `sync`, `join`, and `leave` events triggered whenever any client joins or leaves the channel or changes their slice of state:@@ -188,6 +203,7 @@ room_one```</TabPanel>+</$Show></Tabs>### Sending state@@ -225,6 +241,7 @@ roomOne.subscribe(async (status) => {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -244,6 +261,8 @@ roomOne.subscribe((status, error) async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -269,6 +288,8 @@ await roomOne.track(```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -285,6 +306,8 @@ roomOne.track(userStatus)```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -305,6 +328,7 @@ room_one.subscribe(on_subscribe)```</TabPanel>+</$Show></Tabs>A client will receive state from any other client that is subscribed to the same topic (in this case `room_01`). It will also automatically trigger its own `sync` and `join` event handlers.@@ -337,6 +361,7 @@ untrackPresence()```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -351,6 +376,8 @@ untrackPresence();```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -358,6 +385,8 @@ await roomOne.untrack()```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -369,6 +398,8 @@ untrackPresence()```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -376,6 +407,7 @@ room_one.untrack()```</TabPanel>+</$Show></Tabs>## Presence options@@ -409,6 +441,7 @@ const channelC = supabase.channel('test', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -419,6 +452,8 @@ final channelC = supabase.channel(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -428,6 +463,8 @@ let channelC = await supabase.channel("test") {```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -439,6 +476,8 @@ val channelC = supabase.channel("test") {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -452,4 +491,5 @@ channel_c = supabase.channel('test', {```</TabPanel>+</$Show></Tabs>diff --git a/apps/docs/content/guides/storage/buckets/creating-buckets.mdx b/apps/docs/content/guides/storage/buckets/creating-buckets.mdxindex b466ec48cbf..65ad5398ba3 100644--- a/apps/docs/content/guides/storage/buckets/creating-buckets.mdx+++ b/apps/docs/content/guides/storage/buckets/creating-buckets.mdx@@ -52,6 +52,7 @@ values```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -67,6 +68,8 @@ void main() async {[Reference.](https://pub.dev/documentation/storage_client/latest/storage_client/SupabaseStorageClient/createBucket.html)</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -79,6 +82,8 @@ try await supabase.storage.createBucket([Reference.](/docs/reference/swift/storage-createbucket)</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -91,6 +96,7 @@ supabase.storage.create_bucket([Reference.](/docs/reference/python/storage-createbucket)</TabPanel>+</$Show></Tabs>## Restricting uploadsdiff --git a/apps/docs/content/guides/storage/quickstart.mdx b/apps/docs/content/guides/storage/quickstart.mdxindex ee1f9e06f8c..2ea0e5b8ff8 100644--- a/apps/docs/content/guides/storage/quickstart.mdx+++ b/apps/docs/content/guides/storage/quickstart.mdx@@ -72,6 +72,7 @@ const { data, error } = await supabase.storage.createBucket('avatars')[Reference.](/docs/reference/javascript/storage-createbucket)</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -87,6 +88,8 @@ void main() async {[Reference.](https://pub.dev/documentation/storage_client/latest/storage_client/SupabaseStorageClient/createBucket.html)</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -96,6 +99,8 @@ try await supabase.storage.createBucket("avatars")[Reference.](/docs/reference/swift/storage-createbucket)</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -105,6 +110,7 @@ response = supabase.storage.create_bucket('avatars')[Reference.](/docs/reference/python/storage-createbucket)</TabPanel>+</$Show></Tabs>## Upload a file@@ -138,6 +144,7 @@ const { data, error } = await supabase.storage[Reference.](/docs/reference/javascript/storage-from-upload)</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -157,6 +164,7 @@ void main() async {[Reference.](https://pub.dev/documentation/storage_client/latest/storage_client/SupabaseStorageClient/createBucket.html)</TabPanel>+</$Show></Tabs>## Download a file@@ -189,6 +197,7 @@ const { data, error } = await supabase.storage.from('avatars').download('public/[Reference.](/docs/reference/javascript/storage-from-download)</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -205,6 +214,8 @@ void main() async {[Reference.](/docs/reference/dart/storage-from-download)</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -214,6 +225,8 @@ let response = try await supabase.storage.from("avatars").download(path: "public[Reference.](/docs/reference/python/storage-from-download)</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -223,6 +236,7 @@ response = supabase.storage.from_('avatars').download('public/avatar1.png')[Reference.](/docs/reference/python/storage-from-download)</TabPanel>+</$Show></Tabs>## Add security rulesdiff --git a/apps/docs/content/guides/storage/serving/image-transformations.mdx b/apps/docs/content/guides/storage/serving/image-transformations.mdxindex 952d6a79b11..6d79231daad 100644--- a/apps/docs/content/guides/storage/serving/image-transformations.mdx+++ b/apps/docs/content/guides/storage/serving/image-transformations.mdx@@ -42,6 +42,7 @@ supabase.storage.from('bucket').getPublicUrl('image.jpg', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -55,6 +56,8 @@ final url = supabase.storage.from('bucket').getPublicUrl(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -66,6 +69,8 @@ let url = try await supabase.storage.from("bucket")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -75,6 +80,8 @@ val url = supabase.storage.from("bucket").publicRenderUrl("image.jpg") {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -90,6 +97,7 @@ url = supabase.storage.from_('avatars').get_public_url(```</TabPanel>+</$Show></Tabs>An example URL could look like this:@@ -125,6 +133,7 @@ supabase.storage.from('bucket').createSignedUrl('image.jpg', 60000, {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -139,6 +148,8 @@ final url = await supabase.storage.from('bucket').createSignedUrl(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -154,6 +165,8 @@ let url = try await supabase.storage.from("bucket")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -163,6 +176,7 @@ val url = supabase.storage.from("bucket").createSignedUrl("image.jpg", 60.second```</TabPanel>+</$Show></Tabs>The transformation options are embedded into the token attached to the URL — they cannot be changed once signed.@@ -194,6 +208,7 @@ supabase.storage.from('bucket').download('image.jpg', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -207,6 +222,8 @@ final data = await supabase.storage.from('bucket').download(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -221,6 +238,8 @@ let data = try await supabase.storage.from("bucket")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -240,6 +259,8 @@ supabase.storage.from("bucket").downloadAuthenticatedTo("image.jpg", file) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -253,6 +274,7 @@ response = supabase.storage.from_('bucket').download(```</TabPanel>+</$Show></Tabs>## Automatic image optimization (WebP)@@ -295,6 +317,7 @@ await supabase.storage.from('bucket').download('image.jpeg', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -309,6 +332,8 @@ final data = await supabase.storage.from('bucket').download(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -324,6 +349,8 @@ let data = try await supabase.storage.from("bucket")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -345,6 +372,8 @@ supabase.storage.from("bucket").downloadAuthenticatedTo("image.jpg", file) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -361,6 +390,7 @@ response = supabase.storage.from_('bucket').download(```</TabPanel>+</$Show></Tabs>## Next.js loader@@ -430,6 +460,7 @@ supabase.storage.from('bucket').download('image.jpg', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -442,6 +473,8 @@ final data = await supabase.storage.from('bucket').download(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -455,6 +488,8 @@ let data = try await supabase.storage.from("bucket")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -474,6 +509,8 @@ supabase.storage["bucket"].downloadAuthenticatedTo("image.jpg", file) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -488,6 +525,7 @@ response = supabase.storage.from_('bucket').download(```</TabPanel>+</$Show></Tabs>### Resizing@@ -532,6 +570,7 @@ supabase.storage.from('bucket').download('image.jpg', {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -546,6 +585,8 @@ final data = supabase.storage.from('bucket').download(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -561,6 +602,8 @@ let data = try await supabase.storage.from("bucket")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -582,6 +625,8 @@ supabase.storage.from("bucket").downloadAuthenticatedTo("image.jpg", file) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -598,6 +643,7 @@ response = supabase.storage.from_('bucket').download(```</TabPanel>+</$Show></Tabs>### Limits@@ -621,11 +667,9 @@ response = supabase.storage.from_('bucket').download(| BMP | `bmp` | ☑️ | ☑️ || TIFF | `tiff` | ☑️ | ☑️ |-## Pricing-+<$Show if="billing:all"><$Partial path="billing/pricing/pricing_storage_image_transformations.mdx" />--For a detailed breakdown of how charges are calculated, refer to [Manage Storage Image Transformations usage](/docs/guides/platform/manage-your-usage/storage-image-transformations).+</$Show>## Self hostingdiff --git a/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx b/apps/docs/content/guides/storage/uploads/resumable-uploads.mdxindex 99fec0b0979..2a1db32286c 100644--- a/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx+++ b/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx@@ -191,6 +191,8 @@ Instead of `https://project-id.supabase.co` use `https://project-id.storage.supa</TabPanel>+<$Show if="sdk:kotlin">+<TabPanel id="kotlin" label="Kotlin">Kotlin supports resumable uploads natively for all targets:@@ -222,6 +224,9 @@ Instead of `https://project-id.supabase.co` use `https://project-id.storage.supa```</TabPanel>+ </$Show>++<$Show if="sdk:python"><TabPanel id="py" label="Python">@@ -269,6 +274,7 @@ Instead of `https://project-id.supabase.co` use `https://project-id.storage.supa```</TabPanel>+ </$Show></Tabs>### Upload URLdiff --git a/apps/docs/content/guides/storage/uploads/standard-uploads.mdx b/apps/docs/content/guides/storage/uploads/standard-uploads.mdxindex fdde4e31fb7..2e7a2562a90 100644--- a/apps/docs/content/guides/storage/uploads/standard-uploads.mdx+++ b/apps/docs/content/guides/storage/uploads/standard-uploads.mdx@@ -48,6 +48,7 @@ async function uploadFile(file) {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -58,6 +59,8 @@ Future<void> uploadFile(File file) async {```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -70,6 +73,8 @@ try await supabase.storage.from("bucket_name").upload(path: "file_path", file: f```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -80,6 +85,8 @@ supabase.storage.from("bucket_name").upload("file_path", file)```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -87,6 +94,7 @@ response = supabase.storage.from_('bucket_name').upload('file_path', file)```</TabPanel>+</$Show></Tabs>## Overwriting files@@ -117,6 +125,7 @@ await supabase.storage.from('bucket_name').upload('file_path', file, {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -128,6 +137,8 @@ await supabase.storage.from('bucket_name').upload(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -147,6 +158,8 @@ try await supabase.storage.from("bucket_name")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -156,6 +169,8 @@ supabase.storage.from("bucket_name").upload("file_path", bytes) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -165,6 +180,7 @@ response = supabase.storage.from_('bucket_name').upload('file_path', file, {```</TabPanel>+</$Show></Tabs>We do advise against overwriting files when possible, as our Content Delivery Network will take sometime to propagate the changes to all the edge nodes leading to stale content.@@ -197,6 +213,7 @@ await supabase.storage.from('bucket_name').upload('file_path', file, {```</TabPanel>+<$Show if="sdk:dart"><TabPanel id="dart" label="Dart">```dart@@ -208,6 +225,8 @@ await supabase.storage.from('bucket_name').upload(```</TabPanel>+</$Show>+<$Show if="sdk:swift"><TabPanel id="swift" label="Swift">```swift@@ -227,6 +246,8 @@ try await supabase.storage.from("bucket_name")```</TabPanel>+</$Show>+<$Show if="sdk:kotlin"><TabPanel id="kotlin" label="Kotlin">```kotlin@@ -236,6 +257,8 @@ supabase.storage.from("bucket_name").upload("file_path", bytes) {```</TabPanel>+</$Show>+<$Show if="sdk:python"><TabPanel id="python" label="Python">```python@@ -245,6 +268,7 @@ response = supabase.storage.from_('bucket_name').upload('file_path', file, {```</TabPanel>+</$Show></Tabs>## Concurrencydiff --git a/apps/docs/features/directives/Partial.ts b/apps/docs/features/directives/Partial.tsindex eec3b109ebf..888071f2a70 100644--- a/apps/docs/features/directives/Partial.ts+++ b/apps/docs/features/directives/Partial.ts@@ -65,6 +65,7 @@ function toFilePath(node: MdxJsxFlowElement) {if (typeof path !== 'string' || !isMdFile(path)) {throw new Error('Invalid $Partial path: path must end with .mdx or .md')}+const filePath = join(PARTIALS_DIRECTORY, path)if (!filePath.startsWith(PARTIALS_DIRECTORY)) {throw new Error(`Invalid $Partial path: Path must be inside ${PARTIALS_DIRECTORY}`)diff --git a/apps/docs/features/directives/Show.test.ts b/apps/docs/features/directives/Show.test.tsnew file mode 100644index 00000000000..cbe3024a114--- /dev/null+++ b/apps/docs/features/directives/Show.test.ts@@ -0,0 +1,199 @@+import { mdxToMarkdown } from 'mdast-util-mdx'+import { toMarkdown } from 'mdast-util-to-markdown'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'++import { type Feature } from 'common'+import { showRemark } from './Show'+import { fromDocsMarkdown } from './utils.server'++// Mock the isFeatureEnabled function from common package+vi.mock('common/enabled-features', () => ({+ isFeatureEnabled: vi.fn(),+}))++const { isFeatureEnabled } = await import('common/enabled-features')++describe('$Show', () => {+ beforeEach(() => {+ vi.clearAllMocks()+ })++ afterEach(() => {+ vi.restoreAllMocks()+ })++ it('should keep children and remove $Show wrapper when feature is enabled', async () => {+ vi.mocked(isFeatureEnabled).mockReturnValue(true)++ const markdown = `+# Test content++<$Show if="test-feature">+This content should be visible when feature is enabled.++## A nested heading++Some more content.+</$Show>++Content after the show block.+`.trim()++ const mdast = fromDocsMarkdown(markdown)+ const transformed = showRemark()(mdast)+ const output = toMarkdown(transformed, { extensions: [mdxToMarkdown()] })++ const expected = `+# Test content++This content should be visible when feature is enabled.++## A nested heading++Some more content.++Content after the show block.+`.trimStart()++ expect(output).toEqual(expected)+ expect(isFeatureEnabled).toHaveBeenCalledWith('test-feature')+ })++ it('should remove entire $Show block and children when feature is disabled', async () => {+ vi.mocked(isFeatureEnabled).mockReturnValue(false)++ const markdown = `+# Test content++<$Show if="disabled-feature">+This content should NOT be visible when feature is disabled.++## This heading should also be removed++Some more content that should be hidden.+</$Show>++Content after the show block should remain.+`.trim()++ const mdast = fromDocsMarkdown(markdown)+ const transformed = showRemark()(mdast)+ const output = toMarkdown(transformed, { extensions: [mdxToMarkdown()] })++ const expected = `+# Test content++Content after the show block should remain.+`.trimStart()++ expect(output).toEqual(expected)+ expect(isFeatureEnabled).toHaveBeenCalledWith('disabled-feature')+ })++ it('should handle multiple $Show blocks with different feature flags', async () => {+ vi.mocked(isFeatureEnabled).mockImplementation((feature) => {+ if (feature === ('enabled-feature' as Feature)) return true+ return false+ })++ const markdown = `+# Test content++<$Show if="enabled-feature">+This should be visible.+</$Show>++<$Show if="disabled-feature">+This should be hidden.+</$Show>++<$Show if="another-disabled-feature">+This should also be hidden.+</$Show>++Final content.+`.trim()++ const mdast = fromDocsMarkdown(markdown)+ const transformed = showRemark()(mdast)+ const output = toMarkdown(transformed, { extensions: [mdxToMarkdown()] })++ const expected = `+# Test content++This should be visible.++Final content.+`.trimStart()++ expect(output).toEqual(expected)+ expect(isFeatureEnabled).toHaveBeenCalledWith('enabled-feature')+ expect(isFeatureEnabled).toHaveBeenCalledWith('disabled-feature')+ expect(isFeatureEnabled).toHaveBeenCalledWith('another-disabled-feature')+ })++ it('should handle nested $Show blocks correctly', async () => {+ vi.mocked(isFeatureEnabled).mockImplementation((feature) => {+ if (feature === ('outer-feature' as Feature)) return true+ return false+ })++ const markdown = `+# Test content++<$Show if="outer-feature">+Outer content visible.++<$Show if="inner-feature">+Inner content should be hidden.+</$Show>++More outer content.+</$Show>+`.trim()++ const mdast = fromDocsMarkdown(markdown)+ const transformed = showRemark()(mdast)+ const output = toMarkdown(transformed, { extensions: [mdxToMarkdown()] })++ const expected = `+# Test content++Outer content visible.++More outer content.+`.trimStart()++ expect(output).toEqual(expected)+ expect(isFeatureEnabled).toHaveBeenCalledWith('outer-feature')+ expect(isFeatureEnabled).toHaveBeenCalledWith('inner-feature')+ })++ it('should throw error when "if" attribute is missing', () => {+ const markdown = `+<$Show>+Content without if attribute.+</$Show>+`.trim()++ const mdast = fromDocsMarkdown(markdown)++ expect(() => {+ showRemark()(mdast)+ }).toThrow('$Show directive requires a string value for the "if" attribute')+ })++ it('should throw error when "if" attribute is not a string', () => {+ const markdown = `+<$Show if={true}>+Content with non-string if attribute.+</$Show>+`.trim()++ const mdast = fromDocsMarkdown(markdown)++ expect(() => {+ showRemark()(mdast)+ }).toThrow('$Show directive requires a string value for the "if" attribute')+ })+})diff --git a/apps/docs/features/directives/Show.ts b/apps/docs/features/directives/Show.tsnew file mode 100644index 00000000000..94401222466--- /dev/null+++ b/apps/docs/features/directives/Show.ts@@ -0,0 +1,72 @@+/**+ * The Show directive supports conditional rendering of content based on feature flags.+ * It uses the isFeatureEnabled function from the common package to determine whether+ * the content should be displayed.+ *+ * If the feature is enabled, the <$Show> tag is stripped but its children remain.+ * If the feature is disabled, both the <$Show> tag and its children are removed.+ *+ * ## Examples+ *+ * ### Basic usage+ *+ * ```mdx+ * <$Show if="feature-name">+ * This content will only show if the feature is enabled.+ * </$Show>+ * ```+ */++import { type Root } from 'mdast'+import type { MdxJsxFlowElement } from 'mdast-util-mdx-jsx'+import { type Parent } from 'unist'+import { visitParents } from 'unist-util-visit-parents'++import { isFeatureEnabled, type Feature } from 'common/enabled-features'+import { getAttributeValue } from './utils.server'++export function showRemark() {+ return function transform(tree: Root) {+ const nodesToProcess = [] as Array<{+ node: MdxJsxFlowElement+ parent: Parent+ shouldShow: boolean+ }>++ // Collect all $Show nodes and determine their visibility+ visitParents(tree, 'mdxJsxFlowElement', (node: MdxJsxFlowElement, ancestors) => {+ if (node.name !== '$Show') return++ const parent = ancestors[ancestors.length - 1]+ const featureName = getAttributeValue(node, 'if')++ if (typeof featureName !== 'string') {+ throw new Error('$Show directive requires a string value for the "if" attribute')+ }++ const shouldShow = isFeatureEnabled(featureName as Feature)++ nodesToProcess.push({+ node,+ parent,+ shouldShow,+ })+ })++ // Process nodes in reverse order to avoid index shifting issues+ for (let i = nodesToProcess.length - 1; i >= 0; i--) {+ const { node, parent, shouldShow } = nodesToProcess[i]+ const nodeIndex = parent.children.indexOf(node)++ if (shouldShow) {+ // Feature is enabled: remove the $Show wrapper but keep children+ parent.children.splice(nodeIndex, 1, ...node.children)+ } else {+ // Feature is disabled: remove the entire $Show element and its children+ parent.children.splice(nodeIndex, 1)+ }+ }++ return tree+ }+}diff --git a/apps/docs/features/directives/utils.ts b/apps/docs/features/directives/utils.tsindex 0138a0b9e66..225b54bfb01 100644--- a/apps/docs/features/directives/utils.ts+++ b/apps/docs/features/directives/utils.ts@@ -10,6 +10,7 @@ import { codeSampleRemark } from './CodeSample'import { codeTabsRemark } from './CodeTabs'import { fromDocsMarkdown } from './utils.server'import { partialsRemark } from './Partial'+import { showRemark } from './Show'type Transformer = (ast: Root) => Root | Promise<Root>@@ -27,6 +28,7 @@ export async function preprocessMdx<T>(mdx: string, transformers: Transformer[])export function preprocessMdxWithDefaults(mdx: string) {return preprocessMdx(mdx, [+ showRemark(),remarkMkDocsAdmonition(),remarkPyMdownTabs(),partialsRemark(),diff --git a/apps/docs/features/docs/MdxBase.tsx b/apps/docs/features/docs/MdxBase.tsxindex 8e77bf230e4..672a49b04ab 100644--- a/apps/docs/features/docs/MdxBase.tsx+++ b/apps/docs/features/docs/MdxBase.tsx@@ -4,6 +4,7 @@ import rehypeKatex from 'rehype-katex'import remarkGfm from 'remark-gfm'import remarkMath from 'remark-math'+import { isFeatureEnabled } from 'common'import { preprocessMdxWithDefaults } from '~/features/directives/utils'import { components } from '~/features/docs/MdxBase.shared'import { SerializeOptions } from '~/types/next-mdx-remote-serialize'@@ -39,6 +40,7 @@ const MDXRemoteBase = async ({} = mdxOptionsconst finalOptions = {+ scope: { isFeatureEnabled },...mdxOptions,...otherOptions,mdxOptions: {diff --git a/packages/common/enabled-features/enabled-features.json b/packages/common/enabled-features/enabled-features.jsonindex 41de346f04d..58068090300 100644--- a/packages/common/enabled-features/enabled-features.json+++ b/packages/common/enabled-features/enabled-features.json@@ -27,6 +27,8 @@"database:replication": true,"database:roles": true,+ "docs:self-hosting": true,+"integrations:vercel": true,"integrations:show_stripe_wrapper": true,@@ -53,5 +55,11 @@"project_settings:legacy_jwt_keys": true,"project_settings:log_drains": true,- "reports:all": true+ "reports:all": true,++ "sdk:csharp": true,+ "sdk:dart": true,+ "sdk:kotlin": true,+ "sdk:python": true,+ "sdk:swift": true}diff --git a/packages/common/enabled-features/enabled-features.schema.json b/packages/common/enabled-features/enabled-features.schema.jsonindex 0e979da780c..ca38b657416 100644--- a/packages/common/enabled-features/enabled-features.schema.json+++ b/packages/common/enabled-features/enabled-features.schema.json@@ -95,6 +95,11 @@"description": "Enable the database roles page"},+ "docs:self-hosting": {+ "type": "boolean",+ "description": "Enable documentation for self-hosting"+ },+"integrations:vercel": {"type": "boolean","description": "Enable the vercel integration section in the organization and project settings pages"@@ -182,6 +187,27 @@"reports:all": {"type": "boolean","description": "Enable the project reports page"+ },++ "sdk:csharp": {+ "type": "boolean",+ "description": "Enable the C# SDK"+ },+ "sdk:dart": {+ "type": "boolean",+ "description": "Enable the Dart/Flutter SDK"+ },+ "sdk:kotlin": {+ "type": "boolean",+ "description": "Enable the Kotlin SDK"+ },+ "sdk:python": {+ "type": "boolean",+ "description": "Enable the Python SDK"+ },+ "sdk:swift": {+ "type": "boolean",+ "description": "Enable the Swift SDK"}},"required": [@@ -206,6 +232,7 @@"billing:all","database:replication","database:roles",+ "docs:self-hosting","integrations:vercel","integrations:show_stripe_wrapper","profile:show_email",@@ -225,7 +252,12 @@"project_settings:log_drains","project_connection:javascript_example","project_connection:dart_example",- "reports:all"+ "reports:all",+ "sdk:csharp",+ "sdk:dart",+ "sdk:kotlin",+ "sdk:python",+ "sdk:swift"],"additionalProperties": false}diff --git a/packages/common/enabled-features/index.ts b/packages/common/enabled-features/index.tsindex ec5987eb6dd..8dba6caf464 100644--- a/packages/common/enabled-features/index.ts+++ b/packages/common/enabled-features/index.ts@@ -1,5 +1,5 @@import type { components } from 'api-types'-import enabledFeaturesRaw from './enabled-features.json'+import enabledFeaturesRaw from './enabled-features.json' with { type: 'json' }const enabledFeaturesStaticObj = enabledFeaturesRaw as Omit<typeof enabledFeaturesRaw, '$schema'>diff --git a/packages/common/package.json b/packages/common/package.jsonindex 804804f11f0..5f780e1cf12 100644--- a/packages/common/package.json+++ b/packages/common/package.json@@ -1,6 +1,7 @@{"name": "common","version": "0.0.0",+ "type": "module","main": "./index.tsx","types": "./index.tsx","license": "MIT",