intercom-client 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/README.md +24 -28
  2. package/api/resources/admins/client/Client.js +10 -10
  3. package/api/resources/admins/types/Admin.d.ts +11 -2
  4. package/api/resources/articles/client/Client.js +12 -12
  5. package/api/resources/articles/client/requests/CreateArticleRequest.d.ts +9 -1
  6. package/api/resources/articles/client/requests/CreateArticleRequest.js +4 -0
  7. package/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +9 -1
  8. package/api/resources/articles/client/requests/UpdateArticleRequest.js +4 -0
  9. package/api/resources/companies/client/Client.d.ts +2 -2
  10. package/api/resources/companies/client/Client.js +24 -24
  11. package/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +1 -1
  12. package/api/resources/companies/types/Company.d.ts +1 -1
  13. package/api/resources/contacts/client/Client.d.ts +1 -2
  14. package/api/resources/contacts/client/Client.js +31 -32
  15. package/api/resources/contacts/types/Contact.d.ts +3 -3
  16. package/api/resources/conversations/client/Client.d.ts +28 -9
  17. package/api/resources/conversations/client/Client.js +52 -33
  18. package/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +2 -0
  19. package/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +10 -20
  20. package/api/resources/dataAttributes/client/Client.js +6 -6
  21. package/api/resources/dataExport/client/Client.js +8 -8
  22. package/api/resources/events/client/Client.js +6 -6
  23. package/api/resources/helpCenters/client/Client.js +4 -4
  24. package/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
  25. package/api/resources/index.d.ts +0 -2
  26. package/api/resources/index.js +1 -3
  27. package/api/resources/messages/client/Client.d.ts +3 -23
  28. package/api/resources/messages/client/Client.js +5 -25
  29. package/api/resources/news/resources/feeds/client/Client.js +6 -6
  30. package/api/resources/news/resources/items/client/Client.js +10 -10
  31. package/api/resources/notes/client/Client.js +6 -6
  32. package/api/resources/phoneCallRedirects/client/Client.js +2 -2
  33. package/api/resources/segments/client/Client.js +4 -4
  34. package/api/resources/subscriptionTypes/client/Client.js +2 -2
  35. package/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
  36. package/api/resources/tags/client/Client.js +20 -20
  37. package/api/resources/tags/types/Tag.d.ts +1 -1
  38. package/api/resources/teams/client/Client.js +4 -4
  39. package/api/resources/ticketTypes/client/Client.js +8 -8
  40. package/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
  41. package/api/resources/tickets/client/Client.js +10 -10
  42. package/api/resources/visitors/client/Client.js +6 -6
  43. package/api/types/ActionComponent.d.ts +16 -0
  44. package/api/types/ButtonComponent.d.ts +33 -0
  45. package/api/types/ButtonComponent.js +14 -0
  46. package/api/types/CanvasObject.d.ts +20 -0
  47. package/api/types/CheckboxComponent.d.ts +36 -0
  48. package/api/types/CheckboxComponent.js +14 -0
  49. package/api/types/CheckboxOption.d.ts +16 -0
  50. package/api/types/CheckboxOption.js +5 -0
  51. package/api/types/Component.d.ts +43 -0
  52. package/api/types/Component.js +5 -0
  53. package/api/types/ConfigureRequest.d.ts +22 -0
  54. package/api/types/ConfigureRequest.js +5 -0
  55. package/api/types/ConfigureResponse.d.ts +12 -0
  56. package/api/types/ConfigureResponse.js +5 -0
  57. package/api/types/ContactCompanies.d.ts +5 -0
  58. package/api/types/ContactCompany.d.ts +14 -0
  59. package/api/types/ContactCompany.js +5 -0
  60. package/api/types/ContentObject.d.ts +13 -0
  61. package/api/types/ContentObject.js +5 -0
  62. package/api/types/Context.d.ts +34 -0
  63. package/api/types/Context.js +15 -0
  64. package/api/types/ConversationSource.d.ts +19 -1
  65. package/api/types/ConversationSource.js +16 -0
  66. package/api/types/ConversationTeammates.d.ts +2 -2
  67. package/api/types/CurrentCanvas.d.ts +11 -0
  68. package/api/types/CurrentCanvas.js +5 -0
  69. package/api/types/CustomAttributes.d.ts +2 -6
  70. package/api/types/DataEventSummaryItem.d.ts +1 -1
  71. package/api/types/DataTableComponent.d.ts +11 -0
  72. package/api/types/DataTableComponent.js +5 -0
  73. package/api/types/DataTableItem.d.ts +14 -0
  74. package/api/types/DataTableItem.js +5 -0
  75. package/api/types/DividerComponent.d.ts +12 -0
  76. package/api/types/DividerComponent.js +5 -0
  77. package/api/types/DropdownComponent.d.ts +34 -0
  78. package/api/types/DropdownComponent.js +14 -0
  79. package/api/types/DropdownOption.d.ts +16 -0
  80. package/api/types/DropdownOption.js +5 -0
  81. package/api/types/Error_.d.ts +1 -1
  82. package/api/types/Event.d.ts +10 -0
  83. package/api/types/Event.js +5 -0
  84. package/api/types/ImageComponent.d.ts +40 -0
  85. package/api/types/ImageComponent.js +15 -0
  86. package/api/types/InitializeRequest.d.ts +23 -0
  87. package/api/types/InitializeRequest.js +5 -0
  88. package/api/types/InitializeResponse.d.ts +11 -0
  89. package/api/types/InitializeResponse.js +5 -0
  90. package/api/types/InputComponent.d.ts +37 -0
  91. package/api/types/InputComponent.js +14 -0
  92. package/api/types/ListComponent.d.ts +23 -0
  93. package/api/types/ListComponent.js +5 -0
  94. package/api/types/ListItem.d.ts +25 -0
  95. package/api/types/ListItem.js +5 -0
  96. package/api/types/ListItemWithImage.d.ts +12 -0
  97. package/api/types/ListItemWithImage.js +5 -0
  98. package/api/types/ListItemWithoutImage.d.ts +12 -0
  99. package/api/types/ListItemWithoutImage.js +5 -0
  100. package/api/types/LiveCanvasRequest.d.ts +21 -0
  101. package/api/types/LiveCanvasRequest.js +5 -0
  102. package/api/types/LiveCanvasResponse.d.ts +11 -0
  103. package/api/types/LiveCanvasResponse.js +5 -0
  104. package/api/types/MultipleFilterSearchRequest.d.ts +1 -8
  105. package/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
  106. package/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
  107. package/api/types/ResultsResponse.d.ts +10 -0
  108. package/api/types/ResultsResponse.js +5 -0
  109. package/api/types/SheetActionComponent.d.ts +12 -0
  110. package/api/types/SheetActionComponent.js +5 -0
  111. package/api/types/SingleFilterSearchRequest.d.ts +5 -1
  112. package/api/types/SingleSelectComponent.d.ts +39 -0
  113. package/api/types/SingleSelectComponent.js +14 -0
  114. package/api/types/SingleSelectOption.d.ts +16 -0
  115. package/api/types/SingleSelectOption.js +5 -0
  116. package/api/types/SocialProfile.d.ts +1 -1
  117. package/api/types/SpacerComponent.d.ts +25 -0
  118. package/api/types/SpacerComponent.js +16 -0
  119. package/api/types/SubmitActionComponent.d.ts +8 -0
  120. package/api/types/SubmitActionComponent.js +5 -0
  121. package/api/types/SubmitRequest.d.ts +29 -0
  122. package/api/types/SubmitRequest.js +5 -0
  123. package/api/types/SubmitResponse.d.ts +23 -0
  124. package/api/types/SubmitResponse.js +5 -0
  125. package/api/types/TextAreaComponent.d.ts +22 -0
  126. package/api/types/TextAreaComponent.js +5 -0
  127. package/api/types/TextComponent.d.ts +39 -0
  128. package/api/types/TextComponent.js +20 -0
  129. package/api/types/TicketTypeAttribute.d.ts +16 -1
  130. package/api/types/TicketTypeAttribute.js +13 -0
  131. package/api/types/UrlActionComponent.d.ts +10 -0
  132. package/api/types/UrlActionComponent.js +5 -0
  133. package/api/types/Visitor.d.ts +2 -2
  134. package/api/types/index.d.ts +41 -1
  135. package/api/types/index.js +41 -1
  136. package/dist/api/resources/admins/client/Client.js +10 -10
  137. package/dist/api/resources/admins/types/Admin.d.ts +11 -2
  138. package/dist/api/resources/articles/client/Client.js +12 -12
  139. package/dist/api/resources/articles/client/requests/CreateArticleRequest.d.ts +9 -1
  140. package/dist/api/resources/articles/client/requests/CreateArticleRequest.js +4 -0
  141. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +9 -1
  142. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.js +4 -0
  143. package/dist/api/resources/companies/client/Client.d.ts +2 -2
  144. package/dist/api/resources/companies/client/Client.js +24 -24
  145. package/dist/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +1 -1
  146. package/dist/api/resources/companies/types/Company.d.ts +1 -1
  147. package/dist/api/resources/contacts/client/Client.d.ts +1 -2
  148. package/dist/api/resources/contacts/client/Client.js +31 -32
  149. package/dist/api/resources/contacts/types/Contact.d.ts +3 -3
  150. package/dist/api/resources/conversations/client/Client.d.ts +28 -9
  151. package/dist/api/resources/conversations/client/Client.js +52 -33
  152. package/dist/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +2 -0
  153. package/dist/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +10 -20
  154. package/dist/api/resources/dataAttributes/client/Client.js +6 -6
  155. package/dist/api/resources/dataExport/client/Client.js +8 -8
  156. package/dist/api/resources/events/client/Client.js +6 -6
  157. package/dist/api/resources/helpCenters/client/Client.js +4 -4
  158. package/dist/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
  159. package/dist/api/resources/index.d.ts +0 -2
  160. package/dist/api/resources/index.js +1 -3
  161. package/dist/api/resources/messages/client/Client.d.ts +3 -23
  162. package/dist/api/resources/messages/client/Client.js +5 -25
  163. package/dist/api/resources/news/resources/feeds/client/Client.js +6 -6
  164. package/dist/api/resources/news/resources/items/client/Client.js +10 -10
  165. package/dist/api/resources/notes/client/Client.js +6 -6
  166. package/dist/api/resources/phoneCallRedirects/client/Client.js +2 -2
  167. package/dist/api/resources/segments/client/Client.js +4 -4
  168. package/dist/api/resources/subscriptionTypes/client/Client.js +2 -2
  169. package/dist/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
  170. package/dist/api/resources/tags/client/Client.js +20 -20
  171. package/dist/api/resources/tags/types/Tag.d.ts +1 -1
  172. package/dist/api/resources/teams/client/Client.js +4 -4
  173. package/dist/api/resources/ticketTypes/client/Client.js +8 -8
  174. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
  175. package/dist/api/resources/tickets/client/Client.js +10 -10
  176. package/dist/api/resources/visitors/client/Client.js +6 -6
  177. package/dist/api/types/ActionComponent.d.ts +16 -0
  178. package/dist/api/types/ActionComponent.js +5 -0
  179. package/dist/api/types/ButtonComponent.d.ts +33 -0
  180. package/dist/api/types/ButtonComponent.js +14 -0
  181. package/dist/api/types/CanvasObject.d.ts +20 -0
  182. package/dist/api/types/CanvasObject.js +5 -0
  183. package/dist/api/types/CheckboxComponent.d.ts +36 -0
  184. package/dist/api/types/CheckboxComponent.js +14 -0
  185. package/dist/api/types/CheckboxOption.d.ts +16 -0
  186. package/dist/api/types/CheckboxOption.js +5 -0
  187. package/dist/api/types/Component.d.ts +43 -0
  188. package/dist/api/types/Component.js +5 -0
  189. package/dist/api/types/ConfigureRequest.d.ts +22 -0
  190. package/dist/api/types/ConfigureRequest.js +5 -0
  191. package/dist/api/types/ConfigureResponse.d.ts +12 -0
  192. package/dist/api/types/ConfigureResponse.js +5 -0
  193. package/dist/api/types/ContactCompanies.d.ts +5 -0
  194. package/dist/api/types/ContactCompany.d.ts +14 -0
  195. package/dist/api/types/ContactCompany.js +5 -0
  196. package/dist/api/types/ContentObject.d.ts +13 -0
  197. package/dist/api/types/ContentObject.js +5 -0
  198. package/dist/api/types/Context.d.ts +34 -0
  199. package/dist/api/types/Context.js +15 -0
  200. package/dist/api/types/ConversationSource.d.ts +19 -1
  201. package/dist/api/types/ConversationSource.js +16 -0
  202. package/dist/api/types/ConversationTeammates.d.ts +2 -2
  203. package/dist/api/types/CurrentCanvas.d.ts +11 -0
  204. package/dist/api/types/CurrentCanvas.js +5 -0
  205. package/dist/api/types/CustomAttributes.d.ts +2 -6
  206. package/dist/api/types/DataEventSummaryItem.d.ts +1 -1
  207. package/dist/api/types/DataTableComponent.d.ts +11 -0
  208. package/dist/api/types/DataTableComponent.js +5 -0
  209. package/dist/api/types/DataTableItem.d.ts +14 -0
  210. package/dist/api/types/DataTableItem.js +5 -0
  211. package/dist/api/types/DividerComponent.d.ts +12 -0
  212. package/dist/api/types/DividerComponent.js +5 -0
  213. package/dist/api/types/DropdownComponent.d.ts +34 -0
  214. package/dist/api/types/DropdownComponent.js +14 -0
  215. package/dist/api/types/DropdownOption.d.ts +16 -0
  216. package/dist/api/types/DropdownOption.js +5 -0
  217. package/dist/api/types/Error_.d.ts +1 -1
  218. package/dist/api/types/Event.d.ts +10 -0
  219. package/dist/api/types/Event.js +5 -0
  220. package/dist/api/types/ImageComponent.d.ts +40 -0
  221. package/dist/api/types/ImageComponent.js +15 -0
  222. package/dist/api/types/InitializeRequest.d.ts +23 -0
  223. package/dist/api/types/InitializeRequest.js +5 -0
  224. package/dist/api/types/InitializeResponse.d.ts +11 -0
  225. package/dist/api/types/InitializeResponse.js +5 -0
  226. package/dist/api/types/InputComponent.d.ts +37 -0
  227. package/dist/api/types/InputComponent.js +14 -0
  228. package/dist/api/types/ListComponent.d.ts +23 -0
  229. package/dist/api/types/ListComponent.js +5 -0
  230. package/dist/api/types/ListItem.d.ts +25 -0
  231. package/dist/api/types/ListItem.js +5 -0
  232. package/dist/api/types/ListItemWithImage.d.ts +12 -0
  233. package/dist/api/types/ListItemWithImage.js +5 -0
  234. package/dist/api/types/ListItemWithoutImage.d.ts +12 -0
  235. package/dist/api/types/ListItemWithoutImage.js +5 -0
  236. package/dist/api/types/LiveCanvasRequest.d.ts +21 -0
  237. package/dist/api/types/LiveCanvasRequest.js +5 -0
  238. package/dist/api/types/LiveCanvasResponse.d.ts +11 -0
  239. package/dist/api/types/LiveCanvasResponse.js +5 -0
  240. package/dist/api/types/MultipleFilterSearchRequest.d.ts +1 -8
  241. package/dist/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
  242. package/dist/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
  243. package/dist/api/types/ResultsResponse.d.ts +10 -0
  244. package/dist/api/types/ResultsResponse.js +5 -0
  245. package/dist/api/types/SheetActionComponent.d.ts +12 -0
  246. package/dist/api/types/SheetActionComponent.js +5 -0
  247. package/dist/api/types/SingleFilterSearchRequest.d.ts +5 -1
  248. package/dist/api/types/SingleSelectComponent.d.ts +39 -0
  249. package/dist/api/types/SingleSelectComponent.js +14 -0
  250. package/dist/api/types/SingleSelectOption.d.ts +16 -0
  251. package/dist/api/types/SingleSelectOption.js +5 -0
  252. package/dist/api/types/SocialProfile.d.ts +1 -1
  253. package/dist/api/types/SpacerComponent.d.ts +25 -0
  254. package/dist/api/types/SpacerComponent.js +16 -0
  255. package/dist/api/types/SubmitActionComponent.d.ts +8 -0
  256. package/dist/api/types/SubmitActionComponent.js +5 -0
  257. package/dist/api/types/SubmitRequest.d.ts +29 -0
  258. package/dist/api/types/SubmitRequest.js +5 -0
  259. package/dist/api/types/SubmitResponse.d.ts +23 -0
  260. package/dist/api/types/SubmitResponse.js +5 -0
  261. package/dist/api/types/TextAreaComponent.d.ts +22 -0
  262. package/dist/api/types/TextAreaComponent.js +5 -0
  263. package/dist/api/types/TextComponent.d.ts +39 -0
  264. package/dist/api/types/TextComponent.js +20 -0
  265. package/dist/api/types/TicketTypeAttribute.d.ts +16 -1
  266. package/dist/api/types/TicketTypeAttribute.js +13 -0
  267. package/dist/api/types/UrlActionComponent.d.ts +10 -0
  268. package/dist/api/types/UrlActionComponent.js +5 -0
  269. package/dist/api/types/Visitor.d.ts +2 -2
  270. package/dist/api/types/index.d.ts +41 -1
  271. package/dist/api/types/index.js +41 -1
  272. package/dist/version.d.ts +1 -1
  273. package/dist/version.js +1 -1
  274. package/package.json +10 -2
  275. package/reference.md +12 -14
  276. package/version.d.ts +1 -1
  277. package/version.js +1 -1
  278. package/api/resources/customObjectInstances/index.d.ts +0 -1
  279. package/api/resources/customObjectInstances/index.js +0 -17
  280. package/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
  281. package/api/resources/customObjectInstances/types/index.d.ts +0 -1
  282. package/api/resources/customObjectInstances/types/index.js +0 -17
  283. package/dist/api/resources/customObjectInstances/index.d.ts +0 -1
  284. package/dist/api/resources/customObjectInstances/index.js +0 -17
  285. package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
  286. package/dist/api/resources/customObjectInstances/types/index.d.ts +0 -1
  287. package/dist/api/resources/customObjectInstances/types/index.js +0 -17
  288. /package/api/{resources/customObjectInstances/types/CustomObjectInstance.js → types/ActionComponent.js} +0 -0
  289. /package/{dist/api/resources/customObjectInstances/types/CustomObjectInstance.js → api/types/CanvasObject.js} +0 -0
@@ -115,11 +115,11 @@ class Companies {
115
115
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
116
116
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies"),
117
117
  method: "GET",
118
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
119
  contentType: "application/json",
120
120
  queryParameters: _queryParams,
121
121
  requestType: "json",
122
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
122
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
123
123
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
124
124
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
125
125
  });
@@ -161,7 +161,7 @@ class Companies {
161
161
  *
162
162
  * Companies are looked up via `company_id` in a `POST` request, if not found via `company_id`, the new company will be created, if found, that company will be updated.
163
163
  *
164
- * {% admonition type="attention" name="Using `company_id`" %}
164
+ * {% admonition type="warning" name="Using `company_id`" %}
165
165
  * You can set a unique `company_id` value when creating a company. However, it is not possible to update `company_id`. Be sure to set a unique value once upon creation of the company.
166
166
  * {% /admonition %}
167
167
  *
@@ -187,11 +187,11 @@ class Companies {
187
187
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
188
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies"),
189
189
  method: "POST",
190
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
190
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
191
  contentType: "application/json",
192
192
  requestType: "json",
193
193
  body: request,
194
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
194
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
195
195
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
196
196
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
197
197
  });
@@ -247,10 +247,10 @@ class Companies {
247
247
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
248
248
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}`),
249
249
  method: "GET",
250
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
251
251
  contentType: "application/json",
252
252
  requestType: "json",
253
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
253
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
254
254
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
255
255
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
256
256
  });
@@ -288,7 +288,7 @@ class Companies {
288
288
  /**
289
289
  * You can update a single company using the Intercom provisioned `id`.
290
290
  *
291
- * {% admonition type="attention" name="Using `company_id`" %}
291
+ * {% admonition type="warning" name="Using `company_id`" %}
292
292
  * When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company.
293
293
  * {% /admonition %}
294
294
  *
@@ -310,10 +310,10 @@ class Companies {
310
310
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
311
311
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}`),
312
312
  method: "PUT",
313
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
316
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
317
317
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
318
318
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
319
319
  });
@@ -369,10 +369,10 @@ class Companies {
369
369
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
370
370
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}`),
371
371
  method: "DELETE",
372
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
372
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
373
373
  contentType: "application/json",
374
374
  requestType: "json",
375
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
375
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
376
376
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
377
377
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
378
378
  });
@@ -435,11 +435,11 @@ class Companies {
435
435
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
436
436
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}/contacts`),
437
437
  method: "GET",
438
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
438
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
439
439
  contentType: "application/json",
440
440
  queryParameters: _queryParams,
441
441
  requestType: "json",
442
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
442
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
443
443
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
444
444
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
445
445
  });
@@ -495,10 +495,10 @@ class Companies {
495
495
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
496
496
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}/segments`),
497
497
  method: "GET",
498
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
498
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
499
499
  contentType: "application/json",
500
500
  requestType: "json",
501
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
501
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
502
502
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
503
503
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
504
504
  });
@@ -572,11 +572,11 @@ class Companies {
572
572
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
573
573
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies/list"),
574
574
  method: "POST",
575
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
575
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
576
576
  contentType: "application/json",
577
577
  queryParameters: _queryParams,
578
578
  requestType: "json",
579
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
579
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
580
580
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
581
581
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
582
582
  });
@@ -657,11 +657,11 @@ class Companies {
657
657
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
658
658
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies/scroll"),
659
659
  method: "GET",
660
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
660
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
661
661
  contentType: "application/json",
662
662
  queryParameters: _queryParams,
663
663
  requestType: "json",
664
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
664
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
665
665
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
666
666
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
667
667
  });
@@ -738,11 +738,11 @@ class Companies {
738
738
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
739
739
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/companies`),
740
740
  method: "POST",
741
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
741
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
742
742
  contentType: "application/json",
743
743
  requestType: "json",
744
744
  body: _body,
745
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
745
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
746
746
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
747
747
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
748
748
  });
@@ -801,10 +801,10 @@ class Companies {
801
801
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
802
802
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/companies/${encodeURIComponent(companyId)}`),
803
803
  method: "DELETE",
804
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
804
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
805
805
  contentType: "application/json",
806
806
  requestType: "json",
807
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
807
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
808
808
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
809
809
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
810
810
  });
@@ -26,7 +26,7 @@ export interface CreateOrUpdateCompanyRequest {
26
26
  /** The industry that this company operates in. */
27
27
  industry?: string;
28
28
  /** A hash of key/value pairs containing any other data about the company you want Intercom to store. */
29
- custom_attributes?: Record<string, string>;
29
+ custom_attributes?: Record<string, unknown>;
30
30
  /** The time the company was created by you. */
31
31
  remote_created_at?: number;
32
32
  /** How much revenue the company generates for your business. Note that this will truncate floats. i.e. it only allow for whole integers, 155.98 will be truncated to 155. Note that this has an upper limit of 2**31-1 or 2147483647.. */
@@ -38,7 +38,7 @@ export interface Company {
38
38
  /** The number of users in the company. */
39
39
  user_count: number;
40
40
  /** The custom attributes you have set on the company. */
41
- custom_attributes?: Record<string, string>;
41
+ custom_attributes?: Record<string, unknown>;
42
42
  /** The list of tags associated with the company */
43
43
  tags?: Company.Tags;
44
44
  /** The list of segments associated with the company */
@@ -247,7 +247,6 @@ export declare class Contacts {
247
247
  * | email | String |
248
248
  * | email_domain | String |
249
249
  * | phone | String |
250
- * | formatted_phone | String |
251
250
  * | external_id | String |
252
251
  * | created_at | Date (UNIX Timestamp) |
253
252
  * | signed_up_at | Date (UNIX Timestamp) |
@@ -285,7 +284,7 @@ export declare class Contacts {
285
284
  *
286
285
  * ### Accepted Operators
287
286
  *
288
- * {% admonition type="attention" name="Searching based on `created_at`" %}
287
+ * {% admonition type="warning" name="Searching based on `created_at`" %}
289
288
  * You cannot use the `<=` or `>=` operators to search by `created_at`.
290
289
  * {% /admonition %}
291
290
  *
@@ -91,11 +91,11 @@ class Contacts {
91
91
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
92
92
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/companies`),
93
93
  method: "GET",
94
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
95
  contentType: "application/json",
96
96
  queryParameters: _queryParams,
97
97
  requestType: "json",
98
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
98
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
99
99
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
100
100
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
101
  });
@@ -162,10 +162,10 @@ class Contacts {
162
162
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
163
163
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/segments`),
164
164
  method: "GET",
165
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
166
  contentType: "application/json",
167
167
  requestType: "json",
168
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
168
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
169
169
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
170
170
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
171
171
  });
@@ -227,10 +227,10 @@ class Contacts {
227
227
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
228
228
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/subscriptions`),
229
229
  method: "GET",
230
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
233
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
234
234
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
235
235
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
236
236
  });
@@ -301,11 +301,11 @@ class Contacts {
301
301
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
302
302
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/subscriptions`),
303
303
  method: "POST",
304
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
304
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
305
305
  contentType: "application/json",
306
306
  requestType: "json",
307
307
  body: _body,
308
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
308
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
309
309
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
310
310
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
311
311
  });
@@ -362,10 +362,10 @@ class Contacts {
362
362
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
363
363
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/subscriptions/${encodeURIComponent(subscriptionId)}`),
364
364
  method: "DELETE",
365
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
365
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
366
366
  contentType: "application/json",
367
367
  requestType: "json",
368
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
368
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
369
369
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
370
370
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
371
371
  });
@@ -421,10 +421,10 @@ class Contacts {
421
421
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
422
422
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/tags`),
423
423
  method: "GET",
424
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
424
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
425
425
  contentType: "application/json",
426
426
  requestType: "json",
427
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
427
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
428
428
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
429
429
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
430
430
  });
@@ -479,10 +479,10 @@ class Contacts {
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}`),
481
481
  method: "GET",
482
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
482
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
485
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
486
486
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
487
487
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
488
488
  });
@@ -537,11 +537,11 @@ class Contacts {
537
537
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
538
538
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}`),
539
539
  method: "PUT",
540
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
540
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
541
541
  contentType: "application/json",
542
542
  requestType: "json",
543
543
  body: _body,
544
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
544
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
545
545
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
546
546
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
547
547
  });
@@ -594,10 +594,10 @@ class Contacts {
594
594
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
595
595
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}`),
596
596
  method: "DELETE",
597
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
597
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
598
598
  contentType: "application/json",
599
599
  requestType: "json",
600
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
600
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
601
601
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
602
602
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
603
603
  });
@@ -650,11 +650,11 @@ class Contacts {
650
650
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
651
651
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "contacts/merge"),
652
652
  method: "POST",
653
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
653
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
654
654
  contentType: "application/json",
655
655
  requestType: "json",
656
656
  body: request,
657
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
657
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
658
658
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
659
659
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
660
660
  });
@@ -732,7 +732,6 @@ class Contacts {
732
732
  * | email | String |
733
733
  * | email_domain | String |
734
734
  * | phone | String |
735
- * | formatted_phone | String |
736
735
  * | external_id | String |
737
736
  * | created_at | Date (UNIX Timestamp) |
738
737
  * | signed_up_at | Date (UNIX Timestamp) |
@@ -770,7 +769,7 @@ class Contacts {
770
769
  *
771
770
  * ### Accepted Operators
772
771
  *
773
- * {% admonition type="attention" name="Searching based on `created_at`" %}
772
+ * {% admonition type="warning" name="Searching based on `created_at`" %}
774
773
  * You cannot use the `<=` or `>=` operators to search by `created_at`.
775
774
  * {% /admonition %}
776
775
  *
@@ -816,11 +815,11 @@ class Contacts {
816
815
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
817
816
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "contacts/search"),
818
817
  method: "POST",
819
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
818
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
820
819
  contentType: "application/json",
821
820
  requestType: "json",
822
821
  body: request,
823
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
822
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
824
823
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
825
824
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
826
825
  });
@@ -896,11 +895,11 @@ class Contacts {
896
895
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
897
896
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "contacts"),
898
897
  method: "GET",
899
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
898
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
900
899
  contentType: "application/json",
901
900
  queryParameters: _queryParams,
902
901
  requestType: "json",
903
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
902
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
904
903
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
905
904
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
906
905
  });
@@ -962,11 +961,11 @@ class Contacts {
962
961
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
963
962
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "contacts"),
964
963
  method: "POST",
965
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
964
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
966
965
  contentType: "application/json",
967
966
  requestType: "json",
968
967
  body: request,
969
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
968
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
970
969
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
971
970
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
972
971
  });
@@ -1017,10 +1016,10 @@ class Contacts {
1017
1016
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1018
1017
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/archive`),
1019
1018
  method: "POST",
1020
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1019
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1021
1020
  contentType: "application/json",
1022
1021
  requestType: "json",
1023
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1022
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
1024
1023
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1025
1024
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1026
1025
  });
@@ -1066,10 +1065,10 @@ class Contacts {
1066
1065
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1067
1066
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/unarchive`),
1068
1067
  method: "POST",
