The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: disable features (#17553)
Alaister Young3dca7ff61c01
diff --git a/studio/__mocks__/hooks.js b/studio/__mocks__/hooks.jsindex 1c64da8e2d2..b08fa101e3f 100644--- a/studio/__mocks__/hooks.js+++ b/studio/__mocks__/hooks.js@@ -8,6 +8,20 @@ export const useParams = jest.fn().mockImplementation(() => ({ ref: '123' }))export const useLocalStorage = jest.fn().mockImplementation(() => [[], jest.fn()])+export const useIsFeatureEnabled = jest.fn().mockImplementation((arg) =>+ typeof arg === 'string'+ ? true+ : new Proxy(+ {},+ {+ get() {+ // Always return true, regardless of the property name+ return true+ },+ }+ )+)+// mocks browser event listener adding/removingwindow.matchMedia = jest.fn().mockReturnValue({removeEventListener: jest.fn(),diff --git a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsxindex 856ba4942ae..45f63266149 100644--- a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx+++ b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx@@ -1,5 +1,7 @@import * as Tooltip from '@radix-ui/react-tooltip'import clsx from 'clsx'+import Link from 'next/link'+import Panel from 'components/ui/Panel'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import SparkBar from 'components/ui/SparkBar'@@ -10,8 +12,8 @@ import {UsageMetric,useProjectUsageQuery,} from 'data/usage/project-usage-query'+import { useIsFeatureEnabled } from 'hooks'import { formatBytes } from 'lib/helpers'-import Link from 'next/link'import { Button, IconAlertTriangle, IconBarChart2 } from 'ui'import { USAGE_APPROACHING_THRESHOLD } from '../Billing.constants'import SectionContent from './SectionContent'@@ -41,6 +43,8 @@ const UsageSection = ({subscription,currentBillingCycleSelected,}: UsageSectionProps) => {+ const billingEnabled = useIsFeatureEnabled('billing:all')+const { data: usage } = useProjectUsageQuery({ projectRef })const categoryMeta = USAGE_CATEGORIES.find((category) => category.key === categoryKey)@@ -263,13 +267,15 @@ const UsageSection = ({</p></div></div>- <Link- href={`/project/${projectRef}/settings/billing/subscription?panel=subscriptionPlan`}- >- <a>- <Button type="primary">Upgrade plan</Button>- </a>- </Link>+ {billingEnabled && (+ <Link+ href={`/project/${projectRef}/settings/billing/subscription?panel=subscriptionPlan`}+ >+ <a>+ <Button type="primary">Upgrade plan</Button>+ </a>+ </Link>+ )}</div></Panel.Content></Panel>diff --git a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsxindex 73d8ab6c0a2..457ce145d56 100644--- a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx@@ -4,7 +4,7 @@ import SVG from 'react-inlinesvg'import { Button, IconActivity, IconArchive, IconCode, IconExternalLink, IconKey } from 'ui'import Panel from 'components/ui/Panel'-import { useFlag } from 'hooks'+import { useFlag, useIsFeatureEnabled } from 'hooks'import APIKeys from './APIKeys'import GetStartedHero from './GetStartedHero'@@ -13,6 +13,12 @@ const NewProjectPanel = () => {const { ref } = router.queryconst supabaseAIEnabled = useFlag('sqlEditorSupabaseAI')+ const {+ projectAuthAll: authEnabled,+ projectEdgeFunctionAll: edgeFunctionsEnabled,+ projectStorageAll: storageEnabled,+ } = useIsFeatureEnabled(['project_auth:all', 'project_edge_function:all', 'project_storage:all'])+return (<div className="grid grid-cols-12 gap-4 lg:gap-20"><div className="col-span-12">@@ -94,147 +100,149 @@ const NewProjectPanel = () => {</div></div>- <div className="flex h-full flex-col justify-between space-y-6">- <div className="max-w-2xl space-y-2">- <h3 className="text-xl text-foreground">Explore our other products</h3>- <p className="text-base text-foreground-light">- Supabase provides all the backend features you need to build a product. You can use- it completely, or just the features you need.- </p>- </div>- <div className="grid grid-cols-1 md:grid-cols-2 md:gap-4 md:gap-y-0 xl:grid-cols-4">- <Panel>- <Panel.Content className="flex flex-col space-y-4 md:px-3">- <div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">- <IconKey strokeWidth={2} size={16} />+ {authEnabled && edgeFunctionsEnabled && storageEnabled && (+ <div className="flex h-full flex-col justify-between space-y-6">+ <div className="max-w-2xl space-y-2">+ <h3 className="text-xl text-foreground">Explore our other products</h3>+ <p className="text-base text-foreground-light">+ Supabase provides all the backend features you need to build a product. You can+ use it completely, or just the features you need.+ </p>+ </div>+ <div className="grid grid-cols-1 md:grid-cols-2 md:gap-4 md:gap-y-0 xl:grid-cols-4">+ <Panel>+ <Panel.Content className="flex flex-col space-y-4 md:px-3">+ <div className="flex items-center space-x-3">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <IconKey strokeWidth={2} size={16} />+ </div>+ <h5>Authentication</h5>+ </div>+ <div className="flex flex-grow md:min-h-[50px] xl:min-h-[75px]">+ <p className="text-sm text-foreground-light">+ A complete user management system that works without any additional tools.+ </p>+ </div>+ <div className="flex items-center space-x-2">+ <Link href={`/project/${ref}/auth/users`}>+ <a>+ <Button type="default">Explore Auth</Button>+ </a>+ </Link>+ <Link href="https://supabase.com/docs/guides/auth">+ <a target="_blank" rel="noreferrer">+ <Button+ className="translate-y-[1px]"+ icon={<IconExternalLink size={14} />}+ type="default"+ >+ About Auth+ </Button>+ </a>+ </Link></div>- <h5>Authentication</h5>- </div>- <div className="flex flex-grow md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">- A complete user management system that works without any additional tools.- </p>- </div>- <div className="flex items-center space-x-2">- <Link href={`/project/${ref}/auth/users`}>- <a>- <Button type="default">Explore Auth</Button>- </a>- </Link>- <Link href="https://supabase.com/docs/guides/auth">- <a target="_blank" rel="noreferrer">- <Button- className="translate-y-[1px]"- icon={<IconExternalLink size={14} />}- type="default"- >- About Auth- </Button>- </a>- </Link>- </div>- </Panel.Content>- </Panel>+ </Panel.Content>+ </Panel>- <Panel>- <Panel.Content className="flex flex-col space-y-4 md:px-3">- <div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">- <IconArchive strokeWidth={2} size={16} />+ <Panel>+ <Panel.Content className="flex flex-col space-y-4 md:px-3">+ <div className="flex items-center space-x-3">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <IconArchive strokeWidth={2} size={16} />+ </div>+ <h5>Storage</h5></div>- <h5>Storage</h5>- </div>- <div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">- Store, organize, and serve any file types of any size from multiple buckets.- </p>- </div>- <div className="flex items-center space-x-2">- <Link href={`/project/${ref}/storage/buckets`}>- <a>- <Button type="default">Explore Storage</Button>- </a>- </Link>- <Link href="https://supabase.com/docs/guides/storage">- <a target="_blank" rel="noreferrer">- <Button- className="translate-y-[1px]"- icon={<IconExternalLink size={14} />}- type="default"- >- About Storage- </Button>- </a>- </Link>- </div>- </Panel.Content>- </Panel>+ <div className="flex md:min-h-[50px] xl:min-h-[75px]">+ <p className="text-sm text-foreground-light">+ Store, organize, and serve any file types of any size from multiple buckets.+ </p>+ </div>+ <div className="flex items-center space-x-2">+ <Link href={`/project/${ref}/storage/buckets`}>+ <a>+ <Button type="default">Explore Storage</Button>+ </a>+ </Link>+ <Link href="https://supabase.com/docs/guides/storage">+ <a target="_blank" rel="noreferrer">+ <Button+ className="translate-y-[1px]"+ icon={<IconExternalLink size={14} />}+ type="default"+ >+ About Storage+ </Button>+ </a>+ </Link>+ </div>+ </Panel.Content>+ </Panel>- <Panel>- <Panel.Content className="flex flex-col space-y-4 md:px-3">- <div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">- <IconCode strokeWidth={2} size={16} />+ <Panel>+ <Panel.Content className="flex flex-col space-y-4 md:px-3">+ <div className="flex items-center space-x-3">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <IconCode strokeWidth={2} size={16} />+ </div>+ <h5>Edge Functions</h5>+ </div>+ <div className="flex md:min-h-[50px] xl:min-h-[75px]">+ <p className="text-sm text-foreground-light">+ Write custom code without deploying or scaling servers, with fast deploy+ times and low latency.+ </p>+ </div>+ <div className="flex items-center space-x-2">+ <Link href={`/project/${ref}/functions`}>+ <a>+ <Button type="default">Explore Functions</Button>+ </a>+ </Link>+ <Link href="https://supabase.com/docs/guides/functions">+ <a target="_blank" rel="noreferrer">+ <Button+ className="translate-y-[1px]"+ icon={<IconExternalLink size={14} />}+ type="default"+ >+ About Functions+ </Button>+ </a>+ </Link></div>- <h5>Edge Functions</h5>- </div>- <div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">- Write custom code without deploying or scaling servers, with fast deploy times- and low latency.- </p>- </div>- <div className="flex items-center space-x-2">- <Link href={`/project/${ref}/functions`}>- <a>- <Button type="default">Explore Functions</Button>- </a>- </Link>- <Link href="https://supabase.com/docs/guides/functions">- <a target="_blank" rel="noreferrer">- <Button- className="translate-y-[1px]"- icon={<IconExternalLink size={14} />}- type="default"- >- About Functions- </Button>- </a>- </Link>- </div>- </Panel.Content>- </Panel>- <Panel>- <Panel.Content className="flex flex-col space-y-4 md:px-3">- <div className="flex items-center space-x-4">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">- <IconActivity strokeWidth={2} size={16} />+ </Panel.Content>+ </Panel>+ <Panel>+ <Panel.Content className="flex flex-col space-y-4 md:px-3">+ <div className="flex items-center space-x-4">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <IconActivity strokeWidth={2} size={16} />+ </div>+ <h5>Realtime</h5></div>- <h5>Realtime</h5>- </div>- <div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">- Listen to your PostgreSQL database in realtime via websockets.- </p>- </div>- <div className="flex items-center space-x-2">- <Link href="https://supabase.com/docs/guides/realtime">- <a target="_blank" rel="noreferrer">- <Button- className="translate-y-[1px]"- icon={<IconExternalLink size={14} />}- type="default"- >- About Realtime- </Button>- </a>- </Link>- </div>- </Panel.Content>- </Panel>+ <div className="flex md:min-h-[50px] xl:min-h-[75px]">+ <p className="text-sm text-foreground-light">+ Listen to your PostgreSQL database in realtime via websockets.+ </p>+ </div>+ <div className="flex items-center space-x-2">+ <Link href="https://supabase.com/docs/guides/realtime">+ <a target="_blank" rel="noreferrer">+ <Button+ className="translate-y-[1px]"+ icon={<IconExternalLink size={14} />}+ type="default"+ >+ About Realtime+ </Button>+ </a>+ </Link>+ </div>+ </Panel.Content>+ </Panel>+ </div></div>- </div>+ )}</div></div>diff --git a/studio/components/interfaces/Home/ProjectUsage.tsx b/studio/components/interfaces/Home/ProjectUsage.tsxindex 8ab206a8f13..a31e1ff36b8 100644--- a/studio/components/interfaces/Home/ProjectUsage.tsx+++ b/studio/components/interfaces/Home/ProjectUsage.tsx@@ -24,6 +24,7 @@ import BarChart from 'components/ui/Charts/BarChart'import Panel from 'components/ui/Panel'import { UsageApiCounts, useProjectLogStatsQuery } from 'data/analytics/project-log-stats-query'import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'+import { useIsFeatureEnabled } from 'hooks'const CHART_INTERVALS: ChartIntervals[] = [{@@ -41,6 +42,11 @@ const ProjectUsage = () => {const router = useRouter()const { ref: projectRef } = useParams()+ const { projectAuthAll: authEnabled, projectStorageAll: storageEnabled } = useIsFeatureEnabled([+ 'project_auth:all',+ 'project_storage:all',+ ])+const [interval, setInterval] = useState<string>('hourly')const { data, error, isLoading } = useProjectLogStatsQuery({ projectRef, interval })@@ -128,55 +134,59 @@ const ProjectUsage = () => {</Loading></Panel.Content></Panel>- <Panel>- <Panel.Content className="space-y-4">- <PanelHeader- icon={- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">- <IconKey strokeWidth={2} size={16} />- </div>- }- title="Auth"- href={`/project/${projectRef}/auth/users`}- />- <Loading active={isLoading}>- <BarChart- title="Auth Requests"- data={charts}- xAxisKey="timestamp"- yAxisKey="total_auth_requests"- onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'auth')}- customDateFormat={datetimeFormat}- highlightedValue={sumBy(charts || [], 'total_auth_requests')}+ {authEnabled && (+ <Panel>+ <Panel.Content className="space-y-4">+ <PanelHeader+ icon={+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <IconKey strokeWidth={2} size={16} />+ </div>+ }+ title="Auth"+ href={`/project/${projectRef}/auth/users`}/>- </Loading>- </Panel.Content>- </Panel>- <Panel>- <Panel.Content className="space-y-4">- <PanelHeader- icon={- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">- <IconArchive strokeWidth={2} size={16} />- </div>- }- title="Storage"- href={`/project/${projectRef}/storage/buckets`}- />-- <Loading active={isLoading}>- <BarChart- title="Storage Requests"- data={charts}- xAxisKey="timestamp"- yAxisKey="total_storage_requests"- onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'storage')}- customDateFormat={datetimeFormat}- highlightedValue={sumBy(charts, 'total_storage_requests')}+ <Loading active={isLoading}>+ <BarChart+ title="Auth Requests"+ data={charts}+ xAxisKey="timestamp"+ yAxisKey="total_auth_requests"+ onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'auth')}+ customDateFormat={datetimeFormat}+ highlightedValue={sumBy(charts || [], 'total_auth_requests')}+ />+ </Loading>+ </Panel.Content>+ </Panel>+ )}+ {storageEnabled && (+ <Panel>+ <Panel.Content className="space-y-4">+ <PanelHeader+ icon={+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <IconArchive strokeWidth={2} size={16} />+ </div>+ }+ title="Storage"+ href={`/project/${projectRef}/storage/buckets`}/>- </Loading>- </Panel.Content>- </Panel>++ <Loading active={isLoading}>+ <BarChart+ title="Storage Requests"+ data={charts}+ xAxisKey="timestamp"+ yAxisKey="total_storage_requests"+ onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'storage')}+ customDateFormat={datetimeFormat}+ highlightedValue={sumBy(charts, 'total_storage_requests')}+ />+ </Loading>+ </Panel.Content>+ </Panel>+ )}<Panel><Panel.Content className="space-y-4"><PanelHeaderdiff --git a/studio/components/interfaces/Home/ServiceStatus.tsx b/studio/components/interfaces/Home/ServiceStatus.tsxindex f8bfb6639cc..3953b3bc223 100644--- a/studio/components/interfaces/Home/ServiceStatus.tsx+++ b/studio/components/interfaces/Home/ServiceStatus.tsx@@ -11,7 +11,7 @@ import {import { usePostgresServiceStatusQuery } from 'data/service-status/postgres-service-status-query'import { useProjectServiceStatusQuery } from 'data/service-status/service-status-query'-import { useSelectedProject } from 'hooks'+import { useIsFeatureEnabled, useSelectedProject } from 'hooks'import { useEdgeFunctionServiceStatusQuery } from 'data/service-status/edge-functions-status-query'const ServiceStatus = () => {@@ -19,6 +19,9 @@ const ServiceStatus = () => {const project = useSelectedProject()const [open, setOpen] = useState(false)+ const { projectAuthAll: authEnabled, projectEdgeFunctionAll: edgeFunctionsEnabled } =+ useIsFeatureEnabled(['project_auth:all', 'project_edge_function:all'])+const isBranch = project?.parentRef !== project?.ref// [Joshen] Need pooler service check eventually@@ -45,15 +48,21 @@ const ServiceStatus = () => {isSuccess: isSuccessPostgres,},{ name: 'PostgREST', docsUrls: undefined, isLoading, isSuccess: restStatus?.healthy },- { name: 'Auth', docsUrls: undefined, isLoading, isSuccess: authStatus?.healthy },+ ...(authEnabled+ ? [{ name: 'Auth', docsUrls: undefined, isLoading, isSuccess: authStatus?.healthy }]+ : []),{ name: 'Realtime', docsUrls: undefined, isLoading, isSuccess: realtimeStatus?.healthy },// { name: 'Storage', docsUrls: undefined, isLoading, isSuccess: storageStatus?.healthy },- {- name: 'Edge Functions',- docsUrl: 'https://supabase.com/docs/guides/functions/troubleshooting',- isLoading,- isSuccess: edgeFunctionsStatus?.healthy,- },+ ...(edgeFunctionsEnabled+ ? [+ {+ name: 'Edge Functions',+ docsUrl: 'https://supabase.com/docs/guides/functions/troubleshooting',+ isLoading,+ isSuccess: edgeFunctionsStatus?.healthy,+ },+ ]+ : []),]const isLoadingChecks = services.some((service) => service.isLoading)diff --git a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsxindex d5c03141063..89825ff58af 100644--- a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx+++ b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx@@ -2,18 +2,6 @@ import * as Tooltip from '@radix-ui/react-tooltip'import dayjs from 'dayjs'import Image from 'next/image'import { useEffect, useState } from 'react'-import {- Alert,- AlertDescription_Shadcn_,- AlertTitle_Shadcn_,- Alert_Shadcn_,- Button,- IconAlertTriangle,- IconArrowDown,- IconArrowUp,- IconRefreshCw,- IconUser,-} from 'ui'import { useParams } from 'common'import { FilterPopover, LogDetailsPanel } from 'components/interfaces/AuditLogs'@@ -30,7 +18,20 @@ import { useOrganizationDetailQuery } from 'data/organizations/organization-detaimport { useOrganizationRolesQuery } from 'data/organizations/organization-roles-query'import { useOrganizationsQuery } from 'data/organizations/organizations-query'import { useProjectsQuery } from 'data/projects/projects-query'+import { useIsFeatureEnabled } from 'hooks'import Link from 'next/link'+import {+ Alert,+ AlertDescription_Shadcn_,+ AlertTitle_Shadcn_,+ Alert_Shadcn_,+ Button,+ IconAlertTriangle,+ IconArrowDown,+ IconArrowUp,+ IconRefreshCw,+ IconUser,+} from 'ui'// [Joshen considerations]// - Maybe fix the height of the table to the remaining height of the viewport, so that the search input is always visible@@ -52,6 +53,8 @@ const AuditLogs = () => {projects: [], // project_ref[]})+ const billingEnabled = useIsFeatureEnabled('billing:all')+const { data: projects } = useProjectsQuery()const { data: organizations } = useOrganizationsQuery()const { data: detailData } = useOrganizationDetailQuery({ slug })@@ -228,11 +231,13 @@ const AuditLogs = () => {</AlertDescription_Shadcn_></div>- <div className="flex items-center">- <Link href={`/org/${slug}/billing?panel=subscriptionPlan`}>- <Button type="primary">Upgrade subscription</Button>- </Link>- </div>+ {billingEnabled && (+ <div className="flex items-center">+ <Link href={`/org/${slug}/billing?panel=subscriptionPlan`}>+ <Button type="primary">Upgrade subscription</Button>+ </Link>+ </div>+ )}</div></Alert_Shadcn_>) : (diff --git a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsxindex ce482b6c887..3465f104e9e 100644--- a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx@@ -18,7 +18,7 @@ import {} from 'components/ui/Forms'import { useOrganizationUpdateMutation } from 'data/organizations/organization-update-mutation'import { invalidateOrganizationsQuery } from 'data/organizations/organizations-query'-import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'+import { useCheckPermissions, useIsFeatureEnabled, useSelectedOrganization, useStore } from 'hooks'import { OPT_IN_TAGS } from 'lib/constants'import OrganizationDeletePanel from './OrganizationDeletePanel'@@ -34,6 +34,8 @@ const GeneralSettings = () => {const isOptedIntoAi = opt_in_tags?.includes(OPT_IN_TAGS.AI_SQL)const initialValues = { name: name ?? '', isOptedIntoAi }+ const organizationDeletionEnabled = useIsFeatureEnabled('organizations:delete')+const canUpdateOrganization = useCheckPermissions(PermissionAction.UPDATE, 'organizations')const canDeleteOrganization = useCheckPermissions(PermissionAction.UPDATE, 'organizations')const { mutate: updateOrganization, isLoading: isUpdating } = useOrganizationUpdateMutation()@@ -189,7 +191,7 @@ const GeneralSettings = () => {}}</Form>- {canDeleteOrganization && <OrganizationDeletePanel />}+ {organizationDeletionEnabled && canDeleteOrganization && <OrganizationDeletePanel />}</ScaffoldContainerLegacy>)}diff --git a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsxindex 4feb51b48b8..cd4a5f0192b 100644--- a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx@@ -7,7 +7,7 @@ import { useOrganizationMemberDeleteMutation } from 'data/organizations/organizaimport { useOrganizationMemberInviteCreateMutation } from 'data/organizations/organization-member-invite-create-mutation'import { useOrganizationMemberInviteDeleteMutation } from 'data/organizations/organization-member-invite-delete-mutation'import { usePermissionsQuery } from 'data/permissions/permissions-query'-import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'+import { useCheckPermissions, useIsFeatureEnabled, useSelectedOrganization, useStore } from 'hooks'import { observer } from 'mobx-react-lite'import { Member, Role } from 'types'import {@@ -31,6 +31,9 @@ interface MemberActionsProps {const MemberActions = ({ member, roles }: MemberActionsProps) => {const { ui } = useStore()const { slug } = useParams()++ const organizationMembersDeletionEnabled = useIsFeatureEnabled('organization_members:delete')+const selectedOrganization = useSelectedOrganization()const { data: permissions } = usePermissionsQuery()const { rolesRemovable } = useGetRolesManagementPermissions(@@ -186,10 +189,12 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {)}</>) : (- <DropdownMenuItem className="space-x-2" onClick={handleMemberDelete}>- <IconTrash size={16} />- <p>Remove member</p>- </DropdownMenuItem>+ organizationMembersDeletionEnabled && (+ <DropdownMenuItem className="space-x-2" onClick={handleMemberDelete}>+ <IconTrash size={16} />+ <p>Remove member</p>+ </DropdownMenuItem>+ ))}</></DropdownMenuContent>diff --git a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsxindex 3550faf55ec..22845c62133 100644--- a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx@@ -1,32 +1,35 @@import * as Tooltip from '@radix-ui/react-tooltip'import { useState } from 'react'-import { Button, IconSearch, Input } from 'ui'import { useParams } from 'common/hooks'+import {+ ScaffoldActionsContainer,+ ScaffoldActionsGroup,+ ScaffoldContainerLegacy,+ ScaffoldFilterAndContent,+ ScaffoldSectionContent,+} from 'components/layouts/Scaffold'import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'import { useOrganizationDetailQuery } from 'data/organizations/organization-detail-query'+import { useOrganizationMemberDeleteMutation } from 'data/organizations/organization-member-delete-mutation'import { useOrganizationRolesQuery } from 'data/organizations/organization-roles-query'import { usePermissionsQuery } from 'data/permissions/permissions-query'-import { useSelectedOrganization, useStore } from 'hooks'-import { delete_, isResponseOk } from 'lib/common/fetch'-import { API_URL } from 'lib/constants'+import { useIsFeatureEnabled, useSelectedOrganization, useStore } from 'hooks'import { useProfile } from 'lib/profile'+import { Button, IconSearch, Input } from 'ui'import InviteMemberButton from './InviteMemberButton'import MembersView from './MembersView'import { hasMultipleOwners, useGetRolesManagementPermissions } from './TeamSettings.utils'-import {- ScaffoldActionsGroup,- ScaffoldContainerLegacy,- ScaffoldFilterAndContent,- ScaffoldActionsContainer,- ScaffoldSectionContent,-} from 'components/layouts/Scaffold'-import { useOrganizationMemberDeleteMutation } from 'data/organizations/organization-member-delete-mutation'const TeamSettings = () => {const { ui } = useStore()const { slug } = useParams()+ const {+ organizationMembersCreate: organizationMembersCreationEnabled,+ organizationMembersDelete: organizationMembersDeletionEnabled,+ } = useIsFeatureEnabled(['organization_members:create', 'organization_members:delete'])+const { profile } = useProfile()const selectedOrganization = useSelectedOrganization()const isOwner = selectedOrganization?.is_owner@@ -91,48 +94,54 @@ const TeamSettings = () => {placeholder="Filter members"/><ScaffoldActionsGroup>- {canAddMembers && profile !== undefined && selectedOrganization !== undefined && (+ {organizationMembersCreationEnabled &&+ canAddMembers &&+ profile !== undefined &&+ selectedOrganization !== undefined && (+ <div>+ <InviteMemberButton+ orgId={selectedOrganization.id}+ userId={profile.id}+ members={members}+ roles={roles}+ rolesAddable={rolesAddable}+ />+ </div>+ )}+ {/* if organizationMembersDeletionEnabled is false, you also can't delete yourself */}+ {organizationMembersDeletionEnabled && (<div>- <InviteMemberButton- orgId={selectedOrganization.id}- userId={profile.id}- members={members}- roles={roles}- rolesAddable={rolesAddable}- />+ <Tooltip.Root delayDuration={0}>+ <Tooltip.Trigger>+ <Button+ type="default"+ disabled={!canLeave}+ onClick={() => leaveTeam()}+ loading={isLeaving}+ >+ Leave team+ </Button>+ </Tooltip.Trigger>+ {!canLeave && (+ <Tooltip.Portal>+ <Tooltip.Content side="bottom">+ <Tooltip.Arrow className="radix-tooltip-arrow" />+ <div+ className={[+ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',+ 'border border-scale-200',+ ].join(' ')}+ >+ <span className="text-xs text-foreground">+ An organization requires at least 1 owner+ </span>+ </div>+ </Tooltip.Content>+ </Tooltip.Portal>+ )}+ </Tooltip.Root></div>)}- <div>- <Tooltip.Root delayDuration={0}>- <Tooltip.Trigger>- <Button- type="default"- disabled={!canLeave}- onClick={() => leaveTeam()}- loading={isLeaving}- >- Leave team- </Button>- </Tooltip.Trigger>- {!canLeave && (- <Tooltip.Portal>- <Tooltip.Content side="bottom">- <Tooltip.Arrow className="radix-tooltip-arrow" />- <div- className={[- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',- 'border border-scale-200',- ].join(' ')}- >- <span className="text-xs text-foreground">- An organization requires at least 1 owner- </span>- </div>- </Tooltip.Content>- </Tooltip.Portal>- )}- </Tooltip.Root>- </div></ScaffoldActionsGroup></ScaffoldActionsContainer><ScaffoldSectionContent className="w-full">diff --git a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsxindex f95b4dcccfd..6b36b0874d4 100644--- a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx@@ -21,6 +21,7 @@ import {} from '../Usage.utils'import UsageBarChart from '../UsageBarChart'import { ChartMeta } from './UsageSection'+import { useIsFeatureEnabled } from 'hooks'export interface AttributeUsageProps {slug: string@@ -54,6 +55,8 @@ const AttributeUsage = ({isSuccess,currentBillingCycleSelected,}: AttributeUsageProps) => {+ const billingEnabled = useIsFeatureEnabled('billing:all')+const upgradeUrl = getUpgradeUrl(slug ?? '', subscription)const usageRatio = (usageMeta?.usage ?? 0) / (usageMeta?.pricing_free_units ?? 0)const usageExcess = (usageMeta?.usage ?? 0) - (usageMeta?.pricing_free_units ?? 0)@@ -149,7 +152,7 @@ const AttributeUsage = ({)}</div>- {showUsageWarning && (+ {billingEnabled && showUsageWarning && (<Link href={upgradeUrl}><a className="pb-1"><Button type="default" size="tiny">@@ -282,11 +285,13 @@ const AttributeUsage = ({</p></div></div>- <Link href={upgradeUrl}>- <a>- <Button type="primary">Upgrade plan</Button>- </a>- </Link>+ {billingEnabled && (+ <Link href={upgradeUrl}>+ <a>+ <Button type="primary">Upgrade plan</Button>+ </a>+ </Link>+ )}</div></Panel.Content></Panel>diff --git a/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx b/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsxindex 3b86f39dbf9..3e61b28835b 100644--- a/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx+++ b/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx@@ -6,6 +6,7 @@ import { Button, IconBook, IconBookOpen } from 'ui'import { useEdgeFunctionsQuery } from 'data/edge-functions/edge-functions-query'import { useOpenAPISpecQuery } from 'data/open-api/api-spec-query'import { useBucketsQuery } from 'data/storage/buckets-query'+import { useIsFeatureEnabled } from 'hooks'import { useAppStateSnapshot } from 'state/app-state'import { navigateToSection } from './Content/Content.utils'import { DOCS_CONTENT, DOCS_MENU } from './ProjectAPIDocs.constants'@@ -16,6 +17,19 @@ const FirstLevelNav = () => {const { ref } = useParams()const snap = useAppStateSnapshot()+ const {+ projectAuthAll: authEnabled,+ projectStorageAll: storageEnabled,+ projectEdgeFunctionAll: edgeFunctionsEnabled,+ } = useIsFeatureEnabled(['project_auth:all', 'project_storage:all', 'project_edge_function:all'])++ const docsMenu = DOCS_MENU.filter((item) => {+ if (item.key === 'user-management') return authEnabled+ if (item.key === 'storage') return storageEnabled+ if (item.key === 'edge-functions') return edgeFunctionsEnabled+ return true+ })+const { data } = useOpenAPISpecQuery({ projectRef: ref })const tables = data?.tables ?? []const functions = data?.functions ?? []@@ -26,7 +40,7 @@ const FirstLevelNav = () => {return (<><div className="px-2 py-4 border-b">- {DOCS_MENU.map((item) => {+ {docsMenu.map((item) => {const isActive = snap.activeDocsSection[0] === item.keyconst sections = Object.values(DOCS_CONTENT).filter((snippet) => snippet.category === item.keydiff --git a/studio/components/interfaces/Reports/Reports.tsx b/studio/components/interfaces/Reports/Reports.tsxindex 9bd0f7d04ea..6470d3033cd 100644--- a/studio/components/interfaces/Reports/Reports.tsx+++ b/studio/components/interfaces/Reports/Reports.tsx@@ -26,7 +26,7 @@ import { useParams } from 'common/hooks'import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'import Loading from 'components/ui/Loading'import NoPermission from 'components/ui/NoPermission'-import { useCheckPermissions } from 'hooks'+import { useCheckPermissions, useIsFeatureEnabled } from 'hooks'import { METRICS, METRIC_CATEGORIES, TIME_PERIODS_REPORTS } from 'lib/constants'import { uuidv4 } from 'lib/helpers'import { useProfile } from 'lib/profile'@@ -41,6 +41,11 @@ const Reports = () => {const { id, ref } = useParams()const { profile } = useProfile()+ const { projectAuthAll: authEnabled, projectStorageAll: storageEnabled } = useIsFeatureEnabled([+ 'project_auth:all',+ 'project_storage:all',+ ])+const [report, setReport] = useState<any>()const [loading, setLoading] = useState<any>(false)@@ -268,10 +273,16 @@ const Reports = () => {})}+ const metricCategories = Object.values(METRIC_CATEGORIES).filter(({ key }) => {+ if (key === 'api_auth') return authEnabled+ if (key === 'api_storage') return storageEnabled+ return true+ })+const MetricOptions = () => {return (<>- {Object.values(METRIC_CATEGORIES).map((cat) => {+ {metricCategories.map((cat) => {return (<DropdownMenuSub key={cat.key}><DropdownMenuSubTrigger className="space-x-2">diff --git a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsxindex 706ab312116..0961a4c0ef2 100644--- a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx+++ b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx@@ -13,7 +13,7 @@ import {import AlertError from 'components/ui/AlertError'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useProjectUpgradeEligibilityQuery } from 'data/config/project-upgrade-eligibility-query'-import { useFlag } from 'hooks'+import { useFlag, useIsFeatureEnabled } from 'hooks'import { Alert, Badge, Button, IconPackage, Input } from 'ui'import ProjectUpgradeAlert from '../General/Infrastructure/ProjectUpgradeAlert'@@ -21,6 +21,8 @@ const InfrastructureInfo = () => {const { ref } = useParams()const { project } = useProjectContext()+ const authEnabled = useIsFeatureEnabled('project_auth:all')+const {data,error,@@ -77,12 +79,14 @@ const InfrastructureInfo = () => {)}{isSuccessUpgradeEligibility && (<>- <Input- readOnly- disabled- label="GoTrue version"- value={project?.serviceVersions?.gotrue ?? ''}- />+ {authEnabled && (+ <Input+ readOnly+ disabled+ label="GoTrue version"+ value={project?.serviceVersions?.gotrue ?? ''}+ />+ )}<InputreadOnlydisableddiff --git a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsxindex 5f0babf7e0b..245e9211ddc 100644--- a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx+++ b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx@@ -13,7 +13,7 @@ import {Popover,} from 'ui'-import { useCheckPermissions } from 'hooks'+import { useCheckPermissions, useIsFeatureEnabled } from 'hooks'import { IS_PLATFORM } from 'lib/constants'import { useProfile } from 'lib/profile'import Link from 'next/link'@@ -62,6 +62,21 @@ const LogsQueryPanel = ({subject: { id: profile?.id },})+ const {+ projectAuthAll: authEnabled,+ projectStorageAll: storageEnabled,+ projectEdgeFunctionAll: edgeFunctionsEnabled,+ } = useIsFeatureEnabled(['project_auth:all', 'project_storage:all', 'project_edge_function:all'])++ const logsTableNames = Object.entries(LogsTableName)+ .filter(([key]) => {+ if (key === 'AUTH') return authEnabled+ if (key === 'STORAGE') return storageEnabled+ if (key === 'FN_EDGE') return edgeFunctionsEnabled+ return true+ })+ .map(([, value]) => value)+return (<div className="rounded rounded-bl-none rounded-br-none border border-panel-border-light bg-panel-header-light dark:border-panel-border-dark dark:bg-panel-header-dark"><div className="flex w-full items-center justify-between px-5 py-2">@@ -74,7 +89,7 @@ const LogsQueryPanel = ({</Button></DropdownMenuTrigger><DropdownMenuContent side="bottom" align="start">- {Object.values(LogsTableName)+ {logsTableNames.sort((a, b) => a.localeCompare(b)).map((source) => (<DropdownMenuItem key={source} onClick={() => onSelectSource(source)}>diff --git a/studio/components/layouts/AppLayout/AppHeader.tsx b/studio/components/layouts/AppLayout/AppHeader.tsxindex 5c6dc67c672..e5cffc75cbe 100644--- a/studio/components/layouts/AppLayout/AppHeader.tsx+++ b/studio/components/layouts/AppLayout/AppHeader.tsx@@ -6,12 +6,12 @@ import { useFlag, useSelectedOrganization, useSelectedProject } from 'hooks'import FeedbackDropdown from '../ProjectLayout/LayoutHeader/FeedbackDropdown'import HelpPopover from '../ProjectLayout/LayoutHeader/HelpPopover'import NotificationsPopover from '../ProjectLayout/LayoutHeader/NotificationsPopover'+import BranchDropdown from './BranchDropdown'+import EnableBranchingButton from './EnableBranchingButton/EnableBranchingButton'import OrganizationDropdown from './OrganizationDropdown'import ProjectDropdown from './ProjectDropdown'import SettingsButton from './SettingsButton'import UserSettingsDropdown from './UserSettingsDropdown'-import BranchDropdown from './BranchDropdown'-import EnableBranchingButton from './EnableBranchingButton/EnableBranchingButton'const AppHeader = () => {const router = useRouter()diff --git a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/studio/components/layouts/AppLayout/OrganizationDropdown.tsxindex b593d46e68c..c008b6c7c74 100644--- a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx+++ b/studio/components/layouts/AppLayout/OrganizationDropdown.tsx@@ -1,6 +1,11 @@import Link from 'next/link'import { useRouter } from 'next/router'import { useState } from 'react'++import ShimmeringLoader from 'components/ui/ShimmeringLoader'+import { useOrganizationsQuery } from 'data/organizations/organizations-query'+import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'+import { useIsFeatureEnabled, useSelectedOrganization } from 'hooks'import {Badge,Button,@@ -19,11 +24,6 @@ import {ScrollArea,} from 'ui'-import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import { useOrganizationsQuery } from 'data/organizations/organizations-query'-import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'-import { useSelectedOrganization } from 'hooks'-interface OrganizationDropdownProps {isNewNav?: boolean}@@ -33,6 +33,8 @@ const OrganizationDropdown = ({ isNewNav = false }: OrganizationDropdownProps) =const selectedOrganization = useSelectedOrganization()const { data: organizations, isLoading: isLoadingOrganizations } = useOrganizationsQuery()+ const organizationCreationEnabled = useIsFeatureEnabled('organizations:create')+const slug = selectedOrganization?.slugconst orgName = selectedOrganization?.nameconst isOrgBilling = !!selectedOrganization?.subscription_id@@ -101,24 +103,26 @@ const OrganizationDropdown = ({ isNewNav = false }: OrganizationDropdownProps) =})}</ScrollArea></CommandGroup_Shadcn_>- <CommandGroup_Shadcn_ className="border-t">- <Link passHref href="/new">- <CommandItem_Shadcn_- asChild- className="cursor-pointer flex items-center space-x-2 w-full"- onSelect={(e) => {- setOpen(false)- router.push(`/new`)- }}- onClick={() => setOpen(false)}- >- <a>- <IconPlus size={14} strokeWidth={1.5} />- <p>New organization</p>- </a>- </CommandItem_Shadcn_>- </Link>- </CommandGroup_Shadcn_>+ {organizationCreationEnabled && (+ <CommandGroup_Shadcn_ className="border-t">+ <Link passHref href="/new">+ <CommandItem_Shadcn_+ asChild+ className="cursor-pointer flex items-center space-x-2 w-full"+ onSelect={(e) => {+ setOpen(false)+ router.push(`/new`)+ }}+ onClick={() => setOpen(false)}+ >+ <a>+ <IconPlus size={14} strokeWidth={1.5} />+ <p>New organization</p>+ </a>+ </CommandItem_Shadcn_>+ </Link>+ </CommandGroup_Shadcn_>+ )}</CommandList_Shadcn_></Command_Shadcn_></PopoverContent_Shadcn_>diff --git a/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/studio/components/layouts/AppLayout/ProjectDropdown.tsxindex 69ba333bce9..b0a787a0c07 100644--- a/studio/components/layouts/AppLayout/ProjectDropdown.tsx+++ b/studio/components/layouts/AppLayout/ProjectDropdown.tsx@@ -2,6 +2,14 @@ import Link from 'next/link'import { useRouter } from 'next/router'import { ParsedUrlQuery } from 'querystring'import { useState } from 'react'++import { useParams } from 'common'+import ShimmeringLoader from 'components/ui/ShimmeringLoader'+import { useProjectsQuery } from 'data/projects/projects-query'+import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'+import { useIsFeatureEnabled, useSelectedOrganization, useSelectedProject } from 'hooks'+import { IS_PLATFORM } from 'lib/constants'+import { Organization, Project } from 'types'import {Badge,Button,@@ -20,14 +28,6 @@ import {ScrollArea,} from 'ui'-import { useParams } from 'common'-import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import { useProjectsQuery } from 'data/projects/projects-query'-import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'-import { useSelectedOrganization, useSelectedProject } from 'hooks'-import { IS_PLATFORM } from 'lib/constants'-import { Organization, Project } from 'types'-// [Fran] the idea is to let users change projects without losing the current page,// but at the same time we need to redirect correctly between urls that might be// unique to a project e.g. '/project/projectRef/editor/tableId'@@ -110,6 +110,8 @@ const ProjectDropdown = ({ isNewNav = false }: ProjectDropdownProps) => {const selectedOrganization = useSelectedOrganization()const { data: allProjects, isLoading: isLoadingProjects } = useProjectsQuery()+ const projectCreationEnabled = useIsFeatureEnabled('projects:create')+const isBranch = projectDetails?.parentRef !== projectDetails?.refconst isOrgBilling = !!selectedOrganization?.subscription_idconst { data: subscription, isSuccess } = useProjectSubscriptionV2Query(@@ -165,30 +167,32 @@ const ProjectDropdown = ({ isNewNav = false }: ProjectDropdownProps) => {))}</ScrollArea></CommandGroup_Shadcn_>- <CommandGroup_Shadcn_ className="border-t">- <Link- passHref- href={`/new/${selectedOrganization?.slug}`}- onClick={() => {- setOpen(false)- }}- >- <CommandItem_Shadcn_- asChild- className="cursor-pointer flex items-center space-x-2 w-full"- onSelect={() => {+ {projectCreationEnabled && (+ <CommandGroup_Shadcn_ className="border-t">+ <Link+ passHref+ href={`/new/${selectedOrganization?.slug}`}+ onClick={() => {setOpen(false)- router.push(`/new/${selectedOrganization?.slug}`)}}- onClick={() => setOpen(false)}>- <a>- <IconPlus size={14} strokeWidth={1.5} />- <p>New project</p>- </a>- </CommandItem_Shadcn_>- </Link>- </CommandGroup_Shadcn_>+ <CommandItem_Shadcn_+ asChild+ className="cursor-pointer flex items-center space-x-2 w-full"+ onSelect={() => {+ setOpen(false)+ router.push(`/new/${selectedOrganization?.slug}`)+ }}+ onClick={() => setOpen(false)}+ >+ <a>+ <IconPlus size={14} strokeWidth={1.5} />+ <p>New project</p>+ </a>+ </CommandItem_Shadcn_>+ </Link>+ </CommandGroup_Shadcn_>+ )}</CommandList_Shadcn_></Command_Shadcn_></PopoverContent_Shadcn_>diff --git a/studio/components/layouts/LogsLayout/LogsLayout.tsx b/studio/components/layouts/LogsLayout/LogsLayout.tsxindex ff331f16c4c..424e2f165be 100644--- a/studio/components/layouts/LogsLayout/LogsLayout.tsx+++ b/studio/components/layouts/LogsLayout/LogsLayout.tsx@@ -4,7 +4,7 @@ import { PropsWithChildren } from 'react'import NoPermission from 'components/ui/NoPermission'import ProductMenu from 'components/ui/ProductMenu'-import { useCheckPermissions, useSelectedProject, withAuth } from 'hooks'+import { useCheckPermissions, useIsFeatureEnabled, useSelectedProject, withAuth } from 'hooks'import ProjectLayout from '../'import { generateLogsMenu } from './LogsMenu.utils'@@ -17,6 +17,11 @@ const LogsLayout = ({ title, children }: PropsWithChildren<LogsLayoutProps>) =>const pathArr = router.pathname.split('/')const page = pathArr[pathArr.length - 1]+ const { projectAuthAll: authEnabled, projectStorageAll: storageEnabled } = useIsFeatureEnabled([+ 'project_storage:all',+ 'project_auth:all',+ ])+const project = useSelectedProject()const canUseLogsExplorer = useCheckPermissions(PermissionAction.ANALYTICS_READ, 'logflare')@@ -35,7 +40,15 @@ const LogsLayout = ({ title, children }: PropsWithChildren<LogsLayoutProps>) =><ProjectLayouttitle={title}product="Logs"- productMenu={<ProductMenu page={page} menu={generateLogsMenu(project)} />}+ productMenu={+ <ProductMenu+ page={page}+ menu={generateLogsMenu(project, {+ auth: authEnabled,+ storage: storageEnabled,+ })}+ />+ }><main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">{children}diff --git a/studio/components/layouts/LogsLayout/LogsMenu.utils.ts b/studio/components/layouts/LogsLayout/LogsMenu.utils.tsindex 043cb776c47..2401d6190a1 100644--- a/studio/components/layouts/LogsLayout/LogsMenu.utils.ts+++ b/studio/components/layouts/LogsLayout/LogsMenu.utils.ts@@ -2,9 +2,15 @@ import { Project } from 'types'import { ProductMenuGroup, ProductMenuGroupItem } from 'components/ui/ProductMenu/ProductMenu.types'import { IS_PLATFORM } from 'lib/constants'-export const generateLogsMenu = (project?: Project): ProductMenuGroup[] => {+export const generateLogsMenu = (+ project?: Project,+ features?: { auth?: boolean; storage?: boolean }+): ProductMenuGroup[] => {const ref = project?.ref ?? 'default'+ const authEnabled = features?.auth ?? true+ const storageEnabled = features?.storage ?? true+return [{title: 'Logs Explorer',@@ -51,18 +57,22 @@ export const generateLogsMenu = (project?: Project): ProductMenuGroup[] => {}: null,,- {- name: 'Auth',- key: 'auth-logs',- url: `/project/${ref}/logs/auth-logs`,- items: [],- },- {- name: 'Storage',- key: 'storage-logs',- url: `/project/${ref}/logs/storage-logs`,- items: [],- },+ authEnabled+ ? {+ name: 'Auth',+ key: 'auth-logs',+ url: `/project/${ref}/logs/auth-logs`,+ items: [],+ }+ : null,+ storageEnabled+ ? {+ name: 'Storage',+ key: 'storage-logs',+ url: `/project/${ref}/logs/storage-logs`,+ items: [],+ }+ : null,{name: 'Realtime',key: 'realtime-logs',diff --git a/studio/components/layouts/OrganizationLayout.tsx b/studio/components/layouts/OrganizationLayout.tsxindex 691f99f25b5..cddd07792f1 100644--- a/studio/components/layouts/OrganizationLayout.tsx+++ b/studio/components/layouts/OrganizationLayout.tsx@@ -1,7 +1,8 @@-import { useParams } from 'common'-import { useFlag, useSelectedOrganization } from 'hooks'import { useRouter } from 'next/router'import { PropsWithChildren } from 'react'++import { useParams } from 'common'+import { useFlag, useIsFeatureEnabled, useSelectedOrganization } from 'hooks'import { Tabs } from 'ui'import { AccountLayout } from './'import { ScaffoldContainer, ScaffoldDivider, ScaffoldHeader, ScaffoldTitle } from './Scaffold'@@ -14,6 +15,8 @@ const OrganizationLayout = ({ children }: PropsWithChildren<{}>) => {const id = router.asPath.split('/').at(-1)?.split('?')[0]?.split('#')[0]const isOrgBilling = !!selectedOrganization?.subscription_id+ const billingEnabled = useIsFeatureEnabled('billing:all')+const navLayoutV2 = useFlag('navigationLayoutV2')const showOAuthApps = useFlag('oauthApps')const showAuditLogs = useFlag('auditLogs')@@ -48,9 +51,9 @@ const OrganizationLayout = ({ children }: PropsWithChildren<{}>) => {{showIntegrationsV2 && (<Tabs.Panel id="integrations" label="Integrations" className="!my-0" />)}- <Tabs.Panel id="billing" label="Billing" className="!my-0" />+ {billingEnabled && <Tabs.Panel id="billing" label="Billing" className="!my-0" />}{isOrgBilling && <Tabs.Panel id="usage" label="Usage" className="!my-0" />}- <Tabs.Panel id="invoices" label="Invoices" className="!my-0" />+ {billingEnabled && <Tabs.Panel id="invoices" label="Invoices" className="!my-0" />}{showOAuthApps && <Tabs.Panel id="apps" label="OAuth Apps" className="!my-0" />}{showAuditLogs && <Tabs.Panel id="audit" label="Audit Logs" className="!my-0" />}</Tabs>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsxindex b13183cb11c..3ce97f1abb1 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx@@ -1,7 +1,6 @@import { useParams } from 'common'import Link from 'next/link'import { useMemo } from 'react'-import { Badge } from 'ui'import BranchDropdown from 'components/layouts/AppLayout/BranchDropdown'import EnableBranchingButton from 'components/layouts/AppLayout/EnableBranchingButton/EnableBranchingButton'@@ -16,6 +15,7 @@ import { useOrgUsageQuery } from 'data/usage/org-usage-query'import { useProjectUsageQuery } from 'data/usage/project-usage-query'import { useFlag, useSelectedOrganization, useSelectedProject } from 'hooks'import { IS_PLATFORM } from 'lib/constants'+import { Badge } from 'ui'import BreadcrumbsView from './BreadcrumbsView'import FeedbackDropdown from './FeedbackDropdown'import HelpPopover from './HelpPopover'diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsxindex dcca534cd5b..b341b17f981 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx@@ -5,6 +5,7 @@ import { FlaskConical } from 'lucide-react'import { useTheme } from 'next-themes'import Link from 'next/link'import { useRouter } from 'next/router'+import {Button,DropdownMenu,@@ -26,7 +27,7 @@ import {} from 'ui'import { useIsAPIDocsSidePanelEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'-import { useFlag } from 'hooks'+import { useFlag, useIsFeatureEnabled } from 'hooks'import { IS_PLATFORM } from 'lib/constants'import { detectOS } from 'lib/helpers'import { useAppStateSnapshot } from 'state/app-state'@@ -52,9 +53,19 @@ const NavigationBar = () => {const showFeaturePreviews = useFlag('featurePreviews')const isNewAPIDocsEnabled = useIsAPIDocsSidePanelEnabled()+ const {+ projectAuthAll: authEnabled,+ projectEdgeFunctionAll: edgeFunctionsEnabled,+ projectStorageAll: storageEnabled,+ } = useIsFeatureEnabled(['project_auth:all', 'project_edge_function:all', 'project_storage:all'])+const activeRoute = router.pathname.split('/')[3]const toolRoutes = generateToolRoutes(projectRef, project, supabaseAIEnabled)- const productRoutes = generateProductRoutes(projectRef, project)+ const productRoutes = generateProductRoutes(projectRef, project, {+ auth: authEnabled,+ edgeFunctions: edgeFunctionsEnabled,+ storage: storageEnabled,+ })const otherRoutes = generateOtherRoutes(projectRef, project, isNewAPIDocsEnabled)return (diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsxindex a0871893503..33ce25be3ac 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx@@ -48,10 +48,18 @@ export const generateToolRoutes = (},]}-export const generateProductRoutes = (ref?: string, project?: ProjectBase): Route[] => {+export const generateProductRoutes = (+ ref?: string,+ project?: ProjectBase,+ features?: { auth?: boolean; edgeFunctions?: boolean; storage?: boolean }+): Route[] => {const isProjectBuilding = project?.status === PROJECT_STATUS.COMING_UPconst buildingUrl = `/project/${ref}/building`+ const authEnabled = features?.auth ?? true+ const edgeFunctionsEnabled = features?.edgeFunctions ?? true+ const storageEnabled = features?.storage ?? true+return [{key: 'database',@@ -76,53 +84,61 @@ export const generateProductRoutes = (ref?: string, project?: ProjectBase): Rout),link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/database/tables`),},- {- key: 'auth',- label: 'Authentication',- icon: (- <svg- width="24"- height="24"- viewBox="0 0 24 24"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d={products.authentication.icon[24]}- stroke="currentColor"- strokeWidth="1.5"- strokeMiterlimit="10"- strokeLinecap="round"- strokeLinejoin="round"- />- </svg>- ),- link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/auth/users`),- },- {- key: 'storage',- label: 'Storage',- icon: (- <svg- width="18"- height="18"- viewBox="0 0 18 18"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d={products.storage.icon[18]}- stroke="currentColor"- strokeWidth="1.5"- strokeMiterlimit="10"- strokeLinecap="round"- strokeLinejoin="round"- />- </svg>- ),- link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/storage/buckets`),- },- ...(IS_PLATFORM+ ...(authEnabled+ ? [+ {+ key: 'auth',+ label: 'Authentication',+ icon: (+ <svg+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d={products.authentication.icon[24]}+ stroke="currentColor"+ strokeWidth="1.5"+ strokeMiterlimit="10"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ ),+ link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/auth/users`),+ },+ ]+ : []),+ ...(storageEnabled+ ? [+ {+ key: 'storage',+ label: 'Storage',+ icon: (+ <svg+ width="18"+ height="18"+ viewBox="0 0 18 18"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d={products.storage.icon[18]}+ stroke="currentColor"+ strokeWidth="1.5"+ strokeMiterlimit="10"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ ),+ link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/storage/buckets`),+ },+ ]+ : []),+ ...(IS_PLATFORM && edgeFunctionsEnabled? [{key: 'functions',diff --git a/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx b/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsxindex c630fcb1eba..bcc257d76fa 100644--- a/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx+++ b/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx@@ -1,4 +1,11 @@-import { useFlag, useSelectedOrganization, useSelectedProject, useStore, withAuth } from 'hooks'+import {+ useFlag,+ useIsFeatureEnabled,+ useSelectedOrganization,+ useSelectedProject,+ useStore,+ withAuth,+} from 'hooks'import { observer } from 'mobx-react-lite'import { useRouter } from 'next/router'import { PropsWithChildren, useEffect } from 'react'@@ -25,7 +32,24 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutPro? router.pathname.split('/')[5]: router.pathname.split('/')[4]- const menuRoutes = generateSettingsMenu(ref, project, organization)+ const {+ projectAuthAll: authEnabled,+ projectEdgeFunctionAll: edgeFunctionsEnabled,+ projectStorageAll: storageEnabled,+ billingAll: billingEnabled,+ } = useIsFeatureEnabled([+ 'project_auth:all',+ 'project_edge_function:all',+ 'project_storage:all',+ 'billing:all',+ ])++ const menuRoutes = generateSettingsMenu(ref, project, organization, {+ auth: authEnabled,+ edgeFunctions: edgeFunctionsEnabled,+ storage: storageEnabled,+ billing: billingEnabled,+ })useEffect(() => {if (ui.selectedProjectRef) {diff --git a/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts b/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsindex 1e433fd6ef4..ba2245ed926 100644--- a/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts+++ b/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts@@ -5,13 +5,19 @@ import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'export const generateSettingsMenu = (ref?: string,project?: ProjectBase,- organization?: Organization+ organization?: Organization,+ features?: { auth?: boolean; edgeFunctions?: boolean; storage?: boolean; billing?: boolean }): ProductMenuGroup[] => {const isProjectBuilding = project?.status === PROJECT_STATUS.COMING_UPconst buildingUrl = `/project/${ref}/building`const isOrgBilling = !!organization?.subscription_id+ const authEnabled = features?.auth ?? true+ const edgeFunctionsEnabled = features?.edgeFunctions ?? true+ const storageEnabled = features?.storage ?? true+ const billingEnabled = features?.billing ?? true+if (isOrgBilling) {return [{@@ -39,12 +45,16 @@ export const generateSettingsMenu = (},]: []),- {- name: 'Add Ons',- key: 'addons',- url: `/project/${ref}/settings/addons`,- items: [],- },+ ...(billingEnabled+ ? [+ {+ name: 'Add Ons',+ key: 'addons',+ url: `/project/${ref}/settings/addons`,+ items: [],+ },+ ]+ : []),{name: 'Vault',key: 'vault',@@ -69,7 +79,7 @@ export const generateSettingsMenu = (url: isProjectBuilding ? buildingUrl : `/project/${ref}/settings/api`,items: [],},- ...(IS_PLATFORM+ ...(IS_PLATFORM && authEnabled? [{name: 'Authentication',@@ -79,7 +89,7 @@ export const generateSettingsMenu = (},]: []),- ...(IS_PLATFORM+ ...(IS_PLATFORM && storageEnabled? [{name: 'Storage',@@ -89,7 +99,7 @@ export const generateSettingsMenu = (},]: []),- ...(IS_PLATFORM+ ...(IS_PLATFORM && edgeFunctionsEnabled? [{name: 'Edge Functions',@@ -103,14 +113,18 @@ export const generateSettingsMenu = (},{- title: 'Billing',+ title: billingEnabled ? 'Billing' : '',items: [- {- name: 'Subscription',- key: 'subscription',- url: `/org/${organization?.slug}/billing`,- items: [],- },+ ...(billingEnabled+ ? [+ {+ name: 'Subscription',+ key: 'subscription',+ url: `/org/${organization?.slug}/billing`,+ items: [],+ },+ ]+ : []),{name: 'Usage',key: 'usage',@@ -153,7 +167,7 @@ export const generateSettingsMenu = (},]: []),- ...(IS_PLATFORM+ ...(IS_PLATFORM && authEnabled? [{name: 'Auth',@@ -163,7 +177,7 @@ export const generateSettingsMenu = (},]: []),- ...(IS_PLATFORM+ ...(IS_PLATFORM && storageEnabled? [{name: 'Storage',@@ -185,30 +199,38 @@ export const generateSettingsMenu = (...(IS_PLATFORM? [{- title: 'Billing',+ title: billingEnabled ? 'Billing' : '',items: [- {- name: 'Subscription',- key: 'subscription',- url: isProjectBuilding- ? buildingUrl- : `/project/${ref}/settings/billing/subscription`,- items: [],- },+ ...(billingEnabled+ ? [+ {+ name: 'Subscription',+ key: 'subscription',+ url: isProjectBuilding+ ? buildingUrl+ : `/project/${ref}/settings/billing/subscription`,+ items: [],+ },+ ]+ : []),{name: 'Usage',key: 'usage',url: isProjectBuilding ? buildingUrl : `/project/${ref}/settings/billing/usage`,items: [],},- {- name: 'Invoices',- key: 'invoices',- url: isProjectBuilding- ? buildingUrl- : `/project/${ref}/settings/billing/invoices`,- items: [],- },+ ...(billingEnabled+ ? [+ {+ name: 'Invoices',+ key: 'invoices',+ url: isProjectBuilding+ ? buildingUrl+ : `/project/${ref}/settings/billing/invoices`,+ items: [],+ },+ ]+ : []),],},]diff --git a/studio/components/layouts/ReportsLayout/ReportsLayout.tsx b/studio/components/layouts/ReportsLayout/ReportsLayout.tsxindex 0bdd0813a26..aa510fe462e 100644--- a/studio/components/layouts/ReportsLayout/ReportsLayout.tsx+++ b/studio/components/layouts/ReportsLayout/ReportsLayout.tsx@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'import { PropsWithChildren } from 'react'import ProductMenu from 'components/ui/ProductMenu'-import { useSelectedProject, withAuth } from 'hooks'+import { useIsFeatureEnabled, useSelectedProject, withAuth } from 'hooks'import ProjectLayout from '../'import { useFlag } from 'hooks'@@ -18,13 +18,16 @@ const ReportsLayout = ({ title, children }: PropsWithChildren<ReportsLayoutPropsconst ref = project?.ref ?? 'default'const storageReportFlag = useFlag('storageReport')++ const storageEnabled = useIsFeatureEnabled('project_storage:all')+const menuItems = [{title: '',items: [{name: 'Custom reports',- key: '',+ key: '[id]',url: `/project/${ref}/reports`,items: [],},@@ -38,7 +41,7 @@ const ReportsLayout = ({ title, children }: PropsWithChildren<ReportsLayoutPropsurl: `/project/${ref}/reports/api-overview`,items: [],},- ...(storageReportFlag+ ...(storageEnabled && storageReportFlag? [{name: 'Storage',diff --git a/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx b/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsxindex 47e1e36f244..1653998f729 100644--- a/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx+++ b/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx@@ -1,5 +1,6 @@import { useRouter } from 'next/router'+import { useIsFeatureEnabled } from 'hooks'import { EMPTY_ARR } from 'lib/void'import {Button,@@ -19,6 +20,8 @@ const OrganizationDropdown = ({}) => {const router = useRouter()+ const organizationCreationEnabled = useIsFeatureEnabled('organizations:create')+return (<DropdownMenu><DropdownMenuTrigger>@@ -36,11 +39,15 @@ const OrganizationDropdown = ({{x.name}</DropdownMenuItem>))}- <DropdownMenuSeparator />- <DropdownMenuItem className="space-x-2" onClick={() => router.push(`/new`)}>- <IconPlus size="tiny" />- <p>New organization</p>- </DropdownMenuItem>+ {organizationCreationEnabled && (+ <>+ <DropdownMenuSeparator />+ <DropdownMenuItem className="space-x-2" onClick={() => router.push(`/new`)}>+ <IconPlus size="tiny" />+ <p>New organization</p>+ </DropdownMenuItem>+ </>+ )}</></DropdownMenuContent></DropdownMenu>diff --git a/studio/components/ui/UpgradeToPro.tsx b/studio/components/ui/UpgradeToPro.tsxindex 68cb12af358..ba0047fc889 100644--- a/studio/components/ui/UpgradeToPro.tsx+++ b/studio/components/ui/UpgradeToPro.tsx@@ -5,7 +5,7 @@ import { ReactNode } from 'react'import { Button } from 'ui'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'-import { useCheckPermissions, useFlag } from 'hooks'+import { useCheckPermissions, useFlag, useIsFeatureEnabled } from 'hooks'interface UpgradeToProProps {icon?: ReactNode@@ -22,6 +22,8 @@ const UpgradeToPro = ({secondaryText,addon,}: UpgradeToProProps) => {+ const billingEnabled = useIsFeatureEnabled('billing:all')+const { data: subscription } = useProjectSubscriptionV2Query({ projectRef })const plan = subscription?.plan?.id@@ -31,6 +33,8 @@ const UpgradeToPro = ({)const projectUpdateDisabled = useFlag('disableProjectCreationAndUpdate')+ if (!billingEnabled) return null+return (<divclassName={[diff --git a/studio/data/api.d.ts b/studio/data/api.d.tsindex d7d3d185f28..74d4f7d600d 100644--- a/studio/data/api.d.ts+++ b/studio/data/api.d.ts@@ -44,7 +44,7 @@ export interface paths {};"/platform/projects-resource-warnings": {/**- * Gets resource warnings for all projects accessible by the user+ * Gets resource warnings for all projects accessible by the user* @description Only returns the minimal project info*/get: operations["ProjectsResourceWarningsController_getProjectsResourceWarnings"];@@ -417,7 +417,7 @@ export interface paths {};"/platform/projects": {/**- * Gets all projects that belong to the authenticated user+ * Gets all projects that belong to the authenticated user* @description Only returns the minimal project info*/get: operations["ProjectsController_getProjects"];@@ -504,8 +504,8 @@ export interface paths {};"/platform/projects/{ref}/update": {/**- * Updates the project- * @deprecated+ * Updates the project+ * @deprecated* @description Replaced by PATCH /platform/projects/:ref*/post: operations["UpdateController_updateProject"];@@ -588,7 +588,7 @@ export interface paths {};"/platform/props/project/{ref}/api": {/**- * Gets project's api info+ * Gets project's api info* @deprecated*/get: operations["ApiController_getProjectApi"];@@ -599,7 +599,7 @@ export interface paths {};"/platform/props/project/{ref}/settings": {/**- * Gets project's settings+ * Gets project's settings* @deprecated*/get: operations["SettingsController_getProjectApi"];@@ -716,7 +716,7 @@ export interface paths {};"/platform/integrations/vercel": {/**- * Create vercel integration+ * Create vercel integration* @description Exchanges a vercel code for an access token and saves the access token to the new integration record*/post: operations["VercelIntegrationController_createVercelIntegration"];@@ -797,7 +797,7 @@ export interface paths {};"/system/projects/{ref}/functions": {/**- * List all functions+ * List all functions* @description Returns all functions you've previously added to the specified project.*/get: operations["SystemFunctionsController_getFunctions"];@@ -806,17 +806,17 @@ export interface paths {};"/system/projects/{ref}/secrets": {/**- * List all secrets+ * List all secrets* @description Returns all secrets you've previously added to the specified project.*/get: operations["SystemSecretsController_getSecrets"];/**- * Bulk create secrets+ * Bulk create secrets* @description Creates multiple secrets and adds them to the specified project.*/post: operations["SystemSecretsController_createSecrets"];/**- * Bulk delete secrets+ * Bulk delete secrets* @description Deletes all secrets with the given names from the specified project*/delete: operations["SystemSecretsController_deleteSecrets"];@@ -1147,7 +1147,7 @@ export interface paths {};"/v0/projects": {/**- * Gets all projects that belong to the authenticated user+ * Gets all projects that belong to the authenticated user* @description Only returns the minimal project info*/get: operations["ProjectsController_getProjects"];@@ -1156,7 +1156,7 @@ export interface paths {};"/v0/projects/metrics": {/**- * Get metrics+ * Get metrics* @description At most 50 projects can be queried at a time.* Currently supports '1d', '3d', and '7d' intervals.*/@@ -1360,24 +1360,24 @@ export interface paths {};"/v1/branches/{branch_id}": {/**- * Get database branch config+ * Get database branch config* @description Fetches configurations of the specified database branch*/get: operations["BranchController_getBranchDetails"];/**- * Delete a database branch+ * Delete a database branch* @description Deletes the specified database branch*/delete: operations["BranchController_deleteBranch"];/**- * Update database branch config+ * Update database branch config* @description Updates the configuration of the specified database branch*/patch: operations["BranchController_updateBranch"];};"/v1/projects": {/**- * List all projects+ * List all projects* @description Returns a list of all projects you've previously created.*/get: operations["ProjectsController_getProjects"];@@ -1389,17 +1389,17 @@ export interface paths {};"/v1/projects/{ref}/branches": {/**- * List all database branches+ * List all database branches* @description Returns all database branches of the specified project.*/get: operations["BranchesController_getBranches"];/**- * Create a database branch+ * Create a database branch* @description Creates a database branch from the specified project.*/post: operations["BranchesController_createBranch"];/**- * Disables preview branching+ * Disables preview branching* @description Disables preview branching for the specified project*/delete: operations["BranchesController_disableBranch"];@@ -1452,17 +1452,17 @@ export interface paths {};"/v1/projects/{ref}/secrets": {/**- * List all secrets+ * List all secrets* @description Returns all secrets you've previously added to the specified project.*/get: operations["SecretsController_getSecrets"];/**- * Bulk create secrets+ * Bulk create secrets* @description Creates multiple secrets and adds them to the specified project.*/post: operations["SecretsController_createSecrets"];/**- * Bulk delete secrets+ * Bulk delete secrets* @description Deletes all secrets with the given names from the specified project*/delete: operations["SecretsController_deleteSecrets"];@@ -1475,7 +1475,7 @@ export interface paths {};"/v1/projects/{ref}/types/typescript": {/**- * Generate TypeScript types+ * Generate TypeScript types* @description Returns the TypeScript types of your schema for use with supabase-js.*/get: operations["TypesController_getTypescriptTypes"];@@ -1562,43 +1562,43 @@ export interface paths {};"/v1/projects/{ref}/functions": {/**- * List all functions+ * List all functions* @description Returns all functions you've previously added to the specified project.*/get: operations["FunctionsController_getFunctions"];/**- * Create a function+ * Create a function* @description Creates a function and adds it to the specified project.*/post: operations["FunctionsController_createFunction"];};"/v1/projects/{ref}/functions/{function_slug}": {/**- * Retrieve a function+ * Retrieve a function* @description Retrieves a function with the specified slug and project.*/get: operations["FunctionSlugController_getFunction"];/**- * Delete a function+ * Delete a function* @description Deletes a function with the specified slug from the specified project.*/delete: operations["FunctionSlugController_deleteFunction"];/**- * Update a function+ * Update a function* @description Updates a function with the specified slug and project.*/patch: operations["FunctionSlugController_updateFunction"];};"/v1/projects/{ref}/functions/{function_slug}/body": {/**- * Retrieve a function body+ * Retrieve a function body* @description Retrieves a function body for the specified slug and project.*/get: operations["FunctionSlugController_getFunctionBody"];};"/v1/organizations": {/**- * List all organizations+ * List all organizations* @description Returns a list of organizations that you currently belong to.*/get: operations["OrganizationsController_getOrganizations"];@@ -1661,7 +1661,7 @@ export interface components {meta: Record<string, never>;};UpdateNotificationsBodyV1: {- ids: (string)[];+ ids: string[];};NotificationResponseV2: {id: string;@@ -1683,7 +1683,7 @@ export interface components {library?: string;category: string;subject?: string;- tags: (string)[];+ tags: string[];additionalRedirectUrls?: string;pathname?: string;projectRef?: string;@@ -1898,7 +1898,6 @@ export interface components {SMS_TEXTLOCAL_SENDER?: string;SMS_TWILIO_ACCOUNT_SID?: string;SMS_TWILIO_AUTH_TOKEN?: string;- SMS_TWILIO_CONTENT_SID?: string;SMS_TWILIO_MESSAGE_SERVICE_SID?: string;SMS_TWILIO_VERIFY_ACCOUNT_SID?: string;SMS_TWILIO_VERIFY_AUTH_TOKEN?: string;@@ -2133,7 +2132,7 @@ export interface components {};UsersResponse: {total: number;- users: (components["schemas"]["UserBody"])[];+ users: components["schemas"]["UserBody"][];};Backup: {id: number;@@ -2148,7 +2147,7 @@ export interface components {region: string;walg_enabled: boolean;pitr_enabled: boolean;- backups: (components["schemas"]["Backup"])[];+ backups: components["schemas"]["Backup"][];physicalBackupData: {earliestPhysicalBackupDateUnix?: number;latestPhysicalBackupDateUnix?: number;@@ -2204,7 +2203,7 @@ export interface components {UpdateOrganizationBody: {name: string;billing_email: string;- opt_in_tags: (string)[];+ opt_in_tags: string[];};OrganizationSlugResponse: {id: number;@@ -2212,7 +2211,7 @@ export interface components {name: string;billing_email: string;stripe_customer_id: string;- opt_in_tags: (string)[];+ opt_in_tags: string[];};CustomerResponse: {id: string;@@ -2243,7 +2242,7 @@ export interface components {name: string;next_invoice_sequence?: number;phone: string;- preferred_locales: (string)[];+ preferred_locales: string[];shipping: Record<string, never>;sources?: Record<string, never>;subscriptions?: Record<string, never>;@@ -2278,7 +2277,7 @@ export interface components {};TaxIdResponse: {object: string;- data: (components["schemas"]["TaxId"])[];+ data: components["schemas"]["TaxId"][];has_more: boolean;url: string;lastResponse: {@@ -2351,11 +2350,11 @@ export interface components {};OrgUsageResponse: {usage_billing_enabled: boolean;- slugs: (string)[];- usages: (components["schemas"]["OrgMetricUsage"])[];+ slugs: string[];+ usages: components["schemas"]["OrgMetricUsage"][];};AuditLogsResponse: {- result: (Record<string, never>)[];+ result: Record<string, never>[];retention_period: number;};Invite: {@@ -2395,7 +2394,7 @@ export interface components {Member: {gotrue_id: string;primary_email: string;- role_ids: (number)[];+ role_ids: number[];username: string;};UpdateMemberBody: {@@ -2448,7 +2447,7 @@ export interface components {};PaymentsResponse: {object: string;- data: (components["schemas"]["Payment"])[];+ data: components["schemas"]["Payment"][];has_more: boolean;url: string;lastResponse: {@@ -2531,7 +2530,7 @@ export interface components {on_behalf_of: Record<string, never>;payment_method: Record<string, never>;payment_method_options: Record<string, never>;- payment_method_types: (string)[];+ payment_method_types: string[];single_use_mandate: Record<string, never>;status: string;usage: string;@@ -2569,7 +2568,7 @@ export interface components {variant: components["schemas"]["ProjectAddonVariantResponse"];};BillingProjectAddonResponse: {- addons: (components["schemas"]["SelectedAddonResponse"])[];+ addons: components["schemas"]["SelectedAddonResponse"][];name: string;ref: string;};@@ -2607,9 +2606,9 @@ export interface components {next_invoice_at: number;usage_billing_enabled: boolean;plan: components["schemas"]["BillingSubscriptionPlan"];- addons: (components["schemas"]["BillingSubscriptionAddon"])[];- project_addons: (components["schemas"]["BillingProjectAddonResponse"])[];- usage_fees: (components["schemas"]["BillingUsageBasedPrice"])[];+ addons: components["schemas"]["BillingSubscriptionAddon"][];+ project_addons: components["schemas"]["BillingProjectAddonResponse"][];+ usage_fees: components["schemas"]["BillingUsageBasedPrice"][];payment_method_type: string;payment_method_id?: string;payment_method_card_details?: components["schemas"]["PaymentMethodCardDetails"];@@ -2631,7 +2630,7 @@ export interface components {relation_schema: string;relation_name: string;column_name: string;- privileges: (components["schemas"]["ColumnPrivilege"])[];+ privileges: components["schemas"]["ColumnPrivilege"][];};GrantColumnPrivilegesBody: {is_grantable?: boolean;@@ -2662,7 +2661,7 @@ export interface components {is_nullable: boolean;is_updatable: boolean;is_unique: boolean;- enums: (string)[];+ enums: string[];check: string | null;comment: string | null;};@@ -2716,7 +2715,7 @@ export interface components {schema: string;name: string;comment: string | null;- columns?: (components["schemas"]["PostgresColumn"])[];+ columns?: components["schemas"]["PostgresColumn"][];};PostgresFunction: {id: number;@@ -2750,7 +2749,7 @@ export interface components {name: string;is_populated: boolean;comment: string | null;- columns?: (components["schemas"]["PostgresColumn"])[];+ columns?: components["schemas"]["PostgresColumn"][];};PostgresPolicy: {id: number;@@ -2760,7 +2759,7 @@ export interface components {name: string;/** @enum {string} */action: "PERMISSIVE" | "RESTRICTIVE";- roles: (string)[];+ roles: string[];/** @enum {string} */command: "SELECT" | "INSERT" | "UPDATE" | "DELETE" | "ALL";definition: string | null;@@ -2776,14 +2775,14 @@ export interface components {action?: "PERMISSIVE" | "RESTRICTIVE";/** @enum {string} */command?: "SELECT" | "INSERT" | "UPDATE" | "DELETE" | "ALL";- roles?: (string)[];+ roles?: string[];};UpdatePolicyBody: {id?: number;name?: string;definition?: string;check?: string;- roles?: (string)[];+ roles?: string[];};Table: {id: number;@@ -2798,12 +2797,12 @@ export interface components {publish_update: boolean;publish_delete: boolean;publish_truncate: boolean;- tables: (components["schemas"]["Table"])[] | null;+ tables: components["schemas"]["Table"][] | null;};CreatePublicationBody: {name: string;owner?: string;- tables?: (string)[] | null;+ tables?: string[] | null;publish_insert?: boolean;publish_update?: boolean;publish_delete?: boolean;@@ -2813,7 +2812,7 @@ export interface components {id?: number;name?: string;owner?: string;- tables?: (string)[] | null;+ tables?: string[] | null;publish_insert?: boolean;publish_update?: boolean;publish_delete?: boolean;@@ -2845,7 +2844,7 @@ export interface components {connection_limit: number;password: string;valid_until: string | null;- config: (string)[] | null;+ config: string[] | null;};CreateRoleBody: {name: string;@@ -2858,9 +2857,9 @@ export interface components {is_replication_role?: boolean;can_bypass_rls?: boolean;connection_limit?: number;- member_of?: (string)[];- members?: (string)[];- admins?: (string)[];+ member_of?: string[];+ members?: string[];+ admins?: string[];valid_until?: string;config?: Record<string, never>;};@@ -2917,7 +2916,7 @@ export interface components {schema: string;name: string;kind: string;- privileges: (components["schemas"]["TablePrivilege"])[];+ privileges: components["schemas"]["TablePrivilege"][];};GrantTablePrivilegesBody: {is_grantable?: boolean;@@ -2961,9 +2960,9 @@ export interface components {live_rows_estimate: number;dead_rows_estimate: number;comment: string | null;- columns?: (components["schemas"]["PostgresColumn"])[];- primary_keys: (components["schemas"]["PrimaryKey"])[];- relationships: (components["schemas"]["Relationship"])[];+ columns?: components["schemas"]["PostgresColumn"][];+ primary_keys: components["schemas"]["PrimaryKey"][];+ relationships: components["schemas"]["Relationship"][];};CreateTableBody: {name: string;@@ -2994,10 +2993,10 @@ export interface components {orientation: "ROW" | "STATEMENT";/** @enum {string} */activation: "AFTER" | "BEFORE";- events: (string)[];+ events: string[];function_schema: string;function_name: string;- function_args: (string)[];+ function_args: string[];};CreateTriggerBody: {/** @enum {string} */@@ -3005,7 +3004,7 @@ export interface components {/** @enum {string} */enabled_mode: "ORIGIN" | "REPLICA" | "ALWAYS" | "DISABLED";events: ("INSERT" | "UPDATE" | "DELETE")[];- function_args: (string)[];+ function_args: string[];function_name: string;function_schema: string;name: string;@@ -3022,7 +3021,7 @@ export interface components {/** @enum {string} */enabled_mode?: "ORIGIN" | "REPLICA" | "ALWAYS" | "DISABLED";events?: ("INSERT" | "UPDATE" | "DELETE")[];- function_args?: (string)[];+ function_args?: string[];function_name?: string;function_schema?: string;name?: string;@@ -3037,7 +3036,7 @@ export interface components {name: string;schema: string;format: string;- enums: (string)[];+ enums: string[];comment: string | null;};PostgresView: {@@ -3046,7 +3045,7 @@ export interface components {name: string;is_updatable: boolean;comment: string | null;- columns?: (components["schemas"]["PostgresColumn"])[];+ columns?: components["schemas"]["PostgresColumn"][];};AccessToken: {created_at: string;@@ -3097,7 +3096,7 @@ export interface components {result: {feedback?: {warning?: string;- suggestions?: (string)[];+ suggestions?: string[];};score?: number;};@@ -3106,7 +3105,7 @@ export interface components {actions: ("analytics:Read" | "auth:Execute" | "billing:Read" | "billing:Write" | "write:Create" | "write:Delete" | "functions:Read" | "functions:Write" | "infra:Execute" | "read:Read" | "sql:Read:Select" | "sql:Write:Delete" | "sql:Write:Insert" | "sql:Write:Update" | "storage:Admin:Read" | "storage:Admin:Write" | "tenant:Sql:Admin:Read" | "tenant:Sql:Admin:Write" | "tenant:Sql:CreateTable" | "tenant:Sql:Write:Delete" | "tenant:Sql:Write:Insert" | "tenant:Sql:Query" | "tenant:Sql:Read:Select" | "tenant:Sql:Write:Update" | "write:Update")[];condition: Record<string, unknown> | null;organization_id: number;- resources: (string)[];+ resources: string[];};ProfileResponse: {id: number;@@ -3137,7 +3136,7 @@ export interface components {subscription_id: string;is_readonly_mode_enabled?: boolean;is_branch_enabled: boolean;- preview_branch_refs: (string)[];+ preview_branch_refs: string[];};AmiSearchOptions: {search_tags?: Record<string, never>;@@ -3153,14 +3152,14 @@ export interface components {/** @description Slug of your organization */organization_id: string;/**- * @description Subscription plan- * @example free+ * @description Subscription plan+ * @example free* @enum {string}*/plan: "free" | "pro";/**- * @description Region you want your server to reside in- * @example us-east-1+ * @description Region you want your server to reside in+ * @example us-east-1* @enum {string}*/region: "us-east-1" | "us-west-1" | "us-west-2" | "ap-southeast-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-southeast-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-central-1" | "ca-central-1" | "ap-south-1" | "sa-east-1";@@ -3179,7 +3178,7 @@ export interface components {subscription_id: string;is_readonly_mode_enabled?: boolean;is_branch_enabled: boolean;- preview_branch_refs: (string)[];+ preview_branch_refs: string[];endpoint: string;anon_key: string;service_key: string;@@ -3205,7 +3204,7 @@ export interface components {last_updated_by: number;};GetUserContentResponse: {- data: (components["schemas"]["GetUserContentObject"])[];+ data: components["schemas"]["GetUserContentObject"][];};CreateContentParams: {id: string;@@ -3306,7 +3305,7 @@ export interface components {subscription_id: string;region: string;cloud_provider: string;- back_ups: (components["schemas"]["BackupId"])[];+ back_ups: components["schemas"]["BackupId"][];};RestartServiceRequest: {services: ("adminapi" | "api-gateway" | "functions" | "gotrue" | "kong" | "pgbouncer" | "pgsodium" | "postgresql" | "postgrest" | "realtime" | "storage" | "walg" | "autoshutdown")[];@@ -3341,7 +3340,7 @@ export interface components {region: string;app_config?: components["schemas"]["ProjectAppConfigResponse"];jwt_secret?: string;- service_api_keys?: (components["schemas"]["ProjectServiceApiKeyResponse"])[];+ service_api_keys?: components["schemas"]["ProjectServiceApiKeyResponse"][];};UsageStatus: {usage: number;@@ -3381,9 +3380,9 @@ export interface components {};PreviewProjectTransferResponse: {valid: boolean;- warnings: (components["schemas"]["PreviewTransferInfo"])[];- errors: (components["schemas"]["PreviewTransferInfo"])[];- members_exceeding_free_project_limit: (components["schemas"]["MemberExceedingFreeProjectLimit"])[];+ warnings: components["schemas"]["PreviewTransferInfo"][];+ errors: components["schemas"]["PreviewTransferInfo"][];+ members_exceeding_free_project_limit: components["schemas"]["MemberExceedingFreeProjectLimit"][];has_permissions_on_source_organization: boolean;has_access_to_target_organization: boolean;source_project_eligible: boolean;@@ -3394,23 +3393,23 @@ export interface components {charge_on_target_organization: number;source_subscription_plan: Record<string, never>;target_subscription_plan: Record<string, unknown> | null;- source_invoice_items: (components["schemas"]["PreviewTransferInvoiceItem"])[];- target_invoice_items: (components["schemas"]["PreviewTransferInvoiceItem"])[];+ source_invoice_items: components["schemas"]["PreviewTransferInvoiceItem"][];+ target_invoice_items: components["schemas"]["PreviewTransferInvoiceItem"][];};AnalyticsResponse: {error?: OneOf<[{code?: number;- errors?: ({+ errors?: {domain?: string;location?: string;locationType?: string;message?: string;reason?: string;- })[];+ }[];message?: string;status?: string;}, string]>;- result?: (Record<string, never>)[];+ result?: Record<string, never>[];};PgbouncerConfigResponse: {default_pool_size?: number;@@ -3508,12 +3507,12 @@ export interface components {/** @enum {string} */type: "custom_domain" | "compute_instance" | "pitr";name: string;- variants: (components["schemas"]["ProjectAddonVariantResponse"])[];+ variants: components["schemas"]["ProjectAddonVariantResponse"][];};ProjectAddonsResponse: {ref: string;- selected_addons: (components["schemas"]["SelectedAddonResponse"])[];- available_addons: (components["schemas"]["AvailableAddonResponse"])[];+ selected_addons: components["schemas"]["SelectedAddonResponse"][];+ available_addons: components["schemas"]["AvailableAddonResponse"][];};UpdateAddonBody: {addon_variant: string;@@ -3546,7 +3545,7 @@ export interface components {id?: number;name?: string;};- service_api_keys?: (components["schemas"]["ServiceApiKey"])[];+ service_api_keys?: components["schemas"]["ServiceApiKey"][];};ApiResponse: {autoApiService: components["schemas"]["AutoApiService"];@@ -3569,7 +3568,7 @@ export interface components {name: string;};ServiceResponse: {- service_api_keys: (components["schemas"]["ServiceApiKeyResponse"])[];+ service_api_keys: components["schemas"]["ServiceApiKeyResponse"][];id: number;name: string;app_config: Record<string, never>;@@ -3586,12 +3585,12 @@ export interface components {/** @description Name of your project */name: string;/**- * @description Region of your project+ * @description Region of your project* @example us-east-1*/region: string;/**- * @description Creation timestamp+ * @description Creation timestamp* @example 2023-03-29T16:32:59Z*/created_at: string;@@ -3599,7 +3598,7 @@ export interface components {};SettingsResponse: {project: components["schemas"]["ProjectResponse"];- services: (components["schemas"]["ServiceResponse"])[];+ services: components["schemas"]["ServiceResponse"][];};StorageBucket: {id: string;@@ -3612,13 +3611,13 @@ export interface components {UpdateStorageBucketBody: {public: boolean;file_size_limit: number;- allowed_mime_types: (string)[];+ allowed_mime_types: string[];};CreateStorageBucketBody: {id: string;public: boolean;file_size_limit: number;- allowed_mime_types: (string)[];+ allowed_mime_types: string[];};StorageObjectSortBy: {column?: string;@@ -3693,7 +3692,7 @@ export interface components {downloadName?: string;};GetSignedUrlsBody: {- path: (string)[];+ path: string[];expiresIn: number;options?: components["schemas"]["SignedUrlsOptions"];};@@ -3714,12 +3713,12 @@ export interface components {to: string;};DeleteObjectsBody: {- paths: (string)[];+ paths: string[];};Invoice: {id: string;invoice_pdf: string;- custom_fields: (Record<string, never>)[];+ custom_fields: Record<string, never>[];subscription: string;hosted_invoice_url: string;subtotal: number;@@ -3877,7 +3876,7 @@ export interface components {};CreateVercelEnvironmentVariableBody: {key: string;- target: (string)[];+ target: string[];type: string;value: string;};@@ -3923,7 +3922,7 @@ export interface components {organization: {slug?: string;};- connections: (components["schemas"]["ProjectIntegrationConnection"])[];+ connections: components["schemas"]["ProjectIntegrationConnection"][];};CreateVercelIntegrationBody: {code: string;@@ -3942,7 +3941,7 @@ export interface components {};VercelProjectLink: {type?: string;- deployHooks: (components["schemas"]["VercelProjectDeployHooks"])[];+ deployHooks: components["schemas"]["VercelProjectDeployHooks"][];gitCredentialId?: string;productionBranch?: string;};@@ -3953,7 +3952,7 @@ export interface components {link?: components["schemas"]["VercelProjectLink"];};GetVercelProjectsResponse: {- projects: (components["schemas"]["IntegrationVercelProject"])[];+ projects: components["schemas"]["IntegrationVercelProject"][];pagination: {count?: number;next?: number | null;@@ -4046,7 +4045,7 @@ export interface components {};CreateSecretBody: {/**- * @description Secret name must not start with the SUPABASE_ prefix.+ * @description Secret name must not start with the SUPABASE_ prefix.* @example string*/name: string;@@ -4088,7 +4087,7 @@ export interface components {org_slug: string;/** @enum {string} */tier: "tier_payg" | "tier_pro" | "tier_free" | "tier_team" | "tier_enterprise";- custom_usage_fees?: (components["schemas"]["BillingUsageBasedPrice"])[];+ custom_usage_fees?: components["schemas"]["BillingUsageBasedPrice"][];tier_price_id?: string;payment_method_id?: string;existing_org_subscription_id?: string;@@ -4111,7 +4110,7 @@ export interface components {metric: "user_queries";/** @enum {string} */interval: "1d" | "3d" | "7d";- project_refs: (string)[];+ project_refs: string[];region: string;};ProjectMetric: {@@ -4120,7 +4119,7 @@ export interface components {value: number;};GetMetricsResponse: {- metrics: (components["schemas"]["ProjectMetric"])[];+ metrics: components["schemas"]["ProjectMetric"][];};BranchDetailResponse: {db_port: number;@@ -4166,13 +4165,13 @@ export interface components {custom_hostname: string;};NetworkBanResponse: {- banned_ipv4_addresses: (string)[];+ banned_ipv4_addresses: string[];};RemoveNetworkBanRequest: {- ipv4_addresses: (string)[];+ ipv4_addresses: string[];};NetworkRestrictionsRequest: {- dbAllowedCidrs: (string)[];+ dbAllowedCidrs: string[];};NetworkRestrictionsResponse: {/** @enum {string} */@@ -4232,9 +4231,9 @@ export interface components {eligible: boolean;current_app_version: string;latest_app_version: string;- target_upgrade_versions: (components["schemas"]["ProjectVersion"])[];+ target_upgrade_versions: components["schemas"]["ProjectVersion"][];requires_manual_intervention: string | null;- potential_breaking_changes: (string)[];+ potential_breaking_changes: string[];};DatabaseUpgradeStatus: {initiated_at: string;@@ -4269,8 +4268,12 @@ export interface components {db_connected: boolean;connected_cluster: number;};+ StorageHealthResponse: {+ fileSizeLimit: number;+ imageTransformationEnabled: boolean;+ };ServiceHealthResponse: {- info?: components["schemas"]["AuthHealthResponse"] | components["schemas"]["RestHealthResponse"] | components["schemas"]["RealtimeHealthResponse"];+ info?: components["schemas"]["AuthHealthResponse"] | components["schemas"]["RestHealthResponse"] | components["schemas"]["RealtimeHealthResponse"] | components["schemas"]["StorageHealthResponse"];/** @enum {string} */name: "auth" | "realtime" | "rest" | "storage";healthy: boolean;@@ -4306,22 +4309,22 @@ export interface components {AttributeValue: {default?: Record<string, never> | number | string | boolean;name?: string;- names?: (string)[];+ names?: string[];};AttributeMapping: {keys: {- [key: string]: components["schemas"]["AttributeValue"] | undefined;+ [key: string]: components["schemas"]["AttributeValue"];};};CreateProviderBody: {/**- * @description What type of provider will be created+ * @description What type of provider will be created* @enum {string}*/type: "saml";metadata_xml?: string;metadata_url?: string;- domains?: (string)[];+ domains?: string[];attribute_mapping?: components["schemas"]["AttributeMapping"];};SamlDescriptor: {@@ -4340,44 +4343,44 @@ export interface components {CreateProviderResponse: {id: string;saml?: components["schemas"]["SamlDescriptor"];- domains?: (components["schemas"]["Domain"])[];+ domains?: components["schemas"]["Domain"][];created_at?: string;updated_at?: string;};Provider: {id: string;saml?: components["schemas"]["SamlDescriptor"];- domains?: (components["schemas"]["Domain"])[];+ domains?: components["schemas"]["Domain"][];created_at?: string;updated_at?: string;};ListProvidersResponse: {- items: (components["schemas"]["Provider"])[];+ items: components["schemas"]["Provider"][];};GetProviderResponse: {id: string;saml?: components["schemas"]["SamlDescriptor"];- domains?: (components["schemas"]["Domain"])[];+ domains?: components["schemas"]["Domain"][];created_at?: string;updated_at?: string;};UpdateProviderBody: {metadata_xml?: string;metadata_url?: string;- domains?: (string)[];+ domains?: string[];attribute_mapping?: components["schemas"]["AttributeMapping"];};UpdateProviderResponse: {id: string;saml?: components["schemas"]["SamlDescriptor"];- domains?: (components["schemas"]["Domain"])[];+ domains?: components["schemas"]["Domain"][];created_at?: string;updated_at?: string;};DeleteProviderResponse: {id: string;saml?: components["schemas"]["SamlDescriptor"];- domains?: (components["schemas"]["Domain"])[];+ domains?: components["schemas"]["Domain"][];created_at?: string;updated_at?: string;};@@ -4444,7 +4447,7 @@ export interface components {updated_by: components["schemas"]["SnippetUser"];};SnippetList: {- data: (components["schemas"]["SnippetMeta"])[];+ data: components["schemas"]["SnippetMeta"][];};SnippetContent: {favorite: boolean;@@ -4468,8 +4471,8 @@ export interface components {};ResourceStatusResponse: {/**- * @description Supabase project status- * @example ACTIVE_HEALTHY+ * @description Supabase project status+ * @example ACTIVE_HEALTHY* @enum {string}*/status: "REMOVED" | "COMING_UP" | "INACTIVE" | "ACTIVE_HEALTHY" | "ACTIVE_UNHEALTHY" | "UNKNOWN" | "GOING_DOWN" | "INIT_FAILED" | "RESTORING" | "UPGRADING" | "PAUSING";@@ -4499,18 +4502,12 @@ export interface components {primary_region: string;/** @description An IPv6 address on the customer network assigned to this extension */ip_address: string;- /**- * @description An array of Fly.io region codes where read replicas should be provisioned- * @default []- */- read_regions: (string)[];/** @description Database password (Optional, don't send to generate one) */db_pass?: string;- user_name: string;};ResourceProvisioningConfigResponse: {/**- * @description PSQL connection string+ * @description PSQL connection string* @example postgresql://postgres:[email protected]:5432/postgres*/POSTGRES_URL: string;@@ -4519,12 +4516,12 @@ export interface components {/** @description Supabase envs config */config: components["schemas"]["ResourceProvisioningConfigResponse"];/**- * @description The target Fly application for internal traffic+ * @description The target Fly application for internal traffic* @example ext-db-pgshhamktpsgnptvcadw*/fly_app_name: string;/**- * @description Supabase project id+ * @description Supabase project id* @example pgshhamktpsgnptvcadw*/id: string;@@ -4539,6 +4536,8 @@ export interface components {pathItems: never;}+export type $defs = Record<string, never>;+export type external = Record<string, never>;export interface operations {@@ -4546,7 +4545,9 @@ export interface operations {/** Redirects to dashboard homepage */LoginController_redirectToDashboardHomepage: {responses: {- 200: never;+ 200: {+ content: never;+ };};};/** Get notifications */@@ -4561,11 +4562,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["NotificationResponseV2"])[];+ "application/json": components["schemas"]["NotificationResponseV2"][];};};/** @description Failed to retrieve notifications */- 500: never;+ 500: {+ content: never;+ };};};/** Delete notifications */@@ -4578,28 +4581,32 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["NotificationResponseV1"])[];+ "application/json": components["schemas"]["NotificationResponseV1"][];};};/** @description Failed to delete notifications */- 500: never;+ 500: {+ content: never;+ };};};/** Update notifications */NotificationsController_updateNotificationsV2: {requestBody: {content: {- "application/json": (string)[];+ "application/json": string[];};};responses: {200: {content: {- "application/json": (components["schemas"]["NotificationResponseV2"])[];+ "application/json": components["schemas"]["NotificationResponseV2"][];};};/** @description Failed to update notifications */- 500: never;+ 500: {+ content: never;+ };};};/** Reset password for email */@@ -4610,7 +4617,9 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };};};/** Send feedback */@@ -4627,7 +4636,9 @@ export interface operations {};};/** @description Failed to send feedback */- 500: never;+ 500: {+ content: never;+ };};};/** Send exit survey to HubSpot */@@ -4644,7 +4655,9 @@ export interface operations {};};/** @description Failed to send exit survey */- 500: never;+ 500: {+ content: never;+ };};};/** Sign up with email and password */@@ -4655,7 +4668,9 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };};};/** Gets project's status */@@ -4667,20 +4682,24 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to get project's status */- 500: never;+ 500: {+ content: never;+ };};};/**- * Gets resource warnings for all projects accessible by the user+ * Gets resource warnings for all projects accessible by the user* @description Only returns the minimal project info*/ProjectsResourceWarningsController_getProjectsResourceWarnings: {responses: {200: {content: {- "application/json": (components["schemas"]["ProjectResourceWarningsResponse"])[];+ "application/json": components["schemas"]["ProjectResourceWarningsResponse"][];};};};@@ -4700,7 +4719,9 @@ export interface operations {};};/** @description Failed to retrieve GoTrue config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates GoTrue config */@@ -4723,7 +4744,9 @@ export interface operations {};};/** @description Failed to update GoTrue config */- 500: never;+ 500: {+ content: never;+ };};};/** Sends an invite to the given email */@@ -4745,9 +4768,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to send an invite to the given email */- 500: never;+ 500: {+ content: never;+ };};};/** Sends a magic link to the given email */@@ -4769,9 +4796,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to send a magic link to the given email */- 500: never;+ 500: {+ content: never;+ };};};/** Sends an OTP to the given phone number */@@ -4793,9 +4824,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to send an OTP to the given phone number */- 500: never;+ 500: {+ content: never;+ };};};/** Sends a recovery email to the given email */@@ -4817,9 +4852,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to send a recovery email to the given email */- 500: never;+ 500: {+ content: never;+ };};};/** Gets GoTrue template */@@ -4837,7 +4876,9 @@ export interface operations {};};/** @description Failed to retrieve GoTrue template */- 500: never;+ 500: {+ content: never;+ };};};/** Gets users */@@ -4860,9 +4901,13 @@ export interface operations {"application/json": components["schemas"]["UsersResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve users */- 500: never;+ 500: {+ content: never;+ };};};/** Delete user with given ID */@@ -4884,9 +4929,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete user */- 500: never;+ 500: {+ content: never;+ };};};/** Delete all factors associated to a user */@@ -4904,9 +4953,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete factors */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project backups */@@ -4924,7 +4977,9 @@ export interface operations {};};/** @description Failed to get project backups */- 500: never;+ 500: {+ content: never;+ };};};/** Download project backup */@@ -4947,7 +5002,9 @@ export interface operations {};};/** @description Failed to download project backup */- 500: never;+ 500: {+ content: never;+ };};};/** Restore project backup */@@ -4964,9 +5021,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to restore project backup */- 500: never;+ 500: {+ content: never;+ };};};/** Restore project with a physical backup */@@ -4983,9 +5044,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to restore project with physical backup */- 500: never;+ 500: {+ content: never;+ };};};/** Restore project to a previous point in time */@@ -5002,9 +5067,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to restore project to a previous point in time */- 500: never;+ 500: {+ content: never;+ };};};/** Gets hook logs with the given ID */@@ -5029,9 +5098,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get hook logs with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Enables Database Webhooks on the project */@@ -5043,10 +5116,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to enable Database Webhooks on the project */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the status of owner reassignment */@@ -5064,7 +5143,9 @@ export interface operations {};};/** @description Failed to get status of owner reassignment */- 500: never;+ 500: {+ content: never;+ };};};/** Reassigns object owner from supabase_admin to temp */@@ -5084,9 +5165,13 @@ export interface operations {"application/json": components["schemas"]["OwnerResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to reassign owner on the project */- 500: never;+ 500: {+ content: never;+ };};};/** Rollback object owner from temp to supabase_admin */@@ -5106,9 +5191,13 @@ export interface operations {"application/json": components["schemas"]["OwnerResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to rollback owner on the project */- 500: never;+ 500: {+ content: never;+ };};};/** Reassigns object owner from temp to postgres */@@ -5128,24 +5217,30 @@ export interface operations {"application/json": components["schemas"]["OwnerResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to reassign owner on the project */- 500: never;+ 500: {+ content: never;+ };};};/**- * List all organizations+ * List all organizations* @description Returns a list of organizations that you currently belong to.*/OrganizationsController_getOrganizations: {responses: {200: {content: {- "application/json": (components["schemas"]["OrganizationResponse"])[];+ "application/json": components["schemas"]["OrganizationResponse"][];};};/** @description Unexpected error listing organizations */- 500: never;+ 500: {+ content: never;+ };};};/** Creates an organization (v2) */@@ -5162,7 +5257,9 @@ export interface operations {};};/** @description Unexpected error creating an organization */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes organization */@@ -5174,10 +5271,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to delete organization */- 500: never;+ 500: {+ content: never;+ };};};/** Updates organization */@@ -5200,7 +5303,9 @@ export interface operations {};};/** @description Failed to update organization */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the Stripe customer */@@ -5218,7 +5323,9 @@ export interface operations {};};/** @description Failed to retrieve the Stripe customer */- 500: never;+ 500: {+ content: never;+ };};};/** Updates the Stripe customer */@@ -5235,9 +5342,13 @@ export interface operations {"application/json": components["schemas"]["CustomerUpdateResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update the Stripe customer */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the given organization's roles */@@ -5251,11 +5362,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["Role"])[];+ "application/json": components["schemas"]["Role"][];};};/** @description Failed to retrieve the organization's roles */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the given organization's tax IDs */@@ -5272,9 +5385,13 @@ export interface operations {"application/json": components["schemas"]["TaxIdResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve the organization's tax IDs */- 500: never;+ 500: {+ content: never;+ };};};/** Creates a tax ID for the given organization */@@ -5296,9 +5413,13 @@ export interface operations {"application/json": components["schemas"]["CreateTaxIdResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create the tax ID */- 500: never;+ 500: {+ content: never;+ };};};/** Delete the tax ID with the given ID */@@ -5320,9 +5441,13 @@ export interface operations {"application/json": components["schemas"]["DeleteTaxIdResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete the tax ID */- 500: never;+ 500: {+ content: never;+ };};};/** Transfers the organization to the given member */@@ -5333,9 +5458,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to update owner */- 500: never;+ 500: {+ content: never;+ };};};/** Gets daily organization stats */@@ -5360,7 +5489,9 @@ export interface operations {};};/** @description Failed to get daily organization stats */- 500: never;+ 500: {+ content: never;+ };};};/** Gets usage stats */@@ -5378,7 +5509,9 @@ export interface operations {};};/** @description Failed to get usage stats */- 500: never;+ 500: {+ content: never;+ };};};/** Gets an organization's audit logs */@@ -5402,7 +5535,9 @@ export interface operations {};};/** @description Failed to get an organization's audit logs */- 500: never;+ 500: {+ content: never;+ };};};/** Gets invited users */@@ -5416,11 +5551,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["Invite"])[];+ "application/json": components["schemas"]["Invite"][];};};/** @description Failed to get invited users */- 500: never;+ 500: {+ content: never;+ };};};/** Invites user */@@ -5443,7 +5580,9 @@ export interface operations {};};/** @description Failed to invite user */- 500: never;+ 500: {+ content: never;+ };};};/** Delete invited user */@@ -5458,9 +5597,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to delete invited user */- 500: never;+ 500: {+ content: never;+ };};};/** Gets invite */@@ -5481,7 +5624,9 @@ export interface operations {};};/** @description Failed to get invite */- 500: never;+ 500: {+ content: never;+ };};};/** Joins organization */@@ -5502,7 +5647,9 @@ export interface operations {};};/** @description Failed to join organization */- 500: never;+ 500: {+ content: never;+ };};};/** Leaves the given organization */@@ -5520,7 +5667,9 @@ export interface operations {};};/** @description Failed to leave organization */- 500: never;+ 500: {+ content: never;+ };};};/** Leaves the given organization */@@ -5543,7 +5692,9 @@ export interface operations {};};/** @description Failed to leave organization */- 500: never;+ 500: {+ content: never;+ };};};/** Gets organization's members */@@ -5557,11 +5708,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["Member"])[];+ "application/json": components["schemas"]["Member"][];};};/** @description Failed to retrieve organization's members */- 500: never;+ 500: {+ content: never;+ };};};/** Removes organization member */@@ -5574,9 +5727,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to remove organization member */- 500: never;+ 500: {+ content: never;+ };};};/** Updates organization member */@@ -5594,9 +5751,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to update organization member */- 500: never;+ 500: {+ content: never;+ };};};/** Gets organization members who have reached their free project limit */@@ -5610,11 +5771,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["MemberWithFreeProjectLimit"])[];+ "application/json": components["schemas"]["MemberWithFreeProjectLimit"][];};};/** @description Failed to retrieve organization members who have reached their free project limit */- 500: never;+ 500: {+ content: never;+ };};};/** Gets Stripe payment methods for the given organization */@@ -5631,9 +5794,13 @@ export interface operations {"application/json": components["schemas"]["PaymentsResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get Stripe payment methods */- 500: never;+ 500: {+ content: never;+ };};};/** Detach Stripe payment method with the given card ID */@@ -5649,9 +5816,13 @@ export interface operations {"application/json": components["schemas"]["DetachPaymentResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to detach Stripe payment method */- 500: never;+ 500: {+ content: never;+ };};};/** Sets up a payment method */@@ -5663,7 +5834,9 @@ export interface operations {};};/** @description Failed to set up a payment method */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the current subscription */@@ -5680,9 +5853,13 @@ export interface operations {"application/json": components["schemas"]["GetSubscriptionResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve subscription */- 500: never;+ 500: {+ content: never;+ };};};/** Updates subscription */@@ -5699,10 +5876,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to update subscription */- 500: never;+ 500: {+ content: never;+ };};};/** Updates subscription */@@ -5719,10 +5902,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to update subscription */- 500: never;+ 500: {+ content: never;+ };};};/** Gets subscription plans */@@ -5739,9 +5928,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get subscription plans */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the upcoming invoice */@@ -5758,9 +5951,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve upcoming invoice */- 500: never;+ 500: {+ content: never;+ };};};/** Retrieve column privileges */@@ -5777,12 +5974,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresColumnPrivileges"])[];+ "application/json": components["schemas"]["PostgresColumnPrivileges"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve column privileges */- 500: never;+ 500: {+ content: never;+ };};};/** Grant column privileges */@@ -5798,18 +5999,22 @@ export interface operations {};requestBody: {content: {- "application/json": (components["schemas"]["GrantColumnPrivilegesBody"])[];+ "application/json": components["schemas"]["GrantColumnPrivilegesBody"][];};};responses: {201: {content: {- "application/json": (components["schemas"]["PostgresColumnPrivileges"])[];+ "application/json": components["schemas"]["PostgresColumnPrivileges"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to grant column privileges */- 500: never;+ 500: {+ content: never;+ };};};/** Revoke column privileges */@@ -5825,18 +6030,22 @@ export interface operations {};requestBody: {content: {- "application/json": (components["schemas"]["RevokeColumnPrivilegesBody"])[];+ "application/json": components["schemas"]["RevokeColumnPrivilegesBody"][];};};responses: {200: {content: {- "application/json": (components["schemas"]["PostgresColumnPrivileges"])[];+ "application/json": components["schemas"]["PostgresColumnPrivileges"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to revoke column privileges */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.columns */@@ -5857,12 +6066,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresColumn"])[];+ "application/json": components["schemas"]["PostgresColumn"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.columns */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project pg.column */@@ -5887,9 +6100,13 @@ export interface operations {"application/json": components["schemas"]["PostgresColumn"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.column */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.column with the given ID */@@ -5914,9 +6131,13 @@ export interface operations {"application/json": components["schemas"]["PostgresColumn"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.column with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.column with the given ID */@@ -5945,9 +6166,13 @@ export interface operations {"application/json": components["schemas"]["PostgresColumn"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.column with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.extensions */@@ -5964,12 +6189,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresExtension"])[];+ "application/json": components["schemas"]["PostgresExtension"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.extensions */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project pg.extension */@@ -5994,9 +6223,13 @@ export interface operations {"application/json": components["schemas"]["PostgresExtension"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.extension */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.extension with the given ID */@@ -6020,9 +6253,13 @@ export interface operations {"application/json": components["schemas"]["PostgresExtension"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.extension with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Retrieve database foreign tables */@@ -6045,16 +6282,20 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresForeignTable"])[];+ "application/json": components["schemas"]["PostgresForeignTable"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve database foreign tables */- 500: never;+ 500: {+ content: never;+ };};};/**- * List all functions+ * List all functions* @description Returns all functions you've previously added to the specified project.*/FunctionsController_getFunctions: {@@ -6067,16 +6308,20 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["FunctionResponse"])[];+ "application/json": components["schemas"]["FunctionResponse"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's functions */- 500: never;+ 500: {+ content: never;+ };};};/**- * Create a function+ * Create a function* @description Creates a function and adds it to the specified project.*/FunctionsController_createFunction: {@@ -6106,9 +6351,13 @@ export interface operations {"application/json": components["schemas"]["FunctionResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create project's function */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.function with the given ID */@@ -6132,9 +6381,13 @@ export interface operations {"application/json": components["schemas"]["PostgresFunction"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.function with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.function with the given ID */@@ -6163,9 +6416,13 @@ export interface operations {"application/json": components["schemas"]["PostgresFunction"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.function with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Retrieve database materialized views */@@ -6190,12 +6447,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresMaterializedView"])[];+ "application/json": components["schemas"]["PostgresMaterializedView"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve database materialized views */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.policies */@@ -6216,12 +6477,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresPolicy"])[];+ "application/json": components["schemas"]["PostgresPolicy"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.policies */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project pg.policy */@@ -6246,9 +6511,13 @@ export interface operations {"application/json": components["schemas"]["PostgresPolicy"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.policy */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.policy with the given ID */@@ -6272,9 +6541,13 @@ export interface operations {"application/json": components["schemas"]["PostgresPolicy"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.policy with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.policy with the given ID */@@ -6303,9 +6576,13 @@ export interface operations {"application/json": components["schemas"]["PostgresPolicy"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.policy with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.publications */@@ -6322,12 +6599,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresPublication"])[];+ "application/json": components["schemas"]["PostgresPublication"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.publications */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.publications */@@ -6352,9 +6633,13 @@ export interface operations {"application/json": components["schemas"]["PostgresPublication"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.publication */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.publication with the given ID */@@ -6378,9 +6663,13 @@ export interface operations {"application/json": components["schemas"]["PostgresPublication"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.publication with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.publication with the given ID */@@ -6409,9 +6698,13 @@ export interface operations {"application/json": components["schemas"]["PostgresPublication"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.publication with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Run sql query */@@ -6436,9 +6729,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to run sql query */- 500: never;+ 500: {+ content: never;+ };};};/** Format sql query */@@ -6461,7 +6758,9 @@ export interface operations {};};/** @description Failed to format sql query */- 500: never;+ 500: {+ content: never;+ };};};/** Validate sql query */@@ -6484,7 +6783,9 @@ export interface operations {};};/** @description Failed to validate sql query */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.roles */@@ -6501,12 +6802,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresRole"])[];+ "application/json": components["schemas"]["PostgresRole"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.roles */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project pg.role */@@ -6531,9 +6836,13 @@ export interface operations {"application/json": components["schemas"]["PostgresRole"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.role */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.role with the given ID */@@ -6557,9 +6866,13 @@ export interface operations {"application/json": components["schemas"]["PostgresRole"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.role with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.role with the given ID */@@ -6588,9 +6901,13 @@ export interface operations {"application/json": components["schemas"]["PostgresRole"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.role with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.schemas */@@ -6607,12 +6924,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresSchema"])[];+ "application/json": components["schemas"]["PostgresSchema"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.schemas */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project pg.schema */@@ -6637,9 +6958,13 @@ export interface operations {"application/json": components["schemas"]["PostgresSchema"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.schema */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.schema with the given ID */@@ -6663,9 +6988,13 @@ export interface operations {"application/json": components["schemas"]["PostgresSchema"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.schema with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.schema with the given ID */@@ -6694,9 +7023,13 @@ export interface operations {"application/json": components["schemas"]["PostgresSchema"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.schema with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Searches project pg.tables. Return maximum 50 results. */@@ -6718,12 +7051,16 @@ export interface operations {responses: {201: {content: {- "application/json": (components["schemas"]["Table"])[];+ "application/json": components["schemas"]["Table"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to search pg.tables */- 500: never;+ 500: {+ content: never;+ };};};/** Searches project pg.columns. Return maximum 50 results. */@@ -6745,12 +7082,16 @@ export interface operations {responses: {201: {content: {- "application/json": (components["schemas"]["Column"])[];+ "application/json": components["schemas"]["Column"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to search pg.columns */- 500: never;+ 500: {+ content: never;+ };};};/** Retrieve table privileges */@@ -6767,12 +7108,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresTablePrivileges"])[];+ "application/json": components["schemas"]["PostgresTablePrivileges"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve table privileges */- 500: never;+ 500: {+ content: never;+ };};};/** Grant table privileges */@@ -6788,18 +7133,22 @@ export interface operations {};requestBody: {content: {- "application/json": (components["schemas"]["GrantTablePrivilegesBody"])[];+ "application/json": components["schemas"]["GrantTablePrivilegesBody"][];};};responses: {201: {content: {- "application/json": (components["schemas"]["PostgresTablePrivileges"])[];+ "application/json": components["schemas"]["PostgresTablePrivileges"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to grant table privileges */- 500: never;+ 500: {+ content: never;+ };};};/** Revoke table privileges */@@ -6815,18 +7164,22 @@ export interface operations {};requestBody: {content: {- "application/json": (components["schemas"]["RevokeTablePrivilegesBody"])[];+ "application/json": components["schemas"]["RevokeTablePrivilegesBody"][];};};responses: {200: {content: {- "application/json": (components["schemas"]["PostgresTablePrivileges"])[];+ "application/json": components["schemas"]["PostgresTablePrivileges"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to revoke table privileges */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.tables or pg.table with the given ID */@@ -6853,12 +7206,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresTable"])[];+ "application/json": components["schemas"]["PostgresTable"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.tables or pg.table with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project pg.table */@@ -6883,9 +7240,13 @@ export interface operations {"application/json": components["schemas"]["PostgresTable"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.table */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.table with the given ID */@@ -6910,9 +7271,13 @@ export interface operations {"application/json": components["schemas"]["PostgresTable"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.table with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.table with the given ID */@@ -6941,9 +7306,13 @@ export interface operations {"application/json": components["schemas"]["PostgresTable"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.table with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.triggers */@@ -6964,12 +7333,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresTrigger"])[];+ "application/json": components["schemas"]["PostgresTrigger"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.triggers */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project pg.trigger */@@ -6994,9 +7367,13 @@ export interface operations {"application/json": components["schemas"]["PostgresTrigger"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create pg.trigger */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project pg.trigger with the given ID */@@ -7020,9 +7397,13 @@ export interface operations {"application/json": components["schemas"]["PostgresTrigger"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete pg.trigger with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project pg.trigger with the given ID */@@ -7051,9 +7432,13 @@ export interface operations {"application/json": components["schemas"]["PostgresTrigger"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update pg.trigger with the given ID */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project pg.types */@@ -7074,12 +7459,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresType"])[];+ "application/json": components["schemas"]["PostgresType"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get pg.types */- 500: never;+ 500: {+ content: never;+ };};};/** Retrieve database views */@@ -7105,12 +7494,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["PostgresView"])[];+ "application/json": components["schemas"]["PostgresView"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve database views */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the user's access tokens */@@ -7118,11 +7511,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["AccessToken"])[];+ "application/json": components["schemas"]["AccessToken"][];};};/** @description Failed to get user's access tokens */- 500: never;+ 500: {+ content: never;+ };};};/** Creates a new access token */@@ -7139,7 +7534,9 @@ export interface operations {};};/** @description Failed to create access token */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the access token with the given ID */@@ -7157,7 +7554,9 @@ export interface operations {};};/** @description Failed to get access token */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes the access token with the given ID */@@ -7175,7 +7574,9 @@ export interface operations {};};/** @description Failed to delete access token */- 500: never;+ 500: {+ content: never;+ };};};/** Gets a user's audit logs */@@ -7195,7 +7596,9 @@ export interface operations {};};/** @description Failed to get a user's audit logs */- 500: never;+ 500: {+ content: never;+ };};};/** Search profiles by username, email with the given keywords */@@ -7208,11 +7611,13 @@ export interface operations {responses: {201: {content: {- "application/json": (components["schemas"]["Profile"])[];+ "application/json": components["schemas"]["Profile"][];};};/** @description Failed to search profiles with the given keywords */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the user's subscription statistics */@@ -7224,7 +7629,9 @@ export interface operations {};};/** @description Failed to retrieve user's subscription statistics */- 500: never;+ 500: {+ content: never;+ };};};/** Check password strength */@@ -7241,7 +7648,9 @@ export interface operations {};};/** @description Failed to check password strength */- 500: never;+ 500: {+ content: never;+ };};};/** Gets all the user's permissions */@@ -7249,11 +7658,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["Permission"])[];+ "application/json": components["schemas"]["Permission"][];};};/** @description Failed to retrieve permissions */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the user's profile */@@ -7265,7 +7676,9 @@ export interface operations {};};/** @description Failed to retrieve user's profile */- 500: never;+ 500: {+ content: never;+ };};};/** Creates user's profile */@@ -7277,17 +7690,25 @@ export interface operations {};};/** @description Failed to create user's profile */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes user's profile */ProfileController_deleteProfile: {responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Forbidden action */- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete user's profile */- 500: never;+ 500: {+ content: never;+ };};};/** Updates user's profile */@@ -7304,18 +7725,20 @@ export interface operations {};};/** @description Failed to update user's profile */- 500: never;+ 500: {+ content: never;+ };};};/**- * List all projects+ * List all projects* @description Returns a list of all projects you've previously created.*/ProjectsController_getProjects: {responses: {200: {content: {- "application/json": (components["schemas"]["ProjectResponse"])[];+ "application/json": components["schemas"]["ProjectResponse"][];};};};@@ -7355,7 +7778,9 @@ export interface operations {};};/** @description Failed to retrieve project's content */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's content */@@ -7378,7 +7803,9 @@ export interface operations {};};/** @description Failed to update project's content */- 500: never;+ 500: {+ content: never;+ };};};/** Creates project's content */@@ -7397,11 +7824,13 @@ export interface operations {responses: {201: {content: {- "application/json": (components["schemas"]["UserContentObject"])[];+ "application/json": components["schemas"]["UserContentObject"][];};};/** @description Failed to create project's content */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes project's content */@@ -7418,7 +7847,9 @@ export interface operations {};};/** @description Failed to delete project's content */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's content */@@ -7436,11 +7867,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["UserContentObject"])[];+ "application/json": components["schemas"]["UserContentObject"][];};};/** @description Failed to update project's content */- 500: never;+ 500: {+ content: never;+ };};};/** Gets daily project stats */@@ -7464,7 +7897,9 @@ export interface operations {};};/** @description Failed to get daily project stats */- 500: never;+ 500: {+ content: never;+ };};};/** Updates the database password */@@ -7481,10 +7916,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to update database password */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project health check */@@ -7496,10 +7937,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to get project health check */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project OpenApi */@@ -7516,9 +7963,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get project OpenApi */- 500: never;+ 500: {+ content: never;+ };};};/** Queries project Graphql */@@ -7543,9 +7994,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to query project Graphql */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's usage metrics */@@ -7569,7 +8024,9 @@ export interface operations {};};/** @description Failed to get project's usage metrics */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's invoices */@@ -7587,11 +8044,13 @@ export interface operations {responses: {200: {content: {- "application/json": (Record<string, never>)[];+ "application/json": Record<string, never>[];};};/** @description Failed to get project's invoices */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's invoice count */@@ -7603,9 +8062,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to get project's invoice count */- 500: never;+ 500: {+ content: never;+ };};};/** Pauses the project */@@ -7617,9 +8080,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to pause the project */- 500: never;+ 500: {+ content: never;+ };};};/** Resize database disk */@@ -7636,9 +8103,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to resize database disk */- 500: never;+ 500: {+ content: never;+ };};};/** Restarts project */@@ -7650,10 +8121,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to restart project */- 500: never;+ 500: {+ content: never;+ };};};/** Gets a specific project that belongs to the authenticated user */@@ -7686,7 +8163,9 @@ export interface operations {"application/json": components["schemas"]["ProjectRefResponse"];};};- 403: never;+ 403: {+ content: never;+ };};};/** Updates the given project */@@ -7708,9 +8187,13 @@ export interface operations {"application/json": components["schemas"]["ProjectRefResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project */- 500: never;+ 500: {+ content: never;+ };};};/** Restores project */@@ -7728,7 +8211,9 @@ export interface operations {};};/** @description Failed to restore project */- 500: never;+ 500: {+ content: never;+ };};};/** Restarts given services */@@ -7745,9 +8230,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to restart given services */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's settings */@@ -7765,12 +8254,14 @@ export interface operations {};};/** @description Failed to retrieve project's settings */- 500: never;+ 500: {+ content: never;+ };};};/**- * Updates the project- * @deprecated+ * Updates the project+ * @deprecated* @description Replaced by PATCH /platform/projects/:ref*/UpdateController_updateProject: {@@ -7786,10 +8277,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to update project */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's usage */@@ -7807,7 +8304,9 @@ export interface operations {};};/** @description Failed to retrieve project's usage */- 500: never;+ 500: {+ content: never;+ };};};/** Previews transfering a project to a different organizations, shows eligibility and impact. */@@ -7829,7 +8328,9 @@ export interface operations {"application/json": components["schemas"]["PreviewProjectTransferResponse"];};};- 403: never;+ 403: {+ content: never;+ };};};/** Transfers a project to a different organization. */@@ -7846,8 +8347,12 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };};};/** Gets a project's function invocation statistics */@@ -7868,9 +8373,13 @@ export interface operations {"application/json": components["schemas"]["AnalyticsResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get project's function invocation statistics */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's logs */@@ -7895,9 +8404,13 @@ export interface operations {"application/json": components["schemas"]["AnalyticsResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get project's logs */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's usage api counts */@@ -7917,9 +8430,13 @@ export interface operations {"application/json": components["schemas"]["AnalyticsResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get project's usage api counts */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's pgbouncer config */@@ -7937,7 +8454,9 @@ export interface operations {};};/** @description Failed to retrieve project's pgbouncer config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's pgbouncer config */@@ -7959,9 +8478,13 @@ export interface operations {"application/json": components["schemas"]["UpdatePoolingConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project's pgbouncer config */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's postgrest config */@@ -7978,9 +8501,13 @@ export interface operations {"application/json": components["schemas"]["PostgrestConfigWithJWTSecretResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's postgrest config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's postgrest config */@@ -8002,9 +8529,13 @@ export interface operations {"application/json": components["schemas"]["PostgrestConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project's postgrest config */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's Postgres config */@@ -8022,7 +8553,9 @@ export interface operations {};};/** @description Failed to retrieve project's Postgres config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's Postgres config */@@ -8045,7 +8578,9 @@ export interface operations {};};/** @description Failed to update project's Postgres config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's secrets config */@@ -8068,7 +8603,9 @@ export interface operations {};};/** @description Failed to update project's secrets config */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's storage config */@@ -8085,9 +8622,13 @@ export interface operations {"application/json": components["schemas"]["StorageConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's storage config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's storage config */@@ -8109,9 +8650,13 @@ export interface operations {"application/json": components["schemas"]["UpdateStorageConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project's storage config */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project addons */@@ -8128,9 +8673,13 @@ export interface operations {"application/json": components["schemas"]["ProjectAddonsResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get project addons */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project addon */@@ -8147,10 +8696,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to update project addon */- 500: never;+ 500: {+ content: never;+ };};};/** Removes project addon */@@ -8163,10 +8718,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to remove project addon */- 500: never;+ 500: {+ content: never;+ };};};/** Gets subscription plans */@@ -8183,9 +8744,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get subscription plans */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the upcoming invoice */@@ -8202,13 +8767,17 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve upcoming invoice */- 500: never;+ 500: {+ content: never;+ };};};/**- * Gets project's api info+ * Gets project's api info* @deprecated*/ApiController_getProjectApi: {@@ -8225,7 +8794,9 @@ export interface operations {};};/** @description Failed to retrieve project's api info */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the last JWT secret update status */@@ -8243,7 +8814,9 @@ export interface operations {};};/** @description Failed to retrieve JWT secret update status */- 500: never;+ 500: {+ content: never;+ };};};/** Gets bucket */@@ -8262,9 +8835,13 @@ export interface operations {"application/json": components["schemas"]["StorageBucket"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get bucket */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes bucket */@@ -8278,10 +8855,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to delete bucket */- 500: never;+ 500: {+ content: never;+ };};};/** Updates bucket */@@ -8300,10 +8883,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to update bucket */- 500: never;+ 500: {+ content: never;+ };};};/** Removes all objects inside a single bucket. */@@ -8317,10 +8906,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to empty bucket */- 500: never;+ 500: {+ content: never;+ };};};/** Gets list of buckets */@@ -8334,12 +8929,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["StorageBucket"])[];+ "application/json": components["schemas"]["StorageBucket"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get list of buckets */- 500: never;+ 500: {+ content: never;+ };};};/** Create bucket */@@ -8361,9 +8960,13 @@ export interface operations {"application/json": string;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create bucket */- 500: never;+ 500: {+ content: never;+ };};};/** Gets list of objects with the given bucket */@@ -8384,12 +8987,16 @@ export interface operations {responses: {201: {content: {- "application/json": (components["schemas"]["StorageObject"])[];+ "application/json": components["schemas"]["StorageObject"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get list of objects with the given bucket */- 500: never;+ 500: {+ content: never;+ };};};/** Creates URL for an asset in a public bucket */@@ -8413,9 +9020,13 @@ export interface operations {"application/json": components["schemas"]["PublicUrlResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create public URL */- 500: never;+ 500: {+ content: never;+ };};};/** Downloads a file from a private bucket */@@ -8434,10 +9045,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to download the file */- 500: never;+ 500: {+ content: never;+ };};};/** Creates a signed URL */@@ -8461,9 +9078,13 @@ export interface operations {"application/json": components["schemas"]["SignedUrlResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to create a signed URL */- 500: never;+ 500: {+ content: never;+ };};};/** Gets multiple signed URLs */@@ -8484,12 +9105,16 @@ export interface operations {responses: {201: {content: {- "application/json": (components["schemas"]["SignedUrlsResponse"])[];+ "application/json": components["schemas"]["SignedUrlsResponse"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get multiple signed URLs */- 500: never;+ 500: {+ content: never;+ };};};/** Copys object */@@ -8513,9 +9138,13 @@ export interface operations {"application/json": components["schemas"]["CopyObjectResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to copy object */- 500: never;+ 500: {+ content: never;+ };};};/** Move object */@@ -8534,10 +9163,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to move object */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes objects */@@ -8556,10 +9191,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to delete objects */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the total count of invoices for the given customer */@@ -8571,9 +9212,17 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ headers: {+ /** @description total count value */+ "X-Total-Count"?: unknown;+ };+ content: never;+ };/** @description Failed to retrieve the total count of invoices */- 500: never;+ 500: {+ content: never;+ };};};/** Gets information about overdue invoices that relate to the authenticated user */@@ -8581,7 +9230,7 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["OverdueInvoiceCount"])[];+ "application/json": components["schemas"]["OverdueInvoiceCount"][];};};};@@ -8600,7 +9249,9 @@ export interface operations {};};/** @description Failed to retrieve invoice */- 500: never;+ 500: {+ content: never;+ };};};/** Sends analytics server event */@@ -8611,9 +9262,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to send analytics server event */- 500: never;+ 500: {+ content: never;+ };};};/** Send analytics identify event */@@ -8624,9 +9279,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to send analytics identify event */- 500: never;+ 500: {+ content: never;+ };};};/** Send server page event */@@ -8637,9 +9296,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to send server page event */- 500: never;+ 500: {+ content: never;+ };};};/** Sends mixpanel server activity */@@ -8650,9 +9313,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to send mixpanel server activity */- 500: never;+ 500: {+ content: never;+ };};};/** Send mixpanel page event */@@ -8663,9 +9330,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to send mixpanel page event */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the Vercel access token for the given code */@@ -8676,9 +9347,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to get Vercel access token */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the project with the given ID if provided, otherwise gets the list of projects */@@ -8699,7 +9374,9 @@ export interface operations {};};/** @description Failed to get project(s) */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the environment variables for the given project ID on behalf of the given team ID */@@ -8716,11 +9393,13 @@ export interface operations {responses: {200: {content: {- "application/json": (Record<string, never>)[];+ "application/json": Record<string, never>[];};};/** @description Failed to get Vercel environment variables */- 500: never;+ 500: {+ content: never;+ };};};/** Creates the environment variable for the given project ID on behalf of the given team ID */@@ -8746,7 +9425,9 @@ export interface operations {};};/** @description Failed to get the environment variables */- 500: never;+ 500: {+ content: never;+ };};};/** Gets user's integrations */@@ -8760,11 +9441,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["GetUserOrganizationIntegrationResponse"])[];+ "application/json": components["schemas"]["GetUserOrganizationIntegrationResponse"][];};};/** @description Failed to get user's integrations */- 500: never;+ 500: {+ content: never;+ };};};/** Gets integration with the given organization slug */@@ -8777,15 +9460,17 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["GetOrganizationIntegrationResponse"])[];+ "application/json": components["schemas"]["GetOrganizationIntegrationResponse"][];};};/** @description Failed to get integration with the given organization slug */- 500: never;+ 500: {+ content: never;+ };};};/**- * Create vercel integration+ * Create vercel integration* @description Exchanges a vercel code for an access token and saves the access token to the new integration record*/VercelIntegrationController_createVercelIntegration: {@@ -8795,9 +9480,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to create vercel integration */- 500: never;+ 500: {+ content: never;+ };};};/** Removes Vercel organization integration with the given id */@@ -8808,9 +9497,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to remove Vercel organization integration with the given id */- 500: never;+ 500: {+ content: never;+ };};};/** Gets vercel projects with the given organization integration id */@@ -8832,7 +9525,9 @@ export interface operations {};};/** @description Failed to get vercel projects with the given organization integration id */- 500: never;+ 500: {+ content: never;+ };};};/** Gets installed vercel project connections for the given organization integration */@@ -8845,11 +9540,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["GetVercelConnections"])[];+ "application/json": components["schemas"]["GetVercelConnections"][];};};/** @description Failed to get installed vercel connections for the given organization integration */- 500: never;+ 500: {+ content: never;+ };};};/** Connects a Vercel project to a supabase project */@@ -8866,7 +9563,9 @@ export interface operations {};};/** @description Failed to create project connection */- 500: never;+ 500: {+ content: never;+ };};};/** Syncs supabase project envs with given connection id */@@ -8877,9 +9576,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to sync supabase project envs with given connection id */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes vercel project connection */@@ -8896,7 +9599,9 @@ export interface operations {};};/** @description Failed to delete vercel integration project connection */- 500: never;+ 500: {+ content: never;+ };};};/** Updates a Vercel connection for a supabase project */@@ -8912,9 +9617,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to update Vercel connection */- 500: never;+ 500: {+ content: never;+ };};};/** Create github integration */@@ -8931,7 +9640,9 @@ export interface operations {};};/** @description Failed to create github integration */- 500: never;+ 500: {+ content: never;+ };};};/** Gets installed github project connections for the given organization integration */@@ -8944,11 +9655,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["GetGitHubConnections"])[];+ "application/json": components["schemas"]["GetGitHubConnections"][];};};/** @description Failed to get installed github connections for the given organization integration */- 500: never;+ 500: {+ content: never;+ };};};/** Connects a GitHub project to a supabase project */@@ -8959,9 +9672,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to create project connections */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes github project connection */@@ -8972,9 +9689,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to delete github integration project connection */- 500: never;+ 500: {+ content: never;+ };};};/** Updates a GitHub connection for a supabase project */@@ -8990,9 +9711,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to update GitHub connection */- 500: never;+ 500: {+ content: never;+ };};};/** Gets github repos for the given organization */@@ -9005,11 +9730,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["GetGithubRepo"])[];+ "application/json": components["schemas"]["GetGithubRepo"][];};};/** @description Failed to get github repos for the given organization */- 500: never;+ 500: {+ content: never;+ };};};/** Gets github branches for a given repo */@@ -9024,11 +9751,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["GetGithubBranch"])[];+ "application/json": components["schemas"]["GetGithubBranch"][];};};/** @description Failed to get github branches for a given repo */- 500: never;+ 500: {+ content: never;+ };};};/** Gets github pull requests for a given repo */@@ -9044,11 +9773,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["GetGithubPullRequest"])[];+ "application/json": components["schemas"]["GetGithubPullRequest"][];};};/** @description Failed to get github pull requests for a given repo */- 500: never;+ 500: {+ content: never;+ };};};/** Gets GoTrue template */@@ -9066,7 +9797,9 @@ export interface operations {};};/** @description Failed to retrieve GoTrue template */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the status of owner reassignment */@@ -9084,7 +9817,9 @@ export interface operations {};};/** @description Failed to get status of owner reassignment */- 500: never;+ 500: {+ content: never;+ };};};/** Reassigns object owner from supabase_admin to temp */@@ -9104,9 +9839,13 @@ export interface operations {"application/json": components["schemas"]["OwnerResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to reassign owner on the project */- 500: never;+ 500: {+ content: never;+ };};};/** Rollback object owner from temp to supabase_admin */@@ -9126,9 +9865,13 @@ export interface operations {"application/json": components["schemas"]["OwnerResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to rollback owner on the project */- 500: never;+ 500: {+ content: never;+ };};};/** Reassigns object owner from temp to postgres */@@ -9148,9 +9891,13 @@ export interface operations {"application/json": components["schemas"]["OwnerResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to reassign owner on the project */- 500: never;+ 500: {+ content: never;+ };};};/** Reset JWT if leaked keys found by GitHub secret scanning */@@ -9167,13 +9914,17 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to reset JWT */- 500: never;+ 500: {+ content: never;+ };};};/**- * List all functions+ * List all functions* @description Returns all functions you've previously added to the specified project.*/SystemFunctionsController_getFunctions: {@@ -9186,12 +9937,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["FunctionResponse"])[];+ "application/json": components["schemas"]["FunctionResponse"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's functions */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes all Edge Functions from a project */@@ -9203,11 +9958,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };};};/**- * List all secrets+ * List all secrets* @description Returns all secrets you've previously added to the specified project.*/SystemSecretsController_getSecrets: {@@ -9220,16 +9977,20 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["SecretResponse"])[];+ "application/json": components["schemas"]["SecretResponse"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's secrets */- 500: never;+ 500: {+ content: never;+ };};};/**- * Bulk create secrets+ * Bulk create secrets* @description Creates multiple secrets and adds them to the specified project.*/SystemSecretsController_createSecrets: {@@ -9241,18 +10002,24 @@ export interface operations {};requestBody: {content: {- "application/json": (components["schemas"]["CreateSecretBody"])[];+ "application/json": components["schemas"]["CreateSecretBody"][];};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to create project's secrets */- 500: never;+ 500: {+ content: never;+ };};};/**- * Bulk delete secrets+ * Bulk delete secrets* @description Deletes all secrets with the given names from the specified project*/SystemSecretsController_deleteSecrets: {@@ -9264,7 +10031,7 @@ export interface operations {};requestBody: {content: {- "application/json": (string)[];+ "application/json": string[];};};responses: {@@ -9273,9 +10040,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete secrets with given names */- 500: never;+ 500: {+ content: never;+ };};};/** Refreshes secrets */@@ -9287,9 +10058,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to refresh secrets */- 500: never;+ 500: {+ content: never;+ };};};/** Updates a project's health status. */@@ -9306,9 +10081,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to update health status. */- 500: never;+ 500: {+ content: never;+ };};};/** Records an HA event */@@ -9325,9 +10104,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to record HA event. */- 500: never;+ 500: {+ content: never;+ };};};/** Allows a project to obtain temporary credentials. */@@ -9350,7 +10133,9 @@ export interface operations {};};/** @description Failed to obtain temporary credentials. */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project addon */@@ -9367,9 +10152,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to update project addon */- 500: never;+ 500: {+ content: never;+ };};};/** Removes project addon */@@ -9382,9 +10171,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to remove project addon */- 500: never;+ 500: {+ content: never;+ };};};/** Migrates org to org-level billing. */@@ -9395,9 +10188,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to migrate org. */- 500: never;+ 500: {+ content: never;+ };};};/** Previews the migration of the organization to the new org level billing. */@@ -9408,9 +10205,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to preview org billing organization */- 500: never;+ 500: {+ content: never;+ };};};/** Attaches subscription id to org and projects. */@@ -9421,9 +10222,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to preview org billing organization */- 500: never;+ 500: {+ content: never;+ };};};/** Handle update project jwt on completion */@@ -9435,7 +10240,9 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };};};/** Gets usage stats */@@ -9453,7 +10260,9 @@ export interface operations {};};/** @description Failed to get usage stats */- 500: never;+ 500: {+ content: never;+ };};};/** Processes Vercel event */@@ -9469,9 +10278,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to process Vercel event */- 500: never;+ 500: {+ content: never;+ };};};/** Processes GitHub event */@@ -9488,9 +10301,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to process GitHub event */- 500: never;+ 500: {+ content: never;+ };};};/** Processes Stripe event */@@ -9506,13 +10323,17 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to process Stripe event */- 500: never;+ 500: {+ content: never;+ };};};/**- * Get metrics+ * Get metrics* @description At most 50 projects can be queried at a time.* Currently supports '1d', '3d', and '7d' intervals.*/@@ -9531,7 +10352,7 @@ export interface operations {};};/**- * Get database branch config+ * Get database branch config* @description Fetches configurations of the specified database branch*/BranchController_getBranchDetails: {@@ -9548,11 +10369,13 @@ export interface operations {};};/** @description Failed to retrieve database branch */- 500: never;+ 500: {+ content: never;+ };};};/**- * Delete a database branch+ * Delete a database branch* @description Deletes the specified database branch*/BranchController_deleteBranch: {@@ -9563,13 +10386,17 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to delete database branch */- 500: never;+ 500: {+ content: never;+ };};};/**- * Update database branch config+ * Update database branch config* @description Updates the configuration of the specified database branch*/BranchController_updateBranch: {@@ -9591,7 +10418,9 @@ export interface operations {};};/** @description Failed to update database branch */- 500: never;+ 500: {+ content: never;+ };};};ApiKeysController_getProjectApiKeys: {@@ -9604,14 +10433,16 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["ApiKeyResponse"])[];+ "application/json": components["schemas"]["ApiKeyResponse"][];};};- 403: never;+ 403: {+ content: never;+ };};};/**- * List all database branches+ * List all database branches* @description Returns all database branches of the specified project.*/BranchesController_getBranches: {@@ -9624,15 +10455,17 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["BranchResponse"])[];+ "application/json": components["schemas"]["BranchResponse"][];};};/** @description Failed to retrieve database branches */- 500: never;+ 500: {+ content: never;+ };};};/**- * Create a database branch+ * Create a database branch* @description Creates a database branch from the specified project.*/BranchesController_createBranch: {@@ -9654,11 +10487,13 @@ export interface operations {};};/** @description Failed to create database branch */- 500: never;+ 500: {+ content: never;+ };};};/**- * Disables preview branching+ * Disables preview branching* @description Disables preview branching for the specified project*/BranchesController_disableBranch: {@@ -9669,9 +10504,13 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };/** @description Failed to disable preview branching */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's custom hostname config */@@ -9688,9 +10527,13 @@ export interface operations {"application/json": components["schemas"]["UpdateCustomHostnameResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's custom hostname config */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes a project's custom hostname configuration */@@ -9702,10 +10545,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to delete project custom hostname configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's custom hostname configuration */@@ -9727,9 +10576,13 @@ export interface operations {"application/json": components["schemas"]["UpdateCustomHostnameResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project custom hostname configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Attempts to verify the DNS configuration for project's custom hostname configuration */@@ -9746,9 +10599,13 @@ export interface operations {"application/json": components["schemas"]["UpdateCustomHostnameResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to verify project custom hostname configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Activates a custom hostname for a project. */@@ -9765,9 +10622,13 @@ export interface operations {"application/json": components["schemas"]["UpdateCustomHostnameResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to activate project custom hostname configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's network bans */@@ -9784,9 +10645,13 @@ export interface operations {"application/json": components["schemas"]["NetworkBanResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's network bans */- 500: never;+ 500: {+ content: never;+ };};};/** Remove network bans. */@@ -9803,10 +10668,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to remove network bans. */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's network restrictions */@@ -9823,9 +10694,13 @@ export interface operations {"application/json": components["schemas"]["NetworkRestrictionsResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's network restrictions */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's network restrictions */@@ -9847,9 +10722,13 @@ export interface operations {"application/json": components["schemas"]["NetworkRestrictionsResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project network restrictions */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's pgsodium config */@@ -9866,9 +10745,13 @@ export interface operations {"application/json": components["schemas"]["PgsodiumConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's pgsodium config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible. */@@ -9890,13 +10773,17 @@ export interface operations {"application/json": components["schemas"]["PgsodiumConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project's pgsodium config */- 500: never;+ 500: {+ content: never;+ };};};/**- * List all secrets+ * List all secrets* @description Returns all secrets you've previously added to the specified project.*/SecretsController_getSecrets: {@@ -9909,16 +10796,20 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["SecretResponse"])[];+ "application/json": components["schemas"]["SecretResponse"][];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's secrets */- 500: never;+ 500: {+ content: never;+ };};};/**- * Bulk create secrets+ * Bulk create secrets* @description Creates multiple secrets and adds them to the specified project.*/SecretsController_createSecrets: {@@ -9930,18 +10821,24 @@ export interface operations {};requestBody: {content: {- "application/json": (components["schemas"]["CreateSecretBody"])[];+ "application/json": components["schemas"]["CreateSecretBody"][];};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to create project's secrets */- 500: never;+ 500: {+ content: never;+ };};};/**- * Bulk delete secrets+ * Bulk delete secrets* @description Deletes all secrets with the given names from the specified project*/SecretsController_deleteSecrets: {@@ -9953,7 +10850,7 @@ export interface operations {};requestBody: {content: {- "application/json": (string)[];+ "application/json": string[];};};responses: {@@ -9962,9 +10859,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to delete secrets with given names */- 500: never;+ 500: {+ content: never;+ };};};/** Get project's SSL enforcement configuration. */@@ -9981,9 +10882,13 @@ export interface operations {"application/json": components["schemas"]["SslEnforcementResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's SSL enforcement config */- 500: never;+ 500: {+ content: never;+ };};};/** Update project's SSL enforcement configuration. */@@ -10005,13 +10910,17 @@ export interface operations {"application/json": components["schemas"]["SslEnforcementResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project's SSL enforcement configuration. */- 500: never;+ 500: {+ content: never;+ };};};/**- * Generate TypeScript types+ * Generate TypeScript types* @description Returns the TypeScript types of your schema for use with supabase-js.*/TypesController_getTypescriptTypes: {@@ -10030,9 +10939,13 @@ export interface operations {"application/json": components["schemas"]["TypescriptResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to generate TypeScript types */- 500: never;+ 500: {+ content: never;+ };};};/** Gets current vanity subdomain config */@@ -10049,9 +10962,13 @@ export interface operations {"application/json": components["schemas"]["VanitySubdomainConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to get project vanity subdomain configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Deletes a project's vanity subdomain configuration */@@ -10063,10 +10980,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to delete project vanity subdomain configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Checks vanity subdomain availability */@@ -10088,9 +11011,13 @@ export interface operations {"application/json": components["schemas"]["SubdomainAvailabilityResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to check project vanity subdomain configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Activates a vanity subdomain for a project. */@@ -10112,9 +11039,13 @@ export interface operations {"application/json": components["schemas"]["ActivateVanitySubdomainResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to activate project vanity subdomain configuration */- 500: never;+ 500: {+ content: never;+ };};};/** Upgrades the project's Postgres version */@@ -10131,10 +11062,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to initiate project upgrade */- 500: never;+ 500: {+ content: never;+ };};};/** Returns the project's eligibility for upgrades */@@ -10151,9 +11088,13 @@ export interface operations {"application/json": components["schemas"]["ProjectUpgradeEligibilityResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to determine project upgrade eligibility */- 500: never;+ 500: {+ content: never;+ };};};/** Gets the latest status of the project's upgrade */@@ -10170,9 +11111,13 @@ export interface operations {"application/json": components["schemas"]["DatabaseUpgradeStatusResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project upgrade status */- 500: never;+ 500: {+ content: never;+ };};};/** Returns project's readonly mode status */@@ -10190,7 +11135,9 @@ export interface operations {};};/** @description Failed to get project readonly mode status */- 500: never;+ 500: {+ content: never;+ };};};/** Disables project's readonly mode for the next 15 minutes */@@ -10202,9 +11149,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };/** @description Failed to disable project's readonly mode */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's service health status */@@ -10222,11 +11173,13 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["ServiceHealthResponse"])[];+ "application/json": components["schemas"]["ServiceHealthResponse"][];};};/** @description Failed to retrieve project's service health status */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's Postgres config */@@ -10244,7 +11197,9 @@ export interface operations {};};/** @description Failed to retrieve project's Postgres config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates project's Postgres config */@@ -10267,7 +11222,9 @@ export interface operations {};};/** @description Failed to update project's Postgres config */- 500: never;+ 500: {+ content: never;+ };};};/** Get project's pgbouncer config */@@ -10285,7 +11242,9 @@ export interface operations {};};/** @description Failed to retrieve project's pgbouncer config */- 500: never;+ 500: {+ content: never;+ };};};/** Gets project's auth config */@@ -10302,9 +11261,13 @@ export interface operations {"application/json": components["schemas"]["AuthConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve project's auth config */- 500: never;+ 500: {+ content: never;+ };};};/** Updates a project's auth config */@@ -10326,9 +11289,13 @@ export interface operations {"application/json": components["schemas"]["AuthConfigResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update project's auth config */- 500: never;+ 500: {+ content: never;+ };};};/** Lists all SSO providers */@@ -10345,9 +11312,13 @@ export interface operations {"application/json": components["schemas"]["ListProvidersResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description SAML 2.0 support is not enabled for this project */- 404: never;+ 404: {+ content: never;+ };};};/** Creates a new SSO provider */@@ -10369,9 +11340,13 @@ export interface operations {"application/json": components["schemas"]["CreateProviderResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description SAML 2.0 support is not enabled for this project */- 404: never;+ 404: {+ content: never;+ };};};/** Gets a SSO provider by its UUID */@@ -10389,9 +11364,13 @@ export interface operations {"application/json": components["schemas"]["GetProviderResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: never;+ 404: {+ content: never;+ };};};/** Updates a SSO provider by its UUID */@@ -10414,9 +11393,13 @@ export interface operations {"application/json": components["schemas"]["UpdateProviderResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: never;+ 404: {+ content: never;+ };};};/** Removes a SSO provider by its UUID */@@ -10434,9 +11417,13 @@ export interface operations {"application/json": components["schemas"]["DeleteProviderResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: never;+ 404: {+ content: never;+ };};};/** Run sql query */@@ -10458,9 +11445,13 @@ export interface operations {"application/json": Record<string, never>;};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to run sql query */- 500: never;+ 500: {+ content: never;+ };};};/** Enables Database Webhooks on the project */@@ -10472,10 +11463,16 @@ export interface operations {};};responses: {- 201: never;- 403: never;+ 201: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to enable Database Webhooks on the project */- 500: never;+ 500: {+ content: never;+ };};};/** Restores a PITR backup for a database */@@ -10492,11 +11489,13 @@ export interface operations {};};responses: {- 201: never;+ 201: {+ content: never;+ };};};/**- * Retrieve a function+ * Retrieve a function* @description Retrieves a function with the specified slug and project.*/FunctionSlugController_getFunction: {@@ -10514,13 +11513,17 @@ export interface operations {"application/json": components["schemas"]["FunctionSlugResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to retrieve function with given slug */- 500: never;+ 500: {+ content: never;+ };};};/**- * Delete a function+ * Delete a function* @description Deletes a function with the specified slug from the specified project.*/FunctionSlugController_deleteFunction: {@@ -10533,14 +11536,20 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to delete function with given slug */- 500: never;+ 500: {+ content: never;+ };};};/**- * Update a function+ * Update a function* @description Updates a function with the specified slug and project.*/FunctionSlugController_updateFunction: {@@ -10572,13 +11581,17 @@ export interface operations {"application/json": components["schemas"]["FunctionResponse"];};};- 403: never;+ 403: {+ content: never;+ };/** @description Failed to update function with given slug */- 500: never;+ 500: {+ content: never;+ };};};/**- * Retrieve a function body+ * Retrieve a function body* @description Retrieves a function body for the specified slug and project.*/FunctionSlugController_getFunctionBody: {@@ -10591,10 +11604,16 @@ export interface operations {};};responses: {- 200: never;- 403: never;+ 200: {+ content: never;+ };+ 403: {+ content: never;+ };/** @description Failed to retrieve function body with given slug */- 500: never;+ 500: {+ content: never;+ };};};/** Create an organization */@@ -10611,7 +11630,9 @@ export interface operations {};};/** @description Unexpected error creating an organization */- 500: never;+ 500: {+ content: never;+ };};};/** List members of an organization */@@ -10624,7 +11645,7 @@ export interface operations {responses: {200: {content: {- "application/json": (components["schemas"]["V1OrganizationMemberResponse"])[];+ "application/json": components["schemas"]["V1OrganizationMemberResponse"][];};};};@@ -10644,7 +11665,9 @@ export interface operations {};};responses: {- 303: never;+ 303: {+ content: never;+ };};};/** Exchange auth code for user's access and refresh token */@@ -10676,7 +11699,9 @@ export interface operations {};};/** @description Failed to list user's SQL snippets */- 500: never;+ 500: {+ content: never;+ };};};/** Gets a specific SQL snippet */@@ -10693,13 +11718,17 @@ export interface operations {};};/** @description Failed to retrieve SQL snippet */- 500: never;+ 500: {+ content: never;+ };};};/** Redirects to Supabase dashboard after Fly sso with Gotrue */CallbackController_redirectToDashboardFlyioExtensionScreen: {responses: {- 200: never;+ 200: {+ content: never;+ };};};/** Gets database status */@@ -10725,7 +11754,9 @@ export interface operations {};};responses: {- 200: never;+ 200: {+ content: never;+ };};};/** Gets resource billing */diff --git a/studio/data/profile/profile-query.ts b/studio/data/profile/profile-query.tsindex 53ab747ba7f..86a59c86e26 100644--- a/studio/data/profile/profile-query.ts+++ b/studio/data/profile/profile-query.ts@@ -1,7 +1,7 @@import { useQuery, UseQueryOptions } from '@tanstack/react-query'import { get } from 'lib/common/fetch'-import { API_URL } from 'lib/constants'+import { API_URL, IS_PLATFORM } from 'lib/constants'import { ResponseError } from 'types'import { profileKeys } from './keys'import { Profile } from './types'@@ -14,6 +14,11 @@ export async function getProfile(signal?: AbortSignal) {headers: { Version: '2' },})if (response.error) throw response.error++ if (!IS_PLATFORM) {+ response.disabled_features = process.env.NEXT_PUBLIC_DISABLED_FEATURES?.split(',') ?? []+ }+return response as ProfileResponse}diff --git a/studio/data/profile/types.ts b/studio/data/profile/types.tsindex 4af9a4d09e9..f9224301270 100644--- a/studio/data/profile/types.ts+++ b/studio/data/profile/types.ts@@ -1,12 +1,5 @@-export type Profile = {- id: number- auth0_id: string- primary_email: string- username: string- first_name: string- last_name: string- mobile: string | null- is_alpha_user: boolean- gotrue_id: string- free_project_limit: number-}+import { components } from 'data/api'++export type Profile = components['schemas']['ProfileResponse']++export type Feature = Profile['disabled_features'][number]diff --git a/studio/hooks/index.ts b/studio/hooks/index.tsindex 1f606782393..b8238bfbc3d 100644--- a/studio/hooks/index.ts+++ b/studio/hooks/index.ts@@ -1,6 +1,7 @@export * from './deprecated'export * from './misc/useCheckPermissions'export * from './misc/useImmutableValue'+export * from './misc/useIsFeatureEnabled'export * from './misc/useLocalStorage'export * from './misc/useSelectedOrganization'export * from './misc/useSelectedProject'diff --git a/studio/hooks/misc/useIsFeatureEnabled.ts b/studio/hooks/misc/useIsFeatureEnabled.tsnew file mode 100644index 00000000000..e3117e901ef--- /dev/null+++ b/studio/hooks/misc/useIsFeatureEnabled.ts@@ -0,0 +1,43 @@+import { Feature } from 'data/profile/types'+import { useProfile } from 'lib/profile'++function checkFeature(feature: Feature, features?: Feature[]) {+ return !features?.includes(feature) ?? true+}++type SnakeToCamelCase<S extends string> = S extends `${infer First}_${infer Rest}`+ ? `${First}${SnakeToCamelCase<Capitalize<Rest>>}`+ : S++type FeatureToCamelCase<S extends Feature> = S extends `${infer P}:${infer R}`+ ? `${SnakeToCamelCase<P>}${Capitalize<SnakeToCamelCase<R>>}`+ : SnakeToCamelCase<S>++function featureToCamelCase(feature: Feature) {+ return feature+ .replace(/:/g, '_')+ .split('_')+ .map((word, index) => (index === 0 ? word : word[0].toUpperCase() + word.slice(1)))+ .join('') as FeatureToCamelCase<typeof feature>+}++function useIsFeatureEnabled<T extends Feature[]>(+ features: T+): { [key in FeatureToCamelCase<T[number]>]: boolean }+function useIsFeatureEnabled(features: Feature): boolean+function useIsFeatureEnabled<T extends Feature | Feature[]>(features: T) {+ const { profile } = useProfile()++ if (Array.isArray(features)) {+ return Object.fromEntries(+ features.map((feature) => [+ featureToCamelCase(feature),+ checkFeature(feature, profile?.disabled_features),+ ])+ )+ }++ return checkFeature(features, profile?.disabled_features)+}++export { useIsFeatureEnabled }diff --git a/studio/lib/constants/index.ts b/studio/lib/constants/index.tsindex fdecba47324..5b60f30a67b 100644--- a/studio/lib/constants/index.ts+++ b/studio/lib/constants/index.ts@@ -104,3 +104,5 @@ export const OPT_IN_TAGS = {AI_SQL: 'AI_SQL_GENERATOR_OPT_IN',PREVIEW_BRANCHES: 'PREVIEW_BRANCHES_OPT_IN',}++export const GB = 1024 * 1024 * 1024diff --git a/studio/pages/account/me.tsx b/studio/pages/account/me.tsxindex da46d79dfd0..c360da2db8e 100644--- a/studio/pages/account/me.tsx+++ b/studio/pages/account/me.tsx@@ -11,7 +11,7 @@ import AlertError from 'components/ui/AlertError'import Panel from 'components/ui/Panel'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useProfileUpdateMutation } from 'data/profile/profile-update-mutation'-import { useStore } from 'hooks'+import { useIsFeatureEnabled, useStore } from 'hooks'import { useProfile } from 'lib/profile'import { NextPageWithLayout } from 'types'@@ -41,6 +41,9 @@ export default Userconst ProfileCard = observer(() => {const { ui } = useStore()++ const profileUpdateEnabled = useIsFeatureEnabled('profile:update')+const { profile, error, isLoading, isError, isSuccess } = useProfile()const { mutateAsync: updateProfile, isLoading: isUpdating } = useProfileUpdateMutation({onSuccess: () => {@@ -86,26 +89,28 @@ const ProfileCard = observer(() => {<section><AccountInformation profile={profile} /></section>- <section>- {/* @ts-ignore */}- <SchemaFormPanel- title="Profile"- schema={{- type: 'object',- required: [],- properties: {- first_name: { type: 'string' },- last_name: { type: 'string' },- },- }}- model={{- first_name: profile?.first_name ?? '',- last_name: profile?.last_name ?? '',- }}- onSubmit={updateUser}- loading={isUpdating}- />- </section>+ {profileUpdateEnabled && (+ <section>+ {/* @ts-ignore */}+ <SchemaFormPanel+ title="Profile"+ schema={{+ type: 'object',+ required: [],+ properties: {+ first_name: { type: 'string' },+ last_name: { type: 'string' },+ },+ }}+ model={{+ first_name: profile?.first_name ?? '',+ last_name: profile?.last_name ?? '',+ }}+ onSubmit={updateUser}+ loading={isUpdating}+ />+ </section>+ )}</>)}diff --git a/studio/pages/project/[ref]/reports/database.tsx b/studio/pages/project/[ref]/reports/database.tsxindex 77ac07a0262..dd30516d214 100644--- a/studio/pages/project/[ref]/reports/database.tsx+++ b/studio/pages/project/[ref]/reports/database.tsx@@ -1,11 +1,8 @@+import { useParams } from 'common/hooks'import dayjs from 'dayjs'import { observer } from 'mobx-react-lite'+import Link from 'next/link'import { useState } from 'react'--import { useParams } from 'common/hooks'-import { TIME_PERIODS_INFRA, USAGE_APPROACHING_THRESHOLD } from 'lib/constants'-import { formatBytes } from 'lib/helpers'-import { NextPageWithLayout } from 'types'import { Badge, Button, IconArrowRight, IconExternalLink } from 'ui'import { ReportsLayout } from 'components/layouts'@@ -18,7 +15,9 @@ import { useDatabaseSizeQuery } from 'data/database/database-size-query'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useProjectUsageQuery } from 'data/usage/project-usage-query'import { useSelectedOrganization } from 'hooks'-import Link from 'next/link'+import { GB, TIME_PERIODS_INFRA, USAGE_APPROACHING_THRESHOLD } from 'lib/constants'+import { formatBytes } from 'lib/helpers'+import { NextPageWithLayout } from 'types'const DatabaseReport: NextPageWithLayout = () => {return (@@ -70,6 +69,8 @@ const DatabaseUsage = observer(() => {// Can be null or undefined, thus !=const orgLevelBilling = selectedOrganization?.subscription_id != undefined+ const maxDiskVolumeSize =+ (usage?.disk_volume_size_gb ?? 0 > 0 ? usage?.disk_volume_size_gb ?? 0 : Infinity) * GBreturn (<>@@ -83,11 +84,7 @@ const DatabaseUsage = observer(() => {<SparkBartype="horizontal"value={databaseSize}- max={- usage?.disk_volume_size_gb ?? 0 > 0- ? usage?.disk_volume_size_gb ?? 0- : Infinity- }+ max={maxDiskVolumeSize}barClass={`${diskSizeUsageRatio >= 0.9 && !isPaidTier? 'bg-red-900'diff --git a/studio/pages/project/[ref]/reports/index.tsx b/studio/pages/project/[ref]/reports/index.tsxindex a853d628454..0b98abcba3e 100644--- a/studio/pages/project/[ref]/reports/index.tsx+++ b/studio/pages/project/[ref]/reports/index.tsx@@ -4,7 +4,6 @@ import { useEffect, useState } from 'react'import { useParams } from 'common/hooks'import { ReportsLayout } from 'components/layouts'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'import { createReport } from 'components/to-be-cleaned/Reports/Reports.utils'import Loading from 'components/ui/Loading'@@ -21,7 +20,6 @@ export const UserReportPage: NextPageWithLayout = () => {const { profile } = useProfile()const { ui } = useStore()- const { project } = useProjectContext()const contentStore = useProjectContentStore(ref)const canCreateReport = useCheckPermissions(PermissionAction.CREATE, 'user_content', {diff --git a/studio/pages/project/[ref]/settings/general.tsx b/studio/pages/project/[ref]/settings/general.tsxindex 9db217b9dff..dbdb6eeec4d 100644--- a/studio/pages/project/[ref]/settings/general.tsx+++ b/studio/pages/project/[ref]/settings/general.tsx@@ -7,7 +7,7 @@ import {} from 'components/interfaces/Settings/General'import { SettingsLayout } from 'components/layouts'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'-import { useFlag, useSelectedOrganization } from 'hooks'+import { useFlag, useIsFeatureEnabled, useSelectedOrganization } from 'hooks'import { NextPageWithLayout } from 'types'const ProjectSettings: NextPageWithLayout = () => {@@ -15,7 +15,9 @@ const ProjectSettings: NextPageWithLayout = () => {const organization = useSelectedOrganization()const isBranch = !!project?.parent_project_refconst isOrgBilling = !!organization?.subscription_id- const transferProjectEnabled = useFlag('transferProject')+ const transferProjectEnabledFlag = useFlag('transferProject')+ const { projectsTransfer: projectTransferEnabled, billingAll: billingEnabled } =+ useIsFeatureEnabled(['projects:transfer', 'billing:all'])// [Joshen] Opting for larger gap instead of gap-8 as compared to other pages for better grouping of contentreturn (@@ -24,8 +26,8 @@ const ProjectSettings: NextPageWithLayout = () => {{!isBranch ? (<>{!isOrgBilling && <Infrastructure />}- {<CustomDomainConfig />}- {transferProjectEnabled && <TransferProjectPanel />}+ {billingEnabled && <CustomDomainConfig />}+ {projectTransferEnabled && transferProjectEnabledFlag && <TransferProjectPanel />}<DeleteProjectPanel /></>) : null}diff --git a/studio/pages/projects.tsx b/studio/pages/projects.tsxindex d3092364ca5..935b05380d3 100644--- a/studio/pages/projects.tsx+++ b/studio/pages/projects.tsx@@ -1,3 +1,6 @@+import { useRouter } from 'next/router'+import { useEffect } from 'react'+import ProjectList from 'components/interfaces/Home/ProjectList'import { AccountLayout } from 'components/layouts'import OrganizationDropdown from 'components/to-be-cleaned/Dropdown/OrganizationDropdown'@@ -8,8 +11,6 @@ import { useAutoProjectsPrefetch } from 'data/projects/projects-query'import { useFlag } from 'hooks'import { IS_PLATFORM, LOCAL_STORAGE_KEYS } from 'lib/constants'import { useProfile } from 'lib/profile'-import { useRouter } from 'next/router'-import { useEffect } from 'react'import { NextPageWithLayout } from 'types'const ProjectsPage: NextPageWithLayout = () => {diff --git a/studio/tests/components/Home/ProjectUsage.test.js b/studio/tests/components/Home/ProjectUsage.test.jsindex d81320bb7dd..881919391c6 100644--- a/studio/tests/components/Home/ProjectUsage.test.js+++ b/studio/tests/components/Home/ProjectUsage.test.js@@ -34,6 +34,15 @@ ProjectUsage.mockImplementation((props) => {jest.mock('data/subscriptions/project-subscription-v2-query')import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'+import { useIsFeatureEnabled } from 'hooks'++beforeEach(() => {+ useIsFeatureEnabled.mockReset()+ useIsFeatureEnabled.mockReturnValue({+ projectAuthAll: true,+ projectStorageAll: true,+ })+})useProjectSubscriptionV2Query.mockReturnValue({data: undefined,