Skip to content

v7.1.0

Latest

Choose a tag to compare

@anubhav-intercom anubhav-intercom released this 03 Nov 10:06
Immutable release. Only release title and notes can be modified.
73d8c53

Regenerated on TypeScript generator 3.107.1 from the same API spec as 7.0.3 (#533). Values placed in request paths are now encoded so they always stay within one path segment.

Changes

  • Query parameters set to null are now left out of the request instead of being sent as key=, the same as undefined.
  • The default 20s timeout now also covers reading the response body. Large responses on slow connections can time out where they didn't before; raise timeoutInSeconds if needed.
  • IntercomTimeoutError now extends IntercomError, so instanceof IntercomError also catches timeouts.
  • Custom fetchers receive queryString alongside queryParameters. queryParameters values are strings (per_page: "5").

Type-level changes

  • Optional response properties are typed prop?: T | undefined. Projects using exactOptionalPropertyTypes may see new errors when assigning SDK responses to narrower types.
  • Client option types are now type aliases instead of interface, so declaration merging on them no longer works.
  • Fetcher.Args.headers is widened to Record<string, unknown>.

unstable namespace

  • ReplyConversationRequest is now ReplyConversationBody, and UpdateDataAttributeRequest is now UpdateDataAttributeBody.
  • request is now required on contacts.createContact, dataEvents.createDataEvent, visitors.updateVisitor and messages.createMessage, and user / visitor are required on ConvertVisitorRequest.