Commit c5d667f
feat(frontend): typed openapi-fetch client over the generated schema
Main already generates frontend/src/api/schema.ts from the backend OpenAPI
document (#103) but ships only the types. This adds the thin runtime layer:
an openapi-fetch client typed by those generated paths, so the renderer makes
fully typed requests against the daemon's loopback /api/v1 surface instead of
hand-writing fetch calls.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7698c24 commit c5d667f
3 files changed
Lines changed: 32 additions & 0 deletions
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 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments