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
@@ -90,11 +90,11 @@ class Tags {
90
90
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
91
  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`),
92
92
  method: "POST",
93
- 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),
93
+ 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),
94
94
  contentType: "application/json",
95
95
  requestType: "json",
96
96
  body: _body,
97
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
97
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
98
98
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
99
99
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
100
100
  });
@@ -151,10 +151,10 @@ class Tags {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  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/${encodeURIComponent(tagId)}`),
153
153
  method: "DELETE",
154
- 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),
154
+ 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),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
157
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
158
158
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
159
159
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
160
160
  });
@@ -212,11 +212,11 @@ class Tags {
212
212
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
213
213
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(conversationId)}/tags`),
214
214
  method: "POST",
215
- 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),
215
+ 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),
216
216
  contentType: "application/json",
217
217
  requestType: "json",
218
218
  body: _body,
219
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
219
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
220
220
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
221
221
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
222
222
  });
@@ -274,11 +274,11 @@ class Tags {
274
274
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
275
275
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(conversationId)}/tags/${encodeURIComponent(tagId)}`),
276
276
  method: "DELETE",
277
- 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),
277
+ 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),
278
278
  contentType: "application/json",
279
279
  requestType: "json",
280
280
  body: _body,
281
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
281
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
282
282
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
283
283
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
284
284
  });
@@ -316,7 +316,6 @@ class Tags {
316
316
  /**
317
317
  * You can fetch a list of all tags for a given workspace.
318
318
  *
319
- *
320
319
  * @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
321
320
  *
322
321
  * @throws {@link Intercom.UnauthorizedError}
@@ -330,10 +329,10 @@ class Tags {
330
329
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
331
330
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "tags"),
332
331
  method: "GET",
333
- 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),
332
+ 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),
334
333
  contentType: "application/json",
335
334
  requestType: "json",
336
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
335
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
337
336
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
338
337
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
339
338
  });
@@ -420,11 +419,11 @@ class Tags {
420
419
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
421
420
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "tags"),
422
421
  method: "POST",
423
- 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),
422
+ 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),
424
423
  contentType: "application/json",
425
424
  requestType: "json",
426
425
  body: request,
427
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
426
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
428
427
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
429
428
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
430
429
  });
@@ -483,10 +482,10 @@ class Tags {
483
482
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
484
483
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `tags/${encodeURIComponent(tagId)}`),
485
484
  method: "GET",
486
- 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),
485
+ 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),
487
486
  contentType: "application/json",
488
487
  requestType: "json",
489
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
488
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
490
489
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
491
490
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
492
491
  });
@@ -543,10 +542,10 @@ class Tags {
543
542
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
544
543
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `tags/${encodeURIComponent(tagId)}`),
545
544
  method: "DELETE",
546
- 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),
545
+ 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),
547
546
  contentType: "application/json",
548
547
  requestType: "json",
549
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
548
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
550
549
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
551
550
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
552
551
  });
@@ -606,11 +605,11 @@ class Tags {
606
605
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
607
606
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}/tags`),
608
607
  method: "POST",
609
- 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),
608
+ 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),
610
609
  contentType: "application/json",
611
610
  requestType: "json",
612
611
  body: _body,
613
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
612
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
614
613
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
615
614
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
616
615
  });
@@ -668,11 +667,11 @@ class Tags {
668
667
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
669
668
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}/tags/${encodeURIComponent(tagId)}`),
670
669
  method: "DELETE",
671
- 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),
670
+ 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),
672
671
  contentType: "application/json",
673
672
  requestType: "json",
674
673
  body: _body,
675
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
674
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
676
675
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
677
676
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
678
677
  });
@@ -7,7 +7,7 @@ import * as Intercom from "../../../index";
7
7
  */
8
8
  export interface Tag {
9
9
  /** value is "tag" */
10
- type: string;
10
+ type: "tag";
11
11
  /** The id of the tag */
12
12
  id: string;
13
13
  /** The name of the tag */
@@ -67,10 +67,10 @@ class Teams {
67
67
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
68
68
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "teams"),
69
69
  method: "GET",
70
- 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),
70
+ 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),
71
71
  contentType: "application/json",
72
72
  requestType: "json",
73
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
73
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
74
74
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
75
75
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
76
76
  });
@@ -124,10 +124,10 @@ class Teams {
124
124
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
125
125
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `teams/${encodeURIComponent(teamId)}`),
126
126
  method: "GET",
127
- 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),
127
+ 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),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
130
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
131
131
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
132
132
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
133
133
  });
@@ -83,10 +83,10 @@ class TicketTypes {
83
83
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
84
84
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "ticket_types"),
85
85
  method: "GET",
86
- 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),
86
+ 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),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
89
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
90
90
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
91
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
92
  });
@@ -145,11 +145,11 @@ class TicketTypes {
145
145
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
146
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "ticket_types"),
147
147
  method: "POST",
148
- 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),
148
+ 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),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: request,
152
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
152
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
153
153
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
154
154
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
155
  });
@@ -202,10 +202,10 @@ class TicketTypes {
202
202
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
203
203
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `ticket_types/${encodeURIComponent(ticketTypeId)}`),
204
204
  method: "GET",
205
- 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),
205
+ 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),
206
206
  contentType: "application/json",
207
207
  requestType: "json",
208
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
208
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
209
209
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
210
210
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
211
211
  });
@@ -264,11 +264,11 @@ class TicketTypes {
264
264
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
265
265
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `ticket_types/${encodeURIComponent(ticketTypeId)}`),
266
266
  method: "PUT",
267
- 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),
267
+ 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),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  body: _body,
271
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
271
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
272
272
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
273
273
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
274
274
  });
@@ -83,11 +83,11 @@ class Attributes {
83
83
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
84
84
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `ticket_types/${encodeURIComponent(ticketTypeId)}/attributes`),
85
85
  method: "POST",
86
- 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),
86
+ 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),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: _body,
90
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
91
91
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
92
92
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
93
93
  });
@@ -142,11 +142,11 @@ class Attributes {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `ticket_types/${encodeURIComponent(ticketTypeId)}/attributes/${encodeURIComponent(attributeId)}`),
144
144
  method: "PUT",
145
- 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),
145
+ 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),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  body: _body,
149
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
149
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
150
150
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
151
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
152
  });
@@ -129,11 +129,11 @@ class Tickets {
129
129
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
130
130
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}/reply`),
131
131
  method: "POST",
132
- 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),
132
+ 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),
133
133
  contentType: "application/json",
134
134
  requestType: "json",
135
135
  body: _body,
136
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
136
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
137
137
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
138
138
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
139
139
  });
@@ -196,11 +196,11 @@ class Tickets {
196
196
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
197
197
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "tickets"),
198
198
  method: "POST",
199
- 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),
199
+ 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),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: request,
203
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
203
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
204
204
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
205
205
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
206
206
  });
@@ -253,10 +253,10 @@ class Tickets {
253
253
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
254
254
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}`),
255
255
  method: "GET",
256
- 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),
256
+ 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),
257
257
  contentType: "application/json",
258
258
  requestType: "json",
259
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
259
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
260
260
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
261
261
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
262
262
  });
