The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: partner billing (#18386)
Kevin Grünebergc4b20e114aa3
diff --git a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsxindex 45f63266149..cde2c2587d0 100644--- a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx+++ b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx@@ -43,8 +43,6 @@ const UsageSection = ({subscription,currentBillingCycleSelected,}: UsageSectionProps) => {- const billingEnabled = useIsFeatureEnabled('billing:all')-const { data: usage } = useProjectUsageQuery({ projectRef })const categoryMeta = USAGE_CATEGORIES.find((category) => category.key === categoryKey)@@ -267,15 +265,15 @@ const UsageSection = ({</p></div></div>- {billingEnabled && (- <Link- href={`/project/${projectRef}/settings/billing/subscription?panel=subscriptionPlan`}- >- <a>- <Button type="primary">Upgrade plan</Button>- </a>- </Link>- )}++ <Link+ href={`/project/${projectRef}/settings/billing/subscription?panel=subscriptionPlan`}+ passHref+ >+ <Button type="primary" asChild>+ <a>Upgrade plan</a>+ </Button>+ </Link></div></Panel.Content></Panel>diff --git a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsxindex 309246848ed..85af8b68d0a 100644--- a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx+++ b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx@@ -53,8 +53,6 @@ const AuditLogs = () => {projects: [], // project_ref[]})- const billingEnabled = useIsFeatureEnabled('billing:all')-const { data: projects } = useProjectsQuery()const { data: organizations } = useOrganizationsQuery()const { data: detailData } = useOrganizationDetailQuery({ slug })@@ -235,13 +233,11 @@ const AuditLogs = () => {</AlertDescription_Shadcn_></div>- {billingEnabled && (- <div className="flex items-center">- <Link href={`/org/${slug}/billing?panel=subscriptionPlan`}>- <Button type="primary">Upgrade subscription</Button>- </Link>- </div>- )}+ <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/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsxindex 02bc16683c0..4dc57851cdc 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx@@ -15,6 +15,7 @@ import { Alert, Button } from 'ui'import { BILLING_BREAKDOWN_METRICS } from './BillingBreakdown.constants'import BillingMetric from './BillingMetric'import UpcomingInvoice from './UpcomingInvoice'+import { useIsFeatureEnabled } from 'hooks'const BillingBreakdown = () => {const snap = useOrgSettingsPageStateSnapshot()@@ -34,6 +35,8 @@ const BillingBreakdown = () => {isSuccess: isSuccessSubscription,} = useOrgSubscriptionQuery({ orgSlug })+ const invoiceFeatureEnabled = useIsFeatureEnabled('billing:invoices')+const currentPlan = subscription?.planconst isUsageBillingEnabled = subscription?.usage_billing_enabledconst billingCycleStart = dayjs.unix(subscription?.current_period_start ?? 0).utc()@@ -145,17 +148,21 @@ const BillingBreakdown = () => {</div>)}- <p className="!mt-10 text-sm">Upcoming cost for next invoice</p>- <p className="text-sm text-foreground-light">- The following table shows your upcoming costs. Depending on your usage, the final- amount may vary. Next invoice on{' '}- <span className="text-foreground-light whitespace-nowrap">- {billingCycleEnd.format('MMM DD, YYYY')}- </span>- .- </p>+ {invoiceFeatureEnabled && (+ <>+ <p className="!mt-10 text-sm">Upcoming cost for next invoice</p>+ <p className="text-sm text-foreground-light">+ The following table shows your upcoming costs. Depending on your usage, the final+ amount may vary. Next invoice on{' '}+ <span className="text-foreground-light whitespace-nowrap">+ {billingCycleEnd.format('MMM DD, YYYY')}+ </span>+ .+ </p>- <UpcomingInvoice slug={orgSlug} />+ <UpcomingInvoice slug={orgSlug} />+ </>+ )}</>)}</ScaffoldSectionContent>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingSettings.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingSettings.tsxindex 56316baf487..a92669de10b 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingSettings.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingSettings.tsx@@ -7,8 +7,15 @@ import PaymentMethods from './PaymentMethods/PaymentMethods'import Subscription from './Subscription/Subscription'import TaxID from './TaxID/TaxID'import BillingBreakdown from './BillingBreakdown/BillingBreakdown'+import { useIsFeatureEnabled } from 'hooks'const BillingSettings = () => {+ const {+ billingAccountData: billingAccountDataEnabled,+ billingPaymentMethods: billingPaymentMethodsEnabled,+ billingCredits: billingCreditsEnabled,+ } = useIsFeatureEnabled(['billing:account_data', 'billing:payment_methods', 'billing:credits'])+return (<><ScaffoldContainer id="subscription">@@ -27,35 +34,47 @@ const BillingSettings = () => {<BillingBreakdown /></ScaffoldContainer>- <ScaffoldDivider />+ {billingCreditsEnabled && (+ <>+ <ScaffoldDivider />- <ScaffoldContainer id="credits-balance">- <CreditBalance />- </ScaffoldContainer>+ <ScaffoldContainer id="credits-balance">+ <CreditBalance />+ </ScaffoldContainer>+ </>+ )}- <ScaffoldDivider />+ {billingPaymentMethodsEnabled && (+ <>+ <ScaffoldDivider />- <ScaffoldContainer id="payment-methods">- <PaymentMethods />- </ScaffoldContainer>+ <ScaffoldContainer id="payment-methods">+ <PaymentMethods />+ </ScaffoldContainer>+ </>+ )}- <ScaffoldDivider />+ {billingAccountDataEnabled && (+ <>+ <ScaffoldDivider />- <ScaffoldContainer id="email">- <BillingEmail />- </ScaffoldContainer>+ <ScaffoldContainer id="email">+ <BillingEmail />+ </ScaffoldContainer>- <ScaffoldDivider />+ <ScaffoldDivider />- <ScaffoldContainer id="address">- <BillingAddress />- </ScaffoldContainer>+ <ScaffoldContainer id="address">+ <BillingAddress />+ </ScaffoldContainer>- <ScaffoldDivider />+ <ScaffoldDivider />- <ScaffoldContainer id="taxId">- <TaxID />- </ScaffoldContainer>+ <ScaffoldContainer id="taxId">+ <TaxID />+ </ScaffoldContainer>+ </>+ )}</>)}diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsxindex 26f2575fb0d..93787f3f8df 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx@@ -13,10 +13,20 @@ import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-queimport { useFlag } from 'hooks'import { BASE_PATH } from 'lib/constants'import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'-import { Alert, Button, IconExternalLink } from 'ui'+import {+ Alert,+ AlertDescription_Shadcn_,+ AlertTitle_Shadcn_,+ Alert_Shadcn_,+ Button,+ IconCalendar,+ IconExternalLink,+} from 'ui'import ProjectUpdateDisabledTooltip from '../../BillingSettings/ProjectUpdateDisabledTooltip'import SpendCapSidePanel from './SpendCapSidePanel'import Image from 'next/image'+import dayjs from 'dayjs'+import { useOrganizationBillingSubscriptionCancelSchedule } from 'data/subscriptions/org-subscription-cancel-schedule-mutation'export interface CostControlProps {}@@ -40,6 +50,9 @@ const CostControl = ({}: CostControlProps) => {const canChangeTier =!projectUpdateDisabled && !['team', 'enterprise'].includes(currentPlan?.id || '')+ const { mutate: cancelSubscriptionSchedule, isLoading: cancelSubscriptionScheduleLoading } =+ useOrganizationBillingSubscriptionCancelSchedule()+return (<><ScaffoldSection>@@ -52,7 +65,7 @@ const CostControl = ({}: CostControlProps) => {</p></div><div className="space-y-2">- <p className="text-sm text-foreground-light">More information</p>+ <p className="text-sm text-foreground-light m-0">More information</p><div><Link href="https://supabase.com/docs/guides/platform/spend-cap"><a target="_blank" rel="noreferrer">@@ -110,6 +123,36 @@ const CostControl = ({}: CostControlProps) => {</p>)}+ {/** Toggled on spend cap, scheduled change for end-of-cycle */}+ {subscription?.scheduled_plan_change?.target_plan === 'pro' &&+ subscription?.scheduled_plan_change?.usage_billing_enabled === false &&+ subscription?.plan.id === 'pro' && (+ <Alert_Shadcn_ className="mb-2" title="Scheduled downgrade">+ <IconCalendar className="h-4 w-4" />+ <AlertTitle_Shadcn_>Scheduled change</AlertTitle_Shadcn_>+ <AlertDescription_Shadcn_ className="flex flex-col gap-3">+ <div>+ Your spend cap will be enabled on{' '}+ {dayjs(subscription?.scheduled_plan_change?.at).format('MMMM D, YYYY')}. You+ will not be charged for any over-usage moving on. If you would like to keep+ the spend cap disabled and scale as you go, you may still cancel the+ scheduled change.+ </div>+ <div>+ <Button+ type="default"+ loading={cancelSubscriptionScheduleLoading}+ onClick={() => {+ return cancelSubscriptionSchedule({ slug: slug! })+ }}+ >+ Cancel+ </Button>+ </div>+ </AlertDescription_Shadcn_>+ </Alert_Shadcn_>+ )}+<div className="flex space-x-6"><div><div className="rounded-md bg-scale-100 dark:bg-scale-400 w-[160px] h-[96px] shadow">diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/DowngradeModal.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/DowngradeModal.tsxindex 279af3b3dce..707ab5c91c7 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/DowngradeModal.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/DowngradeModal.tsx@@ -113,6 +113,12 @@ const DowngradeModal = ({</div></li></ul>++ {subscription?.billing_via_partner === true && (+ <p className="mt-4 text-sm">+ Your organization will be downgraded at the end of your current billing cycle.+ </p>+ )}</div></Modal.Content></Modal>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsxindex 206c5a8cd94..363cbedf7c0 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx@@ -416,6 +416,12 @@ const PlanUpdateSidePanel = () => {This organization is billed through one of our partners and you will be charged bythem directly.</p>+ {subscriptionPreview?.billed_via_partner &&+ subscriptionPreview?.plan_change_type === 'downgrade' && (+ <p className="text-sm">+ Your organization will be downgraded at the end of your current billing cycle.+ </p>+ )}</div>)}</Modal.Content>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsxindex bfa1903d67f..896bfe87f2d 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx@@ -13,9 +13,18 @@ import SparkBar from 'components/ui/SparkBar'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useFlag } from 'hooks'import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'-import { Alert, Button, IconExternalLink } from 'ui'+import {+ Alert,+ AlertDescription_Shadcn_,+ AlertTitle_Shadcn_,+ Alert_Shadcn_,+ Button,+ IconCalendar,+ IconExternalLink,+} from 'ui'import ProjectUpdateDisabledTooltip from '../../BillingSettings/ProjectUpdateDisabledTooltip'import PlanUpdateSidePanel from './PlanUpdateSidePanel'+import { useOrganizationBillingSubscriptionCancelSchedule } from 'data/subscriptions/org-subscription-cancel-schedule-mutation'const Subscription = () => {const { slug } = useParams()@@ -30,6 +39,9 @@ const Subscription = () => {isSuccess,} = useOrgSubscriptionQuery({ orgSlug: slug })+ const { mutate: cancelSubscriptionSchedule, isLoading: cancelSubscriptionScheduleLoading } =+ useOrganizationBillingSubscriptionCancelSchedule()+const currentPlan = subscription?.planconst planName = currentPlan?.name ?? 'Unknown'const billingCycleStart = dayjs.unix(subscription?.current_period_start ?? 0).utc()@@ -78,6 +90,38 @@ const Subscription = () => {<p className="text-2xl text-brand uppercase">{currentPlan?.name ?? 'Unknown'}</p></div>+ {subscription?.scheduled_plan_change &&+ subscription?.scheduled_plan_change?.target_plan !== subscription.plan.id && (+ <Alert_Shadcn_ className="mb-2" title="Scheduled downgrade">+ <IconCalendar className="h-4 w-4" />+ <AlertTitle_Shadcn_>Scheduled downgrade</AlertTitle_Shadcn_>+ <AlertDescription_Shadcn_ className="flex flex-col gap-3">+ <div>+ Your organization will automatically be downgraded from the{' '}+ <span>{subscription.plan.name}</span> plan to the{' '}+ <span className="capitalize">+ {subscription?.scheduled_plan_change?.target_plan}+ </span>{' '}+ plan on{' '}+ {dayjs(subscription?.scheduled_plan_change?.at).format('MMMM D, YYYY')}. If+ you would like to stay on the <span>{subscription.plan.name}</span> plan,+ cancel the scheduled downgrade.+ </div>+ <div>+ <Button+ type="default"+ loading={cancelSubscriptionScheduleLoading}+ onClick={() => {+ return cancelSubscriptionSchedule({ slug: slug! })+ }}+ >+ Cancel downgrade+ </Button>+ </div>+ </AlertDescription_Shadcn_>+ </Alert_Shadcn_>+ )}+<div><ProjectUpdateDisabledTooltip projectUpdateDisabled={projectUpdateDisabled}><Buttondiff --git a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsxindex 6b36b0874d4..0eaf9d22677 100644--- a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx@@ -55,8 +55,6 @@ 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)@@ -152,15 +150,15 @@ const AttributeUsage = ({)}</div>- {billingEnabled && showUsageWarning && (- <Link href={upgradeUrl}>- <a className="pb-1">- <Button type="default" size="tiny">+ {showUsageWarning && (+ <Link href={upgradeUrl} passHref className="pb-1">+ <Button type="default" size="tiny" asChild>+ <a className="pb-1">{subscription?.plan?.id === 'free'? 'Upgrade plan': 'Change spend cap'}- </Button>- </a>+ </a>+ </Button></Link>)}</div>@@ -285,13 +283,12 @@ const AttributeUsage = ({</p></div></div>- {billingEnabled && (- <Link href={upgradeUrl}>- <a>- <Button type="primary">Upgrade plan</Button>- </a>- </Link>- )}++ <Link href={upgradeUrl} passHref>+ <Button type="primary" asChild>+ <a>Upgrade plan</a>+ </Button>+ </Link></div></Panel.Content></Panel>diff --git a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsxindex ffdb0959d20..6cfb75416de 100644--- a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx@@ -18,7 +18,18 @@ import { getCloudProviderArchitecture } from 'lib/cloudprovider-utils'import { BASE_PATH, PROJECT_STATUS } from 'lib/constants'import Telemetry from 'lib/telemetry'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'-import { Alert, Button, IconExternalLink, IconInfo, Modal, Radio, SidePanel } from 'ui'+import {+ Alert,+ AlertDescription_Shadcn_,+ Alert_Shadcn_,+ Button,+ IconAlertTriangle,+ IconExternalLink,+ IconInfo,+ Modal,+ Radio,+ SidePanel,+} from 'ui'import * as Tooltip from '@radix-ui/react-tooltip'import Image from 'next/image'@@ -227,7 +238,7 @@ const ComputeInstanceSidePanel = () => {)}}>- <Image+ <imgalt="Compute Instance"className={clsx('relative rounded-xl transition border bg-no-repeat bg-center bg-cover cursor-pointer w-[160px] h-[96px]',@@ -430,6 +441,18 @@ const ComputeInstanceSidePanel = () => {<p>You need to disable PITR before downgrading to Micro Compute.</p></Alert>)}++ {hasChanges &&+ subscription?.billing_via_partner &&+ subscription.scheduled_plan_change?.target_plan !== undefined && (+ <Alert_Shadcn_ variant={'warning'} className="mb-2">+ <IconAlertTriangle className="h-4 w-4" />+ <AlertDescription_Shadcn_>+ You have a scheduled subscription change that will be canceled if you change+ your PITR add on.+ </AlertDescription_Shadcn_>+ </Alert_Shadcn_>+ )}</div></SidePanel.Content></SidePanel>diff --git a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsxindex e340d0307c3..eb90a19fb93 100644--- a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx@@ -12,7 +12,16 @@ import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscrimport { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import Telemetry from 'lib/telemetry'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'-import { Alert, Button, IconExternalLink, Radio, SidePanel } from 'ui'+import {+ Alert,+ AlertDescription_Shadcn_,+ Alert_Shadcn_,+ Button,+ IconAlertTriangle,+ IconExternalLink,+ Radio,+ SidePanel,+} from 'ui'const CustomDomainSidePanel = () => {const { ui } = useStore()@@ -242,6 +251,17 @@ const CustomDomainSidePanel = () => {of a downgrade, you get credits for the remaining time.</p>)}++ {subscription?.billing_via_partner &&+ subscription.scheduled_plan_change?.target_plan !== undefined && (+ <Alert_Shadcn_ variant={'warning'} className="mb-2">+ <IconAlertTriangle className="h-4 w-4" />+ <AlertDescription_Shadcn_>+ You have a scheduled subscription change that will be canceled if you change+ your custom domain add on.+ </AlertDescription_Shadcn_>+ </Alert_Shadcn_>+ )}</>)}diff --git a/studio/components/layouts/OrganizationLayout.tsx b/studio/components/layouts/OrganizationLayout.tsxindex 2ff64e6395f..4ca49888fd8 100644--- a/studio/components/layouts/OrganizationLayout.tsx+++ b/studio/components/layouts/OrganizationLayout.tsx@@ -15,7 +15,7 @@ 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 invoicesEnabled = useIsFeatureEnabled('billing:invoices')const navLayoutV2 = useFlag('navigationLayoutV2')const showOAuthApps = useFlag('oauthApps')@@ -51,9 +51,9 @@ const OrganizationLayout = ({ children }: PropsWithChildren<{}>) => {{showIntegrationsV2 && (<Tabs.Panel id="integrations" label="Integrations" className="!my-0" />)}- {billingEnabled && <Tabs.Panel id="billing" label="Billing" className="!my-0" />}+ <Tabs.Panel id="billing" label="Billing" className="!my-0" />{isOrgBilling && <Tabs.Panel id="usage" label="Usage" className="!my-0" />}- {billingEnabled && <Tabs.Panel id="invoices" label="Invoices" className="!my-0" />}+ {invoicesEnabled && <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" />}{isOrgBilling && (diff --git a/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx b/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsxindex bcc257d76fa..b8762812a54 100644--- a/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx+++ b/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx@@ -36,19 +36,19 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutProprojectAuthAll: authEnabled,projectEdgeFunctionAll: edgeFunctionsEnabled,projectStorageAll: storageEnabled,- billingAll: billingEnabled,+ billingInvoices: invoicesEnabled,} = useIsFeatureEnabled(['project_auth:all','project_edge_function:all','project_storage:all',- 'billing:all',+ 'billing:invoices',])const menuRoutes = generateSettingsMenu(ref, project, organization, {auth: authEnabled,edgeFunctions: edgeFunctionsEnabled,storage: storageEnabled,- billing: billingEnabled,+ invoices: invoicesEnabled,})useEffect(() => {diff --git a/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts b/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsindex ba2245ed926..81fde950615 100644--- a/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts+++ b/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts@@ -6,7 +6,12 @@ export const generateSettingsMenu = (ref?: string,project?: ProjectBase,organization?: Organization,- features?: { auth?: boolean; edgeFunctions?: boolean; storage?: boolean; billing?: boolean }+ features?: {+ auth?: boolean+ edgeFunctions?: boolean+ storage?: boolean+ invoices?: boolean+ }): ProductMenuGroup[] => {const isProjectBuilding = project?.status === PROJECT_STATUS.COMING_UPconst buildingUrl = `/project/${ref}/building`@@ -16,7 +21,7 @@ export const generateSettingsMenu = (const authEnabled = features?.auth ?? trueconst edgeFunctionsEnabled = features?.edgeFunctions ?? trueconst storageEnabled = features?.storage ?? true- const billingEnabled = features?.billing ?? true+ const invoicesEnabled = features?.invoices ?? trueif (isOrgBilling) {return [@@ -45,16 +50,14 @@ export const generateSettingsMenu = (},]: []),- ...(billingEnabled- ? [- {- name: 'Add Ons',- key: 'addons',- url: `/project/${ref}/settings/addons`,- items: [],- },- ]- : []),+ ...[+ {+ name: 'Add Ons',+ key: 'addons',+ url: `/project/${ref}/settings/addons`,+ items: [],+ },+ ],{name: 'Vault',key: 'vault',@@ -113,18 +116,15 @@ export const generateSettingsMenu = (},{- title: billingEnabled ? 'Billing' : '',+ title: 'Billing',items: [- ...(billingEnabled- ? [- {- name: 'Subscription',- key: 'subscription',- url: `/org/${organization?.slug}/billing`,- items: [],- },- ]- : []),+ {+ name: 'Subscription',+ key: 'subscription',+ url: `/org/${organization?.slug}/billing`,+ items: [],+ },+{name: 'Usage',key: 'usage',@@ -199,27 +199,24 @@ export const generateSettingsMenu = (...(IS_PLATFORM? [{- title: billingEnabled ? 'Billing' : '',+ title: 'Billing',items: [- ...(billingEnabled- ? [- {- name: 'Subscription',- key: 'subscription',- url: isProjectBuilding- ? buildingUrl- : `/project/${ref}/settings/billing/subscription`,- items: [],- },- ]- : []),+ {+ 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: [],},- ...(billingEnabled+ ...(invoicesEnabled? [{name: 'Invoices',diff --git a/studio/components/ui/UpgradeToPro.tsx b/studio/components/ui/UpgradeToPro.tsxindex ba0047fc889..ccb8225ed5b 100644--- a/studio/components/ui/UpgradeToPro.tsx+++ b/studio/components/ui/UpgradeToPro.tsx@@ -22,8 +22,6 @@ const UpgradeToPro = ({secondaryText,addon,}: UpgradeToProProps) => {- const billingEnabled = useIsFeatureEnabled('billing:all')-const { data: subscription } = useProjectSubscriptionV2Query({ projectRef })const plan = subscription?.plan?.id@@ -33,8 +31,6 @@ 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 a8a8a3e2031..46dddab2c52 100644--- a/studio/data/api.d.ts+++ b/studio/data/api.d.ts@@ -229,13 +229,17 @@ export interface paths {'/platform/organizations/{slug}/billing/subscription': {/** Gets the current subscription */get: operations['SubscriptionController_getSubscription']- /** Previews subscription change */+ /** Updates subscription */put: operations['SubscriptionController_updateSubscription']}'/platform/organizations/{slug}/billing/subscription/preview': {- /** Updates subscription */+ /** Preview subscription changes */post: operations['SubscriptionController_previewSubscriptionChange']}+ '/platform/organizations/{slug}/billing/subscription/schedule': {+ /** Deletes any upcoming subscription schedule */+ delete: operations['SubscriptionController_deleteSubscriptionSchedule']+ }'/platform/organizations/{slug}/billing/plans': {/** Gets subscription plans */get: operations['OrgPlansController_getAvailablePlans']@@ -784,6 +788,10 @@ export interface paths {/** Gets github branches for a given repo */get: operations['GitHubBranchController_getBranches']}+ '/platform/integrations/github/branches/{organization_integration_id}/{repo_owner}/{repo_name}/{branch_name}': {+ /** Gets a specific github branch for a given repo */+ get: operations['GitHubBranchController_getBranchByName']+ }'/platform/integrations/github/pull-requests/{organization_integration_id}/{repo_owner}/{repo_name}/{target}': {/** Gets github pull requests for a given repo */get: operations['GitHubPullRequestController_getPullRequests']@@ -2255,6 +2263,7 @@ export interface components {address: stringbalance: numberinvoice_settings: Record<string, never>+ billing_via_partner: boolean}CustomerUpdateResponse: {id: string@@ -2687,6 +2696,12 @@ export interface components {expiry_month: numberexpiry_year: number}+ ScheduledPlanChange: {+ /** Format: date-time */+ at: string+ target_plan: Record<string, never>+ usage_billing_enabled: boolean+ }GetSubscriptionResponse: {billing_cycle_anchor: numbercurrent_period_end: number@@ -2700,6 +2715,11 @@ export interface components {payment_method_type: stringpayment_method_id?: stringpayment_method_card_details?: components['schemas']['PaymentMethodCardDetails']+ billing_via_partner: boolean+ /** @enum {string} */+ billing_partner: 'fly'+ scheduled_plan_change: components['schemas']['ScheduledPlanChange'] | null+ customer_balance: number}UpdateSubscriptionBody: {payment_method?: string@@ -3268,9 +3288,10 @@ export interface components {| 'project_edge_function:all'| 'profile:update'| 'billing:all'+ | 'billing:account_data'+ | 'billing:credits'| 'billing:invoices'| 'billing:payment_methods'- | 'billing:account_data')[]}UpdateProfileBody: {@@ -4463,7 +4484,7 @@ export interface components {}AttributeMapping: {keys: {- [key: string]: components['schemas']['AttributeValue']+ [key: string]: components['schemas']['AttributeValue'] | undefined}}CreateProviderBody: {@@ -4642,6 +4663,48 @@ export interface components {| 'UPGRADING'| 'PAUSING'}+ ResourceBillingItem: {+ /**+ * @description Non-Unique identifier of the item+ * @example usage_egress+ */+ itemIdentifier: string+ /**+ * @description Descriptive name of the billing item+ * @example Pro Plan+ */+ itemName: string+ /** @enum {string} */+ type: 'usage' | 'plan' | 'addon' | 'proration'+ /**+ * @description In case of a usage item, the free usage included in the customers plan+ * @example 100+ */+ freeUnitsInPlan?: number+ /**+ * @description In case of a usage item, the total usage+ * @example 100+ */+ usageTotal?: number+ /**+ * @description In case of a usage item, the billable usage amount, free usage has been deducted+ * @example 100+ */+ usageBillable?: number+ /**+ * @description Costs of the item in cents+ * @example 100+ */+ costs: number+ }+ ResourceBillingResponse: {+ /** @description Whether the user is exceeding the included quotas in the plan - only relevant for users on usage-capped plans. */+ exceedsPlanLimits: boolean+ /** @description Whether the user is can have over-usage, which will be billed - this will be false on usage-capped plans. */+ overusageAllowed: boolean+ extensionId: string+ items: components['schemas']['ResourceBillingItem'][]+ }ResourceProvisioningBody: {/** @description A UNIX epoch timestamp value */timestamp: number@@ -4707,17 +4770,13 @@ export interface components {pathItems: never}-export type $defs = Record<string, never>-export type external = Record<string, never>export interface operations {/** Redirects to dashboard homepage */LoginController_redirectToDashboardHomepage: {responses: {- 200: {- content: never- }+ 200: never}}/** Get notifications */@@ -4736,9 +4795,7 @@ export interface operations {}}/** @description Failed to retrieve notifications */- 500: {- content: never- }+ 500: never}}/** Delete notifications */@@ -4755,9 +4812,7 @@ export interface operations {}}/** @description Failed to delete notifications */- 500: {- content: never- }+ 500: never}}/** Update notifications */@@ -4774,9 +4829,7 @@ export interface operations {}}/** @description Failed to update notifications */- 500: {- content: never- }+ 500: never}}/** Reset password for email */@@ -4787,9 +4840,7 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never}}/** Send feedback */@@ -4806,9 +4857,7 @@ export interface operations {}}/** @description Failed to send feedback */- 500: {- content: never- }+ 500: never}}/** Send exit survey to HubSpot */@@ -4825,9 +4874,7 @@ export interface operations {}}/** @description Failed to send exit survey */- 500: {- content: never- }+ 500: never}}/** Sign up with email and password */@@ -4838,9 +4885,7 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never}}/** Gets project's status */@@ -4852,13 +4897,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to get project's status */- 500: {- content: never- }+ 500: never}}/**@@ -4889,9 +4930,7 @@ export interface operations {}}/** @description Failed to retrieve GoTrue config */- 500: {- content: never- }+ 500: never}}/** Updates GoTrue config */@@ -4914,9 +4953,7 @@ export interface operations {}}/** @description Failed to update GoTrue config */- 500: {- content: never- }+ 500: never}}/** Sends an invite to the given email */@@ -4938,13 +4975,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to send an invite to the given email */- 500: {- content: never- }+ 500: never}}/** Sends a magic link to the given email */@@ -4966,13 +4999,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to send a magic link to the given email */- 500: {- content: never- }+ 500: never}}/** Sends an OTP to the given phone number */@@ -4994,13 +5023,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to send an OTP to the given phone number */- 500: {- content: never- }+ 500: never}}/** Sends a recovery email to the given email */@@ -5022,13 +5047,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to send a recovery email to the given email */- 500: {- content: never- }+ 500: never}}/** Gets GoTrue template */@@ -5046,9 +5067,7 @@ export interface operations {}}/** @description Failed to retrieve GoTrue template */- 500: {- content: never- }+ 500: never}}/** Gets users */@@ -5071,13 +5090,9 @@ export interface operations {'application/json': components['schemas']['UsersResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve users */- 500: {- content: never- }+ 500: never}}/** Delete user with given ID */@@ -5099,13 +5114,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to delete user */- 500: {- content: never- }+ 500: never}}/** Delete all factors associated to a user */@@ -5123,13 +5134,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to delete factors */- 500: {- content: never- }+ 500: never}}/** Gets project backups */@@ -5147,9 +5154,7 @@ export interface operations {}}/** @description Failed to get project backups */- 500: {- content: never- }+ 500: never}}/** Download project backup */@@ -5172,9 +5177,7 @@ export interface operations {}}/** @description Failed to download project backup */- 500: {- content: never- }+ 500: never}}/** Restore project backup */@@ -5191,13 +5194,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to restore project backup */- 500: {- content: never- }+ 500: never}}/** Restore project with a physical backup */@@ -5214,13 +5213,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to restore project with physical backup */- 500: {- content: never- }+ 500: never}}/** Restore project to a previous point in time */@@ -5237,13 +5232,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to restore project to a previous point in time */- 500: {- content: never- }+ 500: never}}/** Gets hook logs with the given ID */@@ -5268,13 +5259,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to get hook logs with the given ID */- 500: {- content: never- }+ 500: never}}/** Enables Database Webhooks on the project */@@ -5286,16 +5273,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to enable Database Webhooks on the project */- 500: {- content: never- }+ 500: never}}/** Gets the status of owner reassignment */@@ -5313,9 +5294,7 @@ export interface operations {}}/** @description Failed to get status of owner reassignment */- 500: {- content: never- }+ 500: never}}/** Reassigns object owner from supabase_admin to temp */@@ -5335,13 +5314,9 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to reassign owner on the project */- 500: {- content: never- }+ 500: never}}/** Rollback object owner from temp to supabase_admin */@@ -5361,13 +5336,9 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to rollback owner on the project */- 500: {- content: never- }+ 500: never}}/** Reassigns object owner from temp to postgres */@@ -5387,13 +5358,9 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to reassign owner on the project */- 500: {- content: never- }+ 500: never}}/**@@ -5408,9 +5375,7 @@ export interface operations {}}/** @description Unexpected error listing organizations */- 500: {- content: never- }+ 500: never}}/** Creates an organization (v2) */@@ -5427,9 +5392,7 @@ export interface operations {}}/** @description Unexpected error creating an organization */- 500: {- content: never- }+ 500: never}}/** Deletes organization */@@ -5441,16 +5404,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to delete organization */- 500: {- content: never- }+ 500: never}}/** Updates organization */@@ -5473,9 +5430,7 @@ export interface operations {}}/** @description Failed to update organization */- 500: {- content: never- }+ 500: never}}/** Gets the Stripe customer */@@ -5493,9 +5448,7 @@ export interface operations {}}/** @description Failed to retrieve the Stripe customer */- 500: {- content: never- }+ 500: never}}/** Updates the Stripe customer */@@ -5512,13 +5465,9 @@ export interface operations {'application/json': components['schemas']['CustomerUpdateResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update the Stripe customer */- 500: {- content: never- }+ 500: never}}/** Gets the given organization's roles */@@ -5536,9 +5485,7 @@ export interface operations {}}/** @description Failed to retrieve the organization's roles */- 500: {- content: never- }+ 500: never}}/** Gets the given organization's tax IDs */@@ -5555,13 +5502,9 @@ export interface operations {'application/json': components['schemas']['TaxIdResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve the organization's tax IDs */- 500: {- content: never- }+ 500: never}}/** Creates a tax ID for the given organization */@@ -5583,13 +5526,9 @@ export interface operations {'application/json': components['schemas']['CreateTaxIdResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to create the tax ID */- 500: {- content: never- }+ 500: never}}/** Delete the tax ID with the given ID */@@ -5611,13 +5550,9 @@ export interface operations {'application/json': components['schemas']['DeleteTaxIdResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete the tax ID */- 500: {- content: never- }+ 500: never}}/** Transfers the organization to the given member */@@ -5628,13 +5563,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to update owner */- 500: {- content: never- }+ 500: never}}/** Gets daily organization stats */@@ -5682,9 +5613,7 @@ export interface operations {}}/** @description Failed to get daily organization stats */- 500: {- content: never- }+ 500: never}}/** Gets usage stats */@@ -5702,41 +5631,7 @@ export interface operations {}}/** @description Failed to get usage stats */- 500: {- content: never- }- }- }- /** Get standard security questionnaire URL */- OrgDocumentsController_getStandardSecurityQuestionnaireUrl: {- parameters: {- path: {- /** @description Organization slug */- slug: string- }- }- responses: {- 200: {- content: {- 'application/json': components['schemas']['OrgDocumentUrlResponse']- }- }- }- }- /** Get SOC2 Type 2 report URL */- OrgDocumentsController_getSoc2Type2ReportUrl: {- parameters: {- path: {- /** @description Organization slug */- slug: string- }- }- responses: {- 200: {- content: {- 'application/json': components['schemas']['OrgDocumentUrlResponse']- }- }+ 500: never}}/** Get standard security questionnaire URL */@@ -5792,9 +5687,7 @@ export interface operations {}}/** @description Failed to get an organization's audit logs */- 500: {- content: never- }+ 500: never}}/** Gets invited users */@@ -5812,9 +5705,7 @@ export interface operations {}}/** @description Failed to get invited users */- 500: {- content: never- }+ 500: never}}/** Invites user */@@ -5837,9 +5728,7 @@ export interface operations {}}/** @description Failed to invite user */- 500: {- content: never- }+ 500: never}}/** Delete invited user */@@ -5854,13 +5743,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to delete invited user */- 500: {- content: never- }+ 500: never}}/** Gets invite */@@ -5881,9 +5766,7 @@ export interface operations {}}/** @description Failed to get invite */- 500: {- content: never- }+ 500: never}}/** Joins organization */@@ -5904,9 +5787,7 @@ export interface operations {}}/** @description Failed to join organization */- 500: {- content: never- }+ 500: never}}/** Leaves the given organization */@@ -5924,9 +5805,7 @@ export interface operations {}}/** @description Failed to leave organization */- 500: {- content: never- }+ 500: never}}/** Leaves the given organization */@@ -5949,9 +5828,7 @@ export interface operations {}}/** @description Failed to leave organization */- 500: {- content: never- }+ 500: never}}/** Gets organization's members */@@ -5969,9 +5846,7 @@ export interface operations {}}/** @description Failed to retrieve organization's members */- 500: {- content: never- }+ 500: never}}/** Removes organization member */@@ -5984,13 +5859,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to remove organization member */- 500: {- content: never- }+ 500: never}}/** Updates organization member */@@ -6008,13 +5879,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to update organization member */- 500: {- content: never- }+ 500: never}}/** Gets organization members who have reached their free project limit */@@ -6032,9 +5899,7 @@ export interface operations {}}/** @description Failed to retrieve organization members who have reached their free project limit */- 500: {- content: never- }+ 500: never}}/** Gets Stripe payment methods for the given organization */@@ -6051,13 +5916,9 @@ export interface operations {'application/json': components['schemas']['PaymentsResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to get Stripe payment methods */- 500: {- content: never- }+ 500: never}}/** Detach Stripe payment method with the given card ID */@@ -6073,13 +5934,9 @@ export interface operations {'application/json': components['schemas']['DetachPaymentResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to detach Stripe payment method */- 500: {- content: never- }+ 500: never}}/** Sets up a payment method */@@ -6091,9 +5948,7 @@ export interface operations {}}/** @description Failed to set up a payment method */- 500: {- content: never- }+ 500: never}}/** Gets the current subscription */@@ -6110,13 +5965,9 @@ export interface operations {'application/json': components['schemas']['GetSubscriptionResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve subscription */- 500: {- content: never- }+ 500: never}}/** Updates subscription */@@ -6133,19 +5984,13 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to update subscription */- 500: {- content: never- }+ 500: never}}- /** Updates subscription */+ /** Preview subscription changes */SubscriptionController_previewSubscriptionChange: {parameters: {path: {@@ -6159,17 +6004,26 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }- /** @description Failed to update subscription */- 500: {- content: never+ 201: never+ 403: never+ /** @description Failed to preview subscription changes */+ 500: never+ }+ }+ /** Deletes any upcoming subscription schedule */+ SubscriptionController_deleteSubscriptionSchedule: {+ parameters: {+ path: {+ /** @description Organization slug */+ slug: string}}+ responses: {+ 200: never+ 403: never+ /** @description Failed to update subscription change */+ 500: never+ }}/** Gets subscription plans */OrgPlansController_getAvailablePlans: {@@ -6185,13 +6039,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to get subscription plans */- 500: {- content: never- }+ 500: never}}/** Gets the upcoming invoice */@@ -6208,13 +6058,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve upcoming invoice */- 500: {- content: never- }+ 500: never}}/** Retrieve column privileges */@@ -6234,13 +6080,9 @@ export interface operations {'application/json': components['schemas']['PostgresColumnPrivileges'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve column privileges */- 500: {- content: never- }+ 500: never}}/** Grant column privileges */@@ -6265,13 +6107,9 @@ export interface operations {'application/json': components['schemas']['PostgresColumnPrivileges'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to grant column privileges */- 500: {- content: never- }+ 500: never}}/** Revoke column privileges */@@ -6296,13 +6134,9 @@ export interface operations {'application/json': components['schemas']['PostgresColumnPrivileges'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to revoke column privileges */- 500: {- content: never- }+ 500: never}}/** Gets project pg.columns */@@ -6326,13 +6160,9 @@ export interface operations {'application/json': components['schemas']['PostgresColumn'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.columns */- 500: {- content: never- }+ 500: never}}/** Creates project pg.column */@@ -6357,13 +6187,9 @@ export interface operations {'application/json': components['schemas']['PostgresColumn']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.column */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.column with the given ID */@@ -6388,13 +6214,9 @@ export interface operations {'application/json': components['schemas']['PostgresColumn']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.column with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.column with the given ID */@@ -6423,13 +6245,9 @@ export interface operations {'application/json': components['schemas']['PostgresColumn']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.column with the given ID */- 500: {- content: never- }+ 500: never}}/** Gets project pg.extensions */@@ -6449,13 +6267,9 @@ export interface operations {'application/json': components['schemas']['PostgresExtension'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.extensions */- 500: {- content: never- }+ 500: never}}/** Creates project pg.extension */@@ -6480,13 +6294,9 @@ export interface operations {'application/json': components['schemas']['PostgresExtension']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.extension */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.extension with the given ID */@@ -6510,13 +6320,9 @@ export interface operations {'application/json': components['schemas']['PostgresExtension']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.extension with the given ID */- 500: {- content: never- }+ 500: never}}/** Retrieve database foreign tables */@@ -6542,13 +6348,9 @@ export interface operations {'application/json': components['schemas']['PostgresForeignTable'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve database foreign tables */- 500: {- content: never- }+ 500: never}}/**@@ -6568,13 +6370,9 @@ export interface operations {'application/json': components['schemas']['FunctionResponse'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's functions */- 500: {- content: never- }+ 500: never}}/**@@ -6608,13 +6406,9 @@ export interface operations {'application/json': components['schemas']['FunctionResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to create project's function */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.function with the given ID */@@ -6638,13 +6432,9 @@ export interface operations {'application/json': components['schemas']['PostgresFunction']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.function with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.function with the given ID */@@ -6673,13 +6463,9 @@ export interface operations {'application/json': components['schemas']['PostgresFunction']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.function with the given ID */- 500: {- content: never- }+ 500: never}}/** Retrieve database materialized views */@@ -6707,13 +6493,9 @@ export interface operations {'application/json': components['schemas']['PostgresMaterializedView'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve database materialized views */- 500: {- content: never- }+ 500: never}}/** Gets project pg.policies */@@ -6737,13 +6519,9 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.policies */- 500: {- content: never- }+ 500: never}}/** Creates project pg.policy */@@ -6768,13 +6546,9 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.policy */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.policy with the given ID */@@ -6798,13 +6572,9 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.policy with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.policy with the given ID */@@ -6833,13 +6603,9 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.policy with the given ID */- 500: {- content: never- }+ 500: never}}/** Gets project pg.publications */@@ -6859,13 +6625,9 @@ export interface operations {'application/json': components['schemas']['PostgresPublication'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.publications */- 500: {- content: never- }+ 500: never}}/** Gets project pg.publications */@@ -6890,13 +6652,9 @@ export interface operations {'application/json': components['schemas']['PostgresPublication']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.publication */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.publication with the given ID */@@ -6920,13 +6678,9 @@ export interface operations {'application/json': components['schemas']['PostgresPublication']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.publication with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.publication with the given ID */@@ -6955,13 +6709,9 @@ export interface operations {'application/json': components['schemas']['PostgresPublication']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.publication with the given ID */- 500: {- content: never- }+ 500: never}}/** Run sql query */@@ -6986,13 +6736,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to run sql query */- 500: {- content: never- }+ 500: never}}/** Format sql query */@@ -7015,9 +6761,7 @@ export interface operations {}}/** @description Failed to format sql query */- 500: {- content: never- }+ 500: never}}/** Validate sql query */@@ -7040,9 +6784,7 @@ export interface operations {}}/** @description Failed to validate sql query */- 500: {- content: never- }+ 500: never}}/** Gets project pg.roles */@@ -7062,13 +6804,9 @@ export interface operations {'application/json': components['schemas']['PostgresRole'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.roles */- 500: {- content: never- }+ 500: never}}/** Creates project pg.role */@@ -7093,13 +6831,9 @@ export interface operations {'application/json': components['schemas']['PostgresRole']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.role */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.role with the given ID */@@ -7123,13 +6857,9 @@ export interface operations {'application/json': components['schemas']['PostgresRole']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.role with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.role with the given ID */@@ -7158,13 +6888,9 @@ export interface operations {'application/json': components['schemas']['PostgresRole']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.role with the given ID */- 500: {- content: never- }+ 500: never}}/** Gets project pg.schemas */@@ -7184,13 +6910,9 @@ export interface operations {'application/json': components['schemas']['PostgresSchema'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.schemas */- 500: {- content: never- }+ 500: never}}/** Creates project pg.schema */@@ -7215,13 +6937,9 @@ export interface operations {'application/json': components['schemas']['PostgresSchema']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.schema */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.schema with the given ID */@@ -7245,13 +6963,9 @@ export interface operations {'application/json': components['schemas']['PostgresSchema']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.schema with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.schema with the given ID */@@ -7280,13 +6994,9 @@ export interface operations {'application/json': components['schemas']['PostgresSchema']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.schema with the given ID */- 500: {- content: never- }+ 500: never}}/** Searches project pg.tables. Return maximum 50 results. */@@ -7311,13 +7021,9 @@ export interface operations {'application/json': components['schemas']['Table'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to search pg.tables */- 500: {- content: never- }+ 500: never}}/** Searches project pg.columns. Return maximum 50 results. */@@ -7342,13 +7048,9 @@ export interface operations {'application/json': components['schemas']['Column'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to search pg.columns */- 500: {- content: never- }+ 500: never}}/** Retrieve table privileges */@@ -7368,13 +7070,9 @@ export interface operations {'application/json': components['schemas']['PostgresTablePrivileges'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve table privileges */- 500: {- content: never- }+ 500: never}}/** Grant table privileges */@@ -7399,13 +7097,9 @@ export interface operations {'application/json': components['schemas']['PostgresTablePrivileges'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to grant table privileges */- 500: {- content: never- }+ 500: never}}/** Revoke table privileges */@@ -7430,13 +7124,9 @@ export interface operations {'application/json': components['schemas']['PostgresTablePrivileges'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to revoke table privileges */- 500: {- content: never- }+ 500: never}}/** Gets project pg.tables or pg.table with the given ID */@@ -7466,13 +7156,9 @@ export interface operations {'application/json': components['schemas']['PostgresTable'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.tables or pg.table with the given ID */- 500: {- content: never- }+ 500: never}}/** Creates project pg.table */@@ -7497,13 +7183,9 @@ export interface operations {'application/json': components['schemas']['PostgresTable']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.table */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.table with the given ID */@@ -7528,13 +7210,9 @@ export interface operations {'application/json': components['schemas']['PostgresTable']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.table with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.table with the given ID */@@ -7563,13 +7241,9 @@ export interface operations {'application/json': components['schemas']['PostgresTable']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.table with the given ID */- 500: {- content: never- }+ 500: never}}/** Gets project pg.triggers */@@ -7593,13 +7267,9 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.triggers */- 500: {- content: never- }+ 500: never}}/** Creates project pg.trigger */@@ -7624,13 +7294,9 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger']}}- 403: {- content: never- }+ 403: never/** @description Failed to create pg.trigger */- 500: {- content: never- }+ 500: never}}/** Deletes project pg.trigger with the given ID */@@ -7654,13 +7320,9 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger']}}- 403: {- content: never- }+ 403: never/** @description Failed to delete pg.trigger with the given ID */- 500: {- content: never- }+ 500: never}}/** Updates project pg.trigger with the given ID */@@ -7689,13 +7351,9 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger']}}- 403: {- content: never- }+ 403: never/** @description Failed to update pg.trigger with the given ID */- 500: {- content: never- }+ 500: never}}/** Gets project pg.types */@@ -7719,13 +7377,9 @@ export interface operations {'application/json': components['schemas']['PostgresType'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get pg.types */- 500: {- content: never- }+ 500: never}}/** Retrieve database views */@@ -7754,13 +7408,9 @@ export interface operations {'application/json': components['schemas']['PostgresView'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve database views */- 500: {- content: never- }+ 500: never}}/** Gets the user's access tokens */@@ -7772,9 +7422,7 @@ export interface operations {}}/** @description Failed to get user's access tokens */- 500: {- content: never- }+ 500: never}}/** Creates a new access token */@@ -7791,9 +7439,7 @@ export interface operations {}}/** @description Failed to create access token */- 500: {- content: never- }+ 500: never}}/** Gets the access token with the given ID */@@ -7811,9 +7457,7 @@ export interface operations {}}/** @description Failed to get access token */- 500: {- content: never- }+ 500: never}}/** Deletes the access token with the given ID */@@ -7831,9 +7475,7 @@ export interface operations {}}/** @description Failed to delete access token */- 500: {- content: never- }+ 500: never}}/** Gets a user's audit logs */@@ -7853,9 +7495,7 @@ export interface operations {}}/** @description Failed to get a user's audit logs */- 500: {- content: never- }+ 500: never}}/** Search profiles by username, email with the given keywords */@@ -7872,9 +7512,7 @@ export interface operations {}}/** @description Failed to search profiles with the given keywords */- 500: {- content: never- }+ 500: never}}/** Gets the user's subscription statistics */@@ -7886,9 +7524,7 @@ export interface operations {}}/** @description Failed to retrieve user's subscription statistics */- 500: {- content: never- }+ 500: never}}/** Check password strength */@@ -7905,9 +7541,7 @@ export interface operations {}}/** @description Failed to check password strength */- 500: {- content: never- }+ 500: never}}/** Gets all the user's permissions */@@ -7919,9 +7553,7 @@ export interface operations {}}/** @description Failed to retrieve permissions */- 500: {- content: never- }+ 500: never}}/** Gets the user's profile */@@ -7933,9 +7565,7 @@ export interface operations {}}/** @description Failed to retrieve user's profile */- 500: {- content: never- }+ 500: never}}/** Creates user's profile */@@ -7947,25 +7577,17 @@ export interface operations {}}/** @description Failed to create user's profile */- 500: {- content: never- }+ 500: never}}/** Deletes user's profile */ProfileController_deleteProfile: {responses: {- 200: {- content: never- }+ 200: never/** @description Forbidden action */- 403: {- content: never- }+ 403: never/** @description Failed to delete user's profile */- 500: {- content: never- }+ 500: never}}/** Updates user's profile */@@ -7982,9 +7604,7 @@ export interface operations {}}/** @description Failed to update user's profile */- 500: {- content: never- }+ 500: never}}/**@@ -8035,9 +7655,7 @@ export interface operations {}}/** @description Failed to retrieve project's content */- 500: {- content: never- }+ 500: never}}/** Updates project's content */@@ -8060,9 +7678,7 @@ export interface operations {}}/** @description Failed to update project's content */- 500: {- content: never- }+ 500: never}}/** Creates project's content */@@ -8085,9 +7701,7 @@ export interface operations {}}/** @description Failed to create project's content */- 500: {- content: never- }+ 500: never}}/** Deletes project's content */@@ -8104,9 +7718,7 @@ export interface operations {}}/** @description Failed to delete project's content */- 500: {- content: never- }+ 500: never}}/** Updates project's content */@@ -8128,9 +7740,7 @@ export interface operations {}}/** @description Failed to update project's content */- 500: {- content: never- }+ 500: never}}/** Gets daily project stats */@@ -8154,9 +7764,7 @@ export interface operations {}}/** @description Failed to get daily project stats */- 500: {- content: never- }+ 500: never}}/** Updates the database password */@@ -8173,16 +7781,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to update database password */- 500: {- content: never- }+ 500: never}}/** Gets project health check */@@ -8194,16 +7796,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to get project health check */- 500: {- content: never- }+ 500: never}}/** Gets project OpenApi */@@ -8220,13 +7816,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to get project OpenApi */- 500: {- content: never- }+ 500: never}}/** Queries project Graphql */@@ -8251,13 +7843,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to query project Graphql */- 500: {- content: never- }+ 500: never}}/** Gets project's usage metrics */@@ -8288,9 +7876,7 @@ export interface operations {}}/** @description Failed to get project's usage metrics */- 500: {- content: never- }+ 500: never}}/** Gets project's invoices */@@ -8312,9 +7898,7 @@ export interface operations {}}/** @description Failed to get project's invoices */- 500: {- content: never- }+ 500: never}}/** Gets project's invoice count */@@ -8326,13 +7910,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to get project's invoice count */- 500: {- content: never- }+ 500: never}}/** Pauses the project */@@ -8344,13 +7924,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to pause the project */- 500: {- content: never- }+ 500: never}}/** Resize database disk */@@ -8367,13 +7943,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to resize database disk */- 500: {- content: never- }+ 500: never}}/** Restarts project */@@ -8385,16 +7957,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to restart project */- 500: {- content: never- }+ 500: never}}/** Gets a specific project that belongs to the authenticated user */@@ -8427,9 +7993,7 @@ export interface operations {'application/json': components['schemas']['ProjectRefResponse']}}- 403: {- content: never- }+ 403: never}}/** Updates the given project */@@ -8451,13 +8015,9 @@ export interface operations {'application/json': components['schemas']['ProjectRefResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project */- 500: {- content: never- }+ 500: never}}/** Restores project */@@ -8475,9 +8035,7 @@ export interface operations {}}/** @description Failed to restore project */- 500: {- content: never- }+ 500: never}}/** Restarts given services */@@ -8494,13 +8052,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to restart given services */- 500: {- content: never- }+ 500: never}}/** Gets project's settings */@@ -8518,9 +8072,7 @@ export interface operations {}}/** @description Failed to retrieve project's settings */- 500: {- content: never- }+ 500: never}}/**@@ -8541,16 +8093,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to update project */- 500: {- content: never- }+ 500: never}}/** Gets project's usage */@@ -8568,9 +8114,7 @@ export interface operations {}}/** @description Failed to retrieve project's usage */- 500: {- content: never- }+ 500: never}}/** Previews transfering a project to a different organizations, shows eligibility and impact. */@@ -8592,9 +8136,7 @@ export interface operations {'application/json': components['schemas']['PreviewProjectTransferResponse']}}- 403: {- content: never- }+ 403: never}}/** Transfers a project to a different organization. */@@ -8611,12 +8153,8 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never}}/** Gets a project's function invocation statistics */@@ -8637,13 +8175,9 @@ export interface operations {'application/json': components['schemas']['AnalyticsResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to get project's function invocation statistics */- 500: {- content: never- }+ 500: never}}/** Gets project's logs */@@ -8668,13 +8202,9 @@ export interface operations {'application/json': components['schemas']['AnalyticsResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to get project's logs */- 500: {- content: never- }+ 500: never}}/** Gets project's usage api counts */@@ -8694,13 +8224,9 @@ export interface operations {'application/json': components['schemas']['AnalyticsResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to get project's usage api counts */- 500: {- content: never- }+ 500: never}}/** Gets project's pgbouncer config */@@ -8718,9 +8244,7 @@ export interface operations {}}/** @description Failed to retrieve project's pgbouncer config */- 500: {- content: never- }+ 500: never}}/** Updates project's pgbouncer config */@@ -8742,13 +8266,9 @@ export interface operations {'application/json': components['schemas']['UpdatePoolingConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project's pgbouncer config */- 500: {- content: never- }+ 500: never}}/** Gets project's postgrest config */@@ -8765,13 +8285,9 @@ export interface operations {'application/json': components['schemas']['PostgrestConfigWithJWTSecretResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's postgrest config */- 500: {- content: never- }+ 500: never}}/** Updates project's postgrest config */@@ -8793,13 +8309,9 @@ export interface operations {'application/json': components['schemas']['PostgrestConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project's postgrest config */- 500: {- content: never- }+ 500: never}}/** Gets project's Postgres config */@@ -8817,9 +8329,7 @@ export interface operations {}}/** @description Failed to retrieve project's Postgres config */- 500: {- content: never- }+ 500: never}}/** Updates project's Postgres config */@@ -8842,9 +8352,7 @@ export interface operations {}}/** @description Failed to update project's Postgres config */- 500: {- content: never- }+ 500: never}}/** Updates project's secrets config */@@ -8867,9 +8375,7 @@ export interface operations {}}/** @description Failed to update project's secrets config */- 500: {- content: never- }+ 500: never}}/** Gets project's storage config */@@ -8886,13 +8392,9 @@ export interface operations {'application/json': components['schemas']['StorageConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's storage config */- 500: {- content: never- }+ 500: never}}/** Updates project's storage config */@@ -8914,13 +8416,9 @@ export interface operations {'application/json': components['schemas']['UpdateStorageConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project's storage config */- 500: {- content: never- }+ 500: never}}/** Gets project addons */@@ -8937,13 +8435,9 @@ export interface operations {'application/json': components['schemas']['ProjectAddonsResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to get project addons */- 500: {- content: never- }+ 500: never}}/** Updates project addon */@@ -8960,16 +8454,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to update project addon */- 500: {- content: never- }+ 500: never}}/** Removes project addon */@@ -8982,16 +8470,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to remove project addon */- 500: {- content: never- }+ 500: never}}/** Gets subscription plans */@@ -9008,13 +8490,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to get subscription plans */- 500: {- content: never- }+ 500: never}}/** Gets the upcoming invoice */@@ -9031,13 +8509,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve upcoming invoice */- 500: {- content: never- }+ 500: never}}/**@@ -9058,9 +8532,7 @@ export interface operations {}}/** @description Failed to retrieve project's api info */- 500: {- content: never- }+ 500: never}}/** Gets the last JWT secret update status */@@ -9078,9 +8550,7 @@ export interface operations {}}/** @description Failed to retrieve JWT secret update status */- 500: {- content: never- }+ 500: never}}/** Gets bucket */@@ -9099,13 +8569,9 @@ export interface operations {'application/json': components['schemas']['StorageBucket']}}- 403: {- content: never- }+ 403: never/** @description Failed to get bucket */- 500: {- content: never- }+ 500: never}}/** Deletes bucket */@@ -9119,16 +8585,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to delete bucket */- 500: {- content: never- }+ 500: never}}/** Updates bucket */@@ -9147,16 +8607,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to update bucket */- 500: {- content: never- }+ 500: never}}/** Removes all objects inside a single bucket. */@@ -9170,16 +8624,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to empty bucket */- 500: {- content: never- }+ 500: never}}/** Gets list of buckets */@@ -9196,13 +8644,9 @@ export interface operations {'application/json': components['schemas']['StorageBucket'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get list of buckets */- 500: {- content: never- }+ 500: never}}/** Create bucket */@@ -9224,13 +8668,9 @@ export interface operations {'application/json': string}}- 403: {- content: never- }+ 403: never/** @description Failed to create bucket */- 500: {- content: never- }+ 500: never}}/** Gets list of objects with the given bucket */@@ -9254,13 +8694,9 @@ export interface operations {'application/json': components['schemas']['StorageObject'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get list of objects with the given bucket */- 500: {- content: never- }+ 500: never}}/** Creates URL for an asset in a public bucket */@@ -9284,13 +8720,9 @@ export interface operations {'application/json': components['schemas']['PublicUrlResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to create public URL */- 500: {- content: never- }+ 500: never}}/** Downloads a file from a private bucket */@@ -9309,16 +8741,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to download the file */- 500: {- content: never- }+ 500: never}}/** Creates a signed URL */@@ -9342,13 +8768,9 @@ export interface operations {'application/json': components['schemas']['SignedUrlResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to create a signed URL */- 500: {- content: never- }+ 500: never}}/** Gets multiple signed URLs */@@ -9372,13 +8794,9 @@ export interface operations {'application/json': components['schemas']['SignedUrlsResponse'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to get multiple signed URLs */- 500: {- content: never- }+ 500: never}}/** Copys object */@@ -9402,13 +8820,9 @@ export interface operations {'application/json': components['schemas']['CopyObjectResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to copy object */- 500: {- content: never- }+ 500: never}}/** Move object */@@ -9427,16 +8841,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to move object */- 500: {- content: never- }+ 500: never}}/** Deletes objects */@@ -9455,16 +8863,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to delete objects */- 500: {- content: never- }+ 500: never}}/** Gets the total count of invoices for the given customer */@@ -9476,17 +8878,9 @@ export interface operations {}}responses: {- 200: {- headers: {- /** @description total count value */- 'X-Total-Count'?: unknown- }- content: never- }+ 200: never/** @description Failed to retrieve the total count of invoices */- 500: {- content: never- }+ 500: never}}/** Gets information about overdue invoices that relate to the authenticated user */@@ -9513,9 +8907,7 @@ export interface operations {}}/** @description Failed to retrieve invoice */- 500: {- content: never- }+ 500: never}}/** Sends analytics server event */@@ -9526,13 +8918,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to send analytics server event */- 500: {- content: never- }+ 500: never}}/** Send analytics identify event */@@ -9543,13 +8931,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to send analytics identify event */- 500: {- content: never- }+ 500: never}}/** Send server page event */@@ -9560,13 +8944,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to send server page event */- 500: {- content: never- }+ 500: never}}/** Sends mixpanel server activity */@@ -9577,13 +8957,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to send mixpanel server activity */- 500: {- content: never- }+ 500: never}}/** Send mixpanel page event */@@ -9594,13 +8970,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to send mixpanel page event */- 500: {- content: never- }+ 500: never}}/** Gets the Vercel access token for the given code */@@ -9611,13 +8983,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to get Vercel access token */- 500: {- content: never- }+ 500: never}}/** Gets the project with the given ID if provided, otherwise gets the list of projects */@@ -9638,9 +9006,7 @@ export interface operations {}}/** @description Failed to get project(s) */- 500: {- content: never- }+ 500: never}}/** Gets the environment variables for the given project ID on behalf of the given team ID */@@ -9661,9 +9027,7 @@ export interface operations {}}/** @description Failed to get Vercel environment variables */- 500: {- content: never- }+ 500: never}}/** Creates the environment variable for the given project ID on behalf of the given team ID */@@ -9689,9 +9053,7 @@ export interface operations {}}/** @description Failed to get the environment variables */- 500: {- content: never- }+ 500: never}}/** Gets user's integrations */@@ -9709,9 +9071,7 @@ export interface operations {}}/** @description Failed to get user's integrations */- 500: {- content: never- }+ 500: never}}/** Gets integration with the given organization slug */@@ -9728,9 +9088,7 @@ export interface operations {}}/** @description Failed to get integration with the given organization slug */- 500: {- content: never- }+ 500: never}}/**@@ -9744,13 +9102,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to create vercel integration */- 500: {- content: never- }+ 500: never}}/** Removes Vercel organization integration with the given id */@@ -9761,13 +9115,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to remove Vercel organization integration with the given id */- 500: {- content: never- }+ 500: never}}/** Gets vercel projects with the given organization integration id */@@ -9789,9 +9139,7 @@ export interface operations {}}/** @description Failed to get vercel projects with the given organization integration id */- 500: {- content: never- }+ 500: never}}/** Gets installed vercel project connections for the given organization integration */@@ -9808,9 +9156,7 @@ export interface operations {}}/** @description Failed to get installed vercel connections for the given organization integration */- 500: {- content: never- }+ 500: never}}/** Connects a Vercel project to a supabase project */@@ -9827,9 +9173,7 @@ export interface operations {}}/** @description Failed to create project connection */- 500: {- content: never- }+ 500: never}}/** Syncs supabase project envs with given connection id */@@ -9840,13 +9184,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to sync supabase project envs with given connection id */- 500: {- content: never- }+ 500: never}}/** Deletes vercel project connection */@@ -9863,9 +9203,7 @@ export interface operations {}}/** @description Failed to delete vercel integration project connection */- 500: {- content: never- }+ 500: never}}/** Updates a Vercel connection for a supabase project */@@ -9881,13 +9219,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to update Vercel connection */- 500: {- content: never- }+ 500: never}}/** Create github integration */@@ -9904,9 +9238,7 @@ export interface operations {}}/** @description Failed to create github integration */- 500: {- content: never- }+ 500: never}}/** Gets installed github project connections for the given organization integration */@@ -9923,9 +9255,7 @@ export interface operations {}}/** @description Failed to get installed github connections for the given organization integration */- 500: {- content: never- }+ 500: never}}/** Connects a GitHub project to a supabase project */@@ -9936,13 +9266,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to create project connections */- 500: {- content: never- }+ 500: never}}/** Deletes github project connection */@@ -9953,13 +9279,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to delete github integration project connection */- 500: {- content: never- }+ 500: never}}/** Updates a GitHub connection for a supabase project */@@ -9975,13 +9297,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to update GitHub connection */- 500: {- content: never- }+ 500: never}}/** Gets github repos for the given organization */@@ -9998,9 +9316,7 @@ export interface operations {}}/** @description Failed to get github repos for the given organization */- 500: {- content: never- }+ 500: never}}/** Gets github branches for a given repo */@@ -10023,9 +9339,27 @@ export interface operations {}}/** @description Failed to get github branches for a given repo */- 500: {- content: never+ 500: never+ }+ }+ /** Gets a specific github branch for a given repo */+ GitHubBranchController_getBranchByName: {+ parameters: {+ path: {+ organization_integration_id: string+ repo_owner: string+ repo_name: string+ branch_name: string+ }+ }+ responses: {+ 200: {+ content: {+ 'application/json': components['schemas']['GetGithubBranch']+ }}+ /** @description Failed to get github branch for a given repo */+ 500: never}}/** Gets github pull requests for a given repo */@@ -10045,9 +9379,7 @@ export interface operations {}}/** @description Failed to get github pull requests for a given repo */- 500: {- content: never- }+ 500: never}}/** Gets GoTrue template */@@ -10065,9 +9397,7 @@ export interface operations {}}/** @description Failed to retrieve GoTrue template */- 500: {- content: never- }+ 500: never}}/** Gets the status of owner reassignment */@@ -10085,9 +9415,7 @@ export interface operations {}}/** @description Failed to get status of owner reassignment */- 500: {- content: never- }+ 500: never}}/** Reassigns object owner from supabase_admin to temp */@@ -10107,13 +9435,9 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to reassign owner on the project */- 500: {- content: never- }+ 500: never}}/** Rollback object owner from temp to supabase_admin */@@ -10133,13 +9457,9 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to rollback owner on the project */- 500: {- content: never- }+ 500: never}}/** Reassigns object owner from temp to postgres */@@ -10159,13 +9479,9 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to reassign owner on the project */- 500: {- content: never- }+ 500: never}}/** Reset JWT if leaked keys found by GitHub secret scanning */@@ -10182,13 +9498,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to reset JWT */- 500: {- content: never- }+ 500: never}}/**@@ -10208,13 +9520,9 @@ export interface operations {'application/json': components['schemas']['FunctionResponse'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's functions */- 500: {- content: never- }+ 500: never}}/** Deletes all Edge Functions from a project */@@ -10226,9 +9534,7 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never}}/**@@ -10248,13 +9554,9 @@ export interface operations {'application/json': components['schemas']['SecretResponse'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's secrets */- 500: {- content: never- }+ 500: never}}/**@@ -10274,16 +9576,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to create project's secrets */- 500: {- content: never- }+ 500: never}}/**@@ -10308,13 +9604,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to delete secrets with given names */- 500: {- content: never- }+ 500: never}}/** Refreshes secrets */@@ -10326,13 +9618,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to refresh secrets */- 500: {- content: never- }+ 500: never}}/** Updates a project's health status. */@@ -10349,13 +9637,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to update health status. */- 500: {- content: never- }+ 500: never}}/** Records an HA event */@@ -10372,13 +9656,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to record HA event. */- 500: {- content: never- }+ 500: never}}/** Allows a project to obtain temporary credentials. */@@ -10401,9 +9681,7 @@ export interface operations {}}/** @description Failed to obtain temporary credentials. */- 500: {- content: never- }+ 500: never}}/** Updates project addon */@@ -10420,13 +9698,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to update project addon */- 500: {- content: never- }+ 500: never}}/** Removes project addon */@@ -10439,13 +9713,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to remove project addon */- 500: {- content: never- }+ 500: never}}/** Migrates org to org-level billing. */@@ -10456,13 +9726,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to migrate org. */- 500: {- content: never- }+ 500: never}}/** Previews the migration of the organization to the new org level billing. */@@ -10473,13 +9739,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to preview org billing organization */- 500: {- content: never- }+ 500: never}}/** Attaches subscription id to org and projects. */@@ -10490,13 +9752,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to preview org billing organization */- 500: {- content: never- }+ 500: never}}/** Handle update project jwt on completion */@@ -10508,9 +9766,7 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never}}/** Gets usage stats */@@ -10528,9 +9784,7 @@ export interface operations {}}/** @description Failed to get usage stats */- 500: {- content: never- }+ 500: never}}/** Processes Vercel event */@@ -10546,13 +9800,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to process Vercel event */- 500: {- content: never- }+ 500: never}}/** Processes GitHub event */@@ -10569,13 +9819,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to process GitHub event */- 500: {- content: never- }+ 500: never}}/** Processes Stripe event */@@ -10591,13 +9837,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to process Stripe event */- 500: {- content: never- }+ 500: never}}/**@@ -10637,9 +9879,7 @@ export interface operations {}}/** @description Failed to retrieve database branch */- 500: {- content: never- }+ 500: never}}/**@@ -10654,13 +9894,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to delete database branch */- 500: {- content: never- }+ 500: never}}/**@@ -10686,9 +9922,7 @@ export interface operations {}}/** @description Failed to update database branch */- 500: {- content: never- }+ 500: never}}ApiKeysController_getProjectApiKeys: {@@ -10704,9 +9938,7 @@ export interface operations {'application/json': components['schemas']['ApiKeyResponse'][]}}- 403: {- content: never- }+ 403: never}}/**@@ -10727,9 +9959,7 @@ export interface operations {}}/** @description Failed to retrieve database branches */- 500: {- content: never- }+ 500: never}}/**@@ -10755,9 +9985,7 @@ export interface operations {}}/** @description Failed to create database branch */- 500: {- content: never- }+ 500: never}}/**@@ -10772,13 +10000,9 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never/** @description Failed to disable preview branching */- 500: {- content: never- }+ 500: never}}/** Gets project's custom hostname config */@@ -10795,13 +10019,9 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's custom hostname config */- 500: {- content: never- }+ 500: never}}/** Deletes a project's custom hostname configuration */@@ -10813,16 +10033,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to delete project custom hostname configuration */- 500: {- content: never- }+ 500: never}}/** Updates project's custom hostname configuration */@@ -10844,13 +10058,9 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project custom hostname configuration */- 500: {- content: never- }+ 500: never}}/** Attempts to verify the DNS configuration for project's custom hostname configuration */@@ -10867,13 +10077,9 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to verify project custom hostname configuration */- 500: {- content: never- }+ 500: never}}/** Activates a custom hostname for a project. */@@ -10890,13 +10096,9 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to activate project custom hostname configuration */- 500: {- content: never- }+ 500: never}}/** Gets project's network bans */@@ -10913,13 +10115,9 @@ export interface operations {'application/json': components['schemas']['NetworkBanResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's network bans */- 500: {- content: never- }+ 500: never}}/** Remove network bans. */@@ -10936,16 +10134,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to remove network bans. */- 500: {- content: never- }+ 500: never}}/** Gets project's network restrictions */@@ -10962,13 +10154,9 @@ export interface operations {'application/json': components['schemas']['NetworkRestrictionsResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's network restrictions */- 500: {- content: never- }+ 500: never}}/** Updates project's network restrictions */@@ -10990,13 +10178,9 @@ export interface operations {'application/json': components['schemas']['NetworkRestrictionsResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project network restrictions */- 500: {- content: never- }+ 500: never}}/** Gets project's pgsodium config */@@ -11013,13 +10197,9 @@ export interface operations {'application/json': components['schemas']['PgsodiumConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's pgsodium config */- 500: {- content: never- }+ 500: never}}/** Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible. */@@ -11041,13 +10221,9 @@ export interface operations {'application/json': components['schemas']['PgsodiumConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project's pgsodium config */- 500: {- content: never- }+ 500: never}}/**@@ -11067,13 +10243,9 @@ export interface operations {'application/json': components['schemas']['SecretResponse'][]}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's secrets */- 500: {- content: never- }+ 500: never}}/**@@ -11093,16 +10265,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to create project's secrets */- 500: {- content: never- }+ 500: never}}/**@@ -11127,13 +10293,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to delete secrets with given names */- 500: {- content: never- }+ 500: never}}/** Get project's SSL enforcement configuration. */@@ -11150,13 +10312,9 @@ export interface operations {'application/json': components['schemas']['SslEnforcementResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's SSL enforcement config */- 500: {- content: never- }+ 500: never}}/** Update project's SSL enforcement configuration. */@@ -11178,13 +10336,9 @@ export interface operations {'application/json': components['schemas']['SslEnforcementResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project's SSL enforcement configuration. */- 500: {- content: never- }+ 500: never}}/**@@ -11207,13 +10361,9 @@ export interface operations {'application/json': components['schemas']['TypescriptResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to generate TypeScript types */- 500: {- content: never- }+ 500: never}}/** Gets current vanity subdomain config */@@ -11230,13 +10380,9 @@ export interface operations {'application/json': components['schemas']['VanitySubdomainConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to get project vanity subdomain configuration */- 500: {- content: never- }+ 500: never}}/** Deletes a project's vanity subdomain configuration */@@ -11248,16 +10394,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to delete project vanity subdomain configuration */- 500: {- content: never- }+ 500: never}}/** Checks vanity subdomain availability */@@ -11279,13 +10419,9 @@ export interface operations {'application/json': components['schemas']['SubdomainAvailabilityResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to check project vanity subdomain configuration */- 500: {- content: never- }+ 500: never}}/** Activates a vanity subdomain for a project. */@@ -11307,13 +10443,9 @@ export interface operations {'application/json': components['schemas']['ActivateVanitySubdomainResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to activate project vanity subdomain configuration */- 500: {- content: never- }+ 500: never}}/** Upgrades the project's Postgres version */@@ -11330,16 +10462,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to initiate project upgrade */- 500: {- content: never- }+ 500: never}}/** Returns the project's eligibility for upgrades */@@ -11356,13 +10482,9 @@ export interface operations {'application/json': components['schemas']['ProjectUpgradeEligibilityResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to determine project upgrade eligibility */- 500: {- content: never- }+ 500: never}}/** Gets the latest status of the project's upgrade */@@ -11379,13 +10501,9 @@ export interface operations {'application/json': components['schemas']['DatabaseUpgradeStatusResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project upgrade status */- 500: {- content: never- }+ 500: never}}/** Returns project's readonly mode status */@@ -11403,9 +10521,7 @@ export interface operations {}}/** @description Failed to get project readonly mode status */- 500: {- content: never- }+ 500: never}}/** Disables project's readonly mode for the next 15 minutes */@@ -11417,13 +10533,9 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never/** @description Failed to disable project's readonly mode */- 500: {- content: never- }+ 500: never}}/** Gets project's service health status */@@ -11445,9 +10557,7 @@ export interface operations {}}/** @description Failed to retrieve project's service health status */- 500: {- content: never- }+ 500: never}}/** Gets project's Postgres config */@@ -11465,9 +10575,7 @@ export interface operations {}}/** @description Failed to retrieve project's Postgres config */- 500: {- content: never- }+ 500: never}}/** Updates project's Postgres config */@@ -11490,9 +10598,7 @@ export interface operations {}}/** @description Failed to update project's Postgres config */- 500: {- content: never- }+ 500: never}}/** Get project's pgbouncer config */@@ -11510,9 +10616,7 @@ export interface operations {}}/** @description Failed to retrieve project's pgbouncer config */- 500: {- content: never- }+ 500: never}}/** Gets project's auth config */@@ -11529,13 +10633,9 @@ export interface operations {'application/json': components['schemas']['AuthConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve project's auth config */- 500: {- content: never- }+ 500: never}}/** Updates a project's auth config */@@ -11557,13 +10657,9 @@ export interface operations {'application/json': components['schemas']['AuthConfigResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update project's auth config */- 500: {- content: never- }+ 500: never}}/** Lists all SSO providers */@@ -11580,13 +10676,9 @@ export interface operations {'application/json': components['schemas']['ListProvidersResponse']}}- 403: {- content: never- }+ 403: never/** @description SAML 2.0 support is not enabled for this project */- 404: {- content: never- }+ 404: never}}/** Creates a new SSO provider */@@ -11608,13 +10700,9 @@ export interface operations {'application/json': components['schemas']['CreateProviderResponse']}}- 403: {- content: never- }+ 403: never/** @description SAML 2.0 support is not enabled for this project */- 404: {- content: never- }+ 404: never}}/** Gets a SSO provider by its UUID */@@ -11632,13 +10720,9 @@ export interface operations {'application/json': components['schemas']['GetProviderResponse']}}- 403: {- content: never- }+ 403: never/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: {- content: never- }+ 404: never}}/** Updates a SSO provider by its UUID */@@ -11661,13 +10745,9 @@ export interface operations {'application/json': components['schemas']['UpdateProviderResponse']}}- 403: {- content: never- }+ 403: never/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: {- content: never- }+ 404: never}}/** Removes a SSO provider by its UUID */@@ -11685,13 +10765,9 @@ export interface operations {'application/json': components['schemas']['DeleteProviderResponse']}}- 403: {- content: never- }+ 403: never/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: {- content: never- }+ 404: never}}/** Run sql query */@@ -11713,13 +10789,9 @@ export interface operations {'application/json': Record<string, never>}}- 403: {- content: never- }+ 403: never/** @description Failed to run sql query */- 500: {- content: never- }+ 500: never}}/** Enables Database Webhooks on the project */@@ -11731,16 +10803,10 @@ export interface operations {}}responses: {- 201: {- content: never- }- 403: {- content: never- }+ 201: never+ 403: never/** @description Failed to enable Database Webhooks on the project */- 500: {- content: never- }+ 500: never}}/** Restores a PITR backup for a database */@@ -11757,9 +10823,7 @@ export interface operations {}}responses: {- 201: {- content: never- }+ 201: never}}/**@@ -11781,13 +10845,9 @@ export interface operations {'application/json': components['schemas']['FunctionSlugResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to retrieve function with given slug */- 500: {- content: never- }+ 500: never}}/**@@ -11804,16 +10864,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to delete function with given slug */- 500: {- content: never- }+ 500: never}}/**@@ -11849,13 +10903,9 @@ export interface operations {'application/json': components['schemas']['FunctionResponse']}}- 403: {- content: never- }+ 403: never/** @description Failed to update function with given slug */- 500: {- content: never- }+ 500: never}}/**@@ -11872,16 +10922,10 @@ export interface operations {}}responses: {- 200: {- content: never- }- 403: {- content: never- }+ 200: never+ 403: never/** @description Failed to retrieve function body with given slug */- 500: {- content: never- }+ 500: never}}/** Create an organization */@@ -11898,9 +10942,7 @@ export interface operations {}}/** @description Unexpected error creating an organization */- 500: {- content: never- }+ 500: never}}/** List members of an organization */@@ -11933,9 +10975,7 @@ export interface operations {}}responses: {- 303: {- content: never- }+ 303: never}}/** Exchange auth code for user's access and refresh token */@@ -11967,9 +11007,7 @@ export interface operations {}}/** @description Failed to list user's SQL snippets */- 500: {- content: never- }+ 500: never}}/** Gets a specific SQL snippet */@@ -11986,17 +11024,13 @@ export interface operations {}}/** @description Failed to retrieve SQL snippet */- 500: {- content: never- }+ 500: never}}/** Redirects to Supabase dashboard after Fly sso with Gotrue */CallbackController_redirectToDashboardFlyioExtensionScreen: {responses: {- 200: {- content: never- }+ 200: never}}/** Gets database status */@@ -12022,9 +11056,7 @@ export interface operations {}}responses: {- 200: {- content: never- }+ 200: never}}/** Gets resource billing */@@ -12037,7 +11069,7 @@ export interface operations {responses: {200: {content: {- 'application/json': Record<string, never>+ 'application/json': components['schemas']['ResourceBillingResponse']}}}diff --git a/studio/data/organizations/organization-billing-subscription-preview.ts b/studio/data/organizations/organization-billing-subscription-preview.tsindex a18677868d6..e0ff2928709 100644--- a/studio/data/organizations/organization-billing-subscription-preview.ts+++ b/studio/data/organizations/organization-billing-subscription-preview.ts@@ -17,6 +17,24 @@ export type OrganizationBillingSubscriptionPreviewResponse = {total_price: number}[]number_of_projects?: number+ plan_change_type?: 'downgrade' | 'none' | 'upgrade'+ active_projects?: {+ status:+ | 'INACTIVE'+ | 'ACTIVE_HEALTHY'+ | 'ACTIVE_UNHEALTHY'+ | 'COMING_UP'+ | 'UNKNOWN'+ | 'GOING_DOWN'+ | 'INIT_FAILED'+ | 'REMOVED'+ | 'RESTORING'+ | 'UPGRADING'+ instance_size: string+ name: string+ ref: string+ }[]+ billed_via_partner?: boolean}export async function previewOrganizationBillingSubscription({diff --git a/studio/data/organizations/organization-customer-profile-query.ts b/studio/data/organizations/organization-customer-profile-query.tsindex 3859a64c620..ba55f7d637d 100644--- a/studio/data/organizations/organization-customer-profile-query.ts+++ b/studio/data/organizations/organization-customer-profile-query.ts@@ -4,6 +4,7 @@ import { API_URL } from 'lib/constants'import { useCallback } from 'react'import { organizationKeys } from './keys'import { ResponseError } from 'types'+import { PlanId } from 'data/subscriptions/project-subscription-v2-query'export type OrganizationCustomerProfileVariables = {slug?: stringdiff --git a/studio/data/subscriptions/org-subscription-cancel-schedule-mutation.ts b/studio/data/subscriptions/org-subscription-cancel-schedule-mutation.tsnew file mode 100644index 00000000000..f8e589848e5--- /dev/null+++ b/studio/data/subscriptions/org-subscription-cancel-schedule-mutation.ts@@ -0,0 +1,54 @@+import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'+import { toast } from 'react-hot-toast'++import { del } from 'data/fetchers'+import { ResponseError } from 'types'+import { subscriptionKeys } from './keys'++export type OrganizationBillingSubscriptionCancelScheduleVariables = {+ slug: string+}++export async function cancelSubscriptionSchedule({+ slug,+}: OrganizationBillingSubscriptionCancelScheduleVariables) {+ const { data, error } = await del(+ '/platform/organizations/{slug}/billing/subscription/schedule',+ {+ params: { path: { slug } },+ }+ )+ if (error) throw error+ return data+}++export const useOrganizationBillingSubscriptionCancelSchedule = ({+ onSuccess,+ onError,+ ...options+}: Omit<+ UseMutationOptions<never, ResponseError, OrganizationBillingSubscriptionCancelScheduleVariables>,+ 'mutationFn'+> = {}) => {+ const queryClient = useQueryClient()++ return useMutation<never, ResponseError, OrganizationBillingSubscriptionCancelScheduleVariables>(+ (vars) => cancelSubscriptionSchedule(vars),+ {+ async onSuccess(data, variables, context) {+ await Promise.all([+ queryClient.invalidateQueries(subscriptionKeys.orgSubscription(variables.slug)),+ ])+ await onSuccess?.(data, variables, context)+ },+ async onError(data, variables, context) {+ if (onError === undefined) {+ toast.error(`Failed to setup intent: ${data.message}`)+ } else {+ onError(data, variables, context)+ }+ },+ ...options,+ }+ )+}diff --git a/studio/data/subscriptions/org-subscription-query.ts b/studio/data/subscriptions/org-subscription-query.tsindex 03040d3f744..bd28e15c135 100644--- a/studio/data/subscriptions/org-subscription-query.ts+++ b/studio/data/subscriptions/org-subscription-query.ts@@ -63,6 +63,11 @@ export type OrgSubscription = {}project_addons: ProjectAddon[]billing_via_partner?: boolean+ scheduled_plan_change: {+ at: string+ target_plan: PlanId+ usage_billing_enabled: boolean+ } | null}export async function getOrgSubscription(diff --git a/studio/data/subscriptions/project-subscription-v2-query.ts b/studio/data/subscriptions/project-subscription-v2-query.tsindex 881f2118b76..6f7d781bcc9 100644--- a/studio/data/subscriptions/project-subscription-v2-query.ts+++ b/studio/data/subscriptions/project-subscription-v2-query.ts@@ -46,6 +46,12 @@ export type ProjectSubscriptionResponse = {expiry_month: numberexpiry_year: number}+ billing_via_partner?: boolean+ scheduled_plan_change: {+ at: string+ target_plan: PlanId+ usage_billing_enabled: boolean+ } | null}export async function getProjectSubscription(diff --git a/studio/pages/project/[ref]/settings/general.tsx b/studio/pages/project/[ref]/settings/general.tsxindex dbdb6eeec4d..c759cc3bf1d 100644--- a/studio/pages/project/[ref]/settings/general.tsx+++ b/studio/pages/project/[ref]/settings/general.tsx@@ -16,8 +16,7 @@ const ProjectSettings: NextPageWithLayout = () => {const isBranch = !!project?.parent_project_refconst isOrgBilling = !!organization?.subscription_idconst transferProjectEnabledFlag = useFlag('transferProject')- const { projectsTransfer: projectTransferEnabled, billingAll: billingEnabled } =- useIsFeatureEnabled(['projects:transfer', 'billing:all'])+ const { projectsTransfer: projectTransferEnabled } = useIsFeatureEnabled(['projects:transfer'])// [Joshen] Opting for larger gap instead of gap-8 as compared to other pages for better grouping of contentreturn (@@ -26,7 +25,7 @@ const ProjectSettings: NextPageWithLayout = () => {{!isBranch ? (<>{!isOrgBilling && <Infrastructure />}- {billingEnabled && <CustomDomainConfig />}+ <CustomDomainConfig />{projectTransferEnabled && transferProjectEnabledFlag && <TransferProjectPanel />}<DeleteProjectPanel /></>