intercom-client 6.0.0 → 6.1.1

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 (305) hide show
  1. package/README.md +26 -30
  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 +4 -11
  16. package/api/resources/conversations/client/Client.d.ts +28 -14
  17. package/api/resources/conversations/client/Client.js +52 -38
  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.d.ts +0 -2
  23. package/api/resources/events/client/Client.js +6 -8
  24. package/api/resources/helpCenters/client/Client.js +4 -4
  25. package/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
  26. package/api/resources/index.d.ts +0 -2
  27. package/api/resources/index.js +1 -3
  28. package/api/resources/messages/client/Client.d.ts +3 -23
  29. package/api/resources/messages/client/Client.js +5 -25
  30. package/api/resources/news/resources/feeds/client/Client.js +6 -6
  31. package/api/resources/news/resources/items/client/Client.js +10 -10
  32. package/api/resources/notes/client/Client.js +6 -6
  33. package/api/resources/phoneCallRedirects/client/Client.js +2 -2
  34. package/api/resources/segments/client/Client.js +4 -4
  35. package/api/resources/subscriptionTypes/client/Client.js +2 -2
  36. package/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
  37. package/api/resources/tags/client/Client.d.ts +0 -1
  38. package/api/resources/tags/client/Client.js +20 -21
  39. package/api/resources/tags/types/Tag.d.ts +1 -1
  40. package/api/resources/teams/client/Client.js +4 -4
  41. package/api/resources/ticketTypes/client/Client.js +8 -8
  42. package/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
  43. package/api/resources/tickets/client/Client.js +10 -10
  44. package/api/resources/visitors/client/Client.js +6 -6
  45. package/api/types/ActionComponent.d.ts +16 -0
  46. package/api/types/ArticleList.d.ts +1 -1
  47. package/api/types/ButtonComponent.d.ts +33 -0
  48. package/api/types/ButtonComponent.js +14 -0
  49. package/api/types/CanvasObject.d.ts +20 -0
  50. package/api/types/CheckboxComponent.d.ts +36 -0
  51. package/api/types/CheckboxComponent.js +14 -0
  52. package/api/types/CheckboxOption.d.ts +16 -0
  53. package/api/types/CheckboxOption.js +5 -0
  54. package/api/types/CollectionList.d.ts +1 -1
  55. package/api/types/CompanyList.d.ts +1 -1
  56. package/api/types/Component.d.ts +43 -0
  57. package/api/types/Component.js +5 -0
  58. package/api/types/ConfigureRequest.d.ts +22 -0
  59. package/api/types/ConfigureRequest.js +5 -0
  60. package/api/types/ConfigureResponse.d.ts +12 -0
  61. package/api/types/ConfigureResponse.js +5 -0
  62. package/api/types/ContactCompanies.d.ts +5 -0
  63. package/api/types/ContactCompany.d.ts +14 -0
  64. package/api/types/ContactCompany.js +5 -0
  65. package/api/types/ContentObject.d.ts +13 -0
  66. package/api/types/ContentObject.js +5 -0
  67. package/api/types/Context.d.ts +34 -0
  68. package/api/types/Context.js +15 -0
  69. package/api/types/ConversationSource.d.ts +19 -1
  70. package/api/types/ConversationSource.js +16 -0
  71. package/api/types/ConversationTeammates.d.ts +2 -2
  72. package/api/types/CurrentCanvas.d.ts +11 -0
  73. package/api/types/CurrentCanvas.js +5 -0
  74. package/api/types/CustomAttributes.d.ts +2 -6
  75. package/api/types/DataEventSummaryItem.d.ts +1 -1
  76. package/api/types/DataTableComponent.d.ts +11 -0
  77. package/api/types/DataTableComponent.js +5 -0
  78. package/api/types/DataTableItem.d.ts +14 -0
  79. package/api/types/DataTableItem.js +5 -0
  80. package/api/types/DividerComponent.d.ts +12 -0
  81. package/api/types/DividerComponent.js +5 -0
  82. package/api/types/DropdownComponent.d.ts +34 -0
  83. package/api/types/DropdownComponent.js +14 -0
  84. package/api/types/DropdownOption.d.ts +16 -0
  85. package/api/types/DropdownOption.js +5 -0
  86. package/api/types/Error_.d.ts +1 -1
  87. package/api/types/Event.d.ts +10 -0
  88. package/api/types/Event.js +5 -0
  89. package/api/types/ImageComponent.d.ts +40 -0
  90. package/api/types/ImageComponent.js +15 -0
  91. package/api/types/InitializeRequest.d.ts +23 -0
  92. package/api/types/InitializeRequest.js +5 -0
  93. package/api/types/InitializeResponse.d.ts +11 -0
  94. package/api/types/InitializeResponse.js +5 -0
  95. package/api/types/InputComponent.d.ts +37 -0
  96. package/api/types/InputComponent.js +14 -0
  97. package/api/types/ListComponent.d.ts +23 -0
  98. package/api/types/ListComponent.js +5 -0
  99. package/api/types/ListItem.d.ts +25 -0
  100. package/api/types/ListItem.js +5 -0
  101. package/api/types/ListItemWithImage.d.ts +12 -0
  102. package/api/types/ListItemWithImage.js +5 -0
  103. package/api/types/ListItemWithoutImage.d.ts +12 -0
  104. package/api/types/ListItemWithoutImage.js +5 -0
  105. package/api/types/LiveCanvasRequest.d.ts +21 -0
  106. package/api/types/LiveCanvasRequest.js +5 -0
  107. package/api/types/LiveCanvasResponse.d.ts +11 -0
  108. package/api/types/LiveCanvasResponse.js +5 -0
  109. package/api/types/MultipleFilterSearchRequest.d.ts +1 -8
  110. package/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
  111. package/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
  112. package/api/types/NoteList.d.ts +1 -1
  113. package/api/types/OffsetPages.d.ts +14 -0
  114. package/api/types/OffsetPages.js +5 -0
  115. package/api/types/ResultsResponse.d.ts +10 -0
  116. package/api/types/ResultsResponse.js +5 -0
  117. package/api/types/SheetActionComponent.d.ts +12 -0
  118. package/api/types/SheetActionComponent.js +5 -0
  119. package/api/types/SingleFilterSearchRequest.d.ts +5 -1
  120. package/api/types/SingleSelectComponent.d.ts +39 -0
  121. package/api/types/SingleSelectComponent.js +14 -0
  122. package/api/types/SingleSelectOption.d.ts +16 -0
  123. package/api/types/SingleSelectOption.js +5 -0
  124. package/api/types/SocialProfile.d.ts +1 -1
  125. package/api/types/SpacerComponent.d.ts +25 -0
  126. package/api/types/SpacerComponent.js +16 -0
  127. package/api/types/SubmitActionComponent.d.ts +8 -0
  128. package/api/types/SubmitActionComponent.js +5 -0
  129. package/api/types/SubmitRequest.d.ts +29 -0
  130. package/api/types/SubmitRequest.js +5 -0
  131. package/api/types/SubmitResponse.d.ts +23 -0
  132. package/api/types/SubmitResponse.js +5 -0
  133. package/api/types/TextAreaComponent.d.ts +22 -0
  134. package/api/types/TextAreaComponent.js +5 -0
  135. package/api/types/TextComponent.d.ts +39 -0
  136. package/api/types/TextComponent.js +20 -0
  137. package/api/types/TicketTypeAttribute.d.ts +16 -1
  138. package/api/types/TicketTypeAttribute.js +13 -0
  139. package/api/types/UrlActionComponent.d.ts +10 -0
  140. package/api/types/UrlActionComponent.js +5 -0
  141. package/api/types/Visitor.d.ts +2 -2
  142. package/api/types/index.d.ts +42 -1
  143. package/api/types/index.js +42 -1
  144. package/dist/api/resources/admins/client/Client.js +10 -10
  145. package/dist/api/resources/admins/types/Admin.d.ts +11 -2
  146. package/dist/api/resources/articles/client/Client.js +12 -12
  147. package/dist/api/resources/articles/client/requests/CreateArticleRequest.d.ts +9 -1
  148. package/dist/api/resources/articles/client/requests/CreateArticleRequest.js +4 -0
  149. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +9 -1
  150. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.js +4 -0
  151. package/dist/api/resources/companies/client/Client.d.ts +2 -2
  152. package/dist/api/resources/companies/client/Client.js +24 -24
  153. package/dist/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +1 -1
  154. package/dist/api/resources/companies/types/Company.d.ts +1 -1
  155. package/dist/api/resources/contacts/client/Client.d.ts +1 -2
  156. package/dist/api/resources/contacts/client/Client.js +31 -32
  157. package/dist/api/resources/contacts/types/Contact.d.ts +4 -11
  158. package/dist/api/resources/conversations/client/Client.d.ts +28 -14
  159. package/dist/api/resources/conversations/client/Client.js +52 -38
  160. package/dist/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +2 -0
  161. package/dist/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +10 -20
  162. package/dist/api/resources/dataAttributes/client/Client.js +6 -6
  163. package/dist/api/resources/dataExport/client/Client.js +8 -8
  164. package/dist/api/resources/events/client/Client.d.ts +0 -2
  165. package/dist/api/resources/events/client/Client.js +6 -8
  166. package/dist/api/resources/helpCenters/client/Client.js +4 -4
  167. package/dist/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
  168. package/dist/api/resources/index.d.ts +0 -2
  169. package/dist/api/resources/index.js +1 -3
  170. package/dist/api/resources/messages/client/Client.d.ts +3 -23
  171. package/dist/api/resources/messages/client/Client.js +5 -25
  172. package/dist/api/resources/news/resources/feeds/client/Client.js +6 -6
  173. package/dist/api/resources/news/resources/items/client/Client.js +10 -10
  174. package/dist/api/resources/notes/client/Client.js +6 -6
  175. package/dist/api/resources/phoneCallRedirects/client/Client.js +2 -2
  176. package/dist/api/resources/segments/client/Client.js +4 -4
  177. package/dist/api/resources/subscriptionTypes/client/Client.js +2 -2
  178. package/dist/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
  179. package/dist/api/resources/tags/client/Client.d.ts +0 -1
  180. package/dist/api/resources/tags/client/Client.js +20 -21
  181. package/dist/api/resources/tags/types/Tag.d.ts +1 -1
  182. package/dist/api/resources/teams/client/Client.js +4 -4
  183. package/dist/api/resources/ticketTypes/client/Client.js +8 -8
  184. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
  185. package/dist/api/resources/tickets/client/Client.js +10 -10
  186. package/dist/api/resources/visitors/client/Client.js +6 -6
  187. package/dist/api/types/ActionComponent.d.ts +16 -0
  188. package/dist/api/types/ActionComponent.js +5 -0
  189. package/dist/api/types/ArticleList.d.ts +1 -1
  190. package/dist/api/types/ButtonComponent.d.ts +33 -0
  191. package/dist/api/types/ButtonComponent.js +14 -0
  192. package/dist/api/types/CanvasObject.d.ts +20 -0
  193. package/dist/api/types/CanvasObject.js +5 -0
  194. package/dist/api/types/CheckboxComponent.d.ts +36 -0
  195. package/dist/api/types/CheckboxComponent.js +14 -0
  196. package/dist/api/types/CheckboxOption.d.ts +16 -0
  197. package/dist/api/types/CheckboxOption.js +5 -0
  198. package/dist/api/types/CollectionList.d.ts +1 -1
  199. package/dist/api/types/CompanyList.d.ts +1 -1
  200. package/dist/api/types/Component.d.ts +43 -0
  201. package/dist/api/types/Component.js +5 -0
  202. package/dist/api/types/ConfigureRequest.d.ts +22 -0
  203. package/dist/api/types/ConfigureRequest.js +5 -0
  204. package/dist/api/types/ConfigureResponse.d.ts +12 -0
  205. package/dist/api/types/ConfigureResponse.js +5 -0
  206. package/dist/api/types/ContactCompanies.d.ts +5 -0
  207. package/dist/api/types/ContactCompany.d.ts +14 -0
  208. package/dist/api/types/ContactCompany.js +5 -0
  209. package/dist/api/types/ContentObject.d.ts +13 -0
  210. package/dist/api/types/ContentObject.js +5 -0
  211. package/dist/api/types/Context.d.ts +34 -0
  212. package/dist/api/types/Context.js +15 -0
  213. package/dist/api/types/ConversationSource.d.ts +19 -1
  214. package/dist/api/types/ConversationSource.js +16 -0
  215. package/dist/api/types/ConversationTeammates.d.ts +2 -2
  216. package/dist/api/types/CurrentCanvas.d.ts +11 -0
  217. package/dist/api/types/CurrentCanvas.js +5 -0
  218. package/dist/api/types/CustomAttributes.d.ts +2 -6
  219. package/dist/api/types/DataEventSummaryItem.d.ts +1 -1
  220. package/dist/api/types/DataTableComponent.d.ts +11 -0
  221. package/dist/api/types/DataTableComponent.js +5 -0
  222. package/dist/api/types/DataTableItem.d.ts +14 -0
  223. package/dist/api/types/DataTableItem.js +5 -0
  224. package/dist/api/types/DividerComponent.d.ts +12 -0
  225. package/dist/api/types/DividerComponent.js +5 -0
  226. package/dist/api/types/DropdownComponent.d.ts +34 -0
  227. package/dist/api/types/DropdownComponent.js +14 -0
  228. package/dist/api/types/DropdownOption.d.ts +16 -0
  229. package/dist/api/types/DropdownOption.js +5 -0
  230. package/dist/api/types/Error_.d.ts +1 -1
  231. package/dist/api/types/Event.d.ts +10 -0
  232. package/dist/api/types/Event.js +5 -0
  233. package/dist/api/types/ImageComponent.d.ts +40 -0
  234. package/dist/api/types/ImageComponent.js +15 -0
  235. package/dist/api/types/InitializeRequest.d.ts +23 -0
  236. package/dist/api/types/InitializeRequest.js +5 -0
  237. package/dist/api/types/InitializeResponse.d.ts +11 -0
  238. package/dist/api/types/InitializeResponse.js +5 -0
  239. package/dist/api/types/InputComponent.d.ts +37 -0
  240. package/dist/api/types/InputComponent.js +14 -0
  241. package/dist/api/types/ListComponent.d.ts +23 -0
  242. package/dist/api/types/ListComponent.js +5 -0
  243. package/dist/api/types/ListItem.d.ts +25 -0
  244. package/dist/api/types/ListItem.js +5 -0
  245. package/dist/api/types/ListItemWithImage.d.ts +12 -0
  246. package/dist/api/types/ListItemWithImage.js +5 -0
  247. package/dist/api/types/ListItemWithoutImage.d.ts +12 -0
  248. package/dist/api/types/ListItemWithoutImage.js +5 -0
  249. package/dist/api/types/LiveCanvasRequest.d.ts +21 -0
  250. package/dist/api/types/LiveCanvasRequest.js +5 -0
  251. package/dist/api/types/LiveCanvasResponse.d.ts +11 -0
  252. package/dist/api/types/LiveCanvasResponse.js +5 -0
  253. package/dist/api/types/MultipleFilterSearchRequest.d.ts +1 -8
  254. package/dist/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
  255. package/dist/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
  256. package/dist/api/types/NoteList.d.ts +1 -1
  257. package/dist/api/types/OffsetPages.d.ts +14 -0
  258. package/dist/api/types/OffsetPages.js +5 -0
  259. package/dist/api/types/ResultsResponse.d.ts +10 -0
  260. package/dist/api/types/ResultsResponse.js +5 -0
  261. package/dist/api/types/SheetActionComponent.d.ts +12 -0
  262. package/dist/api/types/SheetActionComponent.js +5 -0
  263. package/dist/api/types/SingleFilterSearchRequest.d.ts +5 -1
  264. package/dist/api/types/SingleSelectComponent.d.ts +39 -0
  265. package/dist/api/types/SingleSelectComponent.js +14 -0
  266. package/dist/api/types/SingleSelectOption.d.ts +16 -0
  267. package/dist/api/types/SingleSelectOption.js +5 -0
  268. package/dist/api/types/SocialProfile.d.ts +1 -1
  269. package/dist/api/types/SpacerComponent.d.ts +25 -0
  270. package/dist/api/types/SpacerComponent.js +16 -0
  271. package/dist/api/types/SubmitActionComponent.d.ts +8 -0
  272. package/dist/api/types/SubmitActionComponent.js +5 -0
  273. package/dist/api/types/SubmitRequest.d.ts +29 -0
  274. package/dist/api/types/SubmitRequest.js +5 -0
  275. package/dist/api/types/SubmitResponse.d.ts +23 -0
  276. package/dist/api/types/SubmitResponse.js +5 -0
  277. package/dist/api/types/TextAreaComponent.d.ts +22 -0
  278. package/dist/api/types/TextAreaComponent.js +5 -0
  279. package/dist/api/types/TextComponent.d.ts +39 -0
  280. package/dist/api/types/TextComponent.js +20 -0
  281. package/dist/api/types/TicketTypeAttribute.d.ts +16 -1
  282. package/dist/api/types/TicketTypeAttribute.js +13 -0
  283. package/dist/api/types/UrlActionComponent.d.ts +10 -0
  284. package/dist/api/types/UrlActionComponent.js +5 -0
  285. package/dist/api/types/Visitor.d.ts +2 -2
  286. package/dist/api/types/index.d.ts +42 -1
  287. package/dist/api/types/index.js +42 -1
  288. package/dist/version.d.ts +1 -1
  289. package/dist/version.js +1 -1
  290. package/package.json +10 -2
  291. package/reference.md +12 -15
  292. package/version.d.ts +1 -1
  293. package/version.js +1 -1
  294. package/api/resources/customObjectInstances/index.d.ts +0 -1
  295. package/api/resources/customObjectInstances/index.js +0 -17
  296. package/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
  297. package/api/resources/customObjectInstances/types/index.d.ts +0 -1
  298. package/api/resources/customObjectInstances/types/index.js +0 -17
  299. package/dist/api/resources/customObjectInstances/index.d.ts +0 -1
  300. package/dist/api/resources/customObjectInstances/index.js +0 -17
  301. package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
  302. package/dist/api/resources/customObjectInstances/types/index.d.ts +0 -1
  303. package/dist/api/resources/customObjectInstances/types/index.js +0 -17
  304. /package/api/{resources/customObjectInstances/types/CustomObjectInstance.js → types/ActionComponent.js} +0 -0
  305. /package/{dist/api/resources/customObjectInstances/types/CustomObjectInstance.js → api/types/CanvasObject.js} +0 -0
