Commit 8865ded
fix: Generate missing simulate endpoints (#527)
The Metalsmith codegen kept verbatim OpenAPI-parsing ports from the
nextlove generator (marked TEMPORARY) so its output stayed byte-identical.
Now that the output is allowed to change, generate everything from
@seamapi/blueprint and delete the OpenAPI workarounds:
- Delete codegen/lib/openapi/ and endpoint-rules.ts. The blueprint has no
/health routes, and the endpoints that formerly returned a deprecated
action attempt are modeled as void responses, so neither list is needed.
- Generate resources from blueprint.resources, blueprint.actionAttempts,
and blueprint.pagination. SeamEvent and ActionAttempt merge the union of
their per-variant properties so every accessor is preserved.
- Generate clients from blueprint.routes and blueprint.namespaces, using
their isUndocumented flags for filtering and parentPath for wiring child
clients, which now also wires deeply nested namespaces
(AcsEncoders#simulate).
- Fix the parameter sort so an explicit position sorts first, as
originally intended.
Resulting output changes: AcsEncoders#simulate is now reachable from its
parent client, workspaces.update is generated, the unused
phone_registration resource is dropped, SeamEvent accessors are
alphabetized, and the primary id parameter of get methods moves to the
front of the signature.
Claude-Session: https://claude.ai/code/session_01RRu8RHUZqw3SvrGR7NJCki
Co-authored-by: Claude <noreply@anthropic.com>1 parent e6a5824 commit 8865ded
19 files changed
Lines changed: 218 additions & 751 deletions
File tree
- codegen/lib
- layouts
- openapi
- lib/seam/routes
- clients
- resources
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 39 | + | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| |||
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 53 | | |
62 | 54 | | |
63 | | - | |
| 55 | + | |
64 | 56 | | |
65 | 57 | | |
66 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
| 21 | + | |
24 | 22 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
39 | 29 | | |
40 | 30 | | |
41 | 31 | | |
| |||
Lines changed: 0 additions & 138 deletions
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments