( rsLive: Layer.Layer<DbService | UserStoreService | MemberDirectory | WorkOsMirror>, )
| 83 | // gates on billing, so `AutumnService.Default` is provided here, not on the |
| 84 | // neutral boot core. |
| 85 | export const makeOrgApiLive = ( |
| 86 | rsLive: Layer.Layer<DbService | UserStoreService | MemberDirectory | WorkOsMirror>, |
| 87 | ) => |
| 88 | HttpApiBuilder.layer(OrgHttpApi).pipe( |
| 89 | Layer.provide(OrgHandlers), |
| 90 | Layer.provide(orgAuthMiddleware(rsLive)), |
| 91 | Layer.provideMerge(AutumnService.Default), |
| 92 | ); |
| 93 | |
| 94 | // Default export uses the production per-request layer. Existing callers that |
| 95 | // import `NonProtectedApiLive` continue to work; the `make*` factory exists for |
no test coverage detected