From 87e3e8aa2a1437350069c10a566e2305a45b5d3c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ra=C3=BAl=20Barroso?=
Date: Wed, 11 Mar 2026 10:01:49 +0100
Subject: [PATCH] feat(mgmt-api): add ability to choose orgs (#43549)
Related to
https://github.com/supabase/platform/compare/raulb/fix-API-906
---------
Co-authored-by: Ivan Vasilov
Please select an organization to continue.
-Setting up your organization...
+{loadingText}
> ) : isConfirmed ? ( <> -- Your Supabase organization has been linked successfully. -
+{successDescription}
You can close this window.
> ) : isPending ? (- Stripe Fabric wants to create a Supabase organization for{' '} + Stripe wants to link a Supabase organization for{' '} {accountRequest.email} {accountRequest.name && <> ({accountRequest.name})>}.
- {(accountRequest as any).email_matches ? ( -+ Your organization {linkedOrg.name} is already linked to your + Stripe account. Approve to continue. +
++ A new Supabase organization will be created and linked to your Stripe account. +
++ Your organization {userOrgs[0].name} will be linked to your + Stripe account. +
++ Select the organization you'd like to link to your Stripe account. +
++ Link {selectedOrg!.name} to your Stripe account? +
+- This will create a new Supabase organization linked to your Stripe account. -
> ) : isError ? ( <> diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts index aa8ed6fabd9..3495760532b 100644 --- a/packages/api-types/types/platform.d.ts +++ b/packages/api-types/types/platform.d.ts @@ -4645,8 +4645,14 @@ export interface components { } AccountRequestDetailsDto: { email: string + email_matches: boolean expires_at: string id: string + linked_organization?: { + id: number + name: string + slug: string + } name?: string orchestrator: { stripe?: { @@ -4840,6 +4846,9 @@ export interface components { payment_intent_id: string size?: string } + ConfirmRequestDto: { + organization_id?: number + } ConfirmResponseDto: { organization_slug: string success: boolean @@ -5202,12 +5211,7 @@ export interface components { | { billing_email: string | null /** @enum {string|null} */ - billing_partner: - | 'fly' - | 'aws_marketplace' - | 'vercel_marketplace' - | 'stripe_product' - | null + billing_partner: 'fly' | 'aws_marketplace' | 'vercel_marketplace' | 'stripe_fabric' | null id: number is_owner: boolean name: string @@ -6556,7 +6560,7 @@ export interface components { }[] billing_cycle_anchor: number /** @enum {string} */ - billing_partner?: 'fly' | 'aws_marketplace' | 'vercel_marketplace' | 'stripe_product' + billing_partner?: 'fly' | 'aws_marketplace' | 'vercel_marketplace' | 'stripe_fabric' billing_via_partner: boolean current_period_end: number current_period_start: number @@ -7204,6 +7208,7 @@ export interface components { | 'auth.leaked_password_protection' | 'auth.advanced_auth_settings' | 'auth.performance_settings' + | 'auth.password_hibp' | 'backup.retention_days' | 'backup.restore_to_new_project' | 'function.max_count' @@ -7570,7 +7575,7 @@ export interface components { OrganizationResponse: { billing_email: string | null /** @enum {string|null} */ - billing_partner: 'fly' | 'aws_marketplace' | 'vercel_marketplace' | 'stripe_product' | null + billing_partner: 'fly' | 'aws_marketplace' | 'vercel_marketplace' | 'stripe_fabric' | null id: number is_owner: boolean name: string @@ -7633,7 +7638,7 @@ export interface components { OrganizationSlugResponse: { billing_email: string | null /** @enum {string|null} */ - billing_partner: 'fly' | 'aws_marketplace' | 'vercel_marketplace' | 'stripe_product' | null + billing_partner: 'fly' | 'aws_marketplace' | 'vercel_marketplace' | 'stripe_fabric' | null has_oriole_project: boolean id: number name: string @@ -17241,6 +17246,7 @@ export interface operations { | 'auth.leaked_password_protection' | 'auth.advanced_auth_settings' | 'auth.performance_settings' + | 'auth.password_hibp' | 'backup.retention_days' | 'backup.restore_to_new_project' | 'function.max_count' @@ -26442,7 +26448,11 @@ export interface operations { } cookie?: never } - requestBody?: never + requestBody: { + content: { + 'application/json': components['schemas']['ConfirmRequestDto'] + } + } responses: { 200: { headers: { @@ -26522,13 +26532,6 @@ export interface operations { } content?: never } - /** @description Failed to send analytics server event */ - 500: { - headers: { - [name: string]: unknown - } - content?: never - } } } TelemetryFeatureFlagsController_callFeatureFlag: {