The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update branch management UI (#18583)
Joshen Lim5b7923d1d83d
diff --git a/studio/components/interfaces/BranchManagement/BranchManagement.tsx b/studio/components/interfaces/BranchManagement/BranchManagement.tsxindex 3d853b8cf24..dd20a17d86d 100644--- a/studio/components/interfaces/BranchManagement/BranchManagement.tsx+++ b/studio/components/interfaces/BranchManagement/BranchManagement.tsx@@ -9,27 +9,31 @@ import {Alert_Shadcn_,Button,IconAlertTriangle,- IconGitBranch,+ IconExternalLink,+ IconGitHub,+ IconSearch,+ Input,Modal,} from 'ui'import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'-import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'import AlertError from 'components/ui/AlertError'import ConfirmationModal from 'components/ui/ConfirmationModal'import TextConfirmModal from 'components/ui/Modals/TextConfirmModal'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useBranchDeleteMutation } from 'data/branches/branch-delete-mutation'import { useBranchesDisableMutation } from 'data/branches/branches-disable-mutation'import { Branch, useBranchesQuery } from 'data/branches/branches-query'+import { useGithubPullRequestsQuery } from 'data/integrations/integrations-github-pull-requests-query'import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'import { useSelectedOrganization, useSelectedProject, useStore } from 'hooks'-import { OPT_IN_TAGS } from 'lib/constants'-import { useAppStateSnapshot } from 'state/app-state'-import { MainBranchPanel } from './BranchPanels'-import PreviewBranches from './PreviewBranches'-import PullRequests from './PullRequests'+import { BranchLoader, BranchManagementSection, BranchRow } from './BranchPanels'import CreateBranchModal from './CreateBranchModal'+import {+ BranchingEmptyState,+ PreviewBranchesEmptyState,+ PullRequestsEmptyState,+} from './EmptyStates'+import Overview from './Overview'const BranchManagement = () => {const { ui } = useStore()@@ -38,15 +42,13 @@ const BranchManagement = () => {const project = useSelectedProject()const selectedOrg = useSelectedOrganization()- const hasAccessToBranching =- selectedOrg?.opt_in_tags?.includes(OPT_IN_TAGS.PREVIEW_BRANCHES) ?? falseconst hasBranchEnabled = project?.is_branch_enabledconst isBranch = project?.parent_project_ref !== undefinedconst projectRef =project !== undefined ? (isBranch ? project.parent_project_ref : ref) : undefined- const snap = useAppStateSnapshot()+ const [view, setView] = useState<'overview' | 'prs' | 'branches'>('overview')const [showCreateBranch, setShowCreateBranch] = useState(false)const [showDisableBranching, setShowDisableBranching] = useState(false)const [selectedBranchToDelete, setSelectedBranchToDelete] = useState<Branch>()@@ -59,15 +61,44 @@ const BranchManagement = () => {isSuccess: isSuccessIntegrations,} = useOrgIntegrationsQuery({ orgSlug: selectedOrg?.slug })- const githubConnections = integrations- ?.filter((integration) => integration.integration.name === 'GitHub')- .flatMap((integration) => integration.connections)- const githubConnection = githubConnections?.find(+ const {+ data: branches,+ error: branchesError,+ isLoading: isLoadingBranches,+ isError: isErrorBranches,+ isSuccess: isSuccessBranches,+ } = useBranchesQuery({ projectRef })+ const [[mainBranch], previewBranches] = partition(branches, (branch) => branch.is_default)+ const branchesWithPRs = previewBranches.filter((branch) => branch.pr_number !== undefined)++ const githubIntegration = integrations?.find(+ (integration) =>+ integration.integration.name === 'GitHub' &&+ integration.organization.slug === selectedOrg?.slug+ )+ const githubConnection = githubIntegration?.connections?.find((connection) => connection.supabase_project_ref === projectRef)+ const repo = githubConnection?.metadata.name ?? ''+ const [repoOwner, repoName] = githubConnection?.metadata.name.split('/') || []- const { data: branches } = useBranchesQuery({ projectRef })- const [[mainBranch], previewBranches] = partition(branches, (branch) => branch.is_default)+ const {+ data: allPullRequests,+ error: pullRequestsError,+ isLoading: isLoadingPullRequests,+ isError: isErrorPullRequests,+ isSuccess: isSuccessPullRequests,+ } = useGithubPullRequestsQuery({+ organizationIntegrationId: githubIntegration?.id,+ repoOwner,+ repoName,+ target: mainBranch?.git_branch,+ })+ const pullRequests = allPullRequests ?? []++ const isError = isErrorIntegrations || isErrorBranches+ const isLoading = isLoadingIntegrations || isLoadingBranches+ const isSuccess = isSuccessIntegrations && isSuccessBranchesconst { mutate: deleteBranch, isLoading: isDeleting } = useBranchDeleteMutation({onSuccess: () => {@@ -115,44 +146,7 @@ const BranchManagement = () => {disableBranching({ projectRef, branchIds: previewBranches?.map((branch) => branch.id) })}- if (!hasBranchEnabled) {- return (- <ProductEmptyState title="Database Branching">- <p className="text-sm text-light">- {hasAccessToBranching- ? 'Create preview branches to experiment changes to your database schema in a safe, non-destructible environment.'- : "Register for early access and you'll be contacted by email when your organization is enrolled in database branching."}- </p>- {hasAccessToBranching ? (- <div className="!mt-4">- <Button- icon={<IconGitBranch strokeWidth={1.5} />}- onClick={() => snap.setShowEnableBranchingModal(true)}- >- Enable branching- </Button>- </div>- ) : (- <div className="flex items-center space-x-2 !mt-4">- <Button asChild>- <Link- rel="noreferrer"- target="_blank"- href="https://forms.supabase.com/branching-request"- >- <a>Join waitlist</a>- </Link>- </Button>- {/* <Link passHref href={'/'}>- <a rel="noreferrer" target="_blank">- <Button type="default">View the docs</Button>- </a>- </Link> */}- </div>- )}- </ProductEmptyState>- )- }+ if (!hasBranchEnabled) return <BranchingEmptyState />return (<>@@ -161,32 +155,180 @@ const BranchManagement = () => {<div className="col-span-12"><h3 className="text-xl mb-8">Branches</h3>- <div className="">- {isLoadingIntegrations && <GenericSkeletonLoader />}+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center space-x-4">+ <div className="flex items-center">+ <Button+ type="default"+ className={`rounded-r-none transition hover:opacity-90 ${+ view === 'overview' ? 'opacity-100' : 'opacity-60'+ }`}+ onClick={() => setView('overview')}+ >+ Overview+ </Button>+ <Button+ type="default"+ className={`rounded-none transition hover:opacity-90 ${+ view === 'prs' ? 'opacity-100' : 'opacity-60'+ }`}+ onClick={() => setView('prs')}+ >+ Pull requests+ </Button>+ <Button+ type="default"+ className={`rounded-l-none transition hover:opacity-90 ${+ view === 'branches' ? 'opacity-100' : 'opacity-60'+ }`}+ onClick={() => setView('branches')}+ >+ All branches+ </Button>+ </div>+ <Input+ size="tiny"+ className="w-64"+ placeholder="Search"+ icon={<IconSearch size={14} strokeWidth={2} />}+ />+ </div>+ <Button type="primary" onClick={() => setShowCreateBranch(true)}>+ Create branch+ </Button>+ </div>+{isErrorIntegrations && (<AlertErrorerror={integrationsError}subject="Failed to retrieve GitHub integration connection"/>)}+{isSuccessIntegrations && (+ <div className="border rounded-lg px-6 py-2 flex items-center justify-between">+ <div className="flex items-center gap-x-4">+ <div className="w-8 h-8 bg-scale-300 border rounded-md flex items-center justify-center">+ <IconGitHub size={18} strokeWidth={2} />+ </div>+ <p className="text-sm">GitHub branch workflow</p>+ <Button asChild type="default" iconRight={<IconExternalLink />}>+ <Link passHref href={`/project/${ref}/settings/integrations`}>+ Settings+ </Link>+ </Button>+ <Button+ type="text"+ size="small"+ className="text-light hover:text py-1 px-1.5"+ iconRight={<IconExternalLink size={14} strokeWidth={1.5} />}+ >+ <Link+ passHref+ target="_blank"+ rel="noreferrer"+ href={`https://github.com/${repo}`}+ >+ {repo}+ </Link>+ </Button>+ </div>+ <Button type="default" onClick={() => setShowDisableBranching(true)}>+ Disable branching+ </Button>+ </div>+ )}++ {isErrorBranches && view === 'overview' && (+ <AlertError error={branchesError} subject="Failed to retrieve preview branches" />+ )}++ {!isError && (<>- <MainBranchPanel- repo={githubConnection?.metadata.name}- branch={mainBranch}- onSelectCreateBranch={() => setShowCreateBranch(true)}- onSelectDisableBranching={() => setShowDisableBranching(true)}- />- <PullRequests- previewBranches={previewBranches}- generateCreatePullRequestURL={generateCreatePullRequestURL}- onSelectDeleteBranch={setSelectedBranchToDelete}- />- <PreviewBranches- generateCreatePullRequestURL={generateCreatePullRequestURL}- onSelectCreateBranch={() => setShowCreateBranch(true)}- onSelectDeleteBranch={setSelectedBranchToDelete}- />+ {view === 'overview' && (+ <Overview+ isLoading={isLoading}+ isSuccess={isSuccess}+ repo={repo}+ mainBranch={mainBranch}+ previewBranches={previewBranches}+ pullRequests={pullRequests}+ onViewAllBranches={() => setView('branches')}+ onSelectCreateBranch={() => setShowCreateBranch(true)}+ onSelectDeleteBranch={setSelectedBranchToDelete}+ generateCreatePullRequestURL={generateCreatePullRequestURL}+ />+ )}+ {view === 'prs' && (+ <BranchManagementSection+ header={`${branchesWithPRs.length} branches with pull requests found`}+ >+ {isLoadingPullRequests && <BranchLoader />}+ {isErrorPullRequests && (+ <AlertError+ error={pullRequestsError}+ subject="Failed to retrieve GitHub pull requests"+ />+ )}+ {isSuccessPullRequests && (+ <>+ {branchesWithPRs.length > 0 ? (+ branchesWithPRs.map((branch) => {+ const pullRequest = pullRequests?.find(+ (pr) => pr.branch === branch.git_branch && pr.repo === repo+ )+ return (+ <BranchRow+ key={branch.id}+ repo={repo}+ branch={branch}+ pullRequest={pullRequest}+ generateCreatePullRequestURL={generateCreatePullRequestURL}+ />+ )+ })+ ) : (+ <PullRequestsEmptyState+ url={generateCreatePullRequestURL()}+ hasBranches={previewBranches.length > 0}+ />+ )}+ </>+ )}+ </BranchManagementSection>+ )}+ {view === 'branches' && (+ <BranchManagementSection header={`${previewBranches.length} branches found`}>+ {isLoadingBranches && <BranchLoader />}+ {isErrorBranches && (+ <AlertError+ error={branchesError}+ subject="Failed to retrieve preview branches"+ />+ )}+ {isSuccessBranches && previewBranches.length === 0 && (+ <PreviewBranchesEmptyState+ onSelectCreateBranch={() => setShowCreateBranch(true)}+ />+ )}+ {isSuccessBranches &&+ previewBranches.map((branch) => {+ const pullRequest = pullRequests?.find(+ (pr) => pr.branch === branch.git_branch && pr.repo === repo+ )+ return (+ <BranchRow+ key={branch.id}+ repo={repo}+ branch={branch}+ pullRequest={pullRequest}+ generateCreatePullRequestURL={generateCreatePullRequestURL}+ />+ )+ })}+ </BranchManagementSection>+ )}</>)}</div>@@ -249,11 +391,6 @@ const BranchManagement = () => {</Modal.Content></ConfirmationModal>- {/* <CreateBranchSidePanel- visible={showCreateBranch}- onClose={() => setShowCreateBranch(false)}- /> */}-<CreateBranchModal visible={showCreateBranch} onClose={() => setShowCreateBranch(false)} /></>)diff --git a/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/studio/components/interfaces/BranchManagement/BranchPanels.tsxindex 58377676120..47d0597a03c 100644--- a/studio/components/interfaces/BranchManagement/BranchPanels.tsx+++ b/studio/components/interfaces/BranchManagement/BranchPanels.tsx@@ -1,270 +1,194 @@-import clsx from 'clsx'import { useParams } from 'common'import dayjs from 'dayjs'-import { noop } from 'lodash'import Link from 'next/link'-import { forwardRef, PropsWithChildren, useState } from 'react'+import { PropsWithChildren, ReactNode } from 'react'import {Badge,Button,- cn,DropdownMenu,DropdownMenuContent,DropdownMenuItem,- DropdownMenuSeparator,DropdownMenuTrigger,+ IconArrowRight,IconExternalLink,- IconGitBranch,- IconGitHub,IconMoreVertical,IconShield,IconTrash,} from 'ui'-import { Markdown } from 'components/interfaces/Markdown'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { Branch } from 'data/branches/branches-query'import { GitHubPullRequest } from 'data/integrations/integrations-github-pull-requests-query'+import { GitPullRequest } from 'lucide-react'-interface BranchPanelProps {- repo?: string- branch?: Branch- onSelectUpdate?: () => void- onSelectDelete?: () => void- onSelectCreateBranch?: () => void- onSelectDisableBranching?: () => void- generateCreatePullRequestURL?: (branch?: string) => string+interface BranchManagementSectionProps {+ header: string+ footer?: ReactNode}-const MainBranchPanel = ({- repo,- branch,- onSelectUpdate = noop,- onSelectCreateBranch = noop,- onSelectDisableBranching = noop,-}: BranchPanelProps) => {- const { ref } = useParams()- const [open, setOpen] = useState(false)- const isActive = ref === branch?.project_ref-+export const BranchManagementSection = ({+ header,+ footer,+ children,+}: PropsWithChildren<BranchManagementSectionProps>) => {return (<div className="border rounded-lg">- <div className="bg-surface-200 shadow-sm flex justify-between items-center pl-8 pr-6 py-3 rounded-t-lg text-sm">- <div className="flex items-center justify-between w-full">- <div className="flex items-center space-x-4">- <div className="w-8 h-8 bg-scale-200 rounded-md flex items-center justify-center">- <IconGitHub size={18} strokeWidth={2} />- </div>- <p>Github branch workflow</p>- <Button- asChild- type="text"- size="small"- className="text-light hover:text py-1 px-1.5"- iconRight={<IconExternalLink size={14} strokeWidth={1.5} />}- >- <Link href={`https://github.com/${repo}`} target="_blank" rel="noreferrer">- {repo}- </Link>- </Button>- </div>- <Button type="default" onClick={() => onSelectCreateBranch()}>- Create preview branch- </Button>- </div>- </div>- <div className="bg-surface-100 border-t shadow-sm flex justify-between items-center pl-8 pr-6 py-3 rounded-b-lg text-sm">- {branch === undefined ? (- <ShimmeringLoader className="w-full" />- ) : (- <>- <div className="flex items-center space-x-4">- <div className="w-8 h-8 bg-amber-300 rounded-md flex items-center justify-center">- <IconShield size={18} strokeWidth={2} className="text-amber-900" />- </div>- <p>{branch?.name}</p>- <Badge color="amber">Production</Badge>- {isActive && <Badge color="green">Selected</Badge>}- </div>- <div className="flex items-center space-x-4">- <DropdownMenu open={open} onOpenChange={() => setOpen(!open)} modal={false}>- <DropdownMenuTrigger>- <Button- asChild- type="text"- className="px-1"- icon={<IconMoreVertical size={14} />}- >- <span></span>- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent side="bottom" align="end" className="w-48">- <DropdownMenuItem- asChild- className="flex gap-2"- onSelect={() => onSelectUpdate()}- >- <Link href={`/project/${ref}/settings/integrations`}>- Change production branch- </Link>- </DropdownMenuItem>- <DropdownMenuSeparator />- <DropdownMenuItem- className="flex gap-2"- onSelect={() => onSelectDisableBranching()}- >- Disable branching- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- </div>- </>- )}+ <div className="bg-surface-100 shadow-sm flex justify-between items-center px-6 py-2 rounded-t-lg text-sm">+ {header}</div>+ <div className="bg-surface border-t shadow-sm rounded-b-lg text-sm divide-y">{children}</div>+ {footer !== undefined && <div className="bg-surface-100 px-6 py-1 border-t">{footer}</div>}</div>)}-const BranchContainer = ({ className, children }: PropsWithChildren<{ className?: string }>) => {+export const BranchRowLoader = () => {return (- <div className="list-none ml-6 pl-8 pb-4 border-l border-scale-600 dark:border-scale-400 relative last:!border-transparent">- <div className="absolute w-[33px] rounded-bl-full border-b border-l border-scale-600 dark:border-scale-400 h-10 -left-px" />- <div- className={clsx(- 'border shadow-sm flex justify-between items-center pl-8 pr-6 py-4 rounded-lg text-sm',- className- )}- >- {children}+ <div className="flex items-center justify-between px-6 py-2.5">+ <div className="flex items-center gap-x-4">+ <ShimmeringLoader className="w-52" />+ <ShimmeringLoader className="w-52" />+ </div>+ <div className="flex items-center gap-x-4">+ <ShimmeringLoader className="w-52" />+ <ShimmeringLoader className="w-52" /></div></div>)}-const BranchPanel = ({+export const BranchLoader = () => {+ return (+ <>+ <BranchRowLoader />+ <BranchRowLoader />+ <BranchRowLoader />+ <BranchRowLoader />+ <BranchRowLoader />+ </>+ )+}++interface BranchRowProps {+ repo: string+ branch: Branch+ isMain?: boolean+ pullRequest?: GitHubPullRequest+ generateCreatePullRequestURL?: (branchName?: string) => string+ onSelectDeleteBranch?: () => void+}++export const BranchRow = ({branch,+ isMain = false,+ repo,+ pullRequest,generateCreatePullRequestURL,- onSelectDelete = noop,-}: BranchPanelProps) => {+ onSelectDeleteBranch,+}: BranchRowProps) => {const { ref } = useParams()- const [open, setOpen] = useState(false)-const isActive = ref === branch?.project_ref- const daysFromNow = dayjs().diff(dayjs(branch?.created_at), 'day')- const formattedTimeFromNow = dayjs(branch?.created_at).fromNow()- const formattedCreatedAt = dayjs(branch?.created_at).format('DD MMM YYYY, HH:mm:ss (ZZ)')- const pullRequestURL = generateCreatePullRequestURL?.(branch?.git_branch) ?? 'https://github.com'+ const daysFromNow = dayjs().diff(dayjs(branch.created_at), 'day')+ const formattedTimeFromNow = dayjs(branch.created_at).fromNow()+ const formattedCreatedAt = dayjs(branch.created_at).format('DD MMM YYYY, HH:mm:ss (ZZ)')++ const createPullRequestURL =+ generateCreatePullRequestURL?.(branch.git_branch) ?? 'https://github.com'return (- <BranchContainer className="bg-surface-100">- <div className="flex items-center space-x-4">- <IconGitBranch size={16} strokeWidth={2} />- <p>{branch?.name}</p>- {isActive && <Badge color="green">Selected</Badge>}- <p className="text-light">+ <div className="w-full flex items-center justify-between px-6 py-2.5">+ <div className="flex items-center gap-x-4">+ <Button+ asChild+ type="default"+ icon={isMain && <IconShield strokeWidth={2} className="text-amber-900" />}+ >+ <Link href={`/project/${branch.project_ref}/branches`}>{branch.name}</Link>+ </Button>+ {isActive && <Badge color="slate">Current</Badge>}+ <p className="text-xs text-foreground-lighter">{daysFromNow > 1 ? `Created on ${formattedCreatedAt}` : `Created ${formattedTimeFromNow}`}</p></div>- <div className="flex items-center space-x-4">- <Button asChild type="default" icon={<IconExternalLink />}>- <Link target="_blank" rel="noreferrer" href={pullRequestURL}>- Create pull request- </Link>- </Button>- <DropdownMenu open={open} onOpenChange={() => setOpen(!open)} modal={false}>- <DropdownMenuTrigger>- <Button asChild type="text" className="px-1" icon={<IconMoreVertical size={14} />}>- <span></span>+ <div className="flex items-center gap-x-8">+ {pullRequest !== undefined && (+ <div className="flex items-center">+ <Link+ href={pullRequest.url}+ target="_blank"+ rel="noreferrer"+ className="text-xs transition text-foreground-lighter mr-4 hover:text-foreground"+ >+ #{branch.pr_number}+ </Link>+ <div className="flex items-center gap-x-2 bg-brand-500 px-3 py-1 rounded-full">+ <GitPullRequest size={14} />+ <p className="text-xs">Open</p>+ </div>+ <IconArrowRight className="mx-1 text-foreground-light" strokeWidth={1.5} size={16} />+ <Button asChild type="default">+ <Link+ passHref+ target="_blank"+ rel="noreferer"+ href={`http://github.com/${pullRequest.target.repo}/tree/${pullRequest.target.branch}`}+ >+ {pullRequest.target.branch}+ </Link></Button>- </DropdownMenuTrigger>- <DropdownMenuContent side="bottom" align="end">- <DropdownMenuItem className="flex gap-2" onSelect={() => onSelectDelete()}>- <IconTrash size={14} />- Delete branch- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- </div>- </BranchContainer>- )-}--interface BranchHeader extends React.HTMLAttributes<HTMLDivElement> {- name?: string- markdown?: string-}--const BranchHeader = forwardRef<HTMLDivElement, BranchHeader>(- ({ className, name, markdown = '', ...props }, ref) => {- return (- <div- {...props}- ref={ref}- className={cn(- 'border-l border-scale-600 dark:border-scale-400 ml-6 pl-8 pt-6 pb-3',- className+ </div>)}- >- <Markdown content={markdown} className="" />- </div>- )- }-)--const PullRequestPanel = ({- pr,- onSelectDelete = noop,-}: {- pr: GitHubPullRequest- onSelectDelete: () => void-}) => {- const [open, setOpen] = useState(false)- const daysFromNow = dayjs().diff(dayjs(pr.created_at), 'day')- const formattedTimeFromNow = dayjs(pr.created_at).fromNow()- const formattedCreatedAt = dayjs(pr.created_at).format('DD MMM YYYY, HH:mm:ss (ZZ)')-- return (- <BranchContainer className="bg-surface-100">- <div className="w-full">- <div className="flex items-center justify-between">- <div>- <div className="flex items-center space-x-4">- <IconGitBranch className="text-brand-900" size={16} strokeWidth={2} />- <p>{pr.label}</p>- <p className="text-light">- {daysFromNow > 1- ? `Created on ${formattedCreatedAt}`- : `Created ${formattedTimeFromNow}`}- </p>- </div>- <p className="text-foreground-light ml-8 mt-0.5">{pr.title}</p>+ {isMain ? (+ <div className="flex items-center gap-x-2">+ <Button asChild type="default" iconRight={<IconExternalLink />}>+ <Link target="_blank" rel="noreferrer" passHref href={`https://github.com/${repo}`}>+ View Repository+ </Link>+ </Button>+ <DropdownMenu modal={false}>+ <DropdownMenuTrigger asChild>+ <Button type="text" icon={<IconMoreVertical />} className="px-1" />+ </DropdownMenuTrigger>+ <DropdownMenuContent className="p-0 w-56" side="bottom" align="end">+ <Link passHref href={`/project/${ref}/settings/integrations`}>+ <DropdownMenuItem asChild className="gap-x-2">+ <a>Change production branch</a>+ </DropdownMenuItem>+ </Link>+ </DropdownMenuContent>+ </DropdownMenu></div>- <div className="flex items-center space-x-4">- <Button asChild type="default" icon={<IconExternalLink />}>- <Link href={pr.url} target="_blank" rel="noreferrer">- View pull request+ ) : (+ <div className="flex items-center gap-x-2">+ <Button asChild type="default" iconRight={<IconExternalLink />}>+ <Link+ passHref+ target="_blank"+ rel="noreferrer"+ href={pullRequest?.url ?? createPullRequestURL}+ >+ {branch.pr_number !== undefined ? 'View Pull Request' : 'Create Pull Request'}</Link></Button>- <DropdownMenu open={open} onOpenChange={() => setOpen(!open)} modal={false}>- <DropdownMenuTrigger>- <Button asChild type="text" className="px-1" icon={<IconMoreVertical size={14} />}>- <span></span>- </Button>+ <DropdownMenu modal={false}>+ <DropdownMenuTrigger asChild>+ <Button type="text" icon={<IconMoreVertical />} className="px-1" /></DropdownMenuTrigger>- <DropdownMenuContent side="bottom" align="end">- <DropdownMenuItem className="flex gap-2" onSelect={() => onSelectDelete()}>- <IconTrash size={14} />- Delete branch+ <DropdownMenuContent className="p-0 w-56" side="bottom" align="end">+ <DropdownMenuItem+ className="gap-x-2"+ onSelect={() => onSelectDeleteBranch?.()}+ onClick={() => onSelectDeleteBranch?.()}+ >+ <IconTrash size="tiny" />+ <p>Delete branch</p></DropdownMenuItem></DropdownMenuContent></DropdownMenu></div>- </div>+ )}</div>- </BranchContainer>+ </div>)}--BranchHeader.displayName = 'BranchHeader'-export { BranchContainer, BranchHeader, BranchPanel, MainBranchPanel, PullRequestPanel }diff --git a/studio/components/interfaces/BranchManagement/EmptyStates.tsx b/studio/components/interfaces/BranchManagement/EmptyStates.tsxnew file mode 100644index 00000000000..904e4d65d38--- /dev/null+++ b/studio/components/interfaces/BranchManagement/EmptyStates.tsx@@ -0,0 +1,125 @@+import Link from 'next/link'+import { Button, IconExternalLink, IconGitBranch, IconGitPullRequest } from 'ui'++import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'+import { useSelectedOrganization } from 'hooks'+import { OPT_IN_TAGS } from 'lib/constants'+import { useAppStateSnapshot } from 'state/app-state'++export const BranchingEmptyState = () => {+ const selectedOrg = useSelectedOrganization()+ const snap = useAppStateSnapshot()++ const hasAccessToBranching =+ selectedOrg?.opt_in_tags?.includes(OPT_IN_TAGS.PREVIEW_BRANCHES) ?? false++ return (+ <ProductEmptyState title="Database Branching">+ <p className="text-sm text-light">+ {hasAccessToBranching+ ? 'Create preview branches to experiment changes to your database schema in a safe, non-destructible environment.'+ : "Register for early access and you'll be contacted by email when your organization is enrolled in database branching."}+ </p>+ {hasAccessToBranching ? (+ <div className="!mt-4">+ <Button+ icon={<IconGitBranch strokeWidth={1.5} />}+ onClick={() => snap.setShowEnableBranchingModal(true)}+ >+ Enable branching+ </Button>+ </div>+ ) : (+ <div className="flex items-center space-x-2 !mt-4">+ <Button asChild>+ <Link+ passHref+ rel="noreferrer"+ target="_blank"+ href="https://forms.supabase.com/branching-request"+ >+ Join waitlist+ </Link>+ </Button>+ </div>+ )}+ </ProductEmptyState>+ )+}++export const PullRequestsEmptyState = ({+ url,+ hasBranches,+}: {+ url: string+ hasBranches: boolean+}) => {+ return (+ <div className="flex items-center flex-col justify-center w-full py-10">+ <p>No pull requests made yet for this repository</p>+ <p className="text-foreground-light">+ Only pull requests with the ./migration directory changes will show here.+ </p>+ {hasBranches && (+ <div className="w-96 border rounded-md mt-4">+ <div className="px-5 py-3 bg-surface-100 flex items-center justify-between">+ <div className="flex items-center space-x-4">+ <IconGitPullRequest strokeWidth={2} className="text-foreground-light" />+ <p>Create a pull request</p>+ </div>+ <Button asChild type="default" iconRight={<IconExternalLink />}>+ <Link passHref target="_blank" rel="noreferrer" href={url}>+ Github+ </Link>+ </Button>+ </div>+ <div className="px-5 py-3 border-t flex items-center justify-between">+ <div>+ <p>Not sure what to do?</p>+ <p className="text-foreground-light">Browse our documentation</p>+ </div>+ <Button type="default" iconRight={<IconExternalLink />}>+ Docs+ </Button>+ </div>+ </div>+ )}+ </div>+ )+}++export const PreviewBranchesEmptyState = ({+ onSelectCreateBranch,+}: {+ onSelectCreateBranch: () => void+}) => {+ return (+ <div className="flex items-center flex-col justify-center w-full py-10">+ <p>No database preview branches</p>+ <p className="text-foreground-light">Database preview branches will be shown here</p>+ <div className="w-[500px] border rounded-md mt-4">+ <div className="px-5 py-3 bg-surface-100 flex items-center justify-between">+ <div className="flex items-center space-x-4">+ <IconGitBranch strokeWidth={2} className="text-foreground-light" />+ <div>+ <p>Create a preview branch</p>+ <p className="text-foreground-light">Start developing in preview</p>+ </div>+ </div>+ <Button type="default" onClick={() => onSelectCreateBranch()}>+ Create preview branch+ </Button>+ </div>+ <div className="px-5 py-3 border-t flex items-center justify-between">+ <div>+ <p>Not sure what to do?</p>+ <p className="text-foreground-light">Browse our documentation</p>+ </div>+ <Button type="default" iconRight={<IconExternalLink />}>+ Docs+ </Button>+ </div>+ </div>+ </div>+ )+}diff --git a/studio/components/interfaces/BranchManagement/Overview.tsx b/studio/components/interfaces/BranchManagement/Overview.tsxnew file mode 100644index 00000000000..47cbd02b975--- /dev/null+++ b/studio/components/interfaces/BranchManagement/Overview.tsx@@ -0,0 +1,86 @@+import { useParams } from 'common'+import { Button, IconChevronRight } from 'ui'++import { Branch } from 'data/branches/branches-query'+import { GitHubPullRequest } from 'data/integrations/integrations-github-pull-requests-query'+import { BranchLoader, BranchManagementSection, BranchRow, BranchRowLoader } from './BranchPanels'+import { PreviewBranchesEmptyState } from './EmptyStates'++const MAX_BRANCHES_OVERVIEW = 10++interface OverviewProps {+ isLoading: boolean+ isSuccess: boolean+ repo: string+ mainBranch: Branch+ previewBranches: Branch[]+ pullRequests: GitHubPullRequest[]+ onViewAllBranches: () => void+ onSelectCreateBranch: () => void+ onSelectDeleteBranch: (branch: Branch) => void+ generateCreatePullRequestURL: (branchName?: string) => string+}++const Overview = ({+ isLoading,+ isSuccess,+ repo,+ mainBranch,+ previewBranches,+ pullRequests,+ onViewAllBranches,+ onSelectCreateBranch,+ onSelectDeleteBranch,+ generateCreatePullRequestURL,+}: OverviewProps) => {+ return (+ <>+ <BranchManagementSection header="Production branch">+ {isLoading && <BranchRowLoader />}+ {isSuccess && mainBranch !== undefined && (+ <BranchRow isMain branch={mainBranch} repo={repo} />+ )}+ </BranchManagementSection>++ <BranchManagementSection+ header="Preview branches"+ footer={+ isSuccess && (+ <div className="flex items-center justify-center">+ <Button+ type="text"+ iconRight={<IconChevronRight />}+ onClick={() => onViewAllBranches()}+ >+ View all branches+ </Button>+ </div>+ )+ }+ >+ {isLoading && <BranchLoader />}+ {isSuccess && previewBranches.length === 0 && (+ <PreviewBranchesEmptyState onSelectCreateBranch={onSelectCreateBranch} />+ )}+ {isSuccess &&+ previewBranches.slice(0, MAX_BRANCHES_OVERVIEW).map((branch) => {+ const pullRequest = pullRequests?.find(+ (pr) => pr.branch === branch.git_branch && pr.repo === repo+ )+ return (+ <BranchRow+ key={branch.id}+ repo={repo}+ branch={branch}+ pullRequest={pullRequest}+ generateCreatePullRequestURL={generateCreatePullRequestURL}+ onSelectDeleteBranch={() => onSelectDeleteBranch(branch)}+ />+ )+ })}+ </BranchManagementSection>+ </>+ )+}++export default Overviewdiff --git a/studio/components/interfaces/BranchManagement/PreviewBranches.tsx b/studio/components/interfaces/BranchManagement/PreviewBranches.tsxdeleted file mode 100644index c5923ef4cfc..00000000000--- a/studio/components/interfaces/BranchManagement/PreviewBranches.tsx+++ /dev/null@@ -1,137 +0,0 @@-import { useParams } from 'common'-import { partition } from 'lodash'-import { Button, IconExternalLink, IconGitBranch } from 'ui'--import AlertError from 'components/ui/AlertError'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'-import { Branch, useBranchesQuery } from 'data/branches/branches-query'-import { useGithubPullRequestsQuery } from 'data/integrations/integrations-github-pull-requests-query'-import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'-import { useSelectedOrganization, useSelectedProject } from 'hooks'-import { BranchContainer, BranchHeader, BranchPanel } from './BranchPanels'--interface PreviewBranchesProps {- generateCreatePullRequestURL: (branch?: string) => string- onSelectCreateBranch: () => void- onSelectDeleteBranch: (branch: Branch) => void-}--const PreviewBranches = ({- generateCreatePullRequestURL,- onSelectCreateBranch,- onSelectDeleteBranch,-}: PreviewBranchesProps) => {- const { ref } = useParams()- const project = useSelectedProject()- const selectedOrg = useSelectedOrganization()-- const isBranch = project?.parent_project_ref !== undefined- const projectRef =- project !== undefined ? (isBranch ? project.parent_project_ref : ref) : undefined-- const { data: integrations } = useOrgIntegrationsQuery({- orgSlug: selectedOrg?.slug,- })- const githubIntegration = integrations?.find(- (integration) =>- integration.integration.name === 'GitHub' &&- integration.organization.slug === selectedOrg?.slug- )- const githubConnection = githubIntegration?.connections.find(- (connection) => connection.supabase_project_ref === projectRef- )- const [repoOwner, repoName] = githubConnection?.metadata.name.split('/') || []-- const {- data: branches,- error: branchesError,- isLoading: isLoadingBranches,- isError: isErrorBranches,- isSuccess: isSuccessBranches,- } = useBranchesQuery({ projectRef })- const [[mainBranch], previewBranches] = partition(branches, (branch) => branch.is_default)-- const { data: allPullRequests } = useGithubPullRequestsQuery({- organizationIntegrationId: githubIntegration?.id,- repoOwner,- repoName,- target: mainBranch?.git_branch,- })-- const previewBranchesNotInPR = previewBranches.filter(- (branch) => !allPullRequests?.find((pr) => pr.branch === branch.git_branch)- )-- return (- <>- {previewBranches.length > 0 && previewBranchesNotInPR.length > 0 && (- <BranchHeader markdown={previewBranches.length > 0 ? `#### Preview branches` : undefined} />- )}-- {isLoadingBranches && (- <BranchContainer>- <div className="w-full">- <GenericSkeletonLoader />- </div>- </BranchContainer>- )}-- {isErrorBranches && (- <BranchContainer>- <div className="w-full">- <AlertError error={branchesError} subject="Failed to retrieve GitHub branches" />- </div>- </BranchContainer>- )}-- {isSuccessBranches && (- <>- {previewBranches.length === 0 ? (- <BranchContainer>- <div className="flex items-center flex-col justify-center w-full py-8">- <p>No database preview branches</p>- <p className="text-foreground-light">- Database preview branches will be shown here- </p>- <div className="w-[500px] border rounded-md mt-4">- <div className="px-5 py-3 bg-surface-100 flex items-center justify-between">- <div className="flex items-center space-x-4">- <IconGitBranch strokeWidth={2} className="text-foreground-light" />- <div>- <p>Create a preview branch</p>- <p className="text-foreground-light">Start developing in preview</p>- </div>- </div>- <Button type="default" onClick={() => onSelectCreateBranch()}>- Create preview branch- </Button>- </div>- <div className="px-5 py-3 border-t flex items-center justify-between">- <div>- <p>Not sure what to do?</p>- <p className="text-foreground-light">Browse our documentation</p>- </div>- <Button type="default" iconRight={<IconExternalLink />}>- Docs- </Button>- </div>- </div>- </div>- </BranchContainer>- ) : (- previewBranchesNotInPR.map((branch) => (- <BranchPanel- key={branch.id}- branch={branch}- generateCreatePullRequestURL={generateCreatePullRequestURL}- onSelectDelete={() => onSelectDeleteBranch(branch)}- />- ))- )}- </>- )}- </>- )-}--export default PreviewBranchesdiff --git a/studio/components/interfaces/BranchManagement/PullRequests.tsx b/studio/components/interfaces/BranchManagement/PullRequests.tsxdeleted file mode 100644index 7e99eac4362..00000000000--- a/studio/components/interfaces/BranchManagement/PullRequests.tsx+++ /dev/null@@ -1,148 +0,0 @@-import { useParams } from 'common'-import Link from 'next/link'-import { Button, IconExternalLink, IconGitPullRequest } from 'ui'--import AlertError from 'components/ui/AlertError'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'-import { Branch, useBranchesQuery } from 'data/branches/branches-query'-import { useGithubPullRequestsQuery } from 'data/integrations/integrations-github-pull-requests-query'-import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'-import { useSelectedOrganization, useSelectedProject } from 'hooks'-import { BranchContainer, BranchHeader, PullRequestPanel } from './BranchPanels'--interface PullRequestsProps {- previewBranches: Branch[]- generateCreatePullRequestURL: (branch?: string) => string- onSelectDeleteBranch: (branch: Branch) => void-}--const PullRequests = ({- previewBranches,- generateCreatePullRequestURL,- onSelectDeleteBranch,-}: PullRequestsProps) => {- const { ref } = useParams()- const project = useSelectedProject()- const selectedOrg = useSelectedOrganization()- const pullRequestUrl = generateCreatePullRequestURL()-- const isBranch = project?.parent_project_ref !== undefined- const projectRef =- project !== undefined ? (isBranch ? project.parent_project_ref : ref) : undefined-- const { data: integrations, isLoading: isLoadingIntegrations } = useOrgIntegrationsQuery({- orgSlug: selectedOrg?.slug,- })- const githubIntegration = integrations?.find(- (integration) =>- integration.integration.name === 'GitHub' &&- integration.organization.slug === selectedOrg?.slug- )-- const githubConnection = githubIntegration?.connections?.find(- (connection) => connection.supabase_project_ref === projectRef- )- const [repoOwner, repoName] = githubConnection?.metadata.name.split('/') || []-- const { data: branches, isLoading: isLoadingBranches } = useBranchesQuery({ projectRef })- const mainBranch = branches?.find((branch) => branch.is_default)-- const {- data: allPullRequests,- error: pullRequestsError,- isLoading: isLoadingPullRequests,- isError: isErrorPullRequests,- isSuccess: isSuccessPullRequests,- } = useGithubPullRequestsQuery({- organizationIntegrationId: githubIntegration?.id,- repoOwner,- repoName,- target: mainBranch?.git_branch,- })- const pullRequests = allPullRequests?.filter((pr) =>- branches?.some((branch) => branch.git_branch === pr.branch)- )-- const showEmptyState = previewBranches.length === 0 || (pullRequests || []).length === 0-- return (- <>- <BranchHeader- markdown={!showEmptyState ? `#### Preview branches in pull requests` : undefined}- />-- {(isLoadingBranches || isLoadingPullRequests || isLoadingIntegrations) && (- <BranchContainer>- <div className="w-full">- <GenericSkeletonLoader />- </div>- </BranchContainer>- )}-- {isErrorPullRequests && (- <BranchContainer>- <div className="w-full">- <AlertError- error={pullRequestsError}- subject="Failed to retrieve GitHub pull requests"- />- </div>- </BranchContainer>- )}-- {isSuccessPullRequests && (- <>- {showEmptyState ? (- <BranchContainer>- <div className="flex items-center flex-col justify-center w-full py-8">- <p>No pull requests made yet for this repository</p>- <p className="text-foreground-light">- Only pull requests with the ./migration directory changes will show here.- </p>- {previewBranches.length > 0 && (- <div className="w-96 border rounded-md mt-4">- <div className="px-5 py-3 bg-surface-100 flex items-center justify-between">- <div className="flex items-center space-x-4">- <IconGitPullRequest strokeWidth={2} className="text-foreground-light" />- <p>Create a pull request</p>- </div>- <Button asChild type="default" iconRight={<IconExternalLink />}>- <Link href={pullRequestUrl} target="_blank" rel="noreferrer">- Github- </Link>- </Button>- </div>- <div className="px-5 py-3 border-t flex items-center justify-between">- <div>- <p>Not sure what to do?</p>- <p className="text-foreground-light">Browse our documentation</p>- </div>- <Button type="default" iconRight={<IconExternalLink />}>- Docs- </Button>- </div>- </div>- )}- </div>- </BranchContainer>- ) : (- pullRequests?.map((pr) => {- const branch = branches?.find((branch) => branch.git_branch === pr.branch)- return (- <PullRequestPanel- key={pr.id}- pr={pr}- onSelectDelete={() => {- if (branch !== undefined) onSelectDeleteBranch(branch)- }}- />- )- })- )}- </>- )}- </>- )-}--export default PullRequestsdiff --git a/studio/data/api.d.ts b/studio/data/api.d.tsindex d84f3d4878e..4d217ede240 100644--- a/studio/data/api.d.ts+++ b/studio/data/api.d.ts@@ -892,6 +892,12 @@ export interface paths {/** Gets usage stats */get: operations['OrgUsageSystemController_getDailyStats']}+ '/system/organizations/{slug}/billing/subscription': {+ /** Gets the current subscription */+ get: operations['OrgSubscriptionSystemController_getSubscription']+ /** Updates subscription */+ put: operations['OrgSubscriptionSystemController_updateSubscription']+ }'/system/integrations/vercel/webhooks': {/** Processes Vercel event */post: operations['VercelWebhooksController_processEvent']@@ -1655,6 +1661,8 @@ export interface paths {'/partners/flyio/extensions/{extension_id}': {/** Gets database status */get: operations['ExtensionController_getResourceStatus']+ /** Deletes a database */+ delete: operations['ExtensionController_deleteResource']}'/partners/flyio/extensions/{extension_id}/sso': {/** Starts Flyio single sign on */@@ -1798,7 +1806,6 @@ export interface components {SMS_TEXTLOCAL_API_KEY: stringSMS_TEXTLOCAL_SENDER: stringSMS_TWILIO_ACCOUNT_SID: string- SMS_TWILIO_CONTENT_SID: stringSMS_TWILIO_AUTH_TOKEN: stringSMS_TWILIO_MESSAGE_SERVICE_SID: stringSMS_TWILIO_VERIFY_ACCOUNT_SID: string@@ -1930,7 +1937,6 @@ export interface components {SMS_TEST_OTP_VALID_UNTIL?: stringSMS_TEXTLOCAL_API_KEY?: stringSMS_TEXTLOCAL_SENDER?: string- SMS_TWILIO_CONTENT_SID?: stringSMS_TWILIO_ACCOUNT_SID?: stringSMS_TWILIO_AUTH_TOKEN?: stringSMS_TWILIO_CONTENT_SID?: string@@ -2060,7 +2066,6 @@ export interface components {SMS_MESSAGEBIRD_ORIGINATOR: stringSMS_TEXTLOCAL_API_KEY: stringSMS_TEXTLOCAL_SENDER: string- SMS_TWILIO_CONTENT_SID: stringSMS_TWILIO_ACCOUNT_SID: stringSMS_TWILIO_AUTH_TOKEN: stringSMS_TWILIO_MESSAGE_SERVICE_SID: string@@ -3314,6 +3319,7 @@ export interface components {is_readonly_mode_enabled?: booleanis_branch_enabled: booleanpreview_branch_refs: string[]+ disk_volume_size_gb?: number}AmiSearchOptions: {search_tags?: Record<string, never>@@ -3370,6 +3376,7 @@ export interface components {is_readonly_mode_enabled?: booleanis_branch_enabled: booleanpreview_branch_refs: string[]+ disk_volume_size_gb?: numberendpoint: stringanon_key: stringservice_key: string@@ -4154,15 +4161,21 @@ export interface components {GetGithubBranch: {name: string}+ GitRef: {+ repo: string+ branch: string+ label: string+ }GetGithubPullRequest: {id: numberurl: stringtitle: string+ target: components['schemas']['GitRef']+ created_at: string+ created_by?: stringrepo: stringbranch: stringlabel: string- created_at: string- created_by?: string}FunctionResponse: {id: string@@ -4239,6 +4252,7 @@ export interface components {tier: 'tier_payg' | 'tier_pro' | 'tier_free' | 'tier_team' | 'tier_enterprise'custom_usage_fees?: components['schemas']['BillingUsageBasedPrice'][]tier_price_id?: string+ compute_credits?: numberpayment_method_id?: stringexisting_org_subscription_id?: stringdryRun?: boolean@@ -4304,6 +4318,7 @@ export interface components {parent_project_ref: stringis_default: booleangit_branch?: string+ pr_number?: numbercreated_at: stringupdated_at: string}@@ -4400,6 +4415,9 @@ export interface components {target_upgrade_versions: components['schemas']['ProjectVersion'][]requires_manual_intervention: string | nullpotential_breaking_changes: string[]+ duration_estimate_hours: number+ legacy_auth_custom_roles: string[]+ extension_dependent_objects: string[]}DatabaseUpgradeStatus: {initiated_at: string@@ -4451,7 +4469,7 @@ export interface components {| components['schemas']['AuthHealthResponse']| components['schemas']['RealtimeHealthResponse']/** @enum {string} */- name: 'auth' | 'realtime' | 'rest' | 'storage'+ name: 'auth' | 'db' | 'realtime' | 'rest' | 'storage'healthy: booleanerror?: string}@@ -4489,7 +4507,7 @@ export interface components {}AttributeMapping: {keys: {- [key: string]: components['schemas']['AttributeValue'] | undefined+ [key: string]: components['schemas']['AttributeValue']}}CreateProviderBody: {@@ -4775,13 +4793,17 @@ 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: never+ 200: {+ content: never+ }}}/** Get notifications */@@ -4800,7 +4822,9 @@ export interface operations {}}/** @description Failed to retrieve notifications */- 500: never+ 500: {+ content: never+ }}}/** Delete notifications */@@ -4817,7 +4841,9 @@ export interface operations {}}/** @description Failed to delete notifications */- 500: never+ 500: {+ content: never+ }}}/** Update notifications */@@ -4834,7 +4860,9 @@ export interface operations {}}/** @description Failed to update notifications */- 500: never+ 500: {+ content: never+ }}}/** Reset password for email */@@ -4845,7 +4873,9 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }}}/** Send feedback */@@ -4862,7 +4892,9 @@ export interface operations {}}/** @description Failed to send feedback */- 500: never+ 500: {+ content: never+ }}}/** Send exit survey to HubSpot */@@ -4879,7 +4911,9 @@ export interface operations {}}/** @description Failed to send exit survey */- 500: never+ 500: {+ content: never+ }}}/** Sign up with email and password */@@ -4890,7 +4924,9 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }}}/** Gets project's status */@@ -4902,9 +4938,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to get project's status */- 500: never+ 500: {+ content: never+ }}}/**@@ -4935,7 +4975,9 @@ export interface operations {}}/** @description Failed to retrieve GoTrue config */- 500: never+ 500: {+ content: never+ }}}/** Updates GoTrue config */@@ -4958,7 +5000,9 @@ export interface operations {}}/** @description Failed to update GoTrue config */- 500: never+ 500: {+ content: never+ }}}/** Sends an invite to the given email */@@ -4980,9 +5024,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to send an invite to the given email */- 500: never+ 500: {+ content: never+ }}}/** Sends a magic link to the given email */@@ -5004,9 +5052,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to send a magic link to the given email */- 500: never+ 500: {+ content: never+ }}}/** Sends an OTP to the given phone number */@@ -5028,9 +5080,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to send an OTP to the given phone number */- 500: never+ 500: {+ content: never+ }}}/** Sends a recovery email to the given email */@@ -5052,9 +5108,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to send a recovery email to the given email */- 500: never+ 500: {+ content: never+ }}}/** Gets GoTrue template */@@ -5072,7 +5132,9 @@ export interface operations {}}/** @description Failed to retrieve GoTrue template */- 500: never+ 500: {+ content: never+ }}}/** Gets users */@@ -5095,9 +5157,13 @@ export interface operations {'application/json': components['schemas']['UsersResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve users */- 500: never+ 500: {+ content: never+ }}}/** Delete user with given ID */@@ -5119,9 +5185,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete user */- 500: never+ 500: {+ content: never+ }}}/** Delete all factors associated to a user */@@ -5139,9 +5209,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete factors */- 500: never+ 500: {+ content: never+ }}}/** Gets project backups */@@ -5159,7 +5233,9 @@ export interface operations {}}/** @description Failed to get project backups */- 500: never+ 500: {+ content: never+ }}}/** Download project backup */@@ -5182,7 +5258,9 @@ export interface operations {}}/** @description Failed to download project backup */- 500: never+ 500: {+ content: never+ }}}/** Restore project backup */@@ -5199,9 +5277,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to restore project backup */- 500: never+ 500: {+ content: never+ }}}/** Restore project with a physical backup */@@ -5218,9 +5300,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to restore project with physical backup */- 500: never+ 500: {+ content: never+ }}}/** Restore project to a previous point in time */@@ -5237,9 +5323,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to restore project to a previous point in time */- 500: never+ 500: {+ content: never+ }}}/** Gets hook logs with the given ID */@@ -5264,9 +5354,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get hook logs with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Enables Database Webhooks on the project */@@ -5278,10 +5372,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to enable Database Webhooks on the project */- 500: never+ 500: {+ content: never+ }}}/** Gets the status of owner reassignment */@@ -5299,7 +5399,9 @@ export interface operations {}}/** @description Failed to get status of owner reassignment */- 500: never+ 500: {+ content: never+ }}}/** Reassigns object owner from supabase_admin to temp */@@ -5319,9 +5421,13 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to reassign owner on the project */- 500: never+ 500: {+ content: never+ }}}/** Rollback object owner from temp to supabase_admin */@@ -5341,9 +5447,13 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to rollback owner on the project */- 500: never+ 500: {+ content: never+ }}}/** Reassigns object owner from temp to postgres */@@ -5363,9 +5473,13 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to reassign owner on the project */- 500: never+ 500: {+ content: never+ }}}/**@@ -5380,7 +5494,9 @@ export interface operations {}}/** @description Unexpected error listing organizations */- 500: never+ 500: {+ content: never+ }}}/** Creates an organization (v2) */@@ -5397,7 +5513,9 @@ export interface operations {}}/** @description Unexpected error creating an organization */- 500: never+ 500: {+ content: never+ }}}/** Deletes organization */@@ -5409,10 +5527,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to delete organization */- 500: never+ 500: {+ content: never+ }}}/** Updates organization */@@ -5435,7 +5559,9 @@ export interface operations {}}/** @description Failed to update organization */- 500: never+ 500: {+ content: never+ }}}/** Gets the Stripe customer */@@ -5453,7 +5579,9 @@ export interface operations {}}/** @description Failed to retrieve the Stripe customer */- 500: never+ 500: {+ content: never+ }}}/** Updates the Stripe customer */@@ -5470,9 +5598,13 @@ export interface operations {'application/json': components['schemas']['CustomerUpdateResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update the Stripe customer */- 500: never+ 500: {+ content: never+ }}}/** Gets the given organization's roles */@@ -5490,7 +5622,9 @@ export interface operations {}}/** @description Failed to retrieve the organization's roles */- 500: never+ 500: {+ content: never+ }}}/** Gets the given organization's tax IDs */@@ -5507,9 +5641,13 @@ export interface operations {'application/json': components['schemas']['TaxIdResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve the organization's tax IDs */- 500: never+ 500: {+ content: never+ }}}/** Creates a tax ID for the given organization */@@ -5531,9 +5669,13 @@ export interface operations {'application/json': components['schemas']['CreateTaxIdResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create the tax ID */- 500: never+ 500: {+ content: never+ }}}/** Delete the tax ID with the given ID */@@ -5555,9 +5697,13 @@ export interface operations {'application/json': components['schemas']['DeleteTaxIdResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete the tax ID */- 500: never+ 500: {+ content: never+ }}}/** Transfers the organization to the given member */@@ -5568,9 +5714,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to update owner */- 500: never+ 500: {+ content: never+ }}}/** Gets daily organization stats */@@ -5618,7 +5768,9 @@ export interface operations {}}/** @description Failed to get daily organization stats */- 500: never+ 500: {+ content: never+ }}}/** Gets usage stats */@@ -5636,7 +5788,9 @@ export interface operations {}}/** @description Failed to get usage stats */- 500: never+ 500: {+ content: never+ }}}/** Get standard security questionnaire URL */@@ -5692,7 +5846,9 @@ export interface operations {}}/** @description Failed to get an organization's audit logs */- 500: never+ 500: {+ content: never+ }}}/** Gets invited users */@@ -5710,7 +5866,9 @@ export interface operations {}}/** @description Failed to get invited users */- 500: never+ 500: {+ content: never+ }}}/** Invites user */@@ -5733,7 +5891,9 @@ export interface operations {}}/** @description Failed to invite user */- 500: never+ 500: {+ content: never+ }}}/** Delete invited user */@@ -5748,9 +5908,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to delete invited user */- 500: never+ 500: {+ content: never+ }}}/** Gets invite */@@ -5771,7 +5935,9 @@ export interface operations {}}/** @description Failed to get invite */- 500: never+ 500: {+ content: never+ }}}/** Joins organization */@@ -5792,7 +5958,9 @@ export interface operations {}}/** @description Failed to join organization */- 500: never+ 500: {+ content: never+ }}}/** Leaves the given organization */@@ -5810,7 +5978,9 @@ export interface operations {}}/** @description Failed to leave organization */- 500: never+ 500: {+ content: never+ }}}/** Leaves the given organization */@@ -5833,7 +6003,9 @@ export interface operations {}}/** @description Failed to leave organization */- 500: never+ 500: {+ content: never+ }}}/** Gets organization's members */@@ -5851,7 +6023,9 @@ export interface operations {}}/** @description Failed to retrieve organization's members */- 500: never+ 500: {+ content: never+ }}}/** Removes organization member */@@ -5864,9 +6038,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to remove organization member */- 500: never+ 500: {+ content: never+ }}}/** Updates organization member */@@ -5884,9 +6062,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to update organization member */- 500: never+ 500: {+ content: never+ }}}/** Gets organization members who have reached their free project limit */@@ -5904,7 +6086,9 @@ export interface operations {}}/** @description Failed to retrieve organization members who have reached their free project limit */- 500: never+ 500: {+ content: never+ }}}/** Gets Stripe payment methods for the given organization */@@ -5921,9 +6105,13 @@ export interface operations {'application/json': components['schemas']['PaymentsResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get Stripe payment methods */- 500: never+ 500: {+ content: never+ }}}/** Detach Stripe payment method with the given card ID */@@ -5939,9 +6127,13 @@ export interface operations {'application/json': components['schemas']['DetachPaymentResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to detach Stripe payment method */- 500: never+ 500: {+ content: never+ }}}/** Sets up a payment method */@@ -5953,7 +6145,9 @@ export interface operations {}}/** @description Failed to set up a payment method */- 500: never+ 500: {+ content: never+ }}}/** Gets the current subscription */@@ -5970,9 +6164,13 @@ export interface operations {'application/json': components['schemas']['GetSubscriptionResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve subscription */- 500: never+ 500: {+ content: never+ }}}/** Updates subscription */@@ -5989,10 +6187,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to update subscription */- 500: never+ 500: {+ content: never+ }}}/** Preview subscription changes */@@ -6009,10 +6213,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to preview subscription changes */- 500: never+ 500: {+ content: never+ }}}/** Deletes any upcoming subscription schedule */@@ -6024,10 +6234,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to update subscription change */- 500: never+ 500: {+ content: never+ }}}/** Gets subscription plans */@@ -6044,9 +6260,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get subscription plans */- 500: never+ 500: {+ content: never+ }}}/** Gets the upcoming invoice */@@ -6063,9 +6283,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve upcoming invoice */- 500: never+ 500: {+ content: never+ }}}/** Retrieve column privileges */@@ -6085,9 +6309,13 @@ export interface operations {'application/json': components['schemas']['PostgresColumnPrivileges'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve column privileges */- 500: never+ 500: {+ content: never+ }}}/** Grant column privileges */@@ -6112,9 +6340,13 @@ export interface operations {'application/json': components['schemas']['PostgresColumnPrivileges'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to grant column privileges */- 500: never+ 500: {+ content: never+ }}}/** Revoke column privileges */@@ -6139,9 +6371,13 @@ export interface operations {'application/json': components['schemas']['PostgresColumnPrivileges'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to revoke column privileges */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.columns */@@ -6165,9 +6401,13 @@ export interface operations {'application/json': components['schemas']['PostgresColumn'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.columns */- 500: never+ 500: {+ content: never+ }}}/** Creates project pg.column */@@ -6192,9 +6432,13 @@ export interface operations {'application/json': components['schemas']['PostgresColumn']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.column */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.column with the given ID */@@ -6219,9 +6463,13 @@ export interface operations {'application/json': components['schemas']['PostgresColumn']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.column with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.column with the given ID */@@ -6250,9 +6498,13 @@ export interface operations {'application/json': components['schemas']['PostgresColumn']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.column with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.extensions */@@ -6272,9 +6524,13 @@ export interface operations {'application/json': components['schemas']['PostgresExtension'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.extensions */- 500: never+ 500: {+ content: never+ }}}/** Creates project pg.extension */@@ -6299,9 +6555,13 @@ export interface operations {'application/json': components['schemas']['PostgresExtension']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.extension */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.extension with the given ID */@@ -6325,9 +6585,13 @@ export interface operations {'application/json': components['schemas']['PostgresExtension']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.extension with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Retrieve database foreign tables */@@ -6353,9 +6617,13 @@ export interface operations {'application/json': components['schemas']['PostgresForeignTable'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve database foreign tables */- 500: never+ 500: {+ content: never+ }}}/**@@ -6375,9 +6643,13 @@ export interface operations {'application/json': components['schemas']['FunctionResponse'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's functions */- 500: never+ 500: {+ content: never+ }}}/**@@ -6411,9 +6683,13 @@ export interface operations {'application/json': components['schemas']['FunctionResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create project's function */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.function with the given ID */@@ -6437,9 +6713,13 @@ export interface operations {'application/json': components['schemas']['PostgresFunction']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.function with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.function with the given ID */@@ -6468,9 +6748,13 @@ export interface operations {'application/json': components['schemas']['PostgresFunction']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.function with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Retrieve database materialized views */@@ -6498,9 +6782,13 @@ export interface operations {'application/json': components['schemas']['PostgresMaterializedView'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve database materialized views */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.policies */@@ -6524,9 +6812,13 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.policies */- 500: never+ 500: {+ content: never+ }}}/** Creates project pg.policy */@@ -6551,9 +6843,13 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.policy */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.policy with the given ID */@@ -6577,9 +6873,13 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.policy with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.policy with the given ID */@@ -6608,9 +6908,13 @@ export interface operations {'application/json': components['schemas']['PostgresPolicy']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.policy with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.publications */@@ -6630,9 +6934,13 @@ export interface operations {'application/json': components['schemas']['PostgresPublication'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.publications */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.publications */@@ -6657,9 +6965,13 @@ export interface operations {'application/json': components['schemas']['PostgresPublication']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.publication */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.publication with the given ID */@@ -6683,9 +6995,13 @@ export interface operations {'application/json': components['schemas']['PostgresPublication']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.publication with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.publication with the given ID */@@ -6714,9 +7030,13 @@ export interface operations {'application/json': components['schemas']['PostgresPublication']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.publication with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Run sql query */@@ -6741,9 +7061,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to run sql query */- 500: never+ 500: {+ content: never+ }}}/** Format sql query */@@ -6766,7 +7090,9 @@ export interface operations {}}/** @description Failed to format sql query */- 500: never+ 500: {+ content: never+ }}}/** Validate sql query */@@ -6789,7 +7115,9 @@ export interface operations {}}/** @description Failed to validate sql query */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.roles */@@ -6809,9 +7137,13 @@ export interface operations {'application/json': components['schemas']['PostgresRole'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.roles */- 500: never+ 500: {+ content: never+ }}}/** Creates project pg.role */@@ -6836,9 +7168,13 @@ export interface operations {'application/json': components['schemas']['PostgresRole']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.role */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.role with the given ID */@@ -6862,9 +7198,13 @@ export interface operations {'application/json': components['schemas']['PostgresRole']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.role with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.role with the given ID */@@ -6893,9 +7233,13 @@ export interface operations {'application/json': components['schemas']['PostgresRole']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.role with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.schemas */@@ -6915,9 +7259,13 @@ export interface operations {'application/json': components['schemas']['PostgresSchema'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.schemas */- 500: never+ 500: {+ content: never+ }}}/** Creates project pg.schema */@@ -6942,9 +7290,13 @@ export interface operations {'application/json': components['schemas']['PostgresSchema']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.schema */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.schema with the given ID */@@ -6968,9 +7320,13 @@ export interface operations {'application/json': components['schemas']['PostgresSchema']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.schema with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.schema with the given ID */@@ -6999,9 +7355,13 @@ export interface operations {'application/json': components['schemas']['PostgresSchema']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.schema with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Searches project pg.tables. Return maximum 50 results. */@@ -7026,9 +7386,13 @@ export interface operations {'application/json': components['schemas']['Table'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to search pg.tables */- 500: never+ 500: {+ content: never+ }}}/** Searches project pg.columns. Return maximum 50 results. */@@ -7053,9 +7417,13 @@ export interface operations {'application/json': components['schemas']['Column'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to search pg.columns */- 500: never+ 500: {+ content: never+ }}}/** Retrieve table privileges */@@ -7075,9 +7443,13 @@ export interface operations {'application/json': components['schemas']['PostgresTablePrivileges'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve table privileges */- 500: never+ 500: {+ content: never+ }}}/** Grant table privileges */@@ -7102,9 +7474,13 @@ export interface operations {'application/json': components['schemas']['PostgresTablePrivileges'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to grant table privileges */- 500: never+ 500: {+ content: never+ }}}/** Revoke table privileges */@@ -7129,9 +7505,13 @@ export interface operations {'application/json': components['schemas']['PostgresTablePrivileges'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to revoke table privileges */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.tables or pg.table with the given ID */@@ -7161,9 +7541,13 @@ export interface operations {'application/json': components['schemas']['PostgresTable'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.tables or pg.table with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Creates project pg.table */@@ -7188,9 +7572,13 @@ export interface operations {'application/json': components['schemas']['PostgresTable']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.table */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.table with the given ID */@@ -7215,9 +7603,13 @@ export interface operations {'application/json': components['schemas']['PostgresTable']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.table with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.table with the given ID */@@ -7246,9 +7638,13 @@ export interface operations {'application/json': components['schemas']['PostgresTable']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.table with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.triggers */@@ -7272,9 +7668,13 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.triggers */- 500: never+ 500: {+ content: never+ }}}/** Creates project pg.trigger */@@ -7299,9 +7699,13 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create pg.trigger */- 500: never+ 500: {+ content: never+ }}}/** Deletes project pg.trigger with the given ID */@@ -7325,9 +7729,13 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete pg.trigger with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Updates project pg.trigger with the given ID */@@ -7356,9 +7764,13 @@ export interface operations {'application/json': components['schemas']['PostgresTrigger']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update pg.trigger with the given ID */- 500: never+ 500: {+ content: never+ }}}/** Gets project pg.types */@@ -7382,9 +7794,13 @@ export interface operations {'application/json': components['schemas']['PostgresType'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get pg.types */- 500: never+ 500: {+ content: never+ }}}/** Retrieve database views */@@ -7413,9 +7829,13 @@ export interface operations {'application/json': components['schemas']['PostgresView'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve database views */- 500: never+ 500: {+ content: never+ }}}/** Gets the user's access tokens */@@ -7427,7 +7847,9 @@ export interface operations {}}/** @description Failed to get user's access tokens */- 500: never+ 500: {+ content: never+ }}}/** Creates a new access token */@@ -7444,7 +7866,9 @@ export interface operations {}}/** @description Failed to create access token */- 500: never+ 500: {+ content: never+ }}}/** Gets the access token with the given ID */@@ -7462,7 +7886,9 @@ export interface operations {}}/** @description Failed to get access token */- 500: never+ 500: {+ content: never+ }}}/** Deletes the access token with the given ID */@@ -7480,7 +7906,9 @@ export interface operations {}}/** @description Failed to delete access token */- 500: never+ 500: {+ content: never+ }}}/** Gets a user's audit logs */@@ -7500,7 +7928,9 @@ export interface operations {}}/** @description Failed to get a user's audit logs */- 500: never+ 500: {+ content: never+ }}}/** Search profiles by username, email with the given keywords */@@ -7517,7 +7947,9 @@ export interface operations {}}/** @description Failed to search profiles with the given keywords */- 500: never+ 500: {+ content: never+ }}}/** Gets the user's subscription statistics */@@ -7529,7 +7961,9 @@ export interface operations {}}/** @description Failed to retrieve user's subscription statistics */- 500: never+ 500: {+ content: never+ }}}/** Check password strength */@@ -7546,7 +7980,9 @@ export interface operations {}}/** @description Failed to check password strength */- 500: never+ 500: {+ content: never+ }}}/** Gets all the user's permissions */@@ -7558,7 +7994,9 @@ export interface operations {}}/** @description Failed to retrieve permissions */- 500: never+ 500: {+ content: never+ }}}/** Gets the user's profile */@@ -7570,7 +8008,9 @@ export interface operations {}}/** @description Failed to retrieve user's profile */- 500: never+ 500: {+ content: never+ }}}/** Creates user's profile */@@ -7582,17 +8022,25 @@ export interface operations {}}/** @description Failed to create user's profile */- 500: never+ 500: {+ content: never+ }}}/** Deletes user's profile */ProfileController_deleteProfile: {responses: {- 200: never+ 200: {+ content: never+ }/** @description Forbidden action */- 403: never+ 403: {+ content: never+ }/** @description Failed to delete user's profile */- 500: never+ 500: {+ content: never+ }}}/** Updates user's profile */@@ -7609,7 +8057,9 @@ export interface operations {}}/** @description Failed to update user's profile */- 500: never+ 500: {+ content: never+ }}}/**@@ -7660,7 +8110,9 @@ export interface operations {}}/** @description Failed to retrieve project's content */- 500: never+ 500: {+ content: never+ }}}/** Updates project's content */@@ -7683,7 +8135,9 @@ export interface operations {}}/** @description Failed to update project's content */- 500: never+ 500: {+ content: never+ }}}/** Creates project's content */@@ -7706,7 +8160,9 @@ export interface operations {}}/** @description Failed to create project's content */- 500: never+ 500: {+ content: never+ }}}/** Deletes project's content */@@ -7723,7 +8179,9 @@ export interface operations {}}/** @description Failed to delete project's content */- 500: never+ 500: {+ content: never+ }}}/** Updates project's content */@@ -7745,7 +8203,9 @@ export interface operations {}}/** @description Failed to update project's content */- 500: never+ 500: {+ content: never+ }}}/** Gets daily project stats */@@ -7769,7 +8229,9 @@ export interface operations {}}/** @description Failed to get daily project stats */- 500: never+ 500: {+ content: never+ }}}/** Updates the database password */@@ -7786,10 +8248,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to update database password */- 500: never+ 500: {+ content: never+ }}}/** Gets project health check */@@ -7801,10 +8269,16 @@ export interface operations {}}responses: {- 200: never- 403: never- /** @description Failed to get project health check */- 500: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }+ /** @description Failed to get project health check */+ 500: {+ content: never+ }}}/** Gets project OpenApi */@@ -7821,9 +8295,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get project OpenApi */- 500: never+ 500: {+ content: never+ }}}/** Queries project Graphql */@@ -7848,9 +8326,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to query project Graphql */- 500: never+ 500: {+ content: never+ }}}/** Gets project's usage metrics */@@ -7881,7 +8363,9 @@ export interface operations {}}/** @description Failed to get project's usage metrics */- 500: never+ 500: {+ content: never+ }}}/** Gets project's invoices */@@ -7903,7 +8387,9 @@ export interface operations {}}/** @description Failed to get project's invoices */- 500: never+ 500: {+ content: never+ }}}/** Gets project's invoice count */@@ -7915,9 +8401,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to get project's invoice count */- 500: never+ 500: {+ content: never+ }}}/** Pauses the project */@@ -7929,9 +8419,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to pause the project */- 500: never+ 500: {+ content: never+ }}}/** Resize database disk */@@ -7948,9 +8442,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to resize database disk */- 500: never+ 500: {+ content: never+ }}}/** Restarts project */@@ -7962,10 +8460,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to restart project */- 500: never+ 500: {+ content: never+ }}}/** Gets a specific project that belongs to the authenticated user */@@ -7998,7 +8502,9 @@ export interface operations {'application/json': components['schemas']['ProjectRefResponse']}}- 403: never+ 403: {+ content: never+ }}}/** Updates the given project */@@ -8020,9 +8526,13 @@ export interface operations {'application/json': components['schemas']['ProjectRefResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project */- 500: never+ 500: {+ content: never+ }}}/** Restores project */@@ -8040,7 +8550,9 @@ export interface operations {}}/** @description Failed to restore project */- 500: never+ 500: {+ content: never+ }}}/** Restarts given services */@@ -8057,9 +8569,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to restart given services */- 500: never+ 500: {+ content: never+ }}}/** Gets project's settings */@@ -8077,7 +8593,9 @@ export interface operations {}}/** @description Failed to retrieve project's settings */- 500: never+ 500: {+ content: never+ }}}/**@@ -8098,10 +8616,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to update project */- 500: never+ 500: {+ content: never+ }}}/** Gets project's usage */@@ -8119,7 +8643,9 @@ export interface operations {}}/** @description Failed to retrieve project's usage */- 500: never+ 500: {+ content: never+ }}}/** Previews transfering a project to a different organizations, shows eligibility and impact. */@@ -8141,7 +8667,9 @@ export interface operations {'application/json': components['schemas']['PreviewProjectTransferResponse']}}- 403: never+ 403: {+ content: never+ }}}/** Transfers a project to a different organization. */@@ -8158,8 +8686,12 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }}}/** Gets a project's function invocation statistics */@@ -8180,9 +8712,13 @@ export interface operations {'application/json': components['schemas']['AnalyticsResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get project's function invocation statistics */- 500: never+ 500: {+ content: never+ }}}/** Gets project's logs */@@ -8207,9 +8743,13 @@ export interface operations {'application/json': components['schemas']['AnalyticsResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get project's logs */- 500: never+ 500: {+ content: never+ }}}/** Gets project's usage api counts */@@ -8229,9 +8769,13 @@ export interface operations {'application/json': components['schemas']['AnalyticsResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get project's usage api counts */- 500: never+ 500: {+ content: never+ }}}/** Gets project's pgbouncer config */@@ -8249,7 +8793,9 @@ export interface operations {}}/** @description Failed to retrieve project's pgbouncer config */- 500: never+ 500: {+ content: never+ }}}/** Updates project's pgbouncer config */@@ -8271,9 +8817,13 @@ export interface operations {'application/json': components['schemas']['UpdatePoolingConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project's pgbouncer config */- 500: never+ 500: {+ content: never+ }}}/** Gets project's postgrest config */@@ -8290,9 +8840,13 @@ export interface operations {'application/json': components['schemas']['PostgrestConfigWithJWTSecretResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's postgrest config */- 500: never+ 500: {+ content: never+ }}}/** Updates project's postgrest config */@@ -8314,9 +8868,13 @@ export interface operations {'application/json': components['schemas']['PostgrestConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project's postgrest config */- 500: never+ 500: {+ content: never+ }}}/** Gets project's Postgres config */@@ -8334,7 +8892,9 @@ export interface operations {}}/** @description Failed to retrieve project's Postgres config */- 500: never+ 500: {+ content: never+ }}}/** Updates project's Postgres config */@@ -8357,7 +8917,9 @@ export interface operations {}}/** @description Failed to update project's Postgres config */- 500: never+ 500: {+ content: never+ }}}/** Updates project's secrets config */@@ -8380,7 +8942,9 @@ export interface operations {}}/** @description Failed to update project's secrets config */- 500: never+ 500: {+ content: never+ }}}/** Gets project's storage config */@@ -8397,9 +8961,13 @@ export interface operations {'application/json': components['schemas']['StorageConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's storage config */- 500: never+ 500: {+ content: never+ }}}/** Updates project's storage config */@@ -8421,9 +8989,13 @@ export interface operations {'application/json': components['schemas']['UpdateStorageConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project's storage config */- 500: never+ 500: {+ content: never+ }}}/** Gets project addons */@@ -8440,9 +9012,13 @@ export interface operations {'application/json': components['schemas']['ProjectAddonsResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get project addons */- 500: never+ 500: {+ content: never+ }}}/** Updates project addon */@@ -8459,10 +9035,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to update project addon */- 500: never+ 500: {+ content: never+ }}}/** Removes project addon */@@ -8475,10 +9057,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to remove project addon */- 500: never+ 500: {+ content: never+ }}}/** Gets subscription plans */@@ -8495,9 +9083,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get subscription plans */- 500: never+ 500: {+ content: never+ }}}/** Gets the upcoming invoice */@@ -8514,9 +9106,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve upcoming invoice */- 500: never+ 500: {+ content: never+ }}}/**@@ -8537,7 +9133,9 @@ export interface operations {}}/** @description Failed to retrieve project's api info */- 500: never+ 500: {+ content: never+ }}}/** Gets the last JWT secret update status */@@ -8555,7 +9153,9 @@ export interface operations {}}/** @description Failed to retrieve JWT secret update status */- 500: never+ 500: {+ content: never+ }}}/** Gets bucket */@@ -8574,9 +9174,13 @@ export interface operations {'application/json': components['schemas']['StorageBucket']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get bucket */- 500: never+ 500: {+ content: never+ }}}/** Deletes bucket */@@ -8590,10 +9194,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to delete bucket */- 500: never+ 500: {+ content: never+ }}}/** Updates bucket */@@ -8612,10 +9222,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to update bucket */- 500: never+ 500: {+ content: never+ }}}/** Removes all objects inside a single bucket. */@@ -8629,10 +9245,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to empty bucket */- 500: never+ 500: {+ content: never+ }}}/** Gets list of buckets */@@ -8649,9 +9271,13 @@ export interface operations {'application/json': components['schemas']['StorageBucket'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get list of buckets */- 500: never+ 500: {+ content: never+ }}}/** Create bucket */@@ -8673,9 +9299,13 @@ export interface operations {'application/json': string}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create bucket */- 500: never+ 500: {+ content: never+ }}}/** Gets list of objects with the given bucket */@@ -8699,9 +9329,13 @@ export interface operations {'application/json': components['schemas']['StorageObject'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get list of objects with the given bucket */- 500: never+ 500: {+ content: never+ }}}/** Creates URL for an asset in a public bucket */@@ -8725,9 +9359,13 @@ export interface operations {'application/json': components['schemas']['PublicUrlResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create public URL */- 500: never+ 500: {+ content: never+ }}}/** Downloads a file from a private bucket */@@ -8746,10 +9384,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to download the file */- 500: never+ 500: {+ content: never+ }}}/** Creates a signed URL */@@ -8773,9 +9417,13 @@ export interface operations {'application/json': components['schemas']['SignedUrlResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to create a signed URL */- 500: never+ 500: {+ content: never+ }}}/** Gets multiple signed URLs */@@ -8799,9 +9447,13 @@ export interface operations {'application/json': components['schemas']['SignedUrlsResponse'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get multiple signed URLs */- 500: never+ 500: {+ content: never+ }}}/** Copys object */@@ -8825,9 +9477,13 @@ export interface operations {'application/json': components['schemas']['CopyObjectResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to copy object */- 500: never+ 500: {+ content: never+ }}}/** Move object */@@ -8846,10 +9502,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to move object */- 500: never+ 500: {+ content: never+ }}}/** Deletes objects */@@ -8868,10 +9530,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to delete objects */- 500: never+ 500: {+ content: never+ }}}/** Gets the total count of invoices for the given customer */@@ -8883,9 +9551,17 @@ export interface operations {}}responses: {- 200: never+ 200: {+ headers: {+ /** @description total count value */+ 'X-Total-Count'?: unknown+ }+ content: never+ }/** @description Failed to retrieve the total count of invoices */- 500: never+ 500: {+ content: never+ }}}/** Gets information about overdue invoices that relate to the authenticated user */@@ -8912,7 +9588,9 @@ export interface operations {}}/** @description Failed to retrieve invoice */- 500: never+ 500: {+ content: never+ }}}/** Sends analytics server event */@@ -8923,9 +9601,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to send analytics server event */- 500: never+ 500: {+ content: never+ }}}/** Send analytics identify event */@@ -8936,9 +9618,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to send analytics identify event */- 500: never+ 500: {+ content: never+ }}}/** Send server page event */@@ -8949,9 +9635,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to send server page event */- 500: never+ 500: {+ content: never+ }}}/** Sends mixpanel server activity */@@ -8962,9 +9652,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to send mixpanel server activity */- 500: never+ 500: {+ content: never+ }}}/** Send mixpanel page event */@@ -8975,9 +9669,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to send mixpanel page event */- 500: never+ 500: {+ content: never+ }}}/** Gets the Vercel access token for the given code */@@ -8988,9 +9686,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to get Vercel access token */- 500: never+ 500: {+ content: never+ }}}/** Gets the project with the given ID if provided, otherwise gets the list of projects */@@ -9011,7 +9713,9 @@ export interface operations {}}/** @description Failed to get project(s) */- 500: never+ 500: {+ content: never+ }}}/** Gets the environment variables for the given project ID on behalf of the given team ID */@@ -9032,7 +9736,9 @@ export interface operations {}}/** @description Failed to get Vercel environment variables */- 500: never+ 500: {+ content: never+ }}}/** Creates the environment variable for the given project ID on behalf of the given team ID */@@ -9058,7 +9764,9 @@ export interface operations {}}/** @description Failed to get the environment variables */- 500: never+ 500: {+ content: never+ }}}/** Gets user's integrations */@@ -9076,7 +9784,9 @@ export interface operations {}}/** @description Failed to get user's integrations */- 500: never+ 500: {+ content: never+ }}}/** Gets integration with the given organization slug */@@ -9093,7 +9803,9 @@ export interface operations {}}/** @description Failed to get integration with the given organization slug */- 500: never+ 500: {+ content: never+ }}}/**@@ -9107,9 +9819,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to create vercel integration */- 500: never+ 500: {+ content: never+ }}}/** Removes Vercel organization integration with the given id */@@ -9120,9 +9836,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to remove Vercel organization integration with the given id */- 500: never+ 500: {+ content: never+ }}}/** Gets vercel projects with the given organization integration id */@@ -9144,7 +9864,9 @@ export interface operations {}}/** @description Failed to get vercel projects with the given organization integration id */- 500: never+ 500: {+ content: never+ }}}/** Gets installed vercel project connections for the given organization integration */@@ -9161,7 +9883,9 @@ export interface operations {}}/** @description Failed to get installed vercel connections for the given organization integration */- 500: never+ 500: {+ content: never+ }}}/** Connects a Vercel project to a supabase project */@@ -9178,7 +9902,9 @@ export interface operations {}}/** @description Failed to create project connection */- 500: never+ 500: {+ content: never+ }}}/** Syncs supabase project envs with given connection id */@@ -9189,9 +9915,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to sync supabase project envs with given connection id */- 500: never+ 500: {+ content: never+ }}}/** Deletes vercel project connection */@@ -9208,7 +9938,9 @@ export interface operations {}}/** @description Failed to delete vercel integration project connection */- 500: never+ 500: {+ content: never+ }}}/** Updates a Vercel connection for a supabase project */@@ -9224,9 +9956,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to update Vercel connection */- 500: never+ 500: {+ content: never+ }}}/** Create github integration */@@ -9243,7 +9979,9 @@ export interface operations {}}/** @description Failed to create github integration */- 500: never+ 500: {+ content: never+ }}}/** Gets installed github project connections for the given organization integration */@@ -9260,7 +9998,9 @@ export interface operations {}}/** @description Failed to get installed github connections for the given organization integration */- 500: never+ 500: {+ content: never+ }}}/** Connects a GitHub project to a supabase project */@@ -9271,9 +10011,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to create project connections */- 500: never+ 500: {+ content: never+ }}}/** Deletes github project connection */@@ -9284,9 +10028,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to delete github integration project connection */- 500: never+ 500: {+ content: never+ }}}/** Updates a GitHub connection for a supabase project */@@ -9302,9 +10050,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to update GitHub connection */- 500: never+ 500: {+ content: never+ }}}/** Gets github repos for the given organization */@@ -9325,7 +10077,9 @@ export interface operations {}}/** @description Failed to get github repos for the given organization */- 500: never+ 500: {+ content: never+ }}}/** Gets github branches for a given repo */@@ -9348,7 +10102,9 @@ export interface operations {}}/** @description Failed to get github branches for a given repo */- 500: never+ 500: {+ content: never+ }}}/** Gets a specific github branch for a given repo */@@ -9368,7 +10124,9 @@ export interface operations {}}/** @description Failed to get github branch for a given repo */- 500: never+ 500: {+ content: never+ }}}/** Gets github pull requests for a given repo */@@ -9392,7 +10150,9 @@ export interface operations {}}/** @description Failed to get github pull requests for a given repo */- 500: never+ 500: {+ content: never+ }}}/** Gets GoTrue template */@@ -9410,7 +10170,9 @@ export interface operations {}}/** @description Failed to retrieve GoTrue template */- 500: never+ 500: {+ content: never+ }}}/** Gets the status of owner reassignment */@@ -9428,7 +10190,9 @@ export interface operations {}}/** @description Failed to get status of owner reassignment */- 500: never+ 500: {+ content: never+ }}}/** Reassigns object owner from supabase_admin to temp */@@ -9448,9 +10212,13 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to reassign owner on the project */- 500: never+ 500: {+ content: never+ }}}/** Rollback object owner from temp to supabase_admin */@@ -9470,9 +10238,13 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to rollback owner on the project */- 500: never+ 500: {+ content: never+ }}}/** Reassigns object owner from temp to postgres */@@ -9492,9 +10264,13 @@ export interface operations {'application/json': components['schemas']['OwnerResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to reassign owner on the project */- 500: never+ 500: {+ content: never+ }}}/** Reset JWT if leaked keys found by GitHub secret scanning */@@ -9511,9 +10287,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to reset JWT */- 500: never+ 500: {+ content: never+ }}}/**@@ -9533,9 +10313,13 @@ export interface operations {'application/json': components['schemas']['FunctionResponse'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's functions */- 500: never+ 500: {+ content: never+ }}}/** Deletes all Edge Functions from a project */@@ -9547,7 +10331,9 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }}}/**@@ -9567,9 +10353,13 @@ export interface operations {'application/json': components['schemas']['SecretResponse'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's secrets */- 500: never+ 500: {+ content: never+ }}}/**@@ -9589,10 +10379,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to create project's secrets */- 500: never+ 500: {+ content: never+ }}}/**@@ -9617,9 +10413,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete secrets with given names */- 500: never+ 500: {+ content: never+ }}}/** Refreshes secrets */@@ -9631,9 +10431,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to refresh secrets */- 500: never+ 500: {+ content: never+ }}}/** Updates a project's health status. */@@ -9650,9 +10454,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to update health status. */- 500: never+ 500: {+ content: never+ }}}/** Records an HA event */@@ -9669,9 +10477,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to record HA event. */- 500: never+ 500: {+ content: never+ }}}/** Allows a project to obtain temporary credentials. */@@ -9694,7 +10506,9 @@ export interface operations {}}/** @description Failed to obtain temporary credentials. */- 500: never+ 500: {+ content: never+ }}}/** Updates project addon */@@ -9711,9 +10525,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to update project addon */- 500: never+ 500: {+ content: never+ }}}/** Removes project addon */@@ -9726,9 +10544,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to remove project addon */- 500: never+ 500: {+ content: never+ }}}/** Migrates org to org-level billing. */@@ -9739,9 +10561,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to migrate org. */- 500: never+ 500: {+ content: never+ }}}/** Previews the migration of the organization to the new org level billing. */@@ -9752,9 +10578,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to preview org billing organization */- 500: never+ 500: {+ content: never+ }}}/** Attaches subscription id to org and projects. */@@ -9765,9 +10595,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to preview org billing organization */- 500: never+ 500: {+ content: never+ }}}/** Handle update project jwt on completion */@@ -9779,7 +10613,9 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }}}/** Gets usage stats */@@ -9797,7 +10633,50 @@ export interface operations {}}/** @description Failed to get usage stats */- 500: never+ 500: {+ content: never+ }+ }+ }+ /** Gets the current subscription */+ OrgSubscriptionSystemController_getSubscription: {+ parameters: {+ path: {+ /** @description Organization slug */+ slug: string+ }+ }+ responses: {+ 200: {+ content: never+ }+ /** @description Failed to retrieve subscription */+ 500: {+ content: never+ }+ }+ }+ /** Updates subscription */+ OrgSubscriptionSystemController_updateSubscription: {+ parameters: {+ path: {+ /** @description Organization slug */+ slug: string+ }+ }+ requestBody: {+ content: {+ 'application/json': components['schemas']['UpdateSubscriptionV2AdminBody']+ }+ }+ responses: {+ 200: {+ content: never+ }+ /** @description Failed to update subscription */+ 500: {+ content: never+ }}}/** Processes Vercel event */@@ -9813,9 +10692,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to process Vercel event */- 500: never+ 500: {+ content: never+ }}}/** Processes GitHub event */@@ -9832,9 +10715,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to process GitHub event */- 500: never+ 500: {+ content: never+ }}}/** Processes Stripe event */@@ -9850,9 +10737,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to process Stripe event */- 500: never+ 500: {+ content: never+ }}}/**@@ -9892,7 +10783,9 @@ export interface operations {}}/** @description Failed to retrieve database branch */- 500: never+ 500: {+ content: never+ }}}/**@@ -9907,9 +10800,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to delete database branch */- 500: never+ 500: {+ content: never+ }}}/**@@ -9935,7 +10832,9 @@ export interface operations {}}/** @description Failed to update database branch */- 500: never+ 500: {+ content: never+ }}}ApiKeysController_getProjectApiKeys: {@@ -9951,7 +10850,9 @@ export interface operations {'application/json': components['schemas']['ApiKeyResponse'][]}}- 403: never+ 403: {+ content: never+ }}}/**@@ -9972,7 +10873,9 @@ export interface operations {}}/** @description Failed to retrieve database branches */- 500: never+ 500: {+ content: never+ }}}/**@@ -9998,7 +10901,9 @@ export interface operations {}}/** @description Failed to create database branch */- 500: never+ 500: {+ content: never+ }}}/**@@ -10013,9 +10918,13 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }/** @description Failed to disable preview branching */- 500: never+ 500: {+ content: never+ }}}/** Gets project's custom hostname config */@@ -10032,9 +10941,13 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's custom hostname config */- 500: never+ 500: {+ content: never+ }}}/** Deletes a project's custom hostname configuration */@@ -10046,10 +10959,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to delete project custom hostname configuration */- 500: never+ 500: {+ content: never+ }}}/** Updates project's custom hostname configuration */@@ -10071,9 +10990,13 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project custom hostname configuration */- 500: never+ 500: {+ content: never+ }}}/** Attempts to verify the DNS configuration for project's custom hostname configuration */@@ -10090,9 +11013,13 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to verify project custom hostname configuration */- 500: never+ 500: {+ content: never+ }}}/** Activates a custom hostname for a project. */@@ -10109,9 +11036,13 @@ export interface operations {'application/json': components['schemas']['UpdateCustomHostnameResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to activate project custom hostname configuration */- 500: never+ 500: {+ content: never+ }}}/** Gets project's network bans */@@ -10128,9 +11059,13 @@ export interface operations {'application/json': components['schemas']['NetworkBanResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's network bans */- 500: never+ 500: {+ content: never+ }}}/** Remove network bans. */@@ -10147,10 +11082,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to remove network bans. */- 500: never+ 500: {+ content: never+ }}}/** Gets project's network restrictions */@@ -10167,9 +11108,13 @@ export interface operations {'application/json': components['schemas']['NetworkRestrictionsResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's network restrictions */- 500: never+ 500: {+ content: never+ }}}/** Updates project's network restrictions */@@ -10191,9 +11136,13 @@ export interface operations {'application/json': components['schemas']['NetworkRestrictionsResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project network restrictions */- 500: never+ 500: {+ content: never+ }}}/** Gets project's pgsodium config */@@ -10210,9 +11159,13 @@ export interface operations {'application/json': components['schemas']['PgsodiumConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's pgsodium config */- 500: never+ 500: {+ content: never+ }}}/** Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible. */@@ -10234,9 +11187,13 @@ export interface operations {'application/json': components['schemas']['PgsodiumConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project's pgsodium config */- 500: never+ 500: {+ content: never+ }}}/**@@ -10256,9 +11213,13 @@ export interface operations {'application/json': components['schemas']['SecretResponse'][]}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's secrets */- 500: never+ 500: {+ content: never+ }}}/**@@ -10278,10 +11239,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to create project's secrets */- 500: never+ 500: {+ content: never+ }}}/**@@ -10306,9 +11273,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to delete secrets with given names */- 500: never+ 500: {+ content: never+ }}}/** Get project's SSL enforcement configuration. */@@ -10325,9 +11296,13 @@ export interface operations {'application/json': components['schemas']['SslEnforcementResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's SSL enforcement config */- 500: never+ 500: {+ content: never+ }}}/** Update project's SSL enforcement configuration. */@@ -10349,9 +11324,13 @@ export interface operations {'application/json': components['schemas']['SslEnforcementResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project's SSL enforcement configuration. */- 500: never+ 500: {+ content: never+ }}}/**@@ -10374,9 +11353,13 @@ export interface operations {'application/json': components['schemas']['TypescriptResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to generate TypeScript types */- 500: never+ 500: {+ content: never+ }}}/** Gets current vanity subdomain config */@@ -10393,9 +11376,13 @@ export interface operations {'application/json': components['schemas']['VanitySubdomainConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to get project vanity subdomain configuration */- 500: never+ 500: {+ content: never+ }}}/** Deletes a project's vanity subdomain configuration */@@ -10407,10 +11394,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to delete project vanity subdomain configuration */- 500: never+ 500: {+ content: never+ }}}/** Checks vanity subdomain availability */@@ -10432,9 +11425,13 @@ export interface operations {'application/json': components['schemas']['SubdomainAvailabilityResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to check project vanity subdomain configuration */- 500: never+ 500: {+ content: never+ }}}/** Activates a vanity subdomain for a project. */@@ -10456,9 +11453,13 @@ export interface operations {'application/json': components['schemas']['ActivateVanitySubdomainResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to activate project vanity subdomain configuration */- 500: never+ 500: {+ content: never+ }}}/** Upgrades the project's Postgres version */@@ -10475,10 +11476,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to initiate project upgrade */- 500: never+ 500: {+ content: never+ }}}/** Returns the project's eligibility for upgrades */@@ -10495,9 +11502,13 @@ export interface operations {'application/json': components['schemas']['ProjectUpgradeEligibilityResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to determine project upgrade eligibility */- 500: never+ 500: {+ content: never+ }}}/** Gets the latest status of the project's upgrade */@@ -10514,9 +11525,13 @@ export interface operations {'application/json': components['schemas']['DatabaseUpgradeStatusResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project upgrade status */- 500: never+ 500: {+ content: never+ }}}/** Returns project's readonly mode status */@@ -10534,7 +11549,9 @@ export interface operations {}}/** @description Failed to get project readonly mode status */- 500: never+ 500: {+ content: never+ }}}/** Disables project's readonly mode for the next 15 minutes */@@ -10546,9 +11563,13 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }/** @description Failed to disable project's readonly mode */- 500: never+ 500: {+ content: never+ }}}/** Gets project's service health status */@@ -10556,7 +11577,7 @@ export interface operations {parameters: {query: {timeout_ms?: number- services: ('auth' | 'realtime' | 'rest' | 'storage')[]+ services: ('auth' | 'db' | 'realtime' | 'rest' | 'storage')[]}path: {/** @description Project ref */@@ -10570,7 +11591,9 @@ export interface operations {}}/** @description Failed to retrieve project's service health status */- 500: never+ 500: {+ content: never+ }}}/** Gets project's Postgres config */@@ -10588,7 +11611,9 @@ export interface operations {}}/** @description Failed to retrieve project's Postgres config */- 500: never+ 500: {+ content: never+ }}}/** Updates project's Postgres config */@@ -10611,7 +11636,9 @@ export interface operations {}}/** @description Failed to update project's Postgres config */- 500: never+ 500: {+ content: never+ }}}/** Get project's pgbouncer config */@@ -10629,7 +11656,9 @@ export interface operations {}}/** @description Failed to retrieve project's pgbouncer config */- 500: never+ 500: {+ content: never+ }}}/** Gets project's auth config */@@ -10646,9 +11675,13 @@ export interface operations {'application/json': components['schemas']['AuthConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve project's auth config */- 500: never+ 500: {+ content: never+ }}}/** Updates a project's auth config */@@ -10670,9 +11703,13 @@ export interface operations {'application/json': components['schemas']['AuthConfigResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update project's auth config */- 500: never+ 500: {+ content: never+ }}}/** Lists all SSO providers */@@ -10689,9 +11726,13 @@ export interface operations {'application/json': components['schemas']['ListProvidersResponse']}}- 403: never+ 403: {+ content: never+ }/** @description SAML 2.0 support is not enabled for this project */- 404: never+ 404: {+ content: never+ }}}/** Creates a new SSO provider */@@ -10713,9 +11754,13 @@ export interface operations {'application/json': components['schemas']['CreateProviderResponse']}}- 403: never+ 403: {+ content: never+ }/** @description SAML 2.0 support is not enabled for this project */- 404: never+ 404: {+ content: never+ }}}/** Gets a SSO provider by its UUID */@@ -10733,9 +11778,13 @@ export interface operations {'application/json': components['schemas']['GetProviderResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: never+ 404: {+ content: never+ }}}/** Updates a SSO provider by its UUID */@@ -10758,9 +11807,13 @@ export interface operations {'application/json': components['schemas']['UpdateProviderResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: never+ 404: {+ content: never+ }}}/** Removes a SSO provider by its UUID */@@ -10778,9 +11831,13 @@ export interface operations {'application/json': components['schemas']['DeleteProviderResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Either SAML 2.0 was not enabled for this project, or the provider does not exist */- 404: never+ 404: {+ content: never+ }}}/** Run sql query */@@ -10802,9 +11859,13 @@ export interface operations {'application/json': Record<string, never>}}- 403: never+ 403: {+ content: never+ }/** @description Failed to run sql query */- 500: never+ 500: {+ content: never+ }}}/** Enables Database Webhooks on the project */@@ -10816,10 +11877,16 @@ export interface operations {}}responses: {- 201: never- 403: never+ 201: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to enable Database Webhooks on the project */- 500: never+ 500: {+ content: never+ }}}/** Restores a PITR backup for a database */@@ -10836,7 +11903,9 @@ export interface operations {}}responses: {- 201: never+ 201: {+ content: never+ }}}/**@@ -10858,9 +11927,13 @@ export interface operations {'application/json': components['schemas']['FunctionSlugResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to retrieve function with given slug */- 500: never+ 500: {+ content: never+ }}}/**@@ -10877,10 +11950,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to delete function with given slug */- 500: never+ 500: {+ content: never+ }}}/**@@ -10916,9 +11995,13 @@ export interface operations {'application/json': components['schemas']['FunctionResponse']}}- 403: never+ 403: {+ content: never+ }/** @description Failed to update function with given slug */- 500: never+ 500: {+ content: never+ }}}/**@@ -10935,10 +12018,16 @@ export interface operations {}}responses: {- 200: never- 403: never+ 200: {+ content: never+ }+ 403: {+ content: never+ }/** @description Failed to retrieve function body with given slug */- 500: never+ 500: {+ content: never+ }}}/** Create an organization */@@ -10955,7 +12044,9 @@ export interface operations {}}/** @description Unexpected error creating an organization */- 500: never+ 500: {+ content: never+ }}}/** List members of an organization */@@ -10988,7 +12079,9 @@ export interface operations {}}responses: {- 303: never+ 303: {+ content: never+ }}}/** Exchange auth code for user's access and refresh token */@@ -11020,7 +12113,9 @@ export interface operations {}}/** @description Failed to list user's SQL snippets */- 500: never+ 500: {+ content: never+ }}}/** Gets a specific SQL snippet */@@ -11037,13 +12132,17 @@ export interface operations {}}/** @description Failed to retrieve SQL snippet */- 500: never+ 500: {+ content: never+ }}}/** Redirects to Supabase dashboard after Fly sso with Gotrue */CallbackController_redirectToDashboardFlyioExtensionScreen: {responses: {- 200: never+ 200: {+ content: never+ }}}/** Gets database status */@@ -11061,6 +12160,19 @@ export interface operations {}}}+ /** Deletes a database */+ ExtensionController_deleteResource: {+ parameters: {+ path: {+ extension_id: string+ }+ }+ responses: {+ 200: {+ content: never+ }+ }+ }/** Starts Flyio single sign on */ExtensionController_startFlyioSSO: {parameters: {@@ -11069,7 +12181,9 @@ export interface operations {}}responses: {- 200: never+ 200: {+ content: never+ }}}/** Gets resource billing */