From 144719487fb8e9195a17db1e82c745a4606d6f6d Mon Sep 17 00:00:00 2001 From: "supabase-cli-releaser[bot]" <246109035+supabase-cli-releaser[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:21:56 +0000 Subject: [PATCH 1/2] chore: sync API types from infrastructure --- apps/cli-go/pkg/api/types.gen.go | 37 ++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/apps/cli-go/pkg/api/types.gen.go b/apps/cli-go/pkg/api/types.gen.go index 16267c8dc4..838e1e776a 100644 --- a/apps/cli-go/pkg/api/types.gen.go +++ b/apps/cli-go/pkg/api/types.gen.go @@ -1427,6 +1427,7 @@ const ( // Defines values for V1ListEntitlementsResponseEntitlementsFeatureKey. const ( + V1ListEntitlementsResponseEntitlementsFeatureKeyApiMembersRoles V1ListEntitlementsResponseEntitlementsFeatureKey = "api.members.roles" V1ListEntitlementsResponseEntitlementsFeatureKeyAssistantAdvanceModel V1ListEntitlementsResponseEntitlementsFeatureKey = "assistant.advance_model" V1ListEntitlementsResponseEntitlementsFeatureKeyAuditLogDrains V1ListEntitlementsResponseEntitlementsFeatureKey = "audit_log_drains" V1ListEntitlementsResponseEntitlementsFeatureKeyAuthAdvancedAuthSettings V1ListEntitlementsResponseEntitlementsFeatureKey = "auth.advanced_auth_settings" @@ -1485,6 +1486,7 @@ const ( V1ListEntitlementsResponseEntitlementsFeatureKeyStorageImageTransformations V1ListEntitlementsResponseEntitlementsFeatureKey = "storage.image_transformations" V1ListEntitlementsResponseEntitlementsFeatureKeyStorageMaxFileSize V1ListEntitlementsResponseEntitlementsFeatureKey = "storage.max_file_size" V1ListEntitlementsResponseEntitlementsFeatureKeyStorageMaxFileSizeConfigurable V1ListEntitlementsResponseEntitlementsFeatureKey = "storage.max_file_size.configurable" + V1ListEntitlementsResponseEntitlementsFeatureKeyStoragePurgeCache V1ListEntitlementsResponseEntitlementsFeatureKey = "storage.purge_cache" V1ListEntitlementsResponseEntitlementsFeatureKeyStorageVectorBuckets V1ListEntitlementsResponseEntitlementsFeatureKey = "storage.vector_buckets" V1ListEntitlementsResponseEntitlementsFeatureKeyVanitySubdomain V1ListEntitlementsResponseEntitlementsFeatureKey = "vanity_subdomain" ) @@ -3488,10 +3490,13 @@ type PostgrestConfigWithJWTSecretResponse struct { DbExtraSearchPath string `json:"db_extra_search_path"` // DbPool If `null`, the value is automatically configured based on compute size. - DbPool nullable.Nullable[int] `json:"db_pool"` - DbSchema string `json:"db_schema"` - JwtSecret *string `json:"jwt_secret,omitempty"` - MaxRows int `json:"max_rows"` + DbPool nullable.Nullable[int] `json:"db_pool"` + + // DbPoolAcquisitionTimeout If `null`, the value is automatically configured to 10. + DbPoolAcquisitionTimeout nullable.Nullable[int] `json:"db_pool_acquisition_timeout"` + DbSchema string `json:"db_schema"` + JwtSecret *string `json:"jwt_secret,omitempty"` + MaxRows int `json:"max_rows"` } // ProjectClaimTokenResponse defines model for ProjectClaimTokenResponse. @@ -3961,6 +3966,9 @@ type StorageConfigResponse struct { ImageTransformation struct { Enabled bool `json:"enabled"` } `json:"imageTransformation"` + PurgeCache struct { + Enabled bool `json:"enabled"` + } `json:"purgeCache"` S3Protocol struct { Enabled bool `json:"enabled"` } `json:"s3Protocol"` @@ -4563,6 +4571,9 @@ type UpdateStorageConfigBody struct { ImageTransformation *struct { Enabled bool `json:"enabled"` } `json:"imageTransformation,omitempty"` + PurgeCache *struct { + Enabled bool `json:"enabled"` + } `json:"purgeCache,omitempty"` S3Protocol *struct { Enabled bool `json:"enabled"` } `json:"s3Protocol,omitempty"` @@ -4909,9 +4920,12 @@ type V1PostgrestConfigResponse struct { DbExtraSearchPath string `json:"db_extra_search_path"` // DbPool If `null`, the value is automatically configured based on compute size. - DbPool nullable.Nullable[int] `json:"db_pool"` - DbSchema string `json:"db_schema"` - MaxRows int `json:"max_rows"` + DbPool nullable.Nullable[int] `json:"db_pool"` + + // DbPoolAcquisitionTimeout If `null`, the value is automatically configured to 10. + DbPoolAcquisitionTimeout nullable.Nullable[int] `json:"db_pool_acquisition_timeout"` + DbSchema string `json:"db_schema"` + MaxRows int `json:"max_rows"` } // V1ProfileResponse defines model for V1ProfileResponse. @@ -5166,10 +5180,11 @@ type V1UpdatePasswordResponse struct { // V1UpdatePostgrestConfigBody defines model for V1UpdatePostgrestConfigBody. type V1UpdatePostgrestConfigBody struct { - DbExtraSearchPath *string `json:"db_extra_search_path,omitempty"` - DbPool *int `json:"db_pool,omitempty"` - DbSchema *string `json:"db_schema,omitempty"` - MaxRows *int `json:"max_rows,omitempty"` + DbExtraSearchPath *string `json:"db_extra_search_path,omitempty"` + DbPool *int `json:"db_pool,omitempty"` + DbPoolAcquisitionTimeout *int `json:"db_pool_acquisition_timeout,omitempty"` + DbSchema *string `json:"db_schema,omitempty"` + MaxRows *int `json:"max_rows,omitempty"` } // V1UpdateProjectBody defines model for V1UpdateProjectBody. From 274ee4e390b140cccd8b72216c058df569abb9c0 Mon Sep 17 00:00:00 2001 From: Andrew Valleteau Date: Tue, 30 Jun 2026 10:27:35 +0200 Subject: [PATCH 2/2] chore(cli-go): sync API types and fix storage config feature literal (#5737) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for new storage and PostgreSQL configuration features in the Go CLI API types and storage configuration. **Changes:** - **Feature entitlements**: Added two new feature keys to `V1ListEntitlementsResponseEntitlementsFeatureKey`: - `api.members.roles` — API members roles management - `storage.purge_cache` — Storage cache purging capability - **PostgreSQL configuration**: Extended `PostgrestConfigWithJWTSecretResponse`, `V1PostgrestConfigResponse`, and `V1UpdatePostgrestConfigBody` types with: - `DbPoolAcquisitionTimeout` field for configuring database pool acquisition timeout (defaults to 10 when null) - Improved field alignment and documentation - **Storage configuration**: Added `PurgeCache` feature toggle to: - `StorageConfigResponse` — read-only storage configuration response - `UpdateStorageConfigBody` — storage configuration update request These changes enable clients to manage cache purging and fine-tune PostgreSQL connection pool behavior through the Management API. https://claude.ai/code/session_01HCAM37nBUbzHa4u7gr9876 --------- Co-authored-by: supabase-cli-releaser[bot] <246109035+supabase-cli-releaser[bot]@users.noreply.github.com> Co-authored-by: Claude --- apps/cli-go/pkg/config/storage.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/cli-go/pkg/config/storage.go b/apps/cli-go/pkg/config/storage.go index 740c525f43..14bf5ff082 100644 --- a/apps/cli-go/pkg/config/storage.go +++ b/apps/cli-go/pkg/config/storage.go @@ -73,6 +73,9 @@ func (s *storage) ToUpdateStorageConfigBody() v1API.UpdateStorageConfigBody { ImageTransformation *struct { Enabled bool `json:"enabled"` } `json:"imageTransformation,omitempty"` + PurgeCache *struct { + Enabled bool `json:"enabled"` + } `json:"purgeCache,omitempty"` S3Protocol *struct { Enabled bool `json:"enabled"` } `json:"s3Protocol,omitempty"`