Repository navigation
Commit 9a9f90a
chore(openapi): add AI analysis endpoints and scopes (#2054)
Adds the AI analysis endpoints of #2044 to the OpenAPI document and the
clients, so a provisioner can start and read an analysis Task with
generated code.
- `AccessScope` in `Devolutions.Gateway.Utils` and in both clients gains
`gateway.tasks.recording-ai-analysis.start` and
`gateway.tasks.recording-ai-analysis.read`.
- `gateway-api.yaml`, `doc/index.adoc`, the .NET client and the TS
Angular client gain `PUT` and `GET
/jet/tasks/recording-ai-analysis/{task_id}` (in `TasksApi` /
`TasksService`) and their models: the request (`AiAnalysisRequest`,
`AiProvider`), the Task (`AiAnalysisTask`, `TaskState`,
`AiAnalysisParams`), its running, succeeded and failed payloads
(`AiAnalysisPayload`), why a Task failed (`AiAnalysisError`,
`AiAnalysisErrorKind`, `AiAnalysisBadAnswer`,
`AiAnalysisRecoverableError`, `AiAnalysisRecoverableErrorKind`), the
tokens it used (`AiAnalysisUsage`) and the 409 body
(`AiAnalysisConflict`, `AiAnalysisConflictCode`).
- The .NET models print `[redacted]` for a `password` field in
`ToString()`, so logging an `AiAnalysisRequest` doesn't show the API
key. The template is a copy of the openapi-generator 7.9.0
`modelGeneric.mustache` with that one line changed.
The generated files come from `tools/generate-openapi` and
openapi-generator 7.9.0, trimmed to the AI analysis parts: the generator
also bumps the spec version and lists more `pullRecordingFile` content
types in the clients and docs, which master never regenerated.
Issue: DGW-462
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 42960da commit 9a9f90a
66 files changed
Lines changed: 5950 additions & 109 deletions
File tree
- devolutions-gateway/openapi
- doc
- dotnet-client
- .openapi-generator
- docs
- src/Devolutions.Gateway.Client
- Api
- Model
- templates
- ts-angular-client
- .openapi-generator
- api
- model
- utils/dotnet
- Devolutions.Gateway.Utils.Tests
- Devolutions.Gateway.Utils/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
12 | 28 | | |
13 | 29 | | |
14 | 30 | | |
| |||
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | 97 | | |
80 | 98 | | |
| |||
93 | 111 | | |
94 | 112 | | |
95 | 113 | | |
| 114 | + | |
96 | 115 | | |
97 | 116 | | |
98 | 117 | | |
| |||
122 | 141 | | |
123 | 142 | | |
124 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
125 | 160 | | |
126 | 161 | | |
127 | 162 | | |
| |||
178 | 213 | | |
179 | 214 | | |
180 | 215 | | |
| 216 | + | |
181 | 217 | | |
182 | 218 | | |
183 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
190 | 208 | | |
191 | 209 | | |
192 | 210 | | |
| |||
243 | 261 | | |
244 | 262 | | |
245 | 263 | | |
| 264 | + | |
246 | 265 | | |
247 | 266 | | |
248 | 267 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments