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”Mount the adapter under /monque.
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:112
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:149
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.
maxBodySize?
Section titled “maxBodySize?”Defined in: management/dist/index.d.mts:107
Maximum request body size in bytes. Defaults to 65,536 bytes.
Inherited from
Section titled “Inherited from”monque
Section titled “monque”Defined in: management/dist/index.d.mts:105
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:158
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
Section titled “Default”{ path: '/openapi.json', serverUrl: req.baseUrl }
parallelCapabilityChecks?
Section titled “parallelCapabilityChecks?”Defined in: management/dist/index.d.mts:114
Opt in only when authorization checks can run independently. Defaults to sequential.
Inherited from
Section titled “Inherited from”readOnly?
Section titled “readOnly?”Defined in: management/dist/index.d.mts:110
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:116
Default payload serializer for returned jobs.
Inherited from
Section titled “Inherited from”serializePayloadByJobName?
Section titled “serializePayloadByJobName?”Defined in: management/dist/index.d.mts:118
Payload serializers keyed by job name, taking precedence over serializePayload.
Inherited from
Section titled “Inherited from”trustedOrigins?
Section titled “trustedOrigins?”Defined in: management/dist/index.d.mts:108