Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: show upgrade warning if user objects exist in internal schemas (#36654)

Bobbie Soedirgo90d355b9cb87
diff --git a/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx b/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx
index a7f16a5c889..6024d017720 100644
--- a/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx
+++ b/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx
@@ -79,7 +79,7 @@ export function ApiKeyPill({
async function onCopy() {
// If key is already revealed, use that value
- if (data?.api_key) return data?.api_key
+ if (data?.api_key) return data?.api_key ?? ''
try {
// Fetch full key and immediately clear from cache after copying
@@ -89,13 +89,15 @@ export function ApiKeyPill({
exact: true,
})
- if (result.isSuccess) return result.data.api_key
+ if (result.isSuccess) return result.data.api_key ?? ''
if (error) {
toast.error('Failed to copy secret API key')
+ return ''
}
} catch (error) {
console.error('Failed to fetch API key:', error)
+ return ''
}
// Fallback to the masked version if fetch fails
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsx
index 5f485beaebf..c3ff46c0ac5 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsx
@@ -187,6 +187,7 @@ const ProjectUpgradeAlert = () => {
[right-sized](https://supabase.com/docs/guides/platform/upgrading#disk-sizing) with the upgrade.`}
/>
)}
+ {/* @ts-ignore */}
{(data?.potential_breaking_changes ?? []).length > 0 && (
<Alert_Shadcn_ variant="destructive" title="Breaking changes">
<AlertCircle className="h-4 w-4" strokeWidth={2} />
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
index 6cb810871b5..ca84227d92f 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
@@ -19,7 +19,6 @@ import {
AlertTitle_Shadcn_,
Alert_Shadcn_,
Badge,
- Button,
Input,
Tooltip,
TooltipContent,
@@ -27,6 +26,13 @@ import {
} from 'ui'
import { ProjectUpgradeAlert } from '../General/Infrastructure/ProjectUpgradeAlert'
import InstanceConfiguration from './InfrastructureConfiguration/InstanceConfiguration'
+import {
+ DatabaseExtensionsWarning,
+ ObjectsToBeDroppedWarning,
+ ReadReplicasWarning,
+ UnsupportedExtensionsWarning,
+ UserDefinedObjectsInInternalSchemasWarning,
+} from './UpgradeWarnings'
const InfrastructureInfo = () => {
const { ref } = useParams()
@@ -73,6 +79,12 @@ const InfrastructureInfo = () => {
const isInactive = project?.status === 'INACTIVE'
const hasReadReplicas = (databases ?? []).length > 1
+ // @ts-ignore [Bobbie] to be removed after 2025-06-30 prod deploy
+ const hasExtensionDependentObjects = (data?.extension_dependent_objects ?? []).length > 0
+ const hasObjectsToBeDropped = (data?.objects_to_be_dropped ?? []).length > 0
+ const hasUnsupportedExtensions = (data?.unsupported_extensions || []).length > 0
+ const hasObjectsInternalSchema = (data?.user_defined_objects_in_internal_schemas || []).length > 0
+
return (
<>
<ScaffoldDivider />
@@ -181,149 +193,38 @@ const InfrastructureInfo = () => {
</>
)}
- {data?.eligible && !hasReadReplicas && <ProjectUpgradeAlert />}
- {data.eligible && hasReadReplicas && (
- <Alert_Shadcn_>
- <AlertTitle_Shadcn_>
- A new version of Postgres is available for your project
- </AlertTitle_Shadcn_>
- <AlertDescription_Shadcn_>
- You will need to remove all read replicas prior to upgrading your Postgres
- version to the latest available ({latestPgVersion}).
- </AlertDescription_Shadcn_>
- </Alert_Shadcn_>
- )}
- {/* TODO(bobbie): once extension_dependent_objects is removed on the backend, remove this block and the ts-ignores below */}
- {!data?.eligible && (data?.extension_dependent_objects || []).length > 0 && (
- <Alert_Shadcn_
- variant="warning"
- title="A new version of Postgres is available for your project"
- >
- <AlertTitle_Shadcn_>
- A new version of Postgres is available
- </AlertTitle_Shadcn_>
- <AlertDescription_Shadcn_ className="flex flex-col gap-3">
- <div>
- <p className="mb-1">
- You'll need to remove the following extensions before upgrading:
- </p>
-
- <ul className="pl-4">
- {(data?.extension_dependent_objects || []).map((obj) => (
- <li className="list-disc" key={obj}>
- {obj}
- </li>
- ))}
- </ul>
- </div>
- <p>
- {projectUpgradeEligibilityData?.potential_breaking_changes?.includes(
- 'pg17_upgrade_unsupported_extensions'
- )
- ? 'These extensions are not supported in newer versions of Supabase Postgres. If you are not using them, it is safe to remove them.'
- : 'Check the docs for which ones might need to be removed.'}
- </p>
- <div>
- <Button size="tiny" type="default" asChild>
- <a
- href="https://supabase.com/docs/guides/platform/upgrading#extensions"
- target="_blank"
- rel="noreferrer"
- >
- View docs
- </a>
- </Button>
- </div>
- </AlertDescription_Shadcn_>
- </Alert_Shadcn_>
- )}
- {!data?.eligible &&
- // @ts-ignore
- (data?.objects_to_be_dropped || []).length > 0 && (
- <Alert_Shadcn_
- variant="warning"
- title="A new version of Postgres is available for your project"
- >
- <AlertTitle_Shadcn_>
- A new version of Postgres is available
- </AlertTitle_Shadcn_>
- <AlertDescription_Shadcn_ className="flex flex-col gap-3">
- <div>
- <p className="mb-1">
- You'll need to remove the following objects before upgrading:
- </p>
-
- <ul className="pl-4">
- {
- // @ts-ignore
- (data?.objects_to_be_dropped || []).map((obj: string) => (
- <li className="list-disc" key={obj}>
- {obj}
- </li>
- ))
- }
- </ul>
- </div>
- <p>Check the docs for which objects need to be removed.</p>
- <div>
- <Button size="tiny" type="default" asChild>
- <a
- href="https://supabase.com/docs/guides/platform/upgrading#extensions"
- target="_blank"
- rel="noreferrer"
- >
- View docs
- </a>
- </Button>
- </div>
- </AlertDescription_Shadcn_>
- </Alert_Shadcn_>
- )}
- {!data?.eligible &&
- // @ts-ignore
- (data?.unsupported_extensions || []).length > 0 && (
- <Alert_Shadcn_
- variant="warning"
- title="A new version of Postgres is available for your project"
- >
- <AlertTitle_Shadcn_>
- A new version of Postgres is available
- </AlertTitle_Shadcn_>
- <AlertDescription_Shadcn_ className="flex flex-col gap-3">
- <div>
- <p className="mb-1">
- You'll need to remove the following extensions before upgrading:
- </p>
+ {data.eligible ? (
+ hasReadReplicas ? (
+ <ReadReplicasWarning latestPgVersion={latestPgVersion} />
+ ) : (
+ <ProjectUpgradeAlert />
+ )
+ ) : null}
- <ul className="pl-4">
- {
- // @ts-ignore
- (data?.unsupported_extensions || []).map((obj: string) => (
- <li className="list-disc" key={obj}>
- {obj}
- </li>
- ))
- }
- </ul>
- </div>
- <p>
- These extensions are not supported in newer versions of Supabase
- Postgres. If you are not using them, it is safe to remove them.
- </p>
- <div>
- <Button size="tiny" type="default" asChild>
- <a
- href="https://supabase.com/docs/guides/platform/upgrading#extensions"
- target="_blank"
- rel="noreferrer"
- >
- View docs
- </a>
- </Button>
- </div>
- </AlertDescription_Shadcn_>
- </Alert_Shadcn_>
- )}
+ {!data.eligible ? (
+ hasExtensionDependentObjects ? (
+ <DatabaseExtensionsWarning
+ // @ts-ignore
+ extensions={data.extension_dependent_objects ?? []}
+ potentialBreakingChanges={
+ // @ts-ignore
+ projectUpgradeEligibilityData?.potential_breaking_changes
+ }
+ />
+ ) : hasObjectsToBeDropped ? (
+ <ObjectsToBeDroppedWarning
+ objectsToBeDropped={data.objects_to_be_dropped}
+ />
+ ) : hasUnsupportedExtensions ? (
+ <UnsupportedExtensionsWarning
+ unsupportedExtensions={data.unsupported_extensions}
+ />
+ ) : hasObjectsInternalSchema ? (
+ <UserDefinedObjectsInInternalSchemasWarning
+ objects={data.user_defined_objects_in_internal_schemas}
+ />
+ ) : null
+ ) : null}
</>
)}
</>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
new file mode 100644
index 00000000000..4f4e9d8679a
--- /dev/null
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
@@ -0,0 +1,185 @@
+import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Button } from 'ui'
+
+export const ReadReplicasWarning = ({ latestPgVersion }: { latestPgVersion: string }) => {
+ return (
+ <Alert_Shadcn_>
+ <AlertTitle_Shadcn_>
+ A new version of Postgres is available for your project
+ </AlertTitle_Shadcn_>
+ <AlertDescription_Shadcn_>
+ You will need to remove all read replicas prior to upgrading your Postgres version to the
+ latest available ({latestPgVersion}).
+ </AlertDescription_Shadcn_>
+ </Alert_Shadcn_>
+ )
+}
+
+export const DatabaseExtensionsWarning = ({
+ extensions,
+ potentialBreakingChanges,
+}: {
+ extensions: string[]
+ potentialBreakingChanges?: string[]
+}) => {
+ return (
+ <Alert_Shadcn_
+ variant="warning"
+ title="A new version of Postgres is available for your project"
+ >
+ <AlertTitle_Shadcn_>A new version of Postgres is available</AlertTitle_Shadcn_>
+ <AlertDescription_Shadcn_ className="flex flex-col gap-3">
+ <div>
+ <p className="mb-1">You'll need to remove the following extensions before upgrading:</p>
+
+ <ul className="pl-4">
+ {extensions.map((obj) => (
+ <li className="list-disc" key={obj}>
+ {obj}
+ </li>
+ ))}
+ </ul>
+ </div>
+ <p>
+ {potentialBreakingChanges?.includes('pg17_upgrade_unsupported_extensions')
+ ? 'These extensions are not supported in newer versions of Supabase Postgres. If you are not using them, it is safe to remove them.'
+ : 'Check the docs for which ones might need to be removed.'}
+ </p>
+ <div>
+ <Button size="tiny" type="default" asChild>
+ <a
+ target="_blank"
+ rel="noreferrer"
+ href="https://supabase.com/docs/guides/platform/upgrading#extensions"
+ >
+ View docs
+ </a>
+ </Button>
+ </div>
+ </AlertDescription_Shadcn_>
+ </Alert_Shadcn_>
+ )
+}
+
+export const ObjectsToBeDroppedWarning = ({
+ objectsToBeDropped,
+}: {
+ objectsToBeDropped: string[]
+}) => {
+ return (
+ <Alert_Shadcn_
+ variant="warning"
+ title="A new version of Postgres is available for your project"
+ >
+ <AlertTitle_Shadcn_>A new version of Postgres is available</AlertTitle_Shadcn_>
+ <AlertDescription_Shadcn_ className="flex flex-col gap-3">
+ <div>
+ <p className="mb-1">You'll need to remove the following objects before upgrading:</p>
+
+ <ul className="pl-4">
+ {objectsToBeDropped.map((obj) => (
+ <li className="list-disc" key={obj}>
+ {obj}
+ </li>
+ ))}
+ </ul>
+ </div>
+ <p>Check the docs for which objects need to be removed.</p>
+ <div>
+ <Button size="tiny" type="default" asChild>
+ <a
+ href="https://supabase.com/docs/guides/platform/upgrading#extensions"
+ target="_blank"
+ rel="noreferrer"
+ >
+ View docs
+ </a>
+ </Button>
+ </div>
+ </AlertDescription_Shadcn_>
+ </Alert_Shadcn_>
+ )
+}
+
+export const UnsupportedExtensionsWarning = ({
+ unsupportedExtensions,
+}: {
+ unsupportedExtensions: string[]
+}) => {
+ return (
+ <Alert_Shadcn_
+ variant="warning"
+ title="A new version of Postgres is available for your project"
+ >
+ <AlertTitle_Shadcn_>A new version of Postgres is available</AlertTitle_Shadcn_>
+ <AlertDescription_Shadcn_ className="flex flex-col gap-3">
+ <div>
+ <p className="mb-1">You'll need to remove the following extensions before upgrading:</p>
+
+ <ul className="pl-4">
+ {unsupportedExtensions.map((obj: string) => (
+ <li className="list-disc" key={obj}>
+ {obj}
+ </li>
+ ))}
+ </ul>
+ </div>
+ <p>
+ These extensions are not supported in newer versions of Supabase Postgres. If you are not
+ using them, it is safe to remove them.
+ </p>
+ <div>
+ <Button size="tiny" type="default" asChild>
+ <a
+ href="https://supabase.com/docs/guides/platform/upgrading#extensions"
+ target="_blank"
+ rel="noreferrer"
+ >
+ View docs
+ </a>
+ </Button>
+ </div>
+ </AlertDescription_Shadcn_>
+ </Alert_Shadcn_>
+ )
+}
+
+export const UserDefinedObjectsInInternalSchemasWarning = ({ objects }: { objects: string[] }) => {
+ return (
+ <Alert_Shadcn_
+ variant="warning"
+ title="A new version of Postgres is available for your project"
+ >
+ <AlertTitle_Shadcn_>A new version of Postgres is available</AlertTitle_Shadcn_>
+ <AlertDescription_Shadcn_ className="flex flex-col gap-3">
+ <div>
+ <p className="mb-1">
+ You'll need to move these objects out of auth/realtime/storage schemas before upgrading:
+ </p>
+
+ <ul className="pl-4">
+ {objects.map((obj: string) => (
+ <li className="list-disc" key={obj}>
+ {obj}
+ </li>
+ ))}
+ </ul>
+ </div>
+ <p>
+ These schemas are Supabase-managed and creating custom objects in them is no longer
+ supported. Check the changelog to see how to move them to your own schemas.
+ </p>
+ <div>
+ <Button size="tiny" type="default" asChild>
+ <a
+ href="https://github.com/orgs/supabase/discussions/34270"
+ target="_blank"
+ rel="noreferrer"
+ >
+ View changelog
+ </a>
+ </Button>
+ </div>
+ </AlertDescription_Shadcn_>
+ </Alert_Shadcn_>
+ )
+}
diff --git a/apps/studio/components/ui/CopyButton.tsx b/apps/studio/components/ui/CopyButton.tsx
index 9ac56ba9df6..a45df0d6180 100644
--- a/apps/studio/components/ui/CopyButton.tsx
+++ b/apps/studio/components/ui/CopyButton.tsx
@@ -7,7 +7,6 @@ type CopyButtonBaseProps = {
iconOnly?: boolean
copyLabel?: string
copiedLabel?: string
- onCopy?: () => Promise<string> | string
}
type CopyButtonWithText = CopyButtonBaseProps & {
diff --git a/apps/studio/data/integrations/github-branches-query.ts b/apps/studio/data/integrations/github-branches-query.ts
index 18a49ece0a0..342238466c5 100644
--- a/apps/studio/data/integrations/github-branches-query.ts
+++ b/apps/studio/data/integrations/github-branches-query.ts
@@ -19,7 +19,7 @@ export async function getGitHubBranches(
})
if (error) handleError(error)
- return data as Record<string, never>[]
+ return data
}
export type GitHubBranchesData = Awaited<ReturnType<typeof getGitHubBranches>>
diff --git a/apps/studio/data/integrations/integrations.types.ts b/apps/studio/data/integrations/integrations.types.ts
index cc5c7f3ccce..a453f581771 100644
--- a/apps/studio/data/integrations/integrations.types.ts
+++ b/apps/studio/data/integrations/integrations.types.ts
@@ -259,7 +259,7 @@ export type IntegrationConnectionsCreateVariables = {
export type GitHubConnectionCreateVariables = {
organizationId: number
- connection: components['schemas']['CreateGitHubConnectionsBody']
+ connection: components['schemas']['CreateGitHubConnectionBody']
}
export type EnvironmentTargets = 'production' | 'preview' | 'development'
diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts
index 4af05d16429..58e32b4292b 100644
--- a/packages/api-types/types/api.d.ts
+++ b/packages/api-types/types/api.d.ts
@@ -1571,7 +1571,7 @@ export interface components {
result?: unknown[]
}
ApiKeyResponse: {
- api_key: string
+ api_key?: string | null
description?: string | null
hash?: string | null
id?: string | null
@@ -1878,6 +1878,7 @@ export interface components {
/** Format: int64 */
created_at?: number
entrypoint_path?: string
+ ezbr_sha256?: string
id: string
import_map?: boolean
import_map_path?: string
@@ -1893,6 +1894,7 @@ export interface components {
/** Format: int64 */
created_at: number
entrypoint_path?: string
+ ezbr_sha256?: string
id: string
import_map?: boolean
import_map_path?: string
@@ -2025,6 +2027,42 @@ export interface components {
CreateSigningKeyBody: {
/** @enum {string} */
algorithm: 'EdDSA' | 'ES256' | 'RS256' | 'HS256'
+ private_jwk?:
+ | {
+ d: string
+ dp: string
+ dq: string
+ /** @enum {string} */
+ e: 'AQAB'
+ /** @enum {string} */
+ kty: 'RSA'
+ n: string
+ p: string
+ q: string
+ qi: string
+ }
+ | {
+ /** @enum {string} */
+ crv: 'P-256'
+ d: string
+ /** @enum {string} */
+ kty: 'EC'
+ x: string
+ y: string
+ }
+ | {
+ /** @enum {string} */
+ crv: 'Ed25519'
+ d: string
+ /** @enum {string} */
+ kty: 'OKP'
+ x: string
+ }
+ | {
+ k: string
+ /** @enum {string} */
+ kty: 'oct'
+ }
/** @enum {string} */
status?: 'in_use' | 'standby'
}
@@ -2122,6 +2160,7 @@ export interface components {
/** Format: int64 */
created_at: number
entrypoint_path?: string
+ ezbr_sha256?: string
id: string
import_map?: boolean
import_map_path?: string
@@ -2138,6 +2177,7 @@ export interface components {
/** Format: int64 */
created_at: number
entrypoint_path?: string
+ ezbr_sha256?: string
id: string
import_map?: boolean
import_map_path?: string
@@ -2484,10 +2524,9 @@ export interface components {
| 'preview'
duration_estimate_hours: number
eligible: boolean
- extension_dependent_objects: string[]
latest_app_version: string
legacy_auth_custom_roles: string[]
- potential_breaking_changes: string[]
+ objects_to_be_dropped: string[]
target_upgrade_versions: {
app_version: string
/** @enum {string} */
@@ -2495,6 +2534,8 @@ export interface components {
/** @enum {string} */
release_channel: 'internal' | 'alpha' | 'beta' | 'ga' | 'withdrawn' | 'preview'
}[]
+ unsupported_extensions: string[]
+ user_defined_objects_in_internal_schemas: string[]
}
ProjectUpgradeInitiateResponse: {
tracking_id: string
@@ -6118,6 +6159,7 @@ export interface operations {
parameters: {
query?: {
entrypoint_path?: string
+ ezbr_sha256?: string
/** @description Boolean string, true or false */
import_map?: boolean
import_map_path?: string
@@ -6239,6 +6281,7 @@ export interface operations {
parameters: {
query?: {
entrypoint_path?: string
+ ezbr_sha256?: string
/** @description Boolean string, true or false */
import_map?: boolean
import_map_path?: string
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index 208765a7f5e..28f0f1e6e78 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -622,6 +622,62 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/integrations/github/repositories/{repositoryId}/branches': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** List GitHub repository branches */
+ get: operations['GitHubRepositoriesController_listRepositoryBranches']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ '/platform/integrations/github/repositories/{repositoryId}/branches/{branchName}': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get GitHub repository branch
+ * @deprecated
+ * @description This is a temporary endpoint before dashboard switches to combo box
+ */
+ get: operations['GitHubRepositoriesController_getRepository']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ '/platform/integrations/private-link/{organization_slug}': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Get organization's PrivateLink configuration. */
+ get: operations['PrivateLinkController_getPrivateLinkConfig']
+ /** Update organization's PrivateLink configuration. */
+ put: operations['PrivateLinkController_updatePrivateLinkConfig']
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/integrations/vercel': {
parameters: {
query?: never
@@ -1479,23 +1535,6 @@ export interface paths {
patch?: never
trace?: never
}
- '/platform/organizations/{slug}/transfer': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- get?: never
- put?: never
- /** Transfers the organization to the given member */
- post: operations['TransferController_transferOrganization']
- delete?: never
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
'/platform/organizations/{slug}/usage': {
parameters: {
query?: never
@@ -2104,10 +2143,10 @@ export interface paths {
cookie?: never
}
/** Gets project's logs */
- get: operations['LogsController_getApiPaths']
+ get: operations['LogsController_getProjectLogsViaGet']
put?: never
- /** Post project's logs */
- post: operations['LogsController_postApiPaths']
+ /** Gets project's logs */
+ post: operations['LogsController_getProjectLogsViaPost']
delete?: never
options?: never
head?: never
@@ -4422,10 +4461,24 @@ export interface components {
CreateGitHubAuthorizationBody: {
code: string
}
- CreateGitHubConnectionsBody: {
+ CreateGitHubConnectionBody: {
+ branch_limit?: number
installation_id: number
+ new_branch_per_pr?: boolean
project_ref: string
repository_id: number
+ supabase_changes_only?: boolean
+ workdir?: string
+ }
+ CreateGitHubConnectionResponse: {
+ branch_limit: number
+ id: number
+ inserted_at: string
+ installation_id: number
+ new_branch_per_pr: boolean
+ supabase_changes_only: boolean
+ updated_at: string
+ workdir: string
}
CreateInvitationBody: {
email: string
@@ -4649,8 +4702,7 @@ export interface components {
| '48xlarge_optimized_cpu'
| '48xlarge_high_memory'
name: string
- org_id?: number
- organization_slug?: string
+ organization_slug: string
/**
* @description Postgres engine version. If not provided, the latest version will be used.
* @enum {string}
@@ -5352,6 +5404,11 @@ export interface components {
remediation: string
title: string
}[]
+ GetProjectLogsBody: {
+ iso_timestamp_end?: string
+ iso_timestamp_start?: string
+ sql?: string
+ }
GetPublicUrlBody: {
options?: {
download?: boolean
@@ -5617,6 +5674,9 @@ export interface components {
sender_id: number
user_id: number
}
+ GitHubBranchResponse: {
+ name: string
+ }
GoTrueConfigResponse: {
API_MAX_REQUEST_DURATION: number | null
DB_MAX_POOL_SIZE: number | null
@@ -5939,6 +5999,7 @@ export interface components {
id: number
inserted_at: string
installation_id: number
+ new_branch_per_pr: boolean
project: {
id: number
name: string
@@ -5958,6 +6019,14 @@ export interface components {
workdir: string
}[]
}
+ ListGitHubRepositoriesResponse: {
+ repositories: {
+ default_branch: string
+ id: number
+ installation_id: number
+ name: string
+ }[]
+ }
ListNotificationExceptionsResponse: {
exceptions: {
/** Format: uuid */
@@ -5991,6 +6060,11 @@ export interface components {
oauth_app_id: string
}[]
}
+ ListRepositoryBranchesResponse: {
+ branches: {
+ name: string
+ }[]
+ }
LoadBalancerDetailResponse: {
databases: {
identifier: string
@@ -6705,9 +6779,6 @@ export interface components {
name: string
schema: string
}
- PostProjectLogsBody: {
- sql: string
- }
PreviewProjectTransferResponse: {
errors: {
key: string
@@ -6736,6 +6807,12 @@ export interface components {
message: string
}[]
}
+ PrivateLinkResponse: {
+ appliedSuccessfully: boolean
+ currentConfig: {
+ enabled: boolean
+ }
+ }
Profile: {
first_name: string
gotrue_id: string
@@ -7510,12 +7587,6 @@ export interface components {
page_url: string
pathname: string
}
- TransferOrganizationBody: {
- /** Format: uuid */
- member_gotrue_id: string
- member_id?: number
- org_id: number
- }
TransferProjectBody: {
target_organization_slug: string
}
@@ -7818,6 +7889,7 @@ export interface components {
}
UpdateGitHubConnectionBody: {
branch_limit?: number
+ new_branch_per_pr?: boolean
supabase_changes_only?: boolean
workdir?: string
}
@@ -8151,6 +8223,11 @@ export interface components {
db_schema: string
max_rows: number
}
+ UpdatePrivateLinkBody: {
+ requestedConfig: {
+ enabled: boolean
+ }
+ }
UpdateProfileBody: {
first_name?: string
last_name?: string
@@ -9637,7 +9714,9 @@ export interface operations {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['GitHubBranchResponse'][]
+ }
}
/** @description Failed to list GitHub connection branches */
500: {
@@ -9664,7 +9743,9 @@ export interface operations {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['GitHubBranchResponse']
+ }
}
/** @description Failed to get GitHub connection branch */
500: {
@@ -9712,7 +9793,7 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['CreateGitHubConnectionsBody']
+ 'application/json': components['schemas']['CreateGitHubConnectionBody']
}
}
responses: {
@@ -9720,7 +9801,9 @@ export interface operations {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['CreateGitHubConnectionResponse']
+ }
}
/** @description Failed to create project connections */
500: {
@@ -9800,7 +9883,9 @@ export interface operations {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['ListGitHubRepositoriesResponse']
+ }
}
/** @description Failed to get GitHub repositories for user */
500: {
@@ -9811,6 +9896,123 @@ export interface operations {
}
}
}
+ GitHubRepositoriesController_listRepositoryBranches: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ repositoryId: number
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['ListRepositoryBranchesResponse']
+ }
+ }
+ /** @description Failed to list GitHub repository branches */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ GitHubRepositoriesController_getRepository: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ branchName: string
+ repositoryId: number
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['GitHubBranchResponse']
+ }
+ }
+ /** @description Failed to get GitHub repository branch */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ PrivateLinkController_getPrivateLinkConfig: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ organization_slug: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['PrivateLinkResponse']
+ }
+ }
+ /** @description Failed to retrieve organization's PrivateLink config */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ PrivateLinkController_updatePrivateLinkConfig: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ organization_slug: string
+ }
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['UpdatePrivateLinkBody']
+ }
+ }
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['PrivateLinkResponse']
+ }
+ }
+ /** @description Failed to update organization's PrivateLink configuration. */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
VercelIntegrationController_createVercelIntegration: {
parameters: {
query?: never
@@ -12051,34 +12253,6 @@ export interface operations {
}
}
}
- TransferController_transferOrganization: {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- requestBody: {
- content: {
- 'application/json': components['schemas']['TransferOrganizationBody']
- }
- }
- responses: {
- 201: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to update owner */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
OrgUsageController_getOrgUsage: {
parameters: {
query?: {
@@ -14442,12 +14616,11 @@ export interface operations {
}
}
}
- LogsController_getApiPaths: {
+ LogsController_getProjectLogsViaGet: {
parameters: {
query?: {
iso_timestamp_end?: string
iso_timestamp_start?: string
- project?: string
sql?: string
}
header?: never
@@ -14482,14 +14655,9 @@ export interface operations {
}
}
}
- LogsController_postApiPaths: {
+ LogsController_getProjectLogsViaPost: {
parameters: {
- query?: {
- iso_timestamp_end?: string
- iso_timestamp_start?: string
- project?: string
- sql?: string
- }
+ query?: never
header?: never
path: {
/** @description Project ref */
@@ -14499,7 +14667,7 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['PostProjectLogsBody']
+ 'application/json': components['schemas']['GetProjectLogsBody']
}
}
responses: {
@@ -14517,7 +14685,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to POST project's logs */
+ /** @description Failed to get project's logs */
500: {
headers: {
[name: string]: unknown