From dd6b2e362a21f60b4b7e3a90e0f9a4533c016168 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Mon, 6 Oct 2025 13:21:23 -0500 Subject: [PATCH 1/2] Serverless-only availability hack While we still depend on visibility and stability from rest-api-spec JSON, we have to override availability.stack for APIs that are only available on serverless. --- compiler/src/model/build-model.ts | 7 +++++++ output/schema/schema.json | 9 +-------- output/typescript/types.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/compiler/src/model/build-model.ts b/compiler/src/model/build-model.ts index d320212a14..d57b0860ea 100644 --- a/compiler/src/model/build-model.ts +++ b/compiler/src/model/build-model.ts @@ -89,6 +89,13 @@ export function compileEndpoints (): Record { } }) } + + // temporary workaround for APIs that are serverless-only + // until we can stop depending on rest-api-spec for availability + if (api === "project.tags") { + delete map[api].availability.stack + } + if (typeof spec.feature_flag === 'string') { map[api].availability.stack.featureFlag = spec.feature_flag } diff --git a/output/schema/schema.json b/output/schema/schema.json index 661c69a64e..ca4b65c360 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -16562,10 +16562,6 @@ "serverless": { "stability": "experimental", "visibility": "public" - }, - "stack": { - "stability": "experimental", - "visibility": "public" } }, "description": "Return tags defined for the project", @@ -103448,10 +103444,7 @@ "name": "id" }, { - "aliases": [ - "p" - ], - "description": "The process ID.", + "description": "The process ID.\n* @aliases p", "name": "pid" }, { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 08ed069419..955704c9dd 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -7270,7 +7270,7 @@ export type CatCatNodeColumn = 'build' | 'b' | 'completion.size' | 'cs' | 'compl export type CatCatNodeColumns = CatCatNodeColumn | CatCatNodeColumn[] -export type CatCatNodeattrsColumn = 'node' | 'id' | 'id' | 'nodeId' | 'pid' | 'p' | 'host' | 'h' | 'ip' | 'i' | 'port' | 'po' | 'attr' | 'attr.name' | 'value' | 'attr.value'| string +export type CatCatNodeattrsColumn = 'node' | 'id' | 'id' | 'nodeId' | 'pid' | 'host' | 'h' | 'ip' | 'i' | 'port' | 'po' | 'attr' | 'attr.name' | 'value' | 'attr.value'| string export type CatCatNodeattrsColumns = CatCatNodeattrsColumn | CatCatNodeattrsColumn[] From 36d6d3eb0dddd5dbd139e13a6b3bd447df3c1571 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Mon, 6 Oct 2025 13:23:02 -0500 Subject: [PATCH 2/2] fix linter --- compiler/src/model/build-model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/model/build-model.ts b/compiler/src/model/build-model.ts index d57b0860ea..a17b3787a3 100644 --- a/compiler/src/model/build-model.ts +++ b/compiler/src/model/build-model.ts @@ -92,7 +92,7 @@ export function compileEndpoints (): Record { // temporary workaround for APIs that are serverless-only // until we can stop depending on rest-api-spec for availability - if (api === "project.tags") { + if (api === 'project.tags') { delete map[api].availability.stack }