The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: entitlements feature catalog (#41107)
Ignacio Dobronich69dde81f88a1
diff --git a/apps/studio/data/entitlements/entitlements-query.ts b/apps/studio/data/entitlements/entitlements-query.tsindex 40099d85bbf..a023c4cba64 100644--- a/apps/studio/data/entitlements/entitlements-query.ts+++ b/apps/studio/data/entitlements/entitlements-query.ts@@ -5,6 +5,9 @@ import { organizationKeys } from 'data/organizations/keys'import { UseCustomQueryOptions } from 'types'import { ResponseError } from 'types/base'+export type FeatureKey =+ components['schemas']['ListEntitlementsResponse']['entitlements'][number]['feature']['key']+export type EntitlementsVariables = {slug: string}diff --git a/apps/studio/hooks/misc/useCheckEntitlements.ts b/apps/studio/hooks/misc/useCheckEntitlements.tsindex bcb7f9da6a9..4dbef6012f3 100644--- a/apps/studio/hooks/misc/useCheckEntitlements.ts+++ b/apps/studio/hooks/misc/useCheckEntitlements.ts@@ -5,6 +5,7 @@ import type {Entitlement,EntitlementConfig,EntitlementType,+ FeatureKey,} from 'data/entitlements/entitlements-query'import { IS_PLATFORM } from 'lib/constants'@@ -55,7 +56,7 @@ function getEntitlementSetValues(entitlement: Entitlement | null): string[] {}export function useCheckEntitlements(- featureKey: string,+ featureKey: FeatureKey,organizationSlug?: string,options?: {enabled?: booleandiff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.tsindex 1633fa87792..4e3063a05cc 100644--- a/packages/api-types/types/platform.d.ts+++ b/packages/api-types/types/platform.d.ts@@ -7120,7 +7120,20 @@ export interface components {set: string[]}feature: {- key: string+ /** @enum {string} */+ key:+ | 'instances.compute_update_available_sizes'+ | 'storage.max_file_size'+ | 'security.audit_logs_days'+ | 'log.retention_days'+ | 'custom_domain'+ | 'ipv4'+ | 'pitr.available_variants'+ | 'log_drains'+ | 'branching_limit'+ | 'branching_persistent'+ | 'auth.mfa_phone'+ | 'auth.hooks'/** @enum {string} */type: 'boolean' | 'numeric' | 'set'}