1069
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1068
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.1.0", "User-Agent": "intercom-client/6.1.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1070
1069
  contentType: "application/json",
1071
1070
  requestType: "json",
1072
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1071
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
1073
1072
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1074
1073
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1075
1074
  });
@@ -7,7 +7,7 @@ import * as Intercom from "../../../index";
7
7
  */
8
8
  export interface Contact {
9
9
  /** The type of object. */
10
- type?: string;
10
+ type?: "contact";
11
11
  /** The unique identifier for the contact which is given by Intercom. */
12
12
  id: string;
13
13
  /** The unique identifier for the contact which is provided by the Client. */
@@ -17,7 +17,7 @@ export interface Contact {
17
17
  /** The role of the contact. */
18
18
  role: string;
19
19
  /** The contact's email. */
20
- email: string;
20
+ email?: string;
21
21
  /** The contact's email domain. */
22
22
  email_domain?: string;
23
23
  /** The contacts phone. */
@@ -96,7 +96,7 @@ export interface Contact {
96
96
  export declare namespace Contact {
97
97
  interface Avatar {
98
98
  /** The type of object */
99
- type?: string;
99
+ type?: "avatar";
100
100
  /** An image URL containing the avatar of a contact. */
101
101
  image_url?: string;
102
102
  }
@@ -335,11 +335,28 @@ export declare class Conversations {
335
335
  * await client.conversations.manage({
336
336
  * conversation_id: "123",
337
337
  * body: {
338
- * message_type: "assignment",
338
+ * message_type: "close",
339
339
  * type: "admin",
340
- * admin_id: "12345",
341
- * assignee_id: "4324241",
342
- * body: "Goodbye :)"
340
+ * admin_id: "12345"
341
+ * }
342
+ * })
343
+ *
344
+ * @example
345
+ * await client.conversations.manage({
346
+ * conversation_id: "123",
347
+ * body: {
348
+ * message_type: "snoozed",
349
+ * admin_id: "5017691",
350
+ * snoozed_until: 1673609604
351
+ * }
352
+ * })
353
+ *
354
+ * @example
355
+ * await client.conversations.manage({
356
+ * conversation_id: "123",
357
+ * body: {
358
+ * message_type: "open",
359
+ * admin_id: "5017690"
343
360
  * }
344
361
  * })
345
362
  *
@@ -350,15 +367,17 @@ export declare class Conversations {
350
367
  * message_type: "assignment",
351
368
  * type: "admin",
352
369
  * admin_id: "12345",
353
- * assignee_id: "4324241",
354
- * body: "Let me pass you over to one of my colleagues."
370
+ * assignee_id: "4324241"
355
371
  * }
356
372
  * })
357
373
  */
358
374
  manage(request: Intercom.ManageConversationPartsRequest, requestOptions?: Conversations.RequestOptions): Promise<Intercom.Conversation>;
359
375
  /**
376
+ * {% admonition type="danger" name="Deprecation of Run Assignment Rules" %}
377
+ * Run assignment rules is now deprecated in version 2.12 and future versions and will be permanently removed on December 31, 2026. After this date, any requests made to this endpoint will fail.
378
+ * {% /admonition %}
360
379
  * You can let a conversation be automatically assigned following assignment rules.
361
- * {% admonition type="attention" name="When using workflows" %}
380
+ * {% admonition type="warning" name="When using workflows" %}
362
381
  * It is not possible to use this endpoint with Workflows.
363
382
  * {% /admonition %}
364
383
  *
@@ -378,7 +397,7 @@ export declare class Conversations {
378
397
  /**
379
398
  * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
380
399
  *
381
- * {% admonition type="attention" name="Contacts without an email" %}
400
+ * {% admonition type="warning" name="Contacts without an email" %}
382
401
  * If you add a contact via the email parameter and there is no user/lead found on that workspace with he given email, then we will create a new contact with `role` set to `lead`.
383
402
  * {% /admonition %}
384
403
  *
@@ -412,7 +431,7 @@ export declare class Conversations {
412
431
  /**
413
432
  * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
414
433
  *
415
- * {% admonition type="attention" name="Contacts without an email" %}
434
+ * {% admonition type="warning" name="Contacts without an email" %}
416
435
  * If you add a contact via the email parameter and there is no user/lead found on that workspace with he given email, then we will create a new contact with `role` set to `lead`.
417
436
  * {% /admonition %}
418
437
  *