intercom-client 6.0.0-beta.3 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2227) hide show
  1. package/.gitattributes +1 -0
  2. package/Client.d.ts +90 -0
  3. package/Client.js +112 -0
  4. package/LICENSE +10 -198
  5. package/README.md +129 -208
  6. package/REPO_OWNER +1 -0
  7. package/api/errors/BadRequestError.d.ts +7 -0
  8. package/api/errors/BadRequestError.js +41 -0
  9. package/api/errors/ForbiddenError.d.ts +8 -0
  10. package/api/errors/ForbiddenError.js +41 -0
  11. package/api/errors/NotFoundError.d.ts +7 -0
  12. package/api/errors/NotFoundError.js +41 -0
  13. package/api/errors/UnauthorizedError.d.ts +8 -0
  14. package/api/errors/UnauthorizedError.js +41 -0
  15. package/api/errors/UnprocessableEntityError.d.ts +7 -0
  16. package/api/errors/UnprocessableEntityError.js +41 -0
  17. package/api/errors/index.d.ts +5 -0
  18. package/api/errors/index.js +21 -0
  19. package/api/index.d.ts +4 -0
  20. package/api/index.js +19 -0
  21. package/api/resources/admins/client/Client.d.ts +107 -0
  22. package/api/resources/admins/client/Client.js +364 -0
  23. package/api/resources/admins/client/index.d.ts +1 -0
  24. package/api/resources/admins/client/index.js +17 -0
  25. package/api/resources/admins/client/requests/ConfigureAwayAdminRequest.d.ts +35 -0
  26. package/api/resources/admins/client/requests/ConfigureAwayAdminRequest.js +5 -0
  27. package/api/resources/admins/client/requests/FindAdminRequest.d.ts +15 -0
  28. package/api/resources/admins/client/requests/FindAdminRequest.js +5 -0
  29. package/api/resources/admins/client/requests/ListAllActivityLogsRequest.d.ts +20 -0
  30. package/api/resources/admins/client/requests/ListAllActivityLogsRequest.js +5 -0
  31. package/api/resources/admins/client/requests/index.d.ts +3 -0
  32. package/api/resources/admins/client/requests/index.js +2 -0
  33. package/api/resources/admins/index.d.ts +2 -0
  34. package/api/resources/admins/index.js +18 -0
  35. package/api/resources/admins/types/Admin.d.ts +30 -0
  36. package/api/resources/admins/types/Admin.js +5 -0
  37. package/api/resources/admins/types/index.d.ts +1 -0
  38. package/api/resources/admins/types/index.js +17 -0
  39. package/api/resources/aiAgent/index.d.ts +1 -0
  40. package/api/resources/aiAgent/index.js +17 -0
  41. package/api/resources/aiAgent/types/AiAgent.d.ts +35 -0
  42. package/api/resources/aiAgent/types/AiAgent.js +16 -0
  43. package/api/resources/aiAgent/types/index.d.ts +1 -0
  44. package/api/resources/aiAgent/types/index.js +17 -0
  45. package/api/resources/aiContentSource/index.d.ts +1 -0
  46. package/api/resources/aiContentSource/index.js +17 -0
  47. package/api/resources/aiContentSource/types/ContentSource.d.ts +29 -0
  48. package/api/resources/aiContentSource/types/ContentSource.js +16 -0
  49. package/api/resources/aiContentSource/types/index.d.ts +1 -0
  50. package/api/resources/aiContentSource/types/index.js +17 -0
  51. package/api/resources/articles/client/Client.d.ts +153 -0
  52. package/api/resources/articles/client/Client.js +491 -0
  53. package/api/resources/articles/client/index.d.ts +1 -0
  54. package/api/resources/articles/client/index.js +17 -0
  55. package/api/resources/articles/client/requests/CreateArticleRequest.d.ts +62 -0
  56. package/api/resources/articles/client/requests/CreateArticleRequest.js +13 -0
  57. package/api/resources/articles/client/requests/DeleteArticleRequest.d.ts +15 -0
  58. package/api/resources/articles/client/requests/DeleteArticleRequest.js +5 -0
  59. package/api/resources/articles/client/requests/FindArticleRequest.d.ts +15 -0
  60. package/api/resources/articles/client/requests/FindArticleRequest.js +5 -0
  61. package/api/resources/articles/client/requests/ListArticlesRequest.d.ts +17 -0
  62. package/api/resources/articles/client/requests/ListArticlesRequest.js +5 -0
  63. package/api/resources/articles/client/requests/SearchArticlesRequest.d.ts +28 -0
  64. package/api/resources/articles/client/requests/SearchArticlesRequest.js +5 -0
  65. package/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +50 -0
  66. package/api/resources/articles/client/requests/UpdateArticleRequest.js +13 -0
  67. package/api/resources/articles/client/requests/index.d.ts +6 -0
  68. package/api/resources/articles/client/requests/index.js +2 -0
  69. package/api/resources/articles/index.d.ts +2 -0
  70. package/api/resources/articles/index.js +18 -0
  71. package/api/resources/articles/types/Article.d.ts +10 -0
  72. package/api/resources/articles/types/Article.js +5 -0
  73. package/api/resources/articles/types/ArticleListItem.d.ts +50 -0
  74. package/api/resources/articles/types/ArticleListItem.js +13 -0
  75. package/api/resources/articles/types/ArticleSearchHighlights.d.ts +60 -0
  76. package/api/resources/articles/types/ArticleSearchHighlights.js +29 -0
  77. package/api/resources/articles/types/SearchArticlesResponse.d.ts +27 -0
  78. package/api/resources/articles/types/SearchArticlesResponse.js +5 -0
  79. package/api/resources/articles/types/index.d.ts +4 -0
  80. package/api/resources/articles/types/index.js +20 -0
  81. package/api/resources/companies/client/Client.d.ts +263 -0
  82. package/api/resources/companies/client/Client.js +855 -0
  83. package/api/resources/companies/client/index.d.ts +1 -0
  84. package/api/resources/companies/client/index.js +17 -0
  85. package/api/resources/companies/client/requests/AttachContactToCompanyRequest.d.ts +30 -0
  86. package/api/resources/companies/client/requests/AttachContactToCompanyRequest.js +5 -0
  87. package/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +34 -0
  88. package/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.js +5 -0
  89. package/api/resources/companies/client/requests/DeleteCompanyRequest.d.ts +15 -0
  90. package/api/resources/companies/client/requests/DeleteCompanyRequest.js +5 -0
  91. package/api/resources/companies/client/requests/DetachContactFromCompanyRequest.d.ts +20 -0
  92. package/api/resources/companies/client/requests/DetachContactFromCompanyRequest.js +5 -0
  93. package/api/resources/companies/client/requests/FindCompanyRequest.d.ts +15 -0
  94. package/api/resources/companies/client/requests/FindCompanyRequest.js +5 -0
  95. package/api/resources/companies/client/requests/ListAttachedContactsRequest.d.ts +23 -0
  96. package/api/resources/companies/client/requests/ListAttachedContactsRequest.js +5 -0
  97. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +23 -0
  98. package/api/resources/companies/client/requests/ListCompaniesRequest.js +5 -0
  99. package/api/resources/companies/client/requests/ListSegmentsAttachedToCompanyRequest.d.ts +15 -0
  100. package/api/resources/companies/client/requests/ListSegmentsAttachedToCompanyRequest.js +5 -0
  101. package/api/resources/companies/client/requests/RetrieveCompanyRequest.d.ts +38 -0
  102. package/api/resources/companies/client/requests/RetrieveCompanyRequest.js +5 -0
  103. package/api/resources/companies/client/requests/ScrollCompaniesRequest.d.ts +13 -0
  104. package/api/resources/companies/client/requests/ScrollCompaniesRequest.js +5 -0
  105. package/api/resources/companies/client/requests/UpdateCompanyRequest.d.ts +15 -0
  106. package/api/resources/companies/client/requests/UpdateCompanyRequest.js +5 -0
  107. package/api/resources/companies/client/requests/index.d.ts +11 -0
  108. package/api/resources/companies/client/requests/index.js +2 -0
  109. package/api/resources/companies/index.d.ts +2 -0
  110. package/api/resources/companies/index.js +18 -0
  111. package/api/resources/companies/types/Company.d.ts +72 -0
  112. package/api/resources/companies/types/Company.js +5 -0
  113. package/api/resources/companies/types/index.d.ts +1 -0
  114. package/api/resources/companies/types/index.js +17 -0
  115. package/api/resources/contacts/client/Client.d.ts +383 -0
  116. package/api/resources/contacts/client/Client.js +1113 -0
  117. package/api/resources/contacts/client/index.d.ts +1 -0
  118. package/api/resources/contacts/client/index.js +17 -0
  119. package/api/resources/contacts/client/requests/ArchiveContactRequest.d.ts +15 -0
  120. package/api/resources/contacts/client/requests/ArchiveContactRequest.js +5 -0
  121. package/api/resources/contacts/client/requests/AttachSubscriptionToContactRequest.d.ts +35 -0
  122. package/api/resources/contacts/client/requests/AttachSubscriptionToContactRequest.js +5 -0
  123. package/api/resources/contacts/client/requests/DeleteContactRequest.d.ts +15 -0
  124. package/api/resources/contacts/client/requests/DeleteContactRequest.js +5 -0
  125. package/api/resources/contacts/client/requests/DetachSubscriptionFromContactRequest.d.ts +20 -0
  126. package/api/resources/contacts/client/requests/DetachSubscriptionFromContactRequest.js +5 -0
  127. package/api/resources/contacts/client/requests/FindContactRequest.d.ts +15 -0
  128. package/api/resources/contacts/client/requests/FindContactRequest.js +5 -0
  129. package/api/resources/contacts/client/requests/ListAttachedCompaniesRequest.d.ts +23 -0
  130. package/api/resources/contacts/client/requests/ListAttachedCompaniesRequest.js +5 -0
  131. package/api/resources/contacts/client/requests/ListAttachedSubscriptionsRequest.d.ts +15 -0
  132. package/api/resources/contacts/client/requests/ListAttachedSubscriptionsRequest.js +5 -0
  133. package/api/resources/contacts/client/requests/ListContactsRequest.d.ts +21 -0
  134. package/api/resources/contacts/client/requests/ListContactsRequest.js +5 -0
  135. package/api/resources/contacts/client/requests/ListSegmentsAttachedToContactRequest.d.ts +15 -0
  136. package/api/resources/contacts/client/requests/ListSegmentsAttachedToContactRequest.js +5 -0
  137. package/api/resources/contacts/client/requests/ListTagsAttachedToContactRequest.d.ts +15 -0
  138. package/api/resources/contacts/client/requests/ListTagsAttachedToContactRequest.js +5 -0
  139. package/api/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
  140. package/api/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
  141. package/api/resources/contacts/client/requests/UnarchiveContactRequest.d.ts +15 -0
  142. package/api/resources/contacts/client/requests/UnarchiveContactRequest.js +5 -0
  143. package/api/resources/contacts/client/requests/UpdateContactRequest.d.ts +39 -0
  144. package/api/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
  145. package/api/resources/contacts/client/requests/index.d.ts +13 -0
  146. package/api/resources/contacts/client/requests/index.js +2 -0
  147. package/api/resources/contacts/index.d.ts +2 -0
  148. package/api/resources/contacts/index.js +18 -0
  149. package/api/resources/contacts/types/Contact.d.ts +103 -0
  150. package/api/resources/contacts/types/Contact.js +5 -0
  151. package/api/resources/contacts/types/index.d.ts +1 -0
  152. package/api/resources/contacts/types/index.js +17 -0
  153. package/api/resources/conversations/client/Client.d.ts +487 -0
  154. package/api/resources/conversations/client/Client.js +1113 -0
  155. package/api/resources/conversations/client/index.d.ts +1 -0
  156. package/api/resources/conversations/client/index.js +17 -0
  157. package/api/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +44 -0
  158. package/api/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
  159. package/api/resources/conversations/client/requests/AutoAssignConversationRequest.d.ts +15 -0
  160. package/api/resources/conversations/client/requests/AutoAssignConversationRequest.js +5 -0
  161. package/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +26 -0
  162. package/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
  163. package/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +46 -0
  164. package/api/resources/conversations/client/requests/CreateConversationRequest.js +17 -0
  165. package/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +44 -0
  166. package/api/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
  167. package/api/resources/conversations/client/requests/FindConversationRequest.d.ts +20 -0
  168. package/api/resources/conversations/client/requests/FindConversationRequest.js +5 -0
  169. package/api/resources/conversations/client/requests/ListConversationsRequest.d.ts +17 -0
  170. package/api/resources/conversations/client/requests/ListConversationsRequest.js +5 -0
  171. package/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +72 -0
  172. package/api/resources/conversations/client/requests/ManageConversationPartsRequest.js +5 -0
  173. package/api/resources/conversations/client/requests/ReplyToConversationRequest.d.ts +89 -0
  174. package/api/resources/conversations/client/requests/ReplyToConversationRequest.js +5 -0
  175. package/api/resources/conversations/client/requests/UpdateConversationRequest.d.ts +40 -0
  176. package/api/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
  177. package/api/resources/conversations/client/requests/index.d.ts +10 -0
  178. package/api/resources/conversations/client/requests/index.js +2 -0
  179. package/api/resources/conversations/index.d.ts +2 -0
  180. package/api/resources/conversations/index.js +18 -0
  181. package/api/resources/conversations/types/Conversation.d.ts +68 -0
  182. package/api/resources/conversations/types/Conversation.js +18 -0
  183. package/api/resources/conversations/types/ConversationsManageRequestBody.d.ts +19 -0
  184. package/api/resources/conversations/types/ConversationsManageRequestBody.js +5 -0
  185. package/api/resources/conversations/types/index.d.ts +2 -0
  186. package/api/resources/conversations/types/index.js +18 -0
  187. package/api/resources/customObjectInstances/index.d.ts +1 -0
  188. package/api/resources/customObjectInstances/index.js +17 -0
  189. package/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +16 -0
  190. package/api/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
  191. package/api/resources/customObjectInstances/types/index.d.ts +1 -0
  192. package/api/resources/customObjectInstances/types/index.js +17 -0
  193. package/api/resources/dataAttributes/client/Client.d.ts +149 -0
  194. package/api/resources/dataAttributes/client/Client.js +335 -0
  195. package/api/resources/dataAttributes/client/index.d.ts +1 -0
  196. package/api/resources/dataAttributes/client/index.js +17 -0
  197. package/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +84 -0
  198. package/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +21 -0
  199. package/api/resources/dataAttributes/client/requests/ListDataAttributesRequest.d.ts +18 -0
  200. package/api/resources/dataAttributes/client/requests/ListDataAttributesRequest.js +5 -0
  201. package/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +69 -0
  202. package/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
  203. package/api/resources/dataAttributes/client/requests/index.d.ts +3 -0
  204. package/api/resources/dataAttributes/client/requests/index.js +2 -0
  205. package/api/resources/dataAttributes/index.d.ts +2 -0
  206. package/api/resources/dataAttributes/index.js +18 -0
  207. package/api/resources/dataAttributes/types/DataAttribute.d.ts +63 -0
  208. package/api/resources/dataAttributes/types/DataAttribute.js +20 -0
  209. package/api/resources/dataAttributes/types/DataAttributesListRequestModel.d.ts +9 -0
  210. package/api/resources/dataAttributes/types/DataAttributesListRequestModel.js +11 -0
  211. package/api/resources/dataAttributes/types/index.d.ts +2 -0
  212. package/api/resources/dataAttributes/types/index.js +18 -0
  213. package/api/resources/dataEvents/index.d.ts +1 -0
  214. package/api/resources/dataEvents/index.js +17 -0
  215. package/api/resources/dataEvents/types/DataEvent.d.ts +24 -0
  216. package/api/resources/dataEvents/types/DataEvent.js +5 -0
  217. package/api/resources/dataEvents/types/index.d.ts +1 -0
  218. package/api/resources/dataEvents/types/index.js +17 -0
  219. package/api/resources/dataExport/client/Client.d.ts +108 -0
  220. package/api/resources/dataExport/client/Client.js +287 -0
  221. package/api/resources/dataExport/client/index.d.ts +1 -0
  222. package/api/resources/dataExport/client/index.js +17 -0
  223. package/api/resources/dataExport/client/requests/CancelDataExportRequest.d.ts +15 -0
  224. package/api/resources/dataExport/client/requests/CancelDataExportRequest.js +5 -0
  225. package/api/resources/dataExport/client/requests/CreateDataExportRequest.d.ts +16 -0
  226. package/api/resources/dataExport/client/requests/CreateDataExportRequest.js +5 -0
  227. package/api/resources/dataExport/client/requests/DownloadDataExportRequest.d.ts +15 -0
  228. package/api/resources/dataExport/client/requests/DownloadDataExportRequest.js +5 -0
  229. package/api/resources/dataExport/client/requests/FindDataExportRequest.d.ts +15 -0
  230. package/api/resources/dataExport/client/requests/FindDataExportRequest.js +5 -0
  231. package/api/resources/dataExport/client/requests/index.d.ts +4 -0
  232. package/api/resources/dataExport/client/requests/index.js +2 -0
  233. package/api/resources/dataExport/index.d.ts +2 -0
  234. package/api/resources/dataExport/index.js +18 -0
  235. package/api/resources/dataExport/types/DataExport.d.ts +30 -0
  236. package/api/resources/dataExport/types/DataExport.js +17 -0
  237. package/api/resources/dataExport/types/index.d.ts +1 -0
  238. package/api/resources/dataExport/types/index.js +17 -0
  239. package/api/resources/events/client/Client.d.ts +129 -0
  240. package/api/resources/events/client/Client.js +305 -0
  241. package/api/resources/events/client/index.d.ts +1 -0
  242. package/api/resources/events/client/index.js +17 -0
  243. package/api/resources/events/client/requests/ListEventSummariesRequest.d.ts +28 -0
  244. package/api/resources/events/client/requests/ListEventSummariesRequest.js +5 -0
  245. package/api/resources/events/client/requests/ListEventsRequest.d.ts +35 -0
  246. package/api/resources/events/client/requests/ListEventsRequest.js +5 -0
  247. package/api/resources/events/client/requests/index.d.ts +2 -0
  248. package/api/resources/events/client/requests/index.js +2 -0
  249. package/api/resources/events/index.d.ts +1 -0
  250. package/api/resources/events/index.js +17 -0
  251. package/api/resources/helpCenter/index.d.ts +1 -0
  252. package/api/resources/helpCenter/index.js +17 -0
  253. package/api/resources/helpCenter/types/Collection.d.ts +34 -0
  254. package/api/resources/helpCenter/types/Collection.js +5 -0
  255. package/api/resources/helpCenter/types/HelpCenter.d.ts +22 -0
  256. package/api/resources/helpCenter/types/HelpCenter.js +5 -0
  257. package/api/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
  258. package/api/resources/helpCenter/types/HelpCenterList.js +5 -0
  259. package/api/resources/helpCenter/types/index.d.ts +3 -0
  260. package/api/resources/helpCenter/types/index.js +19 -0
  261. package/api/resources/helpCenters/client/Client.d.ts +62 -0
  262. package/api/resources/helpCenters/client/Client.js +202 -0
  263. package/api/resources/helpCenters/client/index.d.ts +1 -0
  264. package/api/resources/helpCenters/client/index.js +17 -0
  265. package/api/resources/helpCenters/client/requests/FindHelpCenterRequest.d.ts +15 -0
  266. package/api/resources/helpCenters/client/requests/FindHelpCenterRequest.js +5 -0
  267. package/api/resources/helpCenters/client/requests/ListHelpCentersRequest.d.ts +17 -0
  268. package/api/resources/helpCenters/client/requests/ListHelpCentersRequest.js +5 -0
  269. package/api/resources/helpCenters/client/requests/index.d.ts +2 -0
  270. package/api/resources/helpCenters/client/requests/index.js +2 -0
  271. package/api/resources/helpCenters/index.d.ts +2 -0
  272. package/api/resources/helpCenters/index.js +18 -0
  273. package/api/resources/helpCenters/resources/collections/client/Client.d.ts +113 -0
  274. package/api/resources/helpCenters/resources/collections/client/Client.js +395 -0
  275. package/api/resources/helpCenters/resources/collections/client/index.d.ts +1 -0
  276. package/api/resources/helpCenters/resources/collections/client/index.js +17 -0
  277. package/api/resources/helpCenters/resources/collections/client/requests/CreateCollectionRequest.d.ts +27 -0
  278. package/api/resources/helpCenters/resources/collections/client/requests/CreateCollectionRequest.js +5 -0
  279. package/api/resources/helpCenters/resources/collections/client/requests/DeleteCollectionRequest.d.ts +15 -0
  280. package/api/resources/helpCenters/resources/collections/client/requests/DeleteCollectionRequest.js +5 -0
  281. package/api/resources/helpCenters/resources/collections/client/requests/FindCollectionRequest.d.ts +15 -0
  282. package/api/resources/helpCenters/resources/collections/client/requests/FindCollectionRequest.js +5 -0
  283. package/api/resources/helpCenters/resources/collections/client/requests/ListCollectionsRequest.d.ts +17 -0
  284. package/api/resources/helpCenters/resources/collections/client/requests/ListCollectionsRequest.js +5 -0
  285. package/api/resources/helpCenters/resources/collections/client/requests/UpdateCollectionRequest.d.ts +30 -0
  286. package/api/resources/helpCenters/resources/collections/client/requests/UpdateCollectionRequest.js +5 -0
  287. package/api/resources/helpCenters/resources/collections/client/requests/index.d.ts +5 -0
  288. package/api/resources/helpCenters/resources/collections/client/requests/index.js +2 -0
  289. package/api/resources/helpCenters/resources/collections/index.d.ts +1 -0
  290. package/api/resources/helpCenters/resources/collections/index.js +17 -0
  291. package/api/resources/helpCenters/resources/index.d.ts +2 -0
  292. package/api/resources/helpCenters/resources/index.js +31 -0
  293. package/api/resources/index.d.ts +62 -0
  294. package/api/resources/index.js +91 -0
  295. package/api/resources/messages/client/Client.d.ts +147 -0
  296. package/api/resources/messages/client/Client.js +227 -0
  297. package/api/resources/messages/client/index.d.ts +1 -0
  298. package/api/resources/messages/client/index.js +2 -0
  299. package/api/resources/messages/index.d.ts +2 -0
  300. package/api/resources/messages/index.js +18 -0
  301. package/api/resources/messages/types/Message.d.ts +34 -0
  302. package/api/resources/messages/types/Message.js +15 -0
  303. package/api/resources/messages/types/index.d.ts +1 -0
  304. package/api/resources/messages/types/index.js +17 -0
  305. package/api/resources/news/client/Client.d.ts +36 -0
  306. package/api/resources/news/client/Client.js +22 -0
  307. package/api/resources/news/client/index.d.ts +1 -0
  308. package/api/resources/news/client/index.js +2 -0
  309. package/api/resources/news/index.d.ts +3 -0
  310. package/api/resources/news/index.js +19 -0
  311. package/api/resources/news/resources/feeds/client/Client.d.ts +71 -0
  312. package/api/resources/news/resources/feeds/client/Client.js +228 -0
  313. package/api/resources/news/resources/feeds/client/index.d.ts +1 -0
  314. package/api/resources/news/resources/feeds/client/index.js +17 -0
  315. package/api/resources/news/resources/feeds/client/requests/FindNewsFeedRequest.d.ts +15 -0
  316. package/api/resources/news/resources/feeds/client/requests/FindNewsFeedRequest.js +5 -0
  317. package/api/resources/news/resources/feeds/client/requests/ListNewsFeedItemsRequest.d.ts +15 -0
  318. package/api/resources/news/resources/feeds/client/requests/ListNewsFeedItemsRequest.js +5 -0
  319. package/api/resources/news/resources/feeds/client/requests/index.d.ts +2 -0
  320. package/api/resources/news/resources/feeds/client/requests/index.js +2 -0
  321. package/api/resources/news/resources/feeds/index.d.ts +1 -0
  322. package/api/resources/news/resources/feeds/index.js +17 -0
  323. package/api/resources/news/resources/index.d.ts +4 -0
  324. package/api/resources/news/resources/index.js +33 -0
  325. package/api/resources/news/resources/items/client/Client.d.ts +127 -0
  326. package/api/resources/news/resources/items/client/Client.js +375 -0
  327. package/api/resources/news/resources/items/client/index.d.ts +1 -0
  328. package/api/resources/news/resources/items/client/index.js +17 -0
  329. package/api/resources/news/resources/items/client/requests/DeleteNewsItemRequest.d.ts +15 -0
  330. package/api/resources/news/resources/items/client/requests/DeleteNewsItemRequest.js +5 -0
  331. package/api/resources/news/resources/items/client/requests/FindNewsItemRequest.d.ts +15 -0
  332. package/api/resources/news/resources/items/client/requests/FindNewsItemRequest.js +5 -0
  333. package/api/resources/news/resources/items/client/requests/UpdateNewsItemRequest.d.ts +34 -0
  334. package/api/resources/news/resources/items/client/requests/UpdateNewsItemRequest.js +5 -0
  335. package/api/resources/news/resources/items/client/requests/index.d.ts +3 -0
  336. package/api/resources/news/resources/items/client/requests/index.js +2 -0
  337. package/api/resources/news/resources/items/index.d.ts +1 -0
  338. package/api/resources/news/resources/items/index.js +17 -0
  339. package/api/resources/news/types/NewsItem.d.ts +47 -0
  340. package/api/resources/news/types/NewsItem.js +13 -0
  341. package/api/resources/news/types/Newsfeed.d.ts +20 -0
  342. package/api/resources/news/types/Newsfeed.js +5 -0
  343. package/api/resources/news/types/NewsfeedAssignment.d.ts +12 -0
  344. package/api/resources/news/types/NewsfeedAssignment.js +5 -0
  345. package/api/resources/news/types/index.d.ts +3 -0
  346. package/api/resources/news/types/index.js +19 -0
  347. package/api/resources/notes/client/Client.d.ts +80 -0
  348. package/api/resources/notes/client/Client.js +272 -0
  349. package/api/resources/notes/client/index.d.ts +1 -0
  350. package/api/resources/notes/client/index.js +17 -0
  351. package/api/resources/notes/client/requests/CreateContactNoteRequest.d.ts +35 -0
  352. package/api/resources/notes/client/requests/CreateContactNoteRequest.js +5 -0
  353. package/api/resources/notes/client/requests/FindNoteRequest.d.ts +15 -0
  354. package/api/resources/notes/client/requests/FindNoteRequest.js +5 -0
  355. package/api/resources/notes/client/requests/ListContactNotesRequest.d.ts +23 -0
  356. package/api/resources/notes/client/requests/ListContactNotesRequest.js +5 -0
  357. package/api/resources/notes/client/requests/index.d.ts +3 -0
  358. package/api/resources/notes/client/requests/index.js +2 -0
  359. package/api/resources/notes/index.d.ts +2 -0
  360. package/api/resources/notes/index.js +18 -0
  361. package/api/resources/notes/types/Note.d.ts +32 -0
  362. package/api/resources/notes/types/Note.js +5 -0
  363. package/api/resources/notes/types/index.d.ts +1 -0
  364. package/api/resources/notes/types/index.js +17 -0
  365. package/api/resources/phoneCallRedirects/client/Client.d.ts +64 -0
  366. package/api/resources/phoneCallRedirects/client/Client.js +142 -0
  367. package/api/resources/phoneCallRedirects/client/index.d.ts +1 -0
  368. package/api/resources/phoneCallRedirects/client/index.js +17 -0
  369. package/api/resources/phoneCallRedirects/client/requests/CreatePhoneCallRedirectRequest.d.ts +46 -0
  370. package/api/resources/phoneCallRedirects/client/requests/CreatePhoneCallRedirectRequest.js +5 -0
  371. package/api/resources/phoneCallRedirects/client/requests/index.d.ts +1 -0
  372. package/api/resources/phoneCallRedirects/client/requests/index.js +2 -0
  373. package/api/resources/phoneCallRedirects/index.d.ts +1 -0
  374. package/api/resources/phoneCallRedirects/index.js +17 -0
  375. package/api/resources/segments/client/Client.d.ts +62 -0
  376. package/api/resources/segments/client/Client.js +185 -0
  377. package/api/resources/segments/client/index.d.ts +1 -0
  378. package/api/resources/segments/client/index.js +17 -0
  379. package/api/resources/segments/client/requests/FindSegmentRequest.d.ts +15 -0
  380. package/api/resources/segments/client/requests/FindSegmentRequest.js +5 -0
  381. package/api/resources/segments/client/requests/ListSegmentsRequest.d.ts +13 -0
  382. package/api/resources/segments/client/requests/ListSegmentsRequest.js +5 -0
  383. package/api/resources/segments/client/requests/index.d.ts +2 -0
  384. package/api/resources/segments/client/requests/index.js +2 -0
  385. package/api/resources/segments/index.d.ts +2 -0
  386. package/api/resources/segments/index.js +18 -0
  387. package/api/resources/segments/types/Segment.d.ts +32 -0
  388. package/api/resources/segments/types/Segment.js +13 -0
  389. package/api/resources/segments/types/index.d.ts +1 -0
  390. package/api/resources/segments/types/index.js +17 -0
  391. package/api/resources/subscriptionTypes/client/Client.d.ts +46 -0
  392. package/api/resources/subscriptionTypes/client/Client.js +119 -0
  393. package/api/resources/subscriptionTypes/client/index.d.ts +1 -0
  394. package/api/resources/subscriptionTypes/client/index.js +2 -0
  395. package/api/resources/subscriptionTypes/index.d.ts +2 -0
  396. package/api/resources/subscriptionTypes/index.js +18 -0
  397. package/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +49 -0
  398. package/api/resources/subscriptionTypes/types/SubscriptionType.js +25 -0
  399. package/api/resources/subscriptionTypes/types/index.d.ts +1 -0
  400. package/api/resources/subscriptionTypes/types/index.js +17 -0
  401. package/api/resources/tags/client/Client.d.ts +234 -0
  402. package/api/resources/tags/client/Client.js +723 -0
  403. package/api/resources/tags/client/index.d.ts +1 -0
  404. package/api/resources/tags/client/index.js +17 -0
  405. package/api/resources/tags/client/requests/DeleteTagRequest.d.ts +15 -0
  406. package/api/resources/tags/client/requests/DeleteTagRequest.js +5 -0
  407. package/api/resources/tags/client/requests/FindTagRequest.d.ts +15 -0
  408. package/api/resources/tags/client/requests/FindTagRequest.js +5 -0
  409. package/api/resources/tags/client/requests/TagContactRequest.d.ts +30 -0
  410. package/api/resources/tags/client/requests/TagContactRequest.js +5 -0
  411. package/api/resources/tags/client/requests/TagConversationRequest.d.ts +28 -0
  412. package/api/resources/tags/client/requests/TagConversationRequest.js +5 -0
  413. package/api/resources/tags/client/requests/TagTicketRequest.d.ts +28 -0
  414. package/api/resources/tags/client/requests/TagTicketRequest.js +5 -0
  415. package/api/resources/tags/client/requests/UntagContactRequest.d.ts +20 -0
  416. package/api/resources/tags/client/requests/UntagContactRequest.js +5 -0
  417. package/api/resources/tags/client/requests/UntagConversationRequest.d.ts +37 -0
  418. package/api/resources/tags/client/requests/UntagConversationRequest.js +5 -0
  419. package/api/resources/tags/client/requests/UntagTicketRequest.d.ts +37 -0
  420. package/api/resources/tags/client/requests/UntagTicketRequest.js +5 -0
  421. package/api/resources/tags/client/requests/index.d.ts +8 -0
  422. package/api/resources/tags/client/requests/index.js +2 -0
  423. package/api/resources/tags/index.d.ts +2 -0
  424. package/api/resources/tags/index.js +18 -0
  425. package/api/resources/tags/types/Tag.d.ts +18 -0
  426. package/api/resources/tags/types/Tag.js +5 -0
  427. package/api/resources/tags/types/TagsCreateRequestBody.d.ts +5 -0
  428. package/api/resources/tags/types/TagsCreateRequestBody.js +5 -0
  429. package/api/resources/tags/types/index.d.ts +2 -0
  430. package/api/resources/tags/types/index.js +18 -0
  431. package/api/resources/teams/client/Client.d.ts +61 -0
  432. package/api/resources/teams/client/Client.js +178 -0
  433. package/api/resources/teams/client/index.d.ts +1 -0
  434. package/api/resources/teams/client/index.js +17 -0
  435. package/api/resources/teams/client/requests/FindTeamRequest.d.ts +15 -0
  436. package/api/resources/teams/client/requests/FindTeamRequest.js +5 -0
  437. package/api/resources/teams/client/requests/index.d.ts +1 -0
  438. package/api/resources/teams/client/requests/index.js +2 -0
  439. package/api/resources/teams/index.d.ts +2 -0
  440. package/api/resources/teams/index.js +18 -0
  441. package/api/resources/teams/types/Team.d.ts +18 -0
  442. package/api/resources/teams/types/Team.js +5 -0
  443. package/api/resources/teams/types/index.d.ts +1 -0
  444. package/api/resources/teams/types/index.js +17 -0
  445. package/api/resources/ticketTypes/client/Client.d.ts +104 -0
  446. package/api/resources/ticketTypes/client/Client.js +317 -0
  447. package/api/resources/ticketTypes/client/index.d.ts +1 -0
  448. package/api/resources/ticketTypes/client/index.js +17 -0
  449. package/api/resources/ticketTypes/client/requests/CreateTicketTypeRequest.d.ts +35 -0
  450. package/api/resources/ticketTypes/client/requests/CreateTicketTypeRequest.js +14 -0
  451. package/api/resources/ticketTypes/client/requests/FindTicketTypeRequest.d.ts +15 -0
  452. package/api/resources/ticketTypes/client/requests/FindTicketTypeRequest.js +5 -0
  453. package/api/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +39 -0
  454. package/api/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.js +14 -0
  455. package/api/resources/ticketTypes/client/requests/index.d.ts +3 -0
  456. package/api/resources/ticketTypes/client/requests/index.js +2 -0
  457. package/api/resources/ticketTypes/index.d.ts +2 -0
  458. package/api/resources/ticketTypes/index.js +18 -0
  459. package/api/resources/ticketTypes/resources/attributes/client/Client.d.ts +66 -0
  460. package/api/resources/ticketTypes/resources/attributes/client/Client.js +195 -0
  461. package/api/resources/ticketTypes/resources/attributes/client/index.d.ts +1 -0
  462. package/api/resources/ticketTypes/resources/attributes/client/index.js +17 -0
  463. package/api/resources/ticketTypes/resources/attributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +54 -0
  464. package/api/resources/ticketTypes/resources/attributes/client/requests/CreateTicketTypeAttributeRequest.js +18 -0
  465. package/api/resources/ticketTypes/resources/attributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +41 -0
  466. package/api/resources/ticketTypes/resources/attributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
  467. package/api/resources/ticketTypes/resources/attributes/client/requests/index.d.ts +2 -0
  468. package/api/resources/ticketTypes/resources/attributes/client/requests/index.js +2 -0
  469. package/api/resources/ticketTypes/resources/attributes/index.d.ts +1 -0
  470. package/api/resources/ticketTypes/resources/attributes/index.js +17 -0
  471. package/api/resources/ticketTypes/resources/index.d.ts +2 -0
  472. package/api/resources/ticketTypes/resources/index.js +31 -0
  473. package/api/resources/tickets/client/Client.d.ts +267 -0
  474. package/api/resources/tickets/client/Client.js +534 -0
  475. package/api/resources/tickets/client/index.d.ts +1 -0
  476. package/api/resources/tickets/client/index.js +17 -0
  477. package/api/resources/tickets/client/requests/CreateTicketRequest.d.ts +40 -0
  478. package/api/resources/tickets/client/requests/CreateTicketRequest.js +5 -0
  479. package/api/resources/tickets/client/requests/FindTicketRequest.d.ts +15 -0
  480. package/api/resources/tickets/client/requests/FindTicketRequest.js +5 -0
  481. package/api/resources/tickets/client/requests/ReplyToTicketRequest.d.ts +81 -0
  482. package/api/resources/tickets/client/requests/ReplyToTicketRequest.js +5 -0
  483. package/api/resources/tickets/client/requests/UpdateTicketRequest.d.ts +82 -0
  484. package/api/resources/tickets/client/requests/UpdateTicketRequest.js +14 -0
  485. package/api/resources/tickets/client/requests/index.d.ts +4 -0
  486. package/api/resources/tickets/client/requests/index.js +2 -0
  487. package/api/resources/tickets/index.d.ts +2 -0
  488. package/api/resources/tickets/index.js +18 -0
  489. package/api/resources/tickets/types/Ticket.d.ts +63 -0
  490. package/api/resources/tickets/types/Ticket.js +20 -0
  491. package/api/resources/tickets/types/TicketContacts.d.ts +13 -0
  492. package/api/resources/tickets/types/TicketContacts.js +5 -0
  493. package/api/resources/tickets/types/TicketPart.d.ts +56 -0
  494. package/api/resources/tickets/types/TicketPart.js +21 -0
  495. package/api/resources/tickets/types/TicketType.d.ts +41 -0
  496. package/api/resources/tickets/types/TicketType.js +14 -0
  497. package/api/resources/tickets/types/TicketsReplyRequestBody.d.ts +5 -0
  498. package/api/resources/tickets/types/TicketsReplyRequestBody.js +5 -0
  499. package/api/resources/tickets/types/index.d.ts +5 -0
  500. package/api/resources/tickets/types/index.js +21 -0
  501. package/api/resources/visitors/client/Client.d.ts +101 -0
  502. package/api/resources/visitors/client/Client.js +266 -0
  503. package/api/resources/visitors/client/index.d.ts +1 -0
  504. package/api/resources/visitors/client/index.js +17 -0
  505. package/api/resources/visitors/client/requests/FindVisitorRequest.d.ts +15 -0
  506. package/api/resources/visitors/client/requests/FindVisitorRequest.js +5 -0
  507. package/api/resources/visitors/client/requests/MergeVisitorToContactRequest.d.ts +46 -0
  508. package/api/resources/visitors/client/requests/MergeVisitorToContactRequest.js +5 -0
  509. package/api/resources/visitors/client/requests/index.d.ts +2 -0
  510. package/api/resources/visitors/client/requests/index.js +2 -0
  511. package/api/resources/visitors/index.d.ts +1 -0
  512. package/api/resources/visitors/index.js +17 -0
  513. package/api/types/ActivityLog.d.ts +104 -0
  514. package/api/types/ActivityLog.js +78 -0
  515. package/api/types/ActivityLogList.d.ts +14 -0
  516. package/api/types/ActivityLogList.js +5 -0
  517. package/api/types/ActivityLogMetadata.d.ts +26 -0
  518. package/api/types/ActivityLogMetadata.js +5 -0
  519. package/api/types/AddressableList.d.ts +14 -0
  520. package/api/types/AddressableList.js +5 -0
  521. package/api/types/AdminList.d.ts +13 -0
  522. package/api/types/AdminList.js +5 -0
  523. package/api/types/AdminPriorityLevel.d.ts +12 -0
  524. package/api/types/AdminPriorityLevel.js +5 -0
  525. package/api/types/AdminReplyConversationRequest.d.ts +28 -0
  526. package/api/types/AdminReplyConversationRequest.js +13 -0
  527. package/api/types/AdminReplyTicketRequest.d.ts +37 -0
  528. package/api/types/AdminReplyTicketRequest.js +14 -0
  529. package/api/types/AdminWithApp.d.ts +44 -0
  530. package/api/types/AdminWithApp.js +5 -0
  531. package/api/types/App.d.ts +22 -0
  532. package/api/types/App.js +5 -0
  533. package/api/types/ArticleContent.d.ts +36 -0
  534. package/api/types/ArticleContent.js +13 -0
  535. package/api/types/ArticleList.d.ts +16 -0
  536. package/api/types/ArticleList.js +5 -0
  537. package/api/types/ArticleStatistics.d.ts +22 -0
  538. package/api/types/ArticleStatistics.js +5 -0
  539. package/api/types/ArticleTranslatedContent.d.ts +85 -0
  540. package/api/types/ArticleTranslatedContent.js +5 -0
  541. package/api/types/AssignConversationRequest.d.ts +22 -0
  542. package/api/types/AssignConversationRequest.js +13 -0
  543. package/api/types/CloseConversationRequest.d.ts +13 -0
  544. package/api/types/CloseConversationRequest.js +5 -0
  545. package/api/types/CollectionList.d.ts +16 -0
  546. package/api/types/CollectionList.js +5 -0
  547. package/api/types/CompanyAttachedContacts.d.ts +16 -0
  548. package/api/types/CompanyAttachedContacts.js +5 -0
  549. package/api/types/CompanyAttachedSegments.d.ts +13 -0
  550. package/api/types/CompanyAttachedSegments.js +5 -0
  551. package/api/types/CompanyList.d.ts +16 -0
  552. package/api/types/CompanyList.js +5 -0
  553. package/api/types/CompanyScroll.d.ts +17 -0
  554. package/api/types/CompanyScroll.js +5 -0
  555. package/api/types/ContactArchived.d.ts +16 -0
  556. package/api/types/ContactArchived.js +5 -0
  557. package/api/types/ContactAttachedCompanies.d.ts +16 -0
  558. package/api/types/ContactAttachedCompanies.js +5 -0
  559. package/api/types/ContactCompanies.d.ts +14 -0
  560. package/api/types/ContactCompanies.js +5 -0
  561. package/api/types/ContactDeleted.d.ts +16 -0
  562. package/api/types/ContactDeleted.js +5 -0
  563. package/api/types/ContactList.d.ts +16 -0
  564. package/api/types/ContactList.js +5 -0
  565. package/api/types/ContactLocation.d.ts +16 -0
  566. package/api/types/ContactLocation.js +5 -0
  567. package/api/types/ContactNotes.d.ts +17 -0
  568. package/api/types/ContactNotes.js +5 -0
  569. package/api/types/ContactReference.d.ts +14 -0
  570. package/api/types/ContactReference.js +5 -0
  571. package/api/types/ContactReplyBaseRequest.d.ts +13 -0
  572. package/api/types/ContactReplyBaseRequest.js +5 -0
  573. package/api/types/ContactReplyConversationRequest.d.ts +5 -0
  574. package/api/types/ContactReplyConversationRequest.js +5 -0
  575. package/api/types/ContactReplyEmailRequest.d.ts +13 -0
  576. package/api/types/ContactReplyEmailRequest.js +5 -0
  577. package/api/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
  578. package/api/types/ContactReplyIntercomUserIdRequest.js +5 -0
  579. package/api/types/ContactReplyTicketEmailRequest.d.ts +11 -0
  580. package/api/types/ContactReplyTicketEmailRequest.js +5 -0
  581. package/api/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
  582. package/api/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
  583. package/api/types/ContactReplyTicketRequest.d.ts +5 -0
  584. package/api/types/ContactReplyTicketRequest.js +5 -0
  585. package/api/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
  586. package/api/types/ContactReplyTicketUserIdRequest.js +5 -0
  587. package/api/types/ContactReplyUserIdRequest.d.ts +13 -0
  588. package/api/types/ContactReplyUserIdRequest.js +5 -0
  589. package/api/types/ContactSegments.d.ts +13 -0
  590. package/api/types/ContactSegments.js +5 -0
  591. package/api/types/ContactSocialProfiles.d.ts +11 -0
  592. package/api/types/ContactSocialProfiles.js +5 -0
  593. package/api/types/ContactSubscriptionTypes.d.ts +17 -0
  594. package/api/types/ContactSubscriptionTypes.js +5 -0
  595. package/api/types/ContactTags.d.ts +17 -0
  596. package/api/types/ContactTags.js +5 -0
  597. package/api/types/ContactUnarchived.d.ts +16 -0
  598. package/api/types/ContactUnarchived.js +5 -0
  599. package/api/types/ContentSourcesList.d.ts +11 -0
  600. package/api/types/ContentSourcesList.js +5 -0
  601. package/api/types/ConversationAttachmentFiles.d.ts +14 -0
  602. package/api/types/ConversationAttachmentFiles.js +5 -0
  603. package/api/types/ConversationContacts.d.ts +12 -0
  604. package/api/types/ConversationContacts.js +5 -0
  605. package/api/types/ConversationFirstContactReply.d.ts +14 -0
  606. package/api/types/ConversationFirstContactReply.js +5 -0
  607. package/api/types/ConversationPart.d.ts +32 -0
  608. package/api/types/ConversationPart.js +5 -0
  609. package/api/types/ConversationPartAuthor.d.ts +16 -0
  610. package/api/types/ConversationPartAuthor.js +5 -0
  611. package/api/types/ConversationParts.d.ts +15 -0
  612. package/api/types/ConversationParts.js +5 -0
  613. package/api/types/ConversationRating.d.ts +17 -0
  614. package/api/types/ConversationRating.js +5 -0
  615. package/api/types/ConversationSource.d.ts +26 -0
  616. package/api/types/ConversationSource.js +5 -0
  617. package/api/types/ConversationStatistics.d.ts +46 -0
  618. package/api/types/ConversationStatistics.js +5 -0
  619. package/api/types/ConversationTeammates.d.ts +13 -0
  620. package/api/types/ConversationTeammates.js +5 -0
  621. package/api/types/CreateContactRequest.d.ts +37 -0
  622. package/api/types/CreateContactRequest.js +5 -0
  623. package/api/types/CreateDataEventRequest.d.ts +22 -0
  624. package/api/types/CreateDataEventRequest.js +5 -0
  625. package/api/types/CreateMessageRequest.d.ts +104 -0
  626. package/api/types/CreateMessageRequest.js +29 -0
  627. package/api/types/CreateOrUpdateTagRequest.d.ts +12 -0
  628. package/api/types/CreateOrUpdateTagRequest.js +5 -0
  629. package/api/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
  630. package/api/types/CreateTicketReplyWithCommentRequest.js +5 -0
  631. package/api/types/CursorPages.d.ts +19 -0
  632. package/api/types/CursorPages.js +5 -0
  633. package/api/types/CustomAttributes.d.ts +11 -0
  634. package/api/types/CustomAttributes.js +5 -0
  635. package/api/types/CustomerRequest.d.ts +10 -0
  636. package/api/types/CustomerRequest.js +5 -0
  637. package/api/types/DataAttributeList.d.ts +13 -0
  638. package/api/types/DataAttributeList.js +5 -0
  639. package/api/types/DataEventList.d.ts +24 -0
  640. package/api/types/DataEventList.js +5 -0
  641. package/api/types/DataEventSummary.d.ts +19 -0
  642. package/api/types/DataEventSummary.js +5 -0
  643. package/api/types/DataEventSummaryItem.d.ts +18 -0
  644. package/api/types/DataEventSummaryItem.js +5 -0
  645. package/api/types/DataExportCsv.d.ts +60 -0
  646. package/api/types/DataExportCsv.js +5 -0
  647. package/api/types/DeletedArticleObject.d.ts +14 -0
  648. package/api/types/DeletedArticleObject.js +5 -0
  649. package/api/types/DeletedCollectionObject.d.ts +14 -0
  650. package/api/types/DeletedCollectionObject.js +5 -0
  651. package/api/types/DeletedCompanyObject.d.ts +14 -0
  652. package/api/types/DeletedCompanyObject.js +5 -0
  653. package/api/types/DeletedObject.d.ts +14 -0
  654. package/api/types/DeletedObject.js +5 -0
  655. package/api/types/Error_.d.ts +27 -0
  656. package/api/types/Error_.js +5 -0
  657. package/api/types/FileAttribute.d.ts +21 -0
  658. package/api/types/FileAttribute.js +5 -0
  659. package/api/types/GroupContent.d.ts +14 -0
  660. package/api/types/GroupContent.js +5 -0
  661. package/api/types/GroupTranslatedContent.d.ts +85 -0
  662. package/api/types/GroupTranslatedContent.js +5 -0
  663. package/api/types/LinkedObject.d.ts +24 -0
  664. package/api/types/LinkedObject.js +13 -0
  665. package/api/types/LinkedObjectList.d.ts +17 -0
  666. package/api/types/LinkedObjectList.js +5 -0
  667. package/api/types/MultipleFilterSearchRequest.d.ts +29 -0
  668. package/api/types/MultipleFilterSearchRequest.js +13 -0
  669. package/api/types/NewsItemRequest.d.ts +35 -0
  670. package/api/types/NewsItemRequest.js +13 -0
  671. package/api/types/NoteList.d.ts +16 -0
  672. package/api/types/NoteList.js +5 -0
  673. package/api/types/OpenConversationRequest.d.ts +10 -0
  674. package/api/types/OpenConversationRequest.js +5 -0
  675. package/api/types/PagesLink.d.ts +16 -0
  676. package/api/types/PagesLink.js +5 -0
  677. package/api/types/PaginatedConversationResponse.d.ts +16 -0
  678. package/api/types/PaginatedConversationResponse.js +5 -0
  679. package/api/types/PaginatedNewsItemResponse.d.ts +16 -0
  680. package/api/types/PaginatedNewsItemResponse.js +5 -0
  681. package/api/types/PaginatedNewsfeedResponse.d.ts +16 -0
  682. package/api/types/PaginatedNewsfeedResponse.js +5 -0
  683. package/api/types/PartAttachment.d.ts +22 -0
  684. package/api/types/PartAttachment.js +5 -0
  685. package/api/types/PhoneSwitch.d.ts +12 -0
  686. package/api/types/PhoneSwitch.js +5 -0
  687. package/api/types/RedactConversationRequest.d.ts +27 -0
  688. package/api/types/RedactConversationRequest.js +5 -0
  689. package/api/types/Reference.d.ts +12 -0
  690. package/api/types/Reference.js +5 -0
  691. package/api/types/ReplyConversationRequest.d.ts +5 -0
  692. package/api/types/ReplyConversationRequest.js +5 -0
  693. package/api/types/SearchRequest.d.ts +14 -0
  694. package/api/types/SearchRequest.js +5 -0
  695. package/api/types/SegmentList.d.ts +15 -0
  696. package/api/types/SegmentList.js +5 -0
  697. package/api/types/SingleFilterSearchRequest.d.ts +32 -0
  698. package/api/types/SingleFilterSearchRequest.js +21 -0
  699. package/api/types/SlaApplied.d.ts +35 -0
  700. package/api/types/SlaApplied.js +15 -0
  701. package/api/types/SnoozeConversationRequest.d.ts +12 -0
  702. package/api/types/SnoozeConversationRequest.js +5 -0
  703. package/api/types/SocialProfile.d.ts +14 -0
  704. package/api/types/SocialProfile.js +5 -0
  705. package/api/types/StartingAfterPaging.d.ts +9 -0
  706. package/api/types/StartingAfterPaging.js +5 -0
  707. package/api/types/SubscriptionTypeList.d.ts +13 -0
  708. package/api/types/SubscriptionTypeList.js +5 -0
  709. package/api/types/TagCompanyRequest.d.ts +23 -0
  710. package/api/types/TagCompanyRequest.js +5 -0
  711. package/api/types/TagList.d.ts +13 -0
  712. package/api/types/TagList.js +5 -0
  713. package/api/types/TagMultipleUsersRequest.d.ts +20 -0
  714. package/api/types/TagMultipleUsersRequest.js +5 -0
  715. package/api/types/Tags.d.ts +13 -0
  716. package/api/types/Tags.js +5 -0
  717. package/api/types/TeamList.d.ts +13 -0
  718. package/api/types/TeamList.js +5 -0
  719. package/api/types/TeamPriorityLevel.d.ts +12 -0
  720. package/api/types/TeamPriorityLevel.js +5 -0
  721. package/api/types/TicketCustomAttributes.d.ts +11 -0
  722. package/api/types/TicketCustomAttributes.js +5 -0
  723. package/api/types/TicketList.d.ts +16 -0
  724. package/api/types/TicketList.js +5 -0
  725. package/api/types/TicketPartAuthor.d.ts +28 -0
  726. package/api/types/TicketPartAuthor.js +15 -0
  727. package/api/types/TicketParts.d.ts +15 -0
  728. package/api/types/TicketParts.js +5 -0
  729. package/api/types/TicketReply.d.ts +37 -0
  730. package/api/types/TicketReply.js +14 -0
  731. package/api/types/TicketRequestCustomAttributes.d.ts +10 -0
  732. package/api/types/TicketRequestCustomAttributes.js +5 -0
  733. package/api/types/TicketTypeAttribute.d.ts +42 -0
  734. package/api/types/TicketTypeAttribute.js +5 -0
  735. package/api/types/TicketTypeAttributeList.d.ts +13 -0
  736. package/api/types/TicketTypeAttributeList.js +5 -0
  737. package/api/types/TicketTypeList.d.ts +13 -0
  738. package/api/types/TicketTypeList.js +5 -0
  739. package/api/types/Translation.d.ts +14 -0
  740. package/api/types/Translation.js +5 -0
  741. package/api/types/UntagCompanyRequest.d.ts +25 -0
  742. package/api/types/UntagCompanyRequest.js +5 -0
  743. package/api/types/UpdateVisitorRequest.d.ts +15 -0
  744. package/api/types/UpdateVisitorRequest.js +5 -0
  745. package/api/types/Visitor.d.ts +128 -0
  746. package/api/types/Visitor.js +5 -0
  747. package/api/types/VisitorDeletedObject.d.ts +14 -0
  748. package/api/types/VisitorDeletedObject.js +5 -0
  749. package/api/types/index.d.ts +118 -0
  750. package/api/types/index.js +134 -0
  751. package/api/version.d.ts +5 -0
  752. package/api/version.js +5 -0
  753. package/core/auth/BasicAuth.d.ts +8 -0
  754. package/core/auth/BasicAuth.js +26 -0
  755. package/core/auth/BearerToken.d.ts +5 -0
  756. package/core/auth/BearerToken.js +15 -0
  757. package/core/auth/index.d.ts +2 -0
  758. package/core/auth/index.js +7 -0
  759. package/core/fetcher/APIResponse.d.ts +10 -0
  760. package/core/fetcher/APIResponse.js +2 -0
  761. package/core/fetcher/Fetcher.d.ts +39 -0
  762. package/core/fetcher/Fetcher.js +99 -0
  763. package/core/fetcher/Supplier.d.ts +4 -0
  764. package/core/fetcher/Supplier.js +22 -0
  765. package/core/fetcher/createRequestUrl.d.ts +1 -0
  766. package/core/fetcher/createRequestUrl.js +13 -0
  767. package/core/fetcher/getFetchFn.d.ts +4 -0
  768. package/core/fetcher/getFetchFn.js +59 -0
  769. package/core/fetcher/getHeader.d.ts +1 -0
  770. package/core/fetcher/getHeader.js +12 -0
  771. package/core/fetcher/getRequestBody.d.ts +7 -0
  772. package/core/fetcher/getRequestBody.js +23 -0
  773. package/core/fetcher/getResponseBody.d.ts +1 -0
  774. package/core/fetcher/getResponseBody.js +55 -0
  775. package/core/fetcher/index.d.ts +5 -0
  776. package/core/fetcher/index.js +9 -0
  777. package/core/fetcher/makeRequest.d.ts +1 -0
  778. package/core/fetcher/makeRequest.js +42 -0
  779. package/core/fetcher/requestWithRetries.d.ts +1 -0
  780. package/core/fetcher/requestWithRetries.js +41 -0
  781. package/core/fetcher/signals.d.ts +12 -0
  782. package/core/fetcher/signals.js +37 -0
  783. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  784. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  785. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  786. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  787. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  788. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  789. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  790. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  791. package/core/index.d.ts +5 -0
  792. package/core/index.js +21 -0
  793. package/core/pagination/Page.d.ts +29 -0
  794. package/core/pagination/Page.js +94 -0
  795. package/core/pagination/Pageable.d.ts +12 -0
  796. package/core/pagination/Pageable.js +10 -0
  797. package/core/pagination/index.d.ts +2 -0
  798. package/core/pagination/index.js +7 -0
  799. package/core/runtime/index.d.ts +1 -0
  800. package/core/runtime/index.js +5 -0
  801. package/core/runtime/runtime.d.ts +9 -0
  802. package/core/runtime/runtime.js +93 -0
  803. package/core/utils/index.d.ts +1 -0
  804. package/core/utils/index.js +5 -0
  805. package/core/utils/setObjectProperty.d.ts +11 -0
  806. package/core/utils/setObjectProperty.js +43 -0
  807. package/dist/Client.d.ts +90 -0
  808. package/dist/Client.js +112 -0
  809. package/dist/api/errors/BadRequestError.d.ts +7 -0
  810. package/dist/api/errors/BadRequestError.js +41 -0
  811. package/dist/api/errors/ForbiddenError.d.ts +8 -0
  812. package/dist/api/errors/ForbiddenError.js +41 -0
  813. package/dist/api/errors/NotFoundError.d.ts +7 -0
  814. package/dist/api/errors/NotFoundError.js +41 -0
  815. package/dist/api/errors/UnauthorizedError.d.ts +8 -0
  816. package/dist/api/errors/UnauthorizedError.js +41 -0
  817. package/dist/api/errors/UnprocessableEntityError.d.ts +7 -0
  818. package/dist/api/errors/UnprocessableEntityError.js +41 -0
  819. package/dist/api/errors/index.d.ts +5 -0
  820. package/dist/api/errors/index.js +21 -0
  821. package/dist/api/index.d.ts +4 -0
  822. package/dist/api/index.js +19 -0
  823. package/dist/api/resources/admins/client/Client.d.ts +107 -0
  824. package/dist/api/resources/admins/client/Client.js +364 -0
  825. package/dist/api/resources/admins/client/index.d.ts +1 -0
  826. package/dist/api/resources/admins/client/index.js +17 -0
  827. package/dist/api/resources/admins/client/requests/ConfigureAwayAdminRequest.d.ts +35 -0
  828. package/dist/api/resources/admins/client/requests/ConfigureAwayAdminRequest.js +5 -0
  829. package/dist/api/resources/admins/client/requests/FindAdminRequest.d.ts +15 -0
  830. package/dist/api/resources/admins/client/requests/FindAdminRequest.js +5 -0
  831. package/dist/api/resources/admins/client/requests/ListAllActivityLogsRequest.d.ts +20 -0
  832. package/dist/api/resources/admins/client/requests/ListAllActivityLogsRequest.js +5 -0
  833. package/dist/api/resources/admins/client/requests/index.d.ts +3 -0
  834. package/dist/api/resources/admins/client/requests/index.js +2 -0
  835. package/dist/api/resources/admins/index.d.ts +2 -0
  836. package/dist/api/resources/admins/index.js +18 -0
  837. package/dist/api/resources/admins/types/Admin.d.ts +30 -0
  838. package/dist/api/resources/admins/types/Admin.js +5 -0
  839. package/dist/api/resources/admins/types/index.d.ts +1 -0
  840. package/dist/api/resources/admins/types/index.js +17 -0
  841. package/dist/api/resources/aiAgent/index.d.ts +1 -0
  842. package/dist/api/resources/aiAgent/index.js +17 -0
  843. package/dist/api/resources/aiAgent/types/AiAgent.d.ts +35 -0
  844. package/dist/api/resources/aiAgent/types/AiAgent.js +16 -0
  845. package/dist/api/resources/aiAgent/types/index.d.ts +1 -0
  846. package/dist/api/resources/aiAgent/types/index.js +17 -0
  847. package/dist/api/resources/aiContentSource/index.d.ts +1 -0
  848. package/dist/api/resources/aiContentSource/index.js +17 -0
  849. package/dist/api/resources/aiContentSource/types/ContentSource.d.ts +29 -0
  850. package/dist/api/resources/aiContentSource/types/ContentSource.js +16 -0
  851. package/dist/api/resources/aiContentSource/types/index.d.ts +1 -0
  852. package/dist/api/resources/aiContentSource/types/index.js +17 -0
  853. package/dist/api/resources/articles/client/Client.d.ts +153 -0
  854. package/dist/api/resources/articles/client/Client.js +491 -0
  855. package/dist/api/resources/articles/client/index.d.ts +1 -0
  856. package/dist/api/resources/articles/client/index.js +17 -0
  857. package/dist/api/resources/articles/client/requests/CreateArticleRequest.d.ts +62 -0
  858. package/dist/api/resources/articles/client/requests/CreateArticleRequest.js +13 -0
  859. package/dist/api/resources/articles/client/requests/DeleteArticleRequest.d.ts +15 -0
  860. package/dist/api/resources/articles/client/requests/DeleteArticleRequest.js +5 -0
  861. package/dist/api/resources/articles/client/requests/FindArticleRequest.d.ts +15 -0
  862. package/dist/api/resources/articles/client/requests/FindArticleRequest.js +5 -0
  863. package/dist/api/resources/articles/client/requests/ListArticlesRequest.d.ts +17 -0
  864. package/dist/api/resources/articles/client/requests/ListArticlesRequest.js +5 -0
  865. package/dist/api/resources/articles/client/requests/SearchArticlesRequest.d.ts +28 -0
  866. package/dist/api/resources/articles/client/requests/SearchArticlesRequest.js +5 -0
  867. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +50 -0
  868. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.js +13 -0
  869. package/dist/api/resources/articles/client/requests/index.d.ts +6 -0
  870. package/dist/api/resources/articles/client/requests/index.js +2 -0
  871. package/dist/api/resources/articles/index.d.ts +2 -0
  872. package/dist/api/resources/articles/index.js +18 -0
  873. package/dist/api/resources/articles/types/Article.d.ts +10 -0
  874. package/dist/api/resources/articles/types/Article.js +5 -0
  875. package/dist/api/resources/articles/types/ArticleListItem.d.ts +50 -0
  876. package/dist/api/resources/articles/types/ArticleListItem.js +13 -0
  877. package/dist/api/resources/articles/types/ArticleSearchHighlights.d.ts +60 -0
  878. package/dist/api/resources/articles/types/ArticleSearchHighlights.js +29 -0
  879. package/dist/api/resources/articles/types/SearchArticlesResponse.d.ts +27 -0
  880. package/dist/api/resources/articles/types/SearchArticlesResponse.js +5 -0
  881. package/dist/api/resources/articles/types/index.d.ts +4 -0
  882. package/dist/api/resources/articles/types/index.js +20 -0
  883. package/dist/api/resources/companies/client/Client.d.ts +263 -0
  884. package/dist/api/resources/companies/client/Client.js +855 -0
  885. package/dist/api/resources/companies/client/index.d.ts +1 -0
  886. package/dist/api/resources/companies/client/index.js +17 -0
  887. package/dist/api/resources/companies/client/requests/AttachContactToCompanyRequest.d.ts +30 -0
  888. package/dist/api/resources/companies/client/requests/AttachContactToCompanyRequest.js +5 -0
  889. package/dist/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +34 -0
  890. package/dist/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.js +5 -0
  891. package/dist/api/resources/companies/client/requests/DeleteCompanyRequest.d.ts +15 -0
  892. package/dist/api/resources/companies/client/requests/DeleteCompanyRequest.js +5 -0
  893. package/dist/api/resources/companies/client/requests/DetachContactFromCompanyRequest.d.ts +20 -0
  894. package/dist/api/resources/companies/client/requests/DetachContactFromCompanyRequest.js +5 -0
  895. package/dist/api/resources/companies/client/requests/FindCompanyRequest.d.ts +15 -0
  896. package/dist/api/resources/companies/client/requests/FindCompanyRequest.js +5 -0
  897. package/dist/api/resources/companies/client/requests/ListAttachedContactsRequest.d.ts +23 -0
  898. package/dist/api/resources/companies/client/requests/ListAttachedContactsRequest.js +5 -0
  899. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +23 -0
  900. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.js +5 -0
  901. package/dist/api/resources/companies/client/requests/ListSegmentsAttachedToCompanyRequest.d.ts +15 -0
  902. package/dist/api/resources/companies/client/requests/ListSegmentsAttachedToCompanyRequest.js +5 -0
  903. package/dist/api/resources/companies/client/requests/RetrieveCompanyRequest.d.ts +38 -0
  904. package/dist/api/resources/companies/client/requests/RetrieveCompanyRequest.js +5 -0
  905. package/dist/api/resources/companies/client/requests/ScrollCompaniesRequest.d.ts +13 -0
  906. package/dist/api/resources/companies/client/requests/ScrollCompaniesRequest.js +5 -0
  907. package/dist/api/resources/companies/client/requests/UpdateCompanyRequest.d.ts +15 -0
  908. package/dist/api/resources/companies/client/requests/UpdateCompanyRequest.js +5 -0
  909. package/dist/api/resources/companies/client/requests/index.d.ts +11 -0
  910. package/dist/api/resources/companies/client/requests/index.js +2 -0
  911. package/dist/api/resources/companies/index.d.ts +2 -0
  912. package/dist/api/resources/companies/index.js +18 -0
  913. package/dist/api/resources/companies/types/Company.d.ts +72 -0
  914. package/dist/api/resources/companies/types/Company.js +5 -0
  915. package/dist/api/resources/companies/types/index.d.ts +1 -0
  916. package/dist/api/resources/companies/types/index.js +17 -0
  917. package/dist/api/resources/contacts/client/Client.d.ts +383 -0
  918. package/dist/api/resources/contacts/client/Client.js +1113 -0
  919. package/dist/api/resources/contacts/client/index.d.ts +1 -0
  920. package/dist/api/resources/contacts/client/index.js +17 -0
  921. package/dist/api/resources/contacts/client/requests/ArchiveContactRequest.d.ts +15 -0
  922. package/dist/api/resources/contacts/client/requests/ArchiveContactRequest.js +5 -0
  923. package/dist/api/resources/contacts/client/requests/AttachSubscriptionToContactRequest.d.ts +35 -0
  924. package/dist/api/resources/contacts/client/requests/AttachSubscriptionToContactRequest.js +5 -0
  925. package/dist/api/resources/contacts/client/requests/DeleteContactRequest.d.ts +15 -0
  926. package/dist/api/resources/contacts/client/requests/DeleteContactRequest.js +5 -0
  927. package/dist/api/resources/contacts/client/requests/DetachSubscriptionFromContactRequest.d.ts +20 -0
  928. package/dist/api/resources/contacts/client/requests/DetachSubscriptionFromContactRequest.js +5 -0
  929. package/dist/api/resources/contacts/client/requests/FindContactRequest.d.ts +15 -0
  930. package/dist/api/resources/contacts/client/requests/FindContactRequest.js +5 -0
  931. package/dist/api/resources/contacts/client/requests/ListAttachedCompaniesRequest.d.ts +23 -0
  932. package/dist/api/resources/contacts/client/requests/ListAttachedCompaniesRequest.js +5 -0
  933. package/dist/api/resources/contacts/client/requests/ListAttachedSubscriptionsRequest.d.ts +15 -0
  934. package/dist/api/resources/contacts/client/requests/ListAttachedSubscriptionsRequest.js +5 -0
  935. package/dist/api/resources/contacts/client/requests/ListContactsRequest.d.ts +21 -0
  936. package/dist/api/resources/contacts/client/requests/ListContactsRequest.js +5 -0
  937. package/dist/api/resources/contacts/client/requests/ListSegmentsAttachedToContactRequest.d.ts +15 -0
  938. package/dist/api/resources/contacts/client/requests/ListSegmentsAttachedToContactRequest.js +5 -0
  939. package/dist/api/resources/contacts/client/requests/ListTagsAttachedToContactRequest.d.ts +15 -0
  940. package/dist/api/resources/contacts/client/requests/ListTagsAttachedToContactRequest.js +5 -0
  941. package/dist/api/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
  942. package/dist/api/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
  943. package/dist/api/resources/contacts/client/requests/UnarchiveContactRequest.d.ts +15 -0
  944. package/dist/api/resources/contacts/client/requests/UnarchiveContactRequest.js +5 -0
  945. package/dist/api/resources/contacts/client/requests/UpdateContactRequest.d.ts +39 -0
  946. package/dist/api/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
  947. package/dist/api/resources/contacts/client/requests/index.d.ts +13 -0
  948. package/dist/api/resources/contacts/client/requests/index.js +2 -0
  949. package/dist/api/resources/contacts/index.d.ts +2 -0
  950. package/dist/api/resources/contacts/index.js +18 -0
  951. package/dist/api/resources/contacts/types/Contact.d.ts +103 -0
  952. package/dist/api/resources/contacts/types/Contact.js +5 -0
  953. package/dist/api/resources/contacts/types/index.d.ts +1 -0
  954. package/dist/api/resources/contacts/types/index.js +17 -0
  955. package/dist/api/resources/conversations/client/Client.d.ts +487 -0
  956. package/dist/api/resources/conversations/client/Client.js +1113 -0
  957. package/dist/api/resources/conversations/client/index.d.ts +1 -0
  958. package/dist/api/resources/conversations/client/index.js +17 -0
  959. package/dist/api/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +44 -0
  960. package/dist/api/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
  961. package/dist/api/resources/conversations/client/requests/AutoAssignConversationRequest.d.ts +15 -0
  962. package/dist/api/resources/conversations/client/requests/AutoAssignConversationRequest.js +5 -0
  963. package/dist/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +26 -0
  964. package/dist/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
  965. package/dist/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +46 -0
  966. package/dist/api/resources/conversations/client/requests/CreateConversationRequest.js +17 -0
  967. package/dist/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +44 -0
  968. package/dist/api/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
  969. package/dist/api/resources/conversations/client/requests/FindConversationRequest.d.ts +20 -0
  970. package/dist/api/resources/conversations/client/requests/FindConversationRequest.js +5 -0
  971. package/dist/api/resources/conversations/client/requests/ListConversationsRequest.d.ts +17 -0
  972. package/dist/api/resources/conversations/client/requests/ListConversationsRequest.js +5 -0
  973. package/dist/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +72 -0
  974. package/dist/api/resources/conversations/client/requests/ManageConversationPartsRequest.js +5 -0
  975. package/dist/api/resources/conversations/client/requests/ReplyToConversationRequest.d.ts +89 -0
  976. package/dist/api/resources/conversations/client/requests/ReplyToConversationRequest.js +5 -0
  977. package/dist/api/resources/conversations/client/requests/UpdateConversationRequest.d.ts +40 -0
  978. package/dist/api/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
  979. package/dist/api/resources/conversations/client/requests/index.d.ts +10 -0
  980. package/dist/api/resources/conversations/client/requests/index.js +2 -0
  981. package/dist/api/resources/conversations/index.d.ts +2 -0
  982. package/dist/api/resources/conversations/index.js +18 -0
  983. package/dist/api/resources/conversations/types/Conversation.d.ts +68 -0
  984. package/dist/api/resources/conversations/types/Conversation.js +18 -0
  985. package/dist/api/resources/conversations/types/ConversationsManageRequestBody.d.ts +19 -0
  986. package/dist/api/resources/conversations/types/ConversationsManageRequestBody.js +5 -0
  987. package/dist/api/resources/conversations/types/index.d.ts +2 -0
  988. package/dist/api/resources/conversations/types/index.js +18 -0
  989. package/dist/api/resources/customObjectInstances/index.d.ts +1 -0
  990. package/dist/api/resources/customObjectInstances/index.js +17 -0
  991. package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +16 -0
  992. package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
  993. package/dist/api/resources/customObjectInstances/types/index.d.ts +1 -0
  994. package/dist/api/resources/customObjectInstances/types/index.js +17 -0
  995. package/dist/api/resources/dataAttributes/client/Client.d.ts +149 -0
  996. package/dist/api/resources/dataAttributes/client/Client.js +335 -0
  997. package/dist/api/resources/dataAttributes/client/index.d.ts +1 -0
  998. package/dist/api/resources/dataAttributes/client/index.js +17 -0
  999. package/dist/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +84 -0
  1000. package/dist/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +21 -0
  1001. package/dist/api/resources/dataAttributes/client/requests/ListDataAttributesRequest.d.ts +18 -0
  1002. package/dist/api/resources/dataAttributes/client/requests/ListDataAttributesRequest.js +5 -0
  1003. package/dist/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +69 -0
  1004. package/dist/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
  1005. package/dist/api/resources/dataAttributes/client/requests/index.d.ts +3 -0
  1006. package/dist/api/resources/dataAttributes/client/requests/index.js +2 -0
  1007. package/dist/api/resources/dataAttributes/index.d.ts +2 -0
  1008. package/dist/api/resources/dataAttributes/index.js +18 -0
  1009. package/dist/api/resources/dataAttributes/types/DataAttribute.d.ts +63 -0
  1010. package/dist/api/resources/dataAttributes/types/DataAttribute.js +20 -0
  1011. package/dist/api/resources/dataAttributes/types/DataAttributesListRequestModel.d.ts +9 -0
  1012. package/dist/api/resources/dataAttributes/types/DataAttributesListRequestModel.js +11 -0
  1013. package/dist/api/resources/dataAttributes/types/index.d.ts +2 -0
  1014. package/dist/api/resources/dataAttributes/types/index.js +18 -0
  1015. package/dist/api/resources/dataEvents/index.d.ts +1 -0
  1016. package/dist/api/resources/dataEvents/index.js +17 -0
  1017. package/dist/api/resources/dataEvents/types/DataEvent.d.ts +24 -0
  1018. package/dist/api/resources/dataEvents/types/DataEvent.js +5 -0
  1019. package/dist/api/resources/dataEvents/types/index.d.ts +1 -0
  1020. package/dist/api/resources/dataEvents/types/index.js +17 -0
  1021. package/dist/api/resources/dataExport/client/Client.d.ts +108 -0
  1022. package/dist/api/resources/dataExport/client/Client.js +287 -0
  1023. package/dist/api/resources/dataExport/client/index.d.ts +1 -0
  1024. package/dist/api/resources/dataExport/client/index.js +17 -0
  1025. package/dist/api/resources/dataExport/client/requests/CancelDataExportRequest.d.ts +15 -0
  1026. package/dist/api/resources/dataExport/client/requests/CancelDataExportRequest.js +5 -0
  1027. package/dist/api/resources/dataExport/client/requests/CreateDataExportRequest.d.ts +16 -0
  1028. package/dist/api/resources/dataExport/client/requests/CreateDataExportRequest.js +5 -0
  1029. package/dist/api/resources/dataExport/client/requests/DownloadDataExportRequest.d.ts +15 -0
  1030. package/dist/api/resources/dataExport/client/requests/DownloadDataExportRequest.js +5 -0
  1031. package/dist/api/resources/dataExport/client/requests/FindDataExportRequest.d.ts +15 -0
  1032. package/dist/api/resources/dataExport/client/requests/FindDataExportRequest.js +5 -0
  1033. package/dist/api/resources/dataExport/client/requests/index.d.ts +4 -0
  1034. package/dist/api/resources/dataExport/client/requests/index.js +2 -0
  1035. package/dist/api/resources/dataExport/index.d.ts +2 -0
  1036. package/dist/api/resources/dataExport/index.js +18 -0
  1037. package/dist/api/resources/dataExport/types/DataExport.d.ts +30 -0
  1038. package/dist/api/resources/dataExport/types/DataExport.js +17 -0
  1039. package/dist/api/resources/dataExport/types/index.d.ts +1 -0
  1040. package/dist/api/resources/dataExport/types/index.js +17 -0
  1041. package/dist/api/resources/events/client/Client.d.ts +129 -0
  1042. package/dist/api/resources/events/client/Client.js +305 -0
  1043. package/dist/api/resources/events/client/index.d.ts +1 -0
  1044. package/dist/api/resources/events/client/index.js +17 -0
  1045. package/dist/api/resources/events/client/requests/ListEventSummariesRequest.d.ts +28 -0
  1046. package/dist/api/resources/events/client/requests/ListEventSummariesRequest.js +5 -0
  1047. package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +35 -0
  1048. package/dist/api/resources/events/client/requests/ListEventsRequest.js +5 -0
  1049. package/dist/api/resources/events/client/requests/index.d.ts +2 -0
  1050. package/dist/api/resources/events/client/requests/index.js +2 -0
  1051. package/dist/api/resources/events/index.d.ts +1 -0
  1052. package/dist/api/resources/events/index.js +17 -0
  1053. package/dist/api/resources/helpCenter/index.d.ts +1 -0
  1054. package/dist/api/resources/helpCenter/index.js +17 -0
  1055. package/dist/api/resources/helpCenter/types/Collection.d.ts +34 -0
  1056. package/dist/api/resources/helpCenter/types/Collection.js +5 -0
  1057. package/dist/api/resources/helpCenter/types/HelpCenter.d.ts +22 -0
  1058. package/dist/api/resources/helpCenter/types/HelpCenter.js +5 -0
  1059. package/dist/api/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
  1060. package/dist/api/resources/helpCenter/types/HelpCenterList.js +5 -0
  1061. package/dist/api/resources/helpCenter/types/index.d.ts +3 -0
  1062. package/dist/api/resources/helpCenter/types/index.js +19 -0
  1063. package/dist/api/resources/helpCenters/client/Client.d.ts +62 -0
  1064. package/dist/api/resources/helpCenters/client/Client.js +202 -0
  1065. package/dist/api/resources/helpCenters/client/index.d.ts +1 -0
  1066. package/dist/api/resources/helpCenters/client/index.js +17 -0
  1067. package/dist/api/resources/helpCenters/client/requests/FindHelpCenterRequest.d.ts +15 -0
  1068. package/dist/api/resources/helpCenters/client/requests/FindHelpCenterRequest.js +5 -0
  1069. package/dist/api/resources/helpCenters/client/requests/ListHelpCentersRequest.d.ts +17 -0
  1070. package/dist/api/resources/helpCenters/client/requests/ListHelpCentersRequest.js +5 -0
  1071. package/dist/api/resources/helpCenters/client/requests/index.d.ts +2 -0
  1072. package/dist/api/resources/helpCenters/client/requests/index.js +2 -0
  1073. package/dist/api/resources/helpCenters/index.d.ts +2 -0
  1074. package/dist/api/resources/helpCenters/index.js +18 -0
  1075. package/dist/api/resources/helpCenters/resources/collections/client/Client.d.ts +113 -0
  1076. package/dist/api/resources/helpCenters/resources/collections/client/Client.js +395 -0
  1077. package/dist/api/resources/helpCenters/resources/collections/client/index.d.ts +1 -0
  1078. package/dist/api/resources/helpCenters/resources/collections/client/index.js +17 -0
  1079. package/dist/api/resources/helpCenters/resources/collections/client/requests/CreateCollectionRequest.d.ts +27 -0
  1080. package/dist/api/resources/helpCenters/resources/collections/client/requests/CreateCollectionRequest.js +5 -0
  1081. package/dist/api/resources/helpCenters/resources/collections/client/requests/DeleteCollectionRequest.d.ts +15 -0
  1082. package/dist/api/resources/helpCenters/resources/collections/client/requests/DeleteCollectionRequest.js +5 -0
  1083. package/dist/api/resources/helpCenters/resources/collections/client/requests/FindCollectionRequest.d.ts +15 -0
  1084. package/dist/api/resources/helpCenters/resources/collections/client/requests/FindCollectionRequest.js +5 -0
  1085. package/dist/api/resources/helpCenters/resources/collections/client/requests/ListCollectionsRequest.d.ts +17 -0
  1086. package/dist/api/resources/helpCenters/resources/collections/client/requests/ListCollectionsRequest.js +5 -0
  1087. package/dist/api/resources/helpCenters/resources/collections/client/requests/UpdateCollectionRequest.d.ts +30 -0
  1088. package/dist/api/resources/helpCenters/resources/collections/client/requests/UpdateCollectionRequest.js +5 -0
  1089. package/dist/api/resources/helpCenters/resources/collections/client/requests/index.d.ts +5 -0
  1090. package/dist/api/resources/helpCenters/resources/collections/client/requests/index.js +2 -0
  1091. package/dist/api/resources/helpCenters/resources/collections/index.d.ts +1 -0
  1092. package/dist/api/resources/helpCenters/resources/collections/index.js +17 -0
  1093. package/dist/api/resources/helpCenters/resources/index.d.ts +2 -0
  1094. package/dist/api/resources/helpCenters/resources/index.js +31 -0
  1095. package/dist/api/resources/index.d.ts +62 -0
  1096. package/dist/api/resources/index.js +91 -0
  1097. package/dist/api/resources/messages/client/Client.d.ts +147 -0
  1098. package/dist/api/resources/messages/client/Client.js +227 -0
  1099. package/dist/api/resources/messages/client/index.d.ts +1 -0
  1100. package/dist/api/resources/messages/client/index.js +2 -0
  1101. package/dist/api/resources/messages/index.d.ts +2 -0
  1102. package/dist/api/resources/messages/index.js +18 -0
  1103. package/dist/api/resources/messages/types/Message.d.ts +34 -0
  1104. package/dist/api/resources/messages/types/Message.js +15 -0
  1105. package/dist/api/resources/messages/types/index.d.ts +1 -0
  1106. package/dist/api/resources/messages/types/index.js +17 -0
  1107. package/dist/api/resources/news/client/Client.d.ts +36 -0
  1108. package/dist/api/resources/news/client/Client.js +22 -0
  1109. package/dist/api/resources/news/client/index.d.ts +1 -0
  1110. package/dist/api/resources/news/client/index.js +2 -0
  1111. package/dist/api/resources/news/index.d.ts +3 -0
  1112. package/dist/api/resources/news/index.js +19 -0
  1113. package/dist/api/resources/news/resources/feeds/client/Client.d.ts +71 -0
  1114. package/dist/api/resources/news/resources/feeds/client/Client.js +228 -0
  1115. package/dist/api/resources/news/resources/feeds/client/index.d.ts +1 -0
  1116. package/dist/api/resources/news/resources/feeds/client/index.js +17 -0
  1117. package/dist/api/resources/news/resources/feeds/client/requests/FindNewsFeedRequest.d.ts +15 -0
  1118. package/dist/api/resources/news/resources/feeds/client/requests/FindNewsFeedRequest.js +5 -0
  1119. package/dist/api/resources/news/resources/feeds/client/requests/ListNewsFeedItemsRequest.d.ts +15 -0
  1120. package/dist/api/resources/news/resources/feeds/client/requests/ListNewsFeedItemsRequest.js +5 -0
  1121. package/dist/api/resources/news/resources/feeds/client/requests/index.d.ts +2 -0
  1122. package/dist/api/resources/news/resources/feeds/client/requests/index.js +2 -0
  1123. package/dist/api/resources/news/resources/feeds/index.d.ts +1 -0
  1124. package/dist/api/resources/news/resources/feeds/index.js +17 -0
  1125. package/dist/api/resources/news/resources/index.d.ts +4 -0
  1126. package/dist/api/resources/news/resources/index.js +33 -0
  1127. package/dist/api/resources/news/resources/items/client/Client.d.ts +127 -0
  1128. package/dist/api/resources/news/resources/items/client/Client.js +375 -0
  1129. package/dist/api/resources/news/resources/items/client/index.d.ts +1 -0
  1130. package/dist/api/resources/news/resources/items/client/index.js +17 -0
  1131. package/dist/api/resources/news/resources/items/client/requests/DeleteNewsItemRequest.d.ts +15 -0
  1132. package/dist/api/resources/news/resources/items/client/requests/DeleteNewsItemRequest.js +5 -0
  1133. package/dist/api/resources/news/resources/items/client/requests/FindNewsItemRequest.d.ts +15 -0
  1134. package/dist/api/resources/news/resources/items/client/requests/FindNewsItemRequest.js +5 -0
  1135. package/dist/api/resources/news/resources/items/client/requests/UpdateNewsItemRequest.d.ts +34 -0
  1136. package/dist/api/resources/news/resources/items/client/requests/UpdateNewsItemRequest.js +5 -0
  1137. package/dist/api/resources/news/resources/items/client/requests/index.d.ts +3 -0
  1138. package/dist/api/resources/news/resources/items/client/requests/index.js +2 -0
  1139. package/dist/api/resources/news/resources/items/index.d.ts +1 -0
  1140. package/dist/api/resources/news/resources/items/index.js +17 -0
  1141. package/dist/api/resources/news/types/NewsItem.d.ts +47 -0
  1142. package/dist/api/resources/news/types/NewsItem.js +13 -0
  1143. package/dist/api/resources/news/types/Newsfeed.d.ts +20 -0
  1144. package/dist/api/resources/news/types/Newsfeed.js +5 -0
  1145. package/dist/api/resources/news/types/NewsfeedAssignment.d.ts +12 -0
  1146. package/dist/api/resources/news/types/NewsfeedAssignment.js +5 -0
  1147. package/dist/api/resources/news/types/index.d.ts +3 -0
  1148. package/dist/api/resources/news/types/index.js +19 -0
  1149. package/dist/api/resources/notes/client/Client.d.ts +80 -0
  1150. package/dist/api/resources/notes/client/Client.js +272 -0
  1151. package/dist/api/resources/notes/client/index.d.ts +1 -0
  1152. package/dist/api/resources/notes/client/index.js +17 -0
  1153. package/dist/api/resources/notes/client/requests/CreateContactNoteRequest.d.ts +35 -0
  1154. package/dist/api/resources/notes/client/requests/CreateContactNoteRequest.js +5 -0
  1155. package/dist/api/resources/notes/client/requests/FindNoteRequest.d.ts +15 -0
  1156. package/dist/api/resources/notes/client/requests/FindNoteRequest.js +5 -0
  1157. package/dist/api/resources/notes/client/requests/ListContactNotesRequest.d.ts +23 -0
  1158. package/dist/api/resources/notes/client/requests/ListContactNotesRequest.js +5 -0
  1159. package/dist/api/resources/notes/client/requests/index.d.ts +3 -0
  1160. package/dist/api/resources/notes/client/requests/index.js +2 -0
  1161. package/dist/api/resources/notes/index.d.ts +2 -0
  1162. package/dist/api/resources/notes/index.js +18 -0
  1163. package/dist/api/resources/notes/types/Note.d.ts +32 -0
  1164. package/dist/api/resources/notes/types/Note.js +5 -0
  1165. package/dist/api/resources/notes/types/index.d.ts +1 -0
  1166. package/dist/api/resources/notes/types/index.js +17 -0
  1167. package/dist/api/resources/phoneCallRedirects/client/Client.d.ts +64 -0
  1168. package/dist/api/resources/phoneCallRedirects/client/Client.js +142 -0
  1169. package/dist/api/resources/phoneCallRedirects/client/index.d.ts +1 -0
  1170. package/dist/api/resources/phoneCallRedirects/client/index.js +17 -0
  1171. package/dist/api/resources/phoneCallRedirects/client/requests/CreatePhoneCallRedirectRequest.d.ts +46 -0
  1172. package/dist/api/resources/phoneCallRedirects/client/requests/CreatePhoneCallRedirectRequest.js +5 -0
  1173. package/dist/api/resources/phoneCallRedirects/client/requests/index.d.ts +1 -0
  1174. package/dist/api/resources/phoneCallRedirects/client/requests/index.js +2 -0
  1175. package/dist/api/resources/phoneCallRedirects/index.d.ts +1 -0
  1176. package/dist/api/resources/phoneCallRedirects/index.js +17 -0
  1177. package/dist/api/resources/segments/client/Client.d.ts +62 -0
  1178. package/dist/api/resources/segments/client/Client.js +185 -0
  1179. package/dist/api/resources/segments/client/index.d.ts +1 -0
  1180. package/dist/api/resources/segments/client/index.js +17 -0
  1181. package/dist/api/resources/segments/client/requests/FindSegmentRequest.d.ts +15 -0
  1182. package/dist/api/resources/segments/client/requests/FindSegmentRequest.js +5 -0
  1183. package/dist/api/resources/segments/client/requests/ListSegmentsRequest.d.ts +13 -0
  1184. package/dist/api/resources/segments/client/requests/ListSegmentsRequest.js +5 -0
  1185. package/dist/api/resources/segments/client/requests/index.d.ts +2 -0
  1186. package/dist/api/resources/segments/client/requests/index.js +2 -0
  1187. package/dist/api/resources/segments/index.d.ts +2 -0
  1188. package/dist/api/resources/segments/index.js +18 -0
  1189. package/dist/api/resources/segments/types/Segment.d.ts +32 -0
  1190. package/dist/api/resources/segments/types/Segment.js +13 -0
  1191. package/dist/api/resources/segments/types/index.d.ts +1 -0
  1192. package/dist/api/resources/segments/types/index.js +17 -0
  1193. package/dist/api/resources/subscriptionTypes/client/Client.d.ts +46 -0
  1194. package/dist/api/resources/subscriptionTypes/client/Client.js +119 -0
  1195. package/dist/api/resources/subscriptionTypes/client/index.d.ts +1 -0
  1196. package/dist/api/resources/subscriptionTypes/client/index.js +2 -0
  1197. package/dist/api/resources/subscriptionTypes/index.d.ts +2 -0
  1198. package/dist/api/resources/subscriptionTypes/index.js +18 -0
  1199. package/dist/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +49 -0
  1200. package/dist/api/resources/subscriptionTypes/types/SubscriptionType.js +25 -0
  1201. package/dist/api/resources/subscriptionTypes/types/index.d.ts +1 -0
  1202. package/dist/api/resources/subscriptionTypes/types/index.js +17 -0
  1203. package/dist/api/resources/tags/client/Client.d.ts +234 -0
  1204. package/dist/api/resources/tags/client/Client.js +723 -0
  1205. package/dist/api/resources/tags/client/index.d.ts +1 -0
  1206. package/dist/api/resources/tags/client/index.js +17 -0
  1207. package/dist/api/resources/tags/client/requests/DeleteTagRequest.d.ts +15 -0
  1208. package/dist/api/resources/tags/client/requests/DeleteTagRequest.js +5 -0
  1209. package/dist/api/resources/tags/client/requests/FindTagRequest.d.ts +15 -0
  1210. package/dist/api/resources/tags/client/requests/FindTagRequest.js +5 -0
  1211. package/dist/api/resources/tags/client/requests/TagContactRequest.d.ts +30 -0
  1212. package/dist/api/resources/tags/client/requests/TagContactRequest.js +5 -0
  1213. package/dist/api/resources/tags/client/requests/TagConversationRequest.d.ts +28 -0
  1214. package/dist/api/resources/tags/client/requests/TagConversationRequest.js +5 -0
  1215. package/dist/api/resources/tags/client/requests/TagTicketRequest.d.ts +28 -0
  1216. package/dist/api/resources/tags/client/requests/TagTicketRequest.js +5 -0
  1217. package/dist/api/resources/tags/client/requests/UntagContactRequest.d.ts +20 -0
  1218. package/dist/api/resources/tags/client/requests/UntagContactRequest.js +5 -0
  1219. package/dist/api/resources/tags/client/requests/UntagConversationRequest.d.ts +37 -0
  1220. package/dist/api/resources/tags/client/requests/UntagConversationRequest.js +5 -0
  1221. package/dist/api/resources/tags/client/requests/UntagTicketRequest.d.ts +37 -0
  1222. package/dist/api/resources/tags/client/requests/UntagTicketRequest.js +5 -0
  1223. package/dist/api/resources/tags/client/requests/index.d.ts +8 -0
  1224. package/dist/api/resources/tags/client/requests/index.js +2 -0
  1225. package/dist/api/resources/tags/index.d.ts +2 -0
  1226. package/dist/api/resources/tags/index.js +18 -0
  1227. package/dist/api/resources/tags/types/Tag.d.ts +18 -0
  1228. package/dist/api/resources/tags/types/Tag.js +5 -0
  1229. package/dist/api/resources/tags/types/TagsCreateRequestBody.d.ts +5 -0
  1230. package/dist/api/resources/tags/types/TagsCreateRequestBody.js +5 -0
  1231. package/dist/api/resources/tags/types/index.d.ts +2 -0
  1232. package/dist/api/resources/tags/types/index.js +18 -0
  1233. package/dist/api/resources/teams/client/Client.d.ts +61 -0
  1234. package/dist/api/resources/teams/client/Client.js +178 -0
  1235. package/dist/api/resources/teams/client/index.d.ts +1 -0
  1236. package/dist/api/resources/teams/client/index.js +17 -0
  1237. package/dist/api/resources/teams/client/requests/FindTeamRequest.d.ts +15 -0
  1238. package/dist/api/resources/teams/client/requests/FindTeamRequest.js +5 -0
  1239. package/dist/api/resources/teams/client/requests/index.d.ts +1 -0
  1240. package/dist/api/resources/teams/client/requests/index.js +2 -0
  1241. package/dist/api/resources/teams/index.d.ts +2 -0
  1242. package/dist/api/resources/teams/index.js +18 -0
  1243. package/dist/api/resources/teams/types/Team.d.ts +18 -0
  1244. package/dist/api/resources/teams/types/Team.js +5 -0
  1245. package/dist/api/resources/teams/types/index.d.ts +1 -0
  1246. package/dist/api/resources/teams/types/index.js +17 -0
  1247. package/dist/api/resources/ticketTypes/client/Client.d.ts +104 -0
  1248. package/dist/api/resources/ticketTypes/client/Client.js +317 -0
  1249. package/dist/api/resources/ticketTypes/client/index.d.ts +1 -0
  1250. package/dist/api/resources/ticketTypes/client/index.js +17 -0
  1251. package/dist/api/resources/ticketTypes/client/requests/CreateTicketTypeRequest.d.ts +35 -0
  1252. package/dist/api/resources/ticketTypes/client/requests/CreateTicketTypeRequest.js +14 -0
  1253. package/dist/api/resources/ticketTypes/client/requests/FindTicketTypeRequest.d.ts +15 -0
  1254. package/dist/api/resources/ticketTypes/client/requests/FindTicketTypeRequest.js +5 -0
  1255. package/dist/api/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +39 -0
  1256. package/dist/api/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.js +14 -0
  1257. package/dist/api/resources/ticketTypes/client/requests/index.d.ts +3 -0
  1258. package/dist/api/resources/ticketTypes/client/requests/index.js +2 -0
  1259. package/dist/api/resources/ticketTypes/index.d.ts +2 -0
  1260. package/dist/api/resources/ticketTypes/index.js +18 -0
  1261. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.d.ts +66 -0
  1262. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +195 -0
  1263. package/dist/api/resources/ticketTypes/resources/attributes/client/index.d.ts +1 -0
  1264. package/dist/api/resources/ticketTypes/resources/attributes/client/index.js +17 -0
  1265. package/dist/api/resources/ticketTypes/resources/attributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +54 -0
  1266. package/dist/api/resources/ticketTypes/resources/attributes/client/requests/CreateTicketTypeAttributeRequest.js +18 -0
  1267. package/dist/api/resources/ticketTypes/resources/attributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +41 -0
  1268. package/dist/api/resources/ticketTypes/resources/attributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
  1269. package/dist/api/resources/ticketTypes/resources/attributes/client/requests/index.d.ts +2 -0
  1270. package/dist/api/resources/ticketTypes/resources/attributes/client/requests/index.js +2 -0
  1271. package/dist/api/resources/ticketTypes/resources/attributes/index.d.ts +1 -0
  1272. package/dist/api/resources/ticketTypes/resources/attributes/index.js +17 -0
  1273. package/dist/api/resources/ticketTypes/resources/index.d.ts +2 -0
  1274. package/dist/api/resources/ticketTypes/resources/index.js +31 -0
  1275. package/dist/api/resources/tickets/client/Client.d.ts +267 -0
  1276. package/dist/api/resources/tickets/client/Client.js +534 -0
  1277. package/dist/api/resources/tickets/client/index.d.ts +1 -0
  1278. package/dist/api/resources/tickets/client/index.js +17 -0
  1279. package/dist/api/resources/tickets/client/requests/CreateTicketRequest.d.ts +40 -0
  1280. package/dist/api/resources/tickets/client/requests/CreateTicketRequest.js +5 -0
  1281. package/dist/api/resources/tickets/client/requests/FindTicketRequest.d.ts +15 -0
  1282. package/dist/api/resources/tickets/client/requests/FindTicketRequest.js +5 -0
  1283. package/dist/api/resources/tickets/client/requests/ReplyToTicketRequest.d.ts +81 -0
  1284. package/dist/api/resources/tickets/client/requests/ReplyToTicketRequest.js +5 -0
  1285. package/dist/api/resources/tickets/client/requests/UpdateTicketRequest.d.ts +82 -0
  1286. package/dist/api/resources/tickets/client/requests/UpdateTicketRequest.js +14 -0
  1287. package/dist/api/resources/tickets/client/requests/index.d.ts +4 -0
  1288. package/dist/api/resources/tickets/client/requests/index.js +2 -0
  1289. package/dist/api/resources/tickets/index.d.ts +2 -0
  1290. package/dist/api/resources/tickets/index.js +18 -0
  1291. package/dist/api/resources/tickets/types/Ticket.d.ts +63 -0
  1292. package/dist/api/resources/tickets/types/Ticket.js +20 -0
  1293. package/dist/api/resources/tickets/types/TicketContacts.d.ts +13 -0
  1294. package/dist/api/resources/tickets/types/TicketContacts.js +5 -0
  1295. package/dist/api/resources/tickets/types/TicketPart.d.ts +56 -0
  1296. package/dist/api/resources/tickets/types/TicketPart.js +21 -0
  1297. package/dist/api/resources/tickets/types/TicketType.d.ts +41 -0
  1298. package/dist/api/resources/tickets/types/TicketType.js +14 -0
  1299. package/dist/api/resources/tickets/types/TicketsReplyRequestBody.d.ts +5 -0
  1300. package/dist/api/resources/tickets/types/TicketsReplyRequestBody.js +5 -0
  1301. package/dist/api/resources/tickets/types/index.d.ts +5 -0
  1302. package/dist/api/resources/tickets/types/index.js +21 -0
  1303. package/dist/api/resources/visitors/client/Client.d.ts +101 -0
  1304. package/dist/api/resources/visitors/client/Client.js +266 -0
  1305. package/dist/api/resources/visitors/client/index.d.ts +1 -0
  1306. package/dist/api/resources/visitors/client/index.js +17 -0
  1307. package/dist/api/resources/visitors/client/requests/FindVisitorRequest.d.ts +15 -0
  1308. package/dist/api/resources/visitors/client/requests/FindVisitorRequest.js +5 -0
  1309. package/dist/api/resources/visitors/client/requests/MergeVisitorToContactRequest.d.ts +46 -0
  1310. package/dist/api/resources/visitors/client/requests/MergeVisitorToContactRequest.js +5 -0
  1311. package/dist/api/resources/visitors/client/requests/index.d.ts +2 -0
  1312. package/dist/api/resources/visitors/client/requests/index.js +2 -0
  1313. package/dist/api/resources/visitors/index.d.ts +1 -0
  1314. package/dist/api/resources/visitors/index.js +17 -0
  1315. package/dist/api/types/ActivityLog.d.ts +104 -0
  1316. package/dist/api/types/ActivityLog.js +78 -0
  1317. package/dist/api/types/ActivityLogList.d.ts +14 -0
  1318. package/dist/api/types/ActivityLogList.js +5 -0
  1319. package/dist/api/types/ActivityLogMetadata.d.ts +26 -0
  1320. package/dist/api/types/ActivityLogMetadata.js +5 -0
  1321. package/dist/api/types/AddressableList.d.ts +14 -0
  1322. package/dist/api/types/AddressableList.js +5 -0
  1323. package/dist/api/types/AdminList.d.ts +13 -0
  1324. package/dist/api/types/AdminList.js +5 -0
  1325. package/dist/api/types/AdminPriorityLevel.d.ts +12 -0
  1326. package/dist/api/types/AdminPriorityLevel.js +5 -0
  1327. package/dist/api/types/AdminReplyConversationRequest.d.ts +28 -0
  1328. package/dist/api/types/AdminReplyConversationRequest.js +13 -0
  1329. package/dist/api/types/AdminReplyTicketRequest.d.ts +37 -0
  1330. package/dist/api/types/AdminReplyTicketRequest.js +14 -0
  1331. package/dist/api/types/AdminWithApp.d.ts +44 -0
  1332. package/dist/api/types/AdminWithApp.js +5 -0
  1333. package/dist/api/types/App.d.ts +22 -0
  1334. package/dist/api/types/App.js +5 -0
  1335. package/dist/api/types/ArticleContent.d.ts +36 -0
  1336. package/dist/api/types/ArticleContent.js +13 -0
  1337. package/dist/api/types/ArticleList.d.ts +16 -0
  1338. package/dist/api/types/ArticleList.js +5 -0
  1339. package/dist/api/types/ArticleStatistics.d.ts +22 -0
  1340. package/dist/api/types/ArticleStatistics.js +5 -0
  1341. package/dist/api/types/ArticleTranslatedContent.d.ts +85 -0
  1342. package/dist/api/types/ArticleTranslatedContent.js +5 -0
  1343. package/dist/api/types/AssignConversationRequest.d.ts +22 -0
  1344. package/dist/api/types/AssignConversationRequest.js +13 -0
  1345. package/dist/api/types/CloseConversationRequest.d.ts +13 -0
  1346. package/dist/api/types/CloseConversationRequest.js +5 -0
  1347. package/dist/api/types/CollectionList.d.ts +16 -0
  1348. package/dist/api/types/CollectionList.js +5 -0
  1349. package/dist/api/types/CompanyAttachedContacts.d.ts +16 -0
  1350. package/dist/api/types/CompanyAttachedContacts.js +5 -0
  1351. package/dist/api/types/CompanyAttachedSegments.d.ts +13 -0
  1352. package/dist/api/types/CompanyAttachedSegments.js +5 -0
  1353. package/dist/api/types/CompanyList.d.ts +16 -0
  1354. package/dist/api/types/CompanyList.js +5 -0
  1355. package/dist/api/types/CompanyScroll.d.ts +17 -0
  1356. package/dist/api/types/CompanyScroll.js +5 -0
  1357. package/dist/api/types/ContactArchived.d.ts +16 -0
  1358. package/dist/api/types/ContactArchived.js +5 -0
  1359. package/dist/api/types/ContactAttachedCompanies.d.ts +16 -0
  1360. package/dist/api/types/ContactAttachedCompanies.js +5 -0
  1361. package/dist/api/types/ContactCompanies.d.ts +14 -0
  1362. package/dist/api/types/ContactCompanies.js +5 -0
  1363. package/dist/api/types/ContactDeleted.d.ts +16 -0
  1364. package/dist/api/types/ContactDeleted.js +5 -0
  1365. package/dist/api/types/ContactList.d.ts +16 -0
  1366. package/dist/api/types/ContactList.js +5 -0
  1367. package/dist/api/types/ContactLocation.d.ts +16 -0
  1368. package/dist/api/types/ContactLocation.js +5 -0
  1369. package/dist/api/types/ContactNotes.d.ts +17 -0
  1370. package/dist/api/types/ContactNotes.js +5 -0
  1371. package/dist/api/types/ContactReference.d.ts +14 -0
  1372. package/dist/api/types/ContactReference.js +5 -0
  1373. package/dist/api/types/ContactReplyBaseRequest.d.ts +13 -0
  1374. package/dist/api/types/ContactReplyBaseRequest.js +5 -0
  1375. package/dist/api/types/ContactReplyConversationRequest.d.ts +5 -0
  1376. package/dist/api/types/ContactReplyConversationRequest.js +5 -0
  1377. package/dist/api/types/ContactReplyEmailRequest.d.ts +13 -0
  1378. package/dist/api/types/ContactReplyEmailRequest.js +5 -0
  1379. package/dist/api/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
  1380. package/dist/api/types/ContactReplyIntercomUserIdRequest.js +5 -0
  1381. package/dist/api/types/ContactReplyTicketEmailRequest.d.ts +11 -0
  1382. package/dist/api/types/ContactReplyTicketEmailRequest.js +5 -0
  1383. package/dist/api/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
  1384. package/dist/api/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
  1385. package/dist/api/types/ContactReplyTicketRequest.d.ts +5 -0
  1386. package/dist/api/types/ContactReplyTicketRequest.js +5 -0
  1387. package/dist/api/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
  1388. package/dist/api/types/ContactReplyTicketUserIdRequest.js +5 -0
  1389. package/dist/api/types/ContactReplyUserIdRequest.d.ts +13 -0
  1390. package/dist/api/types/ContactReplyUserIdRequest.js +5 -0
  1391. package/dist/api/types/ContactSegments.d.ts +13 -0
  1392. package/dist/api/types/ContactSegments.js +5 -0
  1393. package/dist/api/types/ContactSocialProfiles.d.ts +11 -0
  1394. package/dist/api/types/ContactSocialProfiles.js +5 -0
  1395. package/dist/api/types/ContactSubscriptionTypes.d.ts +17 -0
  1396. package/dist/api/types/ContactSubscriptionTypes.js +5 -0
  1397. package/dist/api/types/ContactTags.d.ts +17 -0
  1398. package/dist/api/types/ContactTags.js +5 -0
  1399. package/dist/api/types/ContactUnarchived.d.ts +16 -0
  1400. package/dist/api/types/ContactUnarchived.js +5 -0
  1401. package/dist/api/types/ContentSourcesList.d.ts +11 -0
  1402. package/dist/api/types/ContentSourcesList.js +5 -0
  1403. package/dist/api/types/ConversationAttachmentFiles.d.ts +14 -0
  1404. package/dist/api/types/ConversationAttachmentFiles.js +5 -0
  1405. package/dist/api/types/ConversationContacts.d.ts +12 -0
  1406. package/dist/api/types/ConversationContacts.js +5 -0
  1407. package/dist/api/types/ConversationFirstContactReply.d.ts +14 -0
  1408. package/dist/api/types/ConversationFirstContactReply.js +5 -0
  1409. package/dist/api/types/ConversationPart.d.ts +32 -0
  1410. package/dist/api/types/ConversationPart.js +5 -0
  1411. package/dist/api/types/ConversationPartAuthor.d.ts +16 -0
  1412. package/dist/api/types/ConversationPartAuthor.js +5 -0
  1413. package/dist/api/types/ConversationParts.d.ts +15 -0
  1414. package/dist/api/types/ConversationParts.js +5 -0
  1415. package/dist/api/types/ConversationRating.d.ts +17 -0
  1416. package/dist/api/types/ConversationRating.js +5 -0
  1417. package/dist/api/types/ConversationSource.d.ts +26 -0
  1418. package/dist/api/types/ConversationSource.js +5 -0
  1419. package/dist/api/types/ConversationStatistics.d.ts +46 -0
  1420. package/dist/api/types/ConversationStatistics.js +5 -0
  1421. package/dist/api/types/ConversationTeammates.d.ts +13 -0
  1422. package/dist/api/types/ConversationTeammates.js +5 -0
  1423. package/dist/api/types/CreateContactRequest.d.ts +37 -0
  1424. package/dist/api/types/CreateContactRequest.js +5 -0
  1425. package/dist/api/types/CreateDataEventRequest.d.ts +22 -0
  1426. package/dist/api/types/CreateDataEventRequest.js +5 -0
  1427. package/dist/api/types/CreateMessageRequest.d.ts +104 -0
  1428. package/dist/api/types/CreateMessageRequest.js +29 -0
  1429. package/dist/api/types/CreateOrUpdateTagRequest.d.ts +12 -0
  1430. package/dist/api/types/CreateOrUpdateTagRequest.js +5 -0
  1431. package/dist/api/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
  1432. package/dist/api/types/CreateTicketReplyWithCommentRequest.js +5 -0
  1433. package/dist/api/types/CursorPages.d.ts +19 -0
  1434. package/dist/api/types/CursorPages.js +5 -0
  1435. package/dist/api/types/CustomAttributes.d.ts +11 -0
  1436. package/dist/api/types/CustomAttributes.js +5 -0
  1437. package/dist/api/types/CustomerRequest.d.ts +10 -0
  1438. package/dist/api/types/CustomerRequest.js +5 -0
  1439. package/dist/api/types/DataAttributeList.d.ts +13 -0
  1440. package/dist/api/types/DataAttributeList.js +5 -0
  1441. package/dist/api/types/DataEventList.d.ts +24 -0
  1442. package/dist/api/types/DataEventList.js +5 -0
  1443. package/dist/api/types/DataEventSummary.d.ts +19 -0
  1444. package/dist/api/types/DataEventSummary.js +5 -0
  1445. package/dist/api/types/DataEventSummaryItem.d.ts +18 -0
  1446. package/dist/api/types/DataEventSummaryItem.js +5 -0
  1447. package/dist/api/types/DataExportCsv.d.ts +60 -0
  1448. package/dist/api/types/DataExportCsv.js +5 -0
  1449. package/dist/api/types/DeletedArticleObject.d.ts +14 -0
  1450. package/dist/api/types/DeletedArticleObject.js +5 -0
  1451. package/dist/api/types/DeletedCollectionObject.d.ts +14 -0
  1452. package/dist/api/types/DeletedCollectionObject.js +5 -0
  1453. package/dist/api/types/DeletedCompanyObject.d.ts +14 -0
  1454. package/dist/api/types/DeletedCompanyObject.js +5 -0
  1455. package/dist/api/types/DeletedObject.d.ts +14 -0
  1456. package/dist/api/types/DeletedObject.js +5 -0
  1457. package/dist/api/types/Error_.d.ts +27 -0
  1458. package/dist/api/types/Error_.js +5 -0
  1459. package/dist/api/types/FileAttribute.d.ts +21 -0
  1460. package/dist/api/types/FileAttribute.js +5 -0
  1461. package/dist/api/types/GroupContent.d.ts +14 -0
  1462. package/dist/api/types/GroupContent.js +5 -0
  1463. package/dist/api/types/GroupTranslatedContent.d.ts +85 -0
  1464. package/dist/api/types/GroupTranslatedContent.js +5 -0
  1465. package/dist/api/types/LinkedObject.d.ts +24 -0
  1466. package/dist/api/types/LinkedObject.js +13 -0
  1467. package/dist/api/types/LinkedObjectList.d.ts +17 -0
  1468. package/dist/api/types/LinkedObjectList.js +5 -0
  1469. package/dist/api/types/MultipleFilterSearchRequest.d.ts +29 -0
  1470. package/dist/api/types/MultipleFilterSearchRequest.js +13 -0
  1471. package/dist/api/types/NewsItemRequest.d.ts +35 -0
  1472. package/dist/api/types/NewsItemRequest.js +13 -0
  1473. package/dist/api/types/NoteList.d.ts +16 -0
  1474. package/dist/api/types/NoteList.js +5 -0
  1475. package/dist/api/types/OpenConversationRequest.d.ts +10 -0
  1476. package/dist/api/types/OpenConversationRequest.js +5 -0
  1477. package/dist/api/types/PagesLink.d.ts +16 -0
  1478. package/dist/api/types/PagesLink.js +5 -0
  1479. package/dist/api/types/PaginatedConversationResponse.d.ts +16 -0
  1480. package/dist/api/types/PaginatedConversationResponse.js +5 -0
  1481. package/dist/api/types/PaginatedNewsItemResponse.d.ts +16 -0
  1482. package/dist/api/types/PaginatedNewsItemResponse.js +5 -0
  1483. package/dist/api/types/PaginatedNewsfeedResponse.d.ts +16 -0
  1484. package/dist/api/types/PaginatedNewsfeedResponse.js +5 -0
  1485. package/dist/api/types/PartAttachment.d.ts +22 -0
  1486. package/dist/api/types/PartAttachment.js +5 -0
  1487. package/dist/api/types/PhoneSwitch.d.ts +12 -0
  1488. package/dist/api/types/PhoneSwitch.js +5 -0
  1489. package/dist/api/types/RedactConversationRequest.d.ts +27 -0
  1490. package/dist/api/types/RedactConversationRequest.js +5 -0
  1491. package/dist/api/types/Reference.d.ts +12 -0
  1492. package/dist/api/types/Reference.js +5 -0
  1493. package/dist/api/types/ReplyConversationRequest.d.ts +5 -0
  1494. package/dist/api/types/ReplyConversationRequest.js +5 -0
  1495. package/dist/api/types/SearchRequest.d.ts +14 -0
  1496. package/dist/api/types/SearchRequest.js +5 -0
  1497. package/dist/api/types/SegmentList.d.ts +15 -0
  1498. package/dist/api/types/SegmentList.js +5 -0
  1499. package/dist/api/types/SingleFilterSearchRequest.d.ts +32 -0
  1500. package/dist/api/types/SingleFilterSearchRequest.js +21 -0
  1501. package/dist/api/types/SlaApplied.d.ts +35 -0
  1502. package/dist/api/types/SlaApplied.js +15 -0
  1503. package/dist/api/types/SnoozeConversationRequest.d.ts +12 -0
  1504. package/dist/api/types/SnoozeConversationRequest.js +5 -0
  1505. package/dist/api/types/SocialProfile.d.ts +14 -0
  1506. package/dist/api/types/SocialProfile.js +5 -0
  1507. package/dist/api/types/StartingAfterPaging.d.ts +9 -0
  1508. package/dist/api/types/StartingAfterPaging.js +5 -0
  1509. package/dist/api/types/SubscriptionTypeList.d.ts +13 -0
  1510. package/dist/api/types/SubscriptionTypeList.js +5 -0
  1511. package/dist/api/types/TagCompanyRequest.d.ts +23 -0
  1512. package/dist/api/types/TagCompanyRequest.js +5 -0
  1513. package/dist/api/types/TagList.d.ts +13 -0
  1514. package/dist/api/types/TagList.js +5 -0
  1515. package/dist/api/types/TagMultipleUsersRequest.d.ts +20 -0
  1516. package/dist/api/types/TagMultipleUsersRequest.js +5 -0
  1517. package/dist/api/types/Tags.d.ts +13 -0
  1518. package/dist/api/types/Tags.js +5 -0
  1519. package/dist/api/types/TeamList.d.ts +13 -0
  1520. package/dist/api/types/TeamList.js +5 -0
  1521. package/dist/api/types/TeamPriorityLevel.d.ts +12 -0
  1522. package/dist/api/types/TeamPriorityLevel.js +5 -0
  1523. package/dist/api/types/TicketCustomAttributes.d.ts +11 -0
  1524. package/dist/api/types/TicketCustomAttributes.js +5 -0
  1525. package/dist/api/types/TicketList.d.ts +16 -0
  1526. package/dist/api/types/TicketList.js +5 -0
  1527. package/dist/api/types/TicketPartAuthor.d.ts +28 -0
  1528. package/dist/api/types/TicketPartAuthor.js +15 -0
  1529. package/dist/api/types/TicketParts.d.ts +15 -0
  1530. package/dist/api/types/TicketParts.js +5 -0
  1531. package/dist/api/types/TicketReply.d.ts +37 -0
  1532. package/dist/api/types/TicketReply.js +14 -0
  1533. package/dist/api/types/TicketRequestCustomAttributes.d.ts +10 -0
  1534. package/dist/api/types/TicketRequestCustomAttributes.js +5 -0
  1535. package/dist/api/types/TicketTypeAttribute.d.ts +42 -0
  1536. package/dist/api/types/TicketTypeAttribute.js +5 -0
  1537. package/dist/api/types/TicketTypeAttributeList.d.ts +13 -0
  1538. package/dist/api/types/TicketTypeAttributeList.js +5 -0
  1539. package/dist/api/types/TicketTypeList.d.ts +13 -0
  1540. package/dist/api/types/TicketTypeList.js +5 -0
  1541. package/dist/api/types/Translation.d.ts +14 -0
  1542. package/dist/api/types/Translation.js +5 -0
  1543. package/dist/api/types/UntagCompanyRequest.d.ts +25 -0
  1544. package/dist/api/types/UntagCompanyRequest.js +5 -0
  1545. package/dist/api/types/UpdateVisitorRequest.d.ts +15 -0
  1546. package/dist/api/types/UpdateVisitorRequest.js +5 -0
  1547. package/dist/api/types/Visitor.d.ts +128 -0
  1548. package/dist/api/types/Visitor.js +5 -0
  1549. package/dist/api/types/VisitorDeletedObject.d.ts +14 -0
  1550. package/dist/api/types/VisitorDeletedObject.js +5 -0
  1551. package/dist/api/types/index.d.ts +118 -0
  1552. package/dist/api/types/index.js +134 -0
  1553. package/dist/api/version.d.ts +5 -0
  1554. package/dist/api/version.js +5 -0
  1555. package/dist/core/auth/BasicAuth.d.ts +8 -0
  1556. package/dist/core/auth/BasicAuth.js +26 -0
  1557. package/dist/core/auth/BearerToken.d.ts +5 -0
  1558. package/dist/core/auth/BearerToken.js +15 -0
  1559. package/dist/core/auth/index.d.ts +2 -0
  1560. package/dist/core/auth/index.js +7 -0
  1561. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  1562. package/dist/core/fetcher/APIResponse.js +2 -0
  1563. package/dist/core/fetcher/Fetcher.d.ts +39 -0
  1564. package/dist/core/fetcher/Fetcher.js +99 -0
  1565. package/dist/core/fetcher/Supplier.d.ts +4 -0
  1566. package/dist/core/fetcher/Supplier.js +22 -0
  1567. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  1568. package/dist/core/fetcher/createRequestUrl.js +13 -0
  1569. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  1570. package/dist/core/fetcher/getFetchFn.js +59 -0
  1571. package/dist/core/fetcher/getHeader.d.ts +1 -0
  1572. package/dist/core/fetcher/getHeader.js +12 -0
  1573. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  1574. package/dist/core/fetcher/getRequestBody.js +23 -0
  1575. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  1576. package/dist/core/fetcher/getResponseBody.js +55 -0
  1577. package/dist/core/fetcher/index.d.ts +5 -0
  1578. package/dist/core/fetcher/index.js +9 -0
  1579. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  1580. package/dist/core/fetcher/makeRequest.js +42 -0
  1581. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  1582. package/dist/core/fetcher/requestWithRetries.js +41 -0
  1583. package/dist/core/fetcher/signals.d.ts +12 -0
  1584. package/dist/core/fetcher/signals.js +37 -0
  1585. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  1586. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  1587. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  1588. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  1589. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  1590. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  1591. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  1592. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  1593. package/dist/core/index.d.ts +5 -0
  1594. package/dist/core/index.js +21 -0
  1595. package/dist/core/pagination/Page.d.ts +29 -0
  1596. package/dist/core/pagination/Page.js +94 -0
  1597. package/dist/core/pagination/Pageable.d.ts +12 -0
  1598. package/dist/core/pagination/Pageable.js +10 -0
  1599. package/dist/core/pagination/index.d.ts +2 -0
  1600. package/dist/core/pagination/index.js +7 -0
  1601. package/dist/core/runtime/index.d.ts +1 -0
  1602. package/dist/core/runtime/index.js +5 -0
  1603. package/dist/core/runtime/runtime.d.ts +9 -0
  1604. package/dist/core/runtime/runtime.js +93 -0
  1605. package/dist/core/utils/index.d.ts +1 -0
  1606. package/dist/core/utils/index.js +5 -0
  1607. package/dist/core/utils/setObjectProperty.d.ts +11 -0
  1608. package/dist/core/utils/setObjectProperty.js +43 -0
  1609. package/dist/environments.d.ts +9 -0
  1610. package/dist/environments.js +11 -0
  1611. package/dist/errors/IntercomError.d.ts +12 -0
  1612. package/dist/errors/IntercomError.js +32 -0
  1613. package/dist/errors/IntercomTimeoutError.d.ts +6 -0
  1614. package/dist/errors/IntercomTimeoutError.js +13 -0
  1615. package/dist/errors/index.d.ts +2 -0
  1616. package/dist/errors/index.js +7 -0
  1617. package/dist/index.d.ts +4 -0
  1618. package/dist/index.js +34 -0
  1619. package/dist/version.d.ts +1 -0
  1620. package/dist/version.js +4 -0
  1621. package/environments.d.ts +9 -0
  1622. package/environments.js +11 -0
  1623. package/errors/IntercomError.d.ts +12 -0
  1624. package/errors/IntercomError.js +32 -0
  1625. package/errors/IntercomTimeoutError.d.ts +6 -0
  1626. package/errors/IntercomTimeoutError.js +13 -0
  1627. package/errors/index.d.ts +2 -0
  1628. package/errors/index.js +7 -0
  1629. package/index.d.ts +4 -296
  1630. package/index.js +9 -145
  1631. package/jest.config.js +5 -0
  1632. package/package.json +37 -99
  1633. package/reference.md +7819 -0
  1634. package/version.d.ts +1 -2
  1635. package/version.js +2 -3
  1636. package/CHANGELOG.md +0 -85
  1637. package/_shims/MultipartBody.d.ts +0 -9
  1638. package/_shims/MultipartBody.d.ts.map +0 -1
  1639. package/_shims/MultipartBody.js +0 -16
  1640. package/_shims/MultipartBody.js.map +0 -1
  1641. package/_shims/MultipartBody.mjs +0 -12
  1642. package/_shims/MultipartBody.mjs.map +0 -1
  1643. package/_shims/README.md +0 -46
  1644. package/_shims/auto/runtime-bun.d.ts +0 -5
  1645. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  1646. package/_shims/auto/runtime-bun.js +0 -21
  1647. package/_shims/auto/runtime-bun.js.map +0 -1
  1648. package/_shims/auto/runtime-bun.mjs +0 -2
  1649. package/_shims/auto/runtime-bun.mjs.map +0 -1
  1650. package/_shims/auto/runtime-node.d.ts +0 -5
  1651. package/_shims/auto/runtime-node.d.ts.map +0 -1
  1652. package/_shims/auto/runtime-node.js +0 -21
  1653. package/_shims/auto/runtime-node.js.map +0 -1
  1654. package/_shims/auto/runtime-node.mjs +0 -2
  1655. package/_shims/auto/runtime-node.mjs.map +0 -1
  1656. package/_shims/auto/runtime.d.ts +0 -5
  1657. package/_shims/auto/runtime.d.ts.map +0 -1
  1658. package/_shims/auto/runtime.js +0 -21
  1659. package/_shims/auto/runtime.js.map +0 -1
  1660. package/_shims/auto/runtime.mjs +0 -2
  1661. package/_shims/auto/runtime.mjs.map +0 -1
  1662. package/_shims/auto/types-node.d.ts +0 -5
  1663. package/_shims/auto/types-node.d.ts.map +0 -1
  1664. package/_shims/auto/types-node.js +0 -21
  1665. package/_shims/auto/types-node.js.map +0 -1
  1666. package/_shims/auto/types-node.mjs +0 -2
  1667. package/_shims/auto/types-node.mjs.map +0 -1
  1668. package/_shims/auto/types.d.ts +0 -101
  1669. package/_shims/auto/types.js +0 -3
  1670. package/_shims/auto/types.mjs +0 -3
  1671. package/_shims/bun-runtime.d.ts +0 -6
  1672. package/_shims/bun-runtime.d.ts.map +0 -1
  1673. package/_shims/bun-runtime.js +0 -14
  1674. package/_shims/bun-runtime.js.map +0 -1
  1675. package/_shims/bun-runtime.mjs +0 -10
  1676. package/_shims/bun-runtime.mjs.map +0 -1
  1677. package/_shims/index.d.ts +0 -81
  1678. package/_shims/index.js +0 -13
  1679. package/_shims/index.mjs +0 -7
  1680. package/_shims/manual-types.d.ts +0 -12
  1681. package/_shims/manual-types.js +0 -3
  1682. package/_shims/manual-types.mjs +0 -3
  1683. package/_shims/node-runtime.d.ts +0 -3
  1684. package/_shims/node-runtime.d.ts.map +0 -1
  1685. package/_shims/node-runtime.js +0 -89
  1686. package/_shims/node-runtime.js.map +0 -1
  1687. package/_shims/node-runtime.mjs +0 -56
  1688. package/_shims/node-runtime.mjs.map +0 -1
  1689. package/_shims/node-types.d.ts +0 -42
  1690. package/_shims/node-types.js +0 -3
  1691. package/_shims/node-types.mjs +0 -3
  1692. package/_shims/registry.d.ts +0 -37
  1693. package/_shims/registry.d.ts.map +0 -1
  1694. package/_shims/registry.js +0 -41
  1695. package/_shims/registry.js.map +0 -1
  1696. package/_shims/registry.mjs +0 -37
  1697. package/_shims/registry.mjs.map +0 -1
  1698. package/_shims/web-runtime.d.ts +0 -5
  1699. package/_shims/web-runtime.d.ts.map +0 -1
  1700. package/_shims/web-runtime.js +0 -78
  1701. package/_shims/web-runtime.js.map +0 -1
  1702. package/_shims/web-runtime.mjs +0 -71
  1703. package/_shims/web-runtime.mjs.map +0 -1
  1704. package/_shims/web-types.d.ts +0 -83
  1705. package/_shims/web-types.js +0 -3
  1706. package/_shims/web-types.mjs +0 -3
  1707. package/core.d.ts +0 -239
  1708. package/core.d.ts.map +0 -1
  1709. package/core.js +0 -881
  1710. package/core.js.map +0 -1
  1711. package/core.mjs +0 -850
  1712. package/core.mjs.map +0 -1
  1713. package/error.d.ts +0 -53
  1714. package/error.d.ts.map +0 -1
  1715. package/error.js +0 -143
  1716. package/error.js.map +0 -1
  1717. package/error.mjs +0 -127
  1718. package/error.mjs.map +0 -1
  1719. package/index.d.mts +0 -296
  1720. package/index.d.ts.map +0 -1
  1721. package/index.js.map +0 -1
  1722. package/index.mjs +0 -142
  1723. package/index.mjs.map +0 -1
  1724. package/pagination.d.ts +0 -40
  1725. package/pagination.d.ts.map +0 -1
  1726. package/pagination.js +0 -41
  1727. package/pagination.js.map +0 -1
  1728. package/pagination.mjs +0 -37
  1729. package/pagination.mjs.map +0 -1
  1730. package/resource.d.ts +0 -6
  1731. package/resource.d.ts.map +0 -1
  1732. package/resource.js +0 -11
  1733. package/resource.js.map +0 -1
  1734. package/resource.mjs +0 -7
  1735. package/resource.mjs.map +0 -1
  1736. package/resources/admins/activity-logs.d.ts +0 -144
  1737. package/resources/admins/activity-logs.d.ts.map +0 -1
  1738. package/resources/admins/activity-logs.js +0 -27
  1739. package/resources/admins/activity-logs.js.map +0 -1
  1740. package/resources/admins/activity-logs.mjs +0 -23
  1741. package/resources/admins/activity-logs.mjs.map +0 -1
  1742. package/resources/admins/admins.d.ts +0 -75
  1743. package/resources/admins/admins.d.ts.map +0 -1
  1744. package/resources/admins/admins.js +0 -87
  1745. package/resources/admins/admins.js.map +0 -1
  1746. package/resources/admins/admins.mjs +0 -60
  1747. package/resources/admins/admins.mjs.map +0 -1
  1748. package/resources/admins/index.d.ts +0 -3
  1749. package/resources/admins/index.d.ts.map +0 -1
  1750. package/resources/admins/index.js +0 -9
  1751. package/resources/admins/index.js.map +0 -1
  1752. package/resources/admins/index.mjs +0 -4
  1753. package/resources/admins/index.mjs.map +0 -1
  1754. package/resources/articles.d.ts +0 -496
  1755. package/resources/articles.d.ts.map +0 -1
  1756. package/resources/articles.js +0 -106
  1757. package/resources/articles.js.map +0 -1
  1758. package/resources/articles.mjs +0 -102
  1759. package/resources/articles.mjs.map +0 -1
  1760. package/resources/companies/companies.d.ts +0 -322
  1761. package/resources/companies/companies.d.ts.map +0 -1
  1762. package/resources/companies/companies.js +0 -153
  1763. package/resources/companies/companies.js.map +0 -1
  1764. package/resources/companies/companies.mjs +0 -126
  1765. package/resources/companies/companies.mjs.map +0 -1
  1766. package/resources/companies/contacts.d.ts +0 -47
  1767. package/resources/companies/contacts.d.ts.map +0 -1
  1768. package/resources/companies/contacts.js +0 -27
  1769. package/resources/companies/contacts.js.map +0 -1
  1770. package/resources/companies/contacts.mjs +0 -23
  1771. package/resources/companies/contacts.mjs.map +0 -1
  1772. package/resources/companies/index.d.ts +0 -4
  1773. package/resources/companies/index.d.ts.map +0 -1
  1774. package/resources/companies/index.js +0 -11
  1775. package/resources/companies/index.js.map +0 -1
  1776. package/resources/companies/index.mjs +0 -5
  1777. package/resources/companies/index.mjs.map +0 -1
  1778. package/resources/companies/segments.d.ts +0 -36
  1779. package/resources/companies/segments.d.ts.map +0 -1
  1780. package/resources/companies/segments.js +0 -27
  1781. package/resources/companies/segments.js.map +0 -1
  1782. package/resources/companies/segments.mjs +0 -23
  1783. package/resources/companies/segments.mjs.map +0 -1
  1784. package/resources/contacts/companies.d.ts +0 -99
  1785. package/resources/contacts/companies.d.ts.map +0 -1
  1786. package/resources/contacts/companies.js +0 -58
  1787. package/resources/contacts/companies.js.map +0 -1
  1788. package/resources/contacts/companies.mjs +0 -54
  1789. package/resources/contacts/companies.mjs.map +0 -1
  1790. package/resources/contacts/contacts.d.ts +0 -467
  1791. package/resources/contacts/contacts.d.ts.map +0 -1
  1792. package/resources/contacts/contacts.js +0 -315
  1793. package/resources/contacts/contacts.js.map +0 -1
  1794. package/resources/contacts/contacts.mjs +0 -288
  1795. package/resources/contacts/contacts.mjs.map +0 -1
  1796. package/resources/contacts/index.d.ts +0 -7
  1797. package/resources/contacts/index.d.ts.map +0 -1
  1798. package/resources/contacts/index.js +0 -17
  1799. package/resources/contacts/index.js.map +0 -1
  1800. package/resources/contacts/index.mjs +0 -8
  1801. package/resources/contacts/index.mjs.map +0 -1
  1802. package/resources/contacts/notes.d.ts +0 -71
  1803. package/resources/contacts/notes.d.ts.map +0 -1
  1804. package/resources/contacts/notes.js +0 -43
  1805. package/resources/contacts/notes.js.map +0 -1
  1806. package/resources/contacts/notes.mjs +0 -39
  1807. package/resources/contacts/notes.mjs.map +0 -1
  1808. package/resources/contacts/segments.d.ts +0 -36
  1809. package/resources/contacts/segments.d.ts.map +0 -1
  1810. package/resources/contacts/segments.js +0 -27
  1811. package/resources/contacts/segments.js.map +0 -1
  1812. package/resources/contacts/segments.mjs +0 -23
  1813. package/resources/contacts/segments.mjs.map +0 -1
  1814. package/resources/contacts/subscriptions.d.ts +0 -149
  1815. package/resources/contacts/subscriptions.d.ts.map +0 -1
  1816. package/resources/contacts/subscriptions.js +0 -68
  1817. package/resources/contacts/subscriptions.js.map +0 -1
  1818. package/resources/contacts/subscriptions.mjs +0 -64
  1819. package/resources/contacts/subscriptions.mjs.map +0 -1
  1820. package/resources/contacts/tags.d.ts +0 -53
  1821. package/resources/contacts/tags.d.ts.map +0 -1
  1822. package/resources/contacts/tags.js +0 -59
  1823. package/resources/contacts/tags.js.map +0 -1
  1824. package/resources/contacts/tags.mjs +0 -55
  1825. package/resources/contacts/tags.mjs.map +0 -1
  1826. package/resources/conversations/conversations.d.ts +0 -428
  1827. package/resources/conversations/conversations.d.ts.map +0 -1
  1828. package/resources/conversations/conversations.js +0 -298
  1829. package/resources/conversations/conversations.js.map +0 -1
  1830. package/resources/conversations/conversations.mjs +0 -270
  1831. package/resources/conversations/conversations.mjs.map +0 -1
  1832. package/resources/conversations/customers.d.ts +0 -145
  1833. package/resources/conversations/customers.d.ts.map +0 -1
  1834. package/resources/conversations/customers.js +0 -50
  1835. package/resources/conversations/customers.js.map +0 -1
  1836. package/resources/conversations/customers.mjs +0 -46
  1837. package/resources/conversations/customers.mjs.map +0 -1
  1838. package/resources/conversations/index.d.ts +0 -7
  1839. package/resources/conversations/index.d.ts.map +0 -1
  1840. package/resources/conversations/index.js +0 -18
  1841. package/resources/conversations/index.js.map +0 -1
  1842. package/resources/conversations/index.mjs +0 -8
  1843. package/resources/conversations/index.mjs.map +0 -1
  1844. package/resources/conversations/parts.d.ts +0 -110
  1845. package/resources/conversations/parts.d.ts.map +0 -1
  1846. package/resources/conversations/parts.js +0 -32
  1847. package/resources/conversations/parts.js.map +0 -1
  1848. package/resources/conversations/parts.mjs +0 -28
  1849. package/resources/conversations/parts.mjs.map +0 -1
  1850. package/resources/conversations/reply.d.ts +0 -163
  1851. package/resources/conversations/reply.d.ts.map +0 -1
  1852. package/resources/conversations/reply.js +0 -28
  1853. package/resources/conversations/reply.js.map +0 -1
  1854. package/resources/conversations/reply.mjs +0 -24
  1855. package/resources/conversations/reply.mjs.map +0 -1
  1856. package/resources/conversations/run-assignment-rules.d.ts +0 -24
  1857. package/resources/conversations/run-assignment-rules.d.ts.map +0 -1
  1858. package/resources/conversations/run-assignment-rules.js +0 -27
  1859. package/resources/conversations/run-assignment-rules.js.map +0 -1
  1860. package/resources/conversations/run-assignment-rules.mjs +0 -23
  1861. package/resources/conversations/run-assignment-rules.mjs.map +0 -1
  1862. package/resources/conversations/tags.d.ts +0 -47
  1863. package/resources/conversations/tags.d.ts.map +0 -1
  1864. package/resources/conversations/tags.js +0 -45
  1865. package/resources/conversations/tags.js.map +0 -1
  1866. package/resources/conversations/tags.mjs +0 -41
  1867. package/resources/conversations/tags.mjs.map +0 -1
  1868. package/resources/data-attributes.d.ts +0 -198
  1869. package/resources/data-attributes.d.ts.map +0 -1
  1870. package/resources/data-attributes.js +0 -60
  1871. package/resources/data-attributes.js.map +0 -1
  1872. package/resources/data-attributes.mjs +0 -56
  1873. package/resources/data-attributes.mjs.map +0 -1
  1874. package/resources/data-events.d.ts +0 -276
  1875. package/resources/data-events.d.ts.map +0 -1
  1876. package/resources/data-events.js +0 -148
  1877. package/resources/data-events.js.map +0 -1
  1878. package/resources/data-events.mjs +0 -144
  1879. package/resources/data-events.mjs.map +0 -1
  1880. package/resources/data-exports.d.ts +0 -77
  1881. package/resources/data-exports.d.ts.map +0 -1
  1882. package/resources/data-exports.js +0 -51
  1883. package/resources/data-exports.js.map +0 -1
  1884. package/resources/data-exports.mjs +0 -47
  1885. package/resources/data-exports.mjs.map +0 -1
  1886. package/resources/download/content/content.d.ts +0 -10
  1887. package/resources/download/content/content.d.ts.map +0 -1
  1888. package/resources/download/content/content.js +0 -40
  1889. package/resources/download/content/content.js.map +0 -1
  1890. package/resources/download/content/content.mjs +0 -13
  1891. package/resources/download/content/content.mjs.map +0 -1
  1892. package/resources/download/content/data.d.ts +0 -31
  1893. package/resources/download/content/data.d.ts.map +0 -1
  1894. package/resources/download/content/data.js +0 -28
  1895. package/resources/download/content/data.js.map +0 -1
  1896. package/resources/download/content/data.mjs +0 -24
  1897. package/resources/download/content/data.mjs.map +0 -1
  1898. package/resources/download/content/index.d.ts +0 -3
  1899. package/resources/download/content/index.d.ts.map +0 -1
  1900. package/resources/download/content/index.js +0 -9
  1901. package/resources/download/content/index.js.map +0 -1
  1902. package/resources/download/content/index.mjs +0 -4
  1903. package/resources/download/content/index.mjs.map +0 -1
  1904. package/resources/download/download.d.ts +0 -9
  1905. package/resources/download/download.d.ts.map +0 -1
  1906. package/resources/download/download.js +0 -40
  1907. package/resources/download/download.js.map +0 -1
  1908. package/resources/download/download.mjs +0 -13
  1909. package/resources/download/download.mjs.map +0 -1
  1910. package/resources/download/index.d.ts +0 -3
  1911. package/resources/download/index.d.ts.map +0 -1
  1912. package/resources/download/index.js +0 -9
  1913. package/resources/download/index.js.map +0 -1
  1914. package/resources/download/index.mjs +0 -4
  1915. package/resources/download/index.mjs.map +0 -1
  1916. package/resources/export/content/content.d.ts +0 -10
  1917. package/resources/export/content/content.d.ts.map +0 -1
  1918. package/resources/export/content/content.js +0 -40
  1919. package/resources/export/content/content.js.map +0 -1
  1920. package/resources/export/content/content.mjs +0 -13
  1921. package/resources/export/content/content.mjs.map +0 -1
  1922. package/resources/export/content/data.d.ts +0 -30
  1923. package/resources/export/content/data.d.ts.map +0 -1
  1924. package/resources/export/content/data.js +0 -27
  1925. package/resources/export/content/data.js.map +0 -1
  1926. package/resources/export/content/data.mjs +0 -23
  1927. package/resources/export/content/data.mjs.map +0 -1
  1928. package/resources/export/content/index.d.ts +0 -3
  1929. package/resources/export/content/index.d.ts.map +0 -1
  1930. package/resources/export/content/index.js +0 -9
  1931. package/resources/export/content/index.js.map +0 -1
  1932. package/resources/export/content/index.mjs +0 -4
  1933. package/resources/export/content/index.mjs.map +0 -1
  1934. package/resources/export/export.d.ts +0 -25
  1935. package/resources/export/export.d.ts.map +0 -1
  1936. package/resources/export/export.js +0 -56
  1937. package/resources/export/export.js.map +0 -1
  1938. package/resources/export/export.mjs +0 -29
  1939. package/resources/export/export.mjs.map +0 -1
  1940. package/resources/export/index.d.ts +0 -3
  1941. package/resources/export/index.d.ts.map +0 -1
  1942. package/resources/export/index.js +0 -9
  1943. package/resources/export/index.js.map +0 -1
  1944. package/resources/export/index.mjs +0 -4
  1945. package/resources/export/index.mjs.map +0 -1
  1946. package/resources/help-center/collections.d.ts +0 -237
  1947. package/resources/help-center/collections.d.ts.map +0 -1
  1948. package/resources/help-center/collections.js +0 -90
  1949. package/resources/help-center/collections.js.map +0 -1
  1950. package/resources/help-center/collections.mjs +0 -86
  1951. package/resources/help-center/collections.mjs.map +0 -1
  1952. package/resources/help-center/help-center.d.ts +0 -72
  1953. package/resources/help-center/help-center.d.ts.map +0 -1
  1954. package/resources/help-center/help-center.js +0 -43
  1955. package/resources/help-center/help-center.js.map +0 -1
  1956. package/resources/help-center/help-center.mjs +0 -16
  1957. package/resources/help-center/help-center.mjs.map +0 -1
  1958. package/resources/help-center/help-centers.d.ts +0 -37
  1959. package/resources/help-center/help-centers.d.ts.map +0 -1
  1960. package/resources/help-center/help-centers.js +0 -42
  1961. package/resources/help-center/help-centers.js.map +0 -1
  1962. package/resources/help-center/help-centers.mjs +0 -38
  1963. package/resources/help-center/help-centers.mjs.map +0 -1
  1964. package/resources/help-center/index.d.ts +0 -4
  1965. package/resources/help-center/index.d.ts.map +0 -1
  1966. package/resources/help-center/index.js +0 -11
  1967. package/resources/help-center/index.js.map +0 -1
  1968. package/resources/help-center/index.mjs +0 -5
  1969. package/resources/help-center/index.mjs.map +0 -1
  1970. package/resources/index.d.ts +0 -25
  1971. package/resources/index.d.ts.map +0 -1
  1972. package/resources/index.js +0 -67
  1973. package/resources/index.js.map +0 -1
  1974. package/resources/index.mjs +0 -26
  1975. package/resources/index.mjs.map +0 -1
  1976. package/resources/me.d.ts +0 -131
  1977. package/resources/me.d.ts.map +0 -1
  1978. package/resources/me.js +0 -27
  1979. package/resources/me.js.map +0 -1
  1980. package/resources/me.mjs +0 -23
  1981. package/resources/me.mjs.map +0 -1
  1982. package/resources/messages.d.ts +0 -54
  1983. package/resources/messages.d.ts.map +0 -1
  1984. package/resources/messages.js +0 -42
  1985. package/resources/messages.js.map +0 -1
  1986. package/resources/messages.mjs +0 -38
  1987. package/resources/messages.mjs.map +0 -1
  1988. package/resources/news/index.d.ts +0 -4
  1989. package/resources/news/index.d.ts.map +0 -1
  1990. package/resources/news/index.js +0 -11
  1991. package/resources/news/index.js.map +0 -1
  1992. package/resources/news/index.mjs +0 -5
  1993. package/resources/news/index.mjs.map +0 -1
  1994. package/resources/news/news-items.d.ts +0 -311
  1995. package/resources/news/news-items.d.ts.map +0 -1
  1996. package/resources/news/news-items.js +0 -89
  1997. package/resources/news/news-items.js.map +0 -1
  1998. package/resources/news/news-items.mjs +0 -85
  1999. package/resources/news/news-items.mjs.map +0 -1
  2000. package/resources/news/news.d.ts +0 -24
  2001. package/resources/news/news.d.ts.map +0 -1
  2002. package/resources/news/news.js +0 -43
  2003. package/resources/news/news.js.map +0 -1
  2004. package/resources/news/news.mjs +0 -16
  2005. package/resources/news/news.mjs.map +0 -1
  2006. package/resources/news/newsfeeds/index.d.ts +0 -3
  2007. package/resources/news/newsfeeds/index.d.ts.map +0 -1
  2008. package/resources/news/newsfeeds/index.js +0 -9
  2009. package/resources/news/newsfeeds/index.js.map +0 -1
  2010. package/resources/news/newsfeeds/index.mjs +0 -4
  2011. package/resources/news/newsfeeds/index.mjs.map +0 -1
  2012. package/resources/news/newsfeeds/items.d.ts +0 -49
  2013. package/resources/news/newsfeeds/items.d.ts.map +0 -1
  2014. package/resources/news/newsfeeds/items.js +0 -27
  2015. package/resources/news/newsfeeds/items.js.map +0 -1
  2016. package/resources/news/newsfeeds/items.mjs +0 -23
  2017. package/resources/news/newsfeeds/items.mjs.map +0 -1
  2018. package/resources/news/newsfeeds/newsfeeds.d.ts +0 -96
  2019. package/resources/news/newsfeeds/newsfeeds.d.ts.map +0 -1
  2020. package/resources/news/newsfeeds/newsfeeds.js +0 -71
  2021. package/resources/news/newsfeeds/newsfeeds.js.map +0 -1
  2022. package/resources/news/newsfeeds/newsfeeds.mjs +0 -44
  2023. package/resources/news/newsfeeds/newsfeeds.mjs.map +0 -1
  2024. package/resources/notes.d.ts +0 -22
  2025. package/resources/notes.d.ts.map +0 -1
  2026. package/resources/notes.js +0 -27
  2027. package/resources/notes.js.map +0 -1
  2028. package/resources/notes.mjs +0 -23
  2029. package/resources/notes.mjs.map +0 -1
  2030. package/resources/phone-call-redirects.d.ts +0 -75
  2031. package/resources/phone-call-redirects.d.ts.map +0 -1
  2032. package/resources/phone-call-redirects.js +0 -32
  2033. package/resources/phone-call-redirects.js.map +0 -1
  2034. package/resources/phone-call-redirects.mjs +0 -28
  2035. package/resources/phone-call-redirects.mjs.map +0 -1
  2036. package/resources/segments.d.ts +0 -92
  2037. package/resources/segments.d.ts.map +0 -1
  2038. package/resources/segments.js +0 -43
  2039. package/resources/segments.js.map +0 -1
  2040. package/resources/segments.mjs +0 -39
  2041. package/resources/segments.mjs.map +0 -1
  2042. package/resources/shared.d.ts +0 -2159
  2043. package/resources/shared.d.ts.map +0 -1
  2044. package/resources/shared.js +0 -4
  2045. package/resources/shared.js.map +0 -1
  2046. package/resources/shared.mjs +0 -3
  2047. package/resources/shared.mjs.map +0 -1
  2048. package/resources/subscription-types.d.ts +0 -23
  2049. package/resources/subscription-types.d.ts.map +0 -1
  2050. package/resources/subscription-types.js +0 -27
  2051. package/resources/subscription-types.js.map +0 -1
  2052. package/resources/subscription-types.mjs +0 -23
  2053. package/resources/subscription-types.mjs.map +0 -1
  2054. package/resources/tags.d.ts +0 -179
  2055. package/resources/tags.d.ts.map +0 -1
  2056. package/resources/tags.js +0 -96
  2057. package/resources/tags.js.map +0 -1
  2058. package/resources/tags.mjs +0 -92
  2059. package/resources/tags.mjs.map +0 -1
  2060. package/resources/teams.d.ts +0 -90
  2061. package/resources/teams.d.ts.map +0 -1
  2062. package/resources/teams.js +0 -42
  2063. package/resources/teams.js.map +0 -1
  2064. package/resources/teams.mjs +0 -38
  2065. package/resources/teams.mjs.map +0 -1
  2066. package/resources/ticket-types/attributes.d.ts +0 -131
  2067. package/resources/ticket-types/attributes.d.ts.map +0 -1
  2068. package/resources/ticket-types/attributes.js +0 -44
  2069. package/resources/ticket-types/attributes.js.map +0 -1
  2070. package/resources/ticket-types/attributes.mjs +0 -40
  2071. package/resources/ticket-types/attributes.mjs.map +0 -1
  2072. package/resources/ticket-types/index.d.ts +0 -3
  2073. package/resources/ticket-types/index.d.ts.map +0 -1
  2074. package/resources/ticket-types/index.js +0 -9
  2075. package/resources/ticket-types/index.js.map +0 -1
  2076. package/resources/ticket-types/index.mjs +0 -4
  2077. package/resources/ticket-types/index.mjs.map +0 -1
  2078. package/resources/ticket-types/ticket-types.d.ts +0 -204
  2079. package/resources/ticket-types/ticket-types.d.ts.map +0 -1
  2080. package/resources/ticket-types/ticket-types.js +0 -109
  2081. package/resources/ticket-types/ticket-types.js.map +0 -1
  2082. package/resources/ticket-types/ticket-types.mjs +0 -82
  2083. package/resources/ticket-types/ticket-types.mjs.map +0 -1
  2084. package/resources/tickets/index.d.ts +0 -3
  2085. package/resources/tickets/index.d.ts.map +0 -1
  2086. package/resources/tickets/index.js +0 -9
  2087. package/resources/tickets/index.js.map +0 -1
  2088. package/resources/tickets/index.mjs +0 -4
  2089. package/resources/tickets/index.mjs.map +0 -1
  2090. package/resources/tickets/tags.d.ts +0 -47
  2091. package/resources/tickets/tags.d.ts.map +0 -1
  2092. package/resources/tickets/tags.js +0 -45
  2093. package/resources/tickets/tags.js.map +0 -1
  2094. package/resources/tickets/tags.mjs +0 -41
  2095. package/resources/tickets/tags.mjs.map +0 -1
  2096. package/resources/tickets/tickets.d.ts +0 -472
  2097. package/resources/tickets/tickets.d.ts.map +0 -1
  2098. package/resources/tickets/tickets.js +0 -191
  2099. package/resources/tickets/tickets.js.map +0 -1
  2100. package/resources/tickets/tickets.mjs +0 -164
  2101. package/resources/tickets/tickets.mjs.map +0 -1
  2102. package/resources/visitors.d.ts +0 -355
  2103. package/resources/visitors.d.ts.map +0 -1
  2104. package/resources/visitors.js +0 -73
  2105. package/resources/visitors.js.map +0 -1
  2106. package/resources/visitors.mjs +0 -69
  2107. package/resources/visitors.mjs.map +0 -1
  2108. package/shims/node.d.ts +0 -29
  2109. package/shims/node.d.ts.map +0 -1
  2110. package/shims/node.js +0 -31
  2111. package/shims/node.js.map +0 -1
  2112. package/shims/node.mjs +0 -5
  2113. package/shims/node.mjs.map +0 -1
  2114. package/shims/web.d.ts +0 -26
  2115. package/shims/web.d.ts.map +0 -1
  2116. package/shims/web.js +0 -31
  2117. package/shims/web.js.map +0 -1
  2118. package/shims/web.mjs +0 -5
  2119. package/shims/web.mjs.map +0 -1
  2120. package/src/_shims/MultipartBody.ts +0 -9
  2121. package/src/_shims/README.md +0 -46
  2122. package/src/_shims/auto/runtime-bun.ts +0 -4
  2123. package/src/_shims/auto/runtime-node.ts +0 -4
  2124. package/src/_shims/auto/runtime.ts +0 -4
  2125. package/src/_shims/auto/types-node.ts +0 -4
  2126. package/src/_shims/auto/types.d.ts +0 -101
  2127. package/src/_shims/auto/types.js +0 -3
  2128. package/src/_shims/auto/types.mjs +0 -3
  2129. package/src/_shims/bun-runtime.ts +0 -14
  2130. package/src/_shims/index.d.ts +0 -81
  2131. package/src/_shims/index.js +0 -13
  2132. package/src/_shims/index.mjs +0 -7
  2133. package/src/_shims/manual-types.d.ts +0 -12
  2134. package/src/_shims/manual-types.js +0 -3
  2135. package/src/_shims/manual-types.mjs +0 -3
  2136. package/src/_shims/node-runtime.ts +0 -81
  2137. package/src/_shims/node-types.d.ts +0 -42
  2138. package/src/_shims/node-types.js +0 -3
  2139. package/src/_shims/node-types.mjs +0 -3
  2140. package/src/_shims/registry.ts +0 -67
  2141. package/src/_shims/web-runtime.ts +0 -103
  2142. package/src/_shims/web-types.d.ts +0 -83
  2143. package/src/_shims/web-types.js +0 -3
  2144. package/src/_shims/web-types.mjs +0 -3
  2145. package/src/core.ts +0 -1165
  2146. package/src/error.ts +0 -146
  2147. package/src/index.ts +0 -408
  2148. package/src/lib/.keep +0 -4
  2149. package/src/pagination.ts +0 -91
  2150. package/src/resource.ts +0 -11
  2151. package/src/resources/admins/activity-logs.ts +0 -269
  2152. package/src/resources/admins/admins.ts +0 -200
  2153. package/src/resources/admins/index.ts +0 -4
  2154. package/src/resources/articles.ts +0 -806
  2155. package/src/resources/companies/companies.ts +0 -645
  2156. package/src/resources/companies/contacts.ts +0 -97
  2157. package/src/resources/companies/index.ts +0 -17
  2158. package/src/resources/companies/segments.ts +0 -84
  2159. package/src/resources/contacts/companies.ts +0 -236
  2160. package/src/resources/contacts/contacts.ts +0 -904
  2161. package/src/resources/contacts/index.ts +0 -35
  2162. package/src/resources/contacts/notes.ts +0 -152
  2163. package/src/resources/contacts/segments.ts +0 -84
  2164. package/src/resources/contacts/subscriptions.ts +0 -291
  2165. package/src/resources/contacts/tags.ts +0 -181
  2166. package/src/resources/conversations/conversations.ts +0 -754
  2167. package/src/resources/conversations/customers.ts +0 -247
  2168. package/src/resources/conversations/index.ts +0 -20
  2169. package/src/resources/conversations/parts.ts +0 -224
  2170. package/src/resources/conversations/reply.ts +0 -288
  2171. package/src/resources/conversations/run-assignment-rules.ts +0 -70
  2172. package/src/resources/conversations/tags.ts +0 -125
  2173. package/src/resources/data-attributes.ts +0 -347
  2174. package/src/resources/data-events.ts +0 -454
  2175. package/src/resources/data-exports.ts +0 -120
  2176. package/src/resources/download/content/content.ts +0 -13
  2177. package/src/resources/download/content/data.ts +0 -78
  2178. package/src/resources/download/content/index.ts +0 -4
  2179. package/src/resources/download/download.ts +0 -12
  2180. package/src/resources/download/index.ts +0 -4
  2181. package/src/resources/export/content/content.ts +0 -13
  2182. package/src/resources/export/content/data.ts +0 -76
  2183. package/src/resources/export/content/index.ts +0 -4
  2184. package/src/resources/export/export.ts +0 -72
  2185. package/src/resources/export/index.ts +0 -4
  2186. package/src/resources/help-center/collections.ts +0 -469
  2187. package/src/resources/help-center/help-center.ts +0 -84
  2188. package/src/resources/help-center/help-centers.ts +0 -124
  2189. package/src/resources/help-center/index.ts +0 -15
  2190. package/src/resources/index.ts +0 -114
  2191. package/src/resources/me.ts +0 -193
  2192. package/src/resources/messages.ts +0 -110
  2193. package/src/resources/news/index.ts +0 -21
  2194. package/src/resources/news/news-items.ts +0 -545
  2195. package/src/resources/news/news.ts +0 -27
  2196. package/src/resources/news/newsfeeds/index.ts +0 -10
  2197. package/src/resources/news/newsfeeds/items.ts +0 -95
  2198. package/src/resources/news/newsfeeds/newsfeeds.ts +0 -190
  2199. package/src/resources/notes.ts +0 -68
  2200. package/src/resources/phone-call-redirects.ts +0 -120
  2201. package/src/resources/segments.ts +0 -188
  2202. package/src/resources/shared.ts +0 -2609
  2203. package/src/resources/subscription-types.ts +0 -67
  2204. package/src/resources/tags.ts +0 -414
  2205. package/src/resources/teams.ts +0 -179
  2206. package/src/resources/ticket-types/attributes.ts +0 -240
  2207. package/src/resources/ticket-types/index.ts +0 -12
  2208. package/src/resources/ticket-types/ticket-types.ts +0 -391
  2209. package/src/resources/tickets/index.ts +0 -13
  2210. package/src/resources/tickets/tags.ts +0 -125
  2211. package/src/resources/tickets/tickets.ts +0 -780
  2212. package/src/resources/visitors.ts +0 -542
  2213. package/src/shims/node.ts +0 -50
  2214. package/src/shims/web.ts +0 -50
  2215. package/src/tsconfig.json +0 -11
  2216. package/src/uploads.ts +0 -248
  2217. package/src/version.ts +0 -1
  2218. package/uploads.d.ts +0 -75
  2219. package/uploads.d.ts.map +0 -1
  2220. package/uploads.js +0 -165
  2221. package/uploads.js.map +0 -1
  2222. package/uploads.mjs +0 -152
  2223. package/uploads.mjs.map +0 -1
  2224. package/version.d.ts.map +0 -1
  2225. package/version.js.map +0 -1
  2226. package/version.mjs +0 -2
  2227. package/version.mjs.map +0 -1
