intercom-client 4.0.0 → 6.0.0-alpha

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 (2000) hide show
  1. package/Client.d.ts +91 -0
  2. package/Client.js +117 -0
  3. package/README.md +106 -1225
  4. package/api/errors/BadRequestError.d.ts +7 -0
  5. package/api/errors/BadRequestError.js +41 -0
  6. package/api/errors/ForbiddenError.d.ts +8 -0
  7. package/api/errors/ForbiddenError.js +41 -0
  8. package/api/errors/NotFoundError.d.ts +7 -0
  9. package/api/errors/NotFoundError.js +41 -0
  10. package/api/errors/UnauthorizedError.d.ts +8 -0
  11. package/api/errors/UnauthorizedError.js +41 -0
  12. package/api/errors/UnprocessableEntityError.d.ts +7 -0
  13. package/api/errors/UnprocessableEntityError.js +41 -0
  14. package/api/errors/index.d.ts +5 -0
  15. package/api/errors/index.js +21 -0
  16. package/api/index.d.ts +4 -0
  17. package/api/index.js +19 -0
  18. package/api/resources/admins/client/Client.d.ts +101 -0
  19. package/api/resources/admins/client/Client.js +387 -0
  20. package/api/resources/admins/client/index.d.ts +1 -0
  21. package/api/resources/admins/client/index.js +17 -0
  22. package/api/resources/admins/client/requests/AdminsAwayRequest.d.ts +28 -0
  23. package/api/resources/admins/client/requests/AdminsAwayRequest.js +5 -0
  24. package/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.d.ts +19 -0
  25. package/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.js +5 -0
  26. package/api/resources/admins/client/requests/index.d.ts +2 -0
  27. package/api/resources/admins/client/requests/index.js +2 -0
  28. package/api/resources/admins/index.d.ts +2 -0
  29. package/api/resources/admins/index.js +18 -0
  30. package/api/resources/admins/types/Admin.d.ts +30 -0
  31. package/api/resources/admins/types/Admin.js +5 -0
  32. package/api/resources/admins/types/index.d.ts +1 -0
  33. package/api/resources/admins/types/index.js +17 -0
  34. package/api/resources/aiAgent/index.d.ts +1 -0
  35. package/api/resources/aiAgent/index.js +17 -0
  36. package/api/resources/aiAgent/types/AiAgent.d.ts +22 -0
  37. package/api/resources/aiAgent/types/AiAgent.js +5 -0
  38. package/api/resources/aiAgent/types/AiAgentSourceType.d.ts +14 -0
  39. package/api/resources/aiAgent/types/AiAgentSourceType.js +13 -0
  40. package/api/resources/aiAgent/types/index.d.ts +2 -0
  41. package/api/resources/aiAgent/types/index.js +18 -0
  42. package/api/resources/aiContentSource/index.d.ts +1 -0
  43. package/api/resources/aiContentSource/index.js +17 -0
  44. package/api/resources/aiContentSource/types/ContentSource.d.ts +17 -0
  45. package/api/resources/aiContentSource/types/ContentSource.js +5 -0
  46. package/api/resources/aiContentSource/types/ContentSourceContentType.d.ts +14 -0
  47. package/api/resources/aiContentSource/types/ContentSourceContentType.js +13 -0
  48. package/api/resources/aiContentSource/types/index.d.ts +2 -0
  49. package/api/resources/aiContentSource/types/index.js +18 -0
  50. package/api/resources/articles/client/Client.d.ts +142 -0
  51. package/api/resources/articles/client/Client.js +495 -0
  52. package/api/resources/articles/client/index.d.ts +1 -0
  53. package/api/resources/articles/client/index.js +17 -0
  54. package/api/resources/articles/client/requests/ArticlesSearchRequest.d.ts +25 -0
  55. package/api/resources/articles/client/requests/ArticlesSearchRequest.js +5 -0
  56. package/api/resources/articles/client/requests/index.d.ts +1 -0
  57. package/api/resources/articles/client/requests/index.js +2 -0
  58. package/api/resources/articles/index.d.ts +2 -0
  59. package/api/resources/articles/index.js +18 -0
  60. package/api/resources/articles/types/Article.d.ts +10 -0
  61. package/api/resources/articles/types/Article.js +5 -0
  62. package/api/resources/articles/types/ArticleListItem.d.ts +40 -0
  63. package/api/resources/articles/types/ArticleListItem.js +5 -0
  64. package/api/resources/articles/types/ArticleListItemState.d.ts +11 -0
  65. package/api/resources/articles/types/ArticleListItemState.js +10 -0
  66. package/api/resources/articles/types/ArticleSearchHighlights.d.ts +15 -0
  67. package/api/resources/articles/types/ArticleSearchHighlights.js +5 -0
  68. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.d.ts +13 -0
  69. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.js +5 -0
  70. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.d.ts +11 -0
  71. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.js +10 -0
  72. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.d.ts +13 -0
  73. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.js +5 -0
  74. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.d.ts +11 -0
  75. package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.js +10 -0
  76. package/api/resources/articles/types/ArticleSearchResponse.d.ts +16 -0
  77. package/api/resources/articles/types/ArticleSearchResponse.js +5 -0
  78. package/api/resources/articles/types/ArticleSearchResponseData.d.ts +13 -0
  79. package/api/resources/articles/types/ArticleSearchResponseData.js +5 -0
  80. package/api/resources/articles/types/index.d.ts +10 -0
  81. package/api/resources/articles/types/index.js +26 -0
  82. package/api/resources/companies/client/Client.d.ts +237 -0
  83. package/api/resources/companies/client/Client.js +893 -0
  84. package/api/resources/companies/client/index.d.ts +1 -0
  85. package/api/resources/companies/client/index.js +17 -0
  86. package/api/resources/companies/client/requests/CompaniesAttachContactRequest.d.ts +23 -0
  87. package/api/resources/companies/client/requests/CompaniesAttachContactRequest.js +5 -0
  88. package/api/resources/companies/client/requests/CompaniesListRequest.d.ts +21 -0
  89. package/api/resources/companies/client/requests/CompaniesListRequest.js +5 -0
  90. package/api/resources/companies/client/requests/CompaniesRetrieveRequest.d.ts +33 -0
  91. package/api/resources/companies/client/requests/CompaniesRetrieveRequest.js +5 -0
  92. package/api/resources/companies/client/requests/CompaniesScrollRequest.d.ts +13 -0
  93. package/api/resources/companies/client/requests/CompaniesScrollRequest.js +5 -0
  94. package/api/resources/companies/client/requests/index.d.ts +4 -0
  95. package/api/resources/companies/client/requests/index.js +2 -0
  96. package/api/resources/companies/index.d.ts +2 -0
  97. package/api/resources/companies/index.js +18 -0
  98. package/api/resources/companies/types/Company.d.ts +46 -0
  99. package/api/resources/companies/types/Company.js +5 -0
  100. package/api/resources/companies/types/CompanyPlan.d.ts +11 -0
  101. package/api/resources/companies/types/CompanyPlan.js +5 -0
  102. package/api/resources/companies/types/CompanySegments.d.ts +12 -0
  103. package/api/resources/companies/types/CompanySegments.js +5 -0
  104. package/api/resources/companies/types/CompanyTags.d.ts +11 -0
  105. package/api/resources/companies/types/CompanyTags.js +5 -0
  106. package/api/resources/companies/types/index.d.ts +4 -0
  107. package/api/resources/companies/types/index.js +20 -0
  108. package/api/resources/contacts/client/Client.d.ts +363 -0
  109. package/api/resources/contacts/client/Client.js +1150 -0
  110. package/api/resources/contacts/client/index.d.ts +1 -0
  111. package/api/resources/contacts/client/index.js +17 -0
  112. package/api/resources/contacts/client/requests/ContactsAttachToContactRequest.d.ts +28 -0
  113. package/api/resources/contacts/client/requests/ContactsAttachToContactRequest.js +5 -0
  114. package/api/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
  115. package/api/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
  116. package/api/resources/contacts/client/requests/UpdateContactRequest.d.ts +34 -0
  117. package/api/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
  118. package/api/resources/contacts/client/requests/index.d.ts +3 -0
  119. package/api/resources/contacts/client/requests/index.js +2 -0
  120. package/api/resources/contacts/index.d.ts +2 -0
  121. package/api/resources/contacts/index.js +18 -0
  122. package/api/resources/contacts/types/Contact.d.ts +95 -0
  123. package/api/resources/contacts/types/Contact.js +5 -0
  124. package/api/resources/contacts/types/ContactAvatar.d.ts +9 -0
  125. package/api/resources/contacts/types/ContactAvatar.js +5 -0
  126. package/api/resources/contacts/types/index.d.ts +2 -0
  127. package/api/resources/contacts/types/index.js +18 -0
  128. package/api/resources/conversations/client/Client.d.ts +446 -0
  129. package/api/resources/conversations/client/Client.js +1153 -0
  130. package/api/resources/conversations/client/index.d.ts +1 -0
  131. package/api/resources/conversations/client/index.js +17 -0
  132. package/api/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +26 -0
  133. package/api/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
  134. package/api/resources/conversations/client/requests/ConversationsFindRequest.d.ts +13 -0
  135. package/api/resources/conversations/client/requests/ConversationsFindRequest.js +5 -0
  136. package/api/resources/conversations/client/requests/ConversationsListRequest.d.ts +17 -0
  137. package/api/resources/conversations/client/requests/ConversationsListRequest.js +5 -0
  138. package/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +20 -0
  139. package/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
  140. package/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +28 -0
  141. package/api/resources/conversations/client/requests/CreateConversationRequest.js +5 -0
  142. package/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +28 -0
  143. package/api/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
  144. package/api/resources/conversations/client/requests/UpdateConversationRequest.d.ts +32 -0
  145. package/api/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
  146. package/api/resources/conversations/client/requests/index.d.ts +7 -0
  147. package/api/resources/conversations/client/requests/index.js +2 -0
  148. package/api/resources/conversations/index.d.ts +2 -0
  149. package/api/resources/conversations/index.js +18 -0
  150. package/api/resources/conversations/types/AttachContactToConversationRequestCustomer.d.ts +5 -0
  151. package/api/resources/conversations/types/AttachContactToConversationRequestCustomer.js +5 -0
  152. package/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.d.ts +9 -0
  153. package/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.js +5 -0
  154. package/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.d.ts +9 -0
  155. package/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.js +5 -0
  156. package/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.d.ts +9 -0
  157. package/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.js +5 -0
  158. package/api/resources/conversations/types/Conversation.d.ts +49 -0
  159. package/api/resources/conversations/types/Conversation.js +5 -0
  160. package/api/resources/conversations/types/ConversationPriority.d.ts +11 -0
  161. package/api/resources/conversations/types/ConversationPriority.js +10 -0
  162. package/api/resources/conversations/types/ConversationState.d.ts +12 -0
  163. package/api/resources/conversations/types/ConversationState.js +11 -0
  164. package/api/resources/conversations/types/ConversationsManageRequestBody.d.ts +19 -0
  165. package/api/resources/conversations/types/ConversationsManageRequestBody.js +5 -0
  166. package/api/resources/conversations/types/CreateConversationRequestFrom.d.ts +10 -0
  167. package/api/resources/conversations/types/CreateConversationRequestFrom.js +5 -0
  168. package/api/resources/conversations/types/CreateConversationRequestFromType.d.ts +12 -0
  169. package/api/resources/conversations/types/CreateConversationRequestFromType.js +11 -0
  170. package/api/resources/conversations/types/index.d.ts +10 -0
  171. package/api/resources/conversations/types/index.js +26 -0
  172. package/api/resources/customObjectInstances/index.d.ts +1 -0
  173. package/api/resources/customObjectInstances/index.js +17 -0
  174. package/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +16 -0
  175. package/api/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
  176. package/api/resources/customObjectInstances/types/index.d.ts +1 -0
  177. package/api/resources/customObjectInstances/types/index.js +17 -0
  178. package/api/resources/dataAttributes/client/Client.d.ts +136 -0
  179. package/api/resources/dataAttributes/client/Client.js +336 -0
  180. package/api/resources/dataAttributes/client/index.d.ts +1 -0
  181. package/api/resources/dataAttributes/client/index.js +17 -0
  182. package/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +63 -0
  183. package/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +5 -0
  184. package/api/resources/dataAttributes/client/requests/DataAttributesListRequest.d.ts +18 -0
  185. package/api/resources/dataAttributes/client/requests/DataAttributesListRequest.js +5 -0
  186. package/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +41 -0
  187. package/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
  188. package/api/resources/dataAttributes/client/requests/index.d.ts +3 -0
  189. package/api/resources/dataAttributes/client/requests/index.js +2 -0
  190. package/api/resources/dataAttributes/index.d.ts +2 -0
  191. package/api/resources/dataAttributes/index.js +18 -0
  192. package/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.d.ts +15 -0
  193. package/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.js +14 -0
  194. package/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.d.ts +11 -0
  195. package/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.js +10 -0
  196. package/api/resources/dataAttributes/types/DataAttribute.d.ts +43 -0
  197. package/api/resources/dataAttributes/types/DataAttribute.js +5 -0
  198. package/api/resources/dataAttributes/types/DataAttributeDataType.d.ts +14 -0
  199. package/api/resources/dataAttributes/types/DataAttributeDataType.js +13 -0
  200. package/api/resources/dataAttributes/types/DataAttributeModel.d.ts +11 -0
  201. package/api/resources/dataAttributes/types/DataAttributeModel.js +10 -0
  202. package/api/resources/dataAttributes/types/DataAttributesListRequestModel.d.ts +9 -0
  203. package/api/resources/dataAttributes/types/DataAttributesListRequestModel.js +11 -0
  204. package/api/resources/dataAttributes/types/index.d.ts +6 -0
  205. package/api/resources/dataAttributes/types/index.js +22 -0
  206. package/api/resources/dataEvents/index.d.ts +1 -0
  207. package/api/resources/dataEvents/index.js +17 -0
  208. package/api/resources/dataEvents/types/DataEvent.d.ts +24 -0
  209. package/api/resources/dataEvents/types/DataEvent.js +5 -0
  210. package/api/resources/dataEvents/types/index.d.ts +1 -0
  211. package/api/resources/dataEvents/types/index.js +17 -0
  212. package/api/resources/dataExport/client/Client.d.ts +100 -0
  213. package/api/resources/dataExport/client/Client.js +310 -0
  214. package/api/resources/dataExport/client/index.d.ts +1 -0
  215. package/api/resources/dataExport/client/index.js +17 -0
  216. package/api/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
  217. package/api/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
  218. package/api/resources/dataExport/client/requests/index.d.ts +1 -0
  219. package/api/resources/dataExport/client/requests/index.js +2 -0
  220. package/api/resources/dataExport/index.d.ts +2 -0
  221. package/api/resources/dataExport/index.js +18 -0
  222. package/api/resources/dataExport/types/DataExport.d.ts +17 -0
  223. package/api/resources/dataExport/types/DataExport.js +5 -0
  224. package/api/resources/dataExport/types/DataExportStatus.d.ts +15 -0
  225. package/api/resources/dataExport/types/DataExportStatus.js +14 -0
  226. package/api/resources/dataExport/types/index.d.ts +2 -0
  227. package/api/resources/dataExport/types/index.js +18 -0
  228. package/api/resources/events/client/Client.d.ts +127 -0
  229. package/api/resources/events/client/Client.js +318 -0
  230. package/api/resources/events/client/index.d.ts +1 -0
  231. package/api/resources/events/client/index.js +17 -0
  232. package/api/resources/events/client/requests/CreateDataEventSummariesRequest.d.ts +14 -0
  233. package/api/resources/events/client/requests/CreateDataEventSummariesRequest.js +5 -0
  234. package/api/resources/events/client/requests/EventsListRequest.d.ts +25 -0
  235. package/api/resources/events/client/requests/EventsListRequest.js +5 -0
  236. package/api/resources/events/client/requests/index.d.ts +2 -0
  237. package/api/resources/events/client/requests/index.js +2 -0
  238. package/api/resources/events/index.d.ts +2 -0
  239. package/api/resources/events/index.js +18 -0
  240. package/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.d.ts +16 -0
  241. package/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.js +5 -0
  242. package/api/resources/events/types/EventsListRequestFilter.d.ts +5 -0
  243. package/api/resources/events/types/EventsListRequestFilter.js +5 -0
  244. package/api/resources/events/types/EventsListRequestFilterEmail.d.ts +6 -0
  245. package/api/resources/events/types/EventsListRequestFilterEmail.js +5 -0
  246. package/api/resources/events/types/EventsListRequestFilterIntercomUserId.d.ts +6 -0
  247. package/api/resources/events/types/EventsListRequestFilterIntercomUserId.js +5 -0
  248. package/api/resources/events/types/EventsListRequestFilterUserId.d.ts +6 -0
  249. package/api/resources/events/types/EventsListRequestFilterUserId.js +5 -0
  250. package/api/resources/events/types/index.d.ts +5 -0
  251. package/api/resources/events/types/index.js +21 -0
  252. package/api/resources/helpCenter/client/Client.d.ts +60 -0
  253. package/api/resources/helpCenter/client/Client.js +196 -0
  254. package/api/resources/helpCenter/client/index.d.ts +1 -0
  255. package/api/resources/helpCenter/client/index.js +2 -0
  256. package/api/resources/helpCenter/index.d.ts +3 -0
  257. package/api/resources/helpCenter/index.js +19 -0
  258. package/api/resources/helpCenter/resources/collections/client/Client.d.ts +106 -0
  259. package/api/resources/helpCenter/resources/collections/client/Client.js +395 -0
  260. package/api/resources/helpCenter/resources/collections/client/index.d.ts +1 -0
  261. package/api/resources/helpCenter/resources/collections/client/index.js +17 -0
  262. package/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.d.ts +27 -0
  263. package/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.js +5 -0
  264. package/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.d.ts +24 -0
  265. package/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.js +5 -0
  266. package/api/resources/helpCenter/resources/collections/client/requests/index.d.ts +2 -0
  267. package/api/resources/helpCenter/resources/collections/client/requests/index.js +2 -0
  268. package/api/resources/helpCenter/resources/collections/index.d.ts +1 -0
  269. package/api/resources/helpCenter/resources/collections/index.js +17 -0
  270. package/api/resources/helpCenter/resources/index.d.ts +2 -0
  271. package/api/resources/helpCenter/resources/index.js +31 -0
  272. package/api/resources/helpCenter/types/Collection.d.ts +34 -0
  273. package/api/resources/helpCenter/types/Collection.js +5 -0
  274. package/api/resources/helpCenter/types/HelpCenter.d.ts +22 -0
  275. package/api/resources/helpCenter/types/HelpCenter.js +5 -0
  276. package/api/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
  277. package/api/resources/helpCenter/types/HelpCenterList.js +5 -0
  278. package/api/resources/helpCenter/types/index.d.ts +3 -0
  279. package/api/resources/helpCenter/types/index.js +19 -0
  280. package/api/resources/index.d.ts +63 -0
  281. package/api/resources/index.js +92 -0
  282. package/api/resources/messages/client/Client.d.ts +145 -0
  283. package/api/resources/messages/client/Client.js +235 -0
  284. package/api/resources/messages/client/index.d.ts +1 -0
  285. package/api/resources/messages/client/index.js +2 -0
  286. package/api/resources/messages/index.d.ts +2 -0
  287. package/api/resources/messages/index.js +18 -0
  288. package/api/resources/messages/types/Message.d.ts +23 -0
  289. package/api/resources/messages/types/Message.js +5 -0
  290. package/api/resources/messages/types/MessageMessageType.d.ts +13 -0
  291. package/api/resources/messages/types/MessageMessageType.js +12 -0
  292. package/api/resources/messages/types/index.d.ts +2 -0
  293. package/api/resources/messages/types/index.js +18 -0
  294. package/api/resources/news/client/Client.d.ts +154 -0
  295. package/api/resources/news/client/Client.js +588 -0
  296. package/api/resources/news/client/index.d.ts +1 -0
  297. package/api/resources/news/client/index.js +2 -0
  298. package/api/resources/news/index.d.ts +2 -0
  299. package/api/resources/news/index.js +18 -0
  300. package/api/resources/news/types/NewsItem.d.ts +35 -0
  301. package/api/resources/news/types/NewsItem.js +5 -0
  302. package/api/resources/news/types/NewsItemState.d.ts +11 -0
  303. package/api/resources/news/types/NewsItemState.js +10 -0
  304. package/api/resources/news/types/Newsfeed.d.ts +18 -0
  305. package/api/resources/news/types/Newsfeed.js +5 -0
  306. package/api/resources/news/types/NewsfeedAssignment.d.ts +12 -0
  307. package/api/resources/news/types/NewsfeedAssignment.js +5 -0
  308. package/api/resources/news/types/index.d.ts +4 -0
  309. package/api/resources/news/types/index.js +20 -0
  310. package/api/resources/notes/client/Client.d.ts +89 -0
  311. package/api/resources/notes/client/Client.js +273 -0
  312. package/api/resources/notes/client/index.d.ts +1 -0
  313. package/api/resources/notes/client/index.js +17 -0
  314. package/api/resources/notes/client/requests/NotesCreateRequest.d.ts +33 -0
  315. package/api/resources/notes/client/requests/NotesCreateRequest.js +5 -0
  316. package/api/resources/notes/client/requests/index.d.ts +1 -0
  317. package/api/resources/notes/client/requests/index.js +2 -0
  318. package/api/resources/notes/index.d.ts +2 -0
  319. package/api/resources/notes/index.js +18 -0
  320. package/api/resources/notes/types/Note.d.ts +21 -0
  321. package/api/resources/notes/types/Note.js +5 -0
  322. package/api/resources/notes/types/NoteContact.d.ts +12 -0
  323. package/api/resources/notes/types/NoteContact.js +5 -0
  324. package/api/resources/notes/types/index.d.ts +2 -0
  325. package/api/resources/notes/types/index.js +18 -0
  326. package/api/resources/phoneCallRedirect/client/Client.d.ts +62 -0
  327. package/api/resources/phoneCallRedirect/client/Client.js +150 -0
  328. package/api/resources/phoneCallRedirect/client/index.d.ts +1 -0
  329. package/api/resources/phoneCallRedirect/client/index.js +2 -0
  330. package/api/resources/phoneCallRedirect/index.d.ts +1 -0
  331. package/api/resources/phoneCallRedirect/index.js +17 -0
  332. package/api/resources/segments/client/Client.d.ts +58 -0
  333. package/api/resources/segments/client/Client.js +198 -0
  334. package/api/resources/segments/client/index.d.ts +1 -0
  335. package/api/resources/segments/client/index.js +17 -0
  336. package/api/resources/segments/client/requests/SegmentsListRequest.d.ts +13 -0
  337. package/api/resources/segments/client/requests/SegmentsListRequest.js +5 -0
  338. package/api/resources/segments/client/requests/index.d.ts +1 -0
  339. package/api/resources/segments/client/requests/index.js +2 -0
  340. package/api/resources/segments/index.d.ts +2 -0
  341. package/api/resources/segments/index.js +18 -0
  342. package/api/resources/segments/types/Segment.d.ts +23 -0
  343. package/api/resources/segments/types/Segment.js +5 -0
  344. package/api/resources/segments/types/SegmentPersonType.d.ts +11 -0
  345. package/api/resources/segments/types/SegmentPersonType.js +10 -0
  346. package/api/resources/segments/types/index.d.ts +2 -0
  347. package/api/resources/segments/types/index.js +18 -0
  348. package/api/resources/subscriptionTypes/index.d.ts +1 -0
  349. package/api/resources/subscriptionTypes/index.js +17 -0
  350. package/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +22 -0
  351. package/api/resources/subscriptionTypes/types/SubscriptionType.js +5 -0
  352. package/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.d.ts +11 -0
  353. package/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.js +10 -0
  354. package/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.d.ts +8 -0
  355. package/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.js +10 -0
  356. package/api/resources/subscriptionTypes/types/SubscriptionTypeState.d.ts +12 -0
  357. package/api/resources/subscriptionTypes/types/SubscriptionTypeState.js +11 -0
  358. package/api/resources/subscriptionTypes/types/index.d.ts +4 -0
  359. package/api/resources/subscriptionTypes/types/index.js +20 -0
  360. package/api/resources/subscriptions/client/Client.d.ts +41 -0
  361. package/api/resources/subscriptions/client/Client.js +124 -0
  362. package/api/resources/subscriptions/client/index.d.ts +1 -0
  363. package/api/resources/subscriptions/client/index.js +2 -0
  364. package/api/resources/subscriptions/index.d.ts +1 -0
  365. package/api/resources/subscriptions/index.js +17 -0
  366. package/api/resources/tags/client/Client.d.ts +224 -0
  367. package/api/resources/tags/client/Client.js +776 -0
  368. package/api/resources/tags/client/index.d.ts +1 -0
  369. package/api/resources/tags/client/index.js +17 -0
  370. package/api/resources/tags/client/requests/TagsAttachRequest.d.ts +22 -0
  371. package/api/resources/tags/client/requests/TagsAttachRequest.js +5 -0
  372. package/api/resources/tags/client/requests/TagsDetachRequest.d.ts +23 -0
  373. package/api/resources/tags/client/requests/TagsDetachRequest.js +5 -0
  374. package/api/resources/tags/client/requests/TagsTagContactRequest.d.ts +23 -0
  375. package/api/resources/tags/client/requests/TagsTagContactRequest.js +5 -0
  376. package/api/resources/tags/client/requests/TagsTagConversationRequest.d.ts +22 -0
  377. package/api/resources/tags/client/requests/TagsTagConversationRequest.js +5 -0
  378. package/api/resources/tags/client/requests/TagsUntagConversationRequest.d.ts +23 -0
  379. package/api/resources/tags/client/requests/TagsUntagConversationRequest.js +5 -0
  380. package/api/resources/tags/client/requests/index.d.ts +5 -0
  381. package/api/resources/tags/client/requests/index.js +2 -0
  382. package/api/resources/tags/index.d.ts +2 -0
  383. package/api/resources/tags/index.js +18 -0
  384. package/api/resources/tags/types/Tag.d.ts +18 -0
  385. package/api/resources/tags/types/Tag.js +5 -0
  386. package/api/resources/tags/types/TagsCreateRequestBody.d.ts +5 -0
  387. package/api/resources/tags/types/TagsCreateRequestBody.js +5 -0
  388. package/api/resources/tags/types/index.d.ts +2 -0
  389. package/api/resources/tags/types/index.js +18 -0
  390. package/api/resources/teams/client/Client.d.ts +57 -0
  391. package/api/resources/teams/client/Client.js +191 -0
  392. package/api/resources/teams/client/index.d.ts +1 -0
  393. package/api/resources/teams/client/index.js +2 -0
  394. package/api/resources/teams/index.d.ts +2 -0
  395. package/api/resources/teams/index.js +18 -0
  396. package/api/resources/teams/types/Team.d.ts +18 -0
  397. package/api/resources/teams/types/Team.js +5 -0
  398. package/api/resources/teams/types/index.d.ts +1 -0
  399. package/api/resources/teams/types/index.js +17 -0
  400. package/api/resources/ticketTypeAttributes/client/Client.d.ts +67 -0
  401. package/api/resources/ticketTypeAttributes/client/Client.js +201 -0
  402. package/api/resources/ticketTypeAttributes/client/index.d.ts +1 -0
  403. package/api/resources/ticketTypeAttributes/client/index.js +17 -0
  404. package/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +35 -0
  405. package/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +5 -0
  406. package/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +31 -0
  407. package/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
  408. package/api/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
  409. package/api/resources/ticketTypeAttributes/client/requests/index.js +2 -0
  410. package/api/resources/ticketTypeAttributes/index.d.ts +2 -0
  411. package/api/resources/ticketTypeAttributes/index.js +18 -0
  412. package/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.d.ts +16 -0
  413. package/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.js +15 -0
  414. package/api/resources/ticketTypeAttributes/types/index.d.ts +1 -0
  415. package/api/resources/ticketTypeAttributes/types/index.js +17 -0
  416. package/api/resources/ticketTypes/client/Client.d.ts +97 -0
  417. package/api/resources/ticketTypes/client/Client.js +329 -0
  418. package/api/resources/ticketTypes/client/index.d.ts +1 -0
  419. package/api/resources/ticketTypes/client/index.js +2 -0
  420. package/api/resources/ticketTypes/index.d.ts +1 -0
  421. package/api/resources/ticketTypes/index.js +17 -0
  422. package/api/resources/tickets/client/Client.d.ts +251 -0
  423. package/api/resources/tickets/client/Client.js +546 -0
  424. package/api/resources/tickets/client/index.d.ts +1 -0
  425. package/api/resources/tickets/client/index.js +17 -0
  426. package/api/resources/tickets/client/requests/CreateTicketRequest.d.ts +28 -0
  427. package/api/resources/tickets/client/requests/CreateTicketRequest.js +5 -0
  428. package/api/resources/tickets/client/requests/UpdateTicketRequest.d.ts +59 -0
  429. package/api/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
  430. package/api/resources/tickets/client/requests/index.d.ts +2 -0
  431. package/api/resources/tickets/client/requests/index.js +2 -0
  432. package/api/resources/tickets/index.d.ts +2 -0
  433. package/api/resources/tickets/index.js +18 -0
  434. package/api/resources/tickets/types/CreateTicketRequestContactsItem.d.ts +5 -0
  435. package/api/resources/tickets/types/CreateTicketRequestContactsItem.js +5 -0
  436. package/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.d.ts +7 -0
  437. package/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.js +5 -0
  438. package/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.d.ts +7 -0
  439. package/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.js +5 -0
  440. package/api/resources/tickets/types/CreateTicketRequestContactsItemId.d.ts +7 -0
  441. package/api/resources/tickets/types/CreateTicketRequestContactsItemId.js +5 -0
  442. package/api/resources/tickets/types/Ticket.d.ts +42 -0
  443. package/api/resources/tickets/types/Ticket.js +5 -0
  444. package/api/resources/tickets/types/TicketCategory.d.ts +12 -0
  445. package/api/resources/tickets/types/TicketCategory.js +11 -0
  446. package/api/resources/tickets/types/TicketContacts.d.ts +13 -0
  447. package/api/resources/tickets/types/TicketContacts.js +5 -0
  448. package/api/resources/tickets/types/TicketPart.d.ts +34 -0
  449. package/api/resources/tickets/types/TicketPart.js +5 -0
  450. package/api/resources/tickets/types/TicketPartPreviousTicketState.d.ts +13 -0
  451. package/api/resources/tickets/types/TicketPartPreviousTicketState.js +12 -0
  452. package/api/resources/tickets/types/TicketPartTicketState.d.ts +13 -0
  453. package/api/resources/tickets/types/TicketPartTicketState.js +12 -0
  454. package/api/resources/tickets/types/TicketTicketState.d.ts +13 -0
  455. package/api/resources/tickets/types/TicketTicketState.js +12 -0
  456. package/api/resources/tickets/types/TicketType.d.ts +30 -0
  457. package/api/resources/tickets/types/TicketType.js +5 -0
  458. package/api/resources/tickets/types/TicketTypeCategory.d.ts +12 -0
  459. package/api/resources/tickets/types/TicketTypeCategory.js +11 -0
  460. package/api/resources/tickets/types/TicketsReplyRequestBody.d.ts +5 -0
  461. package/api/resources/tickets/types/TicketsReplyRequestBody.js +5 -0
  462. package/api/resources/tickets/types/UpdateTicketRequestAssignment.d.ts +9 -0
  463. package/api/resources/tickets/types/UpdateTicketRequestAssignment.js +5 -0
  464. package/api/resources/tickets/types/UpdateTicketRequestState.d.ts +12 -0
  465. package/api/resources/tickets/types/UpdateTicketRequestState.js +11 -0
  466. package/api/resources/tickets/types/index.d.ts +16 -0
  467. package/api/resources/tickets/types/index.js +32 -0
  468. package/api/resources/visitors/client/Client.d.ts +97 -0
  469. package/api/resources/visitors/client/Client.js +288 -0
  470. package/api/resources/visitors/client/index.d.ts +1 -0
  471. package/api/resources/visitors/client/index.js +17 -0
  472. package/api/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +25 -0
  473. package/api/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
  474. package/api/resources/visitors/client/requests/VisitorsFindRequest.d.ts +15 -0
  475. package/api/resources/visitors/client/requests/VisitorsFindRequest.js +5 -0
  476. package/api/resources/visitors/client/requests/index.d.ts +2 -0
  477. package/api/resources/visitors/client/requests/index.js +2 -0
  478. package/api/resources/visitors/index.d.ts +2 -0
  479. package/api/resources/visitors/index.js +18 -0
  480. package/api/resources/visitors/types/ConvertVisitorRequestUser.d.ts +8 -0
  481. package/api/resources/visitors/types/ConvertVisitorRequestUser.js +5 -0
  482. package/api/resources/visitors/types/ConvertVisitorRequestVisitor.d.ts +8 -0
  483. package/api/resources/visitors/types/ConvertVisitorRequestVisitor.js +5 -0
  484. package/api/resources/visitors/types/UserWithId.d.ts +9 -0
  485. package/api/resources/visitors/types/UserWithId.js +5 -0
  486. package/api/resources/visitors/types/UserWithUserId.d.ts +9 -0
  487. package/api/resources/visitors/types/UserWithUserId.js +5 -0
  488. package/api/resources/visitors/types/VisitorWithEmail.d.ts +7 -0
  489. package/api/resources/visitors/types/VisitorWithEmail.js +5 -0
  490. package/api/resources/visitors/types/VisitorWithId.d.ts +7 -0
  491. package/api/resources/visitors/types/VisitorWithId.js +5 -0
  492. package/api/resources/visitors/types/VisitorWithUserId.d.ts +7 -0
  493. package/api/resources/visitors/types/VisitorWithUserId.js +5 -0
  494. package/api/resources/visitors/types/index.d.ts +7 -0
  495. package/api/resources/visitors/types/index.js +23 -0
  496. package/api/types/ActivityLog.d.ts +19 -0
  497. package/api/types/ActivityLog.js +5 -0
  498. package/api/types/ActivityLogActivityType.d.ts +73 -0
  499. package/api/types/ActivityLogActivityType.js +75 -0
  500. package/api/types/ActivityLogList.d.ts +14 -0
  501. package/api/types/ActivityLogList.js +5 -0
  502. package/api/types/ActivityLogMetadata.d.ts +26 -0
  503. package/api/types/ActivityLogMetadata.js +5 -0
  504. package/api/types/ActivityLogPerformedBy.d.ts +16 -0
  505. package/api/types/ActivityLogPerformedBy.js +5 -0
  506. package/api/types/AddressableList.d.ts +14 -0
  507. package/api/types/AddressableList.js +5 -0
  508. package/api/types/AdminList.d.ts +13 -0
  509. package/api/types/AdminList.js +5 -0
  510. package/api/types/AdminPriorityLevel.d.ts +12 -0
  511. package/api/types/AdminPriorityLevel.js +5 -0
  512. package/api/types/AdminReplyConversationRequest.d.ts +21 -0
  513. package/api/types/AdminReplyConversationRequest.js +5 -0
  514. package/api/types/AdminReplyConversationRequestMessageType.d.ts +8 -0
  515. package/api/types/AdminReplyConversationRequestMessageType.js +10 -0
  516. package/api/types/AdminReplyTicketRequest.d.ts +21 -0
  517. package/api/types/AdminReplyTicketRequest.js +5 -0
  518. package/api/types/AdminReplyTicketRequestMessageType.d.ts +9 -0
  519. package/api/types/AdminReplyTicketRequestMessageType.js +11 -0
  520. package/api/types/AdminReplyTicketRequestReplyOptionsItem.d.ts +9 -0
  521. package/api/types/AdminReplyTicketRequestReplyOptionsItem.js +5 -0
  522. package/api/types/AdminWithApp.d.ts +33 -0
  523. package/api/types/AdminWithApp.js +5 -0
  524. package/api/types/AdminWithAppAvatar.d.ts +12 -0
  525. package/api/types/AdminWithAppAvatar.js +5 -0
  526. package/api/types/App.d.ts +22 -0
  527. package/api/types/App.js +5 -0
  528. package/api/types/ArticleContent.d.ts +27 -0
  529. package/api/types/ArticleContent.js +5 -0
  530. package/api/types/ArticleContentState.d.ts +11 -0
  531. package/api/types/ArticleContentState.js +10 -0
  532. package/api/types/ArticleList.d.ts +16 -0
  533. package/api/types/ArticleList.js +5 -0
  534. package/api/types/ArticleStatistics.d.ts +22 -0
  535. package/api/types/ArticleStatistics.js +5 -0
  536. package/api/types/ArticleTranslatedContent.d.ts +85 -0
  537. package/api/types/ArticleTranslatedContent.js +5 -0
  538. package/api/types/AssignConversationRequest.d.ts +16 -0
  539. package/api/types/AssignConversationRequest.js +5 -0
  540. package/api/types/AssignConversationRequestType.d.ts +8 -0
  541. package/api/types/AssignConversationRequestType.js +10 -0
  542. package/api/types/CloseConversationRequest.d.ts +13 -0
  543. package/api/types/CloseConversationRequest.js +5 -0
  544. package/api/types/CollectionList.d.ts +16 -0
  545. package/api/types/CollectionList.js +5 -0
  546. package/api/types/CompanyAttachedContacts.d.ts +16 -0
  547. package/api/types/CompanyAttachedContacts.js +5 -0
  548. package/api/types/CompanyAttachedSegments.d.ts +13 -0
  549. package/api/types/CompanyAttachedSegments.js +5 -0
  550. package/api/types/CompanyList.d.ts +16 -0
  551. package/api/types/CompanyList.js +5 -0
  552. package/api/types/CompanyScroll.d.ts +17 -0
  553. package/api/types/CompanyScroll.js +5 -0
  554. package/api/types/ContactArchived.d.ts +16 -0
  555. package/api/types/ContactArchived.js +5 -0
  556. package/api/types/ContactAttachedCompanies.d.ts +16 -0
  557. package/api/types/ContactAttachedCompanies.js +5 -0
  558. package/api/types/ContactCompanies.d.ts +14 -0
  559. package/api/types/ContactCompanies.js +5 -0
  560. package/api/types/ContactDeleted.d.ts +16 -0
  561. package/api/types/ContactDeleted.js +5 -0
  562. package/api/types/ContactList.d.ts +16 -0
  563. package/api/types/ContactList.js +5 -0
  564. package/api/types/ContactLocation.d.ts +16 -0
  565. package/api/types/ContactLocation.js +5 -0
  566. package/api/types/ContactNotes.d.ts +17 -0
  567. package/api/types/ContactNotes.js +5 -0
  568. package/api/types/ContactReference.d.ts +14 -0
  569. package/api/types/ContactReference.js +5 -0
  570. package/api/types/ContactReplyBaseRequest.d.ts +13 -0
  571. package/api/types/ContactReplyBaseRequest.js +5 -0
  572. package/api/types/ContactReplyConversationRequest.d.ts +5 -0
  573. package/api/types/ContactReplyConversationRequest.js +5 -0
  574. package/api/types/ContactReplyEmailRequest.d.ts +13 -0
  575. package/api/types/ContactReplyEmailRequest.js +5 -0
  576. package/api/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
  577. package/api/types/ContactReplyIntercomUserIdRequest.js +5 -0
  578. package/api/types/ContactReplyTicketEmailRequest.d.ts +11 -0
  579. package/api/types/ContactReplyTicketEmailRequest.js +5 -0
  580. package/api/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
  581. package/api/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
  582. package/api/types/ContactReplyTicketRequest.d.ts +5 -0
  583. package/api/types/ContactReplyTicketRequest.js +5 -0
  584. package/api/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
  585. package/api/types/ContactReplyTicketUserIdRequest.js +5 -0
  586. package/api/types/ContactReplyUserIdRequest.d.ts +13 -0
  587. package/api/types/ContactReplyUserIdRequest.js +5 -0
  588. package/api/types/ContactSegments.d.ts +13 -0
  589. package/api/types/ContactSegments.js +5 -0
  590. package/api/types/ContactSocialProfiles.d.ts +11 -0
  591. package/api/types/ContactSocialProfiles.js +5 -0
  592. package/api/types/ContactSubscriptionTypes.d.ts +17 -0
  593. package/api/types/ContactSubscriptionTypes.js +5 -0
  594. package/api/types/ContactTags.d.ts +17 -0
  595. package/api/types/ContactTags.js +5 -0
  596. package/api/types/ContactUnarchived.d.ts +16 -0
  597. package/api/types/ContactUnarchived.js +5 -0
  598. package/api/types/ContentSourcesList.d.ts +11 -0
  599. package/api/types/ContentSourcesList.js +5 -0
  600. package/api/types/ConversationAttachmentFiles.d.ts +14 -0
  601. package/api/types/ConversationAttachmentFiles.js +5 -0
  602. package/api/types/ConversationContacts.d.ts +13 -0
  603. package/api/types/ConversationContacts.js +5 -0
  604. package/api/types/ConversationFirstContactReply.d.ts +14 -0
  605. package/api/types/ConversationFirstContactReply.js +5 -0
  606. package/api/types/ConversationList.d.ts +16 -0
  607. package/api/types/ConversationList.js +5 -0
  608. package/api/types/ConversationPart.d.ts +32 -0
  609. package/api/types/ConversationPart.js +5 -0
  610. package/api/types/ConversationPartAuthor.d.ts +16 -0
  611. package/api/types/ConversationPartAuthor.js +5 -0
  612. package/api/types/ConversationParts.d.ts +15 -0
  613. package/api/types/ConversationParts.js +5 -0
  614. package/api/types/ConversationRating.d.ts +17 -0
  615. package/api/types/ConversationRating.js +5 -0
  616. package/api/types/ConversationSource.d.ts +26 -0
  617. package/api/types/ConversationSource.js +5 -0
  618. package/api/types/ConversationStatistics.d.ts +46 -0
  619. package/api/types/ConversationStatistics.js +5 -0
  620. package/api/types/ConversationTeammates.d.ts +13 -0
  621. package/api/types/ConversationTeammates.js +5 -0
  622. package/api/types/CreateArticleRequest.d.ts +24 -0
  623. package/api/types/CreateArticleRequest.js +5 -0
  624. package/api/types/CreateArticleRequestState.d.ts +11 -0
  625. package/api/types/CreateArticleRequestState.js +10 -0
  626. package/api/types/CreateContactRequest.d.ts +8 -0
  627. package/api/types/CreateContactRequest.js +5 -0
  628. package/api/types/CreateContactRequestWithEmail.d.ts +23 -0
  629. package/api/types/CreateContactRequestWithEmail.js +5 -0
  630. package/api/types/CreateContactRequestWithExternalId.d.ts +23 -0
  631. package/api/types/CreateContactRequestWithExternalId.js +5 -0
  632. package/api/types/CreateContactRequestWithRole.d.ts +23 -0
  633. package/api/types/CreateContactRequestWithRole.js +5 -0
  634. package/api/types/CreateDataEventRequest.d.ts +8 -0
  635. package/api/types/CreateDataEventRequest.js +5 -0
  636. package/api/types/CreateDataEventRequestWithEmail.d.ts +13 -0
  637. package/api/types/CreateDataEventRequestWithEmail.js +5 -0
  638. package/api/types/CreateDataEventRequestWithId.d.ts +13 -0
  639. package/api/types/CreateDataEventRequestWithId.js +5 -0
  640. package/api/types/CreateDataEventRequestWithUserId.d.ts +13 -0
  641. package/api/types/CreateDataEventRequestWithUserId.js +5 -0
  642. package/api/types/CreateMessageRequest.d.ts +16 -0
  643. package/api/types/CreateMessageRequest.js +5 -0
  644. package/api/types/CreateMessageRequestFrom.d.ts +12 -0
  645. package/api/types/CreateMessageRequestFrom.js +5 -0
  646. package/api/types/CreateMessageRequestTo.d.ts +13 -0
  647. package/api/types/CreateMessageRequestTo.js +5 -0
  648. package/api/types/CreateMessageRequestType.d.ts +11 -0
  649. package/api/types/CreateMessageRequestType.js +10 -0
  650. package/api/types/CreateMessageRequestWithEmail.d.ts +20 -0
  651. package/api/types/CreateMessageRequestWithEmail.js +5 -0
  652. package/api/types/CreateMessageRequestWithInapp.d.ts +20 -0
  653. package/api/types/CreateMessageRequestWithInapp.js +5 -0
  654. package/api/types/CreateOrUpdateCompanyRequest.d.ts +26 -0
  655. package/api/types/CreateOrUpdateCompanyRequest.js +5 -0
  656. package/api/types/CreateOrUpdateTagRequest.d.ts +12 -0
  657. package/api/types/CreateOrUpdateTagRequest.js +5 -0
  658. package/api/types/CreatePhoneSwitchRequest.d.ts +12 -0
  659. package/api/types/CreatePhoneSwitchRequest.js +5 -0
  660. package/api/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
  661. package/api/types/CreateTicketReplyWithCommentRequest.js +5 -0
  662. package/api/types/CreateTicketTypeRequest.d.ts +20 -0
  663. package/api/types/CreateTicketTypeRequest.js +5 -0
  664. package/api/types/CreateTicketTypeRequestCategory.d.ts +12 -0
  665. package/api/types/CreateTicketTypeRequestCategory.js +11 -0
  666. package/api/types/CursorPages.d.ts +19 -0
  667. package/api/types/CursorPages.js +5 -0
  668. package/api/types/CustomAttributes.d.ts +8 -0
  669. package/api/types/CustomAttributes.js +5 -0
  670. package/api/types/CustomAttributesValue.d.ts +5 -0
  671. package/api/types/CustomAttributesValue.js +5 -0
  672. package/api/types/CustomerRequest.d.ts +5 -0
  673. package/api/types/CustomerRequest.js +5 -0
  674. package/api/types/CustomerRequestEmail.d.ts +7 -0
  675. package/api/types/CustomerRequestEmail.js +5 -0
  676. package/api/types/CustomerRequestIntercomUserId.d.ts +7 -0
  677. package/api/types/CustomerRequestIntercomUserId.js +5 -0
  678. package/api/types/CustomerRequestUserId.d.ts +7 -0
  679. package/api/types/CustomerRequestUserId.js +5 -0
  680. package/api/types/DataAttributeList.d.ts +13 -0
  681. package/api/types/DataAttributeList.js +5 -0
  682. package/api/types/DataEventList.d.ts +15 -0
  683. package/api/types/DataEventList.js +5 -0
  684. package/api/types/DataEventListPages.d.ts +10 -0
  685. package/api/types/DataEventListPages.js +5 -0
  686. package/api/types/DataEventSummary.d.ts +19 -0
  687. package/api/types/DataEventSummary.js +5 -0
  688. package/api/types/DataEventSummaryItem.d.ts +18 -0
  689. package/api/types/DataEventSummaryItem.js +5 -0
  690. package/api/types/DataExportCsv.d.ts +60 -0
  691. package/api/types/DataExportCsv.js +5 -0
  692. package/api/types/DeletedArticleObject.d.ts +14 -0
  693. package/api/types/DeletedArticleObject.js +5 -0
  694. package/api/types/DeletedCollectionObject.d.ts +14 -0
  695. package/api/types/DeletedCollectionObject.js +5 -0
  696. package/api/types/DeletedCompanyObject.d.ts +14 -0
  697. package/api/types/DeletedCompanyObject.js +5 -0
  698. package/api/types/DeletedObject.d.ts +14 -0
  699. package/api/types/DeletedObject.js +5 -0
  700. package/api/types/ErrorErrorsItem.d.ts +11 -0
  701. package/api/types/ErrorErrorsItem.js +5 -0
  702. package/api/types/Error_.d.ts +15 -0
  703. package/api/types/Error_.js +5 -0
  704. package/api/types/FileAttribute.d.ts +21 -0
  705. package/api/types/FileAttribute.js +5 -0
  706. package/api/types/GroupContent.d.ts +14 -0
  707. package/api/types/GroupContent.js +5 -0
  708. package/api/types/GroupTranslatedContent.d.ts +85 -0
  709. package/api/types/GroupTranslatedContent.js +5 -0
  710. package/api/types/LinkedObject.d.ts +15 -0
  711. package/api/types/LinkedObject.js +5 -0
  712. package/api/types/LinkedObjectList.d.ts +17 -0
  713. package/api/types/LinkedObjectList.js +5 -0
  714. package/api/types/LinkedObjectType.d.ts +11 -0
  715. package/api/types/LinkedObjectType.js +10 -0
  716. package/api/types/MultipleFilterSearchRequest.d.ts +12 -0
  717. package/api/types/MultipleFilterSearchRequest.js +5 -0
  718. package/api/types/MultipleFilterSearchRequestOperator.d.ts +11 -0
  719. package/api/types/MultipleFilterSearchRequestOperator.js +10 -0
  720. package/api/types/MultipleFilterSearchRequestValue.d.ts +11 -0
  721. package/api/types/MultipleFilterSearchRequestValue.js +5 -0
  722. package/api/types/NewsItemRequest.d.ts +25 -0
  723. package/api/types/NewsItemRequest.js +5 -0
  724. package/api/types/NewsItemRequestState.d.ts +11 -0
  725. package/api/types/NewsItemRequestState.js +10 -0
  726. package/api/types/NoteList.d.ts +16 -0
  727. package/api/types/NoteList.js +5 -0
  728. package/api/types/OpenConversationRequest.d.ts +10 -0
  729. package/api/types/OpenConversationRequest.js +5 -0
  730. package/api/types/PagesLink.d.ts +16 -0
  731. package/api/types/PagesLink.js +5 -0
  732. package/api/types/PaginatedResponse.d.ts +16 -0
  733. package/api/types/PaginatedResponse.js +5 -0
  734. package/api/types/PaginatedResponseDataItem.d.ts +13 -0
  735. package/api/types/PaginatedResponseDataItem.js +5 -0
  736. package/api/types/PaginatedResponseType.d.ts +11 -0
  737. package/api/types/PaginatedResponseType.js +10 -0
  738. package/api/types/PartAttachment.d.ts +22 -0
  739. package/api/types/PartAttachment.js +5 -0
  740. package/api/types/PhoneSwitch.d.ts +12 -0
  741. package/api/types/PhoneSwitch.js +5 -0
  742. package/api/types/RedactConversationRequest.d.ts +19 -0
  743. package/api/types/RedactConversationRequest.js +5 -0
  744. package/api/types/RedactConversationRequestConversationPart.d.ts +12 -0
  745. package/api/types/RedactConversationRequestConversationPart.js +5 -0
  746. package/api/types/RedactConversationRequestSource.d.ts +12 -0
  747. package/api/types/RedactConversationRequestSource.js +5 -0
  748. package/api/types/Reference.d.ts +12 -0
  749. package/api/types/Reference.js +5 -0
  750. package/api/types/ReplyConversationRequest.d.ts +5 -0
  751. package/api/types/ReplyConversationRequest.js +5 -0
  752. package/api/types/SearchRequest.d.ts +11 -0
  753. package/api/types/SearchRequest.js +5 -0
  754. package/api/types/SearchRequestQuery.d.ts +5 -0
  755. package/api/types/SearchRequestQuery.js +5 -0
  756. package/api/types/SegmentList.d.ts +15 -0
  757. package/api/types/SegmentList.js +5 -0
  758. package/api/types/SingleFilterSearchRequest.d.ts +15 -0
  759. package/api/types/SingleFilterSearchRequest.js +5 -0
  760. package/api/types/SingleFilterSearchRequestOperator.d.ts +19 -0
  761. package/api/types/SingleFilterSearchRequestOperator.js +18 -0
  762. package/api/types/SlaApplied.d.ts +16 -0
  763. package/api/types/SlaApplied.js +5 -0
  764. package/api/types/SlaAppliedSlaStatus.d.ts +13 -0
  765. package/api/types/SlaAppliedSlaStatus.js +12 -0
  766. package/api/types/SnoozeConversationRequest.d.ts +12 -0
  767. package/api/types/SnoozeConversationRequest.js +5 -0
  768. package/api/types/SocialProfile.d.ts +14 -0
  769. package/api/types/SocialProfile.js +5 -0
  770. package/api/types/StartingAfterPaging.d.ts +9 -0
  771. package/api/types/StartingAfterPaging.js +5 -0
  772. package/api/types/SubscriptionTypeList.d.ts +13 -0
  773. package/api/types/SubscriptionTypeList.js +5 -0
  774. package/api/types/TagCompanyRequest.d.ts +13 -0
  775. package/api/types/TagCompanyRequest.js +5 -0
  776. package/api/types/TagCompanyRequestCompaniesItem.d.ts +9 -0
  777. package/api/types/TagCompanyRequestCompaniesItem.js +5 -0
  778. package/api/types/TagList.d.ts +13 -0
  779. package/api/types/TagList.js +5 -0
  780. package/api/types/TagMultipleUsersRequest.d.ts +12 -0
  781. package/api/types/TagMultipleUsersRequest.js +5 -0
  782. package/api/types/TagMultipleUsersRequestUsersItem.d.ts +7 -0
  783. package/api/types/TagMultipleUsersRequestUsersItem.js +5 -0
  784. package/api/types/Tags.d.ts +13 -0
  785. package/api/types/Tags.js +5 -0
  786. package/api/types/TeamList.d.ts +13 -0
  787. package/api/types/TeamList.js +5 -0
  788. package/api/types/TeamPriorityLevel.d.ts +12 -0
  789. package/api/types/TeamPriorityLevel.js +5 -0
  790. package/api/types/TicketCustomAttributes.d.ts +8 -0
  791. package/api/types/TicketCustomAttributes.js +5 -0
  792. package/api/types/TicketCustomAttributesValue.d.ts +5 -0
  793. package/api/types/TicketCustomAttributesValue.js +5 -0
  794. package/api/types/TicketList.d.ts +16 -0
  795. package/api/types/TicketList.js +5 -0
  796. package/api/types/TicketPartAuthor.d.ts +17 -0
  797. package/api/types/TicketPartAuthor.js +5 -0
  798. package/api/types/TicketPartAuthorType.d.ts +13 -0
  799. package/api/types/TicketPartAuthorType.js +12 -0
  800. package/api/types/TicketParts.d.ts +15 -0
  801. package/api/types/TicketParts.js +5 -0
  802. package/api/types/TicketReply.d.ts +26 -0
  803. package/api/types/TicketReply.js +5 -0
  804. package/api/types/TicketReplyPartType.d.ts +12 -0
  805. package/api/types/TicketReplyPartType.js +11 -0
  806. package/api/types/TicketRequestCustomAttributes.d.ts +8 -0
  807. package/api/types/TicketRequestCustomAttributes.js +5 -0
  808. package/api/types/TicketRequestCustomAttributesValue.d.ts +4 -0
  809. package/api/types/TicketRequestCustomAttributesValue.js +5 -0
  810. package/api/types/TicketTypeAttribute.d.ts +42 -0
  811. package/api/types/TicketTypeAttribute.js +5 -0
  812. package/api/types/TicketTypeAttributeList.d.ts +13 -0
  813. package/api/types/TicketTypeAttributeList.js +5 -0
  814. package/api/types/TicketTypeList.d.ts +13 -0
  815. package/api/types/TicketTypeList.js +5 -0
  816. package/api/types/Translation.d.ts +14 -0
  817. package/api/types/Translation.js +5 -0
  818. package/api/types/UntagCompanyRequest.d.ts +13 -0
  819. package/api/types/UntagCompanyRequest.js +5 -0
  820. package/api/types/UntagCompanyRequestCompaniesItem.d.ts +11 -0
  821. package/api/types/UntagCompanyRequestCompaniesItem.js +5 -0
  822. package/api/types/UpdateArticleRequest.d.ts +24 -0
  823. package/api/types/UpdateArticleRequest.js +5 -0
  824. package/api/types/UpdateArticleRequestState.d.ts +11 -0
  825. package/api/types/UpdateArticleRequestState.js +10 -0
  826. package/api/types/UpdateTicketTypeRequest.d.ts +22 -0
  827. package/api/types/UpdateTicketTypeRequest.js +5 -0
  828. package/api/types/UpdateTicketTypeRequestCategory.d.ts +12 -0
  829. package/api/types/UpdateTicketTypeRequestCategory.js +11 -0
  830. package/api/types/UpdateVisitorRequest.d.ts +8 -0
  831. package/api/types/UpdateVisitorRequest.js +5 -0
  832. package/api/types/UpdateVisitorRequestWithId.d.ts +9 -0
  833. package/api/types/UpdateVisitorRequestWithId.js +5 -0
  834. package/api/types/UpdateVisitorRequestWithUserId.d.ts +9 -0
  835. package/api/types/UpdateVisitorRequestWithUserId.js +5 -0
  836. package/api/types/Visitor.d.ts +69 -0
  837. package/api/types/Visitor.js +5 -0
  838. package/api/types/VisitorAvatar.d.ts +9 -0
  839. package/api/types/VisitorAvatar.js +5 -0
  840. package/api/types/VisitorCompanies.d.ts +9 -0
  841. package/api/types/VisitorCompanies.js +5 -0
  842. package/api/types/VisitorDeletedObject.d.ts +14 -0
  843. package/api/types/VisitorDeletedObject.js +5 -0
  844. package/api/types/VisitorLocationData.d.ts +21 -0
  845. package/api/types/VisitorLocationData.js +5 -0
  846. package/api/types/VisitorSegments.d.ts +8 -0
  847. package/api/types/VisitorSegments.js +5 -0
  848. package/api/types/VisitorSocialProfiles.d.ts +8 -0
  849. package/api/types/VisitorSocialProfiles.js +5 -0
  850. package/api/types/VisitorTags.d.ts +9 -0
  851. package/api/types/VisitorTags.js +5 -0
  852. package/api/types/VisitorTagsTagsItem.d.ts +11 -0
  853. package/api/types/VisitorTagsTagsItem.js +5 -0
  854. package/api/types/index.d.ts +179 -0
  855. package/api/types/index.js +195 -0
  856. package/api/version.d.ts +5 -0
  857. package/api/version.js +5 -0
  858. package/core/auth/BasicAuth.d.ts +8 -0
  859. package/core/auth/BasicAuth.js +26 -0
  860. package/core/auth/BearerToken.d.ts +5 -0
  861. package/core/auth/BearerToken.js +15 -0
  862. package/core/auth/index.d.ts +2 -0
  863. package/core/auth/index.js +7 -0
  864. package/core/fetcher/APIResponse.d.ts +10 -0
  865. package/core/fetcher/APIResponse.js +2 -0
  866. package/core/fetcher/Fetcher.d.ts +38 -0
  867. package/core/fetcher/Fetcher.js +99 -0
  868. package/core/fetcher/Supplier.d.ts +4 -0
  869. package/core/fetcher/Supplier.js +22 -0
  870. package/core/fetcher/createRequestUrl.d.ts +1 -0
  871. package/core/fetcher/createRequestUrl.js +13 -0
  872. package/core/fetcher/getFetchFn.d.ts +4 -0
  873. package/core/fetcher/getFetchFn.js +55 -0
  874. package/core/fetcher/getHeader.d.ts +1 -0
  875. package/core/fetcher/getHeader.js +12 -0
  876. package/core/fetcher/getRequestBody.d.ts +7 -0
  877. package/core/fetcher/getRequestBody.js +23 -0
  878. package/core/fetcher/getResponseBody.d.ts +1 -0
  879. package/core/fetcher/getResponseBody.js +48 -0
  880. package/core/fetcher/index.d.ts +5 -0
  881. package/core/fetcher/index.js +9 -0
  882. package/core/fetcher/makeRequest.d.ts +1 -0
  883. package/core/fetcher/makeRequest.js +40 -0
  884. package/core/fetcher/requestWithRetries.d.ts +1 -0
  885. package/core/fetcher/requestWithRetries.js +32 -0
  886. package/core/fetcher/signals.d.ts +12 -0
  887. package/core/fetcher/signals.js +37 -0
  888. package/core/index.d.ts +5 -0
  889. package/core/index.js +21 -0
  890. package/core/pagination/Page.d.ts +29 -0
  891. package/core/pagination/Page.js +94 -0
  892. package/core/pagination/Pageable.d.ts +12 -0
  893. package/core/pagination/Pageable.js +10 -0
  894. package/core/pagination/index.d.ts +2 -0
  895. package/core/pagination/index.js +7 -0
  896. package/core/runtime/index.d.ts +1 -0
  897. package/core/runtime/index.js +5 -0
  898. package/core/runtime/runtime.d.ts +9 -0
  899. package/core/runtime/runtime.js +93 -0
  900. package/core/utils/index.d.ts +1 -0
  901. package/core/utils/index.js +5 -0
  902. package/core/utils/setObjectProperty.d.ts +11 -0
  903. package/core/utils/setObjectProperty.js +43 -0
  904. package/dist/Client.d.ts +91 -0
  905. package/dist/Client.js +117 -0
  906. package/dist/api/errors/BadRequestError.d.ts +7 -0
  907. package/dist/api/errors/BadRequestError.js +41 -0
  908. package/dist/api/errors/ForbiddenError.d.ts +8 -0
  909. package/dist/api/errors/ForbiddenError.js +41 -0
  910. package/dist/api/errors/NotFoundError.d.ts +7 -0
  911. package/dist/api/errors/NotFoundError.js +41 -0
  912. package/dist/api/errors/UnauthorizedError.d.ts +8 -0
  913. package/dist/api/errors/UnauthorizedError.js +41 -0
  914. package/dist/api/errors/UnprocessableEntityError.d.ts +7 -0
  915. package/dist/api/errors/UnprocessableEntityError.js +41 -0
  916. package/dist/api/errors/index.d.ts +5 -0
  917. package/dist/api/errors/index.js +21 -0
  918. package/dist/api/index.d.ts +4 -0
  919. package/dist/api/index.js +19 -0
  920. package/dist/api/resources/admins/client/Client.d.ts +101 -0
  921. package/dist/api/resources/admins/client/Client.js +387 -0
  922. package/dist/api/resources/admins/client/index.d.ts +1 -0
  923. package/dist/api/resources/admins/client/index.js +17 -0
  924. package/dist/api/resources/admins/client/requests/AdminsAwayRequest.d.ts +28 -0
  925. package/dist/api/resources/admins/client/requests/AdminsAwayRequest.js +5 -0
  926. package/dist/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.d.ts +19 -0
  927. package/dist/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.js +5 -0
  928. package/dist/api/resources/admins/client/requests/index.d.ts +2 -0
  929. package/dist/api/resources/admins/client/requests/index.js +2 -0
  930. package/dist/api/resources/admins/index.d.ts +2 -0
  931. package/dist/api/resources/admins/index.js +18 -0
  932. package/dist/api/resources/admins/types/Admin.d.ts +30 -0
  933. package/dist/api/resources/admins/types/Admin.js +5 -0
  934. package/dist/api/resources/admins/types/index.d.ts +1 -0
  935. package/dist/api/resources/admins/types/index.js +17 -0
  936. package/dist/api/resources/aiAgent/index.d.ts +1 -0
  937. package/dist/api/resources/aiAgent/index.js +17 -0
  938. package/dist/api/resources/aiAgent/types/AiAgent.d.ts +22 -0
  939. package/dist/api/resources/aiAgent/types/AiAgent.js +5 -0
  940. package/dist/api/resources/aiAgent/types/AiAgentSourceType.d.ts +14 -0
  941. package/dist/api/resources/aiAgent/types/AiAgentSourceType.js +13 -0
  942. package/dist/api/resources/aiAgent/types/index.d.ts +2 -0
  943. package/dist/api/resources/aiAgent/types/index.js +18 -0
  944. package/dist/api/resources/aiContentSource/index.d.ts +1 -0
  945. package/dist/api/resources/aiContentSource/index.js +17 -0
  946. package/dist/api/resources/aiContentSource/types/ContentSource.d.ts +17 -0
  947. package/dist/api/resources/aiContentSource/types/ContentSource.js +5 -0
  948. package/dist/api/resources/aiContentSource/types/ContentSourceContentType.d.ts +14 -0
  949. package/dist/api/resources/aiContentSource/types/ContentSourceContentType.js +13 -0
  950. package/dist/api/resources/aiContentSource/types/index.d.ts +2 -0
  951. package/dist/api/resources/aiContentSource/types/index.js +18 -0
  952. package/dist/api/resources/articles/client/Client.d.ts +142 -0
  953. package/dist/api/resources/articles/client/Client.js +495 -0
  954. package/dist/api/resources/articles/client/index.d.ts +1 -0
  955. package/dist/api/resources/articles/client/index.js +17 -0
  956. package/dist/api/resources/articles/client/requests/ArticlesSearchRequest.d.ts +25 -0
  957. package/dist/api/resources/articles/client/requests/ArticlesSearchRequest.js +5 -0
  958. package/dist/api/resources/articles/client/requests/index.d.ts +1 -0
  959. package/dist/api/resources/articles/client/requests/index.js +2 -0
  960. package/dist/api/resources/articles/index.d.ts +2 -0
  961. package/dist/api/resources/articles/index.js +18 -0
  962. package/dist/api/resources/articles/types/Article.d.ts +10 -0
  963. package/dist/api/resources/articles/types/Article.js +5 -0
  964. package/dist/api/resources/articles/types/ArticleListItem.d.ts +40 -0
  965. package/dist/api/resources/articles/types/ArticleListItem.js +5 -0
  966. package/dist/api/resources/articles/types/ArticleListItemState.d.ts +11 -0
  967. package/dist/api/resources/articles/types/ArticleListItemState.js +10 -0
  968. package/dist/api/resources/articles/types/ArticleSearchHighlights.d.ts +15 -0
  969. package/dist/api/resources/articles/types/ArticleSearchHighlights.js +5 -0
  970. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.d.ts +13 -0
  971. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.js +5 -0
  972. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.d.ts +11 -0
  973. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.js +10 -0
  974. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.d.ts +13 -0
  975. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.js +5 -0
  976. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.d.ts +11 -0
  977. package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.js +10 -0
  978. package/dist/api/resources/articles/types/ArticleSearchResponse.d.ts +16 -0
  979. package/dist/api/resources/articles/types/ArticleSearchResponse.js +5 -0
  980. package/dist/api/resources/articles/types/ArticleSearchResponseData.d.ts +13 -0
  981. package/dist/api/resources/articles/types/ArticleSearchResponseData.js +5 -0
  982. package/dist/api/resources/articles/types/index.d.ts +10 -0
  983. package/dist/api/resources/articles/types/index.js +26 -0
  984. package/dist/api/resources/companies/client/Client.d.ts +237 -0
  985. package/dist/api/resources/companies/client/Client.js +893 -0
  986. package/dist/api/resources/companies/client/index.d.ts +1 -0
  987. package/dist/api/resources/companies/client/index.js +17 -0
  988. package/dist/api/resources/companies/client/requests/CompaniesAttachContactRequest.d.ts +23 -0
  989. package/dist/api/resources/companies/client/requests/CompaniesAttachContactRequest.js +5 -0
  990. package/dist/api/resources/companies/client/requests/CompaniesListRequest.d.ts +21 -0
  991. package/dist/api/resources/companies/client/requests/CompaniesListRequest.js +5 -0
  992. package/dist/api/resources/companies/client/requests/CompaniesRetrieveRequest.d.ts +33 -0
  993. package/dist/api/resources/companies/client/requests/CompaniesRetrieveRequest.js +5 -0
  994. package/dist/api/resources/companies/client/requests/CompaniesScrollRequest.d.ts +13 -0
  995. package/dist/api/resources/companies/client/requests/CompaniesScrollRequest.js +5 -0
  996. package/dist/api/resources/companies/client/requests/index.d.ts +4 -0
  997. package/dist/api/resources/companies/client/requests/index.js +2 -0
  998. package/dist/api/resources/companies/index.d.ts +2 -0
  999. package/dist/api/resources/companies/index.js +18 -0
  1000. package/dist/api/resources/companies/types/Company.d.ts +46 -0
  1001. package/dist/api/resources/companies/types/Company.js +5 -0
  1002. package/dist/api/resources/companies/types/CompanyPlan.d.ts +11 -0
  1003. package/dist/api/resources/companies/types/CompanyPlan.js +5 -0
  1004. package/dist/api/resources/companies/types/CompanySegments.d.ts +12 -0
  1005. package/dist/api/resources/companies/types/CompanySegments.js +5 -0
  1006. package/dist/api/resources/companies/types/CompanyTags.d.ts +11 -0
  1007. package/dist/api/resources/companies/types/CompanyTags.js +5 -0
  1008. package/dist/api/resources/companies/types/index.d.ts +4 -0
  1009. package/dist/api/resources/companies/types/index.js +20 -0
  1010. package/dist/api/resources/contacts/client/Client.d.ts +363 -0
  1011. package/dist/api/resources/contacts/client/Client.js +1150 -0
  1012. package/dist/api/resources/contacts/client/index.d.ts +1 -0
  1013. package/dist/api/resources/contacts/client/index.js +17 -0
  1014. package/dist/api/resources/contacts/client/requests/ContactsAttachToContactRequest.d.ts +28 -0
  1015. package/dist/api/resources/contacts/client/requests/ContactsAttachToContactRequest.js +5 -0
  1016. package/dist/api/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
  1017. package/dist/api/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
  1018. package/dist/api/resources/contacts/client/requests/UpdateContactRequest.d.ts +34 -0
  1019. package/dist/api/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
  1020. package/dist/api/resources/contacts/client/requests/index.d.ts +3 -0
  1021. package/dist/api/resources/contacts/client/requests/index.js +2 -0
  1022. package/dist/api/resources/contacts/index.d.ts +2 -0
  1023. package/dist/api/resources/contacts/index.js +18 -0
  1024. package/dist/api/resources/contacts/types/Contact.d.ts +95 -0
  1025. package/dist/api/resources/contacts/types/Contact.js +5 -0
  1026. package/dist/api/resources/contacts/types/ContactAvatar.d.ts +9 -0
  1027. package/dist/api/resources/contacts/types/ContactAvatar.js +5 -0
  1028. package/dist/api/resources/contacts/types/index.d.ts +2 -0
  1029. package/dist/api/resources/contacts/types/index.js +18 -0
  1030. package/dist/api/resources/conversations/client/Client.d.ts +446 -0
  1031. package/dist/api/resources/conversations/client/Client.js +1153 -0
  1032. package/dist/api/resources/conversations/client/index.d.ts +1 -0
  1033. package/dist/api/resources/conversations/client/index.js +17 -0
  1034. package/dist/api/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +26 -0
  1035. package/dist/api/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
  1036. package/dist/api/resources/conversations/client/requests/ConversationsFindRequest.d.ts +13 -0
  1037. package/dist/api/resources/conversations/client/requests/ConversationsFindRequest.js +5 -0
  1038. package/dist/api/resources/conversations/client/requests/ConversationsListRequest.d.ts +17 -0
  1039. package/dist/api/resources/conversations/client/requests/ConversationsListRequest.js +5 -0
  1040. package/dist/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +20 -0
  1041. package/dist/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
  1042. package/dist/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +28 -0
  1043. package/dist/api/resources/conversations/client/requests/CreateConversationRequest.js +5 -0
  1044. package/dist/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +28 -0
  1045. package/dist/api/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
  1046. package/dist/api/resources/conversations/client/requests/UpdateConversationRequest.d.ts +32 -0
  1047. package/dist/api/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
  1048. package/dist/api/resources/conversations/client/requests/index.d.ts +7 -0
  1049. package/dist/api/resources/conversations/client/requests/index.js +2 -0
  1050. package/dist/api/resources/conversations/index.d.ts +2 -0
  1051. package/dist/api/resources/conversations/index.js +18 -0
  1052. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomer.d.ts +5 -0
  1053. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomer.js +5 -0
  1054. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.d.ts +9 -0
  1055. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.js +5 -0
  1056. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.d.ts +9 -0
  1057. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.js +5 -0
  1058. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.d.ts +9 -0
  1059. package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.js +5 -0
  1060. package/dist/api/resources/conversations/types/Conversation.d.ts +49 -0
  1061. package/dist/api/resources/conversations/types/Conversation.js +5 -0
  1062. package/dist/api/resources/conversations/types/ConversationPriority.d.ts +11 -0
  1063. package/dist/api/resources/conversations/types/ConversationPriority.js +10 -0
  1064. package/dist/api/resources/conversations/types/ConversationState.d.ts +12 -0
  1065. package/dist/api/resources/conversations/types/ConversationState.js +11 -0
  1066. package/dist/api/resources/conversations/types/ConversationsManageRequestBody.d.ts +19 -0
  1067. package/dist/api/resources/conversations/types/ConversationsManageRequestBody.js +5 -0
  1068. package/dist/api/resources/conversations/types/CreateConversationRequestFrom.d.ts +10 -0
  1069. package/dist/api/resources/conversations/types/CreateConversationRequestFrom.js +5 -0
  1070. package/dist/api/resources/conversations/types/CreateConversationRequestFromType.d.ts +12 -0
  1071. package/dist/api/resources/conversations/types/CreateConversationRequestFromType.js +11 -0
  1072. package/dist/api/resources/conversations/types/index.d.ts +10 -0
  1073. package/dist/api/resources/conversations/types/index.js +26 -0
  1074. package/dist/api/resources/customObjectInstances/index.d.ts +1 -0
  1075. package/dist/api/resources/customObjectInstances/index.js +17 -0
  1076. package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +16 -0
  1077. package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
  1078. package/dist/api/resources/customObjectInstances/types/index.d.ts +1 -0
  1079. package/dist/api/resources/customObjectInstances/types/index.js +17 -0
  1080. package/dist/api/resources/dataAttributes/client/Client.d.ts +136 -0
  1081. package/dist/api/resources/dataAttributes/client/Client.js +336 -0
  1082. package/dist/api/resources/dataAttributes/client/index.d.ts +1 -0
  1083. package/dist/api/resources/dataAttributes/client/index.js +17 -0
  1084. package/dist/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +63 -0
  1085. package/dist/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +5 -0
  1086. package/dist/api/resources/dataAttributes/client/requests/DataAttributesListRequest.d.ts +18 -0
  1087. package/dist/api/resources/dataAttributes/client/requests/DataAttributesListRequest.js +5 -0
  1088. package/dist/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +41 -0
  1089. package/dist/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
  1090. package/dist/api/resources/dataAttributes/client/requests/index.d.ts +3 -0
  1091. package/dist/api/resources/dataAttributes/client/requests/index.js +2 -0
  1092. package/dist/api/resources/dataAttributes/index.d.ts +2 -0
  1093. package/dist/api/resources/dataAttributes/index.js +18 -0
  1094. package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.d.ts +15 -0
  1095. package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.js +14 -0
  1096. package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.d.ts +11 -0
  1097. package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.js +10 -0
  1098. package/dist/api/resources/dataAttributes/types/DataAttribute.d.ts +43 -0
  1099. package/dist/api/resources/dataAttributes/types/DataAttribute.js +5 -0
  1100. package/dist/api/resources/dataAttributes/types/DataAttributeDataType.d.ts +14 -0
  1101. package/dist/api/resources/dataAttributes/types/DataAttributeDataType.js +13 -0
  1102. package/dist/api/resources/dataAttributes/types/DataAttributeModel.d.ts +11 -0
  1103. package/dist/api/resources/dataAttributes/types/DataAttributeModel.js +10 -0
  1104. package/dist/api/resources/dataAttributes/types/DataAttributesListRequestModel.d.ts +9 -0
  1105. package/dist/api/resources/dataAttributes/types/DataAttributesListRequestModel.js +11 -0
  1106. package/dist/api/resources/dataAttributes/types/index.d.ts +6 -0
  1107. package/dist/api/resources/dataAttributes/types/index.js +22 -0
  1108. package/dist/api/resources/dataEvents/index.d.ts +1 -0
  1109. package/dist/api/resources/dataEvents/index.js +17 -0
  1110. package/dist/api/resources/dataEvents/types/DataEvent.d.ts +24 -0
  1111. package/dist/api/resources/dataEvents/types/DataEvent.js +5 -0
  1112. package/dist/api/resources/dataEvents/types/index.d.ts +1 -0
  1113. package/dist/api/resources/dataEvents/types/index.js +17 -0
  1114. package/dist/api/resources/dataExport/client/Client.d.ts +100 -0
  1115. package/dist/api/resources/dataExport/client/Client.js +310 -0
  1116. package/dist/api/resources/dataExport/client/index.d.ts +1 -0
  1117. package/dist/api/resources/dataExport/client/index.js +17 -0
  1118. package/dist/api/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
  1119. package/dist/api/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
  1120. package/dist/api/resources/dataExport/client/requests/index.d.ts +1 -0
  1121. package/dist/api/resources/dataExport/client/requests/index.js +2 -0
  1122. package/dist/api/resources/dataExport/index.d.ts +2 -0
  1123. package/dist/api/resources/dataExport/index.js +18 -0
  1124. package/dist/api/resources/dataExport/types/DataExport.d.ts +17 -0
  1125. package/dist/api/resources/dataExport/types/DataExport.js +5 -0
  1126. package/dist/api/resources/dataExport/types/DataExportStatus.d.ts +15 -0
  1127. package/dist/api/resources/dataExport/types/DataExportStatus.js +14 -0
  1128. package/dist/api/resources/dataExport/types/index.d.ts +2 -0
  1129. package/dist/api/resources/dataExport/types/index.js +18 -0
  1130. package/dist/api/resources/events/client/Client.d.ts +127 -0
  1131. package/dist/api/resources/events/client/Client.js +318 -0
  1132. package/dist/api/resources/events/client/index.d.ts +1 -0
  1133. package/dist/api/resources/events/client/index.js +17 -0
  1134. package/dist/api/resources/events/client/requests/CreateDataEventSummariesRequest.d.ts +14 -0
  1135. package/dist/api/resources/events/client/requests/CreateDataEventSummariesRequest.js +5 -0
  1136. package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +25 -0
  1137. package/dist/api/resources/events/client/requests/EventsListRequest.js +5 -0
  1138. package/dist/api/resources/events/client/requests/index.d.ts +2 -0
  1139. package/dist/api/resources/events/client/requests/index.js +2 -0
  1140. package/dist/api/resources/events/index.d.ts +2 -0
  1141. package/dist/api/resources/events/index.js +18 -0
  1142. package/dist/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.d.ts +16 -0
  1143. package/dist/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.js +5 -0
  1144. package/dist/api/resources/events/types/EventsListRequestFilter.d.ts +5 -0
  1145. package/dist/api/resources/events/types/EventsListRequestFilter.js +5 -0
  1146. package/dist/api/resources/events/types/EventsListRequestFilterEmail.d.ts +6 -0
  1147. package/dist/api/resources/events/types/EventsListRequestFilterEmail.js +5 -0
  1148. package/dist/api/resources/events/types/EventsListRequestFilterIntercomUserId.d.ts +6 -0
  1149. package/dist/api/resources/events/types/EventsListRequestFilterIntercomUserId.js +5 -0
  1150. package/dist/api/resources/events/types/EventsListRequestFilterUserId.d.ts +6 -0
  1151. package/dist/api/resources/events/types/EventsListRequestFilterUserId.js +5 -0
  1152. package/dist/api/resources/events/types/index.d.ts +5 -0
  1153. package/dist/api/resources/events/types/index.js +21 -0
  1154. package/dist/api/resources/helpCenter/client/Client.d.ts +60 -0
  1155. package/dist/api/resources/helpCenter/client/Client.js +196 -0
  1156. package/dist/api/resources/helpCenter/client/index.d.ts +1 -0
  1157. package/dist/api/resources/helpCenter/client/index.js +2 -0
  1158. package/dist/api/resources/helpCenter/index.d.ts +3 -0
  1159. package/dist/api/resources/helpCenter/index.js +19 -0
  1160. package/dist/api/resources/helpCenter/resources/collections/client/Client.d.ts +106 -0
  1161. package/dist/api/resources/helpCenter/resources/collections/client/Client.js +395 -0
  1162. package/dist/api/resources/helpCenter/resources/collections/client/index.d.ts +1 -0
  1163. package/dist/api/resources/helpCenter/resources/collections/client/index.js +17 -0
  1164. package/dist/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.d.ts +27 -0
  1165. package/dist/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.js +5 -0
  1166. package/dist/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.d.ts +24 -0
  1167. package/dist/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.js +5 -0
  1168. package/dist/api/resources/helpCenter/resources/collections/client/requests/index.d.ts +2 -0
  1169. package/dist/api/resources/helpCenter/resources/collections/client/requests/index.js +2 -0
  1170. package/dist/api/resources/helpCenter/resources/collections/index.d.ts +1 -0
  1171. package/dist/api/resources/helpCenter/resources/collections/index.js +17 -0
  1172. package/dist/api/resources/helpCenter/resources/index.d.ts +2 -0
  1173. package/dist/api/resources/helpCenter/resources/index.js +31 -0
  1174. package/dist/api/resources/helpCenter/types/Collection.d.ts +34 -0
  1175. package/dist/api/resources/helpCenter/types/Collection.js +5 -0
  1176. package/dist/api/resources/helpCenter/types/HelpCenter.d.ts +22 -0
  1177. package/dist/api/resources/helpCenter/types/HelpCenter.js +5 -0
  1178. package/dist/api/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
  1179. package/dist/api/resources/helpCenter/types/HelpCenterList.js +5 -0
  1180. package/dist/api/resources/helpCenter/types/index.d.ts +3 -0
  1181. package/dist/api/resources/helpCenter/types/index.js +19 -0
  1182. package/dist/api/resources/index.d.ts +63 -0
  1183. package/dist/api/resources/index.js +92 -0
  1184. package/dist/api/resources/messages/client/Client.d.ts +145 -0
  1185. package/dist/api/resources/messages/client/Client.js +235 -0
  1186. package/dist/api/resources/messages/client/index.d.ts +1 -0
  1187. package/dist/api/resources/messages/client/index.js +2 -0
  1188. package/dist/api/resources/messages/index.d.ts +2 -0
  1189. package/dist/api/resources/messages/index.js +18 -0
  1190. package/dist/api/resources/messages/types/Message.d.ts +23 -0
  1191. package/dist/api/resources/messages/types/Message.js +5 -0
  1192. package/dist/api/resources/messages/types/MessageMessageType.d.ts +13 -0
  1193. package/dist/api/resources/messages/types/MessageMessageType.js +12 -0
  1194. package/dist/api/resources/messages/types/index.d.ts +2 -0
  1195. package/dist/api/resources/messages/types/index.js +18 -0
  1196. package/dist/api/resources/news/client/Client.d.ts +154 -0
  1197. package/dist/api/resources/news/client/Client.js +588 -0
  1198. package/dist/api/resources/news/client/index.d.ts +1 -0
  1199. package/dist/api/resources/news/client/index.js +2 -0
  1200. package/dist/api/resources/news/index.d.ts +2 -0
  1201. package/dist/api/resources/news/index.js +18 -0
  1202. package/dist/api/resources/news/types/NewsItem.d.ts +35 -0
  1203. package/dist/api/resources/news/types/NewsItem.js +5 -0
  1204. package/dist/api/resources/news/types/NewsItemState.d.ts +11 -0
  1205. package/dist/api/resources/news/types/NewsItemState.js +10 -0
  1206. package/dist/api/resources/news/types/Newsfeed.d.ts +18 -0
  1207. package/dist/api/resources/news/types/Newsfeed.js +5 -0
  1208. package/dist/api/resources/news/types/NewsfeedAssignment.d.ts +12 -0
  1209. package/dist/api/resources/news/types/NewsfeedAssignment.js +5 -0
  1210. package/dist/api/resources/news/types/index.d.ts +4 -0
  1211. package/dist/api/resources/news/types/index.js +20 -0
  1212. package/dist/api/resources/notes/client/Client.d.ts +89 -0
  1213. package/dist/api/resources/notes/client/Client.js +273 -0
  1214. package/dist/api/resources/notes/client/index.d.ts +1 -0
  1215. package/dist/api/resources/notes/client/index.js +17 -0
  1216. package/dist/api/resources/notes/client/requests/NotesCreateRequest.d.ts +33 -0
  1217. package/dist/api/resources/notes/client/requests/NotesCreateRequest.js +5 -0
  1218. package/dist/api/resources/notes/client/requests/index.d.ts +1 -0
  1219. package/dist/api/resources/notes/client/requests/index.js +2 -0
  1220. package/dist/api/resources/notes/index.d.ts +2 -0
  1221. package/dist/api/resources/notes/index.js +18 -0
  1222. package/dist/api/resources/notes/types/Note.d.ts +21 -0
  1223. package/dist/api/resources/notes/types/Note.js +5 -0
  1224. package/dist/api/resources/notes/types/NoteContact.d.ts +12 -0
  1225. package/dist/api/resources/notes/types/NoteContact.js +5 -0
  1226. package/dist/api/resources/notes/types/index.d.ts +2 -0
  1227. package/dist/api/resources/notes/types/index.js +18 -0
  1228. package/dist/api/resources/phoneCallRedirect/client/Client.d.ts +62 -0
  1229. package/dist/api/resources/phoneCallRedirect/client/Client.js +150 -0
  1230. package/dist/api/resources/phoneCallRedirect/client/index.d.ts +1 -0
  1231. package/dist/api/resources/phoneCallRedirect/client/index.js +2 -0
  1232. package/dist/api/resources/phoneCallRedirect/index.d.ts +1 -0
  1233. package/dist/api/resources/phoneCallRedirect/index.js +17 -0
  1234. package/dist/api/resources/segments/client/Client.d.ts +58 -0
  1235. package/dist/api/resources/segments/client/Client.js +198 -0
  1236. package/dist/api/resources/segments/client/index.d.ts +1 -0
  1237. package/dist/api/resources/segments/client/index.js +17 -0
  1238. package/dist/api/resources/segments/client/requests/SegmentsListRequest.d.ts +13 -0
  1239. package/dist/api/resources/segments/client/requests/SegmentsListRequest.js +5 -0
  1240. package/dist/api/resources/segments/client/requests/index.d.ts +1 -0
  1241. package/dist/api/resources/segments/client/requests/index.js +2 -0
  1242. package/dist/api/resources/segments/index.d.ts +2 -0
  1243. package/dist/api/resources/segments/index.js +18 -0
  1244. package/dist/api/resources/segments/types/Segment.d.ts +23 -0
  1245. package/dist/api/resources/segments/types/Segment.js +5 -0
  1246. package/dist/api/resources/segments/types/SegmentPersonType.d.ts +11 -0
  1247. package/dist/api/resources/segments/types/SegmentPersonType.js +10 -0
  1248. package/dist/api/resources/segments/types/index.d.ts +2 -0
  1249. package/dist/api/resources/segments/types/index.js +18 -0
  1250. package/dist/api/resources/subscriptionTypes/index.d.ts +1 -0
  1251. package/dist/api/resources/subscriptionTypes/index.js +17 -0
  1252. package/dist/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +22 -0
  1253. package/dist/api/resources/subscriptionTypes/types/SubscriptionType.js +5 -0
  1254. package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.d.ts +11 -0
  1255. package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.js +10 -0
  1256. package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.d.ts +8 -0
  1257. package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.js +10 -0
  1258. package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeState.d.ts +12 -0
  1259. package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeState.js +11 -0
  1260. package/dist/api/resources/subscriptionTypes/types/index.d.ts +4 -0
  1261. package/dist/api/resources/subscriptionTypes/types/index.js +20 -0
  1262. package/dist/api/resources/subscriptions/client/Client.d.ts +41 -0
  1263. package/dist/api/resources/subscriptions/client/Client.js +124 -0
  1264. package/dist/api/resources/subscriptions/client/index.d.ts +1 -0
  1265. package/dist/api/resources/subscriptions/client/index.js +2 -0
  1266. package/dist/api/resources/subscriptions/index.d.ts +1 -0
  1267. package/dist/api/resources/subscriptions/index.js +17 -0
  1268. package/dist/api/resources/tags/client/Client.d.ts +224 -0
  1269. package/dist/api/resources/tags/client/Client.js +776 -0
  1270. package/dist/api/resources/tags/client/index.d.ts +1 -0
  1271. package/dist/api/resources/tags/client/index.js +17 -0
  1272. package/dist/api/resources/tags/client/requests/TagsAttachRequest.d.ts +22 -0
  1273. package/dist/api/resources/tags/client/requests/TagsAttachRequest.js +5 -0
  1274. package/dist/api/resources/tags/client/requests/TagsDetachRequest.d.ts +23 -0
  1275. package/dist/api/resources/tags/client/requests/TagsDetachRequest.js +5 -0
  1276. package/dist/api/resources/tags/client/requests/TagsTagContactRequest.d.ts +23 -0
  1277. package/dist/api/resources/tags/client/requests/TagsTagContactRequest.js +5 -0
  1278. package/dist/api/resources/tags/client/requests/TagsTagConversationRequest.d.ts +22 -0
  1279. package/dist/api/resources/tags/client/requests/TagsTagConversationRequest.js +5 -0
  1280. package/dist/api/resources/tags/client/requests/TagsUntagConversationRequest.d.ts +23 -0
  1281. package/dist/api/resources/tags/client/requests/TagsUntagConversationRequest.js +5 -0
  1282. package/dist/api/resources/tags/client/requests/index.d.ts +5 -0
  1283. package/dist/api/resources/tags/client/requests/index.js +2 -0
  1284. package/dist/api/resources/tags/index.d.ts +2 -0
  1285. package/dist/api/resources/tags/index.js +18 -0
  1286. package/dist/api/resources/tags/types/Tag.d.ts +18 -0
  1287. package/dist/api/resources/tags/types/Tag.js +5 -0
  1288. package/dist/api/resources/tags/types/TagsCreateRequestBody.d.ts +5 -0
  1289. package/dist/api/resources/tags/types/TagsCreateRequestBody.js +5 -0
  1290. package/dist/api/resources/tags/types/index.d.ts +2 -0
  1291. package/dist/api/resources/tags/types/index.js +18 -0
  1292. package/dist/api/resources/teams/client/Client.d.ts +57 -0
  1293. package/dist/api/resources/teams/client/Client.js +191 -0
  1294. package/dist/api/resources/teams/client/index.d.ts +1 -0
  1295. package/dist/api/resources/teams/client/index.js +2 -0
  1296. package/dist/api/resources/teams/index.d.ts +2 -0
  1297. package/dist/api/resources/teams/index.js +18 -0
  1298. package/dist/api/resources/teams/types/Team.d.ts +18 -0
  1299. package/dist/api/resources/teams/types/Team.js +5 -0
  1300. package/dist/api/resources/teams/types/index.d.ts +1 -0
  1301. package/dist/api/resources/teams/types/index.js +17 -0
  1302. package/dist/api/resources/ticketTypeAttributes/client/Client.d.ts +67 -0
  1303. package/dist/api/resources/ticketTypeAttributes/client/Client.js +201 -0
  1304. package/dist/api/resources/ticketTypeAttributes/client/index.d.ts +1 -0
  1305. package/dist/api/resources/ticketTypeAttributes/client/index.js +17 -0
  1306. package/dist/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +35 -0
  1307. package/dist/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +5 -0
  1308. package/dist/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +31 -0
  1309. package/dist/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
  1310. package/dist/api/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
  1311. package/dist/api/resources/ticketTypeAttributes/client/requests/index.js +2 -0
  1312. package/dist/api/resources/ticketTypeAttributes/index.d.ts +2 -0
  1313. package/dist/api/resources/ticketTypeAttributes/index.js +18 -0
  1314. package/dist/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.d.ts +16 -0
  1315. package/dist/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.js +15 -0
  1316. package/dist/api/resources/ticketTypeAttributes/types/index.d.ts +1 -0
  1317. package/dist/api/resources/ticketTypeAttributes/types/index.js +17 -0
  1318. package/dist/api/resources/ticketTypes/client/Client.d.ts +97 -0
  1319. package/dist/api/resources/ticketTypes/client/Client.js +329 -0
  1320. package/dist/api/resources/ticketTypes/client/index.d.ts +1 -0
  1321. package/dist/api/resources/ticketTypes/client/index.js +2 -0
  1322. package/dist/api/resources/ticketTypes/index.d.ts +1 -0
  1323. package/dist/api/resources/ticketTypes/index.js +17 -0
  1324. package/dist/api/resources/tickets/client/Client.d.ts +251 -0
  1325. package/dist/api/resources/tickets/client/Client.js +546 -0
  1326. package/dist/api/resources/tickets/client/index.d.ts +1 -0
  1327. package/dist/api/resources/tickets/client/index.js +17 -0
  1328. package/dist/api/resources/tickets/client/requests/CreateTicketRequest.d.ts +28 -0
  1329. package/dist/api/resources/tickets/client/requests/CreateTicketRequest.js +5 -0
  1330. package/dist/api/resources/tickets/client/requests/UpdateTicketRequest.d.ts +59 -0
  1331. package/dist/api/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
  1332. package/dist/api/resources/tickets/client/requests/index.d.ts +2 -0
  1333. package/dist/api/resources/tickets/client/requests/index.js +2 -0
  1334. package/dist/api/resources/tickets/index.d.ts +2 -0
  1335. package/dist/api/resources/tickets/index.js +18 -0
  1336. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItem.d.ts +5 -0
  1337. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItem.js +5 -0
  1338. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.d.ts +7 -0
  1339. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.js +5 -0
  1340. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.d.ts +7 -0
  1341. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.js +5 -0
  1342. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemId.d.ts +7 -0
  1343. package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemId.js +5 -0
  1344. package/dist/api/resources/tickets/types/Ticket.d.ts +42 -0
  1345. package/dist/api/resources/tickets/types/Ticket.js +5 -0
  1346. package/dist/api/resources/tickets/types/TicketCategory.d.ts +12 -0
  1347. package/dist/api/resources/tickets/types/TicketCategory.js +11 -0
  1348. package/dist/api/resources/tickets/types/TicketContacts.d.ts +13 -0
  1349. package/dist/api/resources/tickets/types/TicketContacts.js +5 -0
  1350. package/dist/api/resources/tickets/types/TicketPart.d.ts +34 -0
  1351. package/dist/api/resources/tickets/types/TicketPart.js +5 -0
  1352. package/dist/api/resources/tickets/types/TicketPartPreviousTicketState.d.ts +13 -0
  1353. package/dist/api/resources/tickets/types/TicketPartPreviousTicketState.js +12 -0
  1354. package/dist/api/resources/tickets/types/TicketPartTicketState.d.ts +13 -0
  1355. package/dist/api/resources/tickets/types/TicketPartTicketState.js +12 -0
  1356. package/dist/api/resources/tickets/types/TicketTicketState.d.ts +13 -0
  1357. package/dist/api/resources/tickets/types/TicketTicketState.js +12 -0
  1358. package/dist/api/resources/tickets/types/TicketType.d.ts +30 -0
  1359. package/dist/api/resources/tickets/types/TicketType.js +5 -0
  1360. package/dist/api/resources/tickets/types/TicketTypeCategory.d.ts +12 -0
  1361. package/dist/api/resources/tickets/types/TicketTypeCategory.js +11 -0
  1362. package/dist/api/resources/tickets/types/TicketsReplyRequestBody.d.ts +5 -0
  1363. package/dist/api/resources/tickets/types/TicketsReplyRequestBody.js +5 -0
  1364. package/dist/api/resources/tickets/types/UpdateTicketRequestAssignment.d.ts +9 -0
  1365. package/dist/api/resources/tickets/types/UpdateTicketRequestAssignment.js +5 -0
  1366. package/dist/api/resources/tickets/types/UpdateTicketRequestState.d.ts +12 -0
  1367. package/dist/api/resources/tickets/types/UpdateTicketRequestState.js +11 -0
  1368. package/dist/api/resources/tickets/types/index.d.ts +16 -0
  1369. package/dist/api/resources/tickets/types/index.js +32 -0
  1370. package/dist/api/resources/visitors/client/Client.d.ts +97 -0
  1371. package/dist/api/resources/visitors/client/Client.js +288 -0
  1372. package/dist/api/resources/visitors/client/index.d.ts +1 -0
  1373. package/dist/api/resources/visitors/client/index.js +17 -0
  1374. package/dist/api/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +25 -0
  1375. package/dist/api/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
  1376. package/dist/api/resources/visitors/client/requests/VisitorsFindRequest.d.ts +15 -0
  1377. package/dist/api/resources/visitors/client/requests/VisitorsFindRequest.js +5 -0
  1378. package/dist/api/resources/visitors/client/requests/index.d.ts +2 -0
  1379. package/dist/api/resources/visitors/client/requests/index.js +2 -0
  1380. package/dist/api/resources/visitors/index.d.ts +2 -0
  1381. package/dist/api/resources/visitors/index.js +18 -0
  1382. package/dist/api/resources/visitors/types/ConvertVisitorRequestUser.d.ts +8 -0
  1383. package/dist/api/resources/visitors/types/ConvertVisitorRequestUser.js +5 -0
  1384. package/dist/api/resources/visitors/types/ConvertVisitorRequestVisitor.d.ts +8 -0
  1385. package/dist/api/resources/visitors/types/ConvertVisitorRequestVisitor.js +5 -0
  1386. package/dist/api/resources/visitors/types/UserWithId.d.ts +9 -0
  1387. package/dist/api/resources/visitors/types/UserWithId.js +5 -0
  1388. package/dist/api/resources/visitors/types/UserWithUserId.d.ts +9 -0
  1389. package/dist/api/resources/visitors/types/UserWithUserId.js +5 -0
  1390. package/dist/api/resources/visitors/types/VisitorWithEmail.d.ts +7 -0
  1391. package/dist/api/resources/visitors/types/VisitorWithEmail.js +5 -0
  1392. package/dist/api/resources/visitors/types/VisitorWithId.d.ts +7 -0
  1393. package/dist/api/resources/visitors/types/VisitorWithId.js +5 -0
  1394. package/dist/api/resources/visitors/types/VisitorWithUserId.d.ts +7 -0
  1395. package/dist/api/resources/visitors/types/VisitorWithUserId.js +5 -0
  1396. package/dist/api/resources/visitors/types/index.d.ts +7 -0
  1397. package/dist/api/resources/visitors/types/index.js +23 -0
  1398. package/dist/api/types/ActivityLog.d.ts +19 -0
  1399. package/dist/api/types/ActivityLog.js +5 -0
  1400. package/dist/api/types/ActivityLogActivityType.d.ts +73 -0
  1401. package/dist/api/types/ActivityLogActivityType.js +75 -0
  1402. package/dist/api/types/ActivityLogList.d.ts +14 -0
  1403. package/dist/api/types/ActivityLogList.js +5 -0
  1404. package/dist/api/types/ActivityLogMetadata.d.ts +26 -0
  1405. package/dist/api/types/ActivityLogMetadata.js +5 -0
  1406. package/dist/api/types/ActivityLogPerformedBy.d.ts +16 -0
  1407. package/dist/api/types/ActivityLogPerformedBy.js +5 -0
  1408. package/dist/api/types/AddressableList.d.ts +14 -0
  1409. package/dist/api/types/AddressableList.js +5 -0
  1410. package/dist/api/types/AdminList.d.ts +13 -0
  1411. package/dist/api/types/AdminList.js +5 -0
  1412. package/dist/api/types/AdminPriorityLevel.d.ts +12 -0
  1413. package/dist/api/types/AdminPriorityLevel.js +5 -0
  1414. package/dist/api/types/AdminReplyConversationRequest.d.ts +21 -0
  1415. package/dist/api/types/AdminReplyConversationRequest.js +5 -0
  1416. package/dist/api/types/AdminReplyConversationRequestMessageType.d.ts +8 -0
  1417. package/dist/api/types/AdminReplyConversationRequestMessageType.js +10 -0
  1418. package/dist/api/types/AdminReplyTicketRequest.d.ts +21 -0
  1419. package/dist/api/types/AdminReplyTicketRequest.js +5 -0
  1420. package/dist/api/types/AdminReplyTicketRequestMessageType.d.ts +9 -0
  1421. package/dist/api/types/AdminReplyTicketRequestMessageType.js +11 -0
  1422. package/dist/api/types/AdminReplyTicketRequestReplyOptionsItem.d.ts +9 -0
  1423. package/dist/api/types/AdminReplyTicketRequestReplyOptionsItem.js +5 -0
  1424. package/dist/api/types/AdminWithApp.d.ts +33 -0
  1425. package/dist/api/types/AdminWithApp.js +5 -0
  1426. package/dist/api/types/AdminWithAppAvatar.d.ts +12 -0
  1427. package/dist/api/types/AdminWithAppAvatar.js +5 -0
  1428. package/dist/api/types/App.d.ts +22 -0
  1429. package/dist/api/types/App.js +5 -0
  1430. package/dist/api/types/ArticleContent.d.ts +27 -0
  1431. package/dist/api/types/ArticleContent.js +5 -0
  1432. package/dist/api/types/ArticleContentState.d.ts +11 -0
  1433. package/dist/api/types/ArticleContentState.js +10 -0
  1434. package/dist/api/types/ArticleList.d.ts +16 -0
  1435. package/dist/api/types/ArticleList.js +5 -0
  1436. package/dist/api/types/ArticleStatistics.d.ts +22 -0
  1437. package/dist/api/types/ArticleStatistics.js +5 -0
  1438. package/dist/api/types/ArticleTranslatedContent.d.ts +85 -0
  1439. package/dist/api/types/ArticleTranslatedContent.js +5 -0
  1440. package/dist/api/types/AssignConversationRequest.d.ts +16 -0
  1441. package/dist/api/types/AssignConversationRequest.js +5 -0
  1442. package/dist/api/types/AssignConversationRequestType.d.ts +8 -0
  1443. package/dist/api/types/AssignConversationRequestType.js +10 -0
  1444. package/dist/api/types/CloseConversationRequest.d.ts +13 -0
  1445. package/dist/api/types/CloseConversationRequest.js +5 -0
  1446. package/dist/api/types/CollectionList.d.ts +16 -0
  1447. package/dist/api/types/CollectionList.js +5 -0
  1448. package/dist/api/types/CompanyAttachedContacts.d.ts +16 -0
  1449. package/dist/api/types/CompanyAttachedContacts.js +5 -0
  1450. package/dist/api/types/CompanyAttachedSegments.d.ts +13 -0
  1451. package/dist/api/types/CompanyAttachedSegments.js +5 -0
  1452. package/dist/api/types/CompanyList.d.ts +16 -0
  1453. package/dist/api/types/CompanyList.js +5 -0
  1454. package/dist/api/types/CompanyScroll.d.ts +17 -0
  1455. package/dist/api/types/CompanyScroll.js +5 -0
  1456. package/dist/api/types/ContactArchived.d.ts +16 -0
  1457. package/dist/api/types/ContactArchived.js +5 -0
  1458. package/dist/api/types/ContactAttachedCompanies.d.ts +16 -0
  1459. package/dist/api/types/ContactAttachedCompanies.js +5 -0
  1460. package/dist/api/types/ContactCompanies.d.ts +14 -0
  1461. package/dist/api/types/ContactCompanies.js +5 -0
  1462. package/dist/api/types/ContactDeleted.d.ts +16 -0
  1463. package/dist/api/types/ContactDeleted.js +5 -0
  1464. package/dist/api/types/ContactList.d.ts +16 -0
  1465. package/dist/api/types/ContactList.js +5 -0
  1466. package/dist/api/types/ContactLocation.d.ts +16 -0
  1467. package/dist/api/types/ContactLocation.js +5 -0
  1468. package/dist/api/types/ContactNotes.d.ts +17 -0
  1469. package/dist/api/types/ContactNotes.js +5 -0
  1470. package/dist/api/types/ContactReference.d.ts +14 -0
  1471. package/dist/api/types/ContactReference.js +5 -0
  1472. package/dist/api/types/ContactReplyBaseRequest.d.ts +13 -0
  1473. package/dist/api/types/ContactReplyBaseRequest.js +5 -0
  1474. package/dist/api/types/ContactReplyConversationRequest.d.ts +5 -0
  1475. package/dist/api/types/ContactReplyConversationRequest.js +5 -0
  1476. package/dist/api/types/ContactReplyEmailRequest.d.ts +13 -0
  1477. package/dist/api/types/ContactReplyEmailRequest.js +5 -0
  1478. package/dist/api/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
  1479. package/dist/api/types/ContactReplyIntercomUserIdRequest.js +5 -0
  1480. package/dist/api/types/ContactReplyTicketEmailRequest.d.ts +11 -0
  1481. package/dist/api/types/ContactReplyTicketEmailRequest.js +5 -0
  1482. package/dist/api/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
  1483. package/dist/api/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
  1484. package/dist/api/types/ContactReplyTicketRequest.d.ts +5 -0
  1485. package/dist/api/types/ContactReplyTicketRequest.js +5 -0
  1486. package/dist/api/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
  1487. package/dist/api/types/ContactReplyTicketUserIdRequest.js +5 -0
  1488. package/dist/api/types/ContactReplyUserIdRequest.d.ts +13 -0
  1489. package/dist/api/types/ContactReplyUserIdRequest.js +5 -0
  1490. package/dist/api/types/ContactSegments.d.ts +13 -0
  1491. package/dist/api/types/ContactSegments.js +5 -0
  1492. package/dist/api/types/ContactSocialProfiles.d.ts +11 -0
  1493. package/dist/api/types/ContactSocialProfiles.js +5 -0
  1494. package/dist/api/types/ContactSubscriptionTypes.d.ts +17 -0
  1495. package/dist/api/types/ContactSubscriptionTypes.js +5 -0
  1496. package/dist/api/types/ContactTags.d.ts +17 -0
  1497. package/dist/api/types/ContactTags.js +5 -0
  1498. package/dist/api/types/ContactUnarchived.d.ts +16 -0
  1499. package/dist/api/types/ContactUnarchived.js +5 -0
  1500. package/dist/api/types/ContentSourcesList.d.ts +11 -0
  1501. package/dist/api/types/ContentSourcesList.js +5 -0
  1502. package/dist/api/types/ConversationAttachmentFiles.d.ts +14 -0
  1503. package/dist/api/types/ConversationAttachmentFiles.js +5 -0
  1504. package/dist/api/types/ConversationContacts.d.ts +13 -0
  1505. package/dist/api/types/ConversationContacts.js +5 -0
  1506. package/dist/api/types/ConversationFirstContactReply.d.ts +14 -0
  1507. package/dist/api/types/ConversationFirstContactReply.js +5 -0
  1508. package/dist/api/types/ConversationList.d.ts +16 -0
  1509. package/dist/api/types/ConversationList.js +5 -0
  1510. package/dist/api/types/ConversationPart.d.ts +32 -0
  1511. package/dist/api/types/ConversationPart.js +5 -0
  1512. package/dist/api/types/ConversationPartAuthor.d.ts +16 -0
  1513. package/dist/api/types/ConversationPartAuthor.js +5 -0
  1514. package/dist/api/types/ConversationParts.d.ts +15 -0
  1515. package/dist/api/types/ConversationParts.js +5 -0
  1516. package/dist/api/types/ConversationRating.d.ts +17 -0
  1517. package/dist/api/types/ConversationRating.js +5 -0
  1518. package/dist/api/types/ConversationSource.d.ts +26 -0
  1519. package/dist/api/types/ConversationSource.js +5 -0
  1520. package/dist/api/types/ConversationStatistics.d.ts +46 -0
  1521. package/dist/api/types/ConversationStatistics.js +5 -0
  1522. package/dist/api/types/ConversationTeammates.d.ts +13 -0
  1523. package/dist/api/types/ConversationTeammates.js +5 -0
  1524. package/dist/api/types/CreateArticleRequest.d.ts +24 -0
  1525. package/dist/api/types/CreateArticleRequest.js +5 -0
  1526. package/dist/api/types/CreateArticleRequestState.d.ts +11 -0
  1527. package/dist/api/types/CreateArticleRequestState.js +10 -0
  1528. package/dist/api/types/CreateContactRequest.d.ts +8 -0
  1529. package/dist/api/types/CreateContactRequest.js +5 -0
  1530. package/dist/api/types/CreateContactRequestWithEmail.d.ts +23 -0
  1531. package/dist/api/types/CreateContactRequestWithEmail.js +5 -0
  1532. package/dist/api/types/CreateContactRequestWithExternalId.d.ts +23 -0
  1533. package/dist/api/types/CreateContactRequestWithExternalId.js +5 -0
  1534. package/dist/api/types/CreateContactRequestWithRole.d.ts +23 -0
  1535. package/dist/api/types/CreateContactRequestWithRole.js +5 -0
  1536. package/dist/api/types/CreateDataEventRequest.d.ts +8 -0
  1537. package/dist/api/types/CreateDataEventRequest.js +5 -0
  1538. package/dist/api/types/CreateDataEventRequestWithEmail.d.ts +13 -0
  1539. package/dist/api/types/CreateDataEventRequestWithEmail.js +5 -0
  1540. package/dist/api/types/CreateDataEventRequestWithId.d.ts +13 -0
  1541. package/dist/api/types/CreateDataEventRequestWithId.js +5 -0
  1542. package/dist/api/types/CreateDataEventRequestWithUserId.d.ts +13 -0
  1543. package/dist/api/types/CreateDataEventRequestWithUserId.js +5 -0
  1544. package/dist/api/types/CreateMessageRequest.d.ts +16 -0
  1545. package/dist/api/types/CreateMessageRequest.js +5 -0
  1546. package/dist/api/types/CreateMessageRequestFrom.d.ts +12 -0
  1547. package/dist/api/types/CreateMessageRequestFrom.js +5 -0
  1548. package/dist/api/types/CreateMessageRequestTo.d.ts +13 -0
  1549. package/dist/api/types/CreateMessageRequestTo.js +5 -0
  1550. package/dist/api/types/CreateMessageRequestType.d.ts +11 -0
  1551. package/dist/api/types/CreateMessageRequestType.js +10 -0
  1552. package/dist/api/types/CreateMessageRequestWithEmail.d.ts +20 -0
  1553. package/dist/api/types/CreateMessageRequestWithEmail.js +5 -0
  1554. package/dist/api/types/CreateMessageRequestWithInapp.d.ts +20 -0
  1555. package/dist/api/types/CreateMessageRequestWithInapp.js +5 -0
  1556. package/dist/api/types/CreateOrUpdateCompanyRequest.d.ts +26 -0
  1557. package/dist/api/types/CreateOrUpdateCompanyRequest.js +5 -0
  1558. package/dist/api/types/CreateOrUpdateTagRequest.d.ts +12 -0
  1559. package/dist/api/types/CreateOrUpdateTagRequest.js +5 -0
  1560. package/dist/api/types/CreatePhoneSwitchRequest.d.ts +12 -0
  1561. package/dist/api/types/CreatePhoneSwitchRequest.js +5 -0
  1562. package/dist/api/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
  1563. package/dist/api/types/CreateTicketReplyWithCommentRequest.js +5 -0
  1564. package/dist/api/types/CreateTicketTypeRequest.d.ts +20 -0
  1565. package/dist/api/types/CreateTicketTypeRequest.js +5 -0
  1566. package/dist/api/types/CreateTicketTypeRequestCategory.d.ts +12 -0
  1567. package/dist/api/types/CreateTicketTypeRequestCategory.js +11 -0
  1568. package/dist/api/types/CursorPages.d.ts +19 -0
  1569. package/dist/api/types/CursorPages.js +5 -0
  1570. package/dist/api/types/CustomAttributes.d.ts +8 -0
  1571. package/dist/api/types/CustomAttributes.js +5 -0
  1572. package/dist/api/types/CustomAttributesValue.d.ts +5 -0
  1573. package/dist/api/types/CustomAttributesValue.js +5 -0
  1574. package/dist/api/types/CustomerRequest.d.ts +5 -0
  1575. package/dist/api/types/CustomerRequest.js +5 -0
  1576. package/dist/api/types/CustomerRequestEmail.d.ts +7 -0
  1577. package/dist/api/types/CustomerRequestEmail.js +5 -0
  1578. package/dist/api/types/CustomerRequestIntercomUserId.d.ts +7 -0
  1579. package/dist/api/types/CustomerRequestIntercomUserId.js +5 -0
  1580. package/dist/api/types/CustomerRequestUserId.d.ts +7 -0
  1581. package/dist/api/types/CustomerRequestUserId.js +5 -0
  1582. package/dist/api/types/DataAttributeList.d.ts +13 -0
  1583. package/dist/api/types/DataAttributeList.js +5 -0
  1584. package/dist/api/types/DataEventList.d.ts +15 -0
  1585. package/dist/api/types/DataEventList.js +5 -0
  1586. package/dist/api/types/DataEventListPages.d.ts +10 -0
  1587. package/dist/api/types/DataEventListPages.js +5 -0
  1588. package/dist/api/types/DataEventSummary.d.ts +19 -0
  1589. package/dist/api/types/DataEventSummary.js +5 -0
  1590. package/dist/api/types/DataEventSummaryItem.d.ts +18 -0
  1591. package/dist/api/types/DataEventSummaryItem.js +5 -0
  1592. package/dist/api/types/DataExportCsv.d.ts +60 -0
  1593. package/dist/api/types/DataExportCsv.js +5 -0
  1594. package/dist/api/types/DeletedArticleObject.d.ts +14 -0
  1595. package/dist/api/types/DeletedArticleObject.js +5 -0
  1596. package/dist/api/types/DeletedCollectionObject.d.ts +14 -0
  1597. package/dist/api/types/DeletedCollectionObject.js +5 -0
  1598. package/dist/api/types/DeletedCompanyObject.d.ts +14 -0
  1599. package/dist/api/types/DeletedCompanyObject.js +5 -0
  1600. package/dist/api/types/DeletedObject.d.ts +14 -0
  1601. package/dist/api/types/DeletedObject.js +5 -0
  1602. package/dist/api/types/ErrorErrorsItem.d.ts +11 -0
  1603. package/dist/api/types/ErrorErrorsItem.js +5 -0
  1604. package/dist/api/types/Error_.d.ts +15 -0
  1605. package/dist/api/types/Error_.js +5 -0
  1606. package/dist/api/types/FileAttribute.d.ts +21 -0
  1607. package/dist/api/types/FileAttribute.js +5 -0
  1608. package/dist/api/types/GroupContent.d.ts +14 -0
  1609. package/dist/api/types/GroupContent.js +5 -0
  1610. package/dist/api/types/GroupTranslatedContent.d.ts +85 -0
  1611. package/dist/api/types/GroupTranslatedContent.js +5 -0
  1612. package/dist/api/types/LinkedObject.d.ts +15 -0
  1613. package/dist/api/types/LinkedObject.js +5 -0
  1614. package/dist/api/types/LinkedObjectList.d.ts +17 -0
  1615. package/dist/api/types/LinkedObjectList.js +5 -0
  1616. package/dist/api/types/LinkedObjectType.d.ts +11 -0
  1617. package/dist/api/types/LinkedObjectType.js +10 -0
  1618. package/dist/api/types/MultipleFilterSearchRequest.d.ts +12 -0
  1619. package/dist/api/types/MultipleFilterSearchRequest.js +5 -0
  1620. package/dist/api/types/MultipleFilterSearchRequestOperator.d.ts +11 -0
  1621. package/dist/api/types/MultipleFilterSearchRequestOperator.js +10 -0
  1622. package/dist/api/types/MultipleFilterSearchRequestValue.d.ts +11 -0
  1623. package/dist/api/types/MultipleFilterSearchRequestValue.js +5 -0
  1624. package/dist/api/types/NewsItemRequest.d.ts +25 -0
  1625. package/dist/api/types/NewsItemRequest.js +5 -0
  1626. package/dist/api/types/NewsItemRequestState.d.ts +11 -0
  1627. package/dist/api/types/NewsItemRequestState.js +10 -0
  1628. package/dist/api/types/NoteList.d.ts +16 -0
  1629. package/dist/api/types/NoteList.js +5 -0
  1630. package/dist/api/types/OpenConversationRequest.d.ts +10 -0
  1631. package/dist/api/types/OpenConversationRequest.js +5 -0
  1632. package/dist/api/types/PagesLink.d.ts +16 -0
  1633. package/dist/api/types/PagesLink.js +5 -0
  1634. package/dist/api/types/PaginatedResponse.d.ts +16 -0
  1635. package/dist/api/types/PaginatedResponse.js +5 -0
  1636. package/dist/api/types/PaginatedResponseDataItem.d.ts +13 -0
  1637. package/dist/api/types/PaginatedResponseDataItem.js +5 -0
  1638. package/dist/api/types/PaginatedResponseType.d.ts +11 -0
  1639. package/dist/api/types/PaginatedResponseType.js +10 -0
  1640. package/dist/api/types/PartAttachment.d.ts +22 -0
  1641. package/dist/api/types/PartAttachment.js +5 -0
  1642. package/dist/api/types/PhoneSwitch.d.ts +12 -0
  1643. package/dist/api/types/PhoneSwitch.js +5 -0
  1644. package/dist/api/types/RedactConversationRequest.d.ts +19 -0
  1645. package/dist/api/types/RedactConversationRequest.js +5 -0
  1646. package/dist/api/types/RedactConversationRequestConversationPart.d.ts +12 -0
  1647. package/dist/api/types/RedactConversationRequestConversationPart.js +5 -0
  1648. package/dist/api/types/RedactConversationRequestSource.d.ts +12 -0
  1649. package/dist/api/types/RedactConversationRequestSource.js +5 -0
  1650. package/dist/api/types/Reference.d.ts +12 -0
  1651. package/dist/api/types/Reference.js +5 -0
  1652. package/dist/api/types/ReplyConversationRequest.d.ts +5 -0
  1653. package/dist/api/types/ReplyConversationRequest.js +5 -0
  1654. package/dist/api/types/SearchRequest.d.ts +11 -0
  1655. package/dist/api/types/SearchRequest.js +5 -0
  1656. package/dist/api/types/SearchRequestQuery.d.ts +5 -0
  1657. package/dist/api/types/SearchRequestQuery.js +5 -0
  1658. package/dist/api/types/SegmentList.d.ts +15 -0
  1659. package/dist/api/types/SegmentList.js +5 -0
  1660. package/dist/api/types/SingleFilterSearchRequest.d.ts +15 -0
  1661. package/dist/api/types/SingleFilterSearchRequest.js +5 -0
  1662. package/dist/api/types/SingleFilterSearchRequestOperator.d.ts +19 -0
  1663. package/dist/api/types/SingleFilterSearchRequestOperator.js +18 -0
  1664. package/dist/api/types/SlaApplied.d.ts +16 -0
  1665. package/dist/api/types/SlaApplied.js +5 -0
  1666. package/dist/api/types/SlaAppliedSlaStatus.d.ts +13 -0
  1667. package/dist/api/types/SlaAppliedSlaStatus.js +12 -0
  1668. package/dist/api/types/SnoozeConversationRequest.d.ts +12 -0
  1669. package/dist/api/types/SnoozeConversationRequest.js +5 -0
  1670. package/dist/api/types/SocialProfile.d.ts +14 -0
  1671. package/dist/api/types/SocialProfile.js +5 -0
  1672. package/dist/api/types/StartingAfterPaging.d.ts +9 -0
  1673. package/dist/api/types/StartingAfterPaging.js +5 -0
  1674. package/dist/api/types/SubscriptionTypeList.d.ts +13 -0
  1675. package/dist/api/types/SubscriptionTypeList.js +5 -0
  1676. package/dist/api/types/TagCompanyRequest.d.ts +13 -0
  1677. package/dist/api/types/TagCompanyRequest.js +5 -0
  1678. package/dist/api/types/TagCompanyRequestCompaniesItem.d.ts +9 -0
  1679. package/dist/api/types/TagCompanyRequestCompaniesItem.js +5 -0
  1680. package/dist/api/types/TagList.d.ts +13 -0
  1681. package/dist/api/types/TagList.js +5 -0
  1682. package/dist/api/types/TagMultipleUsersRequest.d.ts +12 -0
  1683. package/dist/api/types/TagMultipleUsersRequest.js +5 -0
  1684. package/dist/api/types/TagMultipleUsersRequestUsersItem.d.ts +7 -0
  1685. package/dist/api/types/TagMultipleUsersRequestUsersItem.js +5 -0
  1686. package/dist/api/types/Tags.d.ts +13 -0
  1687. package/dist/api/types/Tags.js +5 -0
  1688. package/dist/api/types/TeamList.d.ts +13 -0
  1689. package/dist/api/types/TeamList.js +5 -0
  1690. package/dist/api/types/TeamPriorityLevel.d.ts +12 -0
  1691. package/dist/api/types/TeamPriorityLevel.js +5 -0
  1692. package/dist/api/types/TicketCustomAttributes.d.ts +8 -0
  1693. package/dist/api/types/TicketCustomAttributes.js +5 -0
  1694. package/dist/api/types/TicketCustomAttributesValue.d.ts +5 -0
  1695. package/dist/api/types/TicketCustomAttributesValue.js +5 -0
  1696. package/dist/api/types/TicketList.d.ts +16 -0
  1697. package/dist/api/types/TicketList.js +5 -0
  1698. package/dist/api/types/TicketPartAuthor.d.ts +17 -0
  1699. package/dist/api/types/TicketPartAuthor.js +5 -0
  1700. package/dist/api/types/TicketPartAuthorType.d.ts +13 -0
  1701. package/dist/api/types/TicketPartAuthorType.js +12 -0
  1702. package/dist/api/types/TicketParts.d.ts +15 -0
  1703. package/dist/api/types/TicketParts.js +5 -0
  1704. package/dist/api/types/TicketReply.d.ts +26 -0
  1705. package/dist/api/types/TicketReply.js +5 -0
  1706. package/dist/api/types/TicketReplyPartType.d.ts +12 -0
  1707. package/dist/api/types/TicketReplyPartType.js +11 -0
  1708. package/dist/api/types/TicketRequestCustomAttributes.d.ts +8 -0
  1709. package/dist/api/types/TicketRequestCustomAttributes.js +5 -0
  1710. package/dist/api/types/TicketRequestCustomAttributesValue.d.ts +4 -0
  1711. package/dist/api/types/TicketRequestCustomAttributesValue.js +5 -0
  1712. package/dist/api/types/TicketTypeAttribute.d.ts +42 -0
  1713. package/dist/api/types/TicketTypeAttribute.js +5 -0
  1714. package/dist/api/types/TicketTypeAttributeList.d.ts +13 -0
  1715. package/dist/api/types/TicketTypeAttributeList.js +5 -0
  1716. package/dist/api/types/TicketTypeList.d.ts +13 -0
  1717. package/dist/api/types/TicketTypeList.js +5 -0
  1718. package/dist/api/types/Translation.d.ts +14 -0
  1719. package/dist/api/types/Translation.js +5 -0
  1720. package/dist/api/types/UntagCompanyRequest.d.ts +13 -0
  1721. package/dist/api/types/UntagCompanyRequest.js +5 -0
  1722. package/dist/api/types/UntagCompanyRequestCompaniesItem.d.ts +11 -0
  1723. package/dist/api/types/UntagCompanyRequestCompaniesItem.js +5 -0
  1724. package/dist/api/types/UpdateArticleRequest.d.ts +24 -0
  1725. package/dist/api/types/UpdateArticleRequest.js +5 -0
  1726. package/dist/api/types/UpdateArticleRequestState.d.ts +11 -0
  1727. package/dist/api/types/UpdateArticleRequestState.js +10 -0
  1728. package/dist/api/types/UpdateTicketTypeRequest.d.ts +22 -0
  1729. package/dist/api/types/UpdateTicketTypeRequest.js +5 -0
  1730. package/dist/api/types/UpdateTicketTypeRequestCategory.d.ts +12 -0
  1731. package/dist/api/types/UpdateTicketTypeRequestCategory.js +11 -0
  1732. package/dist/api/types/UpdateVisitorRequest.d.ts +8 -0
  1733. package/dist/api/types/UpdateVisitorRequest.js +5 -0
  1734. package/dist/api/types/UpdateVisitorRequestWithId.d.ts +9 -0
  1735. package/dist/api/types/UpdateVisitorRequestWithId.js +5 -0
  1736. package/dist/api/types/UpdateVisitorRequestWithUserId.d.ts +9 -0
  1737. package/dist/api/types/UpdateVisitorRequestWithUserId.js +5 -0
  1738. package/dist/api/types/Visitor.d.ts +69 -0
  1739. package/dist/api/types/Visitor.js +5 -0
  1740. package/dist/api/types/VisitorAvatar.d.ts +9 -0
  1741. package/dist/api/types/VisitorAvatar.js +5 -0
  1742. package/dist/api/types/VisitorCompanies.d.ts +9 -0
  1743. package/dist/api/types/VisitorCompanies.js +5 -0
  1744. package/dist/api/types/VisitorDeletedObject.d.ts +14 -0
  1745. package/dist/api/types/VisitorDeletedObject.js +5 -0
  1746. package/dist/api/types/VisitorLocationData.d.ts +21 -0
  1747. package/dist/api/types/VisitorLocationData.js +5 -0
  1748. package/dist/api/types/VisitorSegments.d.ts +8 -0
  1749. package/dist/api/types/VisitorSegments.js +5 -0
  1750. package/dist/api/types/VisitorSocialProfiles.d.ts +8 -0
  1751. package/dist/api/types/VisitorSocialProfiles.js +5 -0
  1752. package/dist/api/types/VisitorTags.d.ts +9 -0
  1753. package/dist/api/types/VisitorTags.js +5 -0
  1754. package/dist/api/types/VisitorTagsTagsItem.d.ts +11 -0
  1755. package/dist/api/types/VisitorTagsTagsItem.js +5 -0
  1756. package/dist/api/types/index.d.ts +179 -0
  1757. package/dist/api/types/index.js +195 -0
  1758. package/dist/api/version.d.ts +5 -0
  1759. package/dist/api/version.js +5 -0
  1760. package/dist/core/auth/BasicAuth.d.ts +8 -0
  1761. package/dist/core/auth/BasicAuth.js +26 -0
  1762. package/dist/core/auth/BearerToken.d.ts +5 -0
  1763. package/dist/core/auth/BearerToken.js +15 -0
  1764. package/dist/core/auth/index.d.ts +2 -0
  1765. package/dist/core/auth/index.js +7 -0
  1766. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  1767. package/dist/core/fetcher/APIResponse.js +2 -0
  1768. package/dist/core/fetcher/Fetcher.d.ts +38 -0
  1769. package/dist/core/fetcher/Fetcher.js +99 -0
  1770. package/dist/core/fetcher/Supplier.d.ts +4 -0
  1771. package/dist/core/fetcher/Supplier.js +22 -0
  1772. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  1773. package/dist/core/fetcher/createRequestUrl.js +13 -0
  1774. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  1775. package/dist/core/fetcher/getFetchFn.js +55 -0
  1776. package/dist/core/fetcher/getHeader.d.ts +1 -0
  1777. package/dist/core/fetcher/getHeader.js +12 -0
  1778. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  1779. package/dist/core/fetcher/getRequestBody.js +23 -0
  1780. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  1781. package/dist/core/fetcher/getResponseBody.js +48 -0
  1782. package/dist/core/fetcher/index.d.ts +5 -0
  1783. package/dist/core/fetcher/index.js +9 -0
  1784. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  1785. package/dist/core/fetcher/makeRequest.js +40 -0
  1786. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  1787. package/dist/core/fetcher/requestWithRetries.js +32 -0
  1788. package/dist/core/fetcher/signals.d.ts +12 -0
  1789. package/dist/core/fetcher/signals.js +37 -0
  1790. package/dist/core/index.d.ts +5 -0
  1791. package/dist/core/index.js +21 -0
  1792. package/dist/core/pagination/Page.d.ts +29 -0
  1793. package/dist/core/pagination/Page.js +94 -0
  1794. package/dist/core/pagination/Pageable.d.ts +12 -0
  1795. package/dist/core/pagination/Pageable.js +10 -0
  1796. package/dist/core/pagination/index.d.ts +2 -0
  1797. package/dist/core/pagination/index.js +7 -0
  1798. package/dist/core/runtime/index.d.ts +1 -0
  1799. package/dist/core/runtime/index.js +5 -0
  1800. package/dist/core/runtime/runtime.d.ts +9 -0
  1801. package/dist/core/runtime/runtime.js +93 -0
  1802. package/dist/core/utils/index.d.ts +1 -0
  1803. package/dist/core/utils/index.js +5 -0
  1804. package/dist/core/utils/setObjectProperty.d.ts +11 -0
  1805. package/dist/core/utils/setObjectProperty.js +43 -0
  1806. package/dist/environments.d.ts +9 -0
  1807. package/dist/environments.js +11 -0
  1808. package/dist/errors/IntercomError.d.ts +12 -0
  1809. package/dist/errors/IntercomError.js +32 -0
  1810. package/dist/errors/IntercomTimeoutError.d.ts +6 -0
  1811. package/dist/errors/IntercomTimeoutError.js +13 -0
  1812. package/dist/errors/index.d.ts +2 -0
  1813. package/dist/errors/index.js +7 -0
  1814. package/dist/index.d.ts +4 -29
  1815. package/dist/index.js +25 -65
  1816. package/environments.d.ts +9 -0
  1817. package/environments.js +11 -0
  1818. package/errors/IntercomError.d.ts +12 -0
  1819. package/errors/IntercomError.js +32 -0
  1820. package/errors/IntercomTimeoutError.d.ts +6 -0
  1821. package/errors/IntercomTimeoutError.js +13 -0
  1822. package/errors/index.d.ts +2 -0
  1823. package/errors/index.js +7 -0
  1824. package/index.d.ts +4 -0
  1825. package/index.js +34 -0
  1826. package/jest.config.js +5 -0
  1827. package/package.json +31 -53
  1828. package/reference.md +7755 -0
  1829. package/LICENSE +0 -13
  1830. package/dist/admin/admin.types.d.ts +0 -15
  1831. package/dist/admin/admin.types.d.ts.map +0 -1
  1832. package/dist/admin/admin.types.js +0 -3
  1833. package/dist/admin/admin.types.js.map +0 -1
  1834. package/dist/admin.d.ts +0 -48
  1835. package/dist/admin.d.ts.map +0 -1
  1836. package/dist/admin.js +0 -42
  1837. package/dist/admin.js.map +0 -1
  1838. package/dist/article/article.types.d.ts +0 -87
  1839. package/dist/article/article.types.d.ts.map +0 -1
  1840. package/dist/article/article.types.js +0 -45
  1841. package/dist/article/article.types.js.map +0 -1
  1842. package/dist/article.d.ts +0 -34
  1843. package/dist/article.d.ts.map +0 -1
  1844. package/dist/article.js +0 -69
  1845. package/dist/article.js.map +0 -1
  1846. package/dist/client.d.ts +0 -82
  1847. package/dist/client.d.ts.map +0 -1
  1848. package/dist/client.js +0 -325
  1849. package/dist/client.js.map +0 -1
  1850. package/dist/common/common.types.d.ts +0 -69
  1851. package/dist/common/common.types.d.ts.map +0 -1
  1852. package/dist/common/common.types.js +0 -29
  1853. package/dist/common/common.types.js.map +0 -1
  1854. package/dist/company/company.types.d.ts +0 -37
  1855. package/dist/company/company.types.d.ts.map +0 -1
  1856. package/dist/company/company.types.js +0 -3
  1857. package/dist/company/company.types.js.map +0 -1
  1858. package/dist/company.d.ts +0 -63
  1859. package/dist/company.d.ts.map +0 -1
  1860. package/dist/company.js +0 -114
  1861. package/dist/company.js.map +0 -1
  1862. package/dist/contact/contact.types.d.ts +0 -82
  1863. package/dist/contact/contact.types.d.ts.map +0 -1
  1864. package/dist/contact/contact.types.js +0 -3
  1865. package/dist/contact/contact.types.js.map +0 -1
  1866. package/dist/contact.d.ts +0 -121
  1867. package/dist/contact.d.ts.map +0 -1
  1868. package/dist/contact.js +0 -160
  1869. package/dist/contact.js.map +0 -1
  1870. package/dist/conversation/conversation.types.d.ts +0 -144
  1871. package/dist/conversation/conversation.types.d.ts.map +0 -1
  1872. package/dist/conversation/conversation.types.js +0 -50
  1873. package/dist/conversation/conversation.types.js.map +0 -1
  1874. package/dist/conversation.d.ts +0 -176
  1875. package/dist/conversation.d.ts.map +0 -1
  1876. package/dist/conversation.js +0 -289
  1877. package/dist/conversation.js.map +0 -1
  1878. package/dist/count/count.types.d.ts +0 -89
  1879. package/dist/count/count.types.d.ts.map +0 -1
  1880. package/dist/count/count.types.js +0 -17
  1881. package/dist/count/count.types.js.map +0 -1
  1882. package/dist/count.d.ts +0 -18
  1883. package/dist/count.d.ts.map +0 -1
  1884. package/dist/count.js +0 -72
  1885. package/dist/count.js.map +0 -1
  1886. package/dist/dataAttribute/dataAttribute.types.d.ts +0 -32
  1887. package/dist/dataAttribute/dataAttribute.types.d.ts.map +0 -1
  1888. package/dist/dataAttribute/dataAttribute.types.js +0 -18
  1889. package/dist/dataAttribute/dataAttribute.types.js.map +0 -1
  1890. package/dist/dataAttribute.d.ts +0 -33
  1891. package/dist/dataAttribute.d.ts.map +0 -1
  1892. package/dist/dataAttribute.js +0 -49
  1893. package/dist/dataAttribute.js.map +0 -1
  1894. package/dist/dataExport/dataExport.types.d.ts +0 -7
  1895. package/dist/dataExport/dataExport.types.d.ts.map +0 -1
  1896. package/dist/dataExport/dataExport.types.js +0 -3
  1897. package/dist/dataExport/dataExport.types.js.map +0 -1
  1898. package/dist/dataExport.d.ts +0 -18
  1899. package/dist/dataExport.d.ts.map +0 -1
  1900. package/dist/dataExport.js +0 -36
  1901. package/dist/dataExport.js.map +0 -1
  1902. package/dist/errors/badResponse.error.d.ts +0 -9
  1903. package/dist/errors/badResponse.error.d.ts.map +0 -1
  1904. package/dist/errors/badResponse.error.js +0 -35
  1905. package/dist/errors/badResponse.error.js.map +0 -1
  1906. package/dist/event/event.types.d.ts +0 -29
  1907. package/dist/event/event.types.d.ts.map +0 -1
  1908. package/dist/event/event.types.js +0 -3
  1909. package/dist/event/event.types.js.map +0 -1
  1910. package/dist/event.d.ts +0 -41
  1911. package/dist/event.d.ts.map +0 -1
  1912. package/dist/event.js +0 -44
  1913. package/dist/event.js.map +0 -1
  1914. package/dist/helpCenter/helpCenter.types.d.ts +0 -23
  1915. package/dist/helpCenter/helpCenter.types.d.ts.map +0 -1
  1916. package/dist/helpCenter/helpCenter.types.js +0 -3
  1917. package/dist/helpCenter/helpCenter.types.js.map +0 -1
  1918. package/dist/helpCenter.d.ts +0 -58
  1919. package/dist/helpCenter.d.ts.map +0 -1
  1920. package/dist/helpCenter.js +0 -121
  1921. package/dist/helpCenter.js.map +0 -1
  1922. package/dist/index.d.ts.map +0 -1
  1923. package/dist/index.js.map +0 -1
  1924. package/dist/message/message.types.d.ts +0 -17
  1925. package/dist/message/message.types.d.ts.map +0 -1
  1926. package/dist/message/message.types.js +0 -11
  1927. package/dist/message/message.types.js.map +0 -1
  1928. package/dist/message.d.ts +0 -32
  1929. package/dist/message.d.ts.map +0 -1
  1930. package/dist/message.js +0 -35
  1931. package/dist/message.js.map +0 -1
  1932. package/dist/note/note.types.d.ts +0 -13
  1933. package/dist/note/note.types.d.ts.map +0 -1
  1934. package/dist/note/note.types.js +0 -3
  1935. package/dist/note/note.types.js.map +0 -1
  1936. package/dist/note.d.ts +0 -24
  1937. package/dist/note.d.ts.map +0 -1
  1938. package/dist/note.js +0 -40
  1939. package/dist/note.js.map +0 -1
  1940. package/dist/package.json +0 -61
  1941. package/dist/phoneCallRedirect/phoneCallRedirect.types.d.ts +0 -5
  1942. package/dist/phoneCallRedirect/phoneCallRedirect.types.d.ts.map +0 -1
  1943. package/dist/phoneCallRedirect/phoneCallRedirect.types.js +0 -3
  1944. package/dist/phoneCallRedirect/phoneCallRedirect.types.js.map +0 -1
  1945. package/dist/phoneCallRedirect.d.ts +0 -15
  1946. package/dist/phoneCallRedirect.d.ts.map +0 -1
  1947. package/dist/phoneCallRedirect.js +0 -23
  1948. package/dist/phoneCallRedirect.js.map +0 -1
  1949. package/dist/scroll.d.ts +0 -24
  1950. package/dist/scroll.d.ts.map +0 -1
  1951. package/dist/scroll.js +0 -131
  1952. package/dist/scroll.js.map +0 -1
  1953. package/dist/segment/segment.types.d.ts +0 -11
  1954. package/dist/segment/segment.types.d.ts.map +0 -1
  1955. package/dist/segment/segment.types.js +0 -3
  1956. package/dist/segment/segment.types.js.map +0 -1
  1957. package/dist/segment.d.ts +0 -22
  1958. package/dist/segment.d.ts.map +0 -1
  1959. package/dist/segment.js +0 -28
  1960. package/dist/segment.js.map +0 -1
  1961. package/dist/subscription/subscription.types.d.ts +0 -19
  1962. package/dist/subscription/subscription.types.d.ts.map +0 -1
  1963. package/dist/subscription/subscription.types.js +0 -10
  1964. package/dist/subscription/subscription.types.js.map +0 -1
  1965. package/dist/subscription.d.ts +0 -14
  1966. package/dist/subscription.d.ts.map +0 -1
  1967. package/dist/subscription.js +0 -17
  1968. package/dist/subscription.js.map +0 -1
  1969. package/dist/tag/tag.types.d.ts +0 -6
  1970. package/dist/tag/tag.types.d.ts.map +0 -1
  1971. package/dist/tag/tag.types.js +0 -3
  1972. package/dist/tag/tag.types.js.map +0 -1
  1973. package/dist/tag.d.ts +0 -52
  1974. package/dist/tag.d.ts.map +0 -1
  1975. package/dist/tag.js +0 -95
  1976. package/dist/tag.js.map +0 -1
  1977. package/dist/team/team.types.d.ts +0 -7
  1978. package/dist/team/team.types.d.ts.map +0 -1
  1979. package/dist/team/team.types.js +0 -3
  1980. package/dist/team/team.types.js.map +0 -1
  1981. package/dist/team.d.ts +0 -18
  1982. package/dist/team.d.ts.map +0 -1
  1983. package/dist/team.js +0 -23
  1984. package/dist/team.js.map +0 -1
  1985. package/dist/util/time.d.ts +0 -3
  1986. package/dist/util/time.d.ts.map +0 -1
  1987. package/dist/util/time.js +0 -6
  1988. package/dist/util/time.js.map +0 -1
  1989. package/dist/util/url.d.ts +0 -3
  1990. package/dist/util/url.d.ts.map +0 -1
  1991. package/dist/util/url.js +0 -9
  1992. package/dist/util/url.js.map +0 -1
  1993. package/dist/visitor/visitor.types.d.ts +0 -20
  1994. package/dist/visitor/visitor.types.d.ts.map +0 -1
  1995. package/dist/visitor/visitor.types.js +0 -3
  1996. package/dist/visitor/visitor.types.js.map +0 -1
  1997. package/dist/visitor.d.ts +0 -50
  1998. package/dist/visitor.d.ts.map +0 -1
  1999. package/dist/visitor.js +0 -60
  2000. package/dist/visitor.js.map +0 -1
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.fetcher = exports.fetcherImpl = void 0;
13
+ const createRequestUrl_1 = require("./createRequestUrl");
14
+ const getFetchFn_1 = require("./getFetchFn");
15
+ const getRequestBody_1 = require("./getRequestBody");
16
+ const getResponseBody_1 = require("./getResponseBody");
17
+ const makeRequest_1 = require("./makeRequest");
18
+ const requestWithRetries_1 = require("./requestWithRetries");
19
+ function fetcherImpl(args) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const headers = {};
22
+ if (args.body !== undefined && args.contentType != null) {
23
+ headers["Content-Type"] = args.contentType;
24
+ }
25
+ if (args.headers != null) {
26
+ for (const [key, value] of Object.entries(args.headers)) {
27
+ if (value != null) {
28
+ headers[key] = value;
29
+ }
30
+ }
31
+ }
32
+ const url = (0, createRequestUrl_1.createRequestUrl)(args.url, args.queryParameters);
33
+ let requestBody = yield (0, getRequestBody_1.getRequestBody)({
34
+ body: args.body,
35
+ type: args.requestType === "json" ? "json" : "other",
36
+ });
37
+ const fetchFn = yield (0, getFetchFn_1.getFetchFn)();
38
+ try {
39
+ const response = yield (0, requestWithRetries_1.requestWithRetries)(() => __awaiter(this, void 0, void 0, function* () {
40
+ return (0, makeRequest_1.makeRequest)(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials);
41
+ }), args.maxRetries);
42
+ let responseBody = yield (0, getResponseBody_1.getResponseBody)(response, args.responseType);
43
+ if (response.status >= 200 && response.status < 400) {
44
+ return {
45
+ ok: true,
46
+ body: responseBody,
47
+ headers: response.headers,
48
+ };
49
+ }
50
+ else {
51
+ return {
52
+ ok: false,
53
+ error: {
54
+ reason: "status-code",
55
+ statusCode: response.status,
56
+ body: responseBody,
57
+ },
58
+ };
59
+ }
60
+ }
61
+ catch (error) {
62
+ if (args.abortSignal != null && args.abortSignal.aborted) {
63
+ return {
64
+ ok: false,
65
+ error: {
66
+ reason: "unknown",
67
+ errorMessage: "The user aborted a request",
68
+ },
69
+ };
70
+ }
71
+ else if (error instanceof Error && error.name === "AbortError") {
72
+ return {
73
+ ok: false,
74
+ error: {
75
+ reason: "timeout",
76
+ },
77
+ };
78
+ }
79
+ else if (error instanceof Error) {
80
+ return {
81
+ ok: false,
82
+ error: {
83
+ reason: "unknown",
84
+ errorMessage: error.message,
85
+ },
86
+ };
87
+ }
88
+ return {
89
+ ok: false,
90
+ error: {
91
+ reason: "unknown",
92
+ errorMessage: JSON.stringify(error),
93
+ },
94
+ };
95
+ }
96
+ });
97
+ }
98
+ exports.fetcherImpl = fetcherImpl;
99
+ exports.fetcher = fetcherImpl;
@@ -0,0 +1,4 @@
1
+ export declare type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);
2
+ export declare const Supplier: {
3
+ get: <T>(supplier: Supplier<T>) => Promise<T>;
4
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Supplier = void 0;
13
+ exports.Supplier = {
14
+ get: (supplier) => __awaiter(void 0, void 0, void 0, function* () {
15
+ if (typeof supplier === "function") {
16
+ return supplier();
17
+ }
18
+ else {
19
+ return supplier;
20
+ }
21
+ }),
22
+ };
@@ -0,0 +1 @@
1
+ export declare function createRequestUrl(baseUrl: string, queryParameters?: Record<string, string | string[] | object | object[]>): string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createRequestUrl = void 0;
7
+ const qs_1 = __importDefault(require("qs"));
8
+ function createRequestUrl(baseUrl, queryParameters) {
9
+ return Object.keys(queryParameters !== null && queryParameters !== void 0 ? queryParameters : {}).length > 0
10
+ ? `${baseUrl}?${qs_1.default.stringify(queryParameters, { arrayFormat: "repeat" })}`
11
+ : baseUrl;
12
+ }
13
+ exports.createRequestUrl = createRequestUrl;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Returns a fetch function based on the runtime
3
+ */
4
+ export declare function getFetchFn(): Promise<any>;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.getFetchFn = void 0;
36
+ const runtime_1 = require("../runtime");
37
+ /**
38
+ * Returns a fetch function based on the runtime
39
+ */
40
+ function getFetchFn() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ // In Node.js environments, the SDK always uses`node-fetch`.
43
+ if (runtime_1.RUNTIME.type === "node") {
44
+ return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
45
+ }
46
+ // Otherwise the SDK uses global fetch if available,
47
+ // and falls back to node-fetch.
48
+ if (typeof fetch == "function") {
49
+ return fetch;
50
+ }
51
+ // Defaults to node `node-fetch` if global fetch isn't available
52
+ return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
53
+ });
54
+ }
55
+ exports.getFetchFn = getFetchFn;
@@ -0,0 +1 @@
1
+ export declare function getHeader(headers: Record<string, any>, header: string): string | undefined;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getHeader = void 0;
4
+ function getHeader(headers, header) {
5
+ for (const [headerKey, headerValue] of Object.entries(headers)) {
6
+ if (headerKey.toLowerCase() === header.toLowerCase()) {
7
+ return headerValue;
8
+ }
9
+ }
10
+ return undefined;
11
+ }
12
+ exports.getHeader = getHeader;
@@ -0,0 +1,7 @@
1
+ export declare namespace GetRequestBody {
2
+ interface Args {
3
+ body: unknown;
4
+ type: "json" | "file" | "bytes" | "other";
5
+ }
6
+ }
7
+ export declare function getRequestBody({ body, type }: GetRequestBody.Args): Promise<BodyInit | undefined>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getRequestBody = void 0;
13
+ function getRequestBody({ body, type }) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ if (type.includes("json")) {
16
+ return JSON.stringify(body);
17
+ }
18
+ else {
19
+ return body;
20
+ }
21
+ });
22
+ }
23
+ exports.getRequestBody = getRequestBody;
@@ -0,0 +1 @@
1
+ export declare function getResponseBody(response: Response, responseType?: string): Promise<unknown>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getResponseBody = void 0;
13
+ function getResponseBody(response, responseType) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ if (response.body != null && responseType === "blob") {
16
+ return yield response.blob();
17
+ }
18
+ else if (response.body != null && responseType === "streaming") {
19
+ return response.body;
20
+ }
21
+ else if (response.body != null && responseType === "text") {
22
+ return yield response.text();
23
+ }
24
+ else {
25
+ const text = yield response.text();
26
+ if (text.length > 0) {
27
+ try {
28
+ let responseBody = JSON.parse(text);
29
+ return responseBody;
30
+ }
31
+ catch (err) {
32
+ return {
33
+ ok: false,
34
+ error: {
35
+ reason: "non-json",
36
+ statusCode: response.status,
37
+ rawBody: text,
38
+ },
39
+ };
40
+ }
41
+ }
42
+ else {
43
+ return undefined;
44
+ }
45
+ }
46
+ });
47
+ }
48
+ exports.getResponseBody = getResponseBody;
@@ -0,0 +1,5 @@
1
+ export type { APIResponse } from "./APIResponse";
2
+ export { fetcher } from "./Fetcher";
3
+ export type { Fetcher, FetchFunction } from "./Fetcher";
4
+ export { getHeader } from "./getHeader";
5
+ export { Supplier } from "./Supplier";
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Supplier = exports.getHeader = exports.fetcher = void 0;
4
+ var Fetcher_1 = require("./Fetcher");
5
+ Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return Fetcher_1.fetcher; } });
6
+ var getHeader_1 = require("./getHeader");
7
+ Object.defineProperty(exports, "getHeader", { enumerable: true, get: function () { return getHeader_1.getHeader; } });
8
+ var Supplier_1 = require("./Supplier");
9
+ Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return Supplier_1.Supplier; } });
@@ -0,0 +1 @@
1
+ export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number | undefined, abortSignal?: AbortSignal | undefined, withCredentials?: boolean | undefined) => Promise<Response>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.makeRequest = void 0;
13
+ const signals_1 = require("./signals");
14
+ const makeRequest = (fetchFn, url, method, headers, requestBody, timeoutMs, abortSignal, withCredentials) => __awaiter(void 0, void 0, void 0, function* () {
15
+ const signals = [];
16
+ // Add timeout signal
17
+ let timeoutAbortId = undefined;
18
+ if (timeoutMs != null) {
19
+ const { signal, abortId } = (0, signals_1.getTimeoutSignal)(timeoutMs);
20
+ timeoutAbortId = abortId;
21
+ signals.push(signal);
22
+ }
23
+ // Add arbitrary signal
24
+ if (abortSignal != null) {
25
+ signals.push(abortSignal);
26
+ }
27
+ let newSignals = (0, signals_1.anySignal)(signals);
28
+ const response = yield fetchFn(url, {
29
+ method: method,
30
+ headers,
31
+ body: requestBody,
32
+ signal: newSignals,
33
+ credentials: withCredentials ? "include" : undefined,
34
+ });
35
+ if (timeoutAbortId != null) {
36
+ clearTimeout(timeoutAbortId);
37
+ }
38
+ return response;
39
+ });
40
+ exports.makeRequest = makeRequest;
@@ -0,0 +1 @@
1
+ export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number): Promise<Response>;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.requestWithRetries = void 0;
13
+ const INITIAL_RETRY_DELAY = 1;
14
+ const MAX_RETRY_DELAY = 60;
15
+ const DEFAULT_MAX_RETRIES = 2;
16
+ function requestWithRetries(requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ let response = yield requestFn();
19
+ for (let i = 0; i < maxRetries; ++i) {
20
+ if ([408, 409, 429].includes(response.status) || response.status >= 500) {
21
+ const delay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY);
22
+ yield new Promise((resolve) => setTimeout(resolve, delay));
23
+ response = yield requestFn();
24
+ }
25
+ else {
26
+ break;
27
+ }
28
+ }
29
+ return response;
30
+ });
31
+ }
32
+ exports.requestWithRetries = requestWithRetries;
@@ -0,0 +1,12 @@
1
+ /// <reference types="node" />
2
+ export declare function getTimeoutSignal(timeoutMs: number): {
3
+ signal: AbortSignal;
4
+ abortId: NodeJS.Timeout;
5
+ };
6
+ /**
7
+ * Returns an abort signal that is getting aborted when
8
+ * at least one of the specified abort signals is aborted.
9
+ *
10
+ * Requires at least node.js 18.
11
+ */
12
+ export declare function anySignal(...args: AbortSignal[] | [AbortSignal[]]): AbortSignal;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.anySignal = exports.getTimeoutSignal = void 0;
4
+ const TIMEOUT = "timeout";
5
+ function getTimeoutSignal(timeoutMs) {
6
+ const controller = new AbortController();
7
+ const abortId = setTimeout(() => controller.abort(TIMEOUT), timeoutMs);
8
+ return { signal: controller.signal, abortId };
9
+ }
10
+ exports.getTimeoutSignal = getTimeoutSignal;
11
+ /**
12
+ * Returns an abort signal that is getting aborted when
13
+ * at least one of the specified abort signals is aborted.
14
+ *
15
+ * Requires at least node.js 18.
16
+ */
17
+ function anySignal(...args) {
18
+ // Allowing signals to be passed either as array
19
+ // of signals or as multiple arguments.
20
+ const signals = (args.length === 1 && Array.isArray(args[0]) ? args[0] : args);
21
+ const controller = new AbortController();
22
+ for (const signal of signals) {
23
+ if (signal.aborted) {
24
+ // Exiting early if one of the signals
25
+ // is already aborted.
26
+ controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
27
+ break;
28
+ }
29
+ // Listening for signals and removing the listeners
30
+ // when at least one symbol is aborted.
31
+ signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
32
+ signal: controller.signal,
33
+ });
34
+ }
35
+ return controller.signal;
36
+ }
37
+ exports.anySignal = anySignal;
@@ -0,0 +1,5 @@
1
+ export * from "./fetcher";
2
+ export * from "./auth";
3
+ export * from "./runtime";
4
+ export * from "./utils";
5
+ export * from "./pagination";
package/core/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./fetcher"), exports);
18
+ __exportStar(require("./auth"), exports);
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./utils"), exports);
21
+ __exportStar(require("./pagination"), exports);
@@ -0,0 +1,29 @@
1
+ /**
2
+ * A page of results from a paginated API.
3
+ *
4
+ * @template T The type of the items in the page.
5
+ */
6
+ export declare class Page<T> implements AsyncIterable<T> {
7
+ data: T[];
8
+ private response;
9
+ private _hasNextPage;
10
+ private getItems;
11
+ private loadNextPage;
12
+ constructor({ response, hasNextPage, getItems, loadPage, }: {
13
+ response: unknown;
14
+ hasNextPage: (response: unknown) => boolean;
15
+ getItems: (response: unknown) => T[];
16
+ loadPage: (response: unknown) => Promise<any>;
17
+ });
18
+ /**
19
+ * Retrieves the next page
20
+ * @returns this
21
+ */
22
+ getNextPage(): Promise<this>;
23
+ /**
24
+ * @returns whether there is a next page to load
25
+ */
26
+ hasNextPage(): boolean;
27
+ private iterMessages;
28
+ [Symbol.asyncIterator](): AsyncIterator<T, void, any>;
29
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
12
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
13
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
14
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
15
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
16
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
17
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
18
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
19
+ function fulfill(value) { resume("next", value); }
20
+ function reject(value) { resume("throw", value); }
21
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
22
+ };
23
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
24
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
25
+ var m = o[Symbol.asyncIterator], i;
26
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
27
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
28
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.Page = void 0;
32
+ /**
33
+ * A page of results from a paginated API.
34
+ *
35
+ * @template T The type of the items in the page.
36
+ */
37
+ class Page {
38
+ constructor({ response, hasNextPage, getItems, loadPage, }) {
39
+ this.response = response;
40
+ this.data = getItems(response);
41
+ this._hasNextPage = hasNextPage;
42
+ this.getItems = getItems;
43
+ this.loadNextPage = loadPage;
44
+ }
45
+ /**
46
+ * Retrieves the next page
47
+ * @returns this
48
+ */
49
+ getNextPage() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ this.response = yield this.loadNextPage(this.response);
52
+ this.data = this.getItems(this.response);
53
+ return this;
54
+ });
55
+ }
56
+ /**
57
+ * @returns whether there is a next page to load
58
+ */
59
+ hasNextPage() {
60
+ return this._hasNextPage(this.response);
61
+ }
62
+ iterMessages() {
63
+ return __asyncGenerator(this, arguments, function* iterMessages_1() {
64
+ for (const item of this.data) {
65
+ yield yield __await(item);
66
+ }
67
+ while (this.hasNextPage()) {
68
+ yield __await(this.getNextPage());
69
+ for (const item of this.data) {
70
+ yield yield __await(item);
71
+ }
72
+ }
73
+ });
74
+ }
75
+ [Symbol.asyncIterator]() {
76
+ return __asyncGenerator(this, arguments, function* _a() {
77
+ var e_1, _b;
78
+ try {
79
+ for (var _c = __asyncValues(this.iterMessages()), _d; _d = yield __await(_c.next()), !_d.done;) {
80
+ const message = _d.value;
81
+ yield yield __await(message);
82
+ }
83
+ }
84
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
+ finally {
86
+ try {
87
+ if (_d && !_d.done && (_b = _c.return)) yield __await(_b.call(_c));
88
+ }
89
+ finally { if (e_1) throw e_1.error; }
90
+ }
91
+ });
92
+ }
93
+ }
94
+ exports.Page = Page;
@@ -0,0 +1,12 @@
1
+ import { Page } from "./Page";
2
+ export declare namespace Pageable {
3
+ interface Args<Response, Item> {
4
+ response: Response;
5
+ hasNextPage: (response: Response) => boolean;
6
+ getItems: (response: Response) => Item[];
7
+ loadPage: (response: Response) => Promise<Response>;
8
+ }
9
+ }
10
+ export declare class Pageable<R, T> extends Page<T> {
11
+ constructor(args: Pageable.Args<R, T>);
12
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pageable = void 0;
4
+ const Page_1 = require("./Page");
5
+ class Pageable extends Page_1.Page {
6
+ constructor(args) {
7
+ super(args);
8
+ }
9
+ }
10
+ exports.Pageable = Pageable;
@@ -0,0 +1,2 @@
1
+ export { Page } from "./Page";
2
+ export { Pageable } from "./Pageable";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pageable = exports.Page = void 0;
4
+ var Page_1 = require("./Page");
5
+ Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
6
+ var Pageable_1 = require("./Pageable");
7
+ Object.defineProperty(exports, "Pageable", { enumerable: true, get: function () { return Pageable_1.Pageable; } });
@@ -0,0 +1 @@
1
+ export { RUNTIME } from "./runtime";