The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Update TS checks according to latest API changes (#34372)
Kamil Ogórek861fe9ec88d4
diff --git a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsxindex d8807b64234..21ca6157310 100644--- a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx+++ b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx@@ -45,17 +45,19 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {const isPhoneAuth = user.phone !== nullconst isBanned = user.banned_until !== null- const providers = (user.raw_app_meta_data?.providers ?? []).map((provider: string) => {- return {- name: provider.startsWith('sso') ? 'SAML' : provider,- icon:- provider === 'email'- ? `${BASE_PATH}/img/icons/email-icon2.svg`- : providerIconMap[provider]- ? `${BASE_PATH}/img/icons/${providerIconMap[provider]}.svg`- : undefined,+ const providers = ((user.raw_app_meta_data?.providers as string[]) ?? []).map(+ (provider: string) => {+ return {+ name: provider.startsWith('sso') ? 'SAML' : provider,+ icon:+ provider === 'email'+ ? `${BASE_PATH}/img/icons/email-icon2.svg`+ : providerIconMap[provider]+ ? `${BASE_PATH}/img/icons/${providerIconMap[provider]}.svg`+ : undefined,+ }}- })+ )const canUpdateUser = useCheckPermissions(PermissionAction.AUTH_EXECUTE, '*')const canSendMagicLink = useCheckPermissions(PermissionAction.AUTH_EXECUTE, 'send_magic_link')diff --git a/apps/studio/components/interfaces/Auth/Users/Users.utils.tsx b/apps/studio/components/interfaces/Auth/Users/Users.utils.tsxindex 3c129acfcf6..da827cf30b1 100644--- a/apps/studio/components/interfaces/Auth/Users/Users.utils.tsx+++ b/apps/studio/components/interfaces/Auth/Users/Users.utils.tsx@@ -27,7 +27,7 @@ export const isAtBottom = ({ currentTarget }: UIEvent<HTMLDivElement>): booleanexport const formatUsersData = (users: User[]) => {return users.map((user) => {- const provider: string = user.raw_app_meta_data?.provider ?? ''+ const provider: string = (user.raw_app_meta_data?.provider as string) ?? ''const providers: string[] = user.providers.map((x: string) => {if (x.startsWith('sso')) return 'SAML'return x@@ -168,7 +168,7 @@ export function getDisplayName(user: User, fallback = '-'): string {last_name: cc_last_name,firstName: ccFirstName,first_name: cc_first_name,- } = custom_claims ?? {}+ } = (custom_claims ?? {}) as anyconst last = toPrettyJsonString(familyName ||diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsxindex 10f81c41458..917cab4c768 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx@@ -43,7 +43,7 @@ export const Restriction = () => {shownAlert = 'restricted'}- if (shownAlert === null) {+ if (shownAlert === null || !org?.restriction_data) {return null}diff --git a/apps/studio/components/layouts/AppLayout/RestrictionBanner.tsx b/apps/studio/components/layouts/AppLayout/RestrictionBanner.tsxindex 78c18f5148a..4a0a7368802 100644--- a/apps/studio/components/layouts/AppLayout/RestrictionBanner.tsx+++ b/apps/studio/components/layouts/AppLayout/RestrictionBanner.tsx@@ -27,7 +27,7 @@ export const RestrictionBanner = () => {{currentOrg.restriction_status === 'restricted' ? <CriticalIcon /> : <WarningIcon />}<span>{currentOrg.restriction_status === 'grace_period' &&- `Your organization has exceeded its quota. You are given a grace period until ${dayjs(currentOrg.restriction_data['grace_period_end']).format('DD MMM, YYYY')}`}+ `Your organization has exceeded its quota. You are given a grace period until ${dayjs(currentOrg.restriction_data!['grace_period_end']).format('DD MMM, YYYY')}`}{currentOrg.restriction_status === 'grace_period_over' &&`Your grace period is over and your project will not be able to serve requests when you used up your quota.`}{currentOrg.restriction_status === 'restricted' &&diff --git a/apps/studio/data/organization-members/organization-roles-query.ts b/apps/studio/data/organization-members/organization-roles-query.tsindex 1a40af2acb0..9a0be12bee7 100644--- a/apps/studio/data/organization-members/organization-roles-query.ts+++ b/apps/studio/data/organization-members/organization-roles-query.ts@@ -8,7 +8,8 @@ import { organizationKeys } from './keys'export const FIXED_ROLE_ORDER = ['Owner', 'Administrator', 'Developer', 'Read-only']export type OrganizationRolesVariables = { slug?: string }export type OrganizationRolesResponse = components['schemas']['OrganizationRoleResponse']-export type OrganizationRole = components['schemas']['OrganizationRoleV2']+export type OrganizationRole =+ components['schemas']['OrganizationRoleResponse']['org_scoped_roles'][0]export async function getOrganizationRoles({ slug }: OrganizationRolesVariables,diff --git a/apps/studio/data/organizations/organization-audit-logs-query.ts b/apps/studio/data/organizations/organization-audit-logs-query.tsindex 67df5e1fa9f..4480816c4a1 100644--- a/apps/studio/data/organizations/organization-audit-logs-query.ts+++ b/apps/studio/data/organizations/organization-audit-logs-query.ts@@ -37,8 +37,8 @@ export type OrganizationAuditLogsResponse = {export type OrganizationAuditLogsVariables = {slug?: string- iso_timestamp_start?: string- iso_timestamp_end?: string+ iso_timestamp_start: string+ iso_timestamp_end: string}export async function getOrganizationAuditLogs(diff --git a/apps/studio/data/organizations/organization-customer-profile-update-mutation.ts b/apps/studio/data/organizations/organization-customer-profile-update-mutation.tsindex 945ae9c7f14..ca7af88b5d8 100644--- a/apps/studio/data/organizations/organization-customer-profile-update-mutation.ts+++ b/apps/studio/data/organizations/organization-customer-profile-update-mutation.ts@@ -8,7 +8,7 @@ import { organizationKeys } from './keys'export type OrganizationCustomerProfileUpdateVariables = {slug: string- address?: components['schemas']['CustomerBillingAddress']+ address?: components['schemas']['CustomerResponse']['address']}export async function updateOrganizationCustomerProfile({diff --git a/apps/studio/data/projects/project-restart-mutation.ts b/apps/studio/data/projects/project-restart-mutation.tsindex 9a226237ac4..f8cda402e68 100644--- a/apps/studio/data/projects/project-restart-mutation.ts+++ b/apps/studio/data/projects/project-restart-mutation.ts@@ -10,7 +10,7 @@ export type ProjectRestartVariables = {identifier?: string}-type RestartProjectBody = components['schemas']['RestartProjectBodyDto']+type RestartProjectBody = components['schemas']['RestartProjectBody']export async function restartProject({ ref, identifier }: ProjectRestartVariables) {const payload: RestartProjectBody = {}diff --git a/apps/studio/data/storage/bucket-object-download-mutation.ts b/apps/studio/data/storage/bucket-object-download-mutation.tsindex 0c790f11353..dca56be8d93 100644--- a/apps/studio/data/storage/bucket-object-download-mutation.ts+++ b/apps/studio/data/storage/bucket-object-download-mutation.ts@@ -10,7 +10,7 @@ type DownloadBucketObjectParams = {projectRef: stringbucketId?: stringpath: string- options?: components['schemas']['DownloadObjectOptions']+ options?: components['schemas']['DownloadObjectBody']['options']}export const downloadBucketObject = async ({ projectRef, bucketId, path, options }: DownloadBucketObjectParams,diff --git a/apps/studio/data/storage/bucket-object-get-public-url-mutation.ts b/apps/studio/data/storage/bucket-object-get-public-url-mutation.tsindex a34a9ae108f..810b724ee70 100644--- a/apps/studio/data/storage/bucket-object-get-public-url-mutation.ts+++ b/apps/studio/data/storage/bucket-object-get-public-url-mutation.ts@@ -9,7 +9,7 @@ type BucketObjectPublicUrlParams = {projectRef: stringbucketId?: stringpath: string- options?: components['schemas']['PublicUrlOptions']+ options?: components['schemas']['GetSignedUrlBody']['options']}export const getPublicUrlForBucketObject = async ({ projectRef, bucketId, path, options }: BucketObjectPublicUrlParams,diff --git a/apps/studio/data/storage/bucket-object-sign-mutation.ts b/apps/studio/data/storage/bucket-object-sign-mutation.tsindex 0fd305a3879..34600f8a459 100644--- a/apps/studio/data/storage/bucket-object-sign-mutation.ts+++ b/apps/studio/data/storage/bucket-object-sign-mutation.ts@@ -10,7 +10,7 @@ type SignBucketObjectParams = {bucketId?: stringpath: stringexpiresIn: number- options?: components['schemas']['SignedUrlOptions']+ options?: components['schemas']['GetSignedUrlBody']['options']}export const signBucketObject = async ({ projectRef, bucketId, path, expiresIn, options }: SignBucketObjectParams,diff --git a/apps/studio/data/storage/bucket-objects-list-mutation.ts b/apps/studio/data/storage/bucket-objects-list-mutation.tsindex 9870e9b0bc2..da97ab1718f 100644--- a/apps/studio/data/storage/bucket-objects-list-mutation.ts+++ b/apps/studio/data/storage/bucket-objects-list-mutation.ts@@ -9,7 +9,7 @@ type ListBucketObjectsParams = {projectRef: stringbucketId?: stringpath: string- options: components['schemas']['StorageObjectSearchOptions']+ options: components['schemas']['GetObjectsBody']['options']}export type StorageObject = components['schemas']['StorageObject']diff --git a/apps/studio/data/subscriptions/types.ts b/apps/studio/data/subscriptions/types.tsindex 43c81ecb94b..9491f5589d5 100644--- a/apps/studio/data/subscriptions/types.ts+++ b/apps/studio/data/subscriptions/types.ts@@ -15,7 +15,7 @@ export type ProjectAddon = components['schemas']['BillingProjectAddonResponse']export type PlanId = components['schemas']['BillingPlanId']-export type OrgPlan = components['schemas']['PlanResponse']+export type OrgPlan = components['schemas']['PlansResponse']['plans'][0]export type ProjectAddonType = components['schemas']['ProjectAddonType']diff --git a/apps/studio/data/usage/org-usage-query.ts b/apps/studio/data/usage/org-usage-query.tsindex 79124b869b6..9b6f4ae4344 100644--- a/apps/studio/data/usage/org-usage-query.ts+++ b/apps/studio/data/usage/org-usage-query.ts@@ -14,7 +14,7 @@ export type OrgUsageVariables = {}export type OrgUsageResponse = components['schemas']['OrgUsageResponse']-export type OrgMetricsUsage = components['schemas']['OrgMetricUsage']+export type OrgMetricsUsage = components['schemas']['OrgUsageResponse']['usages'][0]export async function getOrgUsage({ orgSlug, projectRef, start, end }: OrgUsageVariables,diff --git a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsxindex c8f321de714..69ba342545c 100644--- a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx+++ b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx@@ -940,7 +940,7 @@ class StorageExplorerStore {)const promises = files.map((file) => {- const fileMimeType = file.metadata?.mimetype ?? null+ const fileMimeType = (file.metadata?.mimetype as string) ?? nullreturn () => {return new Promise<| {diff --git a/apps/studio/types/base.ts b/apps/studio/types/base.tsindex f10ead99444..0543089ff20 100644--- a/apps/studio/types/base.ts+++ b/apps/studio/types/base.ts@@ -10,7 +10,7 @@ export interface Organization {opt_in_tags: string[]subscription_id?: string | nullrestriction_status: 'grace_period' | 'grace_period_over' | 'restricted' | null- restriction_data: Record<string, never>+ restriction_data: Record<string, string> | nullmanaged_by: 'supabase' | 'vercel-marketplace' | 'aws-marketplace'partner_id?: string}diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.tsindex 31f60b30510..d2f9189100f 100644--- a/packages/api-types/types/api.d.ts+++ b/packages/api-types/types/api.d.ts@@ -1643,6 +1643,9 @@ export interface components {* @enum {string}*/release_channel?: 'internal' | 'alpha' | 'beta' | 'ga' | 'withdrawn' | 'preview'+ secrets?: {+ [key: string]: string+ }}CreateOrganizationV1Dto: {name: stringdiff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.tsindex 43ac6c943a1..22cf13f82ea 100644--- a/packages/api-types/types/platform.d.ts+++ b/packages/api-types/types/platform.d.ts@@ -3965,7 +3965,17 @@ export interface components {schemas: {AccessControlPermission: {actions: string[] | null- condition: Record<string, never>+ condition:+ | (+ | string+ | number+ | boolean+ | unknown[]+ | {+ [key: string]: unknown+ }+ )+ | nullorganization_id: number | nullorganization_slug: stringproject_ids: number[] | null@@ -4032,7 +4042,7 @@ export interface components {role_scoped_projects?: string[]}AuditLogsResponse: {- result: Record<string, never>[]+ result: unknown[]retention_period: number}AuthBackupAdminLintResponseDto: {@@ -4134,13 +4144,16 @@ export interface components {}BillingCustomerUpdateBody: {additional_emails?: string[]- address?: components['schemas']['CustomerBillingAddress']+ address?: {+ city?: string+ country: string+ line1: string+ line2?: string+ postal_code?: string+ state?: string+ }}/** @enum {string} */- BillingPlanChangeType: 'upgrade' | 'downgrade' | 'none'- /** @enum {string} */- BillingPlanEffectiveAt: 'now' | 'end_of_billing_period' | 'none'- /** @enum {string} */BillingPlanId: 'free' | 'pro' | 'team' | 'enterprise'BillingProjectAddonResponse: {addons: components['schemas']['SelectedAddonResponse'][]@@ -4379,7 +4392,7 @@ export interface components {payment_method?: stringsize?: string/** @enum {string} */- tier: 'tier_payg' | 'tier_pro' | 'tier_free' | 'tier_team' | 'tier_enterprise'+ tier: 'tier_free' | 'tier_pro' | 'tier_payg' | 'tier_team' | 'tier_enterprise'}CreatePipelineResponse: {id: number@@ -4494,8 +4507,8 @@ export interface components {id: number}CreateStorageBucketBody: {- allowed_mime_types: string[]- file_size_limit: number+ allowed_mime_types?: string[]+ file_size_limit?: numberid: stringpublic: boolean}@@ -4562,7 +4575,9 @@ export interface components {email_change_token_new?: stringemail_confirmed_at?: stringencrypted_password?: string+ /** Format: uuid */id?: string+ /** Format: uuid */instance_id?: stringinvited_at?: stringis_anonymous?: boolean@@ -4574,8 +4589,12 @@ export interface components {phone_change_sent_at?: stringphone_change_token?: stringphone_confirmed_at?: string- raw_app_meta_data?: Record<string, never>- raw_user_meta_data?: Record<string, never>+ raw_app_meta_data?: {+ [key: string]: unknown+ }+ raw_user_meta_data?: {+ [key: string]: unknown+ }reauthentication_sent_at?: stringreauthentication_token?: stringrecovery_sent_at?: string@@ -4622,17 +4641,16 @@ export interface components {| 'requires_payment_method'| 'succeeded'}- CustomerBillingAddress: {- city?: string- country: string- line1: string- line2?: string- postal_code?: string- state?: string- }CustomerResponse: {additional_emails: string[] | null- address: components['schemas']['CustomerBillingAddress'] | null+ address?: {+ city?: string+ country: string+ line1: string+ line2?: string+ postal_code?: string+ state?: string+ }balance: numberbilling_via_partner: booleanemail: string@@ -4823,14 +4841,21 @@ export interface components {fileUrl: string}DownloadObjectBody: {- options?: components['schemas']['DownloadObjectOptions']+ options?: {+ download?: boolean+ downloadName?: string+ transform?: {+ /** @enum {string} */+ format?: 'origin'+ height?: number+ quality?: number+ /** @enum {string} */+ resize?: 'cover' | 'contain' | 'fill'+ width?: number+ }+ }path: string}- DownloadObjectOptions: {- download?: boolean- downloadName?: string- transform?: components['schemas']['StorageObjectTransformOptions']- }FormatQueryBody: {query: string}@@ -4934,7 +4959,15 @@ export interface components {website: string}GetObjectsBody: {- options: components['schemas']['StorageObjectSearchOptions']+ options?: {+ limit?: number+ offset?: number+ search?: string+ sortBy?: {+ column?: string+ order?: string+ }+ }path: string}GetOrganizationByFlyOrganizationIdResponse: {@@ -5020,26 +5053,52 @@ export interface components {title: string}[]GetPublicUrlBody: {- options?: components['schemas']['PublicUrlOptions']+ options?: {+ download?: boolean+ downloadName?: string+ transform?: {+ /** @enum {string} */+ format?: 'origin'+ height?: number+ quality?: number+ /** @enum {string} */+ resize?: 'cover' | 'contain' | 'fill'+ width?: number+ }+ }path: string}GetSignedUrlBody: {expiresIn: number- options?: components['schemas']['SignedUrlOptions']+ options?: {+ download?: boolean+ downloadName?: string+ transform?: {+ /** @enum {string} */+ format?: 'origin'+ height?: number+ quality?: number+ /** @enum {string} */+ resize?: 'cover' | 'contain' | 'fill'+ width?: number+ }+ }path: string}GetSignedUrlsBody: {expiresIn: number- options?: components['schemas']['SignedUrlsOptions']+ options?: {+ download?: boolean+ downloadName?: string+ }path: string[]}- GetStorageCredential: {- created_at: string- description: string- id: string- }GetStorageCredentialsResponse: {- data: components['schemas']['GetStorageCredential'][]+ data: {+ created_at: string+ description: string+ id: string+ }[]}GetSubscriptionResponse: {addons: components['schemas']['BillingSubscriptionAddon'][]@@ -5143,7 +5202,7 @@ export interface components {}projects: components['schemas']['IntegrationVercelProject'][]}- GitHubAuthorization: {+ GitHubAuthorizationResponse: {id: numbersender_id: numberuser_id: number@@ -5341,12 +5400,6 @@ export interface components {link?: components['schemas']['VercelProjectLink']name: string}- Invitation: {- id: number- invited_at: string- invited_email: string- role_id: number- }InvitationByTokenResponse: {authorized_user: booleanemail_match: boolean@@ -5357,7 +5410,12 @@ export interface components {token_does_not_exist: boolean}InvitationResponse: {- invitations: components['schemas']['Invitation'][]+ invitations: {+ id: number+ invited_at: string+ invited_email: string+ role_id: number+ }[]}Invoice: {amount_due: number@@ -5490,14 +5548,13 @@ export interface components {project_ref: string}[]}- LoadBalancerDatabase: {- identifier: string- status: string- /** @enum {string} */- type: 'PRIMARY' | 'READ_REPLICA'- }LoadBalancerDetailResponse: {- databases: components['schemas']['LoadBalancerDatabase'][]+ databases: {+ identifier: string+ status: string+ /** @enum {string} */+ type: 'PRIMARY' | 'READ_REPLICA'+ }[]endpoint: string}MarkDefaultPaymentMethodBody: {@@ -5509,7 +5566,9 @@ export interface components {Member: {gotrue_id: stringis_sso_user: boolean | null- metadata: Record<string, never> | null+ metadata: {+ [key: string]: unknown+ }mfa_enabled: booleanprimary_email: string | nullrole_ids: number[]@@ -5611,7 +5670,9 @@ export interface components {is_owner: booleanname: stringopt_in_tags: string[]- restriction_data: Record<string, never>+ restriction_data: {+ [key: string]: string+ } | null/** @enum {string|null} */restriction_status: 'grace_period' | 'grace_period_over' | 'restricted' | nullslug: string@@ -5619,15 +5680,20 @@ export interface components {subscription_id: string | null}OrganizationRoleResponse: {- org_scoped_roles: components['schemas']['OrganizationRoleV2'][]- project_scoped_roles: components['schemas']['OrganizationRoleV2'][]- }- OrganizationRoleV2: {- base_role_id: number- description: string | null- id: number- name: string- project_ids: number[] | null+ 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+ }[]}OrganizationSlugAvailableVersionsBodyDto: {provider: string@@ -5681,62 +5747,66 @@ export interface components {OrgDocumentUrlResponse: {fileUrl: string}- OrgMetricUsage: {- available_in_plan: boolean- capped: boolean- cost: number- /** @enum {string} */- metric:- | 'EGRESS'- | 'DATABASE_SIZE'- | 'STORAGE_SIZE'- | 'MONTHLY_ACTIVE_USERS'- | 'MONTHLY_ACTIVE_SSO_USERS'- | 'FUNCTION_INVOCATIONS'- | 'STORAGE_IMAGES_TRANSFORMED'- | 'REALTIME_MESSAGE_COUNT'- | 'REALTIME_PEAK_CONNECTIONS'- | 'DISK_SIZE_GB_HOURS_GP3'- | 'DISK_SIZE_GB_HOURS_IO2'- | 'AUTH_MFA_PHONE'- | 'AUTH_MFA_WEB_AUTHN'- | 'LOG_DRAIN_EVENTS'- | 'MONTHLY_ACTIVE_THIRD_PARTY_USERS'- | 'DISK_THROUGHPUT_GP3'- | 'DISK_IOPS_GP3'- | 'DISK_IOPS_IO2'- | 'COMPUTE_HOURS_BRANCH'- | 'COMPUTE_HOURS_XS'- | 'COMPUTE_HOURS_SM'- | 'COMPUTE_HOURS_MD'- | 'COMPUTE_HOURS_L'- | 'COMPUTE_HOURS_XL'- | 'COMPUTE_HOURS_2XL'- | 'COMPUTE_HOURS_4XL'- | 'COMPUTE_HOURS_8XL'- | 'COMPUTE_HOURS_12XL'- | 'COMPUTE_HOURS_16XL'- | 'CUSTOM_DOMAIN'- | 'PITR_7'- | 'PITR_14'- | 'PITR_28'- | 'IPV4'- | 'LOG_DRAIN'- pricing_free_units?: number- pricing_package_price?: number- pricing_package_size?: number- pricing_per_unit_price?: number- /** @enum {string} */- pricing_strategy: 'UNIT' | 'PACKAGE' | 'TIERED' | 'NONE'- project_allocations: components['schemas']['ProjectAllocation'][]- unit_price_desc: string- unlimited: boolean- usage: number- usage_original: number- }OrgUsageResponse: {usage_billing_enabled: boolean- usages: components['schemas']['OrgMetricUsage'][]+ usages: {+ available_in_plan: boolean+ capped: boolean+ cost: number+ /** @enum {string} */+ metric:+ | 'EGRESS'+ | 'DATABASE_SIZE'+ | 'STORAGE_SIZE'+ | 'MONTHLY_ACTIVE_USERS'+ | 'MONTHLY_ACTIVE_SSO_USERS'+ | 'FUNCTION_INVOCATIONS'+ | 'STORAGE_IMAGES_TRANSFORMED'+ | 'REALTIME_MESSAGE_COUNT'+ | 'REALTIME_PEAK_CONNECTIONS'+ | 'DISK_SIZE_GB_HOURS_GP3'+ | 'DISK_SIZE_GB_HOURS_IO2'+ | 'AUTH_MFA_PHONE'+ | 'AUTH_MFA_WEB_AUTHN'+ | 'LOG_DRAIN_EVENTS'+ | 'MONTHLY_ACTIVE_THIRD_PARTY_USERS'+ | 'DISK_THROUGHPUT_GP3'+ | 'DISK_IOPS_GP3'+ | 'DISK_IOPS_IO2'+ | 'COMPUTE_HOURS_BRANCH'+ | 'COMPUTE_HOURS_XS'+ | 'COMPUTE_HOURS_SM'+ | 'COMPUTE_HOURS_MD'+ | 'COMPUTE_HOURS_L'+ | 'COMPUTE_HOURS_XL'+ | 'COMPUTE_HOURS_2XL'+ | 'COMPUTE_HOURS_4XL'+ | 'COMPUTE_HOURS_8XL'+ | 'COMPUTE_HOURS_12XL'+ | 'COMPUTE_HOURS_16XL'+ | 'CUSTOM_DOMAIN'+ | 'PITR_7'+ | 'PITR_14'+ | 'PITR_28'+ | 'IPV4'+ | 'LOG_DRAIN'+ pricing_free_units?: number+ pricing_package_price?: number+ pricing_package_size?: number+ pricing_per_unit_price?: number+ /** @enum {string} */+ pricing_strategy: 'UNIT' | 'PACKAGE' | 'TIERED' | 'NONE'+ project_allocations: {+ hours?: number+ name: string+ ref: string+ usage: number+ }[]+ unit_price_desc: string+ unlimited: boolean+ usage: number+ usage_original: number+ }[]}OverdueInvoiceCount: {organization_id: number@@ -5747,11 +5817,11 @@ export interface components {}PasswordCheckResponse: {result: {- feedback?: {- suggestions?: string[]- warning?: string+ feedback: {+ suggestions: string[]+ warning: string}- score?: number+ score: number}}PauseStatusResponse: {@@ -5798,16 +5868,18 @@ export interface components {PgbouncerStatusResponse: {active: boolean}- PlanResponse: {- change_type: components['schemas']['BillingPlanChangeType']- effective_at: components['schemas']['BillingPlanEffectiveAt']- id: components['schemas']['BillingPlanId']- is_current: boolean- name: string- price: number- }PlansResponse: {- plans: components['schemas']['PlanResponse'][]+ plans: {+ /** @enum {string} */+ change_type: 'upgrade' | 'downgrade' | 'none'+ /** @enum {string} */+ effective_at?: 'now' | 'end_of_billing_period' | 'none'+ /** @enum {string} */+ id: 'free' | 'pro' | 'team' | 'enterprise'+ is_current: boolean+ name: string+ price: number+ }[]}PointInTimeRestoreBody: {recovery_time_target_unix: number@@ -5878,7 +5950,27 @@ export interface components {schema: string | null}PostgresForeignTable: {- columns?: components['schemas']['PostgresColumn'][]+ columns?: {+ check: string | null+ comment: string | null+ data_type: string+ default_value: (string | number) | null+ enums: string[]+ format: string+ id: string+ /** @enum {string|null} */+ identity_generation: 'BY DEFAULT' | 'ALWAYS' | null+ is_generated: boolean+ is_identity: boolean+ is_nullable: boolean+ is_unique: boolean+ is_updatable: boolean+ name: string+ ordinal_position: number+ schema: string+ table: string+ table_id: number+ }[]comment: string | nullid: numbername: string@@ -5900,7 +5992,27 @@ export interface components {security_definer: boolean}PostgresMaterializedView: {- columns?: components['schemas']['PostgresColumn'][]+ columns?: {+ check: string | null+ comment: string | null+ data_type: string+ default_value: (string | number) | null+ enums: string[]+ format: string+ id: string+ /** @enum {string|null} */+ identity_generation: 'BY DEFAULT' | 'ALWAYS' | null+ is_generated: boolean+ is_identity: boolean+ is_nullable: boolean+ is_unique: boolean+ is_updatable: boolean+ name: string+ ordinal_position: number+ schema: string+ table: string+ table_id: number+ }[]comment: string | nullid: numberis_populated: boolean@@ -5980,7 +6092,27 @@ export interface components {schema: string}PostgresView: {- columns?: components['schemas']['PostgresColumn'][]+ columns?: {+ check: string | null+ comment: string | null+ data_type: string+ default_value: (string | number) | null+ enums: string[]+ format: string+ id: string+ /** @enum {string|null} */+ identity_generation: 'BY DEFAULT' | 'ALWAYS' | null+ is_generated: boolean+ is_identity: boolean+ is_nullable: boolean+ is_unique: boolean+ is_updatable: boolean+ name: string+ ordinal_position: number+ schema: string+ table: string+ table_id: number+ }[]comment: string | nullid: numberis_updatable: boolean@@ -6090,12 +6222,6 @@ export interface components {price_interval: components['schemas']['ProjectAddonPricingInterval']price_type: components['schemas']['ProjectAddonVariantPricingType']}- ProjectAllocation: {- hours?: number- name: string- ref: string- usage: number- }ProjectAppConfigResponse: {db_schema: stringendpoint: string@@ -6280,11 +6406,6 @@ export interface components {region: stringstatus: components['schemas']['project_status']}- PublicUrlOptions: {- download?: boolean- downloadName?: string- transform?: components['schemas']['StorageObjectTransformOptions']- }PublicUrlResponse: {publicUrl: string}@@ -6427,13 +6548,15 @@ export interface components {}[]}ResetPasswordBody: {+ /** Format: email */email: string+ /** Format: uri */redirectTo?: string}ResizeBody: {volume_size_gb: number}- RestartProjectBodyDto: {+ RestartProjectBody: {database_identifier?: string}RestartServiceRequest: {@@ -6571,31 +6694,28 @@ export interface components {}SetupIntentResponse: {client_secret: string- payment_method: Record<string, never>- }- SignedUrlOptions: {- download?: boolean- downloadName?: string- transform?: components['schemas']['StorageObjectTransformOptions']+ payment_method:+ | string+ | {+ [key: string]: unknown+ }}SignedUrlResponse: {signedUrl: string}- SignedUrlsOptions: {- download?: boolean- downloadName?: string- }SignedUrlsResponse: {error: string | nullpath: string | nullsignedUrl: string}SignUpBody: {+ /** Format: email */email: stringpassword: string+ /** Format: uri */redirectTo?: string}- StorageBucket: {+ StorageBucketResponse: {created_at: stringid: stringname: string@@ -6620,34 +6740,24 @@ export interface components {}StorageObject: {bucket_id: string- buckets: components['schemas']['StorageBucket']+ buckets: {+ created_at: string+ id: string+ name: string+ owner: string+ public: boolean+ updated_at: string+ }created_at: stringid: stringlast_accessed_at: string- metadata: Record<string, never>+ metadata: {+ [key: string]: unknown+ }name: stringowner: stringupdated_at: string}- StorageObjectSearchOptions: {- limit?: number- offset?: number- search?: string- sortBy?: components['schemas']['StorageObjectSortBy']- }- StorageObjectSortBy: {- column?: string- order?: string- }- StorageObjectTransformOptions: {- /** @enum {string} */- format?: 'origin'- height?: number- quality?: number- /** @enum {string} */- resize?: 'cover' | 'contain' | 'fill'- width?: number- }SupavisorConfigResponse: {connection_string: string/**@@ -6763,8 +6873,9 @@ export interface components {pathname: string}TransferOrganizationBody: {+ /** Format: uuid */member_gotrue_id: string- member_id: number+ member_id?: numberorg_id: number}TransferProjectBody: {@@ -7159,8 +7270,8 @@ export interface components {max_rows: number}UpdateProfileBody: {- first_name: string- last_name: string+ first_name?: string+ last_name?: string}UpdateProjectBody: {name: string@@ -7230,8 +7341,8 @@ export interface components {message: string}UpdateStorageBucketBody: {- allowed_mime_types: string[]- file_size_limit: number+ allowed_mime_types?: string[]+ file_size_limit?: numberpublic: boolean}UpdateStorageConfigBody: {@@ -7304,7 +7415,9 @@ export interface components {email_change_token_new?: stringemail_confirmed_at?: stringencrypted_password?: string+ /** Format: uuid */id?: string+ /** Format: uuid */instance_id?: stringinvited_at?: stringis_anonymous?: boolean@@ -7316,8 +7429,12 @@ export interface components {phone_change_sent_at?: stringphone_change_token?: stringphone_confirmed_at?: string- raw_app_meta_data?: Record<string, never>- raw_user_meta_data?: Record<string, never>+ raw_app_meta_data?: {+ [key: string]: unknown+ }+ raw_user_meta_data?: {+ [key: string]: unknown+ }reauthentication_sent_at?: stringreauthentication_token?: stringrecovery_sent_at?: string@@ -7346,6 +7463,10 @@ export interface components {/** @enum {string} */visibility: 'user' | 'project' | 'org' | 'public'}+ UserAuditLogsResponse: {+ result: unknown[]+ retention_period: number+ }UserBody: {aud?: stringbanned_until?: string@@ -7362,7 +7483,9 @@ export interface components {email_change_token_new?: stringemail_confirmed_at?: stringencrypted_password?: string+ /** Format: uuid */id?: string+ /** Format: uuid */instance_id?: stringinvited_at?: stringis_anonymous?: boolean@@ -7374,8 +7497,12 @@ export interface components {phone_change_sent_at?: stringphone_change_token?: stringphone_confirmed_at?: string- raw_app_meta_data?: Record<string, never>- raw_user_meta_data?: Record<string, never>+ raw_app_meta_data?: {+ [key: string]: unknown+ }+ raw_user_meta_data?: {+ [key: string]: unknown+ }reauthentication_sent_at?: stringreauthentication_token?: stringrecovery_sent_at?: string@@ -7434,12 +7561,11 @@ export interface components {subject: string}ValidateSpamResponse: {- rules: components['schemas']['ValidateSpamRule'][]- }- ValidateSpamRule: {- desc: string- name: string- score: number+ rules: {+ desc: string+ name: string+ score: number+ }[]}VercelProjectDeployHooks: {createdAt?: number@@ -7461,7 +7587,7 @@ export interface components {branch_id: stringcheck_run_id: number | nullcreated_at: string- git_config: Record<string, never> | null+ git_config?: unknownid: string/** @enum {string} */status:@@ -7780,7 +7906,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Project ref */ref: string}cookie?: never@@ -7820,7 +7945,6 @@ export interface operations {header?: neverpath: {id: string- /** @description Project ref */ref: string}cookie?: never@@ -7854,7 +7978,6 @@ export interface operations {header?: neverpath: {id: string- /** @description Project ref */ref: string}cookie?: never@@ -8355,8 +8478,8 @@ export interface operations {parameters: {query: {id: number- limit?: string- offset?: string+ limit: number+ offset: number}header: {'x-connection-encrypted': string@@ -8583,7 +8706,7 @@ export interface operations {[name: string]: unknown}content: {- 'application/json': components['schemas']['GitHubAuthorization']+ 'application/json': components['schemas']['GitHubAuthorizationResponse']}}/** @description Failed to get GitHub authorization */@@ -9188,7 +9311,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Oauth authorization id */id: string}cookie?: never@@ -9348,11 +9470,9 @@ export interface operations {}OrgAuditLogsController_getAuditLogs: {parameters: {- query?: {- /** @description End timestamp */- iso_timestamp_end?: string- /** @description Start timestamp */- iso_timestamp_start?: string+ query: {+ iso_timestamp_end: string+ iso_timestamp_start: string}header?: neverpath: {@@ -9787,7 +9907,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -9816,7 +9935,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -9998,7 +10116,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -10028,7 +10145,6 @@ export interface operations {header?: neverpath: {gotrue_id: string- /** @description Organization slug */slug: string}cookie?: never@@ -10056,7 +10172,6 @@ export interface operations {header?: neverpath: {gotrue_id: string- /** @description Organization slug */slug: string}cookie?: never@@ -10089,7 +10204,6 @@ export interface operations {path: {gotrue_id: stringrole_id: string- /** @description Organization slug */slug: string}cookie?: never@@ -10122,7 +10236,6 @@ export interface operations {path: {gotrue_id: stringrole_id: string- /** @description Organization slug */slug: string}cookie?: never@@ -10149,7 +10262,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -10178,7 +10290,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -10210,7 +10321,6 @@ export interface operations {header?: neverpath: {id: number- /** @description Organization slug */slug: string}cookie?: never@@ -10237,7 +10347,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: stringtoken: string}@@ -10267,7 +10376,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: stringtoken: string}@@ -10326,7 +10434,6 @@ export interface operations {}header?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -10354,7 +10461,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -10474,9 +10580,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Oauth authorization id */id: string- /** @description Organization slug */slug: string}cookie?: never@@ -10504,9 +10608,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Oauth authorization id */id: string- /** @description Organization slug */slug: string}cookie?: never@@ -10885,7 +10987,6 @@ export interface operations {}header?: neverpath: {- /** @description Organization slug */slug: string}cookie?: never@@ -12831,11 +12932,9 @@ export interface operations {}UserAuditLogsController_getAuditLogs: {parameters: {- query?: {- /** @description End timestamp */- iso_timestamp_end?: string- /** @description Start timestamp */- iso_timestamp_start?: string+ query: {+ iso_timestamp_end: string+ iso_timestamp_start: string}header?: neverpath?: never@@ -12848,7 +12947,7 @@ export interface operations {[name: string]: unknown}content: {- 'application/json': components['schemas']['AuditLogsResponse']+ 'application/json': components['schemas']['UserAuditLogsResponse']}}/** @description Failed to get a user's audit logs */@@ -15672,7 +15771,7 @@ export interface operations {}requestBody: {content: {- 'application/json': components['schemas']['RestartProjectBodyDto']+ 'application/json': components['schemas']['RestartProjectBody']}}responses: {@@ -17012,7 +17111,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Project ref */ref: string}cookie?: never@@ -17024,7 +17122,7 @@ export interface operations {[name: string]: unknown}content: {- 'application/json': components['schemas']['StorageBucket'][]+ 'application/json': components['schemas']['StorageBucketResponse'][]}}403: {@@ -17047,7 +17145,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Project ref */ref: string}cookie?: never@@ -17086,9 +17183,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17100,7 +17195,7 @@ export interface operations {[name: string]: unknown}content: {- 'application/json': components['schemas']['StorageBucket']+ 'application/json': components['schemas']['StorageBucketResponse']}}403: {@@ -17123,9 +17218,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17158,9 +17251,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17197,9 +17288,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17232,9 +17321,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17271,9 +17359,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17312,9 +17399,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17351,9 +17437,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17392,9 +17477,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17431,9 +17515,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17472,9 +17555,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17513,9 +17595,8 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage bucket id */+ /** @description Bucket ID */id: string- /** @description Project ref */ref: string}cookie?: never@@ -17554,7 +17635,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Project ref */ref: string}cookie?: never@@ -17589,7 +17669,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Project ref */ref: string}cookie?: never@@ -17628,9 +17707,7 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Storage credential id */id: string- /** @description Project ref */ref: string}cookie?: never@@ -18005,7 +18082,6 @@ export interface operations {VercelProjectsController_getVercelProjects: {parameters: {query: {- id: stringteamId: string}header: {@@ -18036,7 +18112,6 @@ export interface operations {VercelProjectsController_getVercelProject: {parameters: {query: {- id: stringteamId: string}header: {@@ -18044,7 +18119,6 @@ export interface operations {}path: {id: string- teamId: string}cookie?: never}@@ -18071,7 +18145,7 @@ export interface operations {parameters: {query: {projectId: string- teamId?: string+ teamId: string}header: {vercel_authorization: string@@ -18102,7 +18176,7 @@ export interface operations {parameters: {query: {projectId: string- teamId?: string+ teamId: string}header: {vercel_authorization: string@@ -18190,11 +18264,9 @@ export interface operations {WorkflowRunController_listWorkflowRuns: {parameters: {query?: {- /** @description Branch ID */branch_id?: stringlimit?: numberoffset?: number- /** @description Project ref */project_ref?: string}header?: never@@ -18223,9 +18295,7 @@ export interface operations {WorkflowRunController_countWorkflowRuns: {parameters: {query?: {- /** @description Branch ID */branch_id?: string- /** @description Project ref */project_ref?: string}header?: never@@ -18256,7 +18326,6 @@ export interface operations {query?: neverheader?: neverpath: {- /** @description Workflow run ID */workflow_run_id: string}cookie?: never