@@ -0,0 +1,1113 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __rest = (this && this.__rest) || function (s, e) {
38
+ var t = {};
39
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
40
+ t[p] = s[p];
41
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
42
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
43
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44
+ t[p[i]] = s[p[i]];
45
+ }
46
+ return t;
47
+ };
48
+ var __importDefault = (this && this.__importDefault) || function (mod) {
49
+ return (mod && mod.__esModule) ? mod : { "default": mod };
50
+ };
51
+ Object.defineProperty(exports, "__esModule", { value: true });
52
+ exports.Conversations = void 0;
53
+ const environments = __importStar(require("../../../../environments"));
54
+ const core = __importStar(require("../../../../core"));
55
+ const Intercom = __importStar(require("../../../index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ const errors = __importStar(require("../../../../errors/index"));
58
+ /**
59
+ * Everything about your Conversations
60
+ */
61
+ class Conversations {
62
+ constructor(_options = {}) {
63
+ this._options = _options;
64
+ }
65
+ /**
66
+ * You can fetch a list of all conversations.
67
+ *
68
+ * You can optionally request the result page size and the cursor to start after to fetch the result.
69
+ * {% admonition type="warning" name="Pagination" %}
70
+ * You can use pagination to limit the number of results returned. The default is `20` results per page.
71
+ * See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#pagination-for-list-apis) for more details on how to use the `starting_after` param.
72
+ * {% /admonition %}
73
+ *
74
+ * @param {Intercom.ListConversationsRequest} request
75
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
76
+ *
77
+ * @throws {@link Intercom.UnauthorizedError}
78
+ * @throws {@link Intercom.ForbiddenError}
79
+ *
80
+ * @example
81
+ * await client.conversations.list()
82
+ */
83
+ list(request = {}, requestOptions) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const list = (request) => __awaiter(this, void 0, void 0, function* () {
86
+ var _a, _b, _c, _d, _e;
87
+ const { per_page: perPage, starting_after: startingAfter } = request;
88
+ const _queryParams = {};
89
+ if (perPage != null) {
90
+ _queryParams["per_page"] = perPage.toString();
91
+ }
92
+ if (startingAfter != null) {
93
+ _queryParams["starting_after"] = startingAfter;
94
+ }
95
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
96
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "conversations"),
97
+ method: "GET",
98
+ 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),
99
+ contentType: "application/json",
100
+ queryParameters: _queryParams,
101
+ requestType: "json",
102
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
103
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
104
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
105
+ });
106
+ if (_response.ok) {
107
+ return _response.body;
108
+ }
109
+ if (_response.error.reason === "status-code") {
110
+ switch (_response.error.statusCode) {
111
+ case 401:
112
+ throw new Intercom.UnauthorizedError(_response.error.body);
113
+ case 403:
114
+ throw new Intercom.ForbiddenError(_response.error.body);
115
+ default:
116
+ throw new errors.IntercomError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ });
120
+ }
121
+ }
122
+ switch (_response.error.reason) {
123
+ case "non-json":
124
+ throw new errors.IntercomError({
125
+ statusCode: _response.error.statusCode,
126
+ body: _response.error.rawBody,
127
+ });
128
+ case "timeout":
129
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /conversations.");
130
+ case "unknown":
131
+ throw new errors.IntercomError({
132
+ message: _response.error.errorMessage,
133
+ });
134
+ }
135
+ });
136
+ return new core.Pageable({
137
+ response: yield list(request),
138
+ hasNextPage: (response) => { var _a, _b; return ((_b = (_a = response === null || response === void 0 ? void 0 : response.pages) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.starting_after) != null; },
139
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.conversations) !== null && _a !== void 0 ? _a : []; },
140
+ loadPage: (response) => {
141
+ var _a, _b;
142
+ return list(core.setObjectProperty(request, "starting_after", (_b = (_a = response === null || response === void 0 ? void 0 : response.pages) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.starting_after));
143
+ },
144
+ });
145
+ });
146
+ }
147
+ /**
148
+ * You can create a conversation that has been initiated by a contact (ie. user or lead).
149
+ * The conversation can be an in-app message only.
150
+ *
151
+ * {% admonition type="info" name="Sending for visitors" %}
152
+ * You can also send a message from a visitor by specifying their `user_id` or `id` value in the `from` field, along with a `type` field value of `contact`.
153
+ * This visitor will be automatically converted to a contact with a lead role once the conversation is created.
154
+ * {% /admonition %}
155
+ *
156
+ * This will return the Message model that has been created.
157
+ *
158
+ *
159
+ * @param {Intercom.CreateConversationRequest} request
160
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
161
+ *
162
+ * @throws {@link Intercom.UnauthorizedError}
163
+ * @throws {@link Intercom.ForbiddenError}
164
+ * @throws {@link Intercom.NotFoundError}
165
+ *
166
+ * @example
167
+ * await client.conversations.create({
168
+ * from: {
169
+ * type: "user",
170
+ * id: "667d60d18a68186f43bafddd"
171
+ * },
172
+ * body: "Hello there"
173
+ * })
174
+ *
175
+ * @example
176
+ * await client.conversations.create({
177
+ * from: {
178
+ * type: "user",
179
+ * id: "123_doesnt_exist"
180
+ * },
181
+ * body: "Hello there"
182
+ * })
183
+ */
184
+ create(request, requestOptions) {
185
+ var _a, _b, _c, _d, _e;
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "conversations"),
189
+ method: "POST",
190
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.0.0", "User-Agent": "intercom-client/6.0.0", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
+ contentType: "application/json",
192
+ requestType: "json",
193
+ body: request,
194
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
195
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
196
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
197
+ });
198
+ if (_response.ok) {
199
+ return _response.body;
200
+ }
201
+ if (_response.error.reason === "status-code") {
202
+ switch (_response.error.statusCode) {
203
+ case 401:
204
+ throw new Intercom.UnauthorizedError(_response.error.body);
205
+ case 403:
206
+ throw new Intercom.ForbiddenError(_response.error.body);
207
+ case 404:
208
+ throw new Intercom.NotFoundError(_response.error.body);
209
+ default:
210
+ throw new errors.IntercomError({
211
+ statusCode: _response.error.statusCode,
212
+ body: _response.error.body,
213
+ });
214
+ }
215
+ }
216
+ switch (_response.error.reason) {
217
+ case "non-json":
218
+ throw new errors.IntercomError({
219
+ statusCode: _response.error.statusCode,
220
+ body: _response.error.rawBody,
221
+ });
222
+ case "timeout":
223
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations.");
224
+ case "unknown":
225
+ throw new errors.IntercomError({
226
+ message: _response.error.errorMessage,
227
+ });
228
+ }
229
+ });
230
+ }
231
+ /**
232
+ *
233
+ * You can fetch the details of a single conversation.
234
+ *
235
+ * This will return a single Conversation model with all its conversation parts.
236
+ *
237
+ * {% admonition type="warning" name="Hard limit of 500 parts" %}
238
+ * The maximum number of conversation parts that can be returned via the API is 500. If you have more than that we will return the 500 most recent conversation parts.
239
+ * {% /admonition %}
240
+ *
241
+ * For AI agent conversation metadata, please note that you need to have the agent enabled in your workspace, which is a [paid feature](https://www.intercom.com/help/en/articles/8205718-fin-resolutions#h_97f8c2e671).
242
+ *
243
+ * @param {Intercom.FindConversationRequest} request
244
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
245
+ *
246
+ * @throws {@link Intercom.UnauthorizedError}
247
+ * @throws {@link Intercom.ForbiddenError}
248
+ * @throws {@link Intercom.NotFoundError}
249
+ *
250
+ * @example
251
+ * await client.conversations.find({
252
+ * conversation_id: "123",
253
+ * display_as: "plaintext"
254
+ * })
255
+ */
256
+ find(request, requestOptions) {
257
+ var _a, _b, _c, _d, _e;
258
+ return __awaiter(this, void 0, void 0, function* () {
259
+ const { conversation_id: conversationId, display_as: displayAs } = request;
260
+ const _queryParams = {};
261
+ if (displayAs != null) {
262
+ _queryParams["display_as"] = displayAs;
263
+ }
264
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
265
+ 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)}`),
266
+ method: "GET",
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),
268
+ contentType: "application/json",
269
+ queryParameters: _queryParams,
270
+ requestType: "json",
271
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
272
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
273
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
274
+ });
275
+ if (_response.ok) {
276
+ return _response.body;
277
+ }
278
+ if (_response.error.reason === "status-code") {
279
+ switch (_response.error.statusCode) {
280
+ case 401:
281
+ throw new Intercom.UnauthorizedError(_response.error.body);
282
+ case 403:
283
+ throw new Intercom.ForbiddenError(_response.error.body);
284
+ case 404:
285
+ throw new Intercom.NotFoundError(_response.error.body);
286
+ default:
287
+ throw new errors.IntercomError({
288
+ statusCode: _response.error.statusCode,
289
+ body: _response.error.body,
290
+ });
291
+ }
292
+ }
293
+ switch (_response.error.reason) {
294
+ case "non-json":
295
+ throw new errors.IntercomError({
296
+ statusCode: _response.error.statusCode,
297
+ body: _response.error.rawBody,
298
+ });
299
+ case "timeout":
300
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /conversations/{conversation_id}.");
301
+ case "unknown":
302
+ throw new errors.IntercomError({
303
+ message: _response.error.errorMessage,
304
+ });
305
+ }
306
+ });
307
+ }
308
+ /**
309
+ *
310
+ * You can update an existing conversation.
311
+ *
312
+ * {% admonition type="info" name="Replying and other actions" %}
313
+ * 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.
314
+ * {% /admonition %}
315
+ *
316
+ *
317
+ * @param {Intercom.UpdateConversationRequest} request
318
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
319
+ *
320
+ * @throws {@link Intercom.UnauthorizedError}
321
+ * @throws {@link Intercom.ForbiddenError}
322
+ * @throws {@link Intercom.NotFoundError}
323
+ *
324
+ * @example
325
+ * await client.conversations.update({
326
+ * conversation_id: "123",
327
+ * display_as: "plaintext",
328
+ * read: true,
329
+ * custom_attributes: {
330
+ * "issue_type": "Billing",
331
+ * "priority": "High"
332
+ * }
333
+ * })
334
+ */
335
+ update(request, requestOptions) {
336
+ var _a, _b, _c, _d, _e;
337
+ return __awaiter(this, void 0, void 0, function* () {
338
+ const { conversation_id: conversationId, display_as: displayAs } = request, _body = __rest(request, ["conversation_id", "display_as"]);
339
+ const _queryParams = {};
340
+ if (displayAs != null) {
341
+ _queryParams["display_as"] = displayAs;
342
+ }
343
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
+ 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)}`),
345
+ method: "PUT",
346
+ 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),
347
+ contentType: "application/json",
348
+ queryParameters: _queryParams,
349
+ requestType: "json",
350
+ body: _body,
351
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
352
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
353
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
354
+ });
355
+ if (_response.ok) {
356
+ return _response.body;
357
+ }
358
+ if (_response.error.reason === "status-code") {
359
+ switch (_response.error.statusCode) {
360
+ case 401:
361
+ throw new Intercom.UnauthorizedError(_response.error.body);
362
+ case 403:
363
+ throw new Intercom.ForbiddenError(_response.error.body);
364
+ case 404:
365
+ throw new Intercom.NotFoundError(_response.error.body);
366
+ default:
367
+ throw new errors.IntercomError({
368
+ statusCode: _response.error.statusCode,
369
+ body: _response.error.body,
370
+ });
371
+ }
372
+ }
373
+ switch (_response.error.reason) {
374
+ case "non-json":
375
+ throw new errors.IntercomError({
376
+ statusCode: _response.error.statusCode,
377
+ body: _response.error.rawBody,
378
+ });
379
+ case "timeout":
380
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling PUT /conversations/{conversation_id}.");
381
+ case "unknown":
382
+ throw new errors.IntercomError({
383
+ message: _response.error.errorMessage,
384
+ });
385
+ }
386
+ });
387
+ }
388
+ /**
389
+ * You can search for multiple conversations by the value of their attributes in order to fetch exactly which ones you want.
390
+ *
391
+ * To search for conversations, you need to send a `POST` request to `https://api.intercom.io/conversations/search`.
392
+ *
393
+ * This will accept a query object in the body which will define your filters in order to search for conversations.
394
+ * {% admonition type="warning" name="Optimizing search queries" %}
395
+ * Search queries can be complex, so optimizing them can help the performance of your search.
396
+ * Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize
397
+ * pagination to limit the number of results returned. The default is `20` results per page and maximum is `150`.
398
+ * See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param.
399
+ * {% /admonition %}
400
+ *
401
+ * ### Nesting & Limitations
402
+ *
403
+ * You can nest these filters in order to get even more granular insights that pinpoint exactly what you need. Example: (1 OR 2) AND (3 OR 4).
404
+ * There are some limitations to the amount of multiple's there can be:
405
+ * - There's a limit of max 2 nested filters
406
+ * - There's a limit of max 15 filters for each AND or OR group
407
+ *
408
+ * ### Accepted Fields
409
+ *
410
+ * Most keys listed as part of the The conversation model is searchable, whether writeable or not. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foorbar"`).
411
+ * The `source.body` field is unique as the search will not be performed against the entire value, but instead against every element of the value separately. For example, when searching for a conversation with a `"I need support"` body - the query should contain a `=` operator with the value `"support"` for such conversation to be returned. A query with a `=` operator and a `"need support"` value will not yield a result.
412
+ *
413
+ * | Field | Type |
414
+ * | :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- |
415
+ * | id | String |
416
+ * | created_at | Date (UNIX timestamp) |
417
+ * | updated_at | Date (UNIX timestamp) |
418
+ * | source.type | String<br>Accepted fields are `conversation`, `email`, `facebook`, `instagram`, `phone_call`, `phone_switch`, `push`, `sms`, `twitter` and `whatsapp`. |
419
+ * | source.id | String |
420
+ * | source.delivered_as | String |
421
+ * | source.subject | String |
422
+ * | source.body | String |
423
+ * | source.author.id | String |
424
+ * | source.author.type | String |
425
+ * | source.author.name | String |
426
+ * | source.author.email | String |
427
+ * | source.url | String |
428
+ * | contact_ids | String |
429
+ * | teammate_ids | String |
430
+ * | admin_assignee_id | String |
431
+ * | team_assignee_id | String |
432
+ * | channel_initiated | String |
433
+ * | open | Boolean |
434
+ * | read | Boolean |
435
+ * | state | String |
436
+ * | waiting_since | Date (UNIX timestamp) |
437
+ * | snoozed_until | Date (UNIX timestamp) |
438
+ * | tag_ids | String |
439
+ * | priority | String |
440
+ * | statistics.time_to_assignment | Integer |
441
+ * | statistics.time_to_admin_reply | Integer |
442
+ * | statistics.time_to_first_close | Integer |
443
+ * | statistics.time_to_last_close | Integer |
444
+ * | statistics.median_time_to_reply | Integer |
445
+ * | statistics.first_contact_reply_at | Date (UNIX timestamp) |
446
+ * | statistics.first_assignment_at | Date (UNIX timestamp) |
447
+ * | statistics.first_admin_reply_at | Date (UNIX timestamp) |
448
+ * | statistics.first_close_at | Date (UNIX timestamp) |
449
+ * | statistics.last_assignment_at | Date (UNIX timestamp) |
450
+ * | statistics.last_assignment_admin_reply_at | Date (UNIX timestamp) |
451
+ * | statistics.last_contact_reply_at | Date (UNIX timestamp) |
452
+ * | statistics.last_admin_reply_at | Date (UNIX timestamp) |
453
+ * | statistics.last_close_at | Date (UNIX timestamp) |
454
+ * | statistics.last_closed_by_id | String |
455
+ * | statistics.count_reopens | Integer |
456
+ * | statistics.count_assignments | Integer |
457
+ * | statistics.count_conversation_parts | Integer |
458
+ * | conversation_rating.requested_at | Date (UNIX timestamp) |
459
+ * | conversation_rating.replied_at | Date (UNIX timestamp) |
460
+ * | conversation_rating.score | Integer |
461
+ * | conversation_rating.remark | String |
462
+ * | conversation_rating.contact_id | String |
463
+ * | conversation_rating.admin_d | String |
464
+ * | ai_agent_participated | Boolean |
465
+ * | ai_agent.resolution_state | String |
466
+ * | ai_agent.last_answer_type | String |
467
+ * | ai_agent.rating | Integer |
468
+ * | ai_agent.rating_remark | String |
469
+ * | ai_agent.source_type | String |
470
+ * | ai_agent.source_title | String |
471
+ *
472
+ * ### Accepted Operators
473
+ *
474
+ * The table below shows the operators you can use to define how you want to search for the value. The operator should be put in as a string (`"="`). The operator has to be compatible with the field's type (eg. you cannot search with `>` for a given string value as it's only compatible for integer's and dates).
475
+ *
476
+ * | Operator | Valid Types | Description |
477
+ * | :------- | :----------------------------- | :----------------------------------------------------------- |
478
+ * | = | All | Equals |
479
+ * | != | All | Doesn't Equal |
480
+ * | IN | All | In Shortcut for `OR` queries Values most be in Array |
481
+ * | NIN | All | Not In Shortcut for `OR !` queries Values must be in Array |
482
+ * | > | Integer Date (UNIX Timestamp) | Greater (or equal) than |
483
+ * | < | Integer Date (UNIX Timestamp) | Lower (or equal) than |
484
+ * | ~ | String | Contains |
485
+ * | !~ | String | Doesn't Contain |
486
+ * | ^ | String | Starts With |
487
+ * | $ | String | Ends With |
488
+ *
489
+ * @param {Intercom.SearchRequest} request
490
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
491
+ *
492
+ * @example
493
+ * await client.conversations.search({
494
+ * query: {
495
+ * operator: "AND",
496
+ * value: [{
497
+ * field: "created_at",
498
+ * operator: ">",
499
+ * value: "1306054154"
500
+ * }]
501
+ * },
502
+ * pagination: {
503
+ * per_page: 5
504
+ * }
505
+ * })
506
+ */
507
+ search(request, requestOptions) {
508
+ return __awaiter(this, void 0, void 0, function* () {
509
+ const list = (request) => __awaiter(this, void 0, void 0, function* () {
510
+ var _a, _b, _c, _d, _e;
511
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
512
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "conversations/search"),
513
+ method: "POST",
514
+ 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),
515
+ contentType: "application/json",
516
+ requestType: "json",
517
+ body: request,
518
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
519
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
520
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
521
+ });
522
+ if (_response.ok) {
523
+ return _response.body;
524
+ }
525
+ if (_response.error.reason === "status-code") {
526
+ throw new errors.IntercomError({
527
+ statusCode: _response.error.statusCode,
528
+ body: _response.error.body,
529
+ });
530
+ }
531
+ switch (_response.error.reason) {
532
+ case "non-json":
533
+ throw new errors.IntercomError({
534
+ statusCode: _response.error.statusCode,
535
+ body: _response.error.rawBody,
536
+ });
537
+ case "timeout":
538
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/search.");
539
+ case "unknown":
540
+ throw new errors.IntercomError({
541
+ message: _response.error.errorMessage,
542
+ });
543
+ }
544
+ });
545
+ return new core.Pageable({
546
+ response: yield list(request),
547
+ hasNextPage: (response) => { var _a, _b; return ((_b = (_a = response === null || response === void 0 ? void 0 : response.pages) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.starting_after) != null; },
548
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.conversations) !== null && _a !== void 0 ? _a : []; },
549
+ loadPage: (response) => {
550
+ var _a, _b;
551
+ return list(core.setObjectProperty(request, "pagination.starting_after", (_b = (_a = response === null || response === void 0 ? void 0 : response.pages) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.starting_after));
552
+ },
553
+ });
554
+ });
555
+ }
556
+ /**
557
+ * You can reply to a conversation with a message from an admin or on behalf of a contact, or with a note for admins.
558
+ *
559
+ * @param {Intercom.ReplyToConversationRequest} request
560
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
561
+ *
562
+ * @throws {@link Intercom.UnauthorizedError}
563
+ * @throws {@link Intercom.ForbiddenError}
564
+ * @throws {@link Intercom.NotFoundError}
565
+ *
566
+ * @example
567
+ * await client.conversations.reply({
568
+ * conversation_id: "123 or \"last\"",
569
+ * body: {
570
+ * message_type: "comment",
571
+ * type: "user",
572
+ * body: "Thanks again :)",
573
+ * intercom_user_id: "667d60f18a68186f43bafdf4"
574
+ * }
575
+ * })
576
+ *
577
+ * @example
578
+ * await client.conversations.reply({
579
+ * conversation_id: "123 or \"last\"",
580
+ * body: {
581
+ * message_type: "note",
582
+ * type: "admin",
583
+ * body: "<html> <body> <h2>An Unordered HTML List</h2> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> <h2>An Ordered HTML List</h2> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> </body> </html>",
584
+ * admin_id: "3156780"
585
+ * }
586
+ * })
587
+ *
588
+ * @example
589
+ * await client.conversations.reply({
590
+ * conversation_id: "123 or \"last\"",
591
+ * body: {
592
+ * message_type: "comment",
593
+ * type: "user",
594
+ * body: "Thanks again :)",
595
+ * intercom_user_id: "667d60f78a68186f43bafdf7"
596
+ * }
597
+ * })
598
+ *
599
+ * @example
600
+ * await client.conversations.reply({
601
+ * conversation_id: "123 or \"last\"",
602
+ * body: {
603
+ * message_type: "comment",
604
+ * type: "user",
605
+ * body: "Thanks again :)",
606
+ * intercom_user_id: "667d60f98a68186f43bafdf8"
607
+ * }
608
+ * })
609
+ */
610
+ reply(request, requestOptions) {
611
+ var _a, _b, _c, _d, _e;
612
+ return __awaiter(this, void 0, void 0, function* () {
613
+ const { conversation_id: conversationId, body: _body } = request;
614
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
615
+ 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)}/reply`),
616
+ method: "POST",
617
+ 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),
618
+ contentType: "application/json",
619
+ requestType: "json",
620
+ body: _body,
621
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
622
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
623
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
624
+ });
625
+ if (_response.ok) {
626
+ return _response.body;
627
+ }
628
+ if (_response.error.reason === "status-code") {
629
+ switch (_response.error.statusCode) {
630
+ case 401:
631
+ throw new Intercom.UnauthorizedError(_response.error.body);
632
+ case 403:
633
+ throw new Intercom.ForbiddenError(_response.error.body);
634
+ case 404:
635
+ throw new Intercom.NotFoundError(_response.error.body);
636
+ default:
637
+ throw new errors.IntercomError({
638
+ statusCode: _response.error.statusCode,
639
+ body: _response.error.body,
640
+ });
641
+ }
642
+ }
643
+ switch (_response.error.reason) {
644
+ case "non-json":
645
+ throw new errors.IntercomError({
646
+ statusCode: _response.error.statusCode,
647
+ body: _response.error.rawBody,
648
+ });
649
+ case "timeout":
650
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{conversation_id}/reply.");
651
+ case "unknown":
652
+ throw new errors.IntercomError({
653
+ message: _response.error.errorMessage,
654
+ });
655
+ }
656
+ });
657
+ }
658
+ /**
659
+ * For managing conversations you can:
660
+ * - Close a conversation
661
+ * - Snooze a conversation to reopen on a future date
662
+ * - Open a conversation which is `snoozed` or `closed`
663
+ * - Assign a conversation to an admin and/or team.
664
+ *
665
+ * @param {Intercom.ManageConversationPartsRequest} request
666
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
667
+ *
668
+ * @throws {@link Intercom.UnauthorizedError}
669
+ * @throws {@link Intercom.ForbiddenError}
670
+ * @throws {@link Intercom.NotFoundError}
671
+ *
672
+ * @example
673
+ * await client.conversations.manage({
674
+ * conversation_id: "123",
675
+ * body: {
676
+ * message_type: "assignment",
677
+ * type: "admin",
678
+ * admin_id: "12345",
679
+ * assignee_id: "4324241",
680
+ * body: "Goodbye :)"
681
+ * }
682
+ * })
683
+ *
684
+ * @example
685
+ * await client.conversations.manage({
686
+ * conversation_id: "123",
687
+ * body: {
688
+ * message_type: "assignment",
689
+ * type: "admin",
690
+ * admin_id: "12345",
691
+ * assignee_id: "4324241",
692
+ * body: "Let me pass you over to one of my colleagues."
693
+ * }
694
+ * })
695
+ */
696
+ manage(request, requestOptions) {
697
+ var _a, _b, _c, _d, _e;
698
+ return __awaiter(this, void 0, void 0, function* () {
699
+ const { conversation_id: conversationId, body: _body } = request;
700
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
701
+ 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)}/parts`),
702
+ method: "POST",
703
+ 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),
704
+ contentType: "application/json",
705
+ requestType: "json",
706
+ body: _body,
707
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
708
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
709
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
710
+ });
711
+ if (_response.ok) {
712
+ return _response.body;
713
+ }
714
+ if (_response.error.reason === "status-code") {
715
+ switch (_response.error.statusCode) {
716
+ case 401:
717
+ throw new Intercom.UnauthorizedError(_response.error.body);
718
+ case 403:
719
+ throw new Intercom.ForbiddenError(_response.error.body);
720
+ case 404:
721
+ throw new Intercom.NotFoundError(_response.error.body);
722
+ default:
723
+ throw new errors.IntercomError({
724
+ statusCode: _response.error.statusCode,
725
+ body: _response.error.body,
726
+ });
727
+ }
728
+ }
729
+ switch (_response.error.reason) {
730
+ case "non-json":
731
+ throw new errors.IntercomError({
732
+ statusCode: _response.error.statusCode,
733
+ body: _response.error.rawBody,
734
+ });
735
+ case "timeout":
736
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{conversation_id}/parts.");
737
+ case "unknown":
738
+ throw new errors.IntercomError({
739
+ message: _response.error.errorMessage,
740
+ });
741
+ }
742
+ });
743
+ }
744
+ /**
745
+ * You can let a conversation be automatically assigned following assignment rules.
746
+ * {% admonition type="attention" name="When using workflows" %}
747
+ * It is not possible to use this endpoint with Workflows.
748
+ * {% /admonition %}
749
+ *
750
+ * @param {Intercom.AutoAssignConversationRequest} request
751
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
752
+ *
753
+ * @throws {@link Intercom.UnauthorizedError}
754
+ * @throws {@link Intercom.ForbiddenError}
755
+ * @throws {@link Intercom.NotFoundError}
756
+ *
757
+ * @example
758
+ * await client.conversations.runAssignmentRules({
759
+ * conversation_id: "123"
760
+ * })
761
+ */
762
+ runAssignmentRules(request, requestOptions) {
763
+ var _a, _b, _c, _d, _e;
764
+ return __awaiter(this, void 0, void 0, function* () {
765
+ const { conversation_id: conversationId } = request;
766
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
767
+ 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)}/run_assignment_rules`),
768
+ method: "POST",
769
+ 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),
770
+ contentType: "application/json",
771
+ requestType: "json",
772
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
773
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
774
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
775
+ });
776
+ if (_response.ok) {
777
+ return _response.body;
778
+ }
779
+ if (_response.error.reason === "status-code") {
780
+ switch (_response.error.statusCode) {
781
+ case 401:
782
+ throw new Intercom.UnauthorizedError(_response.error.body);
783
+ case 403:
784
+ throw new Intercom.ForbiddenError(_response.error.body);
785
+ case 404:
786
+ throw new Intercom.NotFoundError(_response.error.body);
787
+ default:
788
+ throw new errors.IntercomError({
789
+ statusCode: _response.error.statusCode,
790
+ body: _response.error.body,
791
+ });
792
+ }
793
+ }
794
+ switch (_response.error.reason) {
795
+ case "non-json":
796
+ throw new errors.IntercomError({
797
+ statusCode: _response.error.statusCode,
798
+ body: _response.error.rawBody,
799
+ });
800
+ case "timeout":
801
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{conversation_id}/run_assignment_rules.");
802
+ case "unknown":
803
+ throw new errors.IntercomError({
804
+ message: _response.error.errorMessage,
805
+ });
806
+ }
807
+ });
808
+ }
809
+ /**
810
+ * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
811
+ *
812
+ * {% admonition type="attention" name="Contacts without an email" %}
813
+ * 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`.
814
+ * {% /admonition %}
815
+ *
816
+ *
817
+ * @param {Intercom.AttachContactToConversationRequest} request
818
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
819
+ *
820
+ * @throws {@link Intercom.UnauthorizedError}
821
+ * @throws {@link Intercom.ForbiddenError}
822
+ * @throws {@link Intercom.NotFoundError}
823
+ *
824
+ * @example
825
+ * await client.conversations.attachContactAsAdmin({
826
+ * conversation_id: "123",
827
+ * admin_id: "12345",
828
+ * customer: {
829
+ * intercom_user_id: "667d61168a68186f43bafe0d"
830
+ * }
831
+ * })
832
+ *
833
+ * @example
834
+ * await client.conversations.attachContactAsAdmin({
835
+ * conversation_id: "123",
836
+ * admin_id: "12345",
837
+ * customer: {
838
+ * intercom_user_id: "667d61188a68186f43bafe0e"
839
+ * }
840
+ * })
841
+ */
842
+ attachContactAsAdmin(request, requestOptions) {
843
+ var _a, _b, _c, _d, _e;
844
+ return __awaiter(this, void 0, void 0, function* () {
845
+ const { conversation_id: conversationId } = request, _body = __rest(request, ["conversation_id"]);
846
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
847
+ 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)}/customers`),
848
+ method: "POST",
849
+ 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),
850
+ contentType: "application/json",
851
+ requestType: "json",
852
+ body: _body,
853
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
854
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
855
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
856
+ });
857
+ if (_response.ok) {
858
+ return _response.body;
859
+ }
860
+ if (_response.error.reason === "status-code") {
861
+ switch (_response.error.statusCode) {
862
+ case 401:
863
+ throw new Intercom.UnauthorizedError(_response.error.body);
864
+ case 403:
865
+ throw new Intercom.ForbiddenError(_response.error.body);
866
+ case 404:
867
+ throw new Intercom.NotFoundError(_response.error.body);
868
+ default:
869
+ throw new errors.IntercomError({
870
+ statusCode: _response.error.statusCode,
871
+ body: _response.error.body,
872
+ });
873
+ }
874
+ }
875
+ switch (_response.error.reason) {
876
+ case "non-json":
877
+ throw new errors.IntercomError({
878
+ statusCode: _response.error.statusCode,
879
+ body: _response.error.rawBody,
880
+ });
881
+ case "timeout":
882
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{conversation_id}/customers.");
883
+ case "unknown":
884
+ throw new errors.IntercomError({
885
+ message: _response.error.errorMessage,
886
+ });
887
+ }
888
+ });
889
+ }
890
+ /**
891
+ * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
892
+ *
893
+ * {% admonition type="attention" name="Contacts without an email" %}
894
+ * 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`.
895
+ * {% /admonition %}
896
+ *
897
+ *
898
+ * @param {Intercom.DetachContactFromConversationRequest} request
899
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
900
+ *
901
+ * @throws {@link Intercom.UnauthorizedError}
902
+ * @throws {@link Intercom.ForbiddenError}
903
+ * @throws {@link Intercom.NotFoundError}
904
+ * @throws {@link Intercom.UnprocessableEntityError}
905
+ *
906
+ * @example
907
+ * await client.conversations.detachContactAsAdmin({
908
+ * conversation_id: "123",
909
+ * contact_id: "123",
910
+ * admin_id: "5017690"
911
+ * })
912
+ */
913
+ detachContactAsAdmin(request, requestOptions) {
914
+ var _a, _b, _c, _d, _e;
915
+ return __awaiter(this, void 0, void 0, function* () {
916
+ const { conversation_id: conversationId, contact_id: contactId } = request, _body = __rest(request, ["conversation_id", "contact_id"]);
917
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
918
+ 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)}/customers/${encodeURIComponent(contactId)}`),
919
+ method: "DELETE",
920
+ 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),
921
+ contentType: "application/json",
922
+ requestType: "json",
923
+ body: _body,
924
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
925
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
926
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
927
+ });
928
+ if (_response.ok) {
929
+ return _response.body;
930
+ }
931
+ if (_response.error.reason === "status-code") {
932
+ switch (_response.error.statusCode) {
933
+ case 401:
934
+ throw new Intercom.UnauthorizedError(_response.error.body);
935
+ case 403:
936
+ throw new Intercom.ForbiddenError(_response.error.body);
937
+ case 404:
938
+ throw new Intercom.NotFoundError(_response.error.body);
939
+ case 422:
940
+ throw new Intercom.UnprocessableEntityError(_response.error.body);
941
+ default:
942
+ throw new errors.IntercomError({
943
+ statusCode: _response.error.statusCode,
944
+ body: _response.error.body,
945
+ });
946
+ }
947
+ }
948
+ switch (_response.error.reason) {
949
+ case "non-json":
950
+ throw new errors.IntercomError({
951
+ statusCode: _response.error.statusCode,
952
+ body: _response.error.rawBody,
953
+ });
954
+ case "timeout":
955
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling DELETE /conversations/{conversation_id}/customers/{contact_id}.");
956
+ case "unknown":
957
+ throw new errors.IntercomError({
958
+ message: _response.error.errorMessage,
959
+ });
960
+ }
961
+ });
962
+ }
963
+ /**
964
+ * You can redact a conversation part or the source message of a conversation (as seen in the source object).
965
+ *
966
+ * {% admonition type="info" name="Redacting parts and messages" %}
967
+ * 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.
968
+ * {% /admonition %}
969
+ *
970
+ *
971
+ * @param {Intercom.RedactConversationRequest} request
972
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
973
+ *
974
+ * @throws {@link Intercom.UnauthorizedError}
975
+ * @throws {@link Intercom.NotFoundError}
976
+ *
977
+ * @example
978
+ * await client.conversations.redactConversationPart({
979
+ * type: "conversation_part",
980
+ * conversation_id: "19894788788",
981
+ * conversation_part_id: "19381789428"
982
+ * })
983
+ *
984
+ * @example
985
+ * await client.conversations.redactConversationPart({
986
+ * type: "conversation_part",
987
+ * conversation_id: "really_123_doesnt_exist",
988
+ * conversation_part_id: "really_123_doesnt_exist"
989
+ * })
990
+ */
991
+ redactConversationPart(request, requestOptions) {
992
+ var _a, _b, _c, _d, _e;
993
+ return __awaiter(this, void 0, void 0, function* () {
994
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
995
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "conversations/redact"),
996
+ method: "POST",
997
+ 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),
998
+ contentType: "application/json",
999
+ requestType: "json",
1000
+ body: request,
1001
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1002
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1003
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1004
+ });
1005
+ if (_response.ok) {
1006
+ return _response.body;
1007
+ }
1008
+ if (_response.error.reason === "status-code") {
1009
+ switch (_response.error.statusCode) {
1010
+ case 401:
1011
+ throw new Intercom.UnauthorizedError(_response.error.body);
1012
+ case 404:
1013
+ throw new Intercom.NotFoundError(_response.error.body);
1014
+ default:
1015
+ throw new errors.IntercomError({
1016
+ statusCode: _response.error.statusCode,
1017
+ body: _response.error.body,
1018
+ });
1019
+ }
1020
+ }
1021
+ switch (_response.error.reason) {
1022
+ case "non-json":
1023
+ throw new errors.IntercomError({
1024
+ statusCode: _response.error.statusCode,
1025
+ body: _response.error.rawBody,
1026
+ });
1027
+ case "timeout":
1028
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/redact.");
1029
+ case "unknown":
1030
+ throw new errors.IntercomError({
1031
+ message: _response.error.errorMessage,
1032
+ });
1033
+ }
1034
+ });
1035
+ }
1036
+ /**
1037
+ * You can convert a conversation to a ticket.
1038
+ *
1039
+ * @param {Intercom.ConvertConversationToTicketRequest} request
1040
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
1041
+ *
1042
+ * @throws {@link Intercom.BadRequestError}
1043
+ *
1044
+ * @example
1045
+ * await client.conversations.convertToTicket({
1046
+ * conversation_id: "123",
1047
+ * ticket_type_id: "79"
1048
+ * })
1049
+ *
1050
+ * @example
1051
+ * await client.conversations.convertToTicket({
1052
+ * conversation_id: "123",
1053
+ * ticket_type_id: "80"
1054
+ * })
1055
+ */
1056
+ convertToTicket(request, requestOptions) {
1057
+ var _a, _b, _c, _d, _e;
1058
+ return __awaiter(this, void 0, void 0, function* () {
1059
+ const { conversation_id: conversationId } = request, _body = __rest(request, ["conversation_id"]);
1060
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1061
+ 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)}/convert`),
1062
+ method: "POST",
1063
+ 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),
1064
+ contentType: "application/json",
1065
+ requestType: "json",
1066
+ body: _body,
1067
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1068
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1069
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1070
+ });
1071
+ if (_response.ok) {
1072
+ return _response.body;
1073
+ }
1074
+ if (_response.error.reason === "status-code") {
1075
+ switch (_response.error.statusCode) {
1076
+ case 400:
1077
+ throw new Intercom.BadRequestError(_response.error.body);
1078
+ default:
1079
+ throw new errors.IntercomError({
1080
+ statusCode: _response.error.statusCode,
1081
+ body: _response.error.body,
1082
+ });
1083
+ }
1084
+ }
1085
+ switch (_response.error.reason) {
1086
+ case "non-json":
1087
+ throw new errors.IntercomError({
1088
+ statusCode: _response.error.statusCode,
1089
+ body: _response.error.rawBody,
1090
+ });
1091
+ case "timeout":
1092
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{conversation_id}/convert.");
1093
+ case "unknown":
1094
+ throw new errors.IntercomError({
1095
+ message: _response.error.errorMessage,
1096
+ });
1097
+ }
1098
+ });
1099
+ }
1100
+ _getAuthorizationHeader() {
1101
+ var _a;
1102
+ return __awaiter(this, void 0, void 0, function* () {
1103
+ const bearer = (_a = (yield core.Supplier.get(this._options.token))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["INTERCOM_API_KEY"];
1104
+ if (bearer == null) {
1105
+ throw new errors.IntercomError({
1106
+ message: "Please specify INTERCOM_API_KEY when instantiating the client.",
1107
+ });
1108
+ }
1109
+ return `Bearer ${bearer}`;
1110
+ });
1111
+ }
1112
+ }
1113
+ exports.Conversations = Conversations;