Skip to content

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

feat: support new platform plan (#40890) (#41046)

Kevin Grüneberg915a08812d6d
diff --git a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
index a92e555dc76..eed802a8f73 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
@@ -52,8 +52,10 @@ export const AddHookDropdown = ({
const nonEnterpriseHookOptions = hooks.filter((h) => !isValidHook(h) && !h.enterprise)
const enterpriseHookOptions = hooks.filter((h) => !isValidHook(h) && h.enterprise)
- const isTeamsOrEnterprisePlan =
- organization?.plan.id === 'team' || organization?.plan.id === 'enterprise'
+ const hasAccessToAdvancedHooks =
+ organization?.plan.id === 'team' ||
+ organization?.plan.id === 'enterprise' ||
+ organization?.plan.id === 'platform'
if (!canUpdateAuthHook) {
return (
@@ -87,7 +89,7 @@ export const AddHookDropdown = ({
<DropdownMenuSeparator />
- {!isTeamsOrEnterprisePlan && (
+ {!hasAccessToAdvancedHooks && (
<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">
@@ -97,10 +99,10 @@ export const AddHookDropdown = ({
</DropdownMenuLabel>
)}
{enterpriseHookOptions.map((h) =>
- isTeamsOrEnterprisePlan ? (
+ hasAccessToAdvancedHooks ? (
<DropdownMenuItem
key={h.title}
- disabled={!isTeamsOrEnterprisePlan}
+ disabled={!hasAccessToAdvancedHooks}
className=""
onClick={() => onSelectHook(h.title)}
>
@@ -109,7 +111,7 @@ export const AddHookDropdown = ({
) : (
<DropdownMenuItem
key={h.title}
- disabled={!isTeamsOrEnterprisePlan}
+ disabled={!hasAccessToAdvancedHooks}
onClick={() => onSelectHook(h.title)}
>
{h.title}
diff --git a/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx b/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx
index 372b8257b9e..f45960f8600 100644
--- a/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx
+++ b/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx
@@ -15,7 +15,8 @@ export const NoProjectsOnPaidOrgInfo = ({ organization }: NoProjectsOnPaidOrgInf
projectCount > 0 ||
organization?.plan === undefined ||
organization.plan.id === 'free' ||
- organization.plan.id === 'enterprise'
+ organization.plan.id === 'enterprise' ||
+ organization.plan.id === 'platform'
)
return null
diff --git a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts
index ece737507d6..7d8ab4ec3e4 100644
--- a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts
+++ b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts
@@ -45,24 +45,35 @@ 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.tsx
index 92372df1baf..b48b48c8bb0 100644
--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagement.constants.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagement.constants.tsx
@@ -57,6 +57,7 @@ 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.tsx
index 1afdaada2f1..0a2ea44a51e 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 }
+const LOG_RETENTION = { free: 1, pro: 7, team: 28, enterprise: 90, platform: 1 }
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
key: '1day',
@@ -52,7 +52,7 @@ const CHART_INTERVALS: ChartIntervals[] = [
startValue: 24,
startUnit: 'hour',
format: 'MMM D, ha',
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
key: '7day',
diff --git a/apps/studio/components/interfaces/HomeNew/ProjectUsageSection.tsx b/apps/studio/components/interfaces/HomeNew/ProjectUsageSection.tsx
index 7fb2e02baf8..f3a1e6da98a 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 }
+const LOG_RETENTION = { free: 1, pro: 7, team: 28, enterprise: 90, platform: 1 }
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
key: '1day',
@@ -60,7 +60,7 @@ const CHART_INTERVALS: ChartIntervals[] = [
startValue: 24,
startUnit: 'hour',
format: 'MMM D, ha',
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
key: '7day',
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx
index b11a717a703..4b7feab3e57 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx
@@ -57,6 +57,7 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => {
isSuccess,
} = useOrgUpcomingInvoiceQuery({ orgSlug: slug })
+ // For non-platform customers, compute is broken down per project and contains a breakdown array
const computeItems =
upcomingInvoice?.lines?.filter(
(item) =>
@@ -81,7 +82,8 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => {
const otherItems =
upcomingInvoice?.lines?.filter(
(item) =>
- !item.description?.toLowerCase().includes('compute') &&
+ // 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('plan')
) || []
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
index 4237d0d257b..761eb718843 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 ?? false
const canChangeTier =
- !projectUpdateDisabled && !['team', 'enterprise'].includes(currentPlan?.id || '')
+ !projectUpdateDisabled && !['team', 'enterprise', 'platform'].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'].includes(currentPlan?.id || '') ? (
+ {['team', 'enterprise', 'platform'].includes(currentPlan?.id || '') ? (
<Alert
withIcon
variant="info"
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index 932eec495a2..87a585c851b 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -241,6 +241,7 @@ 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') ||
@@ -264,8 +265,9 @@ export const PlanUpdateSidePanel = () => {
side: 'bottom',
className: hasOrioleProjects ? 'w-96 text-center' : '',
text:
- subscription?.plan?.id === 'enterprise'
- ? 'Reach out to us via support to update your plan from Enterprise'
+ subscription?.plan?.id === 'enterprise' ||
+ subscription?.plan?.id === 'platform'
+ ? 'Reach out to us via support to update your plan'
: 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.'
: selectedOrganization?.managed_by === MANAGED_BY.AWS_MARKETPLACE
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
index 2e9a052a10e..71382697cc8 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
@@ -41,7 +41,8 @@ const Subscription = () => {
const currentPlan = subscription?.plan
const planName = currentPlan?.name ?? 'Unknown'
- const canChangeTier = !projectUpdateDisabled && !['enterprise'].includes(currentPlan?.id ?? '')
+ const canChangeTier =
+ !projectUpdateDisabled && !['enterprise', 'platform'].includes(currentPlan?.id ?? '')
return (
<>
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
index 7a8d79abacc..0a66f141583 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
@@ -65,7 +65,7 @@ export const SSOConfig = () => {
const { data: organization } = useSelectedOrganizationQuery()
const plan = organization?.plan.id
- const canSetupSSOConfig = ['team', 'enterprise'].includes(plan ?? '')
+ const canSetupSSOConfig = ['team', 'enterprise', 'platform'].includes(plan ?? '')
const {
data: ssoConfig,
diff --git a/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx
index 70cdf7bae94..7b480f0f2a7 100644
--- a/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx
@@ -63,6 +63,8 @@ export const TotalUsage = ({
// When the user filters by project ref or selects a custom timeframe, we only display usage+project breakdown, but no costs/limits
const showRelationToSubscription = currentBillingCycleSelected && !projectRef
+ const isOnHigherPlan = ['team', 'enterprise', 'platform'].includes(subscription?.plan.id ?? '')
+
const hasExceededAnyLimits =
showRelationToSubscription &&
Boolean(
@@ -148,7 +150,7 @@ export const TotalUsage = ({
{isSuccessUsage && subscription && (
<div>
- {showRelationToSubscription && (
+ {showRelationToSubscription && !isOnHigherPlan && (
<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.ts
index ebfba8dfca8..75388d05974 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, s
if (!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>`
+ const message = `Organization Slug: ${slug}\nRequested plan: <Specify which plan to upgrade to: Pro | Team | Enterprise | Platform>`
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.ts
index 3ca695dd32b..cc8d2dda8f4 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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
text: REPORT_DATERANGE_HELPER_LABELS.LAST_30_MINUTES,
calcFrom: () => dayjs().subtract(30, 'minute').toISOString(),
calcTo: () => dayjs().toISOString(),
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
text: REPORT_DATERANGE_HELPER_LABELS.LAST_60_MINUTES,
calcFrom: () => dayjs().subtract(1, 'hour').toISOString(),
calcTo: () => dayjs().toISOString(),
default: true,
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
text: REPORT_DATERANGE_HELPER_LABELS.LAST_3_HOURS,
calcFrom: () => dayjs().subtract(3, 'hour').toISOString(),
calcTo: () => dayjs().toISOString(),
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
text: REPORT_DATERANGE_HELPER_LABELS.LAST_24_HOURS,
calcFrom: () => dayjs().subtract(1, 'day').toISOString(),
calcTo: () => dayjs().toISOString(),
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
},
{
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.tsx
index 4f66e7e0abc..0488c89862c 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 isNotOnTeamOrEnterprisePlan = useMemo(
- () => !['team', 'enterprise'].includes(org?.plan.id ?? ''),
+ const isNotOnHigherPlan = useMemo(
+ () => !['team', 'enterprise', 'platform'].includes(org?.plan.id ?? ''),
[org]
)
const { data: allOverdueInvoices } = useOverdueInvoicesQuery({
- enabled: isNotOnTeamOrEnterprisePlan,
+ enabled: isNotOnHigherPlan,
})
const overdueInvoices = (allOverdueInvoices ?? []).filter(
(x) => x.organization_id === project?.organization_id
)
- const hasOverdueInvoices = overdueInvoices.length > 0 && isNotOnTeamOrEnterprisePlan
+ const hasOverdueInvoices = overdueInvoices.length > 0 && isNotOnHigherPlan
const isAwsK8s = useIsAwsK8sCloudProvider()
// Opting for useState temporarily as Listbox doesn't seem to work with react-hook-form yet
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts
index e31e6ab29b1..76cec464d34 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts
@@ -777,6 +777,7 @@ 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.ts
index 411a4fb9507..2ccc016e6f9 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) */
+/** Max bytes for uncapped storage (i.e. Pro without spend cap, Team, Enterprise, Platform) */
export const STORAGE_FILE_SIZE_LIMIT_MAX_BYTES_UNCAPPED = 500 * 1024 * 1024 * 1024 // 500 GB
export enum StorageSizeUnits {
diff --git a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
index 843595a5305..bd4065c6546 100644
--- a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
+++ b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
@@ -62,6 +62,7 @@ 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.ts
index 3229ffdf0bf..d2742f603d6 100644
--- a/apps/studio/data/analytics/org-daily-stats-query.ts
+++ b/apps/studio/data/analytics/org-daily-stats-query.ts
@@ -42,6 +42,10 @@ 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.ts
index f18a8bf2f80..acb1058db3c 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: string
kind?: string
size?: string
- tier: 'tier_payg' | 'tier_pro' | 'tier_free' | 'tier_team' | 'tier_enterprise'
+ tier: 'tier_payg' | 'tier_pro' | 'tier_free' | 'tier_team' | 'tier_enterprise' | 'tier_platform'
payment_method?: string
billing_name?: string | null
address?: CustomerAddress | null
diff --git a/apps/studio/data/reports/database-charts.ts b/apps/studio/data/reports/database-charts.ts
index 6937de4ed92..92de60e60e6 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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
hide: false,
showTooltip: true,
showLegend: true,
@@ -68,7 +68,7 @@ export const getReportAttributesV2: (
syncId: 'database-reports',
format: '%',
valuePrecision: 2,
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['team', 'enterprise', 'platform'],
hide: false,
showTooltip: true,
format: '%',
@@ -242,7 +242,7 @@ export const getReportAttributesV2: (
label: 'Database Connections',
syncId: 'database-reports',
valuePrecision: 0,
- availableIn: ['pro', 'team', 'enterprise'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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.ts
index 69e9ab74777..43c75f1bc12 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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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.ts
index 15fef6c6454..6c3ecc828e5 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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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.ts
index bd4b5fe5a25..ad25d621e67 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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
dataProvider: async () => {
const data = await runInfraMonitoringQuery(
projectRef,
@@ -81,7 +81,7 @@ export const realtimeReports = ({
hideChartType: false,
defaultChartStyle: 'bar',
titleTooltip: '',
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
dataProvider: async () => {
const { data } = await runInfraMonitoringQuery(
projectRef,
@@ -120,7 +120,7 @@ export const realtimeReports = ({
hideChartType: false,
defaultChartStyle: 'bar',
titleTooltip: '',
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
dataProvider: async () => {
const { data } = await runInfraMonitoringQuery(
projectRef,
@@ -159,7 +159,7 @@ export const realtimeReports = ({
hideChartType: false,
defaultChartStyle: 'bar',
titleTooltip: '',
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
dataProvider: async () => {
const { data } = await runInfraMonitoringQuery(
projectRef,
@@ -197,7 +197,7 @@ export const realtimeReports = ({
hideChartType: false,
defaultChartStyle: 'line',
titleTooltip: '',
- availableIn: ['free', 'pro', 'team', 'enterprise'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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'],
+ availableIn: ['pro', 'team', 'enterprise', 'platform'],
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.ts
index e411d0b2fd4..1892cd8a472 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'].includes(plan ?? '')
+ const canSetupSSOConfig = ['team', 'enterprise', 'platform'].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.ts
index 8b3fc04da3e..dc78d08ce69 100644
--- a/apps/studio/data/subscriptions/org-subscription-query.ts
+++ b/apps/studio/data/subscriptions/org-subscription-query.ts
@@ -53,5 +53,9 @@ 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'
+ return (
+ subscription?.plan.id === 'enterprise' ||
+ subscription?.plan.id === 'team' ||
+ subscription?.plan.id === 'platform'
+ )
}
diff --git a/apps/studio/data/subscriptions/types.ts b/apps/studio/data/subscriptions/types.ts
index 4591d175e36..3a0d3ab9517 100644
--- a/apps/studio/data/subscriptions/types.ts
+++ b/apps/studio/data/subscriptions/types.ts
@@ -6,6 +6,7 @@ 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.ts
index af3039f782d..c993d6f6677 100644
--- a/apps/studio/hooks/misc/useReportDateRange.ts
+++ b/apps/studio/hooks/misc/useReportDateRange.ts
@@ -16,6 +16,7 @@ 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].tsx
index cffab63b560..899461efa3e 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 isNotOnTeamOrEnterprisePlan = !['team', 'enterprise'].includes(currentOrg?.plan.id ?? '')
+ const isNotOnHigherPlan = !['team', 'enterprise', 'platform'].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-org
if (slug === 'last-visited-org') {
@@ -162,10 +162,10 @@ const Wizard: NextPageWithLayout = () => {
const hasOAuthApps = approvedOAuthApps.length > 0
const { data: allOverdueInvoices = [] } = useOverdueInvoicesQuery({
- enabled: isNotOnTeamOrEnterprisePlan,
+ enabled: isNotOnHigherPlan,
})
const overdueInvoices = allOverdueInvoices.filter((x) => x.organization_id === currentOrg?.id)
- const hasOutstandingInvoices = isNotOnTeamOrEnterprisePlan && overdueInvoices.length > 0
+ const hasOutstandingInvoices = isNotOnHigherPlan && overdueInvoices.length > 0
const { 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.ts
index 70c3a5a3c00..b1488e4b190 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'
+ source_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
/** @enum {string|null} */
- target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | null
+ target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform' | null
valid: boolean
warnings: {
key: string
@@ -4352,7 +4352,7 @@ export interface components {
| 'AI_LOG_GENERATOR_OPT_IN'
)[]
/** @enum {string} */
- plan?: 'free' | 'pro' | 'team' | 'enterprise'
+ plan?: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
}
V1PatchMigrationBody: {
name?: string
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index 3b89aa92285..1633fa87792 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -5186,7 +5186,13 @@ export interface components {
value: string
}
/** @enum {string} */
- tier: 'tier_free' | 'tier_pro' | 'tier_payg' | 'tier_team' | 'tier_enterprise'
+ tier:
+ | 'tier_free'
+ | 'tier_pro'
+ | 'tier_payg'
+ | 'tier_team'
+ | 'tier_enterprise'
+ | 'tier_platform'
}
CreateOrganizationResponse:
| {
@@ -5204,7 +5210,7 @@ export interface components {
organization_requires_mfa: boolean
plan: {
/** @enum {string} */
- id: 'free' | 'pro' | 'team' | 'enterprise'
+ id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
name: string
}
restriction_data: {
@@ -6510,7 +6516,7 @@ export interface components {
payment_method_type: string
plan: {
/** @enum {string} */
- id: 'free' | 'pro' | 'team' | 'enterprise'
+ id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
name: string
}
project_addons: {
@@ -6571,7 +6577,7 @@ export interface components {
/** Format: date-time */
at: string
/** @enum {string} */
- target_plan: 'free' | 'pro' | 'team' | 'enterprise'
+ target_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
usage_billing_enabled: boolean
} | null
usage_billing_enabled: boolean
@@ -7471,7 +7477,7 @@ export interface components {
organization_requires_mfa: boolean
plan: {
/** @enum {string} */
- id: 'free' | 'pro' | 'team' | 'enterprise'
+ id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
name: string
}
restriction_data: {
@@ -7532,7 +7538,7 @@ export interface components {
opt_in_tags: string[]
plan: {
/** @enum {string} */
- id: 'free' | 'pro' | 'team' | 'enterprise'
+ id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
name: string
}
restriction_data: {
@@ -7602,6 +7608,10 @@ export interface components {
| 'PITR_28'
| 'IPV4'
| 'LOG_DRAIN'
+ | 'LOG_INGESTION'
+ | 'LOG_QUERYING'
+ | 'LOG_STORAGE'
+ | 'ACTIVE_COMPUTE_HOURS'
usage: number
usage_original: number
}[]
@@ -7662,6 +7672,10 @@ export interface components {
| 'PITR_28'
| 'IPV4'
| 'LOG_DRAIN'
+ | 'LOG_INGESTION'
+ | 'LOG_QUERYING'
+ | 'LOG_STORAGE'
+ | 'ACTIVE_COMPUTE_HOURS'
pricing_free_units?: number
pricing_package_price?: number
pricing_package_size?: number
@@ -7740,7 +7754,7 @@ export interface components {
/** @enum {string} */
effective_at?: 'now' | 'end_of_billing_period' | 'none'
/** @enum {string} */
- id: 'free' | 'pro' | 'team' | 'enterprise'
+ id: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
is_current: boolean
name: string
price: number
@@ -8006,9 +8020,9 @@ export interface components {
name: string
}[]
/** @enum {string} */
- source_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise'
+ source_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform'
/** @enum {string|null} */
- target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | null
+ target_subscription_plan: 'free' | 'pro' | 'team' | 'enterprise' | 'platform' | null
valid: boolean
warnings: {
key: string
@@ -9577,6 +9591,10 @@ export interface components {
| 'PITR_28'
| 'IPV4'
| 'LOG_DRAIN'
+ | 'LOG_INGESTION'
+ | 'LOG_QUERYING'
+ | 'LOG_STORAGE'
+ | 'ACTIVE_COMPUTE_HOURS'
usage_original?: number
}[]
subscription_id: string
@@ -10502,7 +10520,13 @@ export interface components {
value: string
}
/** @enum {string} */
- tier: 'tier_free' | 'tier_pro' | 'tier_payg' | 'tier_team' | 'tier_enterprise'
+ tier:
+ | 'tier_free'
+ | 'tier_pro'
+ | 'tier_payg'
+ | 'tier_team'
+ | 'tier_enterprise'
+ | 'tier_platform'
}
UpdateSubscriptionResponse: {
pending_payment_intent_secret: string | null