feat: self-serve tier — PR 3/12 — orgId Resolution: orgs, audit, onboarding routers
loading diff…
Stack order: Merge after PR 2 — Core Infrastructure.
Applies the multi-tenant orgId guard to all organization, audit, and onboarding tRPC routers (23 files). Each org lookup now uses orgId when available, falling back to fusionauthTenantId for enterprise orgs.
create-organization, get-current-org, get-sso-config + test, list-people, list-people-page, list-pending-scim-users, set-composio-api-key, set-person-role, set-retention, update-current-org, shared, people.test, SCIM routes (create/disable/reconnect/remap)export-csv, shared query buildercomplete-step, get-authed-onboarding-state, save-member-import, upsert-first-teamEvery file applies the same mechanical transformation — the orgId ternary from PR 2's core resolver.
| # | PR | Link |
|---|---|---|
| 1 | Foundation | #458 |
| 2 | Core orgId Resolution | #459 |
| 3 | Routers: orgs, audit, onboarding | this PR |
| 4 | Routers: teams, connections, me | #461 |
| 5 | Routers: apps, auth-configs, misc | #462 |
| 6 | Self-Serve Signup Flow | #463 |
| 7 | Sign-In & Auth Broker | #464 |
| 8 | Trial UI | #465 |
| 9 | Enterprise Tier Gates | #466 |
| 10 | Trial Lifecycle | #467 |
| 11 | Proxy Trial Lock | #468 |
| 12 | Tests & Fixtures | #469 |