fix: regenerate API docs for ChatErrorKind (#24989)

Follow-up to #24955 (`refactor: move chat error kinds into codersdk`),
which moved `ChatErrorKind` into `codersdk` but did not refresh the
generated apidoc artifacts. As a result, `make gen` was producing a
dirty tree on `main`.

This PR is the output of running `make gen -B` on a clean checkout of
`main`. Only generated files are touched:

- `coderd/apidoc/docs.go`
- `coderd/apidoc/swagger.json`
- `docs/reference/api/chats.md`
- `docs/reference/api/schemas.md`

The diff adds the `codersdk.ChatErrorKind` schema and replaces the
previously-untyped `kind: string` fields on `codersdk.ChatError` and
`codersdk.ChatRetryEvent` with references to the new enum.
This commit is contained in:
Ethan
2026-05-06 12:57:06 +10:00
committed by GitHub
parent 46a60e6d5d
commit 0dc4c34efc
4 changed files with 118 additions and 41 deletions
+33 -2
View File
@@ -15679,7 +15679,11 @@ const docTemplate = `{
},
"kind": {
"description": "Kind classifies the error for consistent client rendering.",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/codersdk.ChatErrorKind"
}
]
},
"message": {
"description": "Message is the normalized, user-facing error message.",
@@ -15699,6 +15703,29 @@ const docTemplate = `{
}
}
},
"codersdk.ChatErrorKind": {
"type": "string",
"enum": [
"generic",
"overloaded",
"rate_limit",
"timeout",
"startup_timeout",
"auth",
"config",
"usage_limit"
],
"x-enum-varnames": [
"ChatErrorKindGeneric",
"ChatErrorKindOverloaded",
"ChatErrorKindRateLimit",
"ChatErrorKindTimeout",
"ChatErrorKindStartupTimeout",
"ChatErrorKindAuth",
"ChatErrorKindConfig",
"ChatErrorKindUsageLimit"
]
},
"codersdk.ChatFileMetadata": {
"type": "object",
"properties": {
@@ -16266,7 +16293,11 @@ const docTemplate = `{
},
"kind": {
"description": "Kind classifies the retry reason for consistent client rendering.",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/codersdk.ChatErrorKind"
}
]
},
"provider": {
"description": "Provider identifies the upstream model provider when known.",
+33 -2
View File
@@ -14108,7 +14108,11 @@
},
"kind": {
"description": "Kind classifies the error for consistent client rendering.",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/codersdk.ChatErrorKind"
}
]
},
"message": {
"description": "Message is the normalized, user-facing error message.",
@@ -14128,6 +14132,29 @@
}
}
},
"codersdk.ChatErrorKind": {
"type": "string",
"enum": [
"generic",
"overloaded",
"rate_limit",
"timeout",
"startup_timeout",
"auth",
"config",
"usage_limit"
],
"x-enum-varnames": [
"ChatErrorKindGeneric",
"ChatErrorKindOverloaded",
"ChatErrorKindRateLimit",
"ChatErrorKindTimeout",
"ChatErrorKindStartupTimeout",
"ChatErrorKindAuth",
"ChatErrorKindConfig",
"ChatErrorKindUsageLimit"
]
},
"codersdk.ChatFileMetadata": {
"type": "object",
"properties": {
@@ -14678,7 +14705,11 @@
},
"kind": {
"description": "Kind classifies the retry reason for consistent client rendering.",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/codersdk.ChatErrorKind"
}
]
},
"provider": {
"description": "Provider identifies the upstream model provider when known.",