@@ -349,11 +349,11 @@ class Tickets {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}`),
351
351
  method: "PUT",
352
- 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),
352
+ 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),
353
353
  contentType: "application/json",
354
354
  requestType: "json",
355
355
  body: _body,
356
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
356
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
357
357
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
358
358
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
359
359
  });
@@ -476,11 +476,11 @@ class Tickets {
476
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
477
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "tickets/search"),
478
478
  method: "POST",
479
- 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),
479
+ 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),
480
480
  contentType: "application/json",
481
481
  requestType: "json",
482
482
  body: request,
483
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
483
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
484
484
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
485
485
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
486
486
  });
@@ -74,11 +74,11 @@ class Visitors {
74
74
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
75
75
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "visitors"),
76
76
  method: "GET",
77
- 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),
77
+ 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),
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
80
80
  requestType: "json",
81
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
82
82
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
84
  });
@@ -144,11 +144,11 @@ class Visitors {
144
144
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
145
145
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "visitors"),
146
146
  method: "PUT",
147
- 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),
147
+ 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),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  body: request,
151
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
151
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
152
152
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
153
153
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
154
154
  });
@@ -213,11 +213,11 @@ class Visitors {
213
213
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
214
214
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "visitors/convert"),
215
215
  method: "POST",
216
- 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),
216
+ 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),
217
217
  contentType: "application/json",
218
218
  requestType: "json",
219
219
  body: request,
220
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
220
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
221
221
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
222
222
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
223
223
  });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ export declare type ActionComponent = Intercom.ActionComponent.Sheet | Intercom.ActionComponent.Url | Intercom.ActionComponent.Submit;
6
+ export declare namespace ActionComponent {
7
+ interface Sheet extends Intercom.SheetActionComponent {
8
+ type: "sheet";
9
+ }
10
+ interface Url extends Intercom.UrlActionComponent {
11
+ type: "url";
12
+ }
13
+ interface Submit extends Intercom.SubmitActionComponent {
14
+ type: "submit";
15
+ }
16
+ }
@@ -8,7 +8,7 @@ import * as Intercom from "../index";
8
8
  export interface ArticleList {
9
9
  /** The type of the object - `list`. */
10
10
  type: "list";
11
- pages?: Intercom.CursorPages;
11
+ pages?: unknown;
12
12
  /** A count of the total number of articles. */
13
13
  total_count: number;
14
14
  /** An array of Article objects */
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * A button component is used to take an action by clicking a button. This can either:
7
+ * - [Trigger a submit request to be sent](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/submit-action) Inbox Messenger
8
+ * - [Open a link in a new page](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/url-action) Inbox Messenger
9
+ * - [Open a sheet](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/sheets-action) Messenger
10
+ */
11
+ export interface ButtonComponent {
12
+ /** A unique identifier for the component. */
13
+ id: string;
14
+ /** The text that will be rendered inside the button. */
15
+ label: string;
16
+ /** This can be a Submit Action, URL Action, or Sheets Action. */
17
+ action: Intercom.ActionComponent;
18
+ /** Styles the button. Default is 'primary'. */
19
+ style?: ButtonComponent.Style;
20
+ /** Styles the button and prevents the action. Default is false. */
21
+ disabled?: boolean;
22
+ }
23
+ export declare namespace ButtonComponent {
24
+ /**
25
+ * Styles the button. Default is 'primary'.
26
+ */
27
+ type Style = "primary" | "secondary" | "link";
28
+ const Style: {
29
+ readonly Primary: "primary";
30
+ readonly Secondary: "secondary";
31
+ readonly Link: "link";
32
+ };
33
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ButtonComponent = void 0;
7
+ var ButtonComponent;
8
+ (function (ButtonComponent) {
9
+ ButtonComponent.Style = {
10
+ Primary: "primary",
11
+ Secondary: "secondary",
12
+ Link: "link",
13
+ };
14
+ })(ButtonComponent = exports.ButtonComponent || (exports.ButtonComponent = {}));
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * You have to respond to the majority of requests with a canvas object. This will tell us what UI to show for your app.
7
+ *
8
+ * A canvas can either be static (meaning we send you the next request only when an action takes place) or live (meaning we send you the next request when someone views the app).
9
+ *
10
+ * - A static canvas needs a ContentObject which will contain the components to show.
11
+ * - A live canvas needs a `content_url` which we we will make the Live Canvas requests to when the app is viewed. This is only possible for apps viewed or used in the Messenger.
12
+ */
13
+ export interface CanvasObject {
14
+ /** The content object that will be shown as the UI of the app. Max Size is 64KB. */
15
+ content: Intercom.ContentObject;
16
+ /** The URL which we make Live Canvas requests to. You must respond to these with a content object. Max size is 64KB. */
17
+ content_url?: string;
18
+ /** Optional Stored Data that you want to be returned in the next sent request. Max Size is 64KB. */
19
+ stored_data?: Record<string, unknown>;
20
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * A checkbox component is used to capture multiple choices from as many options as you want to provide. You can submit the options by:
7
+ *
8
+ * - Using a ButtonComponent (which will submit all interactive components in the canvas)
9
+ *
10
+ * When a submit action takes place, the results are given in a hash with the `id` from the checkbox component used as the key and an array containing the `id` of each chosen option as the value.
11
+ */
12
+ export interface CheckboxComponent {
13
+ /** A unique identifier for the component. */
14
+ id: string;
15
+ /** The list of options. Minimum of 1. */
16
+ option: Intercom.CheckboxOption[];
17
+ /** The text shown above the options. */
18
+ label: string;
19
+ /** The option's that are selected by default. */
20
+ value?: string[];
21
+ /** Styles the input. Default is `unsaved`. Prevent action with `saved`. */
22
+ save_state?: CheckboxComponent.SaveState;
23
+ /** Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved. */
24
+ disabled?: boolean;
25
+ }
26
+ export declare namespace CheckboxComponent {
27
+ /**
28
+ * Styles the input. Default is `unsaved`. Prevent action with `saved`.
29
+ */
30
+ type SaveState = "unsaved" | "saved" | "failed";
31
+ const SaveState: {
32
+ readonly Unsaved: "unsaved";
33
+ readonly Saved: "saved";
34
+ readonly Failed: "failed";
35
+ };
36
+ }