typebot.io/packages
Baptiste Arnaud 9d2d7ead8e
🔧 Restore OpenAPI docs generation pipeline (#2553)
## Summary

- Restores OpenAPI docs generation, lost in the oRPC migration: new
`generate-openapi` nx targets regenerate
`apps/docs/openapi/{builder,viewer}.json` offline from the oRPC routers,
reusing the exact options served by the live `/api/openapi.json`
endpoints. Both specs are regenerated in this PR (builder.json was stale
since March).
- Fixes spec generation crashing on the spaces router (Effect Schema had
no JSON Schema converter — this also breaks the live builder
`/api/openapi.json` today) and sanitizes an `AppendValue(s)` component
name that made Mintlify silently render every builder API page empty.
- Keeps the docs from going stale again: pre-commit regenerates affected
specs and auto-stages them, CI fails PRs with stale specs, and a new
check requires lockstep `@typebot.io/js` / `@typebot.io/react` version
bumps whenever embed files change.

## Test plan

- [x] `bunx nx generate-openapi builder viewer` produces valid OpenAPI
3.1 files matching the live endpoints (works without env: isolated-vm
stubbed, dummy DATABASE_URL auto-matched to the generated Prisma client)
- [x] All 34 `openapi:` references in `apps/docs/api-reference/*.mdx`
resolve against the new specs; pages verified rendering in `mintlify
dev` (params, unions, curl samples)
- [x] Embeds version check: fails when js or react files change without
both bumps, passes on the historical 0.10.5 bump commit, ignores
unrelated changes
- [x] Pre-commit pipeline (lint, tests, generation, embeds check) passes
end to end
- [ ] Confirm the "Check OpenAPI docs are up to date" step passes on
this PR

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 20:19:08 +02:00
..
ai 🔒️ Upgrade vulnerable deps (ai v5, nodemailer v8, otel sdk-node 0.217) (#2491) 2026-05-19 16:30:36 +02:00
auth 🐛 Harden email login codes (#2542) 2026-06-27 15:36:28 +02:00
billing 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00
blocks 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00
bot-engine 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00
chat-api 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
chat-session 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
conditions 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
config 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00
credentials 🐛 Fix WhatsApp webhook verification (#2498) 2026-05-21 16:45:32 +02:00
deprecated/legacy 🔒️ Upgrade vulnerable deps (ai v5, nodemailer v8, otel sdk-node 0.217) (#2491) 2026-05-19 16:30:36 +02:00
emails Fix Dependabot vulnerabilities 2026-06-29 08:19:20 +02:00
embeds 🐛 Fix embed video overlay in preview (#2532) 2026-06-18 16:50:13 +02:00
env 🐛 Fix WhatsApp webhook verification (#2498) 2026-05-21 16:45:32 +02:00
events 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
forge Fix Dependabot vulnerabilities 2026-06-29 08:19:20 +02:00
groups 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
lib 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00
logs 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
partykit 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
playwright 🔧 Hash API tokens (#2492) 2026-05-19 18:17:11 +02:00
prisma 🐛 Harden email login codes (#2542) 2026-06-27 15:36:28 +02:00
radar 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
results 🐛 Fix S3 operations without full config (#2533) 2026-06-18 17:30:39 +02:00
rich-text 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
runtime-session-store 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
schemas 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
scripts 🐛 Improve expired data cleanup reliability (#2536) 2026-06-24 18:38:42 +02:00
services/feature-flags 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
settings 👌 Configure WhatsApp webhook forwarding URL (#2529) 2026-06-17 15:56:16 +02:00
shared-core 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
spaces 📝 Document status page and analytics completion criteria (#2480) 2026-05-01 11:10:10 +02:00
telemetry 🔒️ Upgrade vulnerable deps (ai v5, nodemailer v8, otel sdk-node 0.217) (#2491) 2026-05-19 16:30:36 +02:00
templates 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
theme 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
typebot 🐛 Fix cross-workspace credential theft via preview endpoint (#2430) 2026-04-07 16:21:17 +02:00
ui 🔒️ Fix TAC scan header findings (#2549) 2026-06-29 16:16:36 +02:00
user 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
variables 🐛 Fix SSRF bypass via DNS rebinding in HTTP request and script fetch flows (#2461) 2026-04-15 09:28:06 +00:00
whatsapp 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00
workspaces 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00