diff --git a/coderd/apidoc/docs.go b/coderd/apidoc/docs.go index 1bbb216b1a..33dc0ff945 100644 --- a/coderd/apidoc/docs.go +++ b/coderd/apidoc/docs.go @@ -19093,12 +19093,14 @@ const docTemplate = `{ "workspace-usage", "oauth2", "mcp-server-http", - "workspace-build-updates" + "workspace-build-updates", + "nats_pubsub" ], "x-enum-comments": { "ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.", "ExperimentExample": "This isn't used for anything.", "ExperimentMCPServerHTTP": "Enables the MCP HTTP server functionality.", + "ExperimentNATSPubsub": "Enables embedded NATS pubsub.", "ExperimentNotifications": "Sends notifications via SMTP and webhooks following certain events.", "ExperimentOAuth2": "Enables OAuth2 provider functionality.", "ExperimentWorkspaceBuildUpdates": "Enables publishing workspace build updates to the all builds pubsub channel.", @@ -19111,7 +19113,8 @@ const docTemplate = `{ "Enables the new workspace usage tracking.", "Enables OAuth2 provider functionality.", "Enables the MCP HTTP server functionality.", - "Enables publishing workspace build updates to the all builds pubsub channel." + "Enables publishing workspace build updates to the all builds pubsub channel.", + "Enables embedded NATS pubsub." ], "x-enum-varnames": [ "ExperimentExample", @@ -19120,7 +19123,8 @@ const docTemplate = `{ "ExperimentWorkspaceUsage", "ExperimentOAuth2", "ExperimentMCPServerHTTP", - "ExperimentWorkspaceBuildUpdates" + "ExperimentWorkspaceBuildUpdates", + "ExperimentNATSPubsub" ] }, "codersdk.ExternalAPIKeyScopes": { diff --git a/coderd/apidoc/swagger.json b/coderd/apidoc/swagger.json index 6f7224e972..07658bf6f0 100644 --- a/coderd/apidoc/swagger.json +++ b/coderd/apidoc/swagger.json @@ -17345,12 +17345,14 @@ "workspace-usage", "oauth2", "mcp-server-http", - "workspace-build-updates" + "workspace-build-updates", + "nats_pubsub" ], "x-enum-comments": { "ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.", "ExperimentExample": "This isn't used for anything.", "ExperimentMCPServerHTTP": "Enables the MCP HTTP server functionality.", + "ExperimentNATSPubsub": "Enables embedded NATS pubsub.", "ExperimentNotifications": "Sends notifications via SMTP and webhooks following certain events.", "ExperimentOAuth2": "Enables OAuth2 provider functionality.", "ExperimentWorkspaceBuildUpdates": "Enables publishing workspace build updates to the all builds pubsub channel.", @@ -17363,7 +17365,8 @@ "Enables the new workspace usage tracking.", "Enables OAuth2 provider functionality.", "Enables the MCP HTTP server functionality.", - "Enables publishing workspace build updates to the all builds pubsub channel." + "Enables publishing workspace build updates to the all builds pubsub channel.", + "Enables embedded NATS pubsub." ], "x-enum-varnames": [ "ExperimentExample", @@ -17372,7 +17375,8 @@ "ExperimentWorkspaceUsage", "ExperimentOAuth2", "ExperimentMCPServerHTTP", - "ExperimentWorkspaceBuildUpdates" + "ExperimentWorkspaceBuildUpdates", + "ExperimentNATSPubsub" ] }, "codersdk.ExternalAPIKeyScopes": { diff --git a/codersdk/deployment.go b/codersdk/deployment.go index 3fb36c587f..99eec7f4dc 100644 --- a/codersdk/deployment.go +++ b/codersdk/deployment.go @@ -5004,6 +5004,7 @@ const ( ExperimentOAuth2 Experiment = "oauth2" // Enables OAuth2 provider functionality. ExperimentMCPServerHTTP Experiment = "mcp-server-http" // Enables the MCP HTTP server functionality. ExperimentWorkspaceBuildUpdates Experiment = "workspace-build-updates" // Enables publishing workspace build updates to the all builds pubsub channel. + ExperimentNATSPubsub Experiment = "nats_pubsub" // Enables embedded NATS pubsub. ) func (e Experiment) DisplayName() string { @@ -5022,6 +5023,8 @@ func (e Experiment) DisplayName() string { return "MCP HTTP Server Functionality" case ExperimentWorkspaceBuildUpdates: return "Workspace Build Updates Channel" + case ExperimentNATSPubsub: + return "NATS Pubsub" default: // Split on hyphen and convert to title case // e.g. "mcp-server-http" -> "Mcp Server Http" @@ -5038,6 +5041,7 @@ var ExperimentsKnown = Experiments{ ExperimentWorkspaceUsage, ExperimentOAuth2, ExperimentMCPServerHTTP, + ExperimentNATSPubsub, ExperimentWorkspaceBuildUpdates, } diff --git a/docs/reference/api/schemas.md b/docs/reference/api/schemas.md index ea8f19c4bf..3d9b633233 100644 --- a/docs/reference/api/schemas.md +++ b/docs/reference/api/schemas.md @@ -7161,9 +7161,9 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o #### Enumerated Values -| Value(s) | -|-------------------------------------------------------------------------------------------------------------------------------| -| `auto-fill-parameters`, `example`, `mcp-server-http`, `notifications`, `oauth2`, `workspace-build-updates`, `workspace-usage` | +| Value(s) | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| `auto-fill-parameters`, `example`, `mcp-server-http`, `nats_pubsub`, `notifications`, `oauth2`, `workspace-build-updates`, `workspace-usage` | ## codersdk.ExternalAPIKeyScopes diff --git a/site/src/api/typesGenerated.ts b/site/src/api/typesGenerated.ts index c4fae7a3d0..37120b3bbe 100644 --- a/site/src/api/typesGenerated.ts +++ b/site/src/api/typesGenerated.ts @@ -4349,6 +4349,7 @@ export type Experiment = | "auto-fill-parameters" | "example" | "mcp-server-http" + | "nats_pubsub" | "notifications" | "oauth2" | "workspace-build-updates" @@ -4358,6 +4359,7 @@ export const Experiments: Experiment[] = [ "auto-fill-parameters", "example", "mcp-server-http", + "nats_pubsub", "notifications", "oauth2", "workspace-build-updates",