entitlementsElysia
function entitlementsElysia<C>(options): EntitlementsElysiaPlugin;Defined in: src/adapters/elysia.ts:181
Typed Elysia plugin exposing the whole HTTP API so the Eden client can
call it with full path / method / param / body typing. Every handler
delegates to the shared fetch pipeline; a catch-all serves the bundled UI.
The engine is decorated onto the context as entitlements, so the host’s
own handlers can meter in-process: ({ entitlements }) => entitlements.consume(…).
Elysia 1.x only — for Elysia 2 import from @xtandard/entitlements/elysia2.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
C extends AnyCatalog |
AnyCatalog |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
EntitlementsElysiaOptions<C> |