intercom-client 6.2.0 → 6.4.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 (1991) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/README.md +22 -21
  4. package/api/errors/BadRequestError.d.ts +2 -1
  5. package/api/errors/BadRequestError.js +2 -1
  6. package/api/errors/ForbiddenError.d.ts +2 -1
  7. package/api/errors/ForbiddenError.js +2 -1
  8. package/api/errors/NotFoundError.d.ts +2 -1
  9. package/api/errors/NotFoundError.js +2 -1
  10. package/api/errors/UnauthorizedError.d.ts +2 -1
  11. package/api/errors/UnauthorizedError.js +2 -1
  12. package/api/errors/UnprocessableEntityError.d.ts +2 -1
  13. package/api/errors/UnprocessableEntityError.js +2 -1
  14. package/api/resources/admins/client/Client.d.ts +10 -5
  15. package/api/resources/admins/client/Client.js +46 -16
  16. package/api/resources/aiContentSource/types/ContentSource.d.ts +1 -14
  17. package/api/resources/aiContentSource/types/ContentSource.js +0 -11
  18. package/api/resources/articles/client/Client.d.ts +10 -5
  19. package/api/resources/articles/client/Client.js +61 -26
  20. package/api/resources/companies/client/Client.d.ts +18 -9
  21. package/api/resources/companies/client/Client.js +115 -51
  22. package/api/resources/companies/types/CompaniesRetrieveResponse.d.ts +13 -0
  23. package/api/resources/companies/types/Company.d.ts +0 -2
  24. package/api/resources/companies/types/index.d.ts +1 -0
  25. package/api/resources/companies/types/index.js +1 -0
  26. package/api/resources/contacts/client/Client.d.ts +24 -12
  27. package/api/resources/contacts/client/Client.js +148 -58
  28. package/api/resources/conversations/client/Client.d.ts +20 -10
  29. package/api/resources/conversations/client/Client.js +136 -60
  30. package/api/resources/dataAttributes/client/Client.d.ts +6 -3
  31. package/api/resources/dataAttributes/client/Client.js +32 -14
  32. package/api/resources/dataExport/client/Client.d.ts +8 -4
  33. package/api/resources/dataExport/client/Client.js +32 -8
  34. package/api/resources/events/client/Client.d.ts +6 -3
  35. package/api/resources/events/client/Client.js +28 -10
  36. package/api/resources/helpCenters/client/Client.d.ts +2 -1
  37. package/api/resources/helpCenters/client/Client.js +21 -10
  38. package/api/resources/helpCenters/resources/collections/client/Client.d.ts +8 -4
  39. package/api/resources/helpCenters/resources/collections/client/Client.js +51 -22
  40. package/api/resources/index.d.ts +1 -0
  41. package/api/resources/index.js +2 -1
  42. package/api/resources/messages/client/Client.d.ts +2 -1
  43. package/api/resources/messages/client/Client.js +12 -6
  44. package/api/resources/news/resources/feeds/client/Client.d.ts +6 -3
  45. package/api/resources/news/resources/feeds/client/Client.js +27 -9
  46. package/api/resources/news/resources/items/client/Client.d.ts +10 -5
  47. package/api/resources/news/resources/items/client/Client.js +48 -18
  48. package/api/resources/notes/client/Client.d.ts +4 -2
  49. package/api/resources/notes/client/Client.js +30 -13
  50. package/api/resources/phoneCallRedirects/client/Client.d.ts +2 -1
  51. package/api/resources/phoneCallRedirects/client/Client.js +11 -5
  52. package/api/resources/segments/client/Client.d.ts +4 -2
  53. package/api/resources/segments/client/Client.js +20 -8
  54. package/api/resources/subscriptionTypes/client/Client.d.ts +2 -1
  55. package/api/resources/subscriptionTypes/client/Client.js +9 -3
  56. package/api/resources/tags/client/Client.d.ts +20 -10
  57. package/api/resources/tags/client/Client.js +101 -41
  58. package/api/resources/teams/client/Client.d.ts +4 -2
  59. package/api/resources/teams/client/Client.js +19 -7
  60. package/api/resources/ticketTypes/client/Client.d.ts +8 -4
  61. package/api/resources/ticketTypes/client/Client.js +36 -12
  62. package/api/resources/ticketTypes/resources/attributes/client/Client.d.ts +4 -2
  63. package/api/resources/ticketTypes/resources/attributes/client/Client.js +18 -6
  64. package/api/resources/tickets/client/Client.d.ts +8 -4
  65. package/api/resources/tickets/client/Client.js +49 -20
  66. package/api/resources/tickets/client/requests/index.d.ts +0 -1
  67. package/api/resources/unstable/client/Client.d.ts +104 -0
  68. package/api/resources/unstable/client/Client.js +152 -0
  69. package/api/resources/unstable/client/index.d.ts +1 -0
  70. package/api/resources/unstable/client/index.js +2 -0
  71. package/api/resources/unstable/errors/BadRequestError.d.ts +8 -0
  72. package/api/resources/unstable/errors/BadRequestError.js +52 -0
  73. package/api/resources/unstable/errors/ForbiddenError.d.ts +9 -0
  74. package/api/resources/unstable/errors/ForbiddenError.js +52 -0
  75. package/api/resources/unstable/errors/InternalServerError.d.ts +9 -0
  76. package/api/resources/unstable/errors/InternalServerError.js +52 -0
  77. package/api/resources/unstable/errors/NotFoundError.d.ts +8 -0
  78. package/api/resources/unstable/errors/NotFoundError.js +52 -0
  79. package/api/resources/unstable/errors/TooManyRequestsError.d.ts +9 -0
  80. package/api/resources/unstable/errors/TooManyRequestsError.js +52 -0
  81. package/api/resources/unstable/errors/UnauthorizedError.d.ts +9 -0
  82. package/api/resources/unstable/errors/UnauthorizedError.js +52 -0
  83. package/api/resources/unstable/errors/UnprocessableEntityError.d.ts +8 -0
  84. package/api/resources/unstable/errors/UnprocessableEntityError.js +52 -0
  85. package/api/resources/unstable/errors/index.d.ts +7 -0
  86. package/api/resources/unstable/errors/index.js +23 -0
  87. package/api/resources/unstable/index.d.ts +4 -0
  88. package/api/resources/unstable/index.js +20 -0
  89. package/api/resources/unstable/resources/admins/client/Client.d.ts +123 -0
  90. package/api/resources/unstable/resources/admins/client/Client.js +418 -0
  91. package/api/resources/unstable/resources/admins/client/index.d.ts +1 -0
  92. package/api/resources/unstable/resources/admins/client/index.js +17 -0
  93. package/api/resources/unstable/resources/admins/client/requests/ListActivityLogsRequest.d.ts +20 -0
  94. package/api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.d.ts +15 -0
  95. package/api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.js +5 -0
  96. package/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.d.ts +38 -0
  97. package/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.js +5 -0
  98. package/api/resources/unstable/resources/admins/client/requests/index.d.ts +3 -0
  99. package/api/resources/unstable/resources/admins/client/requests/index.js +2 -0
  100. package/api/resources/unstable/resources/admins/index.d.ts +2 -0
  101. package/api/resources/unstable/resources/admins/index.js +18 -0
  102. package/api/resources/unstable/resources/admins/types/Admin.d.ts +32 -0
  103. package/api/resources/unstable/resources/admins/types/Admin.js +5 -0
  104. package/api/resources/unstable/resources/admins/types/index.d.ts +1 -0
  105. package/api/resources/unstable/resources/admins/types/index.js +17 -0
  106. package/api/resources/unstable/resources/aiAgent/index.d.ts +1 -0
  107. package/api/resources/unstable/resources/aiAgent/index.js +17 -0
  108. package/api/resources/unstable/resources/aiAgent/types/AiAgent.d.ts +35 -0
  109. package/api/resources/unstable/resources/aiAgent/types/AiAgent.js +16 -0
  110. package/api/resources/unstable/resources/aiAgent/types/index.d.ts +1 -0
  111. package/api/resources/unstable/resources/aiAgent/types/index.js +17 -0
  112. package/api/resources/unstable/resources/aiContent/client/Client.d.ts +202 -0
  113. package/api/resources/unstable/resources/aiContent/client/Client.js +735 -0
  114. package/api/resources/unstable/resources/aiContent/client/index.d.ts +1 -0
  115. package/api/resources/unstable/resources/aiContent/client/index.js +17 -0
  116. package/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.d.ts +25 -0
  117. package/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.js +13 -0
  118. package/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.d.ts +29 -0
  119. package/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.js +5 -0
  120. package/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.d.ts +15 -0
  121. package/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.js +5 -0
  122. package/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.d.ts +15 -0
  123. package/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.js +5 -0
  124. package/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.d.ts +15 -0
  125. package/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.js +5 -0
  126. package/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.d.ts +15 -0
  127. package/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.js +5 -0
  128. package/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.d.ts +42 -0
  129. package/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.js +18 -0
  130. package/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.d.ts +32 -0
  131. package/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.js +5 -0
  132. package/api/resources/unstable/resources/aiContent/client/requests/index.d.ts +8 -0
  133. package/api/resources/unstable/resources/aiContent/client/requests/index.js +2 -0
  134. package/api/resources/unstable/resources/aiContent/index.d.ts +2 -0
  135. package/api/resources/unstable/resources/aiContent/index.js +18 -0
  136. package/api/resources/unstable/resources/aiContent/types/ContentImportSource.d.ts +43 -0
  137. package/api/resources/unstable/resources/aiContent/types/ContentImportSource.js +18 -0
  138. package/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.d.ts +16 -0
  139. package/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.js +5 -0
  140. package/api/resources/unstable/resources/aiContent/types/ExternalPage.d.ts +36 -0
  141. package/api/resources/unstable/resources/aiContent/types/ExternalPage.js +5 -0
  142. package/api/resources/unstable/resources/aiContent/types/ExternalPagesList.d.ts +16 -0
  143. package/api/resources/unstable/resources/aiContent/types/ExternalPagesList.js +5 -0
  144. package/api/resources/unstable/resources/aiContent/types/index.d.ts +4 -0
  145. package/api/resources/unstable/resources/aiContent/types/index.js +20 -0
  146. package/api/resources/unstable/resources/aiContentSource/index.d.ts +1 -0
  147. package/api/resources/unstable/resources/aiContentSource/index.js +17 -0
  148. package/api/resources/unstable/resources/aiContentSource/types/ContentSource.d.ts +29 -0
  149. package/api/resources/unstable/resources/aiContentSource/types/ContentSource.js +16 -0
  150. package/api/resources/unstable/resources/aiContentSource/types/index.d.ts +1 -0
  151. package/api/resources/unstable/resources/aiContentSource/types/index.js +17 -0
  152. package/api/resources/unstable/resources/articles/client/Client.d.ts +117 -0
  153. package/api/resources/unstable/resources/articles/client/Client.js +417 -0
  154. package/api/resources/unstable/resources/articles/client/index.d.ts +1 -0
  155. package/api/resources/unstable/resources/articles/client/index.js +17 -0
  156. package/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.d.ts +15 -0
  157. package/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.js +5 -0
  158. package/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.d.ts +15 -0
  159. package/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.js +5 -0
  160. package/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.d.ts +28 -0
  161. package/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.js +5 -0
  162. package/api/resources/unstable/resources/articles/client/requests/index.d.ts +3 -0
  163. package/api/resources/unstable/resources/articles/client/requests/index.js +2 -0
  164. package/api/resources/unstable/resources/articles/index.d.ts +2 -0
  165. package/api/resources/unstable/resources/articles/index.js +18 -0
  166. package/api/resources/unstable/resources/articles/types/Article.d.ts +10 -0
  167. package/api/resources/unstable/resources/articles/types/Article.js +5 -0
  168. package/api/resources/unstable/resources/articles/types/ArticleListItem.d.ts +50 -0
  169. package/api/resources/unstable/resources/articles/types/ArticleListItem.js +13 -0
  170. package/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.d.ts +60 -0
  171. package/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.js +29 -0
  172. package/api/resources/unstable/resources/articles/types/ArticleSearchResponse.d.ts +27 -0
  173. package/api/resources/unstable/resources/articles/types/ArticleSearchResponse.js +5 -0
  174. package/api/resources/unstable/resources/articles/types/index.d.ts +4 -0
  175. package/api/resources/unstable/resources/articles/types/index.js +20 -0
  176. package/api/resources/unstable/resources/awayStatusReasons/client/Client.d.ts +49 -0
  177. package/api/resources/unstable/resources/awayStatusReasons/client/Client.js +135 -0
  178. package/api/resources/unstable/resources/awayStatusReasons/client/index.d.ts +1 -0
  179. package/api/resources/unstable/resources/awayStatusReasons/client/index.js +2 -0
  180. package/api/resources/unstable/resources/awayStatusReasons/index.d.ts +1 -0
  181. package/api/resources/unstable/resources/awayStatusReasons/index.js +17 -0
  182. package/api/resources/unstable/resources/companies/client/Client.d.ts +271 -0
  183. package/api/resources/unstable/resources/companies/client/Client.js +908 -0
  184. package/api/resources/unstable/resources/companies/client/index.d.ts +1 -0
  185. package/api/resources/unstable/resources/companies/client/index.js +17 -0
  186. package/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.d.ts +30 -0
  187. package/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.js +5 -0
  188. package/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.d.ts +15 -0
  189. package/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.js +5 -0
  190. package/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.d.ts +20 -0
  191. package/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.js +5 -0
  192. package/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.d.ts +23 -0
  193. package/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.js +5 -0
  194. package/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.d.ts +15 -0
  195. package/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.js +5 -0
  196. package/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.d.ts +15 -0
  197. package/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.js +5 -0
  198. package/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.d.ts +15 -0
  199. package/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.js +5 -0
  200. package/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.d.ts +38 -0
  201. package/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.js +5 -0
  202. package/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.d.ts +13 -0
  203. package/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.js +5 -0
  204. package/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.d.ts +15 -0
  205. package/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.js +5 -0
  206. package/api/resources/unstable/resources/companies/client/requests/index.d.ts +10 -0
  207. package/api/resources/unstable/resources/companies/client/requests/index.js +2 -0
  208. package/api/resources/unstable/resources/companies/index.d.ts +2 -0
  209. package/api/resources/unstable/resources/companies/index.js +18 -0
  210. package/api/resources/unstable/resources/companies/types/Company.d.ts +72 -0
  211. package/api/resources/unstable/resources/companies/types/Company.js +5 -0
  212. package/api/resources/unstable/resources/companies/types/index.d.ts +1 -0
  213. package/api/resources/unstable/resources/companies/types/index.js +17 -0
  214. package/api/resources/unstable/resources/contacts/client/Client.d.ts +395 -0
  215. package/api/resources/unstable/resources/contacts/client/Client.js +1165 -0
  216. package/api/resources/unstable/resources/contacts/client/index.d.ts +1 -0
  217. package/api/resources/unstable/resources/contacts/client/index.js +17 -0
  218. package/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.d.ts +15 -0
  219. package/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.js +5 -0
  220. package/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.d.ts +15 -0
  221. package/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.js +5 -0
  222. package/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.d.ts +15 -0
  223. package/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.js +5 -0
  224. package/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.d.ts +15 -0
  225. package/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.js +5 -0
  226. package/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.d.ts +15 -0
  227. package/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.js +5 -0
  228. package/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.d.ts +15 -0
  229. package/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.js +5 -0
  230. package/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.d.ts +15 -0
  231. package/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.js +5 -0
  232. package/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
  233. package/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
  234. package/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.d.ts +15 -0
  235. package/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.js +5 -0
  236. package/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.d.ts +15 -0
  237. package/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.js +5 -0
  238. package/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.d.ts +15 -0
  239. package/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.js +5 -0
  240. package/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.ts +49 -0
  241. package/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
  242. package/api/resources/unstable/resources/contacts/client/requests/index.d.ts +12 -0
  243. package/api/resources/unstable/resources/contacts/client/requests/index.js +2 -0
  244. package/api/resources/unstable/resources/contacts/index.d.ts +2 -0
  245. package/api/resources/unstable/resources/contacts/index.js +18 -0
  246. package/api/resources/unstable/resources/contacts/types/Contact.d.ts +103 -0
  247. package/api/resources/unstable/resources/contacts/types/Contact.js +5 -0
  248. package/api/resources/unstable/resources/contacts/types/CreateContactResponse.d.ts +8 -0
  249. package/api/resources/unstable/resources/contacts/types/CreateContactResponse.js +5 -0
  250. package/api/resources/unstable/resources/contacts/types/MergeContactResponse.d.ts +8 -0
  251. package/api/resources/unstable/resources/contacts/types/MergeContactResponse.js +5 -0
  252. package/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.d.ts +8 -0
  253. package/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.js +5 -0
  254. package/api/resources/unstable/resources/contacts/types/ShowContactResponse.d.ts +8 -0
  255. package/api/resources/unstable/resources/contacts/types/ShowContactResponse.js +5 -0
  256. package/api/resources/unstable/resources/contacts/types/UpdateContactResponse.d.ts +8 -0
  257. package/api/resources/unstable/resources/contacts/types/UpdateContactResponse.js +5 -0
  258. package/api/resources/unstable/resources/contacts/types/index.d.ts +6 -0
  259. package/api/resources/unstable/resources/contacts/types/index.js +22 -0
  260. package/api/resources/unstable/resources/conversations/client/Client.d.ts +545 -0
  261. package/api/resources/unstable/resources/conversations/client/Client.js +1218 -0
  262. package/api/resources/unstable/resources/conversations/client/index.d.ts +1 -0
  263. package/api/resources/unstable/resources/conversations/client/index.js +17 -0
  264. package/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +44 -0
  265. package/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
  266. package/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +26 -0
  267. package/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
  268. package/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.d.ts +48 -0
  269. package/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.js +17 -0
  270. package/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.d.ts +15 -0
  271. package/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.js +5 -0
  272. package/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +44 -0
  273. package/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
  274. package/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.d.ts +17 -0
  275. package/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.js +5 -0
  276. package/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.d.ts +62 -0
  277. package/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.js +5 -0
  278. package/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.d.ts +77 -0
  279. package/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.js +5 -0
  280. package/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.d.ts +20 -0
  281. package/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.js +5 -0
  282. package/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.d.ts +53 -0
  283. package/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
  284. package/api/resources/unstable/resources/conversations/client/requests/index.d.ts +10 -0
  285. package/api/resources/unstable/resources/conversations/client/requests/index.js +2 -0
  286. package/api/resources/unstable/resources/conversations/index.d.ts +2 -0
  287. package/api/resources/unstable/resources/conversations/index.js +18 -0
  288. package/api/resources/unstable/resources/conversations/types/Conversation.d.ts +68 -0
  289. package/api/resources/unstable/resources/conversations/types/Conversation.js +18 -0
  290. package/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.d.ts +19 -0
  291. package/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.js +5 -0
  292. package/api/resources/unstable/resources/conversations/types/index.d.ts +2 -0
  293. package/api/resources/unstable/resources/conversations/types/index.js +18 -0
  294. package/api/resources/unstable/resources/customChannelEvents/client/Client.d.ts +144 -0
  295. package/api/resources/unstable/resources/customChannelEvents/client/Client.js +408 -0
  296. package/api/resources/unstable/resources/customChannelEvents/client/index.d.ts +1 -0
  297. package/api/resources/unstable/resources/customChannelEvents/client/index.js +17 -0
  298. package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.d.ts +24 -0
  299. package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.js +5 -0
  300. package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.d.ts +22 -0
  301. package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.js +5 -0
  302. package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.d.ts +22 -0
  303. package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.js +5 -0
  304. package/api/resources/unstable/resources/customChannelEvents/client/requests/index.d.ts +3 -0
  305. package/api/resources/unstable/resources/customChannelEvents/client/requests/index.js +2 -0
  306. package/api/resources/unstable/resources/customChannelEvents/index.d.ts +1 -0
  307. package/api/resources/unstable/resources/customChannelEvents/index.js +17 -0
  308. package/api/resources/unstable/resources/customObjectInstances/client/Client.d.ts +131 -0
  309. package/api/resources/unstable/resources/customObjectInstances/client/Client.js +449 -0
  310. package/api/resources/unstable/resources/customObjectInstances/client/index.d.ts +1 -0
  311. package/api/resources/unstable/resources/customObjectInstances/client/index.js +17 -0
  312. package/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.d.ts +30 -0
  313. package/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.js +5 -0
  314. package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.d.ts +20 -0
  315. package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.js +5 -0
  316. package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.d.ts +17 -0
  317. package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.js +5 -0
  318. package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.d.ts +17 -0
  319. package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.js +5 -0
  320. package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.d.ts +20 -0
  321. package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.js +5 -0
  322. package/api/resources/unstable/resources/customObjectInstances/client/requests/index.d.ts +5 -0
  323. package/api/resources/unstable/resources/customObjectInstances/client/requests/index.js +2 -0
  324. package/api/resources/unstable/resources/customObjectInstances/index.d.ts +2 -0
  325. package/api/resources/unstable/resources/customObjectInstances/index.js +18 -0
  326. package/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.d.ts +24 -0
  327. package/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
  328. package/api/resources/unstable/resources/customObjectInstances/types/index.d.ts +1 -0
  329. package/api/resources/unstable/resources/customObjectInstances/types/index.js +17 -0
  330. package/api/resources/unstable/resources/dataAttributes/client/Client.d.ts +146 -0
  331. package/api/resources/unstable/resources/dataAttributes/client/Client.js +355 -0
  332. package/api/resources/unstable/resources/dataAttributes/client/index.d.ts +1 -0
  333. package/api/resources/unstable/resources/dataAttributes/client/index.js +17 -0
  334. package/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +84 -0
  335. package/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +21 -0
  336. package/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.d.ts +18 -0
  337. package/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.js +5 -0
  338. package/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +49 -0
  339. package/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
  340. package/api/resources/unstable/resources/dataAttributes/client/requests/index.d.ts +3 -0
  341. package/api/resources/unstable/resources/dataAttributes/client/requests/index.js +2 -0
  342. package/api/resources/unstable/resources/dataAttributes/index.d.ts +2 -0
  343. package/api/resources/unstable/resources/dataAttributes/index.js +18 -0
  344. package/api/resources/unstable/resources/dataAttributes/types/DataAttribute.d.ts +63 -0
  345. package/api/resources/unstable/resources/dataAttributes/types/DataAttribute.js +20 -0
  346. package/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.d.ts +9 -0
  347. package/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.js +11 -0
  348. package/api/resources/unstable/resources/dataAttributes/types/index.d.ts +2 -0
  349. package/api/resources/unstable/resources/dataAttributes/types/index.js +18 -0
  350. package/api/resources/unstable/resources/dataEvents/client/Client.d.ts +136 -0
  351. package/api/resources/unstable/resources/dataEvents/client/Client.js +325 -0
  352. package/api/resources/unstable/resources/dataEvents/client/index.d.ts +1 -0
  353. package/api/resources/unstable/resources/dataEvents/client/index.js +17 -0
  354. package/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.d.ts +28 -0
  355. package/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.js +5 -0
  356. package/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.d.ts +24 -0
  357. package/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.js +5 -0
  358. package/api/resources/unstable/resources/dataEvents/client/requests/index.d.ts +2 -0
  359. package/api/resources/unstable/resources/dataEvents/client/requests/index.js +2 -0
  360. package/api/resources/unstable/resources/dataEvents/index.d.ts +2 -0
  361. package/api/resources/unstable/resources/dataEvents/index.js +18 -0
  362. package/api/resources/unstable/resources/dataEvents/types/DataEvent.d.ts +24 -0
  363. package/api/resources/unstable/resources/dataEvents/types/DataEvent.js +5 -0
  364. package/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.d.ts +10 -0
  365. package/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.js +5 -0
  366. package/api/resources/unstable/resources/dataEvents/types/index.d.ts +2 -0
  367. package/api/resources/unstable/resources/dataEvents/types/index.js +18 -0
  368. package/api/resources/unstable/resources/dataExport/client/Client.d.ts +114 -0
  369. package/api/resources/unstable/resources/dataExport/client/Client.js +321 -0
  370. package/api/resources/unstable/resources/dataExport/client/index.d.ts +1 -0
  371. package/api/resources/unstable/resources/dataExport/client/index.js +17 -0
  372. package/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.d.ts +15 -0
  373. package/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.js +5 -0
  374. package/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
  375. package/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
  376. package/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.d.ts +15 -0
  377. package/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.js +5 -0
  378. package/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.d.ts +15 -0
  379. package/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.js +5 -0
  380. package/api/resources/unstable/resources/dataExport/client/requests/index.d.ts +4 -0
  381. package/api/resources/unstable/resources/dataExport/client/requests/index.js +2 -0
  382. package/api/resources/unstable/resources/dataExport/index.d.ts +2 -0
  383. package/api/resources/unstable/resources/dataExport/index.js +18 -0
  384. package/api/resources/unstable/resources/dataExport/types/DataExport.d.ts +30 -0
  385. package/api/resources/unstable/resources/dataExport/types/DataExport.js +17 -0
  386. package/api/resources/unstable/resources/dataExport/types/index.d.ts +1 -0
  387. package/api/resources/unstable/resources/dataExport/types/index.js +17 -0
  388. package/api/resources/unstable/resources/export/client/Client.d.ts +60 -0
  389. package/api/resources/unstable/resources/export/client/Client.js +198 -0
  390. package/api/resources/unstable/resources/export/client/index.d.ts +1 -0
  391. package/api/resources/unstable/resources/export/client/index.js +17 -0
  392. package/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.d.ts +18 -0
  393. package/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.js +5 -0
  394. package/api/resources/unstable/resources/export/client/requests/index.d.ts +1 -0
  395. package/api/resources/unstable/resources/export/client/requests/index.js +2 -0
  396. package/api/resources/unstable/resources/export/index.d.ts +2 -0
  397. package/api/resources/unstable/resources/export/index.js +18 -0
  398. package/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.ts +28 -0
  399. package/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.js +5 -0
  400. package/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.d.ts +9 -0
  401. package/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.js +5 -0
  402. package/api/resources/unstable/resources/export/types/index.d.ts +2 -0
  403. package/api/resources/unstable/resources/export/types/index.js +18 -0
  404. package/api/resources/unstable/resources/helpCenter/client/Client.d.ts +150 -0
  405. package/api/resources/unstable/resources/helpCenter/client/Client.js +542 -0
  406. package/api/resources/unstable/resources/helpCenter/client/index.d.ts +1 -0
  407. package/api/resources/unstable/resources/helpCenter/client/index.js +17 -0
  408. package/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.d.ts +27 -0
  409. package/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.js +5 -0
  410. package/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.d.ts +15 -0
  411. package/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.js +5 -0
  412. package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.d.ts +15 -0
  413. package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.js +5 -0
  414. package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.d.ts +15 -0
  415. package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.js +5 -0
  416. package/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.d.ts +30 -0
  417. package/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.js +5 -0
  418. package/api/resources/unstable/resources/helpCenter/client/requests/index.d.ts +5 -0
  419. package/api/resources/unstable/resources/helpCenter/client/requests/index.js +2 -0
  420. package/api/resources/unstable/resources/helpCenter/index.d.ts +2 -0
  421. package/api/resources/unstable/resources/helpCenter/index.js +18 -0
  422. package/api/resources/unstable/resources/helpCenter/types/Collection.d.ts +34 -0
  423. package/api/resources/unstable/resources/helpCenter/types/Collection.js +5 -0
  424. package/api/resources/unstable/resources/helpCenter/types/HelpCenter.d.ts +22 -0
  425. package/api/resources/unstable/resources/helpCenter/types/HelpCenter.js +5 -0
  426. package/api/resources/unstable/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
  427. package/api/resources/unstable/resources/helpCenter/types/HelpCenterList.js +5 -0
  428. package/api/resources/unstable/resources/helpCenter/types/index.d.ts +3 -0
  429. package/api/resources/unstable/resources/helpCenter/types/index.js +19 -0
  430. package/api/resources/unstable/resources/index.d.ts +78 -0
  431. package/api/resources/unstable/resources/index.js +117 -0
  432. package/api/resources/unstable/resources/jobs/client/Client.d.ts +53 -0
  433. package/api/resources/unstable/resources/jobs/client/Client.js +142 -0
  434. package/api/resources/unstable/resources/jobs/client/index.d.ts +1 -0
  435. package/api/resources/unstable/resources/jobs/client/index.js +17 -0
  436. package/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.d.ts +15 -0
  437. package/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.js +5 -0
  438. package/api/resources/unstable/resources/jobs/client/requests/index.d.ts +1 -0
  439. package/api/resources/unstable/resources/jobs/client/requests/index.js +2 -0
  440. package/api/resources/unstable/resources/jobs/index.d.ts +2 -0
  441. package/api/resources/unstable/resources/jobs/index.js +18 -0
  442. package/api/resources/unstable/resources/jobs/types/Jobs.d.ts +33 -0
  443. package/api/resources/unstable/resources/jobs/types/Jobs.js +14 -0
  444. package/api/resources/unstable/resources/jobs/types/index.d.ts +1 -0
  445. package/api/resources/unstable/resources/jobs/types/index.js +17 -0
  446. package/api/resources/unstable/resources/messages/client/Client.d.ts +212 -0
  447. package/api/resources/unstable/resources/messages/client/Client.js +370 -0
  448. package/api/resources/unstable/resources/messages/client/index.d.ts +1 -0
  449. package/api/resources/unstable/resources/messages/client/index.js +17 -0
  450. package/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.d.ts +23 -0
  451. package/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.js +5 -0
  452. package/api/resources/unstable/resources/messages/client/requests/index.d.ts +1 -0
  453. package/api/resources/unstable/resources/messages/client/requests/index.js +2 -0
  454. package/api/resources/unstable/resources/messages/index.d.ts +2 -0
  455. package/api/resources/unstable/resources/messages/index.js +18 -0
  456. package/api/resources/unstable/resources/messages/types/Message.d.ts +35 -0
  457. package/api/resources/unstable/resources/messages/types/Message.js +16 -0
  458. package/api/resources/unstable/resources/messages/types/index.d.ts +1 -0
  459. package/api/resources/unstable/resources/messages/types/index.js +17 -0
  460. package/api/resources/unstable/resources/news/client/Client.d.ts +179 -0
  461. package/api/resources/unstable/resources/news/client/Client.js +600 -0
  462. package/api/resources/unstable/resources/news/client/index.d.ts +1 -0
  463. package/api/resources/unstable/resources/news/client/index.js +17 -0
  464. package/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.d.ts +15 -0
  465. package/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.js +5 -0
  466. package/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.d.ts +15 -0
  467. package/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.js +5 -0
  468. package/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.d.ts +15 -0
  469. package/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.js +5 -0
  470. package/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.d.ts +15 -0
  471. package/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.js +5 -0
  472. package/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.d.ts +34 -0
  473. package/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.js +5 -0
  474. package/api/resources/unstable/resources/news/client/requests/index.d.ts +5 -0
  475. package/api/resources/unstable/resources/news/client/requests/index.js +2 -0
  476. package/api/resources/unstable/resources/news/index.d.ts +2 -0
  477. package/api/resources/unstable/resources/news/index.js +18 -0
  478. package/api/resources/unstable/resources/news/types/NewsItem.d.ts +45 -0
  479. package/api/resources/unstable/resources/news/types/NewsItem.js +13 -0
  480. package/api/resources/unstable/resources/news/types/Newsfeed.d.ts +18 -0
  481. package/api/resources/unstable/resources/news/types/Newsfeed.js +5 -0
  482. package/api/resources/unstable/resources/news/types/NewsfeedAssignment.d.ts +12 -0
  483. package/api/resources/unstable/resources/news/types/NewsfeedAssignment.js +5 -0
  484. package/api/resources/unstable/resources/news/types/index.d.ts +3 -0
  485. package/api/resources/unstable/resources/news/types/index.js +19 -0
  486. package/api/resources/unstable/resources/notes/client/Client.d.ts +102 -0
  487. package/api/resources/unstable/resources/notes/client/Client.js +297 -0
  488. package/api/resources/unstable/resources/notes/client/index.d.ts +1 -0
  489. package/api/resources/unstable/resources/notes/client/index.js +17 -0
  490. package/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.d.ts +40 -0
  491. package/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.js +5 -0
  492. package/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.d.ts +15 -0
  493. package/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.js +5 -0
  494. package/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.d.ts +15 -0
  495. package/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.js +5 -0
  496. package/api/resources/unstable/resources/notes/client/requests/index.d.ts +3 -0
  497. package/api/resources/unstable/resources/notes/client/requests/index.js +2 -0
  498. package/api/resources/unstable/resources/notes/index.d.ts +2 -0
  499. package/api/resources/unstable/resources/notes/index.js +18 -0
  500. package/api/resources/unstable/resources/notes/types/Note.d.ts +32 -0
  501. package/api/resources/unstable/resources/notes/types/Note.js +5 -0
  502. package/api/resources/unstable/resources/notes/types/index.d.ts +1 -0
  503. package/api/resources/unstable/resources/notes/types/index.js +17 -0
  504. package/api/resources/unstable/resources/segments/client/Client.d.ts +66 -0
  505. package/api/resources/unstable/resources/segments/client/Client.js +207 -0
  506. package/api/resources/unstable/resources/segments/client/index.d.ts +1 -0
  507. package/api/resources/unstable/resources/segments/client/index.js +17 -0
  508. package/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.d.ts +13 -0
  509. package/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.js +5 -0
  510. package/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.d.ts +15 -0
  511. package/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.js +5 -0
  512. package/api/resources/unstable/resources/segments/client/requests/index.d.ts +2 -0
  513. package/api/resources/unstable/resources/segments/client/requests/index.js +2 -0
  514. package/api/resources/unstable/resources/segments/index.d.ts +2 -0
  515. package/api/resources/unstable/resources/segments/index.js +18 -0
  516. package/api/resources/unstable/resources/segments/types/Segment.d.ts +32 -0
  517. package/api/resources/unstable/resources/segments/types/Segment.js +13 -0
  518. package/api/resources/unstable/resources/segments/types/index.d.ts +1 -0
  519. package/api/resources/unstable/resources/segments/types/index.js +17 -0
  520. package/api/resources/unstable/resources/subscriptionTypes/client/Client.d.ts +97 -0
  521. package/api/resources/unstable/resources/subscriptionTypes/client/Client.js +296 -0
  522. package/api/resources/unstable/resources/subscriptionTypes/client/index.d.ts +1 -0
  523. package/api/resources/unstable/resources/subscriptionTypes/client/index.js +17 -0
  524. package/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.d.ts +35 -0
  525. package/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.js +5 -0
  526. package/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.d.ts +20 -0
  527. package/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.js +5 -0
  528. package/api/resources/unstable/resources/subscriptionTypes/client/requests/index.d.ts +2 -0
  529. package/api/resources/unstable/resources/subscriptionTypes/client/requests/index.js +2 -0
  530. package/api/resources/unstable/resources/subscriptionTypes/index.d.ts +2 -0
  531. package/api/resources/unstable/resources/subscriptionTypes/index.js +18 -0
  532. package/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.d.ts +49 -0
  533. package/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.js +25 -0
  534. package/api/resources/unstable/resources/subscriptionTypes/types/index.d.ts +1 -0
  535. package/api/resources/unstable/resources/subscriptionTypes/types/index.js +17 -0
  536. package/api/resources/unstable/resources/switch/client/Client.d.ts +57 -0
  537. package/api/resources/unstable/resources/switch/client/Client.js +151 -0
  538. package/api/resources/unstable/resources/switch/client/index.d.ts +1 -0
  539. package/api/resources/unstable/resources/switch/client/index.js +2 -0
  540. package/api/resources/unstable/resources/switch/index.d.ts +1 -0
  541. package/api/resources/unstable/resources/switch/index.js +17 -0
  542. package/api/resources/unstable/resources/tags/client/Client.d.ts +245 -0
  543. package/api/resources/unstable/resources/tags/client/Client.js +792 -0
  544. package/api/resources/unstable/resources/tags/client/index.d.ts +1 -0
  545. package/api/resources/unstable/resources/tags/client/index.js +17 -0
  546. package/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.d.ts +30 -0
  547. package/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.js +5 -0
  548. package/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.d.ts +28 -0
  549. package/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.js +5 -0
  550. package/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.d.ts +28 -0
  551. package/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.js +5 -0
  552. package/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.d.ts +15 -0
  553. package/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.js +5 -0
  554. package/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.d.ts +20 -0
  555. package/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.js +5 -0
  556. package/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.d.ts +37 -0
  557. package/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.js +5 -0
  558. package/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.d.ts +37 -0
  559. package/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.js +5 -0
  560. package/api/resources/unstable/resources/tags/client/requests/FindTagRequest.d.ts +15 -0
  561. package/api/resources/unstable/resources/tags/client/requests/FindTagRequest.js +5 -0
  562. package/api/resources/unstable/resources/tags/client/requests/index.d.ts +8 -0
  563. package/api/resources/unstable/resources/tags/client/requests/index.js +2 -0
  564. package/api/resources/unstable/resources/tags/index.d.ts +2 -0
  565. package/api/resources/unstable/resources/tags/index.js +18 -0
  566. package/api/resources/unstable/resources/tags/types/CreateTagRequestBody.d.ts +5 -0
  567. package/api/resources/unstable/resources/tags/types/CreateTagRequestBody.js +5 -0
  568. package/api/resources/unstable/resources/tags/types/Tag.d.ts +18 -0
  569. package/api/resources/unstable/resources/tags/types/Tag.js +5 -0
  570. package/api/resources/unstable/resources/tags/types/TagBasic.d.ts +14 -0
  571. package/api/resources/unstable/resources/tags/types/TagBasic.js +5 -0
  572. package/api/resources/unstable/resources/tags/types/index.d.ts +3 -0
  573. package/api/resources/unstable/resources/tags/types/index.js +19 -0
  574. package/api/resources/unstable/resources/teams/client/Client.d.ts +65 -0
  575. package/api/resources/unstable/resources/teams/client/Client.js +200 -0
  576. package/api/resources/unstable/resources/teams/client/index.d.ts +1 -0
  577. package/api/resources/unstable/resources/teams/client/index.js +17 -0
  578. package/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.d.ts +15 -0
  579. package/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.js +5 -0
  580. package/api/resources/unstable/resources/teams/client/requests/index.d.ts +1 -0
  581. package/api/resources/unstable/resources/teams/client/requests/index.js +2 -0
  582. package/api/resources/unstable/resources/teams/index.d.ts +2 -0
  583. package/api/resources/unstable/resources/teams/index.js +18 -0
  584. package/api/resources/unstable/resources/teams/types/Team.d.ts +18 -0
  585. package/api/resources/unstable/resources/teams/types/Team.js +5 -0
  586. package/api/resources/unstable/resources/teams/types/index.d.ts +1 -0
  587. package/api/resources/unstable/resources/teams/types/index.js +17 -0
  588. package/api/resources/unstable/resources/ticketStates/client/Client.d.ts +49 -0
  589. package/api/resources/unstable/resources/ticketStates/client/Client.js +135 -0
  590. package/api/resources/unstable/resources/ticketStates/client/index.d.ts +1 -0
  591. package/api/resources/unstable/resources/ticketStates/client/index.js +2 -0
  592. package/api/resources/unstable/resources/ticketStates/index.d.ts +1 -0
  593. package/api/resources/unstable/resources/ticketStates/index.js +17 -0
  594. package/api/resources/unstable/resources/ticketTypeAttributes/client/Client.d.ts +73 -0
  595. package/api/resources/unstable/resources/ticketTypeAttributes/client/Client.js +226 -0
  596. package/api/resources/unstable/resources/ticketTypeAttributes/client/index.d.ts +1 -0
  597. package/api/resources/unstable/resources/ticketTypeAttributes/client/index.js +17 -0
  598. package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +54 -0
  599. package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +18 -0
  600. package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +41 -0
  601. package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
  602. package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
  603. package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.js +2 -0
  604. package/api/resources/unstable/resources/ticketTypeAttributes/index.d.ts +1 -0
  605. package/api/resources/unstable/resources/ticketTypeAttributes/index.js +17 -0
  606. package/api/resources/unstable/resources/ticketTypes/client/Client.d.ts +83 -0
  607. package/api/resources/unstable/resources/ticketTypes/client/Client.js +269 -0
  608. package/api/resources/unstable/resources/ticketTypes/client/index.d.ts +1 -0
  609. package/api/resources/unstable/resources/ticketTypes/client/index.js +17 -0
  610. package/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.d.ts +15 -0
  611. package/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.js +5 -0
  612. package/api/resources/unstable/resources/ticketTypes/client/requests/index.d.ts +1 -0
  613. package/api/resources/unstable/resources/ticketTypes/client/requests/index.js +2 -0
  614. package/api/resources/unstable/resources/ticketTypes/index.d.ts +1 -0
  615. package/api/resources/unstable/resources/ticketTypes/index.js +17 -0
  616. package/api/resources/unstable/resources/tickets/client/Client.d.ts +277 -0
  617. package/api/resources/unstable/resources/tickets/client/Client.js +622 -0
  618. package/api/resources/unstable/resources/tickets/client/index.d.ts +1 -0
  619. package/api/resources/unstable/resources/tickets/client/index.js +17 -0
  620. package/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.d.ts +15 -0
  621. package/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.js +5 -0
  622. package/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.d.ts +17 -0
  623. package/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.js +5 -0
  624. package/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.d.ts +15 -0
  625. package/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.js +5 -0
  626. package/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.d.ts +59 -0
  627. package/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.js +5 -0
  628. package/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.d.ts +70 -0
  629. package/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
  630. package/api/resources/unstable/resources/tickets/client/requests/index.d.ts +5 -0
  631. package/api/resources/unstable/resources/tickets/client/requests/index.js +2 -0
  632. package/api/resources/unstable/resources/tickets/index.d.ts +2 -0
  633. package/api/resources/unstable/resources/tickets/index.js +18 -0
  634. package/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.d.ts +14 -0
  635. package/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.js +5 -0
  636. package/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.d.ts +5 -0
  637. package/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.js +5 -0
  638. package/api/resources/unstable/resources/tickets/types/Ticket.d.ts +48 -0
  639. package/api/resources/unstable/resources/tickets/types/Ticket.js +14 -0
  640. package/api/resources/unstable/resources/tickets/types/TicketContacts.d.ts +13 -0
  641. package/api/resources/unstable/resources/tickets/types/TicketContacts.js +5 -0
  642. package/api/resources/unstable/resources/tickets/types/TicketPart.d.ts +107 -0
  643. package/api/resources/unstable/resources/tickets/types/TicketPart.js +21 -0
  644. package/api/resources/unstable/resources/tickets/types/TicketState.d.ts +30 -0
  645. package/api/resources/unstable/resources/tickets/types/TicketState.js +15 -0
  646. package/api/resources/unstable/resources/tickets/types/TicketStateDetailed.d.ts +44 -0
  647. package/api/resources/unstable/resources/tickets/types/TicketStateDetailed.js +15 -0
  648. package/api/resources/unstable/resources/tickets/types/TicketType.d.ts +52 -0
  649. package/api/resources/unstable/resources/tickets/types/TicketType.js +14 -0
  650. package/api/resources/unstable/resources/tickets/types/index.d.ts +8 -0
  651. package/api/resources/unstable/resources/tickets/types/index.js +24 -0
  652. package/api/resources/unstable/resources/visitors/client/Client.d.ts +105 -0
  653. package/api/resources/unstable/resources/visitors/client/Client.js +299 -0
  654. package/api/resources/unstable/resources/visitors/client/index.d.ts +1 -0
  655. package/api/resources/unstable/resources/visitors/client/index.js +17 -0
  656. package/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +21 -0
  657. package/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
  658. package/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.d.ts +15 -0
  659. package/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.js +5 -0
  660. package/api/resources/unstable/resources/visitors/client/requests/index.d.ts +2 -0
  661. package/api/resources/unstable/resources/visitors/client/requests/index.js +2 -0
  662. package/api/resources/unstable/resources/visitors/index.d.ts +1 -0
  663. package/api/resources/unstable/resources/visitors/index.js +17 -0
  664. package/api/resources/unstable/types/ActivityLog.d.ts +104 -0
  665. package/api/resources/unstable/types/ActivityLog.js +78 -0
  666. package/api/resources/unstable/types/ActivityLogList.d.ts +14 -0
  667. package/api/resources/unstable/types/ActivityLogList.js +5 -0
  668. package/api/resources/unstable/types/ActivityLogMetadata.d.ts +26 -0
  669. package/api/resources/unstable/types/ActivityLogMetadata.js +5 -0
  670. package/api/resources/unstable/types/AddressableList.d.ts +14 -0
  671. package/api/resources/unstable/types/AddressableList.js +5 -0
  672. package/api/resources/unstable/types/AdminList.d.ts +13 -0
  673. package/api/resources/unstable/types/AdminList.js +5 -0
  674. package/api/resources/unstable/types/AdminPriorityLevel.d.ts +12 -0
  675. package/api/resources/unstable/types/AdminPriorityLevel.js +5 -0
  676. package/api/resources/unstable/types/AdminReplyConversationRequest.d.ts +31 -0
  677. package/api/resources/unstable/types/AdminReplyConversationRequest.js +14 -0
  678. package/api/resources/unstable/types/AdminReplyTicketRequest.d.ts +37 -0
  679. package/api/resources/unstable/types/AdminReplyTicketRequest.js +14 -0
  680. package/api/resources/unstable/types/AdminWithApp.d.ts +44 -0
  681. package/api/resources/unstable/types/AdminWithApp.js +5 -0
  682. package/api/resources/unstable/types/App.d.ts +22 -0
  683. package/api/resources/unstable/types/App.js +5 -0
  684. package/api/resources/unstable/types/ArticleContent.d.ts +36 -0
  685. package/api/resources/unstable/types/ArticleContent.js +13 -0
  686. package/api/resources/unstable/types/ArticleList.d.ts +16 -0
  687. package/api/resources/unstable/types/ArticleList.js +5 -0
  688. package/api/resources/unstable/types/ArticleStatistics.d.ts +22 -0
  689. package/api/resources/unstable/types/ArticleStatistics.js +5 -0
  690. package/api/resources/unstable/types/ArticleTranslatedContent.d.ts +85 -0
  691. package/api/resources/unstable/types/ArticleTranslatedContent.js +5 -0
  692. package/api/resources/unstable/types/AssignConversationRequest.d.ts +22 -0
  693. package/api/resources/unstable/types/AssignConversationRequest.js +13 -0
  694. package/api/resources/unstable/types/AwayStatusReason.d.ts +20 -0
  695. package/api/resources/unstable/types/AwayStatusReason.js +5 -0
  696. package/api/resources/unstable/types/CloseConversationRequest.d.ts +13 -0
  697. package/api/resources/unstable/types/CloseConversationRequest.js +5 -0
  698. package/api/resources/unstable/types/CollectionList.d.ts +16 -0
  699. package/api/resources/unstable/types/CollectionList.js +5 -0
  700. package/api/resources/unstable/types/CompanyAttachedContacts.d.ts +16 -0
  701. package/api/resources/unstable/types/CompanyAttachedContacts.js +5 -0
  702. package/api/resources/unstable/types/CompanyAttachedSegments.d.ts +13 -0
  703. package/api/resources/unstable/types/CompanyAttachedSegments.js +5 -0
  704. package/api/resources/unstable/types/CompanyData.d.ts +14 -0
  705. package/api/resources/unstable/types/CompanyData.js +5 -0
  706. package/api/resources/unstable/types/CompanyList.d.ts +16 -0
  707. package/api/resources/unstable/types/CompanyList.js +5 -0
  708. package/api/resources/unstable/types/CompanyScroll.d.ts +17 -0
  709. package/api/resources/unstable/types/CompanyScroll.js +5 -0
  710. package/api/resources/unstable/types/ContactArchived.d.ts +11 -0
  711. package/api/resources/unstable/types/ContactArchived.js +5 -0
  712. package/api/resources/unstable/types/ContactAttachedCompanies.d.ts +16 -0
  713. package/api/resources/unstable/types/ContactAttachedCompanies.js +5 -0
  714. package/api/resources/unstable/types/ContactBlocked.d.ts +11 -0
  715. package/api/resources/unstable/types/ContactBlocked.js +5 -0
  716. package/api/resources/unstable/types/ContactCompanies.d.ts +17 -0
  717. package/api/resources/unstable/types/ContactCompanies.js +5 -0
  718. package/api/resources/unstable/types/ContactDeleted.d.ts +11 -0
  719. package/api/resources/unstable/types/ContactDeleted.js +5 -0
  720. package/api/resources/unstable/types/ContactList.d.ts +16 -0
  721. package/api/resources/unstable/types/ContactList.js +5 -0
  722. package/api/resources/unstable/types/ContactLocation.d.ts +16 -0
  723. package/api/resources/unstable/types/ContactLocation.js +5 -0
  724. package/api/resources/unstable/types/ContactNotes.d.ts +17 -0
  725. package/api/resources/unstable/types/ContactNotes.js +5 -0
  726. package/api/resources/unstable/types/ContactReference.d.ts +14 -0
  727. package/api/resources/unstable/types/ContactReference.js +5 -0
  728. package/api/resources/unstable/types/ContactReplyBaseRequest.d.ts +26 -0
  729. package/api/resources/unstable/types/ContactReplyBaseRequest.js +5 -0
  730. package/api/resources/unstable/types/ContactReplyConversationRequest.d.ts +5 -0
  731. package/api/resources/unstable/types/ContactReplyConversationRequest.js +5 -0
  732. package/api/resources/unstable/types/ContactReplyEmailRequest.d.ts +13 -0
  733. package/api/resources/unstable/types/ContactReplyEmailRequest.js +5 -0
  734. package/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
  735. package/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.js +5 -0
  736. package/api/resources/unstable/types/ContactReplyTicketEmailRequest.d.ts +11 -0
  737. package/api/resources/unstable/types/ContactReplyTicketEmailRequest.js +5 -0
  738. package/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
  739. package/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
  740. package/api/resources/unstable/types/ContactReplyTicketRequest.d.ts +5 -0
  741. package/api/resources/unstable/types/ContactReplyTicketRequest.js +5 -0
  742. package/api/resources/unstable/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
  743. package/api/resources/unstable/types/ContactReplyTicketUserIdRequest.js +5 -0
  744. package/api/resources/unstable/types/ContactReplyUserIdRequest.d.ts +13 -0
  745. package/api/resources/unstable/types/ContactReplyUserIdRequest.js +5 -0
  746. package/api/resources/unstable/types/ContactSegments.d.ts +13 -0
  747. package/api/resources/unstable/types/ContactSegments.js +5 -0
  748. package/api/resources/unstable/types/ContactSocialProfiles.d.ts +11 -0
  749. package/api/resources/unstable/types/ContactSocialProfiles.js +5 -0
  750. package/api/resources/unstable/types/ContactSubscriptionTypes.d.ts +17 -0
  751. package/api/resources/unstable/types/ContactSubscriptionTypes.js +5 -0
  752. package/api/resources/unstable/types/ContactTags.d.ts +17 -0
  753. package/api/resources/unstable/types/ContactTags.js +5 -0
  754. package/api/resources/unstable/types/ContactUnarchived.d.ts +11 -0
  755. package/api/resources/unstable/types/ContactUnarchived.js +5 -0
  756. package/api/resources/unstable/types/ContentSourcesList.d.ts +11 -0
  757. package/api/resources/unstable/types/ContentSourcesList.js +5 -0
  758. package/api/resources/unstable/types/ConversationAttachmentFiles.d.ts +14 -0
  759. package/api/resources/unstable/types/ConversationAttachmentFiles.js +5 -0
  760. package/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.ts +20 -0
  761. package/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.js +5 -0
  762. package/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.d.ts +25 -0
  763. package/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.js +5 -0
  764. package/api/resources/unstable/types/ConversationContacts.d.ts +13 -0
  765. package/api/resources/unstable/types/ConversationContacts.js +5 -0
  766. package/api/resources/unstable/types/ConversationDeleted.d.ts +14 -0
  767. package/api/resources/unstable/types/ConversationDeleted.js +5 -0
  768. package/api/resources/unstable/types/ConversationFirstContactReply.d.ts +14 -0
  769. package/api/resources/unstable/types/ConversationFirstContactReply.js +5 -0
  770. package/api/resources/unstable/types/ConversationList.d.ts +16 -0
  771. package/api/resources/unstable/types/ConversationList.js +5 -0
  772. package/api/resources/unstable/types/ConversationPart.d.ts +52 -0
  773. package/api/resources/unstable/types/ConversationPart.js +14 -0
  774. package/api/resources/unstable/types/ConversationPartAuthor.d.ts +20 -0
  775. package/api/resources/unstable/types/ConversationPartAuthor.js +5 -0
  776. package/api/resources/unstable/types/ConversationPartMetadata.d.ts +22 -0
  777. package/api/resources/unstable/types/ConversationPartMetadata.js +5 -0
  778. package/api/resources/unstable/types/ConversationParts.d.ts +15 -0
  779. package/api/resources/unstable/types/ConversationParts.js +5 -0
  780. package/api/resources/unstable/types/ConversationRating.d.ts +17 -0
  781. package/api/resources/unstable/types/ConversationRating.js +5 -0
  782. package/api/resources/unstable/types/ConversationResponseTime.d.ts +14 -0
  783. package/api/resources/unstable/types/ConversationResponseTime.js +5 -0
  784. package/api/resources/unstable/types/ConversationSource.d.ts +44 -0
  785. package/api/resources/unstable/types/ConversationSource.js +21 -0
  786. package/api/resources/unstable/types/ConversationStatistics.d.ts +53 -0
  787. package/api/resources/unstable/types/ConversationStatistics.js +5 -0
  788. package/api/resources/unstable/types/ConversationTeammates.d.ts +13 -0
  789. package/api/resources/unstable/types/ConversationTeammates.js +5 -0
  790. package/api/resources/unstable/types/CreateOrUpdateTagRequest.d.ts +12 -0
  791. package/api/resources/unstable/types/CreateOrUpdateTagRequest.js +5 -0
  792. package/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
  793. package/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.js +5 -0
  794. package/api/resources/unstable/types/CreateTicketRequestBody.d.ts +43 -0
  795. package/api/resources/unstable/types/CreateTicketRequestBody.js +5 -0
  796. package/api/resources/unstable/types/CursorPages.d.ts +19 -0
  797. package/api/resources/unstable/types/CursorPages.js +5 -0
  798. package/api/resources/unstable/types/CustomActionFinished.d.ts +27 -0
  799. package/api/resources/unstable/types/CustomActionFinished.js +16 -0
  800. package/api/resources/unstable/types/CustomActionStarted.d.ts +15 -0
  801. package/api/resources/unstable/types/CustomActionStarted.js +5 -0
  802. package/api/resources/unstable/types/CustomAttributes.d.ts +11 -0
  803. package/api/resources/unstable/types/CustomAttributes.js +5 -0
  804. package/api/resources/unstable/types/CustomChannelAttribute.d.ts +9 -0
  805. package/api/resources/unstable/types/CustomChannelAttribute.js +5 -0
  806. package/api/resources/unstable/types/CustomChannelBaseEvent.d.ts +11 -0
  807. package/api/resources/unstable/types/CustomChannelBaseEvent.js +5 -0
  808. package/api/resources/unstable/types/CustomChannelContact.d.ts +23 -0
  809. package/api/resources/unstable/types/CustomChannelContact.js +13 -0
  810. package/api/resources/unstable/types/CustomChannelNotificationResponse.d.ts +13 -0
  811. package/api/resources/unstable/types/CustomChannelNotificationResponse.js +5 -0
  812. package/api/resources/unstable/types/CustomObjectInstanceDeleted.d.ts +14 -0
  813. package/api/resources/unstable/types/CustomObjectInstanceDeleted.js +5 -0
  814. package/api/resources/unstable/types/CustomObjectInstanceList.d.ts +12 -0
  815. package/api/resources/unstable/types/CustomObjectInstanceList.js +5 -0
  816. package/api/resources/unstable/types/CustomerRequest.d.ts +10 -0
  817. package/api/resources/unstable/types/CustomerRequest.js +5 -0
  818. package/api/resources/unstable/types/DataAttributeList.d.ts +13 -0
  819. package/api/resources/unstable/types/DataAttributeList.js +5 -0
  820. package/api/resources/unstable/types/DataEventList.d.ts +24 -0
  821. package/api/resources/unstable/types/DataEventList.js +5 -0
  822. package/api/resources/unstable/types/DataEventSummary.d.ts +19 -0
  823. package/api/resources/unstable/types/DataEventSummary.js +5 -0
  824. package/api/resources/unstable/types/DataEventSummaryItem.d.ts +18 -0
  825. package/api/resources/unstable/types/DataEventSummaryItem.js +5 -0
  826. package/api/resources/unstable/types/DataExportCsv.d.ts +60 -0
  827. package/api/resources/unstable/types/DataExportCsv.js +5 -0
  828. package/api/resources/unstable/types/Datetime.d.ts +10 -0
  829. package/api/resources/unstable/types/Datetime.js +5 -0
  830. package/api/resources/unstable/types/DeletedArticleObject.d.ts +14 -0
  831. package/api/resources/unstable/types/DeletedArticleObject.js +5 -0
  832. package/api/resources/unstable/types/DeletedCollectionObject.d.ts +14 -0
  833. package/api/resources/unstable/types/DeletedCollectionObject.js +5 -0
  834. package/api/resources/unstable/types/DeletedCompanyObject.d.ts +14 -0
  835. package/api/resources/unstable/types/DeletedCompanyObject.js +5 -0
  836. package/api/resources/unstable/types/DeletedObject.d.ts +14 -0
  837. package/api/resources/unstable/types/DeletedObject.js +5 -0
  838. package/api/resources/unstable/types/EmailAddressHeader.d.ts +14 -0
  839. package/api/resources/unstable/types/EmailAddressHeader.js +5 -0
  840. package/api/resources/unstable/types/EmailMessageMetadata.d.ts +13 -0
  841. package/api/resources/unstable/types/EmailMessageMetadata.js +5 -0
  842. package/api/resources/unstable/types/Error_.d.ts +27 -0
  843. package/api/resources/unstable/types/Error_.js +5 -0
  844. package/api/resources/unstable/types/EventDetails.d.ts +5 -0
  845. package/api/resources/unstable/types/EventDetails.js +5 -0
  846. package/api/resources/unstable/types/FileAttribute.d.ts +21 -0
  847. package/api/resources/unstable/types/FileAttribute.js +5 -0
  848. package/api/resources/unstable/types/GroupContent.d.ts +14 -0
  849. package/api/resources/unstable/types/GroupContent.js +5 -0
  850. package/api/resources/unstable/types/GroupTranslatedContent.d.ts +85 -0
  851. package/api/resources/unstable/types/GroupTranslatedContent.js +5 -0
  852. package/api/resources/unstable/types/IntercomVersion.d.ts +27 -0
  853. package/api/resources/unstable/types/IntercomVersion.js +26 -0
  854. package/api/resources/unstable/types/IntercomVersionUnstable.d.ts +7 -0
  855. package/api/resources/unstable/types/IntercomVersionUnstable.js +5 -0
  856. package/api/resources/unstable/types/LinkedObject.d.ts +24 -0
  857. package/api/resources/unstable/types/LinkedObject.js +13 -0
  858. package/api/resources/unstable/types/LinkedObjectList.d.ts +17 -0
  859. package/api/resources/unstable/types/LinkedObjectList.js +5 -0
  860. package/api/resources/unstable/types/MultipleFilterSearchRequest.d.ts +29 -0
  861. package/api/resources/unstable/types/MultipleFilterSearchRequest.js +13 -0
  862. package/api/resources/unstable/types/NewsItemRequest.d.ts +35 -0
  863. package/api/resources/unstable/types/NewsItemRequest.js +13 -0
  864. package/api/resources/unstable/types/NotFoundErrorBody.d.ts +22 -0
  865. package/api/resources/unstable/types/NotFoundErrorBody.js +5 -0
  866. package/api/resources/unstable/types/NoteList.d.ts +16 -0
  867. package/api/resources/unstable/types/NoteList.js +5 -0
  868. package/api/resources/unstable/types/OpenConversationRequest.d.ts +10 -0
  869. package/api/resources/unstable/types/OpenConversationRequest.js +5 -0
  870. package/api/resources/unstable/types/OperatorWorkflowEvent.d.ts +22 -0
  871. package/api/resources/unstable/types/OperatorWorkflowEvent.js +5 -0
  872. package/api/resources/unstable/types/PagesLink.d.ts +16 -0
  873. package/api/resources/unstable/types/PagesLink.js +5 -0
  874. package/api/resources/unstable/types/PaginatedResponse.d.ts +26 -0
  875. package/api/resources/unstable/types/PaginatedResponse.js +13 -0
  876. package/api/resources/unstable/types/PaginatedResponseDataItem.d.ts +13 -0
  877. package/api/resources/unstable/types/PaginatedResponseDataItem.js +5 -0
  878. package/api/resources/unstable/types/PartAttachment.d.ts +22 -0
  879. package/api/resources/unstable/types/PartAttachment.js +5 -0
  880. package/api/resources/unstable/types/PhoneSwitch.d.ts +12 -0
  881. package/api/resources/unstable/types/PhoneSwitch.js +5 -0
  882. package/api/resources/unstable/types/QuickReplyOption.d.ts +9 -0
  883. package/api/resources/unstable/types/QuickReplyOption.js +5 -0
  884. package/api/resources/unstable/types/Recipient.d.ts +22 -0
  885. package/api/resources/unstable/types/Recipient.js +13 -0
  886. package/api/resources/unstable/types/RedactConversationRequest.d.ts +27 -0
  887. package/api/resources/unstable/types/RedactConversationRequest.js +5 -0
  888. package/api/resources/unstable/types/Reference.d.ts +12 -0
  889. package/api/resources/unstable/types/Reference.js +5 -0
  890. package/api/resources/unstable/types/ReplyConversationRequestBody.d.ts +5 -0
  891. package/api/resources/unstable/types/ReplyConversationRequestBody.js +5 -0
  892. package/api/resources/unstable/types/SearchRequest.d.ts +14 -0
  893. package/api/resources/unstable/types/SearchRequest.js +5 -0
  894. package/api/resources/unstable/types/SegmentList.d.ts +15 -0
  895. package/api/resources/unstable/types/SegmentList.js +5 -0
  896. package/api/resources/unstable/types/SingleFilterSearchRequest.d.ts +32 -0
  897. package/api/resources/unstable/types/SingleFilterSearchRequest.js +17 -0
  898. package/api/resources/unstable/types/SlaApplied.d.ts +35 -0
  899. package/api/resources/unstable/types/SlaApplied.js +15 -0
  900. package/api/resources/unstable/types/SnoozeConversationRequest.d.ts +12 -0
  901. package/api/resources/unstable/types/SnoozeConversationRequest.js +5 -0
  902. package/api/resources/unstable/types/SocialProfile.d.ts +14 -0
  903. package/api/resources/unstable/types/SocialProfile.js +5 -0
  904. package/api/resources/unstable/types/StartingAfterPaging.d.ts +9 -0
  905. package/api/resources/unstable/types/StartingAfterPaging.js +5 -0
  906. package/api/resources/unstable/types/SubscriptionTypeList.d.ts +13 -0
  907. package/api/resources/unstable/types/SubscriptionTypeList.js +5 -0
  908. package/api/resources/unstable/types/TagCompanyRequest.d.ts +23 -0
  909. package/api/resources/unstable/types/TagCompanyRequest.js +5 -0
  910. package/api/resources/unstable/types/TagList.d.ts +13 -0
  911. package/api/resources/unstable/types/TagList.js +5 -0
  912. package/api/resources/unstable/types/TagMultipleUsersRequest.d.ts +20 -0
  913. package/api/resources/unstable/types/TagMultipleUsersRequest.js +5 -0
  914. package/api/resources/unstable/types/Tags.d.ts +13 -0
  915. package/api/resources/unstable/types/Tags.js +5 -0
  916. package/api/resources/unstable/types/TeamList.d.ts +13 -0
  917. package/api/resources/unstable/types/TeamList.js +5 -0
  918. package/api/resources/unstable/types/TeamPriorityLevel.d.ts +12 -0
  919. package/api/resources/unstable/types/TeamPriorityLevel.js +5 -0
  920. package/api/resources/unstable/types/TicketCustomAttributes.d.ts +11 -0
  921. package/api/resources/unstable/types/TicketCustomAttributes.js +5 -0
  922. package/api/resources/unstable/types/TicketList.d.ts +16 -0
  923. package/api/resources/unstable/types/TicketList.js +5 -0
  924. package/api/resources/unstable/types/TicketPartAuthor.d.ts +28 -0
  925. package/api/resources/unstable/types/TicketPartAuthor.js +15 -0
  926. package/api/resources/unstable/types/TicketParts.d.ts +15 -0
  927. package/api/resources/unstable/types/TicketParts.js +5 -0
  928. package/api/resources/unstable/types/TicketReply.d.ts +37 -0
  929. package/api/resources/unstable/types/TicketReply.js +14 -0
  930. package/api/resources/unstable/types/TicketRequestCustomAttributes.d.ts +10 -0
  931. package/api/resources/unstable/types/TicketRequestCustomAttributes.js +5 -0
  932. package/api/resources/unstable/types/TicketStateList.d.ts +13 -0
  933. package/api/resources/unstable/types/TicketStateList.js +5 -0
  934. package/api/resources/unstable/types/TicketTypeAttribute.d.ts +42 -0
  935. package/api/resources/unstable/types/TicketTypeAttribute.js +5 -0
  936. package/api/resources/unstable/types/TicketTypeAttributeList.d.ts +13 -0
  937. package/api/resources/unstable/types/TicketTypeAttributeList.js +5 -0
  938. package/api/resources/unstable/types/TicketTypeList.d.ts +13 -0
  939. package/api/resources/unstable/types/TicketTypeList.js +5 -0
  940. package/api/resources/unstable/types/Translation.d.ts +14 -0
  941. package/api/resources/unstable/types/Translation.js +5 -0
  942. package/api/resources/unstable/types/UntagCompanyRequest.d.ts +25 -0
  943. package/api/resources/unstable/types/UntagCompanyRequest.js +5 -0
  944. package/api/resources/unstable/types/UpdateArticleRequestBody.d.ts +34 -0
  945. package/api/resources/unstable/types/UpdateArticleRequestBody.js +13 -0
  946. package/api/resources/unstable/types/UpdateTicketTypeRequestBody.d.ts +32 -0
  947. package/api/resources/unstable/types/UpdateTicketTypeRequestBody.js +14 -0
  948. package/api/resources/unstable/types/Visitor.d.ts +128 -0
  949. package/api/resources/unstable/types/Visitor.js +5 -0
  950. package/api/resources/unstable/types/VisitorDeletedObject.d.ts +14 -0
  951. package/api/resources/unstable/types/VisitorDeletedObject.js +5 -0
  952. package/api/resources/unstable/types/WhatsappMessageStatusList.d.ts +65 -0
  953. package/api/resources/unstable/types/WhatsappMessageStatusList.js +21 -0
  954. package/api/resources/unstable/types/index.d.ts +145 -0
  955. package/api/resources/unstable/types/index.js +161 -0
  956. package/api/resources/visitors/client/Client.d.ts +6 -3
  957. package/api/resources/visitors/client/Client.js +29 -11
  958. package/api/types/CompanyList.d.ts +0 -2
  959. package/api/types/CreateContactRequestTwo.d.ts +4 -0
  960. package/api/types/CreateContactRequestTwo.js +5 -0
  961. package/api/types/CreateDataEventRequestTwo.d.ts +4 -0
  962. package/api/types/CreateDataEventRequestTwo.js +5 -0
  963. package/api/types/CreateMessageRequestTwo.d.ts +4 -0
  964. package/api/types/CreateMessageRequestTwo.js +5 -0
  965. package/api/{resources/tickets/client/requests → types}/CreateTicketRequest.d.ts +2 -12
  966. package/api/types/CreateTicketRequest.js +5 -0
  967. package/api/types/Metadata.d.ts +5 -0
  968. package/api/types/Metadata.js +5 -0
  969. package/api/types/TicketCustomAttributes.d.ts +1 -5
  970. package/api/types/TicketRequestCustomAttributes.d.ts +1 -4
  971. package/api/types/UpdateVisitorRequestOne.d.ts +4 -0
  972. package/api/types/UpdateVisitorRequestOne.js +5 -0
  973. package/api/types/index.d.ts +6 -0
  974. package/api/types/index.js +6 -0
  975. package/core/fetcher/APIResponse.d.ts +10 -0
  976. package/core/fetcher/Fetcher.js +7 -0
  977. package/core/fetcher/Headers.d.ts +2 -0
  978. package/core/fetcher/Headers.js +84 -0
  979. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  980. package/core/fetcher/HttpResponsePromise.js +103 -0
  981. package/core/fetcher/RawResponse.d.ts +29 -0
  982. package/core/fetcher/RawResponse.js +44 -0
  983. package/core/fetcher/index.d.ts +3 -0
  984. package/core/fetcher/index.js +7 -1
  985. package/core/index.d.ts +1 -1
  986. package/core/index.js +1 -1
  987. package/core/pagination/Page.d.ts +5 -2
  988. package/core/pagination/Page.js +5 -2
  989. package/core/pagination/Pageable.d.ts +2 -0
  990. package/dist/Client.d.ts +3 -0
  991. package/dist/Client.js +5 -0
  992. package/dist/api/errors/BadRequestError.d.ts +2 -1
  993. package/dist/api/errors/BadRequestError.js +2 -1
  994. package/dist/api/errors/ForbiddenError.d.ts +2 -1
  995. package/dist/api/errors/ForbiddenError.js +2 -1
  996. package/dist/api/errors/NotFoundError.d.ts +2 -1
  997. package/dist/api/errors/NotFoundError.js +2 -1
  998. package/dist/api/errors/UnauthorizedError.d.ts +2 -1
  999. package/dist/api/errors/UnauthorizedError.js +2 -1
  1000. package/dist/api/errors/UnprocessableEntityError.d.ts +2 -1
  1001. package/dist/api/errors/UnprocessableEntityError.js +2 -1
  1002. package/dist/api/resources/admins/client/Client.d.ts +10 -5
  1003. package/dist/api/resources/admins/client/Client.js +46 -16
  1004. package/dist/api/resources/aiContentSource/types/ContentSource.d.ts +1 -14
  1005. package/dist/api/resources/aiContentSource/types/ContentSource.js +0 -11
  1006. package/dist/api/resources/articles/client/Client.d.ts +10 -5
  1007. package/dist/api/resources/articles/client/Client.js +61 -26
  1008. package/dist/api/resources/companies/client/Client.d.ts +18 -9
  1009. package/dist/api/resources/companies/client/Client.js +115 -51
  1010. package/dist/api/resources/companies/types/CompaniesRetrieveResponse.d.ts +13 -0
  1011. package/dist/api/resources/companies/types/CompaniesRetrieveResponse.js +5 -0
  1012. package/dist/api/resources/companies/types/Company.d.ts +0 -2
  1013. package/dist/api/resources/companies/types/index.d.ts +1 -0
  1014. package/dist/api/resources/companies/types/index.js +1 -0
  1015. package/dist/api/resources/contacts/client/Client.d.ts +24 -12
  1016. package/dist/api/resources/contacts/client/Client.js +148 -58
  1017. package/dist/api/resources/conversations/client/Client.d.ts +20 -10
  1018. package/dist/api/resources/conversations/client/Client.js +136 -60
  1019. package/dist/api/resources/dataAttributes/client/Client.d.ts +6 -3
  1020. package/dist/api/resources/dataAttributes/client/Client.js +32 -14
  1021. package/dist/api/resources/dataExport/client/Client.d.ts +8 -4
  1022. package/dist/api/resources/dataExport/client/Client.js +32 -8
  1023. package/dist/api/resources/events/client/Client.d.ts +6 -3
  1024. package/dist/api/resources/events/client/Client.js +28 -10
  1025. package/dist/api/resources/helpCenters/client/Client.d.ts +2 -1
  1026. package/dist/api/resources/helpCenters/client/Client.js +21 -10
  1027. package/dist/api/resources/helpCenters/resources/collections/client/Client.d.ts +8 -4
  1028. package/dist/api/resources/helpCenters/resources/collections/client/Client.js +51 -22
  1029. package/dist/api/resources/index.d.ts +1 -0
  1030. package/dist/api/resources/index.js +2 -1
  1031. package/dist/api/resources/messages/client/Client.d.ts +2 -1
  1032. package/dist/api/resources/messages/client/Client.js +12 -6
  1033. package/dist/api/resources/news/resources/feeds/client/Client.d.ts +6 -3
  1034. package/dist/api/resources/news/resources/feeds/client/Client.js +27 -9
  1035. package/dist/api/resources/news/resources/items/client/Client.d.ts +10 -5
  1036. package/dist/api/resources/news/resources/items/client/Client.js +48 -18
  1037. package/dist/api/resources/notes/client/Client.d.ts +4 -2
  1038. package/dist/api/resources/notes/client/Client.js +30 -13
  1039. package/dist/api/resources/phoneCallRedirects/client/Client.d.ts +2 -1
  1040. package/dist/api/resources/phoneCallRedirects/client/Client.js +11 -5
  1041. package/dist/api/resources/segments/client/Client.d.ts +4 -2
  1042. package/dist/api/resources/segments/client/Client.js +20 -8
  1043. package/dist/api/resources/subscriptionTypes/client/Client.d.ts +2 -1
  1044. package/dist/api/resources/subscriptionTypes/client/Client.js +9 -3
  1045. package/dist/api/resources/tags/client/Client.d.ts +20 -10
  1046. package/dist/api/resources/tags/client/Client.js +101 -41
  1047. package/dist/api/resources/teams/client/Client.d.ts +4 -2
  1048. package/dist/api/resources/teams/client/Client.js +19 -7
  1049. package/dist/api/resources/ticketTypes/client/Client.d.ts +8 -4
  1050. package/dist/api/resources/ticketTypes/client/Client.js +36 -12
  1051. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.d.ts +4 -2
  1052. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +18 -6
  1053. package/dist/api/resources/tickets/client/Client.d.ts +8 -4
  1054. package/dist/api/resources/tickets/client/Client.js +49 -20
  1055. package/dist/api/resources/tickets/client/requests/index.d.ts +0 -1
  1056. package/dist/api/resources/unstable/client/Client.d.ts +104 -0
  1057. package/dist/api/resources/unstable/client/Client.js +152 -0
  1058. package/dist/api/resources/unstable/client/index.d.ts +1 -0
  1059. package/dist/api/resources/unstable/client/index.js +2 -0
  1060. package/dist/api/resources/unstable/errors/BadRequestError.d.ts +8 -0
  1061. package/dist/api/resources/unstable/errors/BadRequestError.js +52 -0
  1062. package/dist/api/resources/unstable/errors/ForbiddenError.d.ts +9 -0
  1063. package/dist/api/resources/unstable/errors/ForbiddenError.js +52 -0
  1064. package/dist/api/resources/unstable/errors/InternalServerError.d.ts +9 -0
  1065. package/dist/api/resources/unstable/errors/InternalServerError.js +52 -0
  1066. package/dist/api/resources/unstable/errors/NotFoundError.d.ts +8 -0
  1067. package/dist/api/resources/unstable/errors/NotFoundError.js +52 -0
  1068. package/dist/api/resources/unstable/errors/TooManyRequestsError.d.ts +9 -0
  1069. package/dist/api/resources/unstable/errors/TooManyRequestsError.js +52 -0
  1070. package/dist/api/resources/unstable/errors/UnauthorizedError.d.ts +9 -0
  1071. package/dist/api/resources/unstable/errors/UnauthorizedError.js +52 -0
  1072. package/dist/api/resources/unstable/errors/UnprocessableEntityError.d.ts +8 -0
  1073. package/dist/api/resources/unstable/errors/UnprocessableEntityError.js +52 -0
  1074. package/dist/api/resources/unstable/errors/index.d.ts +7 -0
  1075. package/dist/api/resources/unstable/errors/index.js +23 -0
  1076. package/dist/api/resources/unstable/index.d.ts +4 -0
  1077. package/dist/api/resources/unstable/index.js +20 -0
  1078. package/dist/api/resources/unstable/resources/admins/client/Client.d.ts +123 -0
  1079. package/dist/api/resources/unstable/resources/admins/client/Client.js +418 -0
  1080. package/dist/api/resources/unstable/resources/admins/client/index.d.ts +1 -0
  1081. package/dist/api/resources/unstable/resources/admins/client/index.js +17 -0
  1082. package/dist/api/resources/unstable/resources/admins/client/requests/ListActivityLogsRequest.d.ts +20 -0
  1083. package/dist/api/resources/unstable/resources/admins/client/requests/ListActivityLogsRequest.js +5 -0
  1084. package/dist/api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.d.ts +15 -0
  1085. package/dist/api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.js +5 -0
  1086. package/dist/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.d.ts +38 -0
  1087. package/dist/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.js +5 -0
  1088. package/dist/api/resources/unstable/resources/admins/client/requests/index.d.ts +3 -0
  1089. package/dist/api/resources/unstable/resources/admins/client/requests/index.js +2 -0
  1090. package/dist/api/resources/unstable/resources/admins/index.d.ts +2 -0
  1091. package/dist/api/resources/unstable/resources/admins/index.js +18 -0
  1092. package/dist/api/resources/unstable/resources/admins/types/Admin.d.ts +32 -0
  1093. package/dist/api/resources/unstable/resources/admins/types/Admin.js +5 -0
  1094. package/dist/api/resources/unstable/resources/admins/types/index.d.ts +1 -0
  1095. package/dist/api/resources/unstable/resources/admins/types/index.js +17 -0
  1096. package/dist/api/resources/unstable/resources/aiAgent/index.d.ts +1 -0
  1097. package/dist/api/resources/unstable/resources/aiAgent/index.js +17 -0
  1098. package/dist/api/resources/unstable/resources/aiAgent/types/AiAgent.d.ts +35 -0
  1099. package/dist/api/resources/unstable/resources/aiAgent/types/AiAgent.js +16 -0
  1100. package/dist/api/resources/unstable/resources/aiAgent/types/index.d.ts +1 -0
  1101. package/dist/api/resources/unstable/resources/aiAgent/types/index.js +17 -0
  1102. package/dist/api/resources/unstable/resources/aiContent/client/Client.d.ts +202 -0
  1103. package/dist/api/resources/unstable/resources/aiContent/client/Client.js +735 -0
  1104. package/dist/api/resources/unstable/resources/aiContent/client/index.d.ts +1 -0
  1105. package/dist/api/resources/unstable/resources/aiContent/client/index.js +17 -0
  1106. package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.d.ts +25 -0
  1107. package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.js +13 -0
  1108. package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.d.ts +29 -0
  1109. package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.js +5 -0
  1110. package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.d.ts +15 -0
  1111. package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.js +5 -0
  1112. package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.d.ts +15 -0
  1113. package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.js +5 -0
  1114. package/dist/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.d.ts +15 -0
  1115. package/dist/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.js +5 -0
  1116. package/dist/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.d.ts +15 -0
  1117. package/dist/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.js +5 -0
  1118. package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.d.ts +42 -0
  1119. package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.js +18 -0
  1120. package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.d.ts +32 -0
  1121. package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.js +5 -0
  1122. package/dist/api/resources/unstable/resources/aiContent/client/requests/index.d.ts +8 -0
  1123. package/dist/api/resources/unstable/resources/aiContent/client/requests/index.js +2 -0
  1124. package/dist/api/resources/unstable/resources/aiContent/index.d.ts +2 -0
  1125. package/dist/api/resources/unstable/resources/aiContent/index.js +18 -0
  1126. package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSource.d.ts +43 -0
  1127. package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSource.js +18 -0
  1128. package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.d.ts +16 -0
  1129. package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.js +5 -0
  1130. package/dist/api/resources/unstable/resources/aiContent/types/ExternalPage.d.ts +36 -0
  1131. package/dist/api/resources/unstable/resources/aiContent/types/ExternalPage.js +5 -0
  1132. package/dist/api/resources/unstable/resources/aiContent/types/ExternalPagesList.d.ts +16 -0
  1133. package/dist/api/resources/unstable/resources/aiContent/types/ExternalPagesList.js +5 -0
  1134. package/dist/api/resources/unstable/resources/aiContent/types/index.d.ts +4 -0
  1135. package/dist/api/resources/unstable/resources/aiContent/types/index.js +20 -0
  1136. package/dist/api/resources/unstable/resources/aiContentSource/index.d.ts +1 -0
  1137. package/dist/api/resources/unstable/resources/aiContentSource/index.js +17 -0
  1138. package/dist/api/resources/unstable/resources/aiContentSource/types/ContentSource.d.ts +29 -0
  1139. package/dist/api/resources/unstable/resources/aiContentSource/types/ContentSource.js +16 -0
  1140. package/dist/api/resources/unstable/resources/aiContentSource/types/index.d.ts +1 -0
  1141. package/dist/api/resources/unstable/resources/aiContentSource/types/index.js +17 -0
  1142. package/dist/api/resources/unstable/resources/articles/client/Client.d.ts +117 -0
  1143. package/dist/api/resources/unstable/resources/articles/client/Client.js +417 -0
  1144. package/dist/api/resources/unstable/resources/articles/client/index.d.ts +1 -0
  1145. package/dist/api/resources/unstable/resources/articles/client/index.js +17 -0
  1146. package/dist/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.d.ts +15 -0
  1147. package/dist/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.js +5 -0
  1148. package/dist/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.d.ts +15 -0
  1149. package/dist/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.js +5 -0
  1150. package/dist/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.d.ts +28 -0
  1151. package/dist/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.js +5 -0
  1152. package/dist/api/resources/unstable/resources/articles/client/requests/index.d.ts +3 -0
  1153. package/dist/api/resources/unstable/resources/articles/client/requests/index.js +2 -0
  1154. package/dist/api/resources/unstable/resources/articles/index.d.ts +2 -0
  1155. package/dist/api/resources/unstable/resources/articles/index.js +18 -0
  1156. package/dist/api/resources/unstable/resources/articles/types/Article.d.ts +10 -0
  1157. package/dist/api/resources/unstable/resources/articles/types/Article.js +5 -0
  1158. package/dist/api/resources/unstable/resources/articles/types/ArticleListItem.d.ts +50 -0
  1159. package/dist/api/resources/unstable/resources/articles/types/ArticleListItem.js +13 -0
  1160. package/dist/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.d.ts +60 -0
  1161. package/dist/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.js +29 -0
  1162. package/dist/api/resources/unstable/resources/articles/types/ArticleSearchResponse.d.ts +27 -0
  1163. package/dist/api/resources/unstable/resources/articles/types/ArticleSearchResponse.js +5 -0
  1164. package/dist/api/resources/unstable/resources/articles/types/index.d.ts +4 -0
  1165. package/dist/api/resources/unstable/resources/articles/types/index.js +20 -0
  1166. package/dist/api/resources/unstable/resources/awayStatusReasons/client/Client.d.ts +49 -0
  1167. package/dist/api/resources/unstable/resources/awayStatusReasons/client/Client.js +135 -0
  1168. package/dist/api/resources/unstable/resources/awayStatusReasons/client/index.d.ts +1 -0
  1169. package/dist/api/resources/unstable/resources/awayStatusReasons/client/index.js +2 -0
  1170. package/dist/api/resources/unstable/resources/awayStatusReasons/index.d.ts +1 -0
  1171. package/dist/api/resources/unstable/resources/awayStatusReasons/index.js +17 -0
  1172. package/dist/api/resources/unstable/resources/companies/client/Client.d.ts +271 -0
  1173. package/dist/api/resources/unstable/resources/companies/client/Client.js +908 -0
  1174. package/dist/api/resources/unstable/resources/companies/client/index.d.ts +1 -0
  1175. package/dist/api/resources/unstable/resources/companies/client/index.js +17 -0
  1176. package/dist/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.d.ts +30 -0
  1177. package/dist/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.js +5 -0
  1178. package/dist/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.d.ts +15 -0
  1179. package/dist/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.js +5 -0
  1180. package/dist/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.d.ts +20 -0
  1181. package/dist/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.js +5 -0
  1182. package/dist/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.d.ts +23 -0
  1183. package/dist/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.js +5 -0
  1184. package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.d.ts +15 -0
  1185. package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.js +5 -0
  1186. package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.d.ts +15 -0
  1187. package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.js +5 -0
  1188. package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.d.ts +15 -0
  1189. package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.js +5 -0
  1190. package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.d.ts +38 -0
  1191. package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.js +5 -0
  1192. package/dist/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.d.ts +13 -0
  1193. package/dist/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.js +5 -0
  1194. package/dist/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.d.ts +15 -0
  1195. package/dist/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.js +5 -0
  1196. package/dist/api/resources/unstable/resources/companies/client/requests/index.d.ts +10 -0
  1197. package/dist/api/resources/unstable/resources/companies/client/requests/index.js +2 -0
  1198. package/dist/api/resources/unstable/resources/companies/index.d.ts +2 -0
  1199. package/dist/api/resources/unstable/resources/companies/index.js +18 -0
  1200. package/dist/api/resources/unstable/resources/companies/types/Company.d.ts +72 -0
  1201. package/dist/api/resources/unstable/resources/companies/types/Company.js +5 -0
  1202. package/dist/api/resources/unstable/resources/companies/types/index.d.ts +1 -0
  1203. package/dist/api/resources/unstable/resources/companies/types/index.js +17 -0
  1204. package/dist/api/resources/unstable/resources/contacts/client/Client.d.ts +395 -0
  1205. package/dist/api/resources/unstable/resources/contacts/client/Client.js +1165 -0
  1206. package/dist/api/resources/unstable/resources/contacts/client/index.d.ts +1 -0
  1207. package/dist/api/resources/unstable/resources/contacts/client/index.js +17 -0
  1208. package/dist/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.d.ts +15 -0
  1209. package/dist/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.js +5 -0
  1210. package/dist/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.d.ts +15 -0
  1211. package/dist/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.js +5 -0
  1212. package/dist/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.d.ts +15 -0
  1213. package/dist/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.js +5 -0
  1214. package/dist/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.d.ts +15 -0
  1215. package/dist/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.js +5 -0
  1216. package/dist/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.d.ts +15 -0
  1217. package/dist/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.js +5 -0
  1218. package/dist/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.d.ts +15 -0
  1219. package/dist/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.js +5 -0
  1220. package/dist/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.d.ts +15 -0
  1221. package/dist/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.js +5 -0
  1222. package/dist/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
  1223. package/dist/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
  1224. package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.d.ts +15 -0
  1225. package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.js +5 -0
  1226. package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.d.ts +15 -0
  1227. package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.js +5 -0
  1228. package/dist/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.d.ts +15 -0
  1229. package/dist/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.js +5 -0
  1230. package/dist/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.ts +49 -0
  1231. package/dist/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
  1232. package/dist/api/resources/unstable/resources/contacts/client/requests/index.d.ts +12 -0
  1233. package/dist/api/resources/unstable/resources/contacts/client/requests/index.js +2 -0
  1234. package/dist/api/resources/unstable/resources/contacts/index.d.ts +2 -0
  1235. package/dist/api/resources/unstable/resources/contacts/index.js +18 -0
  1236. package/dist/api/resources/unstable/resources/contacts/types/Contact.d.ts +103 -0
  1237. package/dist/api/resources/unstable/resources/contacts/types/Contact.js +5 -0
  1238. package/dist/api/resources/unstable/resources/contacts/types/CreateContactResponse.d.ts +8 -0
  1239. package/dist/api/resources/unstable/resources/contacts/types/CreateContactResponse.js +5 -0
  1240. package/dist/api/resources/unstable/resources/contacts/types/MergeContactResponse.d.ts +8 -0
  1241. package/dist/api/resources/unstable/resources/contacts/types/MergeContactResponse.js +5 -0
  1242. package/dist/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.d.ts +8 -0
  1243. package/dist/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.js +5 -0
  1244. package/dist/api/resources/unstable/resources/contacts/types/ShowContactResponse.d.ts +8 -0
  1245. package/dist/api/resources/unstable/resources/contacts/types/ShowContactResponse.js +5 -0
  1246. package/dist/api/resources/unstable/resources/contacts/types/UpdateContactResponse.d.ts +8 -0
  1247. package/dist/api/resources/unstable/resources/contacts/types/UpdateContactResponse.js +5 -0
  1248. package/dist/api/resources/unstable/resources/contacts/types/index.d.ts +6 -0
  1249. package/dist/api/resources/unstable/resources/contacts/types/index.js +22 -0
  1250. package/dist/api/resources/unstable/resources/conversations/client/Client.d.ts +545 -0
  1251. package/dist/api/resources/unstable/resources/conversations/client/Client.js +1218 -0
  1252. package/dist/api/resources/unstable/resources/conversations/client/index.d.ts +1 -0
  1253. package/dist/api/resources/unstable/resources/conversations/client/index.js +17 -0
  1254. package/dist/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +44 -0
  1255. package/dist/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
  1256. package/dist/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +26 -0
  1257. package/dist/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
  1258. package/dist/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.d.ts +48 -0
  1259. package/dist/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.js +17 -0
  1260. package/dist/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.d.ts +15 -0
  1261. package/dist/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.js +5 -0
  1262. package/dist/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +44 -0
  1263. package/dist/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
  1264. package/dist/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.d.ts +17 -0
  1265. package/dist/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.js +5 -0
  1266. package/dist/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.d.ts +62 -0
  1267. package/dist/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.js +5 -0
  1268. package/dist/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.d.ts +77 -0
  1269. package/dist/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.js +5 -0
  1270. package/dist/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.d.ts +20 -0
  1271. package/dist/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.js +5 -0
  1272. package/dist/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.d.ts +53 -0
  1273. package/dist/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
  1274. package/dist/api/resources/unstable/resources/conversations/client/requests/index.d.ts +10 -0
  1275. package/dist/api/resources/unstable/resources/conversations/client/requests/index.js +2 -0
  1276. package/dist/api/resources/unstable/resources/conversations/index.d.ts +2 -0
  1277. package/dist/api/resources/unstable/resources/conversations/index.js +18 -0
  1278. package/dist/api/resources/unstable/resources/conversations/types/Conversation.d.ts +68 -0
  1279. package/dist/api/resources/unstable/resources/conversations/types/Conversation.js +18 -0
  1280. package/dist/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.d.ts +19 -0
  1281. package/dist/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.js +5 -0
  1282. package/dist/api/resources/unstable/resources/conversations/types/index.d.ts +2 -0
  1283. package/dist/api/resources/unstable/resources/conversations/types/index.js +18 -0
  1284. package/dist/api/resources/unstable/resources/customChannelEvents/client/Client.d.ts +144 -0
  1285. package/dist/api/resources/unstable/resources/customChannelEvents/client/Client.js +408 -0
  1286. package/dist/api/resources/unstable/resources/customChannelEvents/client/index.d.ts +1 -0
  1287. package/dist/api/resources/unstable/resources/customChannelEvents/client/index.js +17 -0
  1288. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.d.ts +24 -0
  1289. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.js +5 -0
  1290. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.d.ts +22 -0
  1291. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.js +5 -0
  1292. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.d.ts +22 -0
  1293. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.js +5 -0
  1294. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/index.d.ts +3 -0
  1295. package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/index.js +2 -0
  1296. package/dist/api/resources/unstable/resources/customChannelEvents/index.d.ts +1 -0
  1297. package/dist/api/resources/unstable/resources/customChannelEvents/index.js +17 -0
  1298. package/dist/api/resources/unstable/resources/customObjectInstances/client/Client.d.ts +131 -0
  1299. package/dist/api/resources/unstable/resources/customObjectInstances/client/Client.js +449 -0
  1300. package/dist/api/resources/unstable/resources/customObjectInstances/client/index.d.ts +1 -0
  1301. package/dist/api/resources/unstable/resources/customObjectInstances/client/index.js +17 -0
  1302. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.d.ts +30 -0
  1303. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.js +5 -0
  1304. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.d.ts +20 -0
  1305. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.js +5 -0
  1306. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.d.ts +17 -0
  1307. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.js +5 -0
  1308. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.d.ts +17 -0
  1309. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.js +5 -0
  1310. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.d.ts +20 -0
  1311. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.js +5 -0
  1312. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/index.d.ts +5 -0
  1313. package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/index.js +2 -0
  1314. package/dist/api/resources/unstable/resources/customObjectInstances/index.d.ts +2 -0
  1315. package/dist/api/resources/unstable/resources/customObjectInstances/index.js +18 -0
  1316. package/dist/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.d.ts +24 -0
  1317. package/dist/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
  1318. package/dist/api/resources/unstable/resources/customObjectInstances/types/index.d.ts +1 -0
  1319. package/dist/api/resources/unstable/resources/customObjectInstances/types/index.js +17 -0
  1320. package/dist/api/resources/unstable/resources/dataAttributes/client/Client.d.ts +146 -0
  1321. package/dist/api/resources/unstable/resources/dataAttributes/client/Client.js +355 -0
  1322. package/dist/api/resources/unstable/resources/dataAttributes/client/index.d.ts +1 -0
  1323. package/dist/api/resources/unstable/resources/dataAttributes/client/index.js +17 -0
  1324. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +84 -0
  1325. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +21 -0
  1326. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.d.ts +18 -0
  1327. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.js +5 -0
  1328. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +49 -0
  1329. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
  1330. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/index.d.ts +3 -0
  1331. package/dist/api/resources/unstable/resources/dataAttributes/client/requests/index.js +2 -0
  1332. package/dist/api/resources/unstable/resources/dataAttributes/index.d.ts +2 -0
  1333. package/dist/api/resources/unstable/resources/dataAttributes/index.js +18 -0
  1334. package/dist/api/resources/unstable/resources/dataAttributes/types/DataAttribute.d.ts +63 -0
  1335. package/dist/api/resources/unstable/resources/dataAttributes/types/DataAttribute.js +20 -0
  1336. package/dist/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.d.ts +9 -0
  1337. package/dist/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.js +11 -0
  1338. package/dist/api/resources/unstable/resources/dataAttributes/types/index.d.ts +2 -0
  1339. package/dist/api/resources/unstable/resources/dataAttributes/types/index.js +18 -0
  1340. package/dist/api/resources/unstable/resources/dataEvents/client/Client.d.ts +136 -0
  1341. package/dist/api/resources/unstable/resources/dataEvents/client/Client.js +325 -0
  1342. package/dist/api/resources/unstable/resources/dataEvents/client/index.d.ts +1 -0
  1343. package/dist/api/resources/unstable/resources/dataEvents/client/index.js +17 -0
  1344. package/dist/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.d.ts +28 -0
  1345. package/dist/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.js +5 -0
  1346. package/dist/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.d.ts +24 -0
  1347. package/dist/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.js +5 -0
  1348. package/dist/api/resources/unstable/resources/dataEvents/client/requests/index.d.ts +2 -0
  1349. package/dist/api/resources/unstable/resources/dataEvents/client/requests/index.js +2 -0
  1350. package/dist/api/resources/unstable/resources/dataEvents/index.d.ts +2 -0
  1351. package/dist/api/resources/unstable/resources/dataEvents/index.js +18 -0
  1352. package/dist/api/resources/unstable/resources/dataEvents/types/DataEvent.d.ts +24 -0
  1353. package/dist/api/resources/unstable/resources/dataEvents/types/DataEvent.js +5 -0
  1354. package/dist/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.d.ts +10 -0
  1355. package/dist/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.js +5 -0
  1356. package/dist/api/resources/unstable/resources/dataEvents/types/index.d.ts +2 -0
  1357. package/dist/api/resources/unstable/resources/dataEvents/types/index.js +18 -0
  1358. package/dist/api/resources/unstable/resources/dataExport/client/Client.d.ts +114 -0
  1359. package/dist/api/resources/unstable/resources/dataExport/client/Client.js +321 -0
  1360. package/dist/api/resources/unstable/resources/dataExport/client/index.d.ts +1 -0
  1361. package/dist/api/resources/unstable/resources/dataExport/client/index.js +17 -0
  1362. package/dist/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.d.ts +15 -0
  1363. package/dist/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.js +5 -0
  1364. package/dist/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
  1365. package/dist/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
  1366. package/dist/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.d.ts +15 -0
  1367. package/dist/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.js +5 -0
  1368. package/dist/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.d.ts +15 -0
  1369. package/dist/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.js +5 -0
  1370. package/dist/api/resources/unstable/resources/dataExport/client/requests/index.d.ts +4 -0
  1371. package/dist/api/resources/unstable/resources/dataExport/client/requests/index.js +2 -0
  1372. package/dist/api/resources/unstable/resources/dataExport/index.d.ts +2 -0
  1373. package/dist/api/resources/unstable/resources/dataExport/index.js +18 -0
  1374. package/dist/api/resources/unstable/resources/dataExport/types/DataExport.d.ts +30 -0
  1375. package/dist/api/resources/unstable/resources/dataExport/types/DataExport.js +17 -0
  1376. package/dist/api/resources/unstable/resources/dataExport/types/index.d.ts +1 -0
  1377. package/dist/api/resources/unstable/resources/dataExport/types/index.js +17 -0
  1378. package/dist/api/resources/unstable/resources/export/client/Client.d.ts +60 -0
  1379. package/dist/api/resources/unstable/resources/export/client/Client.js +198 -0
  1380. package/dist/api/resources/unstable/resources/export/client/index.d.ts +1 -0
  1381. package/dist/api/resources/unstable/resources/export/client/index.js +17 -0
  1382. package/dist/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.d.ts +18 -0
  1383. package/dist/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.js +5 -0
  1384. package/dist/api/resources/unstable/resources/export/client/requests/index.d.ts +1 -0
  1385. package/dist/api/resources/unstable/resources/export/client/requests/index.js +2 -0
  1386. package/dist/api/resources/unstable/resources/export/index.d.ts +2 -0
  1387. package/dist/api/resources/unstable/resources/export/index.js +18 -0
  1388. package/dist/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.ts +28 -0
  1389. package/dist/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.js +5 -0
  1390. package/dist/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.d.ts +9 -0
  1391. package/dist/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.js +5 -0
  1392. package/dist/api/resources/unstable/resources/export/types/index.d.ts +2 -0
  1393. package/dist/api/resources/unstable/resources/export/types/index.js +18 -0
  1394. package/dist/api/resources/unstable/resources/helpCenter/client/Client.d.ts +150 -0
  1395. package/dist/api/resources/unstable/resources/helpCenter/client/Client.js +542 -0
  1396. package/dist/api/resources/unstable/resources/helpCenter/client/index.d.ts +1 -0
  1397. package/dist/api/resources/unstable/resources/helpCenter/client/index.js +17 -0
  1398. package/dist/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.d.ts +27 -0
  1399. package/dist/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.js +5 -0
  1400. package/dist/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.d.ts +15 -0
  1401. package/dist/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.js +5 -0
  1402. package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.d.ts +15 -0
  1403. package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.js +5 -0
  1404. package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.d.ts +15 -0
  1405. package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.js +5 -0
  1406. package/dist/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.d.ts +30 -0
  1407. package/dist/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.js +5 -0
  1408. package/dist/api/resources/unstable/resources/helpCenter/client/requests/index.d.ts +5 -0
  1409. package/dist/api/resources/unstable/resources/helpCenter/client/requests/index.js +2 -0
  1410. package/dist/api/resources/unstable/resources/helpCenter/index.d.ts +2 -0
  1411. package/dist/api/resources/unstable/resources/helpCenter/index.js +18 -0
  1412. package/dist/api/resources/unstable/resources/helpCenter/types/Collection.d.ts +34 -0
  1413. package/dist/api/resources/unstable/resources/helpCenter/types/Collection.js +5 -0
  1414. package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenter.d.ts +22 -0
  1415. package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenter.js +5 -0
  1416. package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
  1417. package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenterList.js +5 -0
  1418. package/dist/api/resources/unstable/resources/helpCenter/types/index.d.ts +3 -0
  1419. package/dist/api/resources/unstable/resources/helpCenter/types/index.js +19 -0
  1420. package/dist/api/resources/unstable/resources/index.d.ts +78 -0
  1421. package/dist/api/resources/unstable/resources/index.js +117 -0
  1422. package/dist/api/resources/unstable/resources/jobs/client/Client.d.ts +53 -0
  1423. package/dist/api/resources/unstable/resources/jobs/client/Client.js +142 -0
  1424. package/dist/api/resources/unstable/resources/jobs/client/index.d.ts +1 -0
  1425. package/dist/api/resources/unstable/resources/jobs/client/index.js +17 -0
  1426. package/dist/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.d.ts +15 -0
  1427. package/dist/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.js +5 -0
  1428. package/dist/api/resources/unstable/resources/jobs/client/requests/index.d.ts +1 -0
  1429. package/dist/api/resources/unstable/resources/jobs/client/requests/index.js +2 -0
  1430. package/dist/api/resources/unstable/resources/jobs/index.d.ts +2 -0
  1431. package/dist/api/resources/unstable/resources/jobs/index.js +18 -0
  1432. package/dist/api/resources/unstable/resources/jobs/types/Jobs.d.ts +33 -0
  1433. package/dist/api/resources/unstable/resources/jobs/types/Jobs.js +14 -0
  1434. package/dist/api/resources/unstable/resources/jobs/types/index.d.ts +1 -0
  1435. package/dist/api/resources/unstable/resources/jobs/types/index.js +17 -0
  1436. package/dist/api/resources/unstable/resources/messages/client/Client.d.ts +212 -0
  1437. package/dist/api/resources/unstable/resources/messages/client/Client.js +370 -0
  1438. package/dist/api/resources/unstable/resources/messages/client/index.d.ts +1 -0
  1439. package/dist/api/resources/unstable/resources/messages/client/index.js +17 -0
  1440. package/dist/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.d.ts +23 -0
  1441. package/dist/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.js +5 -0
  1442. package/dist/api/resources/unstable/resources/messages/client/requests/index.d.ts +1 -0
  1443. package/dist/api/resources/unstable/resources/messages/client/requests/index.js +2 -0
  1444. package/dist/api/resources/unstable/resources/messages/index.d.ts +2 -0
  1445. package/dist/api/resources/unstable/resources/messages/index.js +18 -0
  1446. package/dist/api/resources/unstable/resources/messages/types/Message.d.ts +35 -0
  1447. package/dist/api/resources/unstable/resources/messages/types/Message.js +16 -0
  1448. package/dist/api/resources/unstable/resources/messages/types/index.d.ts +1 -0
  1449. package/dist/api/resources/unstable/resources/messages/types/index.js +17 -0
  1450. package/dist/api/resources/unstable/resources/news/client/Client.d.ts +179 -0
  1451. package/dist/api/resources/unstable/resources/news/client/Client.js +600 -0
  1452. package/dist/api/resources/unstable/resources/news/client/index.d.ts +1 -0
  1453. package/dist/api/resources/unstable/resources/news/client/index.js +17 -0
  1454. package/dist/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.d.ts +15 -0
  1455. package/dist/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.js +5 -0
  1456. package/dist/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.d.ts +15 -0
  1457. package/dist/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.js +5 -0
  1458. package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.d.ts +15 -0
  1459. package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.js +5 -0
  1460. package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.d.ts +15 -0
  1461. package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.js +5 -0
  1462. package/dist/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.d.ts +34 -0
  1463. package/dist/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.js +5 -0
  1464. package/dist/api/resources/unstable/resources/news/client/requests/index.d.ts +5 -0
  1465. package/dist/api/resources/unstable/resources/news/client/requests/index.js +2 -0
  1466. package/dist/api/resources/unstable/resources/news/index.d.ts +2 -0
  1467. package/dist/api/resources/unstable/resources/news/index.js +18 -0
  1468. package/dist/api/resources/unstable/resources/news/types/NewsItem.d.ts +45 -0
  1469. package/dist/api/resources/unstable/resources/news/types/NewsItem.js +13 -0
  1470. package/dist/api/resources/unstable/resources/news/types/Newsfeed.d.ts +18 -0
  1471. package/dist/api/resources/unstable/resources/news/types/Newsfeed.js +5 -0
  1472. package/dist/api/resources/unstable/resources/news/types/NewsfeedAssignment.d.ts +12 -0
  1473. package/dist/api/resources/unstable/resources/news/types/NewsfeedAssignment.js +5 -0
  1474. package/dist/api/resources/unstable/resources/news/types/index.d.ts +3 -0
  1475. package/dist/api/resources/unstable/resources/news/types/index.js +19 -0
  1476. package/dist/api/resources/unstable/resources/notes/client/Client.d.ts +102 -0
  1477. package/dist/api/resources/unstable/resources/notes/client/Client.js +297 -0
  1478. package/dist/api/resources/unstable/resources/notes/client/index.d.ts +1 -0
  1479. package/dist/api/resources/unstable/resources/notes/client/index.js +17 -0
  1480. package/dist/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.d.ts +40 -0
  1481. package/dist/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.js +5 -0
  1482. package/dist/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.d.ts +15 -0
  1483. package/dist/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.js +5 -0
  1484. package/dist/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.d.ts +15 -0
  1485. package/dist/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.js +5 -0
  1486. package/dist/api/resources/unstable/resources/notes/client/requests/index.d.ts +3 -0
  1487. package/dist/api/resources/unstable/resources/notes/client/requests/index.js +2 -0
  1488. package/dist/api/resources/unstable/resources/notes/index.d.ts +2 -0
  1489. package/dist/api/resources/unstable/resources/notes/index.js +18 -0
  1490. package/dist/api/resources/unstable/resources/notes/types/Note.d.ts +32 -0
  1491. package/dist/api/resources/unstable/resources/notes/types/Note.js +5 -0
  1492. package/dist/api/resources/unstable/resources/notes/types/index.d.ts +1 -0
  1493. package/dist/api/resources/unstable/resources/notes/types/index.js +17 -0
  1494. package/dist/api/resources/unstable/resources/segments/client/Client.d.ts +66 -0
  1495. package/dist/api/resources/unstable/resources/segments/client/Client.js +207 -0
  1496. package/dist/api/resources/unstable/resources/segments/client/index.d.ts +1 -0
  1497. package/dist/api/resources/unstable/resources/segments/client/index.js +17 -0
  1498. package/dist/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.d.ts +13 -0
  1499. package/dist/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.js +5 -0
  1500. package/dist/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.d.ts +15 -0
  1501. package/dist/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.js +5 -0
  1502. package/dist/api/resources/unstable/resources/segments/client/requests/index.d.ts +2 -0
  1503. package/dist/api/resources/unstable/resources/segments/client/requests/index.js +2 -0
  1504. package/dist/api/resources/unstable/resources/segments/index.d.ts +2 -0
  1505. package/dist/api/resources/unstable/resources/segments/index.js +18 -0
  1506. package/dist/api/resources/unstable/resources/segments/types/Segment.d.ts +32 -0
  1507. package/dist/api/resources/unstable/resources/segments/types/Segment.js +13 -0
  1508. package/dist/api/resources/unstable/resources/segments/types/index.d.ts +1 -0
  1509. package/dist/api/resources/unstable/resources/segments/types/index.js +17 -0
  1510. package/dist/api/resources/unstable/resources/subscriptionTypes/client/Client.d.ts +97 -0
  1511. package/dist/api/resources/unstable/resources/subscriptionTypes/client/Client.js +296 -0
  1512. package/dist/api/resources/unstable/resources/subscriptionTypes/client/index.d.ts +1 -0
  1513. package/dist/api/resources/unstable/resources/subscriptionTypes/client/index.js +17 -0
  1514. package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.d.ts +35 -0
  1515. package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.js +5 -0
  1516. package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.d.ts +20 -0
  1517. package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.js +5 -0
  1518. package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/index.d.ts +2 -0
  1519. package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/index.js +2 -0
  1520. package/dist/api/resources/unstable/resources/subscriptionTypes/index.d.ts +2 -0
  1521. package/dist/api/resources/unstable/resources/subscriptionTypes/index.js +18 -0
  1522. package/dist/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.d.ts +49 -0
  1523. package/dist/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.js +25 -0
  1524. package/dist/api/resources/unstable/resources/subscriptionTypes/types/index.d.ts +1 -0
  1525. package/dist/api/resources/unstable/resources/subscriptionTypes/types/index.js +17 -0
  1526. package/dist/api/resources/unstable/resources/switch/client/Client.d.ts +57 -0
  1527. package/dist/api/resources/unstable/resources/switch/client/Client.js +151 -0
  1528. package/dist/api/resources/unstable/resources/switch/client/index.d.ts +1 -0
  1529. package/dist/api/resources/unstable/resources/switch/client/index.js +2 -0
  1530. package/dist/api/resources/unstable/resources/switch/index.d.ts +1 -0
  1531. package/dist/api/resources/unstable/resources/switch/index.js +17 -0
  1532. package/dist/api/resources/unstable/resources/tags/client/Client.d.ts +245 -0
  1533. package/dist/api/resources/unstable/resources/tags/client/Client.js +792 -0
  1534. package/dist/api/resources/unstable/resources/tags/client/index.d.ts +1 -0
  1535. package/dist/api/resources/unstable/resources/tags/client/index.js +17 -0
  1536. package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.d.ts +30 -0
  1537. package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.js +5 -0
  1538. package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.d.ts +28 -0
  1539. package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.js +5 -0
  1540. package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.d.ts +28 -0
  1541. package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.js +5 -0
  1542. package/dist/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.d.ts +15 -0
  1543. package/dist/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.js +5 -0
  1544. package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.d.ts +20 -0
  1545. package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.js +5 -0
  1546. package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.d.ts +37 -0
  1547. package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.js +5 -0
  1548. package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.d.ts +37 -0
  1549. package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.js +5 -0
  1550. package/dist/api/resources/unstable/resources/tags/client/requests/FindTagRequest.d.ts +15 -0
  1551. package/dist/api/resources/unstable/resources/tags/client/requests/FindTagRequest.js +5 -0
  1552. package/dist/api/resources/unstable/resources/tags/client/requests/index.d.ts +8 -0
  1553. package/dist/api/resources/unstable/resources/tags/client/requests/index.js +2 -0
  1554. package/dist/api/resources/unstable/resources/tags/index.d.ts +2 -0
  1555. package/dist/api/resources/unstable/resources/tags/index.js +18 -0
  1556. package/dist/api/resources/unstable/resources/tags/types/CreateTagRequestBody.d.ts +5 -0
  1557. package/dist/api/resources/unstable/resources/tags/types/CreateTagRequestBody.js +5 -0
  1558. package/dist/api/resources/unstable/resources/tags/types/Tag.d.ts +18 -0
  1559. package/dist/api/resources/unstable/resources/tags/types/Tag.js +5 -0
  1560. package/dist/api/resources/unstable/resources/tags/types/TagBasic.d.ts +14 -0
  1561. package/dist/api/resources/unstable/resources/tags/types/TagBasic.js +5 -0
  1562. package/dist/api/resources/unstable/resources/tags/types/index.d.ts +3 -0
  1563. package/dist/api/resources/unstable/resources/tags/types/index.js +19 -0
  1564. package/dist/api/resources/unstable/resources/teams/client/Client.d.ts +65 -0
  1565. package/dist/api/resources/unstable/resources/teams/client/Client.js +200 -0
  1566. package/dist/api/resources/unstable/resources/teams/client/index.d.ts +1 -0
  1567. package/dist/api/resources/unstable/resources/teams/client/index.js +17 -0
  1568. package/dist/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.d.ts +15 -0
  1569. package/dist/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.js +5 -0
  1570. package/dist/api/resources/unstable/resources/teams/client/requests/index.d.ts +1 -0
  1571. package/dist/api/resources/unstable/resources/teams/client/requests/index.js +2 -0
  1572. package/dist/api/resources/unstable/resources/teams/index.d.ts +2 -0
  1573. package/dist/api/resources/unstable/resources/teams/index.js +18 -0
  1574. package/dist/api/resources/unstable/resources/teams/types/Team.d.ts +18 -0
  1575. package/dist/api/resources/unstable/resources/teams/types/Team.js +5 -0
  1576. package/dist/api/resources/unstable/resources/teams/types/index.d.ts +1 -0
  1577. package/dist/api/resources/unstable/resources/teams/types/index.js +17 -0
  1578. package/dist/api/resources/unstable/resources/ticketStates/client/Client.d.ts +49 -0
  1579. package/dist/api/resources/unstable/resources/ticketStates/client/Client.js +135 -0
  1580. package/dist/api/resources/unstable/resources/ticketStates/client/index.d.ts +1 -0
  1581. package/dist/api/resources/unstable/resources/ticketStates/client/index.js +2 -0
  1582. package/dist/api/resources/unstable/resources/ticketStates/index.d.ts +1 -0
  1583. package/dist/api/resources/unstable/resources/ticketStates/index.js +17 -0
  1584. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/Client.d.ts +73 -0
  1585. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/Client.js +226 -0
  1586. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/index.d.ts +1 -0
  1587. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/index.js +17 -0
  1588. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +54 -0
  1589. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +18 -0
  1590. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +41 -0
  1591. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
  1592. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
  1593. package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.js +2 -0
  1594. package/dist/api/resources/unstable/resources/ticketTypeAttributes/index.d.ts +1 -0
  1595. package/dist/api/resources/unstable/resources/ticketTypeAttributes/index.js +17 -0
  1596. package/dist/api/resources/unstable/resources/ticketTypes/client/Client.d.ts +83 -0
  1597. package/dist/api/resources/unstable/resources/ticketTypes/client/Client.js +269 -0
  1598. package/dist/api/resources/unstable/resources/ticketTypes/client/index.d.ts +1 -0
  1599. package/dist/api/resources/unstable/resources/ticketTypes/client/index.js +17 -0
  1600. package/dist/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.d.ts +15 -0
  1601. package/dist/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.js +5 -0
  1602. package/dist/api/resources/unstable/resources/ticketTypes/client/requests/index.d.ts +1 -0
  1603. package/dist/api/resources/unstable/resources/ticketTypes/client/requests/index.js +2 -0
  1604. package/dist/api/resources/unstable/resources/ticketTypes/index.d.ts +1 -0
  1605. package/dist/api/resources/unstable/resources/ticketTypes/index.js +17 -0
  1606. package/dist/api/resources/unstable/resources/tickets/client/Client.d.ts +277 -0
  1607. package/dist/api/resources/unstable/resources/tickets/client/Client.js +622 -0
  1608. package/dist/api/resources/unstable/resources/tickets/client/index.d.ts +1 -0
  1609. package/dist/api/resources/unstable/resources/tickets/client/index.js +17 -0
  1610. package/dist/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.d.ts +15 -0
  1611. package/dist/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.js +5 -0
  1612. package/dist/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.d.ts +17 -0
  1613. package/dist/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.js +5 -0
  1614. package/dist/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.d.ts +15 -0
  1615. package/dist/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.js +5 -0
  1616. package/dist/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.d.ts +59 -0
  1617. package/dist/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.js +5 -0
  1618. package/dist/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.d.ts +70 -0
  1619. package/dist/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
  1620. package/dist/api/resources/unstable/resources/tickets/client/requests/index.d.ts +5 -0
  1621. package/dist/api/resources/unstable/resources/tickets/client/requests/index.js +2 -0
  1622. package/dist/api/resources/unstable/resources/tickets/index.d.ts +2 -0
  1623. package/dist/api/resources/unstable/resources/tickets/index.js +18 -0
  1624. package/dist/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.d.ts +14 -0
  1625. package/dist/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.js +5 -0
  1626. package/dist/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.d.ts +5 -0
  1627. package/dist/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.js +5 -0
  1628. package/dist/api/resources/unstable/resources/tickets/types/Ticket.d.ts +48 -0
  1629. package/dist/api/resources/unstable/resources/tickets/types/Ticket.js +14 -0
  1630. package/dist/api/resources/unstable/resources/tickets/types/TicketContacts.d.ts +13 -0
  1631. package/dist/api/resources/unstable/resources/tickets/types/TicketContacts.js +5 -0
  1632. package/dist/api/resources/unstable/resources/tickets/types/TicketPart.d.ts +107 -0
  1633. package/dist/api/resources/unstable/resources/tickets/types/TicketPart.js +21 -0
  1634. package/dist/api/resources/unstable/resources/tickets/types/TicketState.d.ts +30 -0
  1635. package/dist/api/resources/unstable/resources/tickets/types/TicketState.js +15 -0
  1636. package/dist/api/resources/unstable/resources/tickets/types/TicketStateDetailed.d.ts +44 -0
  1637. package/dist/api/resources/unstable/resources/tickets/types/TicketStateDetailed.js +15 -0
  1638. package/dist/api/resources/unstable/resources/tickets/types/TicketType.d.ts +52 -0
  1639. package/dist/api/resources/unstable/resources/tickets/types/TicketType.js +14 -0
  1640. package/dist/api/resources/unstable/resources/tickets/types/index.d.ts +8 -0
  1641. package/dist/api/resources/unstable/resources/tickets/types/index.js +24 -0
  1642. package/dist/api/resources/unstable/resources/visitors/client/Client.d.ts +105 -0
  1643. package/dist/api/resources/unstable/resources/visitors/client/Client.js +299 -0
  1644. package/dist/api/resources/unstable/resources/visitors/client/index.d.ts +1 -0
  1645. package/dist/api/resources/unstable/resources/visitors/client/index.js +17 -0
  1646. package/dist/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +21 -0
  1647. package/dist/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
  1648. package/dist/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.d.ts +15 -0
  1649. package/dist/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.js +5 -0
  1650. package/dist/api/resources/unstable/resources/visitors/client/requests/index.d.ts +2 -0
  1651. package/dist/api/resources/unstable/resources/visitors/client/requests/index.js +2 -0
  1652. package/dist/api/resources/unstable/resources/visitors/index.d.ts +1 -0
  1653. package/dist/api/resources/unstable/resources/visitors/index.js +17 -0
  1654. package/dist/api/resources/unstable/types/ActivityLog.d.ts +104 -0
  1655. package/dist/api/resources/unstable/types/ActivityLog.js +78 -0
  1656. package/dist/api/resources/unstable/types/ActivityLogList.d.ts +14 -0
  1657. package/dist/api/resources/unstable/types/ActivityLogList.js +5 -0
  1658. package/dist/api/resources/unstable/types/ActivityLogMetadata.d.ts +26 -0
  1659. package/dist/api/resources/unstable/types/ActivityLogMetadata.js +5 -0
  1660. package/dist/api/resources/unstable/types/AddressableList.d.ts +14 -0
  1661. package/dist/api/resources/unstable/types/AddressableList.js +5 -0
  1662. package/dist/api/resources/unstable/types/AdminList.d.ts +13 -0
  1663. package/dist/api/resources/unstable/types/AdminList.js +5 -0
  1664. package/dist/api/resources/unstable/types/AdminPriorityLevel.d.ts +12 -0
  1665. package/dist/api/resources/unstable/types/AdminPriorityLevel.js +5 -0
  1666. package/dist/api/resources/unstable/types/AdminReplyConversationRequest.d.ts +31 -0
  1667. package/dist/api/resources/unstable/types/AdminReplyConversationRequest.js +14 -0
  1668. package/dist/api/resources/unstable/types/AdminReplyTicketRequest.d.ts +37 -0
  1669. package/dist/api/resources/unstable/types/AdminReplyTicketRequest.js +14 -0
  1670. package/dist/api/resources/unstable/types/AdminWithApp.d.ts +44 -0
  1671. package/dist/api/resources/unstable/types/AdminWithApp.js +5 -0
  1672. package/dist/api/resources/unstable/types/App.d.ts +22 -0
  1673. package/dist/api/resources/unstable/types/App.js +5 -0
  1674. package/dist/api/resources/unstable/types/ArticleContent.d.ts +36 -0
  1675. package/dist/api/resources/unstable/types/ArticleContent.js +13 -0
  1676. package/dist/api/resources/unstable/types/ArticleList.d.ts +16 -0
  1677. package/dist/api/resources/unstable/types/ArticleList.js +5 -0
  1678. package/dist/api/resources/unstable/types/ArticleStatistics.d.ts +22 -0
  1679. package/dist/api/resources/unstable/types/ArticleStatistics.js +5 -0
  1680. package/dist/api/resources/unstable/types/ArticleTranslatedContent.d.ts +85 -0
  1681. package/dist/api/resources/unstable/types/ArticleTranslatedContent.js +5 -0
  1682. package/dist/api/resources/unstable/types/AssignConversationRequest.d.ts +22 -0
  1683. package/dist/api/resources/unstable/types/AssignConversationRequest.js +13 -0
  1684. package/dist/api/resources/unstable/types/AwayStatusReason.d.ts +20 -0
  1685. package/dist/api/resources/unstable/types/AwayStatusReason.js +5 -0
  1686. package/dist/api/resources/unstable/types/CloseConversationRequest.d.ts +13 -0
  1687. package/dist/api/resources/unstable/types/CloseConversationRequest.js +5 -0
  1688. package/dist/api/resources/unstable/types/CollectionList.d.ts +16 -0
  1689. package/dist/api/resources/unstable/types/CollectionList.js +5 -0
  1690. package/dist/api/resources/unstable/types/CompanyAttachedContacts.d.ts +16 -0
  1691. package/dist/api/resources/unstable/types/CompanyAttachedContacts.js +5 -0
  1692. package/dist/api/resources/unstable/types/CompanyAttachedSegments.d.ts +13 -0
  1693. package/dist/api/resources/unstable/types/CompanyAttachedSegments.js +5 -0
  1694. package/dist/api/resources/unstable/types/CompanyData.d.ts +14 -0
  1695. package/dist/api/resources/unstable/types/CompanyData.js +5 -0
  1696. package/dist/api/resources/unstable/types/CompanyList.d.ts +16 -0
  1697. package/dist/api/resources/unstable/types/CompanyList.js +5 -0
  1698. package/dist/api/resources/unstable/types/CompanyScroll.d.ts +17 -0
  1699. package/dist/api/resources/unstable/types/CompanyScroll.js +5 -0
  1700. package/dist/api/resources/unstable/types/ContactArchived.d.ts +11 -0
  1701. package/dist/api/resources/unstable/types/ContactArchived.js +5 -0
  1702. package/dist/api/resources/unstable/types/ContactAttachedCompanies.d.ts +16 -0
  1703. package/dist/api/resources/unstable/types/ContactAttachedCompanies.js +5 -0
  1704. package/dist/api/resources/unstable/types/ContactBlocked.d.ts +11 -0
  1705. package/dist/api/resources/unstable/types/ContactBlocked.js +5 -0
  1706. package/dist/api/resources/unstable/types/ContactCompanies.d.ts +17 -0
  1707. package/dist/api/resources/unstable/types/ContactCompanies.js +5 -0
  1708. package/dist/api/resources/unstable/types/ContactDeleted.d.ts +11 -0
  1709. package/dist/api/resources/unstable/types/ContactDeleted.js +5 -0
  1710. package/dist/api/resources/unstable/types/ContactList.d.ts +16 -0
  1711. package/dist/api/resources/unstable/types/ContactList.js +5 -0
  1712. package/dist/api/resources/unstable/types/ContactLocation.d.ts +16 -0
  1713. package/dist/api/resources/unstable/types/ContactLocation.js +5 -0
  1714. package/dist/api/resources/unstable/types/ContactNotes.d.ts +17 -0
  1715. package/dist/api/resources/unstable/types/ContactNotes.js +5 -0
  1716. package/dist/api/resources/unstable/types/ContactReference.d.ts +14 -0
  1717. package/dist/api/resources/unstable/types/ContactReference.js +5 -0
  1718. package/dist/api/resources/unstable/types/ContactReplyBaseRequest.d.ts +26 -0
  1719. package/dist/api/resources/unstable/types/ContactReplyBaseRequest.js +5 -0
  1720. package/dist/api/resources/unstable/types/ContactReplyConversationRequest.d.ts +5 -0
  1721. package/dist/api/resources/unstable/types/ContactReplyConversationRequest.js +5 -0
  1722. package/dist/api/resources/unstable/types/ContactReplyEmailRequest.d.ts +13 -0
  1723. package/dist/api/resources/unstable/types/ContactReplyEmailRequest.js +5 -0
  1724. package/dist/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
  1725. package/dist/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.js +5 -0
  1726. package/dist/api/resources/unstable/types/ContactReplyTicketEmailRequest.d.ts +11 -0
  1727. package/dist/api/resources/unstable/types/ContactReplyTicketEmailRequest.js +5 -0
  1728. package/dist/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
  1729. package/dist/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
  1730. package/dist/api/resources/unstable/types/ContactReplyTicketRequest.d.ts +5 -0
  1731. package/dist/api/resources/unstable/types/ContactReplyTicketRequest.js +5 -0
  1732. package/dist/api/resources/unstable/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
  1733. package/dist/api/resources/unstable/types/ContactReplyTicketUserIdRequest.js +5 -0
  1734. package/dist/api/resources/unstable/types/ContactReplyUserIdRequest.d.ts +13 -0
  1735. package/dist/api/resources/unstable/types/ContactReplyUserIdRequest.js +5 -0
  1736. package/dist/api/resources/unstable/types/ContactSegments.d.ts +13 -0
  1737. package/dist/api/resources/unstable/types/ContactSegments.js +5 -0
  1738. package/dist/api/resources/unstable/types/ContactSocialProfiles.d.ts +11 -0
  1739. package/dist/api/resources/unstable/types/ContactSocialProfiles.js +5 -0
  1740. package/dist/api/resources/unstable/types/ContactSubscriptionTypes.d.ts +17 -0
  1741. package/dist/api/resources/unstable/types/ContactSubscriptionTypes.js +5 -0
  1742. package/dist/api/resources/unstable/types/ContactTags.d.ts +17 -0
  1743. package/dist/api/resources/unstable/types/ContactTags.js +5 -0
  1744. package/dist/api/resources/unstable/types/ContactUnarchived.d.ts +11 -0
  1745. package/dist/api/resources/unstable/types/ContactUnarchived.js +5 -0
  1746. package/dist/api/resources/unstable/types/ContentSourcesList.d.ts +11 -0
  1747. package/dist/api/resources/unstable/types/ContentSourcesList.js +5 -0
  1748. package/dist/api/resources/unstable/types/ConversationAttachmentFiles.d.ts +14 -0
  1749. package/dist/api/resources/unstable/types/ConversationAttachmentFiles.js +5 -0
  1750. package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.ts +20 -0
  1751. package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.js +5 -0
  1752. package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.d.ts +25 -0
  1753. package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.js +5 -0
  1754. package/dist/api/resources/unstable/types/ConversationContacts.d.ts +13 -0
  1755. package/dist/api/resources/unstable/types/ConversationContacts.js +5 -0
  1756. package/dist/api/resources/unstable/types/ConversationDeleted.d.ts +14 -0
  1757. package/dist/api/resources/unstable/types/ConversationDeleted.js +5 -0
  1758. package/dist/api/resources/unstable/types/ConversationFirstContactReply.d.ts +14 -0
  1759. package/dist/api/resources/unstable/types/ConversationFirstContactReply.js +5 -0
  1760. package/dist/api/resources/unstable/types/ConversationList.d.ts +16 -0
  1761. package/dist/api/resources/unstable/types/ConversationList.js +5 -0
  1762. package/dist/api/resources/unstable/types/ConversationPart.d.ts +52 -0
  1763. package/dist/api/resources/unstable/types/ConversationPart.js +14 -0
  1764. package/dist/api/resources/unstable/types/ConversationPartAuthor.d.ts +20 -0
  1765. package/dist/api/resources/unstable/types/ConversationPartAuthor.js +5 -0
  1766. package/dist/api/resources/unstable/types/ConversationPartMetadata.d.ts +22 -0
  1767. package/dist/api/resources/unstable/types/ConversationPartMetadata.js +5 -0
  1768. package/dist/api/resources/unstable/types/ConversationParts.d.ts +15 -0
  1769. package/dist/api/resources/unstable/types/ConversationParts.js +5 -0
  1770. package/dist/api/resources/unstable/types/ConversationRating.d.ts +17 -0
  1771. package/dist/api/resources/unstable/types/ConversationRating.js +5 -0
  1772. package/dist/api/resources/unstable/types/ConversationResponseTime.d.ts +14 -0
  1773. package/dist/api/resources/unstable/types/ConversationResponseTime.js +5 -0
  1774. package/dist/api/resources/unstable/types/ConversationSource.d.ts +44 -0
  1775. package/dist/api/resources/unstable/types/ConversationSource.js +21 -0
  1776. package/dist/api/resources/unstable/types/ConversationStatistics.d.ts +53 -0
  1777. package/dist/api/resources/unstable/types/ConversationStatistics.js +5 -0
  1778. package/dist/api/resources/unstable/types/ConversationTeammates.d.ts +13 -0
  1779. package/dist/api/resources/unstable/types/ConversationTeammates.js +5 -0
  1780. package/dist/api/resources/unstable/types/CreateOrUpdateTagRequest.d.ts +12 -0
  1781. package/dist/api/resources/unstable/types/CreateOrUpdateTagRequest.js +5 -0
  1782. package/dist/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
  1783. package/dist/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.js +5 -0
  1784. package/dist/api/resources/unstable/types/CreateTicketRequestBody.d.ts +43 -0
  1785. package/dist/api/resources/unstable/types/CreateTicketRequestBody.js +5 -0
  1786. package/dist/api/resources/unstable/types/CursorPages.d.ts +19 -0
  1787. package/dist/api/resources/unstable/types/CursorPages.js +5 -0
  1788. package/dist/api/resources/unstable/types/CustomActionFinished.d.ts +27 -0
  1789. package/dist/api/resources/unstable/types/CustomActionFinished.js +16 -0
  1790. package/dist/api/resources/unstable/types/CustomActionStarted.d.ts +15 -0
  1791. package/dist/api/resources/unstable/types/CustomActionStarted.js +5 -0
  1792. package/dist/api/resources/unstable/types/CustomAttributes.d.ts +11 -0
  1793. package/dist/api/resources/unstable/types/CustomAttributes.js +5 -0
  1794. package/dist/api/resources/unstable/types/CustomChannelAttribute.d.ts +9 -0
  1795. package/dist/api/resources/unstable/types/CustomChannelAttribute.js +5 -0
  1796. package/dist/api/resources/unstable/types/CustomChannelBaseEvent.d.ts +11 -0
  1797. package/dist/api/resources/unstable/types/CustomChannelBaseEvent.js +5 -0
  1798. package/dist/api/resources/unstable/types/CustomChannelContact.d.ts +23 -0
  1799. package/dist/api/resources/unstable/types/CustomChannelContact.js +13 -0
  1800. package/dist/api/resources/unstable/types/CustomChannelNotificationResponse.d.ts +13 -0
  1801. package/dist/api/resources/unstable/types/CustomChannelNotificationResponse.js +5 -0
  1802. package/dist/api/resources/unstable/types/CustomObjectInstanceDeleted.d.ts +14 -0
  1803. package/dist/api/resources/unstable/types/CustomObjectInstanceDeleted.js +5 -0
  1804. package/dist/api/resources/unstable/types/CustomObjectInstanceList.d.ts +12 -0
  1805. package/dist/api/resources/unstable/types/CustomObjectInstanceList.js +5 -0
  1806. package/dist/api/resources/unstable/types/CustomerRequest.d.ts +10 -0
  1807. package/dist/api/resources/unstable/types/CustomerRequest.js +5 -0
  1808. package/dist/api/resources/unstable/types/DataAttributeList.d.ts +13 -0
  1809. package/dist/api/resources/unstable/types/DataAttributeList.js +5 -0
  1810. package/dist/api/resources/unstable/types/DataEventList.d.ts +24 -0
  1811. package/dist/api/resources/unstable/types/DataEventList.js +5 -0
  1812. package/dist/api/resources/unstable/types/DataEventSummary.d.ts +19 -0
  1813. package/dist/api/resources/unstable/types/DataEventSummary.js +5 -0
  1814. package/dist/api/resources/unstable/types/DataEventSummaryItem.d.ts +18 -0
  1815. package/dist/api/resources/unstable/types/DataEventSummaryItem.js +5 -0
  1816. package/dist/api/resources/unstable/types/DataExportCsv.d.ts +60 -0
  1817. package/dist/api/resources/unstable/types/DataExportCsv.js +5 -0
  1818. package/dist/api/resources/unstable/types/Datetime.d.ts +10 -0
  1819. package/dist/api/resources/unstable/types/Datetime.js +5 -0
  1820. package/dist/api/resources/unstable/types/DeletedArticleObject.d.ts +14 -0
  1821. package/dist/api/resources/unstable/types/DeletedArticleObject.js +5 -0
  1822. package/dist/api/resources/unstable/types/DeletedCollectionObject.d.ts +14 -0
  1823. package/dist/api/resources/unstable/types/DeletedCollectionObject.js +5 -0
  1824. package/dist/api/resources/unstable/types/DeletedCompanyObject.d.ts +14 -0
  1825. package/dist/api/resources/unstable/types/DeletedCompanyObject.js +5 -0
  1826. package/dist/api/resources/unstable/types/DeletedObject.d.ts +14 -0
  1827. package/dist/api/resources/unstable/types/DeletedObject.js +5 -0
  1828. package/dist/api/resources/unstable/types/EmailAddressHeader.d.ts +14 -0
  1829. package/dist/api/resources/unstable/types/EmailAddressHeader.js +5 -0
  1830. package/dist/api/resources/unstable/types/EmailMessageMetadata.d.ts +13 -0
  1831. package/dist/api/resources/unstable/types/EmailMessageMetadata.js +5 -0
  1832. package/dist/api/resources/unstable/types/Error_.d.ts +27 -0
  1833. package/dist/api/resources/unstable/types/Error_.js +5 -0
  1834. package/dist/api/resources/unstable/types/EventDetails.d.ts +5 -0
  1835. package/dist/api/resources/unstable/types/EventDetails.js +5 -0
  1836. package/dist/api/resources/unstable/types/FileAttribute.d.ts +21 -0
  1837. package/dist/api/resources/unstable/types/FileAttribute.js +5 -0
  1838. package/dist/api/resources/unstable/types/GroupContent.d.ts +14 -0
  1839. package/dist/api/resources/unstable/types/GroupContent.js +5 -0
  1840. package/dist/api/resources/unstable/types/GroupTranslatedContent.d.ts +85 -0
  1841. package/dist/api/resources/unstable/types/GroupTranslatedContent.js +5 -0
  1842. package/dist/api/resources/unstable/types/IntercomVersion.d.ts +27 -0
  1843. package/dist/api/resources/unstable/types/IntercomVersion.js +26 -0
  1844. package/dist/api/resources/unstable/types/IntercomVersionUnstable.d.ts +7 -0
  1845. package/dist/api/resources/unstable/types/IntercomVersionUnstable.js +5 -0
  1846. package/dist/api/resources/unstable/types/LinkedObject.d.ts +24 -0
  1847. package/dist/api/resources/unstable/types/LinkedObject.js +13 -0
  1848. package/dist/api/resources/unstable/types/LinkedObjectList.d.ts +17 -0
  1849. package/dist/api/resources/unstable/types/LinkedObjectList.js +5 -0
  1850. package/dist/api/resources/unstable/types/MultipleFilterSearchRequest.d.ts +29 -0
  1851. package/dist/api/resources/unstable/types/MultipleFilterSearchRequest.js +13 -0
  1852. package/dist/api/resources/unstable/types/NewsItemRequest.d.ts +35 -0
  1853. package/dist/api/resources/unstable/types/NewsItemRequest.js +13 -0
  1854. package/dist/api/resources/unstable/types/NotFoundErrorBody.d.ts +22 -0
  1855. package/dist/api/resources/unstable/types/NotFoundErrorBody.js +5 -0
  1856. package/dist/api/resources/unstable/types/NoteList.d.ts +16 -0
  1857. package/dist/api/resources/unstable/types/NoteList.js +5 -0
  1858. package/dist/api/resources/unstable/types/OpenConversationRequest.d.ts +10 -0
  1859. package/dist/api/resources/unstable/types/OpenConversationRequest.js +5 -0
  1860. package/dist/api/resources/unstable/types/OperatorWorkflowEvent.d.ts +22 -0
  1861. package/dist/api/resources/unstable/types/OperatorWorkflowEvent.js +5 -0
  1862. package/dist/api/resources/unstable/types/PagesLink.d.ts +16 -0
  1863. package/dist/api/resources/unstable/types/PagesLink.js +5 -0
  1864. package/dist/api/resources/unstable/types/PaginatedResponse.d.ts +26 -0
  1865. package/dist/api/resources/unstable/types/PaginatedResponse.js +13 -0
  1866. package/dist/api/resources/unstable/types/PaginatedResponseDataItem.d.ts +13 -0
  1867. package/dist/api/resources/unstable/types/PaginatedResponseDataItem.js +5 -0
  1868. package/dist/api/resources/unstable/types/PartAttachment.d.ts +22 -0
  1869. package/dist/api/resources/unstable/types/PartAttachment.js +5 -0
  1870. package/dist/api/resources/unstable/types/PhoneSwitch.d.ts +12 -0
  1871. package/dist/api/resources/unstable/types/PhoneSwitch.js +5 -0
  1872. package/dist/api/resources/unstable/types/QuickReplyOption.d.ts +9 -0
  1873. package/dist/api/resources/unstable/types/QuickReplyOption.js +5 -0
  1874. package/dist/api/resources/unstable/types/Recipient.d.ts +22 -0
  1875. package/dist/api/resources/unstable/types/Recipient.js +13 -0
  1876. package/dist/api/resources/unstable/types/RedactConversationRequest.d.ts +27 -0
  1877. package/dist/api/resources/unstable/types/RedactConversationRequest.js +5 -0
  1878. package/dist/api/resources/unstable/types/Reference.d.ts +12 -0
  1879. package/dist/api/resources/unstable/types/Reference.js +5 -0
  1880. package/dist/api/resources/unstable/types/ReplyConversationRequestBody.d.ts +5 -0
  1881. package/dist/api/resources/unstable/types/ReplyConversationRequestBody.js +5 -0
  1882. package/dist/api/resources/unstable/types/SearchRequest.d.ts +14 -0
  1883. package/dist/api/resources/unstable/types/SearchRequest.js +5 -0
  1884. package/dist/api/resources/unstable/types/SegmentList.d.ts +15 -0
  1885. package/dist/api/resources/unstable/types/SegmentList.js +5 -0
  1886. package/dist/api/resources/unstable/types/SingleFilterSearchRequest.d.ts +32 -0
  1887. package/dist/api/resources/unstable/types/SingleFilterSearchRequest.js +17 -0
  1888. package/dist/api/resources/unstable/types/SlaApplied.d.ts +35 -0
  1889. package/dist/api/resources/unstable/types/SlaApplied.js +15 -0
  1890. package/dist/api/resources/unstable/types/SnoozeConversationRequest.d.ts +12 -0
  1891. package/dist/api/resources/unstable/types/SnoozeConversationRequest.js +5 -0
  1892. package/dist/api/resources/unstable/types/SocialProfile.d.ts +14 -0
  1893. package/dist/api/resources/unstable/types/SocialProfile.js +5 -0
  1894. package/dist/api/resources/unstable/types/StartingAfterPaging.d.ts +9 -0
  1895. package/dist/api/resources/unstable/types/StartingAfterPaging.js +5 -0
  1896. package/dist/api/resources/unstable/types/SubscriptionTypeList.d.ts +13 -0
  1897. package/dist/api/resources/unstable/types/SubscriptionTypeList.js +5 -0
  1898. package/dist/api/resources/unstable/types/TagCompanyRequest.d.ts +23 -0
  1899. package/dist/api/resources/unstable/types/TagCompanyRequest.js +5 -0
  1900. package/dist/api/resources/unstable/types/TagList.d.ts +13 -0
  1901. package/dist/api/resources/unstable/types/TagList.js +5 -0
  1902. package/dist/api/resources/unstable/types/TagMultipleUsersRequest.d.ts +20 -0
  1903. package/dist/api/resources/unstable/types/TagMultipleUsersRequest.js +5 -0
  1904. package/dist/api/resources/unstable/types/Tags.d.ts +13 -0
  1905. package/dist/api/resources/unstable/types/Tags.js +5 -0
  1906. package/dist/api/resources/unstable/types/TeamList.d.ts +13 -0
  1907. package/dist/api/resources/unstable/types/TeamList.js +5 -0
  1908. package/dist/api/resources/unstable/types/TeamPriorityLevel.d.ts +12 -0
  1909. package/dist/api/resources/unstable/types/TeamPriorityLevel.js +5 -0
  1910. package/dist/api/resources/unstable/types/TicketCustomAttributes.d.ts +11 -0
  1911. package/dist/api/resources/unstable/types/TicketCustomAttributes.js +5 -0
  1912. package/dist/api/resources/unstable/types/TicketList.d.ts +16 -0
  1913. package/dist/api/resources/unstable/types/TicketList.js +5 -0
  1914. package/dist/api/resources/unstable/types/TicketPartAuthor.d.ts +28 -0
  1915. package/dist/api/resources/unstable/types/TicketPartAuthor.js +15 -0
  1916. package/dist/api/resources/unstable/types/TicketParts.d.ts +15 -0
  1917. package/dist/api/resources/unstable/types/TicketParts.js +5 -0
  1918. package/dist/api/resources/unstable/types/TicketReply.d.ts +37 -0
  1919. package/dist/api/resources/unstable/types/TicketReply.js +14 -0
  1920. package/dist/api/resources/unstable/types/TicketRequestCustomAttributes.d.ts +10 -0
  1921. package/dist/api/resources/unstable/types/TicketRequestCustomAttributes.js +5 -0
  1922. package/dist/api/resources/unstable/types/TicketStateList.d.ts +13 -0
  1923. package/dist/api/resources/unstable/types/TicketStateList.js +5 -0
  1924. package/dist/api/resources/unstable/types/TicketTypeAttribute.d.ts +42 -0
  1925. package/dist/api/resources/unstable/types/TicketTypeAttribute.js +5 -0
  1926. package/dist/api/resources/unstable/types/TicketTypeAttributeList.d.ts +13 -0
  1927. package/dist/api/resources/unstable/types/TicketTypeAttributeList.js +5 -0
  1928. package/dist/api/resources/unstable/types/TicketTypeList.d.ts +13 -0
  1929. package/dist/api/resources/unstable/types/TicketTypeList.js +5 -0
  1930. package/dist/api/resources/unstable/types/Translation.d.ts +14 -0
  1931. package/dist/api/resources/unstable/types/Translation.js +5 -0
  1932. package/dist/api/resources/unstable/types/UntagCompanyRequest.d.ts +25 -0
  1933. package/dist/api/resources/unstable/types/UntagCompanyRequest.js +5 -0
  1934. package/dist/api/resources/unstable/types/UpdateArticleRequestBody.d.ts +34 -0
  1935. package/dist/api/resources/unstable/types/UpdateArticleRequestBody.js +13 -0
  1936. package/dist/api/resources/unstable/types/UpdateTicketTypeRequestBody.d.ts +32 -0
  1937. package/dist/api/resources/unstable/types/UpdateTicketTypeRequestBody.js +14 -0
  1938. package/dist/api/resources/unstable/types/Visitor.d.ts +128 -0
  1939. package/dist/api/resources/unstable/types/Visitor.js +5 -0
  1940. package/dist/api/resources/unstable/types/VisitorDeletedObject.d.ts +14 -0
  1941. package/dist/api/resources/unstable/types/VisitorDeletedObject.js +5 -0
  1942. package/dist/api/resources/unstable/types/WhatsappMessageStatusList.d.ts +65 -0
  1943. package/dist/api/resources/unstable/types/WhatsappMessageStatusList.js +21 -0
  1944. package/dist/api/resources/unstable/types/index.d.ts +145 -0
  1945. package/dist/api/resources/unstable/types/index.js +161 -0
  1946. package/dist/api/resources/visitors/client/Client.d.ts +6 -3
  1947. package/dist/api/resources/visitors/client/Client.js +29 -11
  1948. package/dist/api/types/CompanyList.d.ts +0 -2
  1949. package/dist/api/types/CreateContactRequestTwo.d.ts +4 -0
  1950. package/dist/api/types/CreateContactRequestTwo.js +5 -0
  1951. package/dist/api/types/CreateDataEventRequestTwo.d.ts +4 -0
  1952. package/dist/api/types/CreateDataEventRequestTwo.js +5 -0
  1953. package/dist/api/types/CreateMessageRequestTwo.d.ts +4 -0
  1954. package/dist/api/types/CreateMessageRequestTwo.js +5 -0
  1955. package/dist/api/{resources/tickets/client/requests → types}/CreateTicketRequest.d.ts +2 -12
  1956. package/dist/api/types/CreateTicketRequest.js +5 -0
  1957. package/dist/api/types/Metadata.d.ts +5 -0
  1958. package/dist/api/types/Metadata.js +5 -0
  1959. package/dist/api/types/TicketCustomAttributes.d.ts +1 -5
  1960. package/dist/api/types/TicketRequestCustomAttributes.d.ts +1 -4
  1961. package/dist/api/types/UpdateVisitorRequestOne.d.ts +4 -0
  1962. package/dist/api/types/UpdateVisitorRequestOne.js +5 -0
  1963. package/dist/api/types/index.d.ts +6 -0
  1964. package/dist/api/types/index.js +6 -0
  1965. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  1966. package/dist/core/fetcher/Fetcher.js +7 -0
  1967. package/dist/core/fetcher/Headers.d.ts +2 -0
  1968. package/dist/core/fetcher/Headers.js +84 -0
  1969. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  1970. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  1971. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  1972. package/dist/core/fetcher/RawResponse.js +44 -0
  1973. package/dist/core/fetcher/index.d.ts +3 -0
  1974. package/dist/core/fetcher/index.js +7 -1
  1975. package/dist/core/index.d.ts +1 -1
  1976. package/dist/core/index.js +1 -1
  1977. package/dist/core/pagination/Page.d.ts +5 -2
  1978. package/dist/core/pagination/Page.js +5 -2
  1979. package/dist/core/pagination/Pageable.d.ts +2 -0
  1980. package/dist/errors/IntercomError.d.ts +4 -1
  1981. package/dist/errors/IntercomError.js +4 -7
  1982. package/dist/version.d.ts +1 -1
  1983. package/dist/version.js +1 -1
  1984. package/errors/IntercomError.d.ts +4 -1
  1985. package/errors/IntercomError.js +4 -7
  1986. package/package.json +2 -1
  1987. package/reference.md +9263 -1
  1988. package/version.d.ts +1 -1
  1989. package/version.js +1 -1
  1990. /package/api/resources/{tickets/client/requests/CreateTicketRequest.js → companies/types/CompaniesRetrieveResponse.js} +0 -0
  1991. /package/{dist/api/resources/tickets/client/requests/CreateTicketRequest.js → api/resources/unstable/resources/admins/client/requests/ListActivityLogsRequest.js} +0 -0
