v3.1.0
Minor Changes
-
2674c4f:
getRestrictionsByOperationreturns a typed result instead ofunknown.The v1 endpoint generated as
Promise<unknown>, so its payload reached callers untyped and unvalidated. It now
resolves to aGetRestrictionsByOperationand is validated like every other endpoint's response.The published spec describes this endpoint incorrectly — an open map whose values wrap a restriction in an
operationType/_linksenvelope. No such envelope exists: Confluence answers with the restriction itself under each
operation name it restricts,readandupdate, alongside a sibling_linksfor the response as a whole. The model
describes what the endpoint actually returns, soreadandupdateare typedContentRestrictionand nothing is
left undescribed.Callers that treated the result as
unknownand narrowed it themselves keep working. Code that relied on the absence
of validation may now surface aSchemaMismatchErrorwhere the response does not match the model.
Patch Changes
-
2674c4f:
currentActiveAliasis nullable, as the API returns it.The v2 spec declares the field as a plain string on both the space entity and its collection representation, but
Confluence answers withnullfor any space that has no alias. Strict response validation rejected that, so
getSpacesthrew aSchemaMismatchErroron the first aliasless space in the page, andgetSpaceByIdwould have
done the same. The field is nowstring | null | undefinedonSpaceandSpaceSummary.Existing code is unaffected: the field was already optional, so any narrowing that handled
undefinedhandles
nulltoo.