v3.2.0
What's Changed
- 🌿 Fern Regeneration -- August 5, 2025 by @fern-api[bot] in #278
- New: Ability to get raw response (including headers) from an API call by appending SDK function call with
.withRawResponse(). Example:
{
"data": { "sites": [] },
"rawResponse": {
"headers": {},
"redirected": false,
"status": 200,
"statusText": "OK",
}
}- New: For POST/PATCH API calls to CMS Items, you can pass in a
skipInvalidFilesboolean flag to skip any potentially problematic file attachments on CMS items and continue processing the request
client.collections.items.createItem(collectionId, {
skipInvalidFiles: true,
// ...
})-
New: You can pass in a
branchIdinto the request for updating Component content/properties on branched pages.- E.g.,
client.components.updateContent(siteId, componentId, { localeId: "my-secondary-locale-id", branchId: "my-branch-id" }) - the
branchIdfor a given page can be retrieved via the List Pages API (client.pages.list()) if a page has a branch
- E.g.,
-
New: Filter by
lastPublishedtimestamps when listing CMS Items. Example:
await wf.collections.items.listItems(collectionId, { lastPublished: {
gte: new Date("2024-01-01T00:00:00Z"),
}});- New: Added
validationsproperty in the response of the Get Collection Details API (client.collections.get())
Fixes
- Constrain request payload in
pages.updatePageSettings()API to only include page fields that can be updated - Various optional type inconsistencies to match OpenAPI specification
- Incorrect field type in
ProductFieldData.categories->category
Maint
- Upgraded Fern generator to v1.7.2
Full Changelog: v3.1.4...v3.2.0