@@ -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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "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. */
@@ -86,18 +86,11 @@ export interface Contact {
86
86
  ios_last_seen_at?: number;
87
87
  /** The custom attributes which are set for the contact. */
88
88
  custom_attributes?: Record<string, unknown>;
89
- avatar?: Contact.Avatar;
89
+ /** An image URL containing the avatar of a contact. */
90
+ avatar?: string;
90
91
  tags?: Intercom.ContactTags;
91
92
  notes?: Intercom.ContactNotes;
92
93
  companies?: Intercom.ContactCompanies;
93
94
  location: Intercom.ContactLocation;
94
95
  social_profiles: Intercom.ContactSocialProfiles;
95
96
  }
96
- export declare namespace Contact {
97
- interface Avatar {
98
- /** The type of object */
99
- type?: string;
100
- /** An image URL containing the avatar of a contact. */
101
- image_url?: string;
102
- }
103
- }
@@ -61,7 +61,6 @@ export declare class Conversations {
61
61
  *
62
62
  * This will return the Message model that has been created.
63
63
  *
64
- *
65
64
  * @param {Intercom.CreateConversationRequest} request
66
65
  * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
67
66
  *
@@ -122,7 +121,6 @@ export declare class Conversations {
122
121
  * If you want to reply to a coveration or take an action such as assign, unassign, open, close or snooze, take a look at the reply and manage endpoints.
123
122
  * {% /admonition %}
124
123
  *
125
- *
126
124
  * @param {Intercom.UpdateConversationRequest} request
127
125
  * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
128
126
  *
@@ -335,11 +333,28 @@ export declare class Conversations {
335
333
  * await client.conversations.manage({
336
334
  * conversation_id: "123",
337
335
  * body: {
338
- * message_type: "assignment",
336
+ * message_type: "close",
339
337
  * type: "admin",
340
- * admin_id: "12345",
341
- * assignee_id: "4324241",
342
- * body: "Goodbye :)"
338
+ * admin_id: "12345"
339
+ * }
340
+ * })
341
+ *
342
+ * @example
343
+ * await client.conversations.manage({
344
+ * conversation_id: "123",
345
+ * body: {
346
+ * message_type: "snoozed",
347
+ * admin_id: "5017691",
348
+ * snoozed_until: 1673609604
349
+ * }
350
+ * })
351
+ *
352
+ * @example
353
+ * await client.conversations.manage({
354
+ * conversation_id: "123",
355
+ * body: {
356
+ * message_type: "open",
357
+ * admin_id: "5017690"
343
358
  * }
344
359
  * })
345
360
  *
@@ -350,15 +365,17 @@ export declare class Conversations {
350
365
  * message_type: "assignment",
351
366
  * type: "admin",
352
367
  * admin_id: "12345",
353
- * assignee_id: "4324241",
354
- * body: "Let me pass you over to one of my colleagues."
368
+ * assignee_id: "4324241"
355
369
  * }
356
370
  * })
357
371
  */
358
372
  manage(request: Intercom.ManageConversationPartsRequest, requestOptions?: Conversations.RequestOptions): Promise<Intercom.Conversation>;
359
373
  /**
374
+ * {% admonition type="danger" name="Deprecation of Run Assignment Rules" %}
375
+ * 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.
376
+ * {% /admonition %}
360
377
  * You can let a conversation be automatically assigned following assignment rules.
361
- * {% admonition type="attention" name="When using workflows" %}
378
+ * {% admonition type="warning" name="When using workflows" %}
362
379
  * It is not possible to use this endpoint with Workflows.
363
380
  * {% /admonition %}
364
381
  *
@@ -378,11 +395,10 @@ export declare class Conversations {
378
395
  /**
379
396
  * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
380
397
  *
381
- * {% admonition type="attention" name="Contacts without an email" %}
398
+ * {% admonition type="warning" name="Contacts without an email" %}
382
399
  * 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
400
  * {% /admonition %}
384
401
  *
385
- *
386
402
  * @param {Intercom.AttachContactToConversationRequest} request
387
403
  * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
388
404
  *
@@ -412,11 +428,10 @@ export declare class Conversations {
412
428
  /**
413
429
  * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
414
430
  *
415
- * {% admonition type="attention" name="Contacts without an email" %}
431
+ * {% admonition type="warning" name="Contacts without an email" %}
416
432
  * 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
433
  * {% /admonition %}
418
434
  *
419
- *
420
435
  * @param {Intercom.DetachContactFromConversationRequest} request
421
436
  * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
422
437
  *
@@ -440,7 +455,6 @@ export declare class Conversations {
440
455
  * If you are redacting a conversation part, it must have a `body`. If you are redacting a source message, it must have been created by a contact. We will return a `conversation_part_not_redactable` error if these criteria are not met.
441
456
  * {% /admonition %}
442
457
  *
443
- *
444
458
  * @param {Intercom.RedactConversationRequest} request
445
459
  * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
446
460
  *