@@ -0,0 +1,1218 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __rest = (this && this.__rest) || function (s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ };
58
+ var __importDefault = (this && this.__importDefault) || function (mod) {
59
+ return (mod && mod.__esModule) ? mod : { "default": mod };
60
+ };
61
+ Object.defineProperty(exports, "__esModule", { value: true });
62
+ exports.Conversations = void 0;
63
+ const environments = __importStar(require("../../../../../../environments"));
64
+ const core = __importStar(require("../../../../../../core"));
65
+ const Intercom = __importStar(require("../../../../../index"));
66
+ const url_join_1 = __importDefault(require("url-join"));
67
+ const errors = __importStar(require("../../../../../../errors/index"));
68
+ /**
69
+ * Everything about your Conversations
70
+ */
71
+ class Conversations {
72
+ constructor(_options = {}) {
73
+ this._options = _options;
74
+ }
75
+ /**
76
+ * You can fetch a list of all conversations.
77
+ *
78
+ * You can optionally request the result page size and the cursor to start after to fetch the result.
79
+ * {% admonition type="warning" name="Pagination" %}
80
+ * You can use pagination to limit the number of results returned. The default is `20` results per page.
81
+ * 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.
82
+ * {% /admonition %}
83
+ *
84
+ * @param {Intercom.unstable.ListConversationsRequest} request
85
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Intercom.unstable.UnauthorizedError}
88
+ * @throws {@link Intercom.unstable.ForbiddenError}
89
+ *
90
+ * @example
91
+ * await client.unstable.conversations.listConversations()
92
+ */
93
+ listConversations(request = {}, requestOptions) {
94
+ return core.HttpResponsePromise.fromPromise(this.__listConversations(request, requestOptions));
95
+ }
96
+ __listConversations() {
97
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
98
+ var _a, _b, _c, _d, _e, _f;
99
+ const { per_page: perPage, starting_after: startingAfter } = request;
100
+ const _queryParams = {};
101
+ if (perPage != null) {
102
+ _queryParams["per_page"] = perPage.toString();
103
+ }
104
+ if (startingAfter != null) {
105
+ _queryParams["starting_after"] = startingAfter;
106
+ }
107
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
108
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "conversations"),
109
+ method: "GET",
110
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ contentType: "application/json",
112
+ queryParameters: _queryParams,
113
+ requestType: "json",
114
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
115
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
116
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
117
+ });
118
+ if (_response.ok) {
119
+ return { data: _response.body, rawResponse: _response.rawResponse };
120
+ }
121
+ if (_response.error.reason === "status-code") {
122
+ switch (_response.error.statusCode) {
123
+ case 401:
124
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
125
+ case 403:
126
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
127
+ default:
128
+ throw new errors.IntercomError({
129
+ statusCode: _response.error.statusCode,
130
+ body: _response.error.body,
131
+ rawResponse: _response.rawResponse,
132
+ });
133
+ }
134
+ }
135
+ switch (_response.error.reason) {
136
+ case "non-json":
137
+ throw new errors.IntercomError({
138
+ statusCode: _response.error.statusCode,
139
+ body: _response.error.rawBody,
140
+ rawResponse: _response.rawResponse,
141
+ });
142
+ case "timeout":
143
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /conversations.");
144
+ case "unknown":
145
+ throw new errors.IntercomError({
146
+ message: _response.error.errorMessage,
147
+ rawResponse: _response.rawResponse,
148
+ });
149
+ }
150
+ });
151
+ }
152
+ /**
153
+ * You can create a conversation that has been initiated by a contact (ie. user or lead).
154
+ * The conversation can be an in-app message only.
155
+ *
156
+ * {% admonition type="info" name="Sending for visitors" %}
157
+ * 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`.
158
+ * This visitor will be automatically converted to a contact with a lead role once the conversation is created.
159
+ * {% /admonition %}
160
+ *
161
+ * This will return the Message model that has been created.
162
+ *
163
+ * @param {Intercom.unstable.CreateConversationRequest} request
164
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
165
+ *
166
+ * @throws {@link Intercom.unstable.UnauthorizedError}
167
+ * @throws {@link Intercom.unstable.ForbiddenError}
168
+ * @throws {@link Intercom.unstable.NotFoundError}
169
+ *
170
+ * @example
171
+ * await client.unstable.conversations.createConversation({
172
+ * from: {
173
+ * type: "user",
174
+ * id: "6762f11b1bb69f9f2193bba3"
175
+ * },
176
+ * body: "Hello there"
177
+ * })
178
+ *
179
+ * @example
180
+ * await client.unstable.conversations.createConversation({
181
+ * from: {
182
+ * type: "user",
183
+ * id: "123_doesnt_exist"
184
+ * },
185
+ * body: "Hello there"
186
+ * })
187
+ */
188
+ createConversation(request, requestOptions) {
189
+ return core.HttpResponsePromise.fromPromise(this.__createConversation(request, requestOptions));
190
+ }
191
+ __createConversation(request, requestOptions) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ var _a, _b, _c, _d, _e, _f;
194
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
195
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "conversations"),
196
+ method: "POST",
197
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
+ contentType: "application/json",
199
+ requestType: "json",
200
+ body: request,
201
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
202
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
203
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
204
+ });
205
+ if (_response.ok) {
206
+ return { data: _response.body, rawResponse: _response.rawResponse };
207
+ }
208
+ if (_response.error.reason === "status-code") {
209
+ switch (_response.error.statusCode) {
210
+ case 401:
211
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
212
+ case 403:
213
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
214
+ case 404:
215
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
216
+ default:
217
+ throw new errors.IntercomError({
218
+ statusCode: _response.error.statusCode,
219
+ body: _response.error.body,
220
+ rawResponse: _response.rawResponse,
221
+ });
222
+ }
223
+ }
224
+ switch (_response.error.reason) {
225
+ case "non-json":
226
+ throw new errors.IntercomError({
227
+ statusCode: _response.error.statusCode,
228
+ body: _response.error.rawBody,
229
+ rawResponse: _response.rawResponse,
230
+ });
231
+ case "timeout":
232
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations.");
233
+ case "unknown":
234
+ throw new errors.IntercomError({
235
+ message: _response.error.errorMessage,
236
+ rawResponse: _response.rawResponse,
237
+ });
238
+ }
239
+ });
240
+ }
241
+ /**
242
+ *
243
+ * You can fetch the details of a single conversation.
244
+ *
245
+ * This will return a single Conversation model with all its conversation parts.
246
+ *
247
+ * {% admonition type="warning" name="Hard limit of 500 parts" %}
248
+ * 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.
249
+ * {% /admonition %}
250
+ *
251
+ * 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).
252
+ *
253
+ * @param {Intercom.unstable.RetrieveConversationRequest} request
254
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
255
+ *
256
+ * @throws {@link Intercom.unstable.UnauthorizedError}
257
+ * @throws {@link Intercom.unstable.ForbiddenError}
258
+ * @throws {@link Intercom.unstable.NotFoundError}
259
+ *
260
+ * @example
261
+ * await client.unstable.conversations.retrieveConversation({
262
+ * id: 1,
263
+ * display_as: "plaintext"
264
+ * })
265
+ */
266
+ retrieveConversation(request, requestOptions) {
267
+ return core.HttpResponsePromise.fromPromise(this.__retrieveConversation(request, requestOptions));
268
+ }
269
+ __retrieveConversation(request, requestOptions) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ var _a, _b, _c, _d, _e, _f;
272
+ const { id, display_as: displayAs } = request;
273
+ const _queryParams = {};
274
+ if (displayAs != null) {
275
+ _queryParams["display_as"] = displayAs;
276
+ }
277
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(id)}`),
279
+ method: "GET",
280
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
+ contentType: "application/json",
282
+ queryParameters: _queryParams,
283
+ requestType: "json",
284
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
285
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
286
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
287
+ });
288
+ if (_response.ok) {
289
+ return { data: _response.body, rawResponse: _response.rawResponse };
290
+ }
291
+ if (_response.error.reason === "status-code") {
292
+ switch (_response.error.statusCode) {
293
+ case 401:
294
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
295
+ case 403:
296
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
297
+ case 404:
298
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
299
+ default:
300
+ throw new errors.IntercomError({
301
+ statusCode: _response.error.statusCode,
302
+ body: _response.error.body,
303
+ rawResponse: _response.rawResponse,
304
+ });
305
+ }
306
+ }
307
+ switch (_response.error.reason) {
308
+ case "non-json":
309
+ throw new errors.IntercomError({
310
+ statusCode: _response.error.statusCode,
311
+ body: _response.error.rawBody,
312
+ rawResponse: _response.rawResponse,
313
+ });
314
+ case "timeout":
315
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /conversations/{id}.");
316
+ case "unknown":
317
+ throw new errors.IntercomError({
318
+ message: _response.error.errorMessage,
319
+ rawResponse: _response.rawResponse,
320
+ });
321
+ }
322
+ });
323
+ }
324
+ /**
325
+ *
326
+ * You can update an existing conversation.
327
+ *
328
+ * {% admonition type="info" name="Replying and other actions" %}
329
+ * 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.
330
+ * {% /admonition %}
331
+ *
332
+ * {% admonition type="info" %}
333
+ * This endpoint handles both **conversation updates** and **custom object associations**.
334
+ *
335
+ * See _`update a conversation with an association to a custom object instance`_ in the request/response examples to see the custom object association format.
336
+ * {% /admonition %}
337
+ *
338
+ * @param {Intercom.unstable.UpdateConversationRequest} request
339
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
340
+ *
341
+ * @throws {@link Intercom.unstable.UnauthorizedError}
342
+ * @throws {@link Intercom.unstable.ForbiddenError}
343
+ * @throws {@link Intercom.unstable.NotFoundError}
344
+ *
345
+ * @example
346
+ * await client.unstable.conversations.updateConversation({
347
+ * id: 1,
348
+ * display_as: "plaintext",
349
+ * read: true,
350
+ * title: "new conversation title",
351
+ * custom_attributes: {
352
+ * "issue_type": "Billing",
353
+ * "priority": "High"
354
+ * }
355
+ * })
356
+ *
357
+ * @example
358
+ * await client.unstable.conversations.updateConversation({
359
+ * id: 1,
360
+ * display_as: "plaintext",
361
+ * custom_attributes: {
362
+ * "order": {}
363
+ * }
364
+ * })
365
+ */
366
+ updateConversation(request, requestOptions) {
367
+ return core.HttpResponsePromise.fromPromise(this.__updateConversation(request, requestOptions));
368
+ }
369
+ __updateConversation(request, requestOptions) {
370
+ return __awaiter(this, void 0, void 0, function* () {
371
+ var _a, _b, _c, _d, _e, _f;
372
+ const { id, display_as: displayAs } = request, _body = __rest(request, ["id", "display_as"]);
373
+ const _queryParams = {};
374
+ if (displayAs != null) {
375
+ _queryParams["display_as"] = displayAs;
376
+ }
377
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
378
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(id)}`),
379
+ method: "PUT",
380
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
381
+ contentType: "application/json",
382
+ queryParameters: _queryParams,
383
+ requestType: "json",
384
+ body: _body,
385
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
386
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
387
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
388
+ });
389
+ if (_response.ok) {
390
+ return { data: _response.body, rawResponse: _response.rawResponse };
391
+ }
392
+ if (_response.error.reason === "status-code") {
393
+ switch (_response.error.statusCode) {
394
+ case 401:
395
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
396
+ case 403:
397
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
398
+ case 404:
399
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
400
+ default:
401
+ throw new errors.IntercomError({
402
+ statusCode: _response.error.statusCode,
403
+ body: _response.error.body,
404
+ rawResponse: _response.rawResponse,
405
+ });
406
+ }
407
+ }
408
+ switch (_response.error.reason) {
409
+ case "non-json":
410
+ throw new errors.IntercomError({
411
+ statusCode: _response.error.statusCode,
412
+ body: _response.error.rawBody,
413
+ rawResponse: _response.rawResponse,
414
+ });
415
+ case "timeout":
416
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling PUT /conversations/{id}.");
417
+ case "unknown":
418
+ throw new errors.IntercomError({
419
+ message: _response.error.errorMessage,
420
+ rawResponse: _response.rawResponse,
421
+ });
422
+ }
423
+ });
424
+ }
425
+ /**
426
+ * You can delete a single conversation.
427
+ *
428
+ * @param {Intercom.unstable.DeleteConversationRequest} request
429
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
430
+ *
431
+ * @throws {@link Intercom.unstable.UnauthorizedError}
432
+ * @throws {@link Intercom.unstable.ForbiddenError}
433
+ *
434
+ * @example
435
+ * await client.unstable.conversations.deleteConversation({
436
+ * id: 1
437
+ * })
438
+ */
439
+ deleteConversation(request, requestOptions) {
440
+ return core.HttpResponsePromise.fromPromise(this.__deleteConversation(request, requestOptions));
441
+ }
442
+ __deleteConversation(request, requestOptions) {
443
+ return __awaiter(this, void 0, void 0, function* () {
444
+ var _a, _b, _c, _d, _e, _f;
445
+ const { id } = request;
446
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
447
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(id)}`),
448
+ method: "DELETE",
449
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
450
+ contentType: "application/json",
451
+ requestType: "json",
452
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
453
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
454
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
455
+ });
456
+ if (_response.ok) {
457
+ return {
458
+ data: _response.body,
459
+ rawResponse: _response.rawResponse,
460
+ };
461
+ }
462
+ if (_response.error.reason === "status-code") {
463
+ switch (_response.error.statusCode) {
464
+ case 401:
465
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
466
+ case 403:
467
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
468
+ default:
469
+ throw new errors.IntercomError({
470
+ statusCode: _response.error.statusCode,
471
+ body: _response.error.body,
472
+ rawResponse: _response.rawResponse,
473
+ });
474
+ }
475
+ }
476
+ switch (_response.error.reason) {
477
+ case "non-json":
478
+ throw new errors.IntercomError({
479
+ statusCode: _response.error.statusCode,
480
+ body: _response.error.rawBody,
481
+ rawResponse: _response.rawResponse,
482
+ });
483
+ case "timeout":
484
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling DELETE /conversations/{id}.");
485
+ case "unknown":
486
+ throw new errors.IntercomError({
487
+ message: _response.error.errorMessage,
488
+ rawResponse: _response.rawResponse,
489
+ });
490
+ }
491
+ });
492
+ }
493
+ /**
494
+ * You can search for multiple conversations by the value of their attributes in order to fetch exactly which ones you want.
495
+ *
496
+ * To search for conversations, you need to send a `POST` request to `https://api.intercom.io/conversations/search`.
497
+ *
498
+ * This will accept a query object in the body which will define your filters in order to search for conversations.
499
+ * {% admonition type="warning" name="Optimizing search queries" %}
500
+ * Search queries can be complex, so optimizing them can help the performance of your search.
501
+ * Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize
502
+ * pagination to limit the number of results returned. The default is `20` results per page and maximum is `150`.
503
+ * 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.
504
+ * {% /admonition %}
505
+ *
506
+ * ### Nesting & Limitations
507
+ *
508
+ * 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).
509
+ * There are some limitations to the amount of multiple's there can be:
510
+ * - There's a limit of max 2 nested filters
511
+ * - There's a limit of max 15 filters for each AND or OR group
512
+ *
513
+ * ### Accepted Fields
514
+ *
515
+ * Most keys listed in the conversation model are 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"`).
516
+ * 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.
517
+ *
518
+ * | Field | Type |
519
+ * | :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- |
520
+ * | id | String |
521
+ * | created_at | Date (UNIX timestamp) |
522
+ * | updated_at | Date (UNIX timestamp) |
523
+ * | source.type | String<br>Accepted fields are `conversation`, `email`, `facebook`, `instagram`, `phone_call`, `phone_switch`, `push`, `sms`, `twitter` and `whatsapp`. |
524
+ * | source.id | String |
525
+ * | source.delivered_as | String |
526
+ * | source.subject | String |
527
+ * | source.body | String |
528
+ * | source.author.id | String |
529
+ * | source.author.type | String |
530
+ * | source.author.name | String |
531
+ * | source.author.email | String |
532
+ * | source.url | String |
533
+ * | contact_ids | String |
534
+ * | teammate_ids | String |
535
+ * | admin_assignee_id | String |
536
+ * | team_assignee_id | String |
537
+ * | channel_initiated | String |
538
+ * | open | Boolean |
539
+ * | read | Boolean |
540
+ * | state | String |
541
+ * | waiting_since | Date (UNIX timestamp) |
542
+ * | snoozed_until | Date (UNIX timestamp) |
543
+ * | tag_ids | String |
544
+ * | priority | String |
545
+ * | statistics.time_to_assignment | Integer |
546
+ * | statistics.time_to_admin_reply | Integer |
547
+ * | statistics.time_to_first_close | Integer |
548
+ * | statistics.time_to_last_close | Integer |
549
+ * | statistics.median_time_to_reply | Integer |
550
+ * | statistics.first_contact_reply_at | Date (UNIX timestamp) |
551
+ * | statistics.first_assignment_at | Date (UNIX timestamp) |
552
+ * | statistics.first_admin_reply_at | Date (UNIX timestamp) |
553
+ * | statistics.first_close_at | Date (UNIX timestamp) |
554
+ * | statistics.last_assignment_at | Date (UNIX timestamp) |
555
+ * | statistics.last_assignment_admin_reply_at | Date (UNIX timestamp) |
556
+ * | statistics.last_contact_reply_at | Date (UNIX timestamp) |
557
+ * | statistics.last_admin_reply_at | Date (UNIX timestamp) |
558
+ * | statistics.last_close_at | Date (UNIX timestamp) |
559
+ * | statistics.last_closed_by_id | String |
560
+ * | statistics.count_reopens | Integer |
561
+ * | statistics.count_assignments | Integer |
562
+ * | statistics.count_conversation_parts | Integer |
563
+ * | conversation_rating.requested_at | Date (UNIX timestamp) |
564
+ * | conversation_rating.replied_at | Date (UNIX timestamp) |
565
+ * | conversation_rating.score | Integer |
566
+ * | conversation_rating.remark | String |
567
+ * | conversation_rating.contact_id | String |
568
+ * | conversation_rating.admin_d | String |
569
+ * | ai_agent_participated | Boolean |
570
+ * | ai_agent.resolution_state | String |
571
+ * | ai_agent.last_answer_type | String |
572
+ * | ai_agent.rating | Integer |
573
+ * | ai_agent.rating_remark | String |
574
+ * | ai_agent.source_type | String |
575
+ * | ai_agent.source_title | String |
576
+ *
577
+ * ### Accepted Operators
578
+ *
579
+ * 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).
580
+ *
581
+ * | Operator | Valid Types | Description |
582
+ * | :------- | :----------------------------- | :----------------------------------------------------------- |
583
+ * | = | All | Equals |
584
+ * | != | All | Doesn't Equal |
585
+ * | IN | All | In Shortcut for `OR` queries Values most be in Array |
586
+ * | NIN | All | Not In Shortcut for `OR !` queries Values must be in Array |
587
+ * | > | Integer Date (UNIX Timestamp) | Greater (or equal) than |
588
+ * | < | Integer Date (UNIX Timestamp) | Lower (or equal) than |
589
+ * | ~ | String | Contains |
590
+ * | !~ | String | Doesn't Contain |
591
+ * | ^ | String | Starts With |
592
+ * | $ | String | Ends With |
593
+ *
594
+ * @param {Intercom.unstable.SearchRequest} request
595
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
596
+ *
597
+ * @example
598
+ * await client.unstable.conversations.searchConversations({
599
+ * query: {
600
+ * operator: "AND",
601
+ * value: [{
602
+ * field: "created_at",
603
+ * operator: ">",
604
+ * value: "1306054154"
605
+ * }]
606
+ * },
607
+ * pagination: {
608
+ * per_page: 5
609
+ * }
610
+ * })
611
+ */
612
+ searchConversations(request, requestOptions) {
613
+ return core.HttpResponsePromise.fromPromise(this.__searchConversations(request, requestOptions));
614
+ }
615
+ __searchConversations(request, requestOptions) {
616
+ return __awaiter(this, void 0, void 0, function* () {
617
+ var _a, _b, _c, _d, _e, _f;
618
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
619
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "conversations/search"),
620
+ method: "POST",
621
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
622
+ contentType: "application/json",
623
+ requestType: "json",
624
+ body: request,
625
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
626
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
627
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
628
+ });
629
+ if (_response.ok) {
630
+ return { data: _response.body, rawResponse: _response.rawResponse };
631
+ }
632
+ if (_response.error.reason === "status-code") {
633
+ throw new errors.IntercomError({
634
+ statusCode: _response.error.statusCode,
635
+ body: _response.error.body,
636
+ rawResponse: _response.rawResponse,
637
+ });
638
+ }
639
+ switch (_response.error.reason) {
640
+ case "non-json":
641
+ throw new errors.IntercomError({
642
+ statusCode: _response.error.statusCode,
643
+ body: _response.error.rawBody,
644
+ rawResponse: _response.rawResponse,
645
+ });
646
+ case "timeout":
647
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/search.");
648
+ case "unknown":
649
+ throw new errors.IntercomError({
650
+ message: _response.error.errorMessage,
651
+ rawResponse: _response.rawResponse,
652
+ });
653
+ }
654
+ });
655
+ }
656
+ /**
657
+ * You can reply to a conversation with a message from an admin or on behalf of a contact, or with a note for admins.
658
+ *
659
+ * @param {Intercom.unstable.ReplyConversationRequest} request
660
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
661
+ *
662
+ * @throws {@link Intercom.unstable.UnauthorizedError}
663
+ * @throws {@link Intercom.unstable.ForbiddenError}
664
+ * @throws {@link Intercom.unstable.NotFoundError}
665
+ *
666
+ * @example
667
+ * await client.unstable.conversations.replyConversation({
668
+ * id: "123 or \"last\"",
669
+ * body: {
670
+ * message_type: "comment",
671
+ * type: "user",
672
+ * body: "Thanks again :)",
673
+ * intercom_user_id: "6762f1571bb69f9f2193bbbb"
674
+ * }
675
+ * })
676
+ *
677
+ * @example
678
+ * await client.unstable.conversations.replyConversation({
679
+ * id: "123 or \"last\"",
680
+ * body: {
681
+ * message_type: "note",
682
+ * type: "admin",
683
+ * 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>",
684
+ * admin_id: "3156780"
685
+ * }
686
+ * })
687
+ *
688
+ * @example
689
+ * await client.unstable.conversations.replyConversation({
690
+ * id: "123 or \"last\"",
691
+ * body: {
692
+ * message_type: "quick_reply",
693
+ * type: "admin",
694
+ * admin_id: "3156780",
695
+ * reply_options: [{
696
+ * text: "Yes",
697
+ * uuid: "a5e1c524-5ddd-4c3e-9328-6bca5d6e3edb"
698
+ * }, {
699
+ * text: "No",
700
+ * uuid: "f4a98af1-be56-4948-a57e-e1a83f8484c6"
701
+ * }]
702
+ * }
703
+ * })
704
+ *
705
+ * @example
706
+ * await client.unstable.conversations.replyConversation({
707
+ * id: "123 or \"last\"",
708
+ * body: {
709
+ * message_type: "comment",
710
+ * type: "user",
711
+ * body: "body",
712
+ * reply_options: [{
713
+ * text: "Yes",
714
+ * uuid: "a5e1c524-5ddd-4c3e-9328-6bca5d6e3edb"
715
+ * }],
716
+ * intercom_user_id: "6762f1621bb69f9f2193bbbe"
717
+ * }
718
+ * })
719
+ *
720
+ * @example
721
+ * await client.unstable.conversations.replyConversation({
722
+ * id: "123 or \"last\"",
723
+ * body: {
724
+ * message_type: "comment",
725
+ * type: "user",
726
+ * body: "Thanks again :)",
727
+ * intercom_user_id: "6762f1661bb69f9f2193bbbf"
728
+ * }
729
+ * })
730
+ */
731
+ replyConversation(request, requestOptions) {
732
+ return core.HttpResponsePromise.fromPromise(this.__replyConversation(request, requestOptions));
733
+ }
734
+ __replyConversation(request, requestOptions) {
735
+ return __awaiter(this, void 0, void 0, function* () {
736
+ var _a, _b, _c, _d, _e, _f;
737
+ const { id, body: _body } = request;
738
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
739
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(id)}/reply`),
740
+ method: "POST",
741
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
742
+ contentType: "application/json",
743
+ requestType: "json",
744
+ body: _body,
745
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
746
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
747
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
748
+ });
749
+ if (_response.ok) {
750
+ return { data: _response.body, rawResponse: _response.rawResponse };
751
+ }
752
+ if (_response.error.reason === "status-code") {
753
+ switch (_response.error.statusCode) {
754
+ case 401:
755
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
756
+ case 403:
757
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
758
+ case 404:
759
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
760
+ default:
761
+ throw new errors.IntercomError({
762
+ statusCode: _response.error.statusCode,
763
+ body: _response.error.body,
764
+ rawResponse: _response.rawResponse,
765
+ });
766
+ }
767
+ }
768
+ switch (_response.error.reason) {
769
+ case "non-json":
770
+ throw new errors.IntercomError({
771
+ statusCode: _response.error.statusCode,
772
+ body: _response.error.rawBody,
773
+ rawResponse: _response.rawResponse,
774
+ });
775
+ case "timeout":
776
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{id}/reply.");
777
+ case "unknown":
778
+ throw new errors.IntercomError({
779
+ message: _response.error.errorMessage,
780
+ rawResponse: _response.rawResponse,
781
+ });
782
+ }
783
+ });
784
+ }
785
+ /**
786
+ * For managing conversations you can:
787
+ * - Close a conversation
788
+ * - Snooze a conversation to reopen on a future date
789
+ * - Open a conversation which is `snoozed` or `closed`
790
+ * - Assign a conversation to an admin and/or team.
791
+ *
792
+ * @param {Intercom.unstable.ManageConversationRequest} request
793
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
794
+ *
795
+ * @throws {@link Intercom.unstable.UnauthorizedError}
796
+ * @throws {@link Intercom.unstable.ForbiddenError}
797
+ * @throws {@link Intercom.unstable.NotFoundError}
798
+ *
799
+ * @example
800
+ * await client.unstable.conversations.manageConversation({
801
+ * id: "123",
802
+ * body: {
803
+ * message_type: "close",
804
+ * type: "admin",
805
+ * admin_id: "12345"
806
+ * }
807
+ * })
808
+ *
809
+ * @example
810
+ * await client.unstable.conversations.manageConversation({
811
+ * id: "123",
812
+ * body: {
813
+ * message_type: "snoozed",
814
+ * admin_id: "5017691",
815
+ * snoozed_until: 1673609604
816
+ * }
817
+ * })
818
+ *
819
+ * @example
820
+ * await client.unstable.conversations.manageConversation({
821
+ * id: "123",
822
+ * body: {
823
+ * message_type: "open",
824
+ * admin_id: "5017690"
825
+ * }
826
+ * })
827
+ *
828
+ * @example
829
+ * await client.unstable.conversations.manageConversation({
830
+ * id: "123",
831
+ * body: {
832
+ * message_type: "assignment",
833
+ * type: "admin",
834
+ * admin_id: "12345",
835
+ * assignee_id: "4324241"
836
+ * }
837
+ * })
838
+ */
839
+ manageConversation(request, requestOptions) {
840
+ return core.HttpResponsePromise.fromPromise(this.__manageConversation(request, requestOptions));
841
+ }
842
+ __manageConversation(request, requestOptions) {
843
+ return __awaiter(this, void 0, void 0, function* () {
844
+ var _a, _b, _c, _d, _e, _f;
845
+ const { id, body: _body } = request;
846
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
847
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(id)}/parts`),
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.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "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 : 20000,
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 { data: _response.body, rawResponse: _response.rawResponse };
859
+ }
860
+ if (_response.error.reason === "status-code") {
861
+ switch (_response.error.statusCode) {
862
+ case 401:
863
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
864
+ case 403:
865
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
866
+ case 404:
867
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
868
+ default:
869
+ throw new errors.IntercomError({
870
+ statusCode: _response.error.statusCode,
871
+ body: _response.error.body,
872
+ rawResponse: _response.rawResponse,
873
+ });
874
+ }
875
+ }
876
+ switch (_response.error.reason) {
877
+ case "non-json":
878
+ throw new errors.IntercomError({
879
+ statusCode: _response.error.statusCode,
880
+ body: _response.error.rawBody,
881
+ rawResponse: _response.rawResponse,
882
+ });
883
+ case "timeout":
884
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{id}/parts.");
885
+ case "unknown":
886
+ throw new errors.IntercomError({
887
+ message: _response.error.errorMessage,
888
+ rawResponse: _response.rawResponse,
889
+ });
890
+ }
891
+ });
892
+ }
893
+ /**
894
+ * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
895
+ *
896
+ * {% admonition type="warning" name="Contacts without an email" %}
897
+ * 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`.
898
+ * {% /admonition %}
899
+ *
900
+ * @param {Intercom.unstable.AttachContactToConversationRequest} request
901
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
902
+ *
903
+ * @throws {@link Intercom.unstable.UnauthorizedError}
904
+ * @throws {@link Intercom.unstable.ForbiddenError}
905
+ * @throws {@link Intercom.unstable.NotFoundError}
906
+ *
907
+ * @example
908
+ * await client.unstable.conversations.attachContactToConversation({
909
+ * id: "123",
910
+ * admin_id: "12345",
911
+ * customer: {
912
+ * intercom_user_id: "6762f19b1bb69f9f2193bbd4"
913
+ * }
914
+ * })
915
+ *
916
+ * @example
917
+ * await client.unstable.conversations.attachContactToConversation({
918
+ * id: "123",
919
+ * admin_id: "12345",
920
+ * customer: {
921
+ * intercom_user_id: "6762f19e1bb69f9f2193bbd5"
922
+ * }
923
+ * })
924
+ */
925
+ attachContactToConversation(request, requestOptions) {
926
+ return core.HttpResponsePromise.fromPromise(this.__attachContactToConversation(request, requestOptions));
927
+ }
928
+ __attachContactToConversation(request, requestOptions) {
929
+ return __awaiter(this, void 0, void 0, function* () {
930
+ var _a, _b, _c, _d, _e, _f;
931
+ const { id } = request, _body = __rest(request, ["id"]);
932
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
933
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(id)}/customers`),
934
+ method: "POST",
935
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
936
+ contentType: "application/json",
937
+ requestType: "json",
938
+ body: _body,
939
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
940
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
941
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
942
+ });
943
+ if (_response.ok) {
944
+ return { data: _response.body, rawResponse: _response.rawResponse };
945
+ }
946
+ if (_response.error.reason === "status-code") {
947
+ switch (_response.error.statusCode) {
948
+ case 401:
949
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
950
+ case 403:
951
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
952
+ case 404:
953
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
954
+ default:
955
+ throw new errors.IntercomError({
956
+ statusCode: _response.error.statusCode,
957
+ body: _response.error.body,
958
+ rawResponse: _response.rawResponse,
959
+ });
960
+ }
961
+ }
962
+ switch (_response.error.reason) {
963
+ case "non-json":
964
+ throw new errors.IntercomError({
965
+ statusCode: _response.error.statusCode,
966
+ body: _response.error.rawBody,
967
+ rawResponse: _response.rawResponse,
968
+ });
969
+ case "timeout":
970
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{id}/customers.");
971
+ case "unknown":
972
+ throw new errors.IntercomError({
973
+ message: _response.error.errorMessage,
974
+ rawResponse: _response.rawResponse,
975
+ });
976
+ }
977
+ });
978
+ }
979
+ /**
980
+ * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin.
981
+ *
982
+ * {% admonition type="warning" name="Contacts without an email" %}
983
+ * 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`.
984
+ * {% /admonition %}
985
+ *
986
+ * @param {Intercom.unstable.DetachContactFromConversationRequest} request
987
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
988
+ *
989
+ * @throws {@link Intercom.unstable.UnauthorizedError}
990
+ * @throws {@link Intercom.unstable.ForbiddenError}
991
+ * @throws {@link Intercom.unstable.NotFoundError}
992
+ * @throws {@link Intercom.unstable.UnprocessableEntityError}
993
+ *
994
+ * @example
995
+ * await client.unstable.conversations.detachContactFromConversation({
996
+ * conversation_id: "123",
997
+ * contact_id: "123",
998
+ * admin_id: "5017690"
999
+ * })
1000
+ */
1001
+ detachContactFromConversation(request, requestOptions) {
1002
+ return core.HttpResponsePromise.fromPromise(this.__detachContactFromConversation(request, requestOptions));
1003
+ }
1004
+ __detachContactFromConversation(request, requestOptions) {
1005
+ return __awaiter(this, void 0, void 0, function* () {
1006
+ var _a, _b, _c, _d, _e, _f;
1007
+ const { conversation_id: conversationId, contact_id: contactId } = request, _body = __rest(request, ["conversation_id", "contact_id"]);
1008
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1009
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(conversationId)}/customers/${encodeURIComponent(contactId)}`),
1010
+ method: "DELETE",
1011
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1012
+ contentType: "application/json",
1013
+ requestType: "json",
1014
+ body: _body,
1015
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
1016
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1017
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1018
+ });
1019
+ if (_response.ok) {
1020
+ return { data: _response.body, rawResponse: _response.rawResponse };
1021
+ }
1022
+ if (_response.error.reason === "status-code") {
1023
+ switch (_response.error.statusCode) {
1024
+ case 401:
1025
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
1026
+ case 403:
1027
+ throw new Intercom.unstable.ForbiddenError(_response.error.body, _response.rawResponse);
1028
+ case 404:
1029
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
1030
+ case 422:
1031
+ throw new Intercom.unstable.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1032
+ default:
1033
+ throw new errors.IntercomError({
1034
+ statusCode: _response.error.statusCode,
1035
+ body: _response.error.body,
1036
+ rawResponse: _response.rawResponse,
1037
+ });
1038
+ }
1039
+ }
1040
+ switch (_response.error.reason) {
1041
+ case "non-json":
1042
+ throw new errors.IntercomError({
1043
+ statusCode: _response.error.statusCode,
1044
+ body: _response.error.rawBody,
1045
+ rawResponse: _response.rawResponse,
1046
+ });
1047
+ case "timeout":
1048
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling DELETE /conversations/{conversation_id}/customers/{contact_id}.");
1049
+ case "unknown":
1050
+ throw new errors.IntercomError({
1051
+ message: _response.error.errorMessage,
1052
+ rawResponse: _response.rawResponse,
1053
+ });
1054
+ }
1055
+ });
1056
+ }
1057
+ /**
1058
+ * You can redact a conversation part or the source message of a conversation (as seen in the source object).
1059
+ *
1060
+ * {% admonition type="info" name="Redacting parts and messages" %}
1061
+ * 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.
1062
+ * {% /admonition %}
1063
+ *
1064
+ * @param {Intercom.unstable.RedactConversationRequest} request
1065
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
1066
+ *
1067
+ * @throws {@link Intercom.unstable.UnauthorizedError}
1068
+ * @throws {@link Intercom.unstable.NotFoundError}
1069
+ *
1070
+ * @example
1071
+ * await client.unstable.conversations.redactConversation({
1072
+ * type: "conversation_part",
1073
+ * conversation_id: "19894788788",
1074
+ * conversation_part_id: "19381789428"
1075
+ * })
1076
+ *
1077
+ * @example
1078
+ * await client.unstable.conversations.redactConversation({
1079
+ * type: "conversation_part",
1080
+ * conversation_id: "really_123_doesnt_exist",
1081
+ * conversation_part_id: "really_123_doesnt_exist"
1082
+ * })
1083
+ */
1084
+ redactConversation(request, requestOptions) {
1085
+ return core.HttpResponsePromise.fromPromise(this.__redactConversation(request, requestOptions));
1086
+ }
1087
+ __redactConversation(request, requestOptions) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ var _a, _b, _c, _d, _e, _f;
1090
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1091
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "conversations/redact"),
1092
+ method: "POST",
1093
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1094
+ contentType: "application/json",
1095
+ requestType: "json",
1096
+ body: request,
1097
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
1098
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1099
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1100
+ });
1101
+ if (_response.ok) {
1102
+ return { data: _response.body, rawResponse: _response.rawResponse };
1103
+ }
1104
+ if (_response.error.reason === "status-code") {
1105
+ switch (_response.error.statusCode) {
1106
+ case 401:
1107
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
1108
+ case 404:
1109
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
1110
+ default:
1111
+ throw new errors.IntercomError({
1112
+ statusCode: _response.error.statusCode,
1113
+ body: _response.error.body,
1114
+ rawResponse: _response.rawResponse,
1115
+ });
1116
+ }
1117
+ }
1118
+ switch (_response.error.reason) {
1119
+ case "non-json":
1120
+ throw new errors.IntercomError({
1121
+ statusCode: _response.error.statusCode,
1122
+ body: _response.error.rawBody,
1123
+ rawResponse: _response.rawResponse,
1124
+ });
1125
+ case "timeout":
1126
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/redact.");
1127
+ case "unknown":
1128
+ throw new errors.IntercomError({
1129
+ message: _response.error.errorMessage,
1130
+ rawResponse: _response.rawResponse,
1131
+ });
1132
+ }
1133
+ });
1134
+ }
1135
+ /**
1136
+ * You can convert a conversation to a ticket.
1137
+ *
1138
+ * @param {Intercom.unstable.ConvertConversationToTicketRequest} request
1139
+ * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
1140
+ *
1141
+ * @throws {@link Intercom.unstable.BadRequestError}
1142
+ *
1143
+ * @example
1144
+ * await client.unstable.conversations.convertConversationToTicket({
1145
+ * id: 1,
1146
+ * ticket_type_id: "53"
1147
+ * })
1148
+ *
1149
+ * @example
1150
+ * await client.unstable.conversations.convertConversationToTicket({
1151
+ * id: 1,
1152
+ * ticket_type_id: "54"
1153
+ * })
1154
+ */
1155
+ convertConversationToTicket(request, requestOptions) {
1156
+ return core.HttpResponsePromise.fromPromise(this.__convertConversationToTicket(request, requestOptions));
1157
+ }
1158
+ __convertConversationToTicket(request, requestOptions) {
1159
+ return __awaiter(this, void 0, void 0, function* () {
1160
+ var _a, _b, _c, _d, _e, _f;
1161
+ const { id } = request, _body = __rest(request, ["id"]);
1162
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1163
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `conversations/${encodeURIComponent(id)}/convert`),
1164
+ method: "POST",
1165
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1166
+ contentType: "application/json",
1167
+ requestType: "json",
1168
+ body: _body,
1169
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
1170
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1171
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1172
+ });
1173
+ if (_response.ok) {
1174
+ return { data: _response.body, rawResponse: _response.rawResponse };
1175
+ }
1176
+ if (_response.error.reason === "status-code") {
1177
+ switch (_response.error.statusCode) {
1178
+ case 400:
1179
+ throw new Intercom.unstable.BadRequestError(_response.error.body, _response.rawResponse);
1180
+ default:
1181
+ throw new errors.IntercomError({
1182
+ statusCode: _response.error.statusCode,
1183
+ body: _response.error.body,
1184
+ rawResponse: _response.rawResponse,
1185
+ });
1186
+ }
1187
+ }
1188
+ switch (_response.error.reason) {
1189
+ case "non-json":
1190
+ throw new errors.IntercomError({
1191
+ statusCode: _response.error.statusCode,
1192
+ body: _response.error.rawBody,
1193
+ rawResponse: _response.rawResponse,
1194
+ });
1195
+ case "timeout":
1196
+ throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /conversations/{id}/convert.");
1197
+ case "unknown":
1198
+ throw new errors.IntercomError({
1199
+ message: _response.error.errorMessage,
1200
+ rawResponse: _response.rawResponse,
1201
+ });
1202
+ }
1203
+ });
1204
+ }
1205
+ _getAuthorizationHeader() {
1206
+ return __awaiter(this, void 0, void 0, function* () {
1207
+ var _a;
1208
+ 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"];
1209
+ if (bearer == null) {
1210
+ throw new errors.IntercomError({
1211
+ message: "Please specify a bearer by either passing it in to the constructor or initializing a INTERCOM_API_KEY environment variable",
1212
+ });
1213
+ }
1214
+ return `Bearer ${bearer}`;
1215
+ });
1216
+ }
1217
+ }
1218
+ exports.Conversations = Conversations;