diff --git a/packages/api/src/generated/contracts.ts b/packages/api/src/generated/contracts.ts index 48a0fa2a9c..ce1f153aa9 100644 --- a/packages/api/src/generated/contracts.ts +++ b/packages/api/src/generated/contracts.ts @@ -2539,6 +2539,7 @@ export const V1GetOrganizationEntitlementsOutput = Schema.Struct({ "integrations.github_connections", "dedicated_pooler", "observability.dashboard_advanced_metrics", + "api.members.invitations", "api.members.roles", ]), type: Schema.Literals(["boolean", "numeric", "set"]), @@ -2906,6 +2907,12 @@ export const V1GetPostgrestServiceConfigOutput = Schema.Struct({ }).check(Schema.isInt()), Schema.Null, ]), + db_pool_acquisition_timeout: Schema.Union([ + Schema.Number.annotate({ + description: "If `null`, the value is automatically configured to 10.", + }).check(Schema.isInt()), + Schema.Null, + ]), jwt_secret: Schema.optionalKey(Schema.String), }); export const V1GetProfileInput = Schema.Struct({}); @@ -5789,6 +5796,11 @@ export const V1UpdatePostgrestServiceConfigInput = Schema.Struct({ .check(Schema.isGreaterThanOrEqualTo(0)) .check(Schema.isLessThanOrEqualTo(1000)), ), + db_pool_acquisition_timeout: Schema.optionalKey( + Schema.Number.check(Schema.isInt()) + .check(Schema.isGreaterThanOrEqualTo(0)) + .check(Schema.isLessThanOrEqualTo(60)), + ), }); export const V1UpdatePostgrestServiceConfigOutput = Schema.Struct({ db_schema: Schema.String, @@ -5800,6 +5812,12 @@ export const V1UpdatePostgrestServiceConfigOutput = Schema.Struct({ }).check(Schema.isInt()), Schema.Null, ]), + db_pool_acquisition_timeout: Schema.Union([ + Schema.Number.annotate({ + description: "If `null`, the value is automatically configured to 10.", + }).check(Schema.isInt()), + Schema.Null, + ]), }); export const V1UpdateProjectApiKeyInput = Schema.Struct({ ref: Schema.String.check(Schema.isMinLength(20)) @@ -8792,7 +8810,13 @@ export const operationDefinitions = { requestBody: { kind: "json", contentType: "application/json", - fields: ["db_extra_search_path", "db_schema", "max_rows", "db_pool"], + fields: [ + "db_extra_search_path", + "db_schema", + "max_rows", + "db_pool", + "db_pool_acquisition_timeout", + ], }, response: { kind: "json" }, inputSchema: V1UpdatePostgrestServiceConfigInput, diff --git a/packages/api/src/generated/openapi.json b/packages/api/src/generated/openapi.json index 758084cf9b..0cc0c762a7 100644 --- a/packages/api/src/generated/openapi.json +++ b/packages/api/src/generated/openapi.json @@ -13333,11 +13333,22 @@ "nullable": true, "description": "If `null`, the value is automatically configured based on compute size." }, + "db_pool_acquisition_timeout": { + "type": "integer", + "nullable": true, + "description": "If `null`, the value is automatically configured to 10." + }, "jwt_secret": { "type": "string" } }, - "required": ["db_schema", "max_rows", "db_extra_search_path", "db_pool"] + "required": [ + "db_schema", + "max_rows", + "db_extra_search_path", + "db_pool", + "db_pool_acquisition_timeout" + ] }, "V1UpdatePostgrestConfigBody": { "type": "object", @@ -13357,6 +13368,11 @@ "type": "integer", "minimum": 0, "maximum": 1000 + }, + "db_pool_acquisition_timeout": { + "type": "integer", + "minimum": 0, + "maximum": 60 } }, "example": { @@ -13381,9 +13397,20 @@ "type": "integer", "nullable": true, "description": "If `null`, the value is automatically configured based on compute size." + }, + "db_pool_acquisition_timeout": { + "type": "integer", + "nullable": true, + "description": "If `null`, the value is automatically configured to 10." } }, - "required": ["db_schema", "max_rows", "db_extra_search_path", "db_pool"] + "required": [ + "db_schema", + "max_rows", + "db_extra_search_path", + "db_pool", + "db_pool_acquisition_timeout" + ] }, "V1ProjectRefResponse": { "type": "object", @@ -20296,6 +20323,7 @@ "integrations.github_connections", "dedicated_pooler", "observability.dashboard_advanced_metrics", + "api.members.invitations", "api.members.roles" ] },