Interface: ApiSpecMessage
Defined in: common/index.ts:52
A structured in-band message — a serialized MediaWiki Message/FatalError
spec ({ message, params, code, type }) nested inside an action result
(e.g. password-policy messages, file-backend errors, AuthManager failures).
Distinct from ApiMessage, which models the errorformat-based envelope.
Properties
code?
optionalcode?:string
Defined in: common/index.ts:60
Machine-readable code (usually mirrors message).
html?
optionalhtml?:string
Defined in: common/index.ts:66
Pre-rendered HTML, when the server supplies it.
message?
optionalmessage?:string
Defined in: common/index.ts:54
i18n message key, e.g. passwordtooshort.
params?
optionalparams?:unknown[]
Defined in: common/index.ts:57
Parameters substituted into the message (may be numbers).
type?
optionaltype?:string
Defined in: common/index.ts:63
Severity, e.g. error. Open union.