Repository navigation
Commit 46b32db
docs(openapi): match the spec to today's admin, email, media and health changes
Every zValidator outside link-metadata now passes houseEnvelopeHook. So the ZodValidationError schema and response are gone. Each 400 now points to ValidationError or ErrorEnvelope, and ValidationError names the hook's fields.
Admin routes:
- Ghost delete validates a uuid path. It reads the account again before the delete, and it answers 409 with one of three refusal reasons.
- Toggle-admin refuses your own id and the last admin. A revoke is one locked admin_revoke_admin call.
- Test-send lists its real 400, 429 and 503 answers.
- The DLQ route returns masked summaries, never the job data.
- The spec now lists the mounted digest-grouping GET and PUT routes and the MCP usage route. The MCP usage 500 can be either error shape.
Documents: PUT {docRef} uses documentIdField and answers 400 for a bad id. A duplicate skips media under a document in Trash, and that media does not count toward the cap.
Email: with Redis, the Resend webhook records each svix-id once for 24 hours. An unsubscribe form post with a token always gets an HTML page.
Health: /health and the three dependency probes cache each result for 5 seconds.
Refs #405
Refs #408
Refs #412
Refs #418
Refs #421
Refs #422
Refs #426
Refs #445
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 655ca8a commit 46b32db
7 files changed
Lines changed: 125 additions & 53 deletions
File tree
- apps/hocuspocus.server/src/modules/openapi/domain
- paths
Lines changed: 1 addition & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 63 | | |
83 | 64 | | |
84 | 65 | | |
| |||
271 | 252 | | |
272 | 253 | | |
273 | 254 | | |
274 | | - | |
275 | 255 | | |
276 | 256 | | |
277 | 257 | | |
| |||
286 | 266 | | |
287 | 267 | | |
288 | 268 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 269 | + | |
294 | 270 | | |
295 | 271 | | |
296 | 272 | | |
| |||
Lines changed: 98 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
23 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| 44 | + | |
| 45 | + | |
35 | 46 | | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
67 | 80 | | |
68 | 81 | | |
69 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
70 | 125 | | |
71 | 126 | | |
72 | 127 | | |
| |||
138 | 193 | | |
139 | 194 | | |
140 | 195 | | |
| 196 | + | |
| 197 | + | |
141 | 198 | | |
142 | 199 | | |
143 | 200 | | |
| |||
400 | 457 | | |
401 | 458 | | |
402 | 459 | | |
403 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
404 | 463 | | |
405 | 464 | | |
406 | 465 | | |
| |||
418 | 477 | | |
419 | 478 | | |
420 | 479 | | |
421 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
422 | 501 | | |
423 | 502 | | |
424 | 503 | | |
| |||
450 | 529 | | |
451 | 530 | | |
452 | 531 | | |
453 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
454 | 542 | | |
455 | 543 | | |
456 | 544 | | |
| |||
481 | 569 | | |
482 | 570 | | |
483 | 571 | | |
| 572 | + | |
484 | 573 | | |
485 | 574 | | |
486 | | - | |
| 575 | + | |
487 | 576 | | |
488 | 577 | | |
489 | 578 | | |
| |||
507 | 596 | | |
508 | 597 | | |
509 | 598 | | |
510 | | - | |
| 599 | + | |
511 | 600 | | |
512 | 601 | | |
513 | 602 | | |
514 | 603 | | |
515 | | - | |
| 604 | + | |
| 605 | + | |
516 | 606 | | |
517 | 607 | | |
518 | 608 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
100 | | - | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
132 | | - | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
164 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
168 | 177 | | |
169 | 178 | | |
170 | | - | |
| 179 | + | |
171 | 180 | | |
172 | 181 | | |
173 | 182 | | |
| |||
219 | 228 | | |
220 | 229 | | |
221 | 230 | | |
222 | | - | |
| 231 | + | |
223 | 232 | | |
224 | 233 | | |
225 | 234 | | |
| |||
239 | 248 | | |
240 | 249 | | |
241 | 250 | | |
242 | | - | |
| 251 | + | |
243 | 252 | | |
244 | 253 | | |
245 | | - | |
| 254 | + | |
246 | 255 | | |
247 | 256 | | |
248 | 257 | | |
| |||
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
285 | | - | |
| 294 | + | |
286 | 295 | | |
287 | 296 | | |
288 | 297 | | |
| |||
303 | 312 | | |
304 | 313 | | |
305 | 314 | | |
306 | | - | |
| 315 | + | |
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
| 104 | + | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
292 | | - | |
| 291 | + | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments