The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update API types (#40609)
Joshen Lim11107a4781d4
diff --git a/apps/studio/components/interfaces/Database/ETL/DestinationPanel/DestinationPanelFields.tsx b/apps/studio/components/interfaces/Database/ETL/DestinationPanel/DestinationPanelFields.tsxindex 888701199fc..992311dd4ca 100644--- a/apps/studio/components/interfaces/Database/ETL/DestinationPanel/DestinationPanelFields.tsx+++ b/apps/studio/components/interfaces/Database/ETL/DestinationPanel/DestinationPanelFields.tsx@@ -242,8 +242,8 @@ export const AnalyticsBucketFields = ({</SelectItem_Shadcn_>) : (analyticsBuckets.map((bucket) => (- <SelectItem_Shadcn_ key={bucket.id} value={bucket.id}>- {bucket.id}+ <SelectItem_Shadcn_ key={bucket.name} value={bucket.name}>+ {bucket.name}</SelectItem_Shadcn_>)))}diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsxindex 948b5cf6341..be540ab1473 100644--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsx+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsx@@ -65,10 +65,10 @@ export const AnalyticBucketDetails = () => {/** The wrapper instance is the wrapper that is installed for this Analytics bucket. */const { data: wrapperInstance, isLoading: isLoadingWrapperInstance } =- useAnalyticsBucketWrapperInstance({ bucketId: bucket?.id })+ useAnalyticsBucketWrapperInstance({ bucketId: bucket?.name })const { publication, pipeline } = useAnalyticsBucketAssociatedEntities({projectRef,- bucketId: bucket?.id,+ bucketId: bucket?.name,})const { data, isSuccess: isSuccessPipelineStatus } = useReplicationPipelineStatusQuery({ projectRef, pipelineId: pipeline?.id },@@ -178,20 +178,20 @@ export const AnalyticBucketDetails = () => {</ScaffoldSection>) : state === 'not-installed' ? (<ExtensionNotInstalled- bucketName={bucket?.id}+ bucketName={bucket?.name}projectRef={project?.ref!}wrapperMeta={wrapperMeta}wrappersExtension={wrappersExtension!}/>) : state === 'needs-upgrade' ? (<ExtensionNeedsUpgrade- bucketName={bucket?.id}+ bucketName={bucket?.name}projectRef={project?.ref!}wrapperMeta={wrapperMeta}wrappersExtension={wrappersExtension!}/>) : state === 'missing' ? (- <WrapperMissing bucketName={bucket?.id} />+ <WrapperMissing bucketName={bucket?.name} />) : state === 'added' && wrapperInstance ? (<><ScaffoldSection isFullWidth>@@ -294,7 +294,7 @@ export const AnalyticBucketDetails = () => {{namespaces.map(({ namespace, schema, tables }) => (<NamespaceWithTableskey={namespace}- bucketName={bucket?.id}+ bucketName={bucket?.name}namespace={namespace}sourceType="direct"schema={schema}@@ -311,7 +311,7 @@ export const AnalyticBucketDetails = () => {)}</ScaffoldSection>- <SimpleConfigurationDetails bucketName={bucket?.id} />+ <SimpleConfigurationDetails bucketName={bucket?.name} /></>) : null}@@ -330,7 +330,7 @@ export const AnalyticBucketDetails = () => {</div><Buttontype="danger"- disabled={!bucket?.id || !isSuccessBucket}+ disabled={!bucket?.name || !isSuccessBucket}onClick={() => setModal('delete')}>Delete bucket@@ -343,7 +343,7 @@ export const AnalyticBucketDetails = () => {<DeleteAnalyticsBucketModalvisible={modal === `delete`}- bucketId={bucket?.id}+ bucketId={bucket?.name}onClose={() => setModal(null)}onSuccess={() => router.push(`/project/${projectRef}/storage/analytics`)}/>diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketModal.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketModal.tsxindex a0988e643be..e49a3035251 100644--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketModal.tsx+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketModal.tsx@@ -138,7 +138,7 @@ export const CreateAnalyticsBucketModal = ({if (!project) return console.error('Project details is required')if (!wrappersExtension) return console.error('Unable to find wrappers extension')- const hasExistingBucket = buckets.some((x) => x.id === values.name)+ const hasExistingBucket = buckets.some((x) => x.name === values.name)if (hasExistingBucket) return toast.error('Bucket name already exists')try {diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsxindex 77e851fe447..00549f2e12b 100644--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsx+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsx@@ -44,7 +44,9 @@ export const AnalyticsBuckets = () => {})const analyticsBuckets = buckets.filter((bucket) =>- filterString.length === 0 ? true : bucket.id.toLowerCase().includes(filterString.toLowerCase())+ filterString.length === 0+ ? true+ : bucket.name.toLowerCase().includes(filterString.toLowerCase()))const hasNoBuckets = buckets.length === 0@@ -137,13 +139,13 @@ export const AnalyticsBuckets = () => {)}{analyticsBuckets.map((bucket) => (<TableRow- key={bucket.id}+ key={bucket.name}className="relative cursor-pointer h-16 inset-focus"- onClick={(event) => handleBucketNavigation(bucket.id, event)}+ onClick={(event) => handleBucketNavigation(bucket.name, event)}onKeyDown={(event) => {if (event.key === 'Enter' || event.key === ' ') {event.preventDefault()- handleBucketNavigation(bucket.id, event)+ handleBucketNavigation(bucket.name, event)}}}tabIndex={0}@@ -152,7 +154,9 @@ export const AnalyticsBuckets = () => {<BucketIcon size={16} className="text-foreground-muted" /></TableCell><TableCell>- <p className="whitespace-nowrap max-w-[512px] truncate">{bucket.id}</p>+ <p className="whitespace-nowrap max-w-[512px] truncate">+ {bucket.name}+ </p></TableCell><TableCell>diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/useSelectedAnalyticsBucket.ts b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/useSelectedAnalyticsBucket.tsindex 510f7a636be..02918bbc100 100644--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/useSelectedAnalyticsBucket.ts+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/useSelectedAnalyticsBucket.ts@@ -11,7 +11,7 @@ export const useSelectedAnalyticsBucket = () => {{enabled: hasIcebergEnabled,select(data) {- return data.find((x) => x.id === bucketId)+ return data.find((x) => x.name === bucketId)},})diff --git a/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsx b/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsxindex 03ec0e4e773..fd7ea831601 100644--- a/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsx+++ b/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsx@@ -30,38 +30,45 @@ const mockOrganizations = [}),]-const mockProjects = [- {- ...createMockProject({- id: 1,- ref: 'project-1',- name: 'Project 1',- organization_id: 1,- }),- organization_slug: 'org-1',- preview_branch_refs: [],- },- {- ...createMockProject({- id: 2,- ref: 'project-2',- name: 'Project 2',- organization_id: 2,- }),- organization_slug: 'org-2',- preview_branch_refs: [],- },- {- ...createMockProject({- id: 3,- ref: 'project-3',- name: 'Project 3',- organization_id: 1,- }),- organization_slug: 'org-1',- preview_branch_refs: [],+const mockProjects = {+ pagination: {+ count: 3,+ limit: 100,+ offset: 0,},-]+ projects: [+ {+ ...createMockProject({+ id: 1,+ ref: 'project-1',+ name: 'Project 1',+ organization_id: 1,+ }),+ organization_slug: 'org-1',+ preview_branch_refs: [],+ },+ {+ ...createMockProject({+ id: 2,+ ref: 'project-2',+ name: 'Project 2',+ organization_id: 2,+ }),+ organization_slug: 'org-2',+ preview_branch_refs: [],+ },+ {+ ...createMockProject({+ id: 3,+ ref: 'project-3',+ name: 'Project 3',+ organization_id: 1,+ }),+ organization_slug: 'org-1',+ preview_branch_refs: [],+ },+ ],+}const { mockCommitSha, mockCommitTime, mockUseDeploymentCommitQuery } = vi.hoisted(() => {const sha = 'mock-studio-commit-sha'@@ -385,7 +392,7 @@ describe('SupportFormPage', () => {path: '/platform/projects/:ref',response: ({ params }) => {const { ref } = params as { ref: string }- const project = mockProjects.find((candidate) => candidate.ref === ref)+ const project = mockProjects.projects.find((candidate) => candidate.ref === ref)return project? HttpResponse.json(project): HttpResponse.json({ msg: 'Project not found' }, { status: 404 })@@ -409,7 +416,9 @@ describe('SupportFormPage', () => {path: '/platform/organizations/:slug/projects',response: ({ params, request }) => {const slug = (params as { slug: string }).slug- const projects = mockProjects.filter((project) => project.organization_slug === slug)+ const projects = mockProjects.projects.filter(+ (project) => project.organization_slug === slug+ )const url = new URL(request.url)const limit = Number(url.searchParams.get('limit') ?? projects.length)@@ -924,7 +933,7 @@ describe('SupportFormPage', () => {path: '/platform/projects/:ref',response: ({ params }) => {const { ref } = params as { ref: string }- const project = mockProjects.find((candidate) => candidate.ref === ref)+ const project = mockProjects.projects.find((candidate) => candidate.ref === ref)return project? HttpResponse.json(project): HttpResponse.json({ msg: 'Project not found' }, { status: 404 })@@ -1617,7 +1626,7 @@ describe('SupportFormPage', () => {addAPIMock({method: 'get',path: '/platform/projects',- response: [],+ response: { pagination: { count: 0, limit: 100, offset: 0 }, projects: [] },})addAPIMock({diff --git a/apps/studio/data/projects/project-detail-query.ts b/apps/studio/data/projects/project-detail-query.tsindex db3c8eca432..8ba90592c07 100644--- a/apps/studio/data/projects/project-detail-query.ts+++ b/apps/studio/data/projects/project-detail-query.ts@@ -7,8 +7,6 @@ import { projectKeys } from './keys'import { OrgProjectsResponse } from './org-projects-infinite-query'type ProjectDetailVariables = { ref?: string }-type PaginatedProjectsResponse = components['schemas']['ListProjectsPaginatedResponse']-export type ProjectDetail = components['schemas']['ProjectDetailResponse']export interface Project extends Omit<ProjectDetail, 'status'> {/**diff --git a/apps/studio/data/projects/projects-infinite-query.ts b/apps/studio/data/projects/projects-infinite-query.tsindex ed2259a8c35..556333a8d96 100644--- a/apps/studio/data/projects/projects-infinite-query.ts+++ b/apps/studio/data/projects/projects-infinite-query.ts@@ -15,8 +15,8 @@ interface GetProjectsInfiniteVariables {page?: number}-export type ProjectInfoInfinite =- components['schemas']['ListProjectsPaginatedResponse']['projects'][number]+export type ProjectInfiniteResponse = components['schemas']['ListProjectsPaginatedResponse']+export type ProjectInfoInfinite = ProjectInfiniteResponse['projects'][number]async function getProjects({diff --git a/apps/studio/tests/helpers.tsx b/apps/studio/tests/helpers.tsxindex 64dfcfcc5fc..504b910da5e 100644--- a/apps/studio/tests/helpers.tsx+++ b/apps/studio/tests/helpers.tsx@@ -5,7 +5,7 @@ import { useState } from 'react'// End of third-party imports-import type { Project } from 'data/projects/project-detail-query'+import { ProjectInfoInfinite } from 'data/projects/projects-infinite-query'import type { Organization } from 'types'import { TooltipProvider } from 'ui'@@ -69,8 +69,8 @@ export const createMockOrganization = (details: Partial<Organization>): Organizareturn Object.assign(base, details)}-export const createMockProject = (details: Partial<Project>): Project => {- const base: Project = {+export const createMockProject = (details: Partial<ProjectInfoInfinite>): ProjectInfoInfinite => {+ const base: ProjectInfoInfinite = {id: 1,ref: 'abcdefghijklmnopqrst',name: 'Project 1',@@ -80,10 +80,10 @@ export const createMockProject = (details: Partial<Project>): Project => {region: 'us-east-1',inserted_at: new Date().toISOString(),subscription_id: 'subscription-1',- db_host: 'db.supabase.co',is_branch_enabled: false,is_physical_backups_enabled: false,- restUrl: 'https://project-1.supabase.co',+ organization_slug: 'slug',+ preview_branch_refs: [],}return Object.assign(base, details)diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.tsindex 96f39a51086..998932342db 100644--- a/packages/api-types/types/api.d.ts+++ b/packages/api-types/types/api.d.ts@@ -3166,7 +3166,8 @@ export interface components {root_key: string}PostgresConfigResponse: {- checkpoint_timeout?: number+ /** @description Default unit: s */+ checkpoint_timeout?: stringeffective_cache_size?: stringhot_standby_feedback?: booleanlogical_decoding_work_mem?: string@@ -3186,10 +3187,12 @@ export interface components {/** @enum {string} */session_replication_role?: 'origin' | 'replica' | 'local'shared_buffers?: string+ /** @description Default unit: ms */statement_timeout?: stringtrack_activity_query_size?: stringtrack_commit_timestamp?: booleanwal_keep_size?: string+ /** @description Default unit: ms */wal_sender_timeout?: stringwork_mem?: string}@@ -3808,7 +3811,8 @@ export interface components {root_key: string}UpdatePostgresConfigBody: {- checkpoint_timeout?: number+ /** @description Default unit: s */+ checkpoint_timeout?: stringeffective_cache_size?: stringhot_standby_feedback?: booleanlogical_decoding_work_mem?: string@@ -3829,10 +3833,12 @@ export interface components {/** @enum {string} */session_replication_role?: 'origin' | 'replica' | 'local'shared_buffers?: string+ /** @description Default unit: ms */statement_timeout?: stringtrack_activity_query_size?: stringtrack_commit_timestamp?: booleanwal_keep_size?: string+ /** @description Default unit: ms */wal_sender_timeout?: stringwork_mem?: string}diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.tsindex 45a1a2ac954..81755a605d5 100644--- a/packages/api-types/types/platform.d.ts+++ b/packages/api-types/types/platform.d.ts@@ -432,6 +432,23 @@ export interface paths {patch?: nevertrace?: never}+ '/platform/feedback/conversations/{conversation_id}/custom-fields': {+ parameters: {+ query?: never+ header?: never+ path?: never+ cookie?: never+ }+ get?: never+ put?: never+ post?: never+ delete?: never+ options?: never+ head?: never+ /** Update custom fields for a Front conversation */+ patch: operations['LinkConversationController_updateConversationCustomFields']+ trace?: never+ }'/platform/feedback/docs': {parameters: {query?: never@@ -1625,7 +1642,7 @@ export interface paths {path?: nevercookie?: never}- /** Gets the given organization's roles */+ /** Gets the given organization's roles with their corresponding projects */get: operations['OrganizationRolesController_getAllRoles']put?: neverpost?: never@@ -2098,7 +2115,9 @@ export interface paths {}/*** Gets all projects that belong to the authenticated user- * @description Only returns the minimal project info+ * @description Returns a paginated list of projects across all organizations the user has access to.+ *+ * This endpoint uses offset-based pagination. Use the `offset` parameter to skip a number of projects and the `limit` parameter to control the number of projects returned per page.*/get: operations['ProjectsController_getProjects']put?: never@@ -7344,22 +7363,6 @@ export interface components {subscription_id: string | nullusage_billing_enabled: boolean}- OrganizationRoleLegacyResponse: {- org_scoped_roles: {- base_role_id: number- description: string | null- id: number- name: string- project_ids: number[] | null- }[]- project_scoped_roles: {- base_role_id: number- description: string | null- id: number- name: string- project_ids: number[] | null- }[]- }OrganizationRoleResponse: {org_scoped_roles: {base_role_id: number@@ -7678,7 +7681,8 @@ export interface components {relation_schema: string}PostgresConfigResponse: {- checkpoint_timeout?: number+ /** @description Default unit: s */+ checkpoint_timeout?: stringeffective_cache_size?: stringhot_standby_feedback?: booleanlogical_decoding_work_mem?: string@@ -7698,10 +7702,12 @@ export interface components {/** @enum {string} */session_replication_role?: 'origin' | 'replica' | 'local'shared_buffers?: string+ /** @description Default unit: ms */statement_timeout?: stringtrack_activity_query_size?: stringtrack_commit_timestamp?: booleanwal_keep_size?: string+ /** @description Default unit: ms */wal_sender_timeout?: stringwork_mem?: string}@@ -8156,44 +8162,6 @@ export interface components {subscription_id: stringvolumeSizeGb?: number}- ProjectInfo: {- cloud_provider: string- disk_volume_size_gb?: number- id: number- /** @enum {string} */- infra_compute_size?:- | 'pico'- | 'nano'- | 'micro'- | 'small'- | 'medium'- | 'large'- | 'xlarge'- | '2xlarge'- | '4xlarge'- | '8xlarge'- | '12xlarge'- | '16xlarge'- | '24xlarge'- | '24xlarge_optimized_memory'- | '24xlarge_optimized_cpu'- | '24xlarge_high_memory'- | '48xlarge'- | '48xlarge_optimized_memory'- | '48xlarge_optimized_cpu'- | '48xlarge_high_memory'- inserted_at: string | null- is_branch_enabled: boolean- is_physical_backups_enabled: boolean | null- name: string- organization_id: number- organization_slug: string- preview_branch_refs: string[]- ref: string- region: string- status: string- subscription_id: string | null- }ProjectMembersResponse: {members: {primary_email: string@@ -9132,19 +9100,13 @@ export interface components {}StorageAnalyticsBucketResponse: {created_at: string- format: string- id: string- /** @enum {string} */- type: 'ANALYTICS'+ name: stringupdated_at: string}StorageAnalyticsBucketsResponse: {data: {created_at: string- format: string- id: string- /** @enum {string} */- type: 'ANALYTICS'+ name: stringupdated_at: string}[]}@@ -9625,6 +9587,18 @@ export interface components {UpdateContentFolderBody: {name: string}+ UpdateConversationCustomFieldsBody: {+ /** @default false */+ allow_support_access?: boolean+ /** @default Problem */+ category?: string+ org_id: number+ project_ref?: string+ }+ UpdateConversationCustomFieldsResponse: {+ /** @enum {string} */+ result: 'success'+ }UpdateDiskAutoscaleConfig: {/*** @description Growth percentage for disk autoscaling@@ -9996,7 +9970,8 @@ export interface components {server_lifetime?: number}UpdatePostgresConfigBody: {- checkpoint_timeout?: number+ /** @description Default unit: s */+ checkpoint_timeout?: stringeffective_cache_size?: stringhot_standby_feedback?: booleanlogical_decoding_work_mem?: string@@ -10017,10 +9992,12 @@ export interface components {/** @enum {string} */session_replication_role?: 'origin' | 'replica' | 'local'shared_buffers?: string+ /** @description Default unit: ms */statement_timeout?: stringtrack_activity_query_size?: stringtrack_commit_timestamp?: booleanwal_keep_size?: string+ /** @description Default unit: ms */wal_sender_timeout?: stringwork_mem?: string}@@ -11966,6 +11943,38 @@ export interface operations {}}}+ LinkConversationController_updateConversationCustomFields: {+ parameters: {+ query?: never+ header?: never+ path: {+ conversation_id: string+ }+ cookie?: never+ }+ requestBody: {+ content: {+ 'application/json': components['schemas']['UpdateConversationCustomFieldsBody']+ }+ }+ responses: {+ 200: {+ headers: {+ [name: string]: unknown+ }+ content: {+ 'application/json': components['schemas']['UpdateConversationCustomFieldsResponse']+ }+ }+ /** @description Failed to update conversation custom fields */+ 500: {+ headers: {+ [name: string]: unknown+ }+ content?: never+ }+ }+ }SendFeedbackController_sendDocsFeedback: {parameters: {query?: never@@ -15630,7 +15639,7 @@ export interface operations {[name: string]: unknown}content: {- 'application/json': components['schemas']['OrganizationRoleLegacyResponse']+ 'application/json': components['schemas']['OrganizationRoleResponse']}}/** @description Unauthorized */@@ -17236,7 +17245,16 @@ export interface operations {}ProjectsController_getProjects: {parameters: {- query?: never+ query?: {+ /** @description Number of projects to return per page */+ limit?: number+ /** @description Number of projects to skip */+ offset?: number+ /** @description Search projects by name */+ search?: string+ /** @description Sort order for projects */+ sort?: 'name_asc' | 'name_desc' | 'created_asc' | 'created_desc'+ }header?: neverpath?: nevercookie?: never@@ -17248,7 +17266,7 @@ export interface operations {[name: string]: unknown}content: {- 'application/json': components['schemas']['ProjectInfo'][]+ 'application/json': components['schemas']['ListProjectsPaginatedResponse']}}}@@ -21072,7 +21090,7 @@ export interface operations {InfraMonitoringController_getUsageMetrics: {parameters: {query: {- attribute:+ attribute?:| 'cpu_usage'| 'cpu_usage_busy_system'| 'cpu_usage_busy_user'@@ -21126,6 +21144,61 @@ export interface operations {| 'physical_replication_lag_physical_replica_lag_seconds'| 'pg_stat_database_num_backends'| 'max_db_connections'+ attributes?: (+ | 'cpu_usage'+ | 'cpu_usage_busy_system'+ | 'cpu_usage_busy_user'+ | 'cpu_usage_busy_iowait'+ | 'cpu_usage_busy_irqs'+ | 'cpu_usage_busy_other'+ | 'cpu_usage_busy_idle'+ | 'max_cpu_usage'+ | 'avg_cpu_usage'+ | 'ram_usage'+ | 'ram_usage_total'+ | 'ram_usage_available'+ | 'ram_usage_used'+ | 'ram_usage_free'+ | 'ram_usage_cache_and_buffers'+ | 'ram_usage_swap'+ | 'swap_usage'+ | 'client_connections_pgbouncer'+ | 'network_receive_bytes'+ | 'network_transmit_bytes'+ | 'pgbouncer_pools_client_active_connections'+ | 'supavisor_connections_active'+ | 'client_connections_postgres'+ | 'client_connections_authenticator'+ | 'client_connections_supabase_auth_admin'+ | 'client_connections_supabase_storage_admin'+ | 'client_connections_supabase_admin'+ | 'client_connections_other'+ | 'realtime_connections_connected'+ | 'realtime_channel_joins'+ | 'realtime_channel_events'+ | 'realtime_channel_presence_events'+ | 'realtime_channel_db_events'+ | 'realtime_authorization_rls_execution_time'+ | 'realtime_payload_size'+ | 'realtime_replication_connection_lag'+ | 'realtime_sum_connections_connected'+ | 'disk_io_budget'+ | 'disk_io_consumption'+ | 'disk_io_usage'+ | 'disk_iops_read'+ | 'disk_iops_write'+ | 'disk_bytes_read'+ | 'disk_bytes_written'+ | 'pg_database_size'+ | 'disk_fs_size'+ | 'disk_fs_avail'+ | 'disk_fs_used'+ | 'disk_fs_used_wal'+ | 'disk_fs_used_system'+ | 'physical_replication_lag_physical_replica_lag_seconds'+ | 'pg_stat_database_num_backends'+ | 'max_db_connections'+ )[]databaseIdentifier?: stringendDate: stringinterval?: '1m' | '5m' | '10m' | '30m' | '1h' | '1d'@@ -24337,7 +24410,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Analytics Bucket ID */id: string/** @description Project ref */ref: stringdiff --git a/packages/ui-patterns/src/ComputeBadge/index.tsx b/packages/ui-patterns/src/ComputeBadge/index.tsxindex fd57a8ed2f0..10d9e6ce13d 100644--- a/packages/ui-patterns/src/ComputeBadge/index.tsx+++ b/packages/ui-patterns/src/ComputeBadge/index.tsx@@ -2,7 +2,10 @@ import { components } from 'api-types'import { Badge, cn } from 'ui'interface ComputeBadgeProps extends React.ComponentProps<typeof Badge> {- infraComputeSize: components['schemas']['ProjectInfo']['infra_compute_size'] | '>16XL' | undefined+ infraComputeSize:+ | components['schemas']['ProjectDetailResponse']['infra_compute_size']+ | '>16XL'+ | undefined}export function ComputeBadge({ infraComputeSize, className, ...props }: ComputeBadgeProps) {