feat: include server agent API version in buildinfo (#11057)

First part of #10340 -- we need this version to compare with agents to tell if they are on a deprecated Agent API version
This commit is contained in:
Spike Curtis
2023-12-08 12:50:25 +04:00
committed by GitHub
parent f0969f99ad
commit b4ca1d6579
9 changed files with 33 additions and 14 deletions

4
coderd/apidoc/docs.go generated
View File

@ -7827,6 +7827,10 @@ const docTemplate = `{
"codersdk.BuildInfoResponse": {
"type": "object",
"properties": {
"agent_api_version": {
"description": "AgentAPIVersion is the current version of the Agent API (back versions\nMAY still be supported).",
"type": "string"
},
"dashboard_url": {
"description": "DashboardURL is the URL to hit the deployment's dashboard.\nFor external workspace proxies, this is the coderd they are connected\nto.",
"type": "string"