Skip to content

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

feat: detect integration install state based on partner callbacks (#46488)

Alex Hall99f4b4230a25
diff --git a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallOAuthIntegrationButton.tsx b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallOAuthIntegrationButton.tsx
index fa2cc534313..362aa65617a 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallOAuthIntegrationButton.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallOAuthIntegrationButton.tsx
@@ -6,6 +6,7 @@ import { Button } from 'ui'
import type { IntegrationDefinition } from '@/components/interfaces/Integrations/Landing/Integrations.constants'
import { useAPIKeysQuery } from '@/data/api-keys/api-keys-query'
import { useInstallOAuthIntegrationMutation } from '@/data/marketplace/install-oauth-integration-mutation'
+import { usePartnerIntegrationsQuery } from '@/data/partners/integration-status-query'
import { useSecretsQuery } from '@/data/secrets/secrets-query'
interface InstallOAuthIntegrationButtonProps {
@@ -22,6 +23,9 @@ export function InstallOAuthIntegrationButton({ integration }: InstallOAuthInteg
integration.installIdentificationMethod === 'edge_function_secret_name' &&
!!integration.edgeFunctionSecretName
+ const requiresPartnerIntegrationsCheck =
+ integration.installIdentificationMethod === 'integration_status'
+
const { data: apiKeys, isLoading: isApiKeysLoading } = useAPIKeysQuery(
{ projectRef, reveal: false },
{ enabled: requiresApiKeysCheck }
@@ -32,6 +36,9 @@ export function InstallOAuthIntegrationButton({ integration }: InstallOAuthInteg
{ enabled: requiresEdgeFunctionSecretsCheck }
)
+ const { data: partnerIntegrations, isPending: isPartnerIntegrationsLoading } =
+ usePartnerIntegrationsQuery({ projectRef }, { enabled: requiresPartnerIntegrationsCheck })
+
const { mutate: installOAuthIntegration, isPending: isInstalling } =
useInstallOAuthIntegrationMutation({
onSuccess: (data) => {
@@ -49,7 +56,8 @@ export function InstallOAuthIntegrationButton({ integration }: InstallOAuthInteg
const isLoading =
(requiresApiKeysCheck && isApiKeysLoading) ||
- (requiresEdgeFunctionSecretsCheck && isEdgeFunctionSecretsLoading)
+ (requiresEdgeFunctionSecretsCheck && isEdgeFunctionSecretsLoading) ||
+ (requiresPartnerIntegrationsCheck && isPartnerIntegrationsLoading)
const isIntegrationInstalled = useMemo(() => {
if (!integration) return false
@@ -66,8 +74,23 @@ export function InstallOAuthIntegrationButton({ integration }: InstallOAuthInteg
return edgeFunctionSecrets.some((secret) => secret.name === secretName)
}
+ if (integration.installIdentificationMethod === 'integration_status') {
+ if (isPartnerIntegrationsLoading || !partnerIntegrations) return false
+ return partnerIntegrations.some(
+ (i) => i.listing_slug === integration.id && i.status === 'ready'
+ )
+ }
+
return false
- }, [apiKeys, edgeFunctionSecrets, integration, isApiKeysLoading, isEdgeFunctionSecretsLoading])
+ }, [
+ apiKeys,
+ edgeFunctionSecrets,
+ partnerIntegrations,
+ integration,
+ isApiKeysLoading,
+ isEdgeFunctionSecretsLoading,
+ isPartnerIntegrationsLoading,
+ ])
const handleInstallClick = async () => {
if (!integration || !projectRef) return
diff --git a/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts b/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts
index 2fc1c9fe088..50024118dbd 100644
--- a/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts
+++ b/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts
@@ -11,6 +11,7 @@ import { type APIKey } from '@/data/api-keys/api-keys-query'
import { type DatabaseExtension } from '@/data/database-extensions/database-extensions-query'
import { type Schema } from '@/data/database/schemas-query'
import { type FDW } from '@/data/fdw/fdws-query'
+import { IntegrationStatus } from '@/data/partners/integration-status-query'
import { type ProjectSecret } from '@/data/secrets/secrets-query'
export const isStripeSyncEngineInstalled = (schemas: Schema[]) => {
@@ -23,11 +24,19 @@ export const isOAuthInstalled = ({
integration,
apiKeys,
secrets,
+ partnerIntegrations: partnerIntegrations,
}: {
integration: IntegrationDefinition
apiKeys: APIKey[]
secrets: ProjectSecret[]
+ partnerIntegrations: IntegrationStatus[]
}) => {
+ if (integration.installIdentificationMethod === 'integration_status') {
+ return partnerIntegrations.some(
+ (i) => i.listing_slug === integration.id && i.status === 'ready'
+ )
+ }
+
if (integration.installIdentificationMethod === 'secret_key_prefix') {
const prefix = integration.secretKeyPrefix
if (!prefix) return false
diff --git a/apps/studio/components/interfaces/Integrations/Landing/useInstalledIntegrations.tsx b/apps/studio/components/interfaces/Integrations/Landing/useInstalledIntegrations.tsx
index 9c1326e3601..cc0510b12a6 100644
--- a/apps/studio/components/interfaces/Integrations/Landing/useInstalledIntegrations.tsx
+++ b/apps/studio/components/interfaces/Integrations/Landing/useInstalledIntegrations.tsx
@@ -11,6 +11,7 @@ import { useAPIKeysQuery } from '@/data/api-keys/api-keys-query'
import { useDatabaseExtensionsQuery } from '@/data/database-extensions/database-extensions-query'
import { useSchemasQuery } from '@/data/database/schemas-query'
import { useFDWsQuery } from '@/data/fdw/fdws-query'
+import { usePartnerIntegrationsQuery } from '@/data/partners/integration-status-query'
import { useSecretsQuery } from '@/data/secrets/secrets-query'
import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'
import { EMPTY_ARR } from '@/lib/void'
@@ -44,6 +45,14 @@ export const useInstalledIntegrations = () => {
)
}, [allIntegrations])
+ const hasCallbackStatusIntegration = useMemo(() => {
+ return allIntegrations.some(
+ (integration) =>
+ integration.type === 'oauth' &&
+ integration.installIdentificationMethod === 'integration_status'
+ )
+ }, [allIntegrations])
+
const {
data: apiKeys = EMPTY_ARR,
error: apiKeysError,
@@ -66,6 +75,17 @@ export const useInstalledIntegrations = () => {
{ enabled: hasEdgeFunctionSecretNameIntegration }
)
+ const {
+ data: partnerIntegrations = EMPTY_ARR,
+ error: partnerIntegrationsError,
+ isError: isErrorPartnerIntegrations,
+ isLoading: isPartnerIntegrationsLoading,
+ isSuccess: isSuccessPartnerIntegrations,
+ } = usePartnerIntegrationsQuery(
+ { projectRef: project?.ref },
+ { enabled: hasCallbackStatusIntegration }
+ )
+
const {
data: wrappers = EMPTY_ARR,
error: fdwError,
@@ -115,7 +135,12 @@ export const useInstalledIntegrations = () => {
return hasRequiredExtensions({ integration, extensions })
}
if (integration.type === 'oauth') {
- return isOAuthInstalled({ integration, apiKeys, secrets: edgeFunctionSecrets })
+ return isOAuthInstalled({
+ integration,
+ apiKeys,
+ partnerIntegrations,
+ secrets: edgeFunctionSecrets,
+ })
}
return false
})
@@ -128,28 +153,32 @@ export const useInstalledIntegrations = () => {
schemasError ||
availableIntegrationsError ||
(hasSecretKeyPrefixIntegration ? apiKeysError : null) ||
- (hasEdgeFunctionSecretNameIntegration ? edgeFunctionSecretsError : null)
+ (hasEdgeFunctionSecretNameIntegration ? edgeFunctionSecretsError : null) ||
+ (hasCallbackStatusIntegration ? partnerIntegrationsError : null)
const isLoading =
isSchemasLoading ||
isFDWLoading ||
isExtensionsLoading ||
isAvailableIntegrationsLoading ||
(hasSecretKeyPrefixIntegration && isApiKeysLoading) ||
- (hasEdgeFunctionSecretNameIntegration && isEdgeFunctionSecretsLoading)
+ (hasEdgeFunctionSecretNameIntegration && isEdgeFunctionSecretsLoading) ||
+ (hasCallbackStatusIntegration && isPartnerIntegrationsLoading)
const isError =
isErrorFDWs ||
isErrorExtensions ||
isErrorSchemas ||
isErrorAvailableIntegrations ||
(hasSecretKeyPrefixIntegration && isErrorApiKeys) ||
- (hasEdgeFunctionSecretNameIntegration && isErrorEdgeFunctionSecrets)
+ (hasEdgeFunctionSecretNameIntegration && isErrorEdgeFunctionSecrets) ||
+ (hasCallbackStatusIntegration && isErrorPartnerIntegrations)
const isSuccess =
isSuccessFDWs &&
isSuccessExtensions &&
isSuccessSchemas &&
isSuccessAvailableIntegrations &&
(!hasSecretKeyPrefixIntegration || isSuccessApiKeys) &&
- (!hasEdgeFunctionSecretNameIntegration || isSuccessEdgeFunctionSecrets)
+ (!hasEdgeFunctionSecretNameIntegration || isSuccessEdgeFunctionSecrets) &&
+ (!hasCallbackStatusIntegration || isSuccessPartnerIntegrations)
return {
// show all integrations at once instead of showing partial results
diff --git a/apps/studio/data/partners/integration-status-query.ts b/apps/studio/data/partners/integration-status-query.ts
new file mode 100644
index 00000000000..649491e104c
--- /dev/null
+++ b/apps/studio/data/partners/integration-status-query.ts
@@ -0,0 +1,42 @@
+import { useQuery } from '@tanstack/react-query'
+
+import { partnersKeys } from './keys'
+import type { components } from '@/data/api'
+import { get, handleError } from '@/data/fetchers'
+import type { ResponseError, UseCustomQueryOptions } from '@/types'
+
+export type IntegrationVariables = {
+ projectRef?: string
+}
+
+export type IntegrationStatus =
+ components['schemas']['PartnerIntegrationListResponse']['integrations'][0]
+
+async function getIntegrations({ projectRef }: IntegrationVariables, signal?: AbortSignal) {
+ if (!projectRef) throw new Error('Project ref is required')
+
+ const { data, error } = await get(`/platform/integrations/partners/{ref}`, {
+ params: { path: { ref: projectRef } },
+ signal,
+ })
+
+ if (error) handleError(error)
+ return data.integrations
+}
+
+export type IntegrationsData = Awaited<ReturnType<typeof getIntegrations>>
+export type IntegrationsError = ResponseError
+
+export const usePartnerIntegrationsQuery = <TData = IntegrationsData>(
+ { projectRef }: IntegrationVariables,
+ {
+ enabled = true,
+ ...options
+ }: UseCustomQueryOptions<IntegrationsData, IntegrationsError, TData> = {}
+) =>
+ useQuery<IntegrationsData, IntegrationsError, TData>({
+ queryKey: partnersKeys.getIntegrations(projectRef),
+ queryFn: ({ signal }) => getIntegrations({ projectRef }, signal),
+ enabled: enabled && typeof projectRef !== 'undefined',
+ ...options,
+ })
diff --git a/apps/studio/data/partners/keys.ts b/apps/studio/data/partners/keys.ts
index eeff9d8ef38..4689e196082 100644
--- a/apps/studio/data/partners/keys.ts
+++ b/apps/studio/data/partners/keys.ts
@@ -1,3 +1,4 @@
-export const stripeProjectsKeys = {
- get: (arId: string | undefined) => ['stripe', 'projects', arId] as const,
+export const partnersKeys = {
+ getIntegrations: (projectId?: string) => ['partners', 'integrations', projectId] as const,
+ getStripeProjects: (arId: string | undefined) => ['stripe', 'projects', arId] as const,
}
diff --git a/apps/studio/data/partners/stripe-projects-query.ts b/apps/studio/data/partners/stripe-projects-query.ts
index 05afed1fe82..ce5d6494c0a 100644
--- a/apps/studio/data/partners/stripe-projects-query.ts
+++ b/apps/studio/data/partners/stripe-projects-query.ts
@@ -1,7 +1,7 @@
import { queryOptions } from '@tanstack/react-query'
import type { components } from 'api-types'
-import { stripeProjectsKeys } from './keys'
+import { partnersKeys } from './keys'
import { get, handleError } from '@/data/fetchers'
type GetAccountRequestVariables = {
@@ -30,7 +30,7 @@ export const accountRequestQueryOptions = (
{ enabled = true }: { enabled?: boolean } = { enabled: true }
) => {
return queryOptions({
- queryKey: stripeProjectsKeys.get(arId),
+ queryKey: partnersKeys.getStripeProjects(arId),
queryFn: ({ signal }) => getAccountRequest({ arId }, signal),
enabled: enabled && typeof arId !== 'undefined',
})
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index d67499e142f..08ebaa05eb8 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -687,6 +687,23 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/integrations/partners/{ref}': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Lists installed marketplace integrations for the given project. */
+ get: operations['PartnerIntegrationsController_listIntegrations']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/integrations/partners/{ref}/{listing_slug}': {
parameters: {
query?: never
@@ -694,7 +711,8 @@ export interface paths {
path?: never
cookie?: never
}
- get?: never
+ /** Gets the installation status of the given marketplace integration for the given project. */
+ get: operations['PartnerIntegrationsController_getIntegration']
put?: never
/** Creates a partner integration and returns the redirect URL */
post: operations['PartnerIntegrationsController_createIntegration']
@@ -988,6 +1006,23 @@ export interface paths {
patch: operations['AuditLogDrainController_patchAuditLogDrain']
trace?: never
}
+ '/platform/organizations/{slug}/analytics/audit-log-drains/{token}/test': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Test an audit log drain connection */
+ post: operations['AuditLogDrainController_testAuditLogDrain']
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/organizations/{slug}/apps': {
parameters: {
query?: never
@@ -2630,6 +2665,23 @@ export interface paths {
patch: operations['LogDrainController_patchLogDrain']
trace?: never
}
+ '/platform/projects/{ref}/analytics/log-drains/{token}/test': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Test a log drain connection */
+ post: operations['LogDrainController_testLogDrain']
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/projects/{ref}/api-keys/temporary': {
parameters: {
query?: never
@@ -2925,7 +2977,7 @@ export interface paths {
/** Creates project's content folder */
post: operations['ContentFoldersController_createFolder']
/** Deletes project's content folders */
- delete: operations['ContentFoldersController_DeleteFolder']
+ delete: operations['ContentFoldersController_deleteFolder']
options?: never
head?: never
patch?: never
@@ -4519,6 +4571,26 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/support/verify-email': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /**
+ * Verify a support conversation email
+ * @description Called by the Supabase dashboard when a user clicks their email verification link. Validates the token, checks org/project ownership, updates the Front conversation custom fields, and removes unverified tags.
+ */
+ post: operations['VerifyEmailController_verifyEmail']
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/telemetry/event': {
parameters: {
query?: never
@@ -4881,6 +4953,10 @@ export interface components {
title: string
}[]
}
+ BackendConnectionTest: {
+ 'connected?': boolean
+ reason: string
+ }
BackupsResponse: {
backups: {
id: number
@@ -5511,13 +5587,13 @@ export interface components {
custom_supabase_internal_requests?: {
ami: {
/**
- * @description Exact AWS instance type to provision (e.g. `t3.nano`, `t4g.nano`). When omitted the default for `desired_instance_size` is used. Only for internal use; rejected for user-facing requests in production.
+ * @description Exact AWS instance type to provision (e.g. `t3.nano`, `t4g.nano`). Hard pin — no ODCR fallback. Only for internal use; rejected for user-facing requests in production.
* @enum {string}
*/
instance_type?:
| 't4g.nano'
- | 't3.nano'
| 't3a.nano'
+ | 't3.nano'
| 't4g.micro'
| 't4g.small'
| 't4g.medium'
@@ -5537,6 +5613,11 @@ export interface components {
| 'c8g.48xlarge'
| 'r8g.48xlarge'
| 'x8g.48xlarge'
+ /**
+ * @description Preferred architecture for WPP projects. Soft hint — the worker selects the cheapest region-available type for this arch and may cross to the other arch if no ODCR capacity is available. Cannot be set together with instance_type. Only for internal use.
+ * @enum {string}
+ */
+ preferred_arch?: 'x86_64' | 'arm64'
search_tags?: {
[key: string]: string
}
@@ -8357,6 +8438,21 @@ export interface components {
organization_id: number
overdue_invoice_count: number
}
+ PartnerIntegrationListResponse: {
+ integrations: {
+ listing_slug: string
+ partner_links?: {
+ dashboard?: string
+ manage?: string
+ }
+ /** @enum {string} */
+ status: 'installing' | 'ready' | 'error'
+ user_alert?: {
+ message: string
+ }
+ version?: string
+ }[]
+ }
PartnerIntegrationsResponse: {
/**
* Format: uri
@@ -8364,6 +8460,21 @@ export interface components {
*/
redirectUrl: string
}
+ PartnerIntegrationStatusResponse: {
+ install_state?: {
+ partner_links?: {
+ dashboard?: string
+ manage?: string
+ }
+ /** @enum {string} */
+ status: 'installing' | 'ready' | 'error'
+ user_alert?: {
+ message: string
+ }
+ version?: string
+ }
+ installed: boolean
+ }
PauseStatusResponse: {
can_restore: boolean
last_paused_on: string | null
@@ -12134,6 +12245,13 @@ export interface components {
VercelRedirectResponse: {
url: string
}
+ VerifyEmailBody: {
+ token: string
+ }
+ VerifyEmailResponse: {
+ /** @enum {string} */
+ result: 'success'
+ }
WorkflowRunResponse: {
branch_id: string
check_run_id: number | null
@@ -14071,6 +14189,108 @@ export interface operations {
}
}
}
+ PartnerIntegrationsController_listIntegrations: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['PartnerIntegrationListResponse']
+ }
+ }
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Forbidden action */
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Project not found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Rate limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ PartnerIntegrationsController_getIntegration: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description The slug of the listing in the marketplace database */
+ listing_slug: string
+ /** @description Supabase project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['PartnerIntegrationStatusResponse']
+ }
+ }
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Forbidden action */
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Project not found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Rate limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
PartnerIntegrationsController_createIntegration: {
parameters: {
query?: never
@@ -15052,6 +15272,58 @@ export interface operations {
}
}
}
+ AuditLogDrainController_testAuditLogDrain: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Organization slug */
+ slug: string
+ /** @description Audit log drain identifier */
+ token: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['BackendConnectionTest']
+ }
+ }
+ /** @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 test audit log drain */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
PlatformAppsController_listPlatformApps: {
parameters: {
query?: never
@@ -21159,6 +21431,58 @@ export interface operations {
}
}
}
+ LogDrainController_testLogDrain: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ /** @description Log drains identifier */
+ token: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['BackendConnectionTest']
+ }
+ }
+ /** @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 test log drain */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
ApiKeysController_createTemporaryApiKey: {
parameters: {
query: {
@@ -22468,7 +22792,7 @@ export interface operations {
}
}
}
- ContentFoldersController_DeleteFolder: {
+ ContentFoldersController_deleteFolder: {
parameters: {
query: {
ids: string
@@ -28390,6 +28714,30 @@ export interface operations {
}
}
}
+ VerifyEmailController_verifyEmail: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['VerifyEmailBody']
+ }
+ }
+ responses: {
+ /** @description Verification successful */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['VerifyEmailResponse']
+ }
+ }
+ }
+ }
TelemetryEventController_sendServerEventV2: {
parameters: {
query?: never
diff --git a/packages/common/marketplace.types.ts b/packages/common/marketplace.types.ts
index bd7441796df..6b459ba685a 100644
--- a/packages/common/marketplace.types.ts
+++ b/packages/common/marketplace.types.ts
@@ -41,12 +41,15 @@ export type Database = {
installation_identification_method:
| 'secret_key_prefix'
| 'edge_function_secret_name'
+ | 'integration_status'
+ | 'oauth_authorization'
| null
installation_url: string | null
installation_url_type: 'get' | 'post' | null
listing_logo: string | null
listing_tsv: unknown
marketplace_url: string | null
+ oauth_client_id: string | null
partner_logo: string | null
partner_name: string | null
partner_slug: string | null
@@ -96,6 +99,20 @@ export type Database = {
}
Relationships: []
}
+ project_integration_status: {
+ Row: {
+ created_at: string | null
+ integration_id: string | null
+ listing_slug: string | null
+ partner_links: Json | null
+ project_ref: string | null
+ status: 'installing' | 'ready' | 'error' | null
+ updated_at: string | null
+ user_alert: Json | null
+ version: string | null
+ }
+ Relationships: []
+ }
}
Functions: {
get_redirect_url: {