The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Revert "feat: support new platform plan" (#40980)
Joshen Lim888b1794c637
diff --git a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsxindex eed802a8f73..a92e555dc76 100644--- a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx+++ b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx@@ -52,10 +52,8 @@ export const AddHookDropdown = ({const nonEnterpriseHookOptions = hooks.filter((h) => !isValidHook(h) && !h.enterprise)const enterpriseHookOptions = hooks.filter((h) => !isValidHook(h) && h.enterprise)- const hasAccessToAdvancedHooks =- organization?.plan.id === 'team' ||- organization?.plan.id === 'enterprise' ||- organization?.plan.id === 'platform'+ const isTeamsOrEnterprisePlan =+ organization?.plan.id === 'team' || organization?.plan.id === 'enterprise'if (!canUpdateAuthHook) {return (@@ -89,7 +87,7 @@ export const AddHookDropdown = ({<DropdownMenuSeparator />- {!hasAccessToAdvancedHooks && (+ {!isTeamsOrEnterprisePlan && (<DropdownMenuLabel className="grid gap-1 bg-surface-200"><p className="text-foreground-light">Team or Enterprise Plan required</p><p className="text-foreground-lighter text-xs">@@ -99,10 +97,10 @@ export const AddHookDropdown = ({</DropdownMenuLabel>)}{enterpriseHookOptions.map((h) =>- hasAccessToAdvancedHooks ? (+ isTeamsOrEnterprisePlan ? (<DropdownMenuItemkey={h.title}- disabled={!hasAccessToAdvancedHooks}+ disabled={!isTeamsOrEnterprisePlan}className=""onClick={() => onSelectHook(h.title)}>@@ -111,7 +109,7 @@ export const AddHookDropdown = ({) : (<DropdownMenuItemkey={h.title}- disabled={!hasAccessToAdvancedHooks}+ disabled={!isTeamsOrEnterprisePlan}onClick={() => onSelectHook(h.title)}>{h.title}diff --git a/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx b/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsxindex f45960f8600..372b8257b9e 100644--- a/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx+++ b/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx@@ -15,8 +15,7 @@ export const NoProjectsOnPaidOrgInfo = ({ organization }: NoProjectsOnPaidOrgInfprojectCount > 0 ||organization?.plan === undefined ||organization.plan.id === 'free' ||- organization.plan.id === 'enterprise' ||- organization.plan.id === 'platform'+ organization.plan.id === 'enterprise')return nulldiff --git a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.tsindex 7d8ab4ec3e4..ece737507d6 100644--- a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts+++ b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts@@ -45,35 +45,24 @@ export const getPlanChangeType = (pro: 'upgrade',team: 'upgrade',enterprise: 'upgrade',- platform: 'upgrade',},pro: {free: 'downgrade',pro: 'none',team: 'upgrade',enterprise: 'upgrade',- platform: 'upgrade',},team: {free: 'downgrade',pro: 'downgrade',team: 'none',enterprise: 'upgrade',- platform: 'upgrade',},enterprise: {free: 'downgrade',pro: 'downgrade',team: 'downgrade',enterprise: 'none',- platform: 'upgrade',- },- platform: {- free: 'downgrade',- pro: 'downgrade',- team: 'downgrade',- enterprise: 'downgrade',- platform: 'none',},}diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagement.constants.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagement.constants.tsxindex 6cd51999223..2dc509a0c8d 100644--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagement.constants.tsx+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagement.constants.tsx@@ -57,7 +57,6 @@ export const PLAN_DETAILS: Record<PlanId, PlanDetails> = {pro: { includedDiskGB: { gp3: 8, io2: 0 } },team: { includedDiskGB: { gp3: 8, io2: 0 } },enterprise: { includedDiskGB: { gp3: 8, io2: 0 } },- platform: { includedDiskGB: { gp3: 8, io2: 0 } },}export const COMPUTE_BASELINE_IOPS = {diff --git a/apps/studio/components/interfaces/Home/ProjectUsage.tsx b/apps/studio/components/interfaces/Home/ProjectUsage.tsxindex 0a2ea44a51e..1afdaada2f1 100644--- a/apps/studio/components/interfaces/Home/ProjectUsage.tsx+++ b/apps/studio/components/interfaces/Home/ProjectUsage.tsx@@ -35,7 +35,7 @@ import {type ChartIntervalKey = ProjectLogStatsVariables['interval']-const LOG_RETENTION = { free: 1, pro: 7, team: 28, enterprise: 90, platform: 1 }+const LOG_RETENTION = { free: 1, pro: 7, team: 28, enterprise: 90 }const CHART_INTERVALS: ChartIntervals[] = [{@@ -44,7 +44,7 @@ const CHART_INTERVALS: ChartIntervals[] = [startValue: 1,startUnit: 'hour',format: 'MMM D, h:mma',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{key: '1day',@@ -52,7 +52,7 @@ const CHART_INTERVALS: ChartIntervals[] = [startValue: 24,startUnit: 'hour',format: 'MMM D, ha',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{key: '7day',diff --git a/apps/studio/components/interfaces/HomeNew/ProjectUsageSection.tsx b/apps/studio/components/interfaces/HomeNew/ProjectUsageSection.tsxindex f3a1e6da98a..7fb2e02baf8 100644--- a/apps/studio/components/interfaces/HomeNew/ProjectUsageSection.tsx+++ b/apps/studio/components/interfaces/HomeNew/ProjectUsageSection.tsx@@ -43,7 +43,7 @@ import {formatDelta,} from './ProjectUsage.metrics'-const LOG_RETENTION = { free: 1, pro: 7, team: 28, enterprise: 90, platform: 1 }+const LOG_RETENTION = { free: 1, pro: 7, team: 28, enterprise: 90 }const CHART_INTERVALS: ChartIntervals[] = [{@@ -52,7 +52,7 @@ const CHART_INTERVALS: ChartIntervals[] = [startValue: 1,startUnit: 'hour',format: 'MMM D, h:mma',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{key: '1day',@@ -60,7 +60,7 @@ const CHART_INTERVALS: ChartIntervals[] = [startValue: 24,startUnit: 'hour',format: 'MMM D, ha',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{key: '7day',diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsxindex 4b7feab3e57..b11a717a703 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx@@ -57,7 +57,6 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => {isSuccess,} = useOrgUpcomingInvoiceQuery({ orgSlug: slug })- // For non-platform customers, compute is broken down per project and contains a breakdown arrayconst computeItems =upcomingInvoice?.lines?.filter((item) =>@@ -82,8 +81,7 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => {const otherItems =upcomingInvoice?.lines?.filter((item) =>- // In case we have no per-project breakdown for compute, we treat it as a regular item for display purposes- (!item.usage_metric?.toString()?.startsWith('COMPUTE_HOURS') || !item.breakdown?.length) &&+ !item.description?.toLowerCase().includes('compute') &&!item.description?.toLowerCase().includes('plan')) || []diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsxindex 3d8c77b845d..edf665e233e 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx@@ -51,7 +51,7 @@ const CostControl = ({}: CostControlProps) => {const isUsageBillingEnabled = subscription?.usage_billing_enabled ?? falseconst canChangeTier =- !projectUpdateDisabled && !['team', 'enterprise', 'platform'].includes(currentPlan?.id || '')+ !projectUpdateDisabled && !['team', 'enterprise'].includes(currentPlan?.id || '')const costControlDisabled = selectedOrganization?.managed_by === MANAGED_BY.AWS_MARKETPLACE@@ -122,7 +122,7 @@ const CostControl = ({}: CostControlProps) => {{isSuccess && !costControlDisabled && (<div className="space-y-6">- {['team', 'enterprise', 'platform'].includes(currentPlan?.id || '') ? (+ {['team', 'enterprise'].includes(currentPlan?.id || '') ? (<AlertwithIconvariant="info"diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsxindex a37b9900bd9..75d8248812c 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx@@ -238,7 +238,6 @@ export const PlanUpdateSidePanel = () => {type={isDowngradeOption ? 'default' : 'primary'}disabled={subscription?.plan?.id === 'enterprise' ||- subscription?.plan?.id === 'platform' ||// Downgrades to free are still allowed through the dashboard given we have much better control about showing customers the impact + any possible issues with downgrading to free(selectedOrganization?.managed_by !== MANAGED_BY.SUPABASE &&plan.id !== 'tier_free') ||@@ -263,9 +262,8 @@ export const PlanUpdateSidePanel = () => {side: 'bottom',className: hasOrioleProjects ? 'w-96 text-center' : '',text:- subscription?.plan?.id === 'enterprise' ||- subscription?.plan?.id === 'platform'- ? 'Reach out to us via support to update your plan'+ subscription?.plan?.id === 'enterprise'+ ? 'Reach out to us via support to update your plan from Enterprise': hasOrioleProjects? 'Your organization has projects that are using the OrioleDB extension which is only available on the Free plan. Remove all OrioleDB projects before changing your plan.': !canUpdateSubscriptiondiff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsxindex 71382697cc8..2e9a052a10e 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx@@ -41,8 +41,7 @@ const Subscription = () => {const currentPlan = subscription?.planconst planName = currentPlan?.name ?? 'Unknown'- const canChangeTier =- !projectUpdateDisabled && !['enterprise', 'platform'].includes(currentPlan?.id ?? '')+ const canChangeTier = !projectUpdateDisabled && !['enterprise'].includes(currentPlan?.id ?? '')return (<>diff --git a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsxindex 08b0072ac39..373db6d7bea 100644--- a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx+++ b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx@@ -69,7 +69,7 @@ export const SSOConfig = () => {const { data: organization } = useSelectedOrganizationQuery()const plan = organization?.plan.id- const canSetupSSOConfig = ['team', 'enterprise', 'platform'].includes(plan ?? '')+ const canSetupSSOConfig = ['team', 'enterprise'].includes(plan ?? '')const {data: ssoConfig,diff --git a/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsxindex 7b480f0f2a7..70cdf7bae94 100644--- a/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx+++ b/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx@@ -63,8 +63,6 @@ export const TotalUsage = ({// When the user filters by project ref or selects a custom timeframe, we only display usage+project breakdown, but no costs/limitsconst showRelationToSubscription = currentBillingCycleSelected && !projectRef- const isOnHigherPlan = ['team', 'enterprise', 'platform'].includes(subscription?.plan.id ?? '')-const hasExceededAnyLimits =showRelationToSubscription &&Boolean(@@ -150,7 +148,7 @@ export const TotalUsage = ({{isSuccessUsage && subscription && (<div>- {showRelationToSubscription && !isOnHigherPlan && (+ {showRelationToSubscription && (<p className="text-sm">{!hasExceededAnyLimits ? (<span>diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts b/apps/studio/components/interfaces/Organization/Usage/Usage.utils.tsindex 75388d05974..ebfba8dfca8 100644--- a/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts@@ -23,7 +23,7 @@ export function useGetUpgradeUrl(slug: string, subscription?: OrgSubscription, sif (!billingAll) {const subject = `Enquiry to upgrade plan for organization`- const message = `Organization Slug: ${slug}\nRequested plan: <Specify which plan to upgrade to: Pro | Team | Enterprise | Platform>`+ const message = `Organization Slug: ${slug}\nRequested plan: <Specify which plan to upgrade to: Pro | Team | Enterprise>`return `/support/new?orgSlug=${slug}&projectRef=no-project&category=Plan_upgrade&subject=${subject}&message=${encodeURIComponent(message)}`}diff --git a/apps/studio/components/interfaces/Reports/Reports.constants.ts b/apps/studio/components/interfaces/Reports/Reports.constants.tsindex e5f4794d1f6..7fa34e6f29d 100644--- a/apps/studio/components/interfaces/Reports/Reports.constants.ts+++ b/apps/studio/components/interfaces/Reports/Reports.constants.ts@@ -26,32 +26,32 @@ export const REPORTS_DATEPICKER_HELPERS: ReportsDatetimeHelper[] = [text: REPORT_DATERANGE_HELPER_LABELS.LAST_10_MINUTES,calcFrom: () => dayjs().subtract(10, 'minute').toISOString(),calcTo: () => dayjs().toISOString(),- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{text: REPORT_DATERANGE_HELPER_LABELS.LAST_30_MINUTES,calcFrom: () => dayjs().subtract(30, 'minute').toISOString(),calcTo: () => dayjs().toISOString(),- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{text: REPORT_DATERANGE_HELPER_LABELS.LAST_60_MINUTES,calcFrom: () => dayjs().subtract(1, 'hour').toISOString(),calcTo: () => dayjs().toISOString(),default: true,- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{text: REPORT_DATERANGE_HELPER_LABELS.LAST_3_HOURS,calcFrom: () => dayjs().subtract(3, 'hour').toISOString(),calcTo: () => dayjs().toISOString(),- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{text: REPORT_DATERANGE_HELPER_LABELS.LAST_24_HOURS,calcFrom: () => dayjs().subtract(1, 'day').toISOString(),calcTo: () => dayjs().toISOString(),- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],},{text: REPORT_DATERANGE_HELPER_LABELS.LAST_7_DAYS,diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsxindex 0488c89862c..4f66e7e0abc 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx@@ -76,17 +76,17 @@ const DeployNewReplicaPanel = ({const { data: addons, isSuccess } = useProjectAddonsQuery({ projectRef })const { data: diskConfiguration } = useDiskAttributesQuery({ projectRef })- const isNotOnHigherPlan = useMemo(- () => !['team', 'enterprise', 'platform'].includes(org?.plan.id ?? ''),+ const isNotOnTeamOrEnterprisePlan = useMemo(+ () => !['team', 'enterprise'].includes(org?.plan.id ?? ''),[org])const { data: allOverdueInvoices } = useOverdueInvoicesQuery({- enabled: isNotOnHigherPlan,+ enabled: isNotOnTeamOrEnterprisePlan,})const overdueInvoices = (allOverdueInvoices ?? []).filter((x) => x.organization_id === project?.organization_id)- const hasOverdueInvoices = overdueInvoices.length > 0 && isNotOnHigherPlan+ const hasOverdueInvoices = overdueInvoices.length > 0 && isNotOnTeamOrEnterprisePlanconst isAwsK8s = useIsAwsK8sCloudProvider()// Opting for useState temporarily as Listbox doesn't seem to work with react-hook-form yetdiff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/apps/studio/components/interfaces/Settings/Logs/Logs.constants.tsindex 77c56ce6d98..0f48acb42ff 100644--- a/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts@@ -777,7 +777,6 @@ export const TIER_QUERY_LIMITS: {PAYG: { text: '7 days', value: 7, unit: 'day', promptUpgrade: true },TEAM: { text: '28 days', value: 28, unit: 'day', promptUpgrade: true },ENTERPRISE: { text: '90 days', value: 90, unit: 'day', promptUpgrade: false },- PLATFORM: { text: '1 day', value: 1, unit: 'day', promptUpgrade: false },}export const LOG_ROUTES_WITH_REPLICA_SUPPORT = [diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.constants.ts b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.constants.tsindex 2ccc016e6f9..411a4fb9507 100644--- a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.constants.ts+++ b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.constants.ts@@ -1,7 +1,7 @@export const STORAGE_FILE_SIZE_LIMIT_MAX_BYTES_FREE_PLAN = 50 * 1024 * 1024 // 50 MB/** Max bytes for capped storage (i.e. Pro with spend cap) */export const STORAGE_FILE_SIZE_LIMIT_MAX_BYTES_CAPPED = 50 * 1024 * 1024 * 1024 // 50 GB-/** Max bytes for uncapped storage (i.e. Pro without spend cap, Team, Enterprise, Platform) */+/** Max bytes for uncapped storage (i.e. Pro without spend cap, Team, Enterprise) */export const STORAGE_FILE_SIZE_LIMIT_MAX_BYTES_UNCAPPED = 500 * 1024 * 1024 * 1024 // 500 GBexport enum StorageSizeUnits {diff --git a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsxindex bd4065c6546..843595a5305 100644--- a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx+++ b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx@@ -62,7 +62,6 @@ export function ProjectAndPlanInfo({{showPlanExpectationInfo &&orgSlug &&subscriptionPlanId !== 'enterprise' &&- subscriptionPlanId !== 'platform' &&category !== 'Login_issues' && (<PlanExpectationInfoBox orgSlug={orgSlug} planId={subscriptionPlanId} />)}diff --git a/apps/studio/data/analytics/org-daily-stats-query.ts b/apps/studio/data/analytics/org-daily-stats-query.tsindex d2742f603d6..3229ffdf0bf 100644--- a/apps/studio/data/analytics/org-daily-stats-query.ts+++ b/apps/studio/data/analytics/org-daily-stats-query.ts@@ -42,10 +42,6 @@ export enum PricingMetric {LOG_DRAIN_EVENTS = 'LOG_DRAIN_EVENTS',AUTH_MFA_PHONE = 'AUTH_MFA_PHONE',AUTH_MFA_WEB_AUTHN = 'AUTH_MFA_WEB_AUTHN',- ACTIVE_COMPUTE_HOURS = 'ACTIVE_COMPUTE_HOURS',- LOG_INGESTION = 'LOG_INGESTION',- LOG_QUERYING = 'LOG_QUERYING',- LOG_STORAGE = 'LOG_STORAGE',}export enum ComputeUsageMetric {diff --git a/apps/studio/data/organizations/organization-create-mutation.ts b/apps/studio/data/organizations/organization-create-mutation.tsindex acb1058db3c..f18a8bf2f80 100644--- a/apps/studio/data/organizations/organization-create-mutation.ts+++ b/apps/studio/data/organizations/organization-create-mutation.ts@@ -12,7 +12,7 @@ export type OrganizationCreateVariables = {name: stringkind?: stringsize?: string- tier: 'tier_payg' | 'tier_pro' | 'tier_free' | 'tier_team' | 'tier_enterprise' | 'tier_platform'+ tier: 'tier_payg' | 'tier_pro' | 'tier_free' | 'tier_team' | 'tier_enterprise'payment_method?: stringbilling_name?: string | nulladdress?: CustomerAddress | nulldiff --git a/apps/studio/data/reports/database-charts.ts b/apps/studio/data/reports/database-charts.tsindex 92de60e60e6..6937de4ed92 100644--- a/apps/studio/data/reports/database-charts.ts+++ b/apps/studio/data/reports/database-charts.ts@@ -23,7 +23,7 @@ export const getReportAttributesV2: (id: 'ram-usage',label: 'Memory usage',docsUrl: `${DOCS_URL}/guides/telemetry/reports#memory-usage`,- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],hide: false,showTooltip: true,showLegend: true,@@ -68,7 +68,7 @@ export const getReportAttributesV2: (syncId: 'database-reports',format: '%',valuePrecision: 2,- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],hide: false,showTooltip: true,showLegend: true,@@ -135,7 +135,7 @@ export const getReportAttributesV2: (label: 'Disk Input/Output operations per second (IOPS)',docsUrl: `${DOCS_URL}/guides/telemetry/reports#disk-inputoutput-operations-per-second-iops`,syncId: 'database-reports',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],hide: false,showTooltip: true,valuePrecision: 2,@@ -179,7 +179,7 @@ export const getReportAttributesV2: (label: 'Disk IO Usage',docsUrl: `${DOCS_URL}/guides/telemetry/reports#disk-io-usage`,syncId: 'database-reports',- availableIn: ['team', 'enterprise', 'platform'],+ availableIn: ['team', 'enterprise'],hide: false,showTooltip: true,format: '%',@@ -242,7 +242,7 @@ export const getReportAttributesV2: (label: 'Database Connections',syncId: 'database-reports',valuePrecision: 0,- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],hide: isFreePlan,showTooltip: true,showLegend: true,@@ -306,7 +306,7 @@ export const getReportAttributesV2: (label: 'Dedicated Pooler Client Connections',syncId: 'database-reports',valuePrecision: 0,- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],hide: isFreePlan,showTooltip: true,showLegend: true,@@ -338,7 +338,7 @@ export const getReportAttributesV2: (label: 'Shared Pooler (Supavisor) client connections',syncId: 'database-reports',valuePrecision: 0,- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],hide: isFreePlan,showTooltip: false,showLegend: false,@@ -361,7 +361,7 @@ export const getReportAttributesV2: (label: 'Disk Usage',syncId: 'database-reports',valuePrecision: 2,- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],hide: false,showTooltip: true,showLegend: true,diff --git a/apps/studio/data/reports/v2/auth.config.ts b/apps/studio/data/reports/v2/auth.config.tsindex 43c75f1bc12..69e9ab74777 100644--- a/apps/studio/data/reports/v2/auth.config.ts+++ b/apps/studio/data/reports/v2/auth.config.ts@@ -523,7 +523,7 @@ export const createUsageReportConfig = ({defaultChartStyle: 'line',titleTooltip:"Users who generated any Auth event in this period. This metric tracks authentication activity, not total product usage. Some active users won't appear here if their session stayed valid.",- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{ attribute: 'ActiveUsers', provider: 'logs', label: 'Auth Activity', enabled: true },@@ -553,7 +553,7 @@ export const createUsageReportConfig = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'The total number of sign in attempts by type.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{@@ -608,7 +608,7 @@ export const createUsageReportConfig = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'The total number of sign ups.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{@@ -641,7 +641,7 @@ export const createUsageReportConfig = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'The total number of password reset requests.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{@@ -690,7 +690,7 @@ export const createErrorsReportConfig = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'The total number of auth errors by status code from the API Gateway.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const sql = AUTH_REPORT_SQL.ErrorsByStatus(interval, filters)const rawData = await fetchLogs(projectRef, sql, startDate, endDate)@@ -716,7 +716,7 @@ export const createErrorsReportConfig = ({defaultChartStyle: 'line',titleTooltip:'The total number of auth errors by Supabase Auth error code from the API Gateway.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const sql = AUTH_REPORT_SQL.ErrorsByAuthCode(interval, filters)const rawData = await fetchLogs(projectRef, sql, startDate, endDate)@@ -775,7 +775,7 @@ export const createLatencyReportConfig = ({defaultChartStyle: 'line',titleTooltip:'Basic processing time metrics for sign in operations within the auth server (excludes network latency).',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{@@ -816,7 +816,7 @@ export const createLatencyReportConfig = ({defaultChartStyle: 'line',titleTooltip:'Percentile processing time metrics for sign in operations within the auth server (excludes network latency).',- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{@@ -857,7 +857,7 @@ export const createLatencyReportConfig = ({defaultChartStyle: 'line',titleTooltip:'Basic processing time metrics for sign up operations within the auth server (excludes network latency).',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{@@ -898,7 +898,7 @@ export const createLatencyReportConfig = ({defaultChartStyle: 'line',titleTooltip:'Percentile processing time metrics for sign up operations within the auth server (excludes network latency).',- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],dataProvider: async () => {const attributes = [{diff --git a/apps/studio/data/reports/v2/edge-functions.config.ts b/apps/studio/data/reports/v2/edge-functions.config.tsindex 6c3ecc828e5..15fef6c6454 100644--- a/apps/studio/data/reports/v2/edge-functions.config.ts+++ b/apps/studio/data/reports/v2/edge-functions.config.ts@@ -213,7 +213,7 @@ export const edgeFunctionReports = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'The total number of edge function invocations over time.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const sql = METRIC_SQL.TotalInvocations(interval, filters)const response = await fetchLogs(projectRef, sql, startDate, endDate)@@ -245,7 +245,7 @@ export const edgeFunctionReports = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'The total number of edge function executions by status code.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const sql = METRIC_SQL.ExecutionStatusCodes(interval, filters)const rawData = await fetchLogs(projectRef, sql, startDate, endDate)@@ -277,7 +277,7 @@ export const edgeFunctionReports = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'Average execution time for edge functions.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],YAxisProps: {width: 50,tickFormatter: (value: number) => `${value}ms`,@@ -339,7 +339,7 @@ export const edgeFunctionReports = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'The total number of edge function invocations by region.',- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],dataProvider: async () => {const sql = METRIC_SQL.InvocationsByRegion(interval, filters)const rawData = await fetchLogs(projectRef, sql, startDate, endDate)diff --git a/apps/studio/data/reports/v2/realtime.config.ts b/apps/studio/data/reports/v2/realtime.config.tsindex ad25d621e67..bd4b5fe5a25 100644--- a/apps/studio/data/reports/v2/realtime.config.ts+++ b/apps/studio/data/reports/v2/realtime.config.ts@@ -48,7 +48,7 @@ export const realtimeReports = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'Total number of connected realtime clients.',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const data = await runInfraMonitoringQuery(projectRef,@@ -81,7 +81,7 @@ export const realtimeReports = ({hideChartType: false,defaultChartStyle: 'bar',titleTooltip: '',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const { data } = await runInfraMonitoringQuery(projectRef,@@ -120,7 +120,7 @@ export const realtimeReports = ({hideChartType: false,defaultChartStyle: 'bar',titleTooltip: '',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const { data } = await runInfraMonitoringQuery(projectRef,@@ -159,7 +159,7 @@ export const realtimeReports = ({hideChartType: false,defaultChartStyle: 'bar',titleTooltip: '',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const { data } = await runInfraMonitoringQuery(projectRef,@@ -197,7 +197,7 @@ export const realtimeReports = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: '',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],dataProvider: async () => {const data = await runInfraMonitoringQuery(projectRef,@@ -231,7 +231,7 @@ export const realtimeReports = ({hideChartType: false,defaultChartStyle: 'line',titleTooltip: 'Median size of message payloads sent',- availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],+ availableIn: ['free', 'pro', 'team', 'enterprise'],YAxisProps: {width: 50,tickFormatter: (value: number) => `${value}B`,@@ -271,7 +271,7 @@ export const realtimeReports = ({defaultChartStyle: 'line',titleTooltip:'Median time between database commit and broadcast when using broadcast from database.',- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],YAxisProps: {width: 50,tickFormatter: (value: number) => `${value}ms`,@@ -311,7 +311,7 @@ export const realtimeReports = ({defaultChartStyle: 'line',titleTooltip:'Execution median time of RLS (Row Level Security) to subscribe to a private channel',- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],YAxisProps: {width: 50,tickFormatter: (value: number) => `${value}ms`,@@ -351,7 +351,7 @@ export const realtimeReports = ({defaultChartStyle: 'line',titleTooltip:'Execution median time of RLS (Row Level Security) to publish to a private channel',- availableIn: ['pro', 'team', 'enterprise', 'platform'],+ availableIn: ['pro', 'team', 'enterprise'],YAxisProps: {width: 50,tickFormatter: (value: number) => `${value}ms`,diff --git a/apps/studio/data/sso/sso-config-query.ts b/apps/studio/data/sso/sso-config-query.tsindex 1892cd8a472..e411d0b2fd4 100644--- a/apps/studio/data/sso/sso-config-query.ts+++ b/apps/studio/data/sso/sso-config-query.ts@@ -44,7 +44,7 @@ export const useOrgSSOConfigQuery = <TData = OrgSSOConfigData>() => {const { data: organization } = useSelectedOrganizationQuery()const plan = organization?.plan.id- const canSetupSSOConfig = ['team', 'enterprise', 'platform'].includes(plan ?? '')+ const canSetupSSOConfig = ['team', 'enterprise'].includes(plan ?? '')return useQuery<OrgSSOConfigData, OrgSSOConfigError, TData>({queryKey: orgSSOKeys.orgSSOConfig(orgSlug),diff --git a/apps/studio/data/subscriptions/org-subscription-query.ts b/apps/studio/data/subscriptions/org-subscription-query.tsindex dc78d08ce69..8b3fc04da3e 100644--- a/apps/studio/data/subscriptions/org-subscription-query.ts+++ b/apps/studio/data/subscriptions/org-subscription-query.ts@@ -53,9 +53,5 @@ export const useOrgSubscriptionQuery = <TData = OrgSubscriptionData>(export const useHasAccessToProjectLevelPermissions = (slug: string) => {const { data: subscription } = useOrgSubscriptionQuery({ orgSlug: slug })- return (- subscription?.plan.id === 'enterprise' ||- subscription?.plan.id === 'team' ||- subscription?.plan.id === 'platform'- )+ return subscription?.plan.id === 'enterprise' || subscription?.plan.id === 'team'}diff --git a/apps/studio/data/subscriptions/types.ts b/apps/studio/data/subscriptions/types.tsindex 3a0d3ab9517..4591d175e36 100644--- a/apps/studio/data/subscriptions/types.ts+++ b/apps/studio/data/subscriptions/types.ts@@ -6,7 +6,6 @@ export type SubscriptionTier =| 'tier_payg'| 'tier_team'| 'tier_enterprise'- | 'tier_platform'export type AddonVariantId = components['schemas']['UpdateAddonBody']['addon_variant']diff --git a/apps/studio/hooks/misc/useReportDateRange.ts b/apps/studio/hooks/misc/useReportDateRange.tsindex c993d6f6677..af3039f782d 100644--- a/apps/studio/hooks/misc/useReportDateRange.ts+++ b/apps/studio/hooks/misc/useReportDateRange.ts@@ -16,7 +16,6 @@ export const DATERANGE_LIMITS: { [key: string]: number } = {pro: 7,team: 28,enterprise: 90,- platform: 1,}export interface ReportDateRange {diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsxindex 899461efa3e..cffab63b560 100644--- a/apps/studio/pages/new/[slug].tsx+++ b/apps/studio/pages/new/[slug].tsx@@ -91,7 +91,7 @@ const Wizard: NextPageWithLayout = () => {const isHomeNew = useFlag('homeNew')const showNonProdFields = process.env.NEXT_PUBLIC_ENVIRONMENT !== 'prod'- const isNotOnHigherPlan = !['team', 'enterprise', 'platform'].includes(currentOrg?.plan.id ?? '')+ const isNotOnTeamOrEnterprisePlan = !['team', 'enterprise'].includes(currentOrg?.plan.id ?? '')// This is to make the database.new redirect work correctly. The database.new redirect should be set to supabase.com/dashboard/new/last-visited-orgif (slug === 'last-visited-org') {@@ -162,10 +162,10 @@ const Wizard: NextPageWithLayout = () => {const hasOAuthApps = approvedOAuthApps.length > 0const { data: allOverdueInvoices = [] } = useOverdueInvoicesQuery({- enabled: isNotOnHigherPlan,+ enabled: isNotOnTeamOrEnterprisePlan,})const overdueInvoices = allOverdueInvoices.filter((x) => x.organization_id === currentOrg?.id)- const hasOutstandingInvoices = isNotOnHigherPlan && overdueInvoices.length > 0+ const hasOutstandingInvoices = isNotOnTeamOrEnterprisePlan && overdueInvoices.length > 0const { data: orgProjectsFromApi } = useOrgProjectsInfiniteQuery({ slug: currentOrg?.slug })const allOrgProjects = useMemo(diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.tsindex 538c1d80f78..2748ab0765f 100644--- a/packages/api-types/types/api.d.ts+++ b/packages/api-types/types/api.d.ts@@ -3113,9 +3113,9 @@ export interface components {name: string}[]/** @enum {string} */- source_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ source_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise'/** @enum {string|null} */- target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform' | null+ target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | nullvalid: booleanwarnings: {key: string@@ -4352,7 +4352,7 @@ export interface components {| 'AI_LOG_GENERATOR_OPT_IN')[]/** @enum {string} */- plan?: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ plan?: 'free' | 'pro' | 'team' | 'enterprise'}V1PatchMigrationBody: {name?: stringdiff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.tsindex 9fae3cc87be..4bff0728e42 100644--- a/packages/api-types/types/platform.d.ts+++ b/packages/api-types/types/platform.d.ts@@ -3948,76 +3948,6 @@ export interface paths {patch?: nevertrace?: never}- '/platform/storage/{ref}/analytics-buckets/{id}/namespaces': {- parameters: {- query?: never- header?: never- path?: never- cookie?: never- }- /** Gets list of namespaces from a bucket */- get: operations['StorageAnalyticsBucketNamespacesController_getBuckets']- put?: never- /** Create a namespace within a bucket */- post: operations['StorageAnalyticsBucketNamespacesController_createBucket']- delete?: never- options?: never- head?: never- patch?: never- trace?: never- }- '/platform/storage/{ref}/analytics-buckets/{id}/namespaces/{namespace}': {- parameters: {- query?: never- header?: never- path?: never- cookie?: never- }- get?: never- put?: never- post?: never- /** Drop a namespace within an analytics bucket */- delete: operations['StorageAnalyticsBucketNamespaceController_deleteBucket']- options?: never- head?: never- patch?: never- trace?: never- }- '/platform/storage/{ref}/analytics-buckets/{id}/namespaces/{namespace}/tables': {- parameters: {- query?: never- header?: never- path?: never- cookie?: never- }- /** Gets list of tables from a namespace */- get: operations['StorageAnalyticsBucketNamespaceTablesController_getBuckets']- put?: never- /** Create a table within a namespace */- post: operations['StorageAnalyticsBucketNamespaceTablesController_createTable']- delete?: never- options?: never- head?: never- patch?: never- trace?: never- }- '/platform/storage/{ref}/analytics-buckets/{id}/namespaces/{namespace}/tables/{table}': {- parameters: {- query?: never- header?: never- path?: never- cookie?: never- }- get?: never- put?: never- post?: never- /** Drop a table within a namespace */- delete: operations['StorageAnalyticsBucketNamespaceTableController_dropTable']- options?: never- head?: never- patch?: never- trace?: never- }'/platform/storage/{ref}/archive': {parameters: {query?: never@@ -5024,33 +4954,6 @@ export interface components {role_id: numberrole_scoped_projects?: string[]}- CreateNamespaceBody: {- namespace: string- }- CreateNamespaceTableBody: {- fields: {- id: number- name: string- required: boolean- type:- | (- | 'boolean'- | 'int'- | 'long'- | 'float'- | 'double'- | 'string'- | 'timestamp'- | 'date'- | 'time'- | 'timestamptz'- | 'uuid'- | 'binary'- )- | string- }[]- name: string- }CreateNotificationExceptionsBody: {exceptions: {/** Format: uuid */@@ -5186,13 +5089,7 @@ export interface components {value: string}/** @enum {string} */- tier:- | 'tier_free'- | 'tier_pro'- | 'tier_payg'- | 'tier_team'- | 'tier_enterprise'- | 'tier_platform'+ tier: 'tier_free' | 'tier_pro' | 'tier_payg' | 'tier_team' | 'tier_enterprise'}CreateOrganizationResponse:| {@@ -5210,7 +5107,7 @@ export interface components {organization_requires_mfa: booleanplan: {/** @enum {string} */- id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ id: 'free' | 'pro' | 'team' | 'enterprise'name: string}restriction_data: {@@ -6532,7 +6429,7 @@ export interface components {payment_method_type: stringplan: {/** @enum {string} */- id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ id: 'free' | 'pro' | 'team' | 'enterprise'name: string}project_addons: {@@ -6593,7 +6490,7 @@ export interface components {/** Format: date-time */at: string/** @enum {string} */- target_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ target_plan: 'free' | 'pro' | 'team' | 'enterprise'usage_billing_enabled: boolean} | nullusage_billing_enabled: boolean@@ -7307,41 +7204,6 @@ export interface components {from: stringto: string}- NamespacesResponse: {- data: {- namespace: string[]- }[]- }- NamespaceTableResponse: {- 'current-schema-id': number- 'current-snapshot-id'?: number- 'default-sort-order-id'?: number- 'default-spec-id'?: number- 'format-version'?: number- 'last-column-id'?: number- 'last-partition-id'?: number- 'last-sequence-number'?: number- 'last-updated-ms'?: number- location: string- 'metadata-location'?: string- 'metadata-log'?: unknown[]- name?: string- 'partition-specs': unknown[]- properties: {- [key: string]: string- }- refs?: {- [key: string]: unknown- }- schemas: {- fields: unknown[]- type: string- }[]- 'snapshot-log'?: unknown[]- snapshots?: unknown[]- 'sort-orders': unknown[]- 'table-uuid'?: string- }NotificationResponse: {/** @description Any JSON-serializable value */data: unknown@@ -7493,7 +7355,7 @@ export interface components {organization_requires_mfa: booleanplan: {/** @enum {string} */- id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ id: 'free' | 'pro' | 'team' | 'enterprise'name: string}restriction_data: {@@ -7554,7 +7416,7 @@ export interface components {opt_in_tags: string[]plan: {/** @enum {string} */- id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ id: 'free' | 'pro' | 'team' | 'enterprise'name: string}projects: {@@ -7663,10 +7525,6 @@ export interface components {| 'PITR_28'| 'IPV4'| 'LOG_DRAIN'- | 'LOG_INGESTION'- | 'LOG_QUERYING'- | 'LOG_STORAGE'- | 'ACTIVE_COMPUTE_HOURS'usage: numberusage_original: number}[]@@ -7727,10 +7585,6 @@ export interface components {| 'PITR_28'| 'IPV4'| 'LOG_DRAIN'- | 'LOG_INGESTION'- | 'LOG_QUERYING'- | 'LOG_STORAGE'- | 'ACTIVE_COMPUTE_HOURS'pricing_free_units?: numberpricing_package_price?: numberpricing_package_size?: number@@ -7809,7 +7663,7 @@ export interface components {/** @enum {string} */effective_at?: 'now' | 'end_of_billing_period' | 'none'/** @enum {string} */- id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ id: 'free' | 'pro' | 'team' | 'enterprise'is_current: booleanname: stringprice: number@@ -8075,9 +7929,9 @@ export interface components {name: string}[]/** @enum {string} */- source_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'+ source_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise'/** @enum {string|null} */- target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform' | null+ target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | nullvalid: booleanwarnings: {key: string@@ -9249,12 +9103,6 @@ export interface components {StorageAnalyticsBucketDeleteResponse: {message: string}- StorageAnalyticsBucketNamespaceTablesResponse: {- data: {- name: string- namespace: string[]- }[]- }StorageAnalyticsBucketResponse: {created_at: stringname: string@@ -9639,10 +9487,6 @@ export interface components {| 'PITR_28'| 'IPV4'| 'LOG_DRAIN'- | 'LOG_INGESTION'- | 'LOG_QUERYING'- | 'LOG_STORAGE'- | 'ACTIVE_COMPUTE_HOURS'usage_original?: number}[]subscription_id: string@@ -10568,13 +10412,7 @@ export interface components {value: string}/** @enum {string} */- tier:- | 'tier_free'- | 'tier_pro'- | 'tier_payg'- | 'tier_team'- | 'tier_enterprise'- | 'tier_platform'+ tier: 'tier_free' | 'tier_pro' | 'tier_payg' | 'tier_team' | 'tier_enterprise'}UpdateSubscriptionResponse: {pending_payment_intent_secret: string | null@@ -24491,7 +24329,7 @@ export interface operations {/** @description Search buckets by name */search?: string/** @description Sort column for buckets */- sortColumn?: 'name' | 'created_at' | 'updated_at'+ sortColumn?: 'id' | 'name' | 'created_at' | 'updated_at'/** @description Sort order for buckets */sortOrder?: 'asc' | 'desc'}@@ -24648,328 +24486,6 @@ export interface operations {}}}- StorageAnalyticsBucketNamespacesController_getBuckets: {- parameters: {- query?: never- header?: never- path: {- /** @description Analytics Bucket ID */- id: string- /** @description Project ref */- ref: string- }- cookie?: never- }- requestBody?: never- responses: {- 200: {- headers: {- [name: string]: unknown- }- content: {- 'application/json': components['schemas']['NamespacesResponse']- }- }- /** @description Unauthorized */- 401: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Forbidden action */- 403: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Rate limit exceeded */- 429: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Failed to get list of namespaces */- 500: {- headers: {- [name: string]: unknown- }- content?: never- }- }- }- StorageAnalyticsBucketNamespacesController_createBucket: {- parameters: {- query?: never- header?: never- path: {- /** @description Analytics Bucket ID */- id: string- /** @description Project ref */- ref: string- }- cookie?: never- }- requestBody: {- content: {- 'application/json': components['schemas']['CreateNamespaceBody']- }- }- responses: {- 201: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Unauthorized */- 401: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Forbidden action */- 403: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Rate limit exceeded */- 429: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Failed to create namespace */- 500: {- headers: {- [name: string]: unknown- }- content?: never- }- }- }- StorageAnalyticsBucketNamespaceController_deleteBucket: {- parameters: {- query?: never- header?: never- path: {- /** @description Analytics Bucket ID */- id: string- namespace: string- /** @description Project ref */- ref: string- }- cookie?: never- }- requestBody?: never- responses: {- 200: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Unauthorized */- 401: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Forbidden action */- 403: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Rate limit exceeded */- 429: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Failed to drop namespace */- 500: {- headers: {- [name: string]: unknown- }- content?: never- }- }- }- StorageAnalyticsBucketNamespaceTablesController_getBuckets: {- parameters: {- query?: never- header?: never- path: {- /** @description Analytics Bucket ID */- id: string- namespace: string- /** @description Project ref */- ref: string- }- cookie?: never- }- requestBody?: never- responses: {- 200: {- headers: {- [name: string]: unknown- }- content: {- 'application/json': components['schemas']['StorageAnalyticsBucketNamespaceTablesResponse']- }- }- /** @description Unauthorized */- 401: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Forbidden action */- 403: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Rate limit exceeded */- 429: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Failed to get list of tables buckets */- 500: {- headers: {- [name: string]: unknown- }- content?: never- }- }- }- StorageAnalyticsBucketNamespaceTablesController_createTable: {- parameters: {- query?: never- header?: never- path: {- /** @description Analytics Bucket ID */- id: string- namespace: string- /** @description Project ref */- ref: string- }- cookie?: never- }- requestBody: {- content: {- 'application/json': components['schemas']['CreateNamespaceTableBody']- }- }- responses: {- 201: {- headers: {- [name: string]: unknown- }- content: {- 'application/json': components['schemas']['NamespaceTableResponse']- }- }- /** @description Unauthorized */- 401: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Forbidden action */- 403: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Rate limit exceeded */- 429: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Failed to create table */- 500: {- headers: {- [name: string]: unknown- }- content?: never- }- }- }- StorageAnalyticsBucketNamespaceTableController_dropTable: {- parameters: {- query?: {- /** @description Boolean string, true or false */- purge?: boolean- }- header?: never- path: {- /** @description Analytics Bucket ID */- id: string- namespace: string- /** @description Project ref */- ref: string- table: string- }- cookie?: never- }- requestBody?: never- responses: {- 200: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Unauthorized */- 401: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Forbidden action */- 403: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Rate limit exceeded */- 429: {- headers: {- [name: string]: unknown- }- content?: never- }- /** @description Failed to drop table */- 500: {- headers: {- [name: string]: unknown- }- content?: never- }- }- }StorageArchiveController_getArchive: {parameters: {query?: never