ManagementExpressRouterOptions
Defined in: management-express/src/types.ts:140
Options for creating an Express router backed by the Monque Management Surface.
This extends the framework-neutral ManagementOptions from @monque/management
with Express-specific request context creation and optional adapter-served OpenAPI JSON.
The adapter does not implement authentication itself. Put host authentication middleware
before the router, then use context and authorize for action-grained management
authorization when needed.
Example
Section titled “Example”Extends
Section titled “Extends”ManagementOptions<TContext>
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
TContext | unknown | Application-specific context exposed to management hooks. |
Properties
Section titled “Properties”authorize?
Section titled “authorize?”Defined in: management/dist/index.d.mts:916
Optional authorization hook invoked before reads and mutations.
Inherited from
Section titled “Inherited from”context?
Section titled “context?”Defined in: management-express/src/types.ts:148
Optional factory that maps Express request state into Management Surface context.
The returned value is available to management authorize, serializePayload, and
serializePayloadByJobName hooks as their context input.
monque
Section titled “monque”Defined in: management/dist/index.d.mts:912
Scheduler instance or facade backing the management endpoints.
Inherited from
Section titled “Inherited from”openApi?
Section titled “openApi?”Defined in: management-express/src/types.ts:157
Adapter-served OpenAPI JSON configuration.
Pass false when the host application serves the generated OpenAPI document itself.
Pass an object to customize the router-relative path or OpenAPI server URL.
Default Value
Section titled “Default Value”{ path: '/openapi.json', serverUrl: req.baseUrl }
readOnly?
Section titled “readOnly?”Defined in: management/dist/index.d.mts:914
When true, all mutation endpoints return 403 even if the scheduler supports them.
Inherited from
Section titled “Inherited from”serializePayload?
Section titled “serializePayload?”Defined in: management/dist/index.d.mts:918
Default payload serializer for returned jobs.
Inherited from
Section titled “Inherited from”serializePayloadByJobName?
Section titled “serializePayloadByJobName?”Defined in: management/dist/index.d.mts:920
Payload serializers keyed by job name, taking precedence over serializePayload.