@ikatec/digisac-api-sdk 4.9.0 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/README.md +36 -12
  2. package/dist/apis/absence/AbsenceApi.cjs +12 -0
  3. package/dist/apis/absence/AbsenceApi.cjs.map +1 -1
  4. package/dist/apis/absence/AbsenceApi.d.ts +9 -0
  5. package/dist/apis/absence/AbsenceApi.d.ts.map +1 -1
  6. package/dist/apis/absence/AbsenceApi.mjs +12 -0
  7. package/dist/apis/absence/AbsenceApi.mjs.map +1 -1
  8. package/dist/apis/acceptanceTerms/AcceptanceTermsApi.cjs +8 -0
  9. package/dist/apis/acceptanceTerms/AcceptanceTermsApi.cjs.map +1 -1
  10. package/dist/apis/acceptanceTerms/AcceptanceTermsApi.d.ts +8 -1
  11. package/dist/apis/acceptanceTerms/AcceptanceTermsApi.d.ts.map +1 -1
  12. package/dist/apis/acceptanceTerms/AcceptanceTermsApi.mjs +8 -0
  13. package/dist/apis/acceptanceTerms/AcceptanceTermsApi.mjs.map +1 -1
  14. package/dist/apis/accounts/AccountsApi.cjs +5 -0
  15. package/dist/apis/accounts/AccountsApi.cjs.map +1 -1
  16. package/dist/apis/accounts/AccountsApi.d.ts +5 -0
  17. package/dist/apis/accounts/AccountsApi.d.ts.map +1 -1
  18. package/dist/apis/accounts/AccountsApi.mjs +5 -0
  19. package/dist/apis/accounts/AccountsApi.mjs.map +1 -1
  20. package/dist/apis/accounts/types.d.ts +2 -0
  21. package/dist/apis/accounts/types.d.ts.map +1 -1
  22. package/dist/apis/activityLog/ActivityLogApi.cjs +12 -0
  23. package/dist/apis/activityLog/ActivityLogApi.cjs.map +1 -1
  24. package/dist/apis/activityLog/ActivityLogApi.d.ts +8 -0
  25. package/dist/apis/activityLog/ActivityLogApi.d.ts.map +1 -1
  26. package/dist/apis/activityLog/ActivityLogApi.mjs +12 -0
  27. package/dist/apis/activityLog/ActivityLogApi.mjs.map +1 -1
  28. package/dist/apis/categories/CategoriesApi.cjs +7 -0
  29. package/dist/apis/categories/CategoriesApi.cjs.map +1 -1
  30. package/dist/apis/categories/CategoriesApi.d.ts +7 -1
  31. package/dist/apis/categories/CategoriesApi.d.ts.map +1 -1
  32. package/dist/apis/categories/CategoriesApi.mjs +7 -0
  33. package/dist/apis/categories/CategoriesApi.mjs.map +1 -1
  34. package/dist/apis/clientFeedback/ClientFeedbackApi.cjs +5 -1
  35. package/dist/apis/clientFeedback/ClientFeedbackApi.cjs.map +1 -1
  36. package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts +5 -1
  37. package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts.map +1 -1
  38. package/dist/apis/clientFeedback/ClientFeedbackApi.mjs +5 -1
  39. package/dist/apis/clientFeedback/ClientFeedbackApi.mjs.map +1 -1
  40. package/dist/apis/contactBlockLists/ContactBlockListsApi.cjs +36 -0
  41. package/dist/apis/contactBlockLists/ContactBlockListsApi.cjs.map +1 -1
  42. package/dist/apis/contactBlockLists/ContactBlockListsApi.d.ts +32 -1
  43. package/dist/apis/contactBlockLists/ContactBlockListsApi.d.ts.map +1 -1
  44. package/dist/apis/contactBlockLists/ContactBlockListsApi.mjs +36 -0
  45. package/dist/apis/contactBlockLists/ContactBlockListsApi.mjs.map +1 -1
  46. package/dist/apis/contactBlockLists/types.d.ts +6 -1
  47. package/dist/apis/contactBlockLists/types.d.ts.map +1 -1
  48. package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.cjs +37 -0
  49. package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.cjs.map +1 -1
  50. package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.d.ts +33 -1
  51. package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.d.ts.map +1 -1
  52. package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.mjs +37 -0
  53. package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.mjs.map +1 -1
  54. package/dist/apis/contactBlockListsControls/types.d.ts +7 -0
  55. package/dist/apis/contactBlockListsControls/types.d.ts.map +1 -1
  56. package/dist/apis/contacts/ContactsApi.cjs +16 -3
  57. package/dist/apis/contacts/ContactsApi.cjs.map +1 -1
  58. package/dist/apis/contacts/ContactsApi.d.ts +16 -5
  59. package/dist/apis/contacts/ContactsApi.d.ts.map +1 -1
  60. package/dist/apis/contacts/ContactsApi.mjs +16 -3
  61. package/dist/apis/contacts/ContactsApi.mjs.map +1 -1
  62. package/dist/apis/contacts/types.d.ts +6 -1
  63. package/dist/apis/contacts/types.d.ts.map +1 -1
  64. package/dist/apis/creditMovements/CreditMovementsApi.cjs +17 -0
  65. package/dist/apis/creditMovements/CreditMovementsApi.cjs.map +1 -1
  66. package/dist/apis/creditMovements/CreditMovementsApi.d.ts +11 -0
  67. package/dist/apis/creditMovements/CreditMovementsApi.d.ts.map +1 -1
  68. package/dist/apis/creditMovements/CreditMovementsApi.mjs +17 -0
  69. package/dist/apis/creditMovements/CreditMovementsApi.mjs.map +1 -1
  70. package/dist/apis/customFields/CustomFieldsApi.cjs +7 -0
  71. package/dist/apis/customFields/CustomFieldsApi.cjs.map +1 -1
  72. package/dist/apis/customFields/CustomFieldsApi.d.ts +7 -1
  73. package/dist/apis/customFields/CustomFieldsApi.d.ts.map +1 -1
  74. package/dist/apis/customFields/CustomFieldsApi.mjs +7 -0
  75. package/dist/apis/customFields/CustomFieldsApi.mjs.map +1 -1
  76. package/dist/apis/departments/DepartmentsApi.cjs +21 -0
  77. package/dist/apis/departments/DepartmentsApi.cjs.map +1 -1
  78. package/dist/apis/departments/DepartmentsApi.d.ts +20 -2
  79. package/dist/apis/departments/DepartmentsApi.d.ts.map +1 -1
  80. package/dist/apis/departments/DepartmentsApi.mjs +21 -0
  81. package/dist/apis/departments/DepartmentsApi.mjs.map +1 -1
  82. package/dist/apis/departments/types.d.ts +5 -0
  83. package/dist/apis/departments/types.d.ts.map +1 -1
  84. package/dist/apis/distribution/DistributionApi.cjs +32 -0
  85. package/dist/apis/distribution/DistributionApi.cjs.map +1 -1
  86. package/dist/apis/distribution/DistributionApi.d.ts +26 -1
  87. package/dist/apis/distribution/DistributionApi.d.ts.map +1 -1
  88. package/dist/apis/distribution/DistributionApi.mjs +32 -0
  89. package/dist/apis/distribution/DistributionApi.mjs.map +1 -1
  90. package/dist/apis/distribution/types.d.ts +18 -1
  91. package/dist/apis/distribution/types.d.ts.map +1 -1
  92. package/dist/apis/files/FilesApi.cjs +49 -0
  93. package/dist/apis/files/FilesApi.cjs.map +1 -1
  94. package/dist/apis/files/FilesApi.d.ts +45 -2
  95. package/dist/apis/files/FilesApi.d.ts.map +1 -1
  96. package/dist/apis/files/FilesApi.mjs +49 -0
  97. package/dist/apis/files/FilesApi.mjs.map +1 -1
  98. package/dist/apis/files/types.d.ts +45 -7
  99. package/dist/apis/files/types.d.ts.map +1 -1
  100. package/dist/apis/holiday/HolidayApi.cjs +7 -0
  101. package/dist/apis/holiday/HolidayApi.cjs.map +1 -1
  102. package/dist/apis/holiday/HolidayApi.d.ts +7 -1
  103. package/dist/apis/holiday/HolidayApi.d.ts.map +1 -1
  104. package/dist/apis/holiday/HolidayApi.mjs +7 -0
  105. package/dist/apis/holiday/HolidayApi.mjs.map +1 -1
  106. package/dist/apis/integrations/IntegrationsApi.cjs +24 -0
  107. package/dist/apis/integrations/IntegrationsApi.cjs.map +1 -1
  108. package/dist/apis/integrations/IntegrationsApi.d.ts +21 -2
  109. package/dist/apis/integrations/IntegrationsApi.d.ts.map +1 -1
  110. package/dist/apis/integrations/IntegrationsApi.mjs +24 -0
  111. package/dist/apis/integrations/IntegrationsApi.mjs.map +1 -1
  112. package/dist/apis/integrations/types.d.ts +15 -6
  113. package/dist/apis/integrations/types.d.ts.map +1 -1
  114. package/dist/apis/interactiveMessages/InteractiveMessagesApi.cjs +7 -0
  115. package/dist/apis/interactiveMessages/InteractiveMessagesApi.cjs.map +1 -1
  116. package/dist/apis/interactiveMessages/InteractiveMessagesApi.d.ts +7 -1
  117. package/dist/apis/interactiveMessages/InteractiveMessagesApi.d.ts.map +1 -1
  118. package/dist/apis/interactiveMessages/InteractiveMessagesApi.mjs +7 -0
  119. package/dist/apis/interactiveMessages/InteractiveMessagesApi.mjs.map +1 -1
  120. package/dist/apis/kanbanBoards/KanbanBoardsApi.cjs +7 -0
  121. package/dist/apis/kanbanBoards/KanbanBoardsApi.cjs.map +1 -1
  122. package/dist/apis/kanbanBoards/KanbanBoardsApi.d.ts +7 -1
  123. package/dist/apis/kanbanBoards/KanbanBoardsApi.d.ts.map +1 -1
  124. package/dist/apis/kanbanBoards/KanbanBoardsApi.mjs +7 -0
  125. package/dist/apis/kanbanBoards/KanbanBoardsApi.mjs.map +1 -1
  126. package/dist/apis/kanbanCards/KanbanCardsApi.cjs +7 -0
  127. package/dist/apis/kanbanCards/KanbanCardsApi.cjs.map +1 -1
  128. package/dist/apis/kanbanCards/KanbanCardsApi.d.ts +7 -1
  129. package/dist/apis/kanbanCards/KanbanCardsApi.d.ts.map +1 -1
  130. package/dist/apis/kanbanCards/KanbanCardsApi.mjs +7 -0
  131. package/dist/apis/kanbanCards/KanbanCardsApi.mjs.map +1 -1
  132. package/dist/apis/knowledgeBase/KnowledgeBaseApi.cjs +8 -0
  133. package/dist/apis/knowledgeBase/KnowledgeBaseApi.cjs.map +1 -1
  134. package/dist/apis/knowledgeBase/KnowledgeBaseApi.d.ts +8 -1
  135. package/dist/apis/knowledgeBase/KnowledgeBaseApi.d.ts.map +1 -1
  136. package/dist/apis/knowledgeBase/KnowledgeBaseApi.mjs +8 -0
  137. package/dist/apis/knowledgeBase/KnowledgeBaseApi.mjs.map +1 -1
  138. package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.cjs +8 -0
  139. package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.cjs.map +1 -1
  140. package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.d.ts +8 -1
  141. package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.d.ts.map +1 -1
  142. package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.mjs +8 -0
  143. package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.mjs.map +1 -1
  144. package/dist/apis/messages/MessagesApi.cjs +23 -3
  145. package/dist/apis/messages/MessagesApi.cjs.map +1 -1
  146. package/dist/apis/messages/MessagesApi.d.ts +19 -3
  147. package/dist/apis/messages/MessagesApi.d.ts.map +1 -1
  148. package/dist/apis/messages/MessagesApi.mjs +23 -3
  149. package/dist/apis/messages/MessagesApi.mjs.map +1 -1
  150. package/dist/apis/messages/types.d.ts +3 -0
  151. package/dist/apis/messages/types.d.ts.map +1 -1
  152. package/dist/apis/notifications/NotificationsApi.cjs +7 -0
  153. package/dist/apis/notifications/NotificationsApi.cjs.map +1 -1
  154. package/dist/apis/notifications/NotificationsApi.d.ts +7 -1
  155. package/dist/apis/notifications/NotificationsApi.d.ts.map +1 -1
  156. package/dist/apis/notifications/NotificationsApi.mjs +7 -0
  157. package/dist/apis/notifications/NotificationsApi.mjs.map +1 -1
  158. package/dist/apis/organizations/OrganizationsApi.cjs +7 -0
  159. package/dist/apis/organizations/OrganizationsApi.cjs.map +1 -1
  160. package/dist/apis/organizations/OrganizationsApi.d.ts +7 -1
  161. package/dist/apis/organizations/OrganizationsApi.d.ts.map +1 -1
  162. package/dist/apis/organizations/OrganizationsApi.mjs +7 -0
  163. package/dist/apis/organizations/OrganizationsApi.mjs.map +1 -1
  164. package/dist/apis/people/PeopleApi.cjs +7 -0
  165. package/dist/apis/people/PeopleApi.cjs.map +1 -1
  166. package/dist/apis/people/PeopleApi.d.ts +7 -1
  167. package/dist/apis/people/PeopleApi.d.ts.map +1 -1
  168. package/dist/apis/people/PeopleApi.mjs +7 -0
  169. package/dist/apis/people/PeopleApi.mjs.map +1 -1
  170. package/dist/apis/planAiHistory/PlanAiHistoryApi.cjs +16 -0
  171. package/dist/apis/planAiHistory/PlanAiHistoryApi.cjs.map +1 -1
  172. package/dist/apis/planAiHistory/PlanAiHistoryApi.d.ts +10 -0
  173. package/dist/apis/planAiHistory/PlanAiHistoryApi.d.ts.map +1 -1
  174. package/dist/apis/planAiHistory/PlanAiHistoryApi.mjs +16 -0
  175. package/dist/apis/planAiHistory/PlanAiHistoryApi.mjs.map +1 -1
  176. package/dist/apis/roles/RolesApi.cjs +7 -0
  177. package/dist/apis/roles/RolesApi.cjs.map +1 -1
  178. package/dist/apis/roles/RolesApi.d.ts +6 -1
  179. package/dist/apis/roles/RolesApi.d.ts.map +1 -1
  180. package/dist/apis/roles/RolesApi.mjs +7 -0
  181. package/dist/apis/roles/RolesApi.mjs.map +1 -1
  182. package/dist/apis/services/ServicesApi.cjs +68 -0
  183. package/dist/apis/services/ServicesApi.cjs.map +1 -1
  184. package/dist/apis/services/ServicesApi.d.ts +53 -1
  185. package/dist/apis/services/ServicesApi.d.ts.map +1 -1
  186. package/dist/apis/services/ServicesApi.mjs +68 -0
  187. package/dist/apis/services/ServicesApi.mjs.map +1 -1
  188. package/dist/apis/services/types.d.ts +15 -0
  189. package/dist/apis/services/types.d.ts.map +1 -1
  190. package/dist/apis/stickers/StickersApi.cjs +20 -0
  191. package/dist/apis/stickers/StickersApi.cjs.map +1 -1
  192. package/dist/apis/stickers/StickersApi.d.ts +15 -0
  193. package/dist/apis/stickers/StickersApi.d.ts.map +1 -1
  194. package/dist/apis/stickers/StickersApi.mjs +20 -0
  195. package/dist/apis/stickers/StickersApi.mjs.map +1 -1
  196. package/dist/apis/tags/TagsApi.cjs +7 -0
  197. package/dist/apis/tags/TagsApi.cjs.map +1 -1
  198. package/dist/apis/tags/TagsApi.d.ts +7 -1
  199. package/dist/apis/tags/TagsApi.d.ts.map +1 -1
  200. package/dist/apis/tags/TagsApi.mjs +7 -0
  201. package/dist/apis/tags/TagsApi.mjs.map +1 -1
  202. package/dist/apis/timetable/TimetableApi.cjs +7 -0
  203. package/dist/apis/timetable/TimetableApi.cjs.map +1 -1
  204. package/dist/apis/timetable/TimetableApi.d.ts +7 -1
  205. package/dist/apis/timetable/TimetableApi.d.ts.map +1 -1
  206. package/dist/apis/timetable/TimetableApi.mjs +7 -0
  207. package/dist/apis/timetable/TimetableApi.mjs.map +1 -1
  208. package/dist/apis/users/UsersApi.cjs +8 -0
  209. package/dist/apis/users/UsersApi.cjs.map +1 -1
  210. package/dist/apis/users/UsersApi.d.ts +8 -1
  211. package/dist/apis/users/UsersApi.d.ts.map +1 -1
  212. package/dist/apis/users/UsersApi.mjs +8 -0
  213. package/dist/apis/users/UsersApi.mjs.map +1 -1
  214. package/dist/apis/users/types.d.ts +15 -0
  215. package/dist/apis/users/types.d.ts.map +1 -1
  216. package/dist/apis/webhooks/WebhooksApi.cjs +7 -0
  217. package/dist/apis/webhooks/WebhooksApi.cjs.map +1 -1
  218. package/dist/apis/webhooks/WebhooksApi.d.ts +7 -1
  219. package/dist/apis/webhooks/WebhooksApi.d.ts.map +1 -1
  220. package/dist/apis/webhooks/WebhooksApi.mjs +7 -0
  221. package/dist/apis/webhooks/WebhooksApi.mjs.map +1 -1
  222. package/dist/core/ApiClient.d.ts +14 -0
  223. package/dist/core/ApiClient.d.ts.map +1 -1
  224. package/dist/core/ArchivableCrudApi.cjs.map +1 -1
  225. package/dist/core/ArchivableCrudApi.d.ts +1 -1
  226. package/dist/core/ArchivableCrudApi.d.ts.map +1 -1
  227. package/dist/core/ArchivableCrudApi.mjs.map +1 -1
  228. package/dist/core/BaseApiClient.cjs +24 -3
  229. package/dist/core/BaseApiClient.cjs.map +1 -1
  230. package/dist/core/BaseApiClient.d.ts +14 -0
  231. package/dist/core/BaseApiClient.d.ts.map +1 -1
  232. package/dist/core/BaseApiClient.mjs +24 -3
  233. package/dist/core/BaseApiClient.mjs.map +1 -1
  234. package/dist/core/BaseCrudApi.cjs +3 -1
  235. package/dist/core/BaseCrudApi.cjs.map +1 -1
  236. package/dist/core/BaseCrudApi.d.ts +6 -4
  237. package/dist/core/BaseCrudApi.d.ts.map +1 -1
  238. package/dist/core/BaseCrudApi.mjs +3 -1
  239. package/dist/core/BaseCrudApi.mjs.map +1 -1
  240. package/dist/core/requestExternal.cjs +33 -0
  241. package/dist/core/requestExternal.cjs.map +1 -0
  242. package/dist/core/requestExternal.d.ts +9 -0
  243. package/dist/core/requestExternal.d.ts.map +1 -0
  244. package/dist/core/requestExternal.mjs +32 -0
  245. package/dist/core/requestExternal.mjs.map +1 -0
  246. package/dist/core/types.d.ts +1 -1
  247. package/dist/core/types.d.ts.map +1 -1
  248. package/package.json +1 -1
  249. package/src/apis/absence/AbsenceApi.ts +19 -0
  250. package/src/apis/acceptanceTerms/AcceptanceTermsApi.ts +13 -1
  251. package/src/apis/accounts/AccountsApi.ts +5 -0
  252. package/src/apis/accounts/types.ts +2 -0
  253. package/src/apis/activityLog/ActivityLogApi.ts +18 -0
  254. package/src/apis/categories/CategoriesApi.ts +12 -1
  255. package/src/apis/clientFeedback/ClientFeedbackApi.ts +5 -1
  256. package/src/apis/contactBlockLists/ContactBlockListsApi.test.ts +57 -0
  257. package/src/apis/contactBlockLists/ContactBlockListsApi.ts +57 -1
  258. package/src/apis/contactBlockLists/types.ts +6 -1
  259. package/src/apis/contactBlockListsControls/ContactBlockListsControlsApi.test.ts +48 -0
  260. package/src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts +59 -1
  261. package/src/apis/contactBlockListsControls/types.ts +7 -0
  262. package/src/apis/contacts/ContactsApi.test.ts +20 -4
  263. package/src/apis/contacts/ContactsApi.ts +24 -5
  264. package/src/apis/contacts/types.ts +7 -1
  265. package/src/apis/creditMovements/CreditMovementsApi.ts +27 -0
  266. package/src/apis/customFields/CustomFieldsApi.ts +12 -1
  267. package/src/apis/departments/DepartmentsApi.test.ts +88 -0
  268. package/src/apis/departments/DepartmentsApi.ts +41 -2
  269. package/src/apis/departments/types.ts +6 -0
  270. package/src/apis/distribution/DistributionApi.test.ts +65 -0
  271. package/src/apis/distribution/DistributionApi.ts +50 -1
  272. package/src/apis/distribution/types.ts +17 -1
  273. package/src/apis/files/FilesApi.test.ts +122 -0
  274. package/src/apis/files/FilesApi.ts +107 -2
  275. package/src/apis/files/types.ts +48 -7
  276. package/src/apis/holiday/HolidayApi.ts +16 -1
  277. package/src/apis/integrations/IntegrationsApi.test.ts +42 -0
  278. package/src/apis/integrations/IntegrationsApi.ts +46 -2
  279. package/src/apis/integrations/types.ts +25 -6
  280. package/src/apis/interactiveMessages/InteractiveMessagesApi.ts +12 -1
  281. package/src/apis/kanbanBoards/KanbanBoardsApi.ts +12 -1
  282. package/src/apis/kanbanCards/KanbanCardsApi.ts +12 -1
  283. package/src/apis/knowledgeBase/KnowledgeBaseApi.ts +13 -1
  284. package/src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.ts +13 -1
  285. package/src/apis/messages/MessagesApi.test.ts +13 -7
  286. package/src/apis/messages/MessagesApi.ts +29 -3
  287. package/src/apis/messages/types.ts +3 -0
  288. package/src/apis/notifications/NotificationsApi.ts +12 -1
  289. package/src/apis/organizations/OrganizationsApi.ts +12 -1
  290. package/src/apis/payloads.test-d.ts +172 -0
  291. package/src/apis/people/PeopleApi.ts +16 -1
  292. package/src/apis/planAiHistory/PlanAiHistoryApi.ts +26 -0
  293. package/src/apis/roles/RolesApi.ts +10 -1
  294. package/src/apis/services/ServicesApi.test.ts +45 -0
  295. package/src/apis/services/ServicesApi.ts +91 -1
  296. package/src/apis/services/types.ts +16 -0
  297. package/src/apis/stickers/StickersApi.ts +32 -0
  298. package/src/apis/tags/TagsApi.ts +16 -1
  299. package/src/apis/timetable/TimetableApi.ts +12 -1
  300. package/src/apis/users/UsersApi.ts +17 -1
  301. package/src/apis/users/types.ts +11 -0
  302. package/src/apis/webhooks/WebhooksApi.ts +16 -1
  303. package/src/core/ApiClient.ts +24 -0
  304. package/src/core/ArchivableCrudApi.ts +2 -1
  305. package/src/core/BaseApiClient.test.ts +98 -0
  306. package/src/core/BaseApiClient.ts +49 -4
  307. package/src/core/BaseCrudApi.test-d.ts +11 -1
  308. package/src/core/BaseCrudApi.ts +15 -6
  309. package/src/core/requestExternal.ts +43 -0
  310. package/src/core/types.ts +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ClientFeedbackApi.mjs","names":[],"sources":["../../../src/apis/clientFeedback/ClientFeedbackApi.ts"],"sourcesContent":["import { BaseApi } from '../../core/BaseApi'\nimport type { HasCreate } from '../../core/types'\nimport type { ClientFeedback, CreateClientFeedbackPayload } from './types'\n\nexport class ClientFeedbackApi\n extends BaseApi\n implements HasCreate<ClientFeedback, CreateClientFeedbackPayload>\n{\n private readonly basePath = '/client-feedback'\n\n /** Creates a client feedback record for a ticket (accountId, ticketId, and feedback text are required). */\n create(\n body: CreateClientFeedbackPayload,\n headers?: Record<string, string>,\n ): Promise<ClientFeedback> {\n return this.client.post<ClientFeedback, CreateClientFeedbackPayload>(\n this.basePath,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;AAIA,IAAa,oBAAb,cACU,QAEV;CACE,AAAiB,WAAW;;CAG5B,OACE,MACA,SACyB;AACzB,SAAO,KAAK,OAAO,KACjB,KAAK,UACL,MACA,QACD"}
1
+ {"version":3,"file":"ClientFeedbackApi.mjs","names":[],"sources":["../../../src/apis/clientFeedback/ClientFeedbackApi.ts"],"sourcesContent":["import { BaseApi } from '../../core/BaseApi'\nimport type { HasCreate } from '../../core/types'\nimport type { ClientFeedback, CreateClientFeedbackPayload } from './types'\n\nexport class ClientFeedbackApi\n extends BaseApi\n implements HasCreate<ClientFeedback, CreateClientFeedbackPayload>\n{\n private readonly basePath = '/client-feedback'\n\n /**\n * @deprecated The route is broken in the backend: it is mounted with no authentication (the\n * account context throws, 500) and calls a `createFeedback` the resource does not have. The\n * feedback on the AI summary is stored when the ticket is closed.\n */\n create(\n body: CreateClientFeedbackPayload,\n headers?: Record<string, string>,\n ): Promise<ClientFeedback> {\n return this.client.post<ClientFeedback, CreateClientFeedbackPayload>(\n this.basePath,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;AAIA,IAAa,oBAAb,cACU,QAEV;CACE,AAAiB,WAAW;;;;;;CAO5B,OACE,MACA,SACyB;AACzB,SAAO,KAAK,OAAO,KACjB,KAAK,UACL,MACA,QACD"}
@@ -2,10 +2,46 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_core_BaseCrudApi = require('../../core/BaseCrudApi.cjs');
3
3
 
4
4
  //#region src/apis/contactBlockLists/ContactBlockListsApi.ts
5
+ /**
6
+ * Lists of numbers to block. A list is processed in the background after it is created (`status`
7
+ * `ready` → `done` or `error`). `getById` answers `null` for an unknown id.
8
+ */
5
9
  var ContactBlockListsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
6
10
  constructor(client) {
7
11
  super(client, "/contact-block-lists");
8
12
  }
13
+ /**
14
+ * Counts the block lists matching the query.
15
+ * @permissions contacts.view OR contacts.block
16
+ */
17
+ count(query, headers) {
18
+ return this.client.get(`${this.basePath}/count${this.toQueryString(query)}`, headers);
19
+ }
20
+ /**
21
+ * Creates a block list from a CSV uploaded with `FilesApi.createToUpload` (`attachedType:
22
+ * 'contact_block_list.file'` — with any other type the list is never processed). The CSV is
23
+ * comma-separated with the columns `ddi,number` (an empty DDI takes `defaultDDI`); invalid numbers are
24
+ * skipped. Resolves the list with `status: 'ready'`.
25
+ * @permissions contacts.view OR contacts.block
26
+ */
27
+ create(body, headers) {
28
+ return super.create(body, headers);
29
+ }
30
+ /**
31
+ * Updates a block list. `name` is required by the backend (400 without it). An unknown id answers 500.
32
+ * @permissions contacts.view OR contacts.update OR contacts.block
33
+ */
34
+ updateById(id, body, headers) {
35
+ return super.updateById(id, body, headers);
36
+ }
37
+ /**
38
+ * Deletes a block list and its numbers. Resolves the text `'OK'`; a list being processed (or with
39
+ * a block/unblock in progress) answers 500.
40
+ * @permissions contacts.view OR contacts.destroy OR contacts.block
41
+ */
42
+ deleteById(id, headers) {
43
+ return super.deleteById(id, headers);
44
+ }
9
45
  };
10
46
 
11
47
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ContactBlockListsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/contactBlockLists/ContactBlockListsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload,\n} from './types'\n\nexport class ContactBlockListsApi extends BaseCrudApi<\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists')\n }\n}\n"],"mappings":";;;;AAQA,IAAa,uBAAb,cAA0CA,qCAIxC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,uBAAuB"}
1
+ {"version":3,"file":"ContactBlockListsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/contactBlockLists/ContactBlockListsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload,\n} from './types'\n\n/**\n * Lists of numbers to block. A list is processed in the background after it is created (`status`\n * `ready` → `done` or `error`). `getById` answers `null` for an unknown id.\n */\nexport class ContactBlockListsApi extends BaseCrudApi<\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload,\n ListQuery<ContactBlockList>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists')\n }\n\n /**\n * Counts the block lists matching the query.\n * @permissions contacts.view OR contacts.block\n */\n count(\n query?: ListQuery<ContactBlockList>,\n headers?: Record<string, string>,\n ): Promise<{ count: number }> {\n return this.client.get<{ count: number }>(\n `${this.basePath}/count${this.toQueryString(query)}`,\n headers,\n )\n }\n\n /**\n * Creates a block list from a CSV uploaded with `FilesApi.createToUpload` (`attachedType:\n * 'contact_block_list.file'` — with any other type the list is never processed). The CSV is\n * comma-separated with the columns `ddi,number` (an empty DDI takes `defaultDDI`); invalid numbers are\n * skipped. Resolves the list with `status: 'ready'`.\n * @permissions contacts.view OR contacts.block\n */\n override create(\n body: CreateContactBlockListPayload,\n headers?: Record<string, string>,\n ): Promise<ContactBlockList> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a block list. `name` is required by the backend (400 without it). An unknown id answers 500.\n * @permissions contacts.view OR contacts.update OR contacts.block\n */\n override updateById(\n id: string,\n body: UpdateContactBlockListPayload,\n headers?: Record<string, string>,\n ): Promise<ContactBlockList> {\n return super.updateById(id, body, headers)\n }\n\n /**\n * Deletes a block list and its numbers. Resolves the text `'OK'`; a list being processed (or with\n * a block/unblock in progress) answers 500.\n * @permissions contacts.view OR contacts.destroy OR contacts.block\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;;AAaA,IAAa,uBAAb,cAA0CA,qCAMxC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,uBAAuB;;;;;;CAOvC,MACE,OACA,SAC4B;AAC5B,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,QAAQ,KAAK,cAAc,MAAM,IAClD,QACD;;;;;;;;;CAUH,AAAS,OACP,MACA,SAC2B;AAC3B,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;CAOpC,AAAS,WACP,IACA,MACA,SAC2B;AAC3B,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;;;;;CAQ5C,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -1,7 +1,38 @@
1
1
  import type { ApiClient } from '../../core/ApiClient';
2
+ import type { ListQuery } from '../../core/types';
2
3
  import { BaseCrudApi } from '../../core/BaseCrudApi';
3
4
  import type { ContactBlockList, CreateContactBlockListPayload, UpdateContactBlockListPayload } from './types';
4
- export declare class ContactBlockListsApi extends BaseCrudApi<ContactBlockList, CreateContactBlockListPayload, UpdateContactBlockListPayload> {
5
+ /**
6
+ * Lists of numbers to block. A list is processed in the background after it is created (`status`
7
+ * `ready` → `done` or `error`). `getById` answers `null` for an unknown id.
8
+ */
9
+ export declare class ContactBlockListsApi extends BaseCrudApi<ContactBlockList, CreateContactBlockListPayload, UpdateContactBlockListPayload, ListQuery<ContactBlockList>, 'OK'> {
5
10
  constructor(client: ApiClient);
11
+ /**
12
+ * Counts the block lists matching the query.
13
+ * @permissions contacts.view OR contacts.block
14
+ */
15
+ count(query?: ListQuery<ContactBlockList>, headers?: Record<string, string>): Promise<{
16
+ count: number;
17
+ }>;
18
+ /**
19
+ * Creates a block list from a CSV uploaded with `FilesApi.createToUpload` (`attachedType:
20
+ * 'contact_block_list.file'` — with any other type the list is never processed). The CSV is
21
+ * comma-separated with the columns `ddi,number` (an empty DDI takes `defaultDDI`); invalid numbers are
22
+ * skipped. Resolves the list with `status: 'ready'`.
23
+ * @permissions contacts.view OR contacts.block
24
+ */
25
+ create(body: CreateContactBlockListPayload, headers?: Record<string, string>): Promise<ContactBlockList>;
26
+ /**
27
+ * Updates a block list. `name` is required by the backend (400 without it). An unknown id answers 500.
28
+ * @permissions contacts.view OR contacts.update OR contacts.block
29
+ */
30
+ updateById(id: string, body: UpdateContactBlockListPayload, headers?: Record<string, string>): Promise<ContactBlockList>;
31
+ /**
32
+ * Deletes a block list and its numbers. Resolves the text `'OK'`; a list being processed (or with
33
+ * a block/unblock in progress) answers 500.
34
+ * @permissions contacts.view OR contacts.destroy OR contacts.block
35
+ */
36
+ deleteById(id: string, headers?: Record<string, string>): Promise<'OK'>;
6
37
  }
7
38
  //# sourceMappingURL=ContactBlockListsApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContactBlockListsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/contactBlockLists/ContactBlockListsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAEhB,qBAAa,oBAAqB,SAAQ,WAAW,CACnD,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,CAC9B;gBACa,MAAM,EAAE,SAAS;CAG9B"}
1
+ {"version":3,"file":"ContactBlockListsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/contactBlockLists/ContactBlockListsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAEhB;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,WAAW,CACnD,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,SAAS,CAAC,gBAAgB,CAAC,EAC3B,IAAI,CACL;gBACa,MAAM,EAAE,SAAS;IAI7B;;;OAGG;IACH,KAAK,CACH,KAAK,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,EACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAO7B;;;;;;OAMG;IACM,MAAM,CACb,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,gBAAgB,CAAC;IAI5B;;;OAGG;IACM,UAAU,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,gBAAgB,CAAC;IAI5B;;;;OAIG;IACM,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjF"}
@@ -1,10 +1,46 @@
1
1
  import { BaseCrudApi } from "../../core/BaseCrudApi.mjs";
2
2
 
3
3
  //#region src/apis/contactBlockLists/ContactBlockListsApi.ts
4
+ /**
5
+ * Lists of numbers to block. A list is processed in the background after it is created (`status`
6
+ * `ready` → `done` or `error`). `getById` answers `null` for an unknown id.
7
+ */
4
8
  var ContactBlockListsApi = class extends BaseCrudApi {
5
9
  constructor(client) {
6
10
  super(client, "/contact-block-lists");
7
11
  }
12
+ /**
13
+ * Counts the block lists matching the query.
14
+ * @permissions contacts.view OR contacts.block
15
+ */
16
+ count(query, headers) {
17
+ return this.client.get(`${this.basePath}/count${this.toQueryString(query)}`, headers);
18
+ }
19
+ /**
20
+ * Creates a block list from a CSV uploaded with `FilesApi.createToUpload` (`attachedType:
21
+ * 'contact_block_list.file'` — with any other type the list is never processed). The CSV is
22
+ * comma-separated with the columns `ddi,number` (an empty DDI takes `defaultDDI`); invalid numbers are
23
+ * skipped. Resolves the list with `status: 'ready'`.
24
+ * @permissions contacts.view OR contacts.block
25
+ */
26
+ create(body, headers) {
27
+ return super.create(body, headers);
28
+ }
29
+ /**
30
+ * Updates a block list. `name` is required by the backend (400 without it). An unknown id answers 500.
31
+ * @permissions contacts.view OR contacts.update OR contacts.block
32
+ */
33
+ updateById(id, body, headers) {
34
+ return super.updateById(id, body, headers);
35
+ }
36
+ /**
37
+ * Deletes a block list and its numbers. Resolves the text `'OK'`; a list being processed (or with
38
+ * a block/unblock in progress) answers 500.
39
+ * @permissions contacts.view OR contacts.destroy OR contacts.block
40
+ */
41
+ deleteById(id, headers) {
42
+ return super.deleteById(id, headers);
43
+ }
8
44
  };
9
45
 
10
46
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ContactBlockListsApi.mjs","names":[],"sources":["../../../src/apis/contactBlockLists/ContactBlockListsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload,\n} from './types'\n\nexport class ContactBlockListsApi extends BaseCrudApi<\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists')\n }\n}\n"],"mappings":";;;AAQA,IAAa,uBAAb,cAA0C,YAIxC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,uBAAuB"}
1
+ {"version":3,"file":"ContactBlockListsApi.mjs","names":[],"sources":["../../../src/apis/contactBlockLists/ContactBlockListsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload,\n} from './types'\n\n/**\n * Lists of numbers to block. A list is processed in the background after it is created (`status`\n * `ready` → `done` or `error`). `getById` answers `null` for an unknown id.\n */\nexport class ContactBlockListsApi extends BaseCrudApi<\n ContactBlockList,\n CreateContactBlockListPayload,\n UpdateContactBlockListPayload,\n ListQuery<ContactBlockList>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists')\n }\n\n /**\n * Counts the block lists matching the query.\n * @permissions contacts.view OR contacts.block\n */\n count(\n query?: ListQuery<ContactBlockList>,\n headers?: Record<string, string>,\n ): Promise<{ count: number }> {\n return this.client.get<{ count: number }>(\n `${this.basePath}/count${this.toQueryString(query)}`,\n headers,\n )\n }\n\n /**\n * Creates a block list from a CSV uploaded with `FilesApi.createToUpload` (`attachedType:\n * 'contact_block_list.file'` — with any other type the list is never processed). The CSV is\n * comma-separated with the columns `ddi,number` (an empty DDI takes `defaultDDI`); invalid numbers are\n * skipped. Resolves the list with `status: 'ready'`.\n * @permissions contacts.view OR contacts.block\n */\n override create(\n body: CreateContactBlockListPayload,\n headers?: Record<string, string>,\n ): Promise<ContactBlockList> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a block list. `name` is required by the backend (400 without it). An unknown id answers 500.\n * @permissions contacts.view OR contacts.update OR contacts.block\n */\n override updateById(\n id: string,\n body: UpdateContactBlockListPayload,\n headers?: Record<string, string>,\n ): Promise<ContactBlockList> {\n return super.updateById(id, body, headers)\n }\n\n /**\n * Deletes a block list and its numbers. Resolves the text `'OK'`; a list being processed (or with\n * a block/unblock in progress) answers 500.\n * @permissions contacts.view OR contacts.destroy OR contacts.block\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;AAaA,IAAa,uBAAb,cAA0C,YAMxC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,uBAAuB;;;;;;CAOvC,MACE,OACA,SAC4B;AAC5B,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,QAAQ,KAAK,cAAc,MAAM,IAClD,QACD;;;;;;;;;CAUH,AAAS,OACP,MACA,SAC2B;AAC3B,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;CAOpC,AAAS,WACP,IACA,MACA,SAC2B;AAC3B,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;;;;;CAQ5C,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -1,3 +1,4 @@
1
+ import type { File } from '../files/types';
1
2
  import type { User } from '../users/types';
2
3
  export type ContactBlockListStatus = 'ready' | 'processing' | 'done' | 'error';
3
4
  export type ContactBlockList = {
@@ -14,8 +15,10 @@ export type ContactBlockList = {
14
15
  updatedAt: string;
15
16
  deletedAt: string | null;
16
17
  user?: User;
18
+ /** The uploaded CSV (`include: ['importFile']`). */
19
+ importFile?: File;
17
20
  };
18
- export type ContactBlockListRelationships = 'user';
21
+ export type ContactBlockListRelationships = 'user' | 'importFile';
19
22
  export type CreateContactBlockListPayload = {
20
23
  name: string;
21
24
  /** ID of an uploaded CSV file (POST /files/create-to-upload, attachedType 'contact_block_list.file'). */
@@ -23,7 +26,9 @@ export type CreateContactBlockListPayload = {
23
26
  defaultDDI?: string;
24
27
  };
25
28
  export type UpdateContactBlockListPayload = {
29
+ /** Required by the backend (400 without it), even to change only `defaultDDI`. */
26
30
  name?: string;
31
+ /** @deprecated Ignored by the backend: the numbers come only from the CSV of the create. */
27
32
  contacts?: string[];
28
33
  defaultDDI?: string | null;
29
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/contactBlockLists/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAA;AAE9E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,sBAAsB,CAAA;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB,IAAI,CAAC,EAAE,IAAI,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAA;AAElD,MA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6B,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,yGAAyG;IACzG,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,kFAAkF;IAClF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA"}
@@ -2,10 +2,47 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_core_BaseCrudApi = require('../../core/BaseCrudApi.cjs');
3
3
 
4
4
  //#region src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts
5
+ /**
6
+ * Block/unblock runs of block lists over connections. A run blocks (or unblocks) the contacts of the
7
+ * connection whose numbers are in the list, in the background, and blocking closes their open tickets.
8
+ * `getById` answers `null` for an unknown id.
9
+ */
5
10
  var ContactBlockListsControlsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
6
11
  constructor(client) {
7
12
  super(client, "/contact-block-lists-controls");
8
13
  }
14
+ /**
15
+ * Counts the runs matching the query.
16
+ * @permissions contacts.view OR contacts.block
17
+ */
18
+ count(query, headers) {
19
+ return this.client.get(`${this.basePath}/count${this.toQueryString(query)}`, headers);
20
+ }
21
+ /**
22
+ * Starts the runs: one per connection × list of the body, all with the same `reason`. Resolves with no
23
+ * body — find the runs with `getMany` by `reason`.
24
+ * @permissions contacts.view OR contacts.block
25
+ */
26
+ create(body, headers) {
27
+ return super.create(body, headers);
28
+ }
29
+ /**
30
+ * Updates a run. The backend requires `reason`, `servicesIds`, `contactBlockListsIds` and `action` (400
31
+ * without them), but ignores the ids, and a new `action` does not run anything again. An unknown id
32
+ * answers 500.
33
+ * @permissions contacts.view OR contacts.update OR contacts.block
34
+ */
35
+ updateById(id, body, headers) {
36
+ return super.updateById(id, body, headers);
37
+ }
38
+ /**
39
+ * Deletes a block/unblock run. Resolves the text `'OK'`; it does not undo the contacts already
40
+ * blocked or unblocked.
41
+ * @permissions contacts.view OR contacts.destroy OR contacts.block
42
+ */
43
+ deleteById(id, headers) {
44
+ return super.deleteById(id, headers);
45
+ }
9
46
  };
10
47
 
11
48
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ContactBlockListsControlsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload,\n} from './types'\n\nexport class ContactBlockListsControlsApi extends BaseCrudApi<\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists-controls')\n }\n}\n"],"mappings":";;;;AAQA,IAAa,+BAAb,cAAkDA,qCAIhD;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gCAAgC"}
1
+ {"version":3,"file":"ContactBlockListsControlsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload,\n} from './types'\n\n/**\n * Block/unblock runs of block lists over connections. A run blocks (or unblocks) the contacts of the\n * connection whose numbers are in the list, in the background, and blocking closes their open tickets.\n * `getById` answers `null` for an unknown id.\n */\nexport class ContactBlockListsControlsApi extends BaseCrudApi<\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload,\n ListQuery<ContactBlockListsControl>,\n 'OK',\n void\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists-controls')\n }\n\n /**\n * Counts the runs matching the query.\n * @permissions contacts.view OR contacts.block\n */\n count(\n query?: ListQuery<ContactBlockListsControl>,\n headers?: Record<string, string>,\n ): Promise<{ count: number }> {\n return this.client.get<{ count: number }>(\n `${this.basePath}/count${this.toQueryString(query)}`,\n headers,\n )\n }\n\n /**\n * Starts the runs: one per connection × list of the body, all with the same `reason`. Resolves with no\n * body — find the runs with `getMany` by `reason`.\n * @permissions contacts.view OR contacts.block\n */\n override create(\n body: CreateContactBlockListsControlPayload,\n headers?: Record<string, string>,\n ): Promise<void> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a run. The backend requires `reason`, `servicesIds`, `contactBlockListsIds` and `action` (400\n * without them), but ignores the ids, and a new `action` does not run anything again. An unknown id\n * answers 500.\n * @permissions contacts.view OR contacts.update OR contacts.block\n */\n override updateById(\n id: string,\n body: UpdateContactBlockListsControlPayload,\n headers?: Record<string, string>,\n ): Promise<ContactBlockListsControl> {\n return super.updateById(id, body, headers)\n }\n\n /**\n * Deletes a block/unblock run. Resolves the text `'OK'`; it does not undo the contacts already\n * blocked or unblocked.\n * @permissions contacts.view OR contacts.destroy OR contacts.block\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;;;AAcA,IAAa,+BAAb,cAAkDA,qCAOhD;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gCAAgC;;;;;;CAOhD,MACE,OACA,SAC4B;AAC5B,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,QAAQ,KAAK,cAAc,MAAM,IAClD,QACD;;;;;;;CAQH,AAAS,OACP,MACA,SACe;AACf,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;CASpC,AAAS,WACP,IACA,MACA,SACmC;AACnC,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;;;;;CAQ5C,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -1,7 +1,39 @@
1
1
  import type { ApiClient } from '../../core/ApiClient';
2
+ import type { ListQuery } from '../../core/types';
2
3
  import { BaseCrudApi } from '../../core/BaseCrudApi';
3
4
  import type { ContactBlockListsControl, CreateContactBlockListsControlPayload, UpdateContactBlockListsControlPayload } from './types';
4
- export declare class ContactBlockListsControlsApi extends BaseCrudApi<ContactBlockListsControl, CreateContactBlockListsControlPayload, UpdateContactBlockListsControlPayload> {
5
+ /**
6
+ * Block/unblock runs of block lists over connections. A run blocks (or unblocks) the contacts of the
7
+ * connection whose numbers are in the list, in the background, and blocking closes their open tickets.
8
+ * `getById` answers `null` for an unknown id.
9
+ */
10
+ export declare class ContactBlockListsControlsApi extends BaseCrudApi<ContactBlockListsControl, CreateContactBlockListsControlPayload, UpdateContactBlockListsControlPayload, ListQuery<ContactBlockListsControl>, 'OK', void> {
5
11
  constructor(client: ApiClient);
12
+ /**
13
+ * Counts the runs matching the query.
14
+ * @permissions contacts.view OR contacts.block
15
+ */
16
+ count(query?: ListQuery<ContactBlockListsControl>, headers?: Record<string, string>): Promise<{
17
+ count: number;
18
+ }>;
19
+ /**
20
+ * Starts the runs: one per connection × list of the body, all with the same `reason`. Resolves with no
21
+ * body — find the runs with `getMany` by `reason`.
22
+ * @permissions contacts.view OR contacts.block
23
+ */
24
+ create(body: CreateContactBlockListsControlPayload, headers?: Record<string, string>): Promise<void>;
25
+ /**
26
+ * Updates a run. The backend requires `reason`, `servicesIds`, `contactBlockListsIds` and `action` (400
27
+ * without them), but ignores the ids, and a new `action` does not run anything again. An unknown id
28
+ * answers 500.
29
+ * @permissions contacts.view OR contacts.update OR contacts.block
30
+ */
31
+ updateById(id: string, body: UpdateContactBlockListsControlPayload, headers?: Record<string, string>): Promise<ContactBlockListsControl>;
32
+ /**
33
+ * Deletes a block/unblock run. Resolves the text `'OK'`; it does not undo the contacts already
34
+ * blocked or unblocked.
35
+ * @permissions contacts.view OR contacts.destroy OR contacts.block
36
+ */
37
+ deleteById(id: string, headers?: Record<string, string>): Promise<'OK'>;
6
38
  }
7
39
  //# sourceMappingURL=ContactBlockListsControlsApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContactBlockListsControlsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,wBAAwB,EACxB,qCAAqC,EACrC,qCAAqC,EACtC,MAAM,SAAS,CAAA;AAEhB,qBAAa,4BAA6B,SAAQ,WAAW,CAC3D,wBAAwB,EACxB,qCAAqC,EACrC,qCAAqC,CACtC;gBACa,MAAM,EAAE,SAAS;CAG9B"}
1
+ {"version":3,"file":"ContactBlockListsControlsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,wBAAwB,EACxB,qCAAqC,EACrC,qCAAqC,EACtC,MAAM,SAAS,CAAA;AAEhB;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,WAAW,CAC3D,wBAAwB,EACxB,qCAAqC,EACrC,qCAAqC,EACrC,SAAS,CAAC,wBAAwB,CAAC,EACnC,IAAI,EACJ,IAAI,CACL;gBACa,MAAM,EAAE,SAAS;IAI7B;;;OAGG;IACH,KAAK,CACH,KAAK,CAAC,EAAE,SAAS,CAAC,wBAAwB,CAAC,EAC3C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAO7B;;;;OAIG;IACM,MAAM,CACb,IAAI,EAAE,qCAAqC,EAC3C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,IAAI,CAAC;IAIhB;;;;;OAKG;IACM,UAAU,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,qCAAqC,EAC3C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;OAIG;IACM,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjF"}
@@ -1,10 +1,47 @@
1
1
  import { BaseCrudApi } from "../../core/BaseCrudApi.mjs";
2
2
 
3
3
  //#region src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts
4
+ /**
5
+ * Block/unblock runs of block lists over connections. A run blocks (or unblocks) the contacts of the
6
+ * connection whose numbers are in the list, in the background, and blocking closes their open tickets.
7
+ * `getById` answers `null` for an unknown id.
8
+ */
4
9
  var ContactBlockListsControlsApi = class extends BaseCrudApi {
5
10
  constructor(client) {
6
11
  super(client, "/contact-block-lists-controls");
7
12
  }
13
+ /**
14
+ * Counts the runs matching the query.
15
+ * @permissions contacts.view OR contacts.block
16
+ */
17
+ count(query, headers) {
18
+ return this.client.get(`${this.basePath}/count${this.toQueryString(query)}`, headers);
19
+ }
20
+ /**
21
+ * Starts the runs: one per connection × list of the body, all with the same `reason`. Resolves with no
22
+ * body — find the runs with `getMany` by `reason`.
23
+ * @permissions contacts.view OR contacts.block
24
+ */
25
+ create(body, headers) {
26
+ return super.create(body, headers);
27
+ }
28
+ /**
29
+ * Updates a run. The backend requires `reason`, `servicesIds`, `contactBlockListsIds` and `action` (400
30
+ * without them), but ignores the ids, and a new `action` does not run anything again. An unknown id
31
+ * answers 500.
32
+ * @permissions contacts.view OR contacts.update OR contacts.block
33
+ */
34
+ updateById(id, body, headers) {
35
+ return super.updateById(id, body, headers);
36
+ }
37
+ /**
38
+ * Deletes a block/unblock run. Resolves the text `'OK'`; it does not undo the contacts already
39
+ * blocked or unblocked.
40
+ * @permissions contacts.view OR contacts.destroy OR contacts.block
41
+ */
42
+ deleteById(id, headers) {
43
+ return super.deleteById(id, headers);
44
+ }
8
45
  };
9
46
 
10
47
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ContactBlockListsControlsApi.mjs","names":[],"sources":["../../../src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload,\n} from './types'\n\nexport class ContactBlockListsControlsApi extends BaseCrudApi<\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists-controls')\n }\n}\n"],"mappings":";;;AAQA,IAAa,+BAAb,cAAkD,YAIhD;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gCAAgC"}
1
+ {"version":3,"file":"ContactBlockListsControlsApi.mjs","names":[],"sources":["../../../src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload,\n} from './types'\n\n/**\n * Block/unblock runs of block lists over connections. A run blocks (or unblocks) the contacts of the\n * connection whose numbers are in the list, in the background, and blocking closes their open tickets.\n * `getById` answers `null` for an unknown id.\n */\nexport class ContactBlockListsControlsApi extends BaseCrudApi<\n ContactBlockListsControl,\n CreateContactBlockListsControlPayload,\n UpdateContactBlockListsControlPayload,\n ListQuery<ContactBlockListsControl>,\n 'OK',\n void\n> {\n constructor(client: ApiClient) {\n super(client, '/contact-block-lists-controls')\n }\n\n /**\n * Counts the runs matching the query.\n * @permissions contacts.view OR contacts.block\n */\n count(\n query?: ListQuery<ContactBlockListsControl>,\n headers?: Record<string, string>,\n ): Promise<{ count: number }> {\n return this.client.get<{ count: number }>(\n `${this.basePath}/count${this.toQueryString(query)}`,\n headers,\n )\n }\n\n /**\n * Starts the runs: one per connection × list of the body, all with the same `reason`. Resolves with no\n * body — find the runs with `getMany` by `reason`.\n * @permissions contacts.view OR contacts.block\n */\n override create(\n body: CreateContactBlockListsControlPayload,\n headers?: Record<string, string>,\n ): Promise<void> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a run. The backend requires `reason`, `servicesIds`, `contactBlockListsIds` and `action` (400\n * without them), but ignores the ids, and a new `action` does not run anything again. An unknown id\n * answers 500.\n * @permissions contacts.view OR contacts.update OR contacts.block\n */\n override updateById(\n id: string,\n body: UpdateContactBlockListsControlPayload,\n headers?: Record<string, string>,\n ): Promise<ContactBlockListsControl> {\n return super.updateById(id, body, headers)\n }\n\n /**\n * Deletes a block/unblock run. Resolves the text `'OK'`; it does not undo the contacts already\n * blocked or unblocked.\n * @permissions contacts.view OR contacts.destroy OR contacts.block\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;;AAcA,IAAa,+BAAb,cAAkD,YAOhD;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gCAAgC;;;;;;CAOhD,MACE,OACA,SAC4B;AAC5B,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,QAAQ,KAAK,cAAc,MAAM,IAClD,QACD;;;;;;;CAQH,AAAS,OACP,MACA,SACe;AACf,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;CASpC,AAAS,WACP,IACA,MACA,SACmC;AACnC,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;;;;;CAQ5C,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -25,11 +25,18 @@ export type ContactBlockListsControl = {
25
25
  };
26
26
  export type ContactBlockListsControlRelationships = 'contactBlockList' | 'user' | 'service';
27
27
  export type CreateContactBlockListsControlPayload = {
28
+ /** Unique in the account (409 when another run already has it). */
28
29
  reason: string;
29
30
  servicesIds: string[];
30
31
  contactBlockListsIds: string[];
31
32
  action: ContactBlockListsControlAction;
33
+ /**
34
+ * Applies the opposite action to the contacts of the connection that are NOT in the list: with `block`, it
35
+ * unblocks them; with `unblock`, it blocks all of them.
36
+ */
37
+ revertExceptions?: boolean;
32
38
  };
39
+ /** The backend requires the four fields (400 without them); the ids are ignored. */
33
40
  export type UpdateContactBlockListsControlPayload = {
34
41
  reason?: string;
35
42
  servicesIds?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/contactBlockListsControls/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,MAAM,8BAA8B,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtF,MAAM,MAAM,8BAA8B,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhE,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,8BAA8B,CAAA;IACtC,MAAM,EAAE,8BAA8B,CAAA;IACtC,gBAAgB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B,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC/B,MAAM,CAAC,EAAE,8BAA8B,CAAA;CACxC,CAAA"}
@@ -10,7 +10,8 @@ var ContactsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
10
10
  super(client, "/contacts");
11
11
  }
12
12
  /**
13
- * Downloads a CSV template for importing contacts, with columns based on the service type.
13
+ * Downloads the CSV template (`;`-separated header line, in the language of the user) for
14
+ * importing contacts, with columns based on the service type. Answered with no Content-Type.
14
15
  * @permissions contacts.view AND contacts.export
15
16
  */
16
17
  exportTemplate(body, headers) {
@@ -94,7 +95,9 @@ var ContactsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
94
95
  }
95
96
  /**
96
97
  * Starts the import of a CSV file previously uploaded through `FilesApi`. The import runs
97
- * in the background; the header line is validated against the service type template.
98
+ * in the background; `csvHeaderLine` is validated against the service type template, with
99
+ * every column of `exportTemplate` (including "Criado em"/"Created at"): a different header
100
+ * answers 403 `Csv File - Invalid Header`. The file itself is only read by the job.
98
101
  * Resolves to `'OK'`.
99
102
  * @permissions contacts.view OR contacts.update OR contacts.create
100
103
  */
@@ -111,13 +114,23 @@ var ContactsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
111
114
  }
112
115
  /**
113
116
  * Blocks or unblocks a contact. Blocking closes the contact's open ticket. Requires the
114
- * block list to be active on the account.
117
+ * block list to be active on the account (`settings.isBlockListActive`; 400 otherwise).
118
+ * `byUserId` and `description` are stored as sent: the backend does not fill in the user.
115
119
  * @permissions contacts.block
116
120
  */
117
121
  block(id, body, headers) {
118
122
  return this.client.post(`${this.basePath}/${id}/block`, body, headers);
119
123
  }
120
124
  /**
125
+ * Generates an AI summary of the open ticket of the contact. Consumes AI credits; resolves
126
+ * `{ success, limitReached? }`. A contact with no open ticket (or an unknown contact) answers
127
+ * 400.
128
+ * @permissions tickets.update
129
+ */
130
+ summarizeTicket(id, headers) {
131
+ return this.client.post(`${this.basePath}/${id}/ticket/summary`, void 0, headers);
132
+ }
133
+ /**
121
134
  * Resets the contact's unread counter. Resolves to `'OK'`.
122
135
  * @permissions contacts.view OR contacts.update
123
136
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ContactsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/contacts/ContactsApi.ts"],"sourcesContent":["import qs from 'qs'\nimport type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { ListQuery, Paginated } from '../../core/types'\nimport type {\n BlockContactPayload,\n BulkTransferTicketsPayload,\n BulkTransferTicketsResult,\n Contact,\n ContactMediaPage,\n ContactMediaQuery,\n ContactsSelection,\n CountContactsQuery,\n CountMediaResult,\n CreateContactPayload,\n CreateManyContactsItem,\n ExistsContactsParams,\n ExportCsvPayload,\n ExportTemplatePayload,\n ImportContactsPayload,\n SyncContactPayload,\n TransferTicketPayload,\n UpdateContactPayload,\n} from './types'\n\nexport class ContactsApi extends BaseCrudApi<Contact, CreateContactPayload, UpdateContactPayload> {\n constructor(client: ApiClient) {\n super(client, '/contacts')\n }\n\n /**\n * Downloads a CSV template for importing contacts, with columns based on the service type.\n * @permissions contacts.view AND contacts.export\n */\n exportTemplate(body: ExportTemplatePayload, headers?: Record<string, string>): Promise<unknown> {\n return this.client.post<unknown, ExportTemplatePayload>(\n `${this.basePath}/export-template`,\n body,\n headers,\n )\n }\n\n /**\n * Returns the total number of contacts matching the given query filters.\n * @permissions contacts.view\n */\n count(query?: CountContactsQuery, headers?: Record<string, string>): Promise<{ count: number }> {\n const queryString = this.toQueryString(query)\n return this.client.get<{ count: number }>(`${this.basePath}/count${queryString}`, headers)\n }\n\n /**\n * Returns the total number of contacts matching the given filters (POST variant for complex queries).\n * @permissions contacts.view\n */\n countPost(\n body: CountContactsQuery,\n headers?: Record<string, string>,\n ): Promise<{ count: number }> {\n return this.client.post<{ count: number }, CountContactsQuery>(\n `${this.basePath}/count`,\n body,\n headers,\n )\n }\n\n /**\n * Returns a paginated list of contacts available for message forwarding.\n * @permissions contacts.view\n */\n forward(\n query?: ListQuery<Contact>,\n headers?: Record<string, string>,\n ): Promise<Paginated<Contact>> {\n const queryString = this.toQueryString(query)\n return this.client.get<Paginated<Contact>>(`${this.basePath}/forward${queryString}`, headers)\n }\n\n /**\n * Checks whether contacts exist for the given phone numbers on a specific service. Returns a map of number to boolean.\n * @permissions contacts.view\n */\n exists(\n params: ExistsContactsParams,\n headers?: Record<string, string>,\n ): Promise<Record<string, boolean>> {\n const queryString = `?${qs.stringify(params)}`\n return this.client.get<Record<string, boolean>>(\n `${this.basePath}/exists${queryString}`,\n headers,\n )\n }\n\n /**\n * Returns media counts grouped by type (e.g. image, video, document, link) for a contact.\n * @permissions contacts.view\n */\n countMedia(contactId: string, headers?: Record<string, string>): Promise<CountMediaResult> {\n return this.client.get<CountMediaResult>(`${this.basePath}/${contactId}/media/count`, headers)\n }\n\n /**\n * Returns a paginated list of contacts using POST body for advanced filtering.\n * @permissions contacts.view\n */\n list(\n body: Record<string, unknown>,\n headers?: Record<string, string>,\n ): Promise<Paginated<Contact>> {\n return this.client.post<Paginated<Contact>, Record<string, unknown>>(\n `${this.basePath}/list`,\n body,\n headers,\n )\n }\n\n /**\n * Opens (or transfers) the contact's ticket to a department, and optionally a user.\n * This is the real ticket-open flow used by the UI — there is no `POST /tickets`.\n * @permissions tickets.transfer.all OR tickets.transfer.me\n */\n transferTicket(\n contactId: string,\n payload: TransferTicketPayload,\n headers?: Record<string, string>,\n ): Promise<unknown> {\n return this.client.post<unknown, TransferTicketPayload>(\n `${this.basePath}/${contactId}/ticket/transfer`,\n payload,\n headers,\n )\n }\n\n /**\n * Creates or updates several contacts in one call. Existing contacts (same service and\n * number or e-mail) are updated; the others are created. Returns the resulting contacts.\n * @permissions contacts.view OR contacts.update OR contacts.create\n */\n createMany(\n body: CreateManyContactsItem[],\n query?: ListQuery<Contact>,\n headers?: Record<string, string>,\n ): Promise<Contact[]> {\n const queryString = this.toQueryString(query)\n return this.client.post<Contact[], CreateManyContactsItem[]>(\n `${this.basePath}/many${queryString}`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes every contact of the account that matches the selection.\n * @permissions contacts.view OR contacts.destroy\n */\n deleteMany(body: ContactsSelection, headers?: Record<string, string>): Promise<boolean> {\n return this.client.request<boolean, ContactsSelection>(\n 'DELETE',\n `${this.basePath}/many`,\n body,\n headers,\n )\n }\n\n /**\n * Exports the contacts that match the filter as CSV. Resolves to the CSV text.\n * @permissions contacts.view AND contacts.export\n */\n exportCsv(body: ExportCsvPayload, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, ExportCsvPayload>(`${this.basePath}/export/csv`, body, headers)\n }\n\n /**\n * Starts the import of a CSV file previously uploaded through `FilesApi`. The import runs\n * in the background; the header line is validated against the service type template.\n * Resolves to `'OK'`.\n * @permissions contacts.view OR contacts.update OR contacts.create\n */\n importCsv(body: ImportContactsPayload, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, ImportContactsPayload>(\n `${this.basePath}/import-contacts`,\n body,\n headers,\n )\n }\n\n /**\n * Marks the contact as read and, when needed, syncs it with the messaging service.\n * Resolves to `'OK'`.\n * @permissions contacts.view OR contacts.update\n */\n sync(id: string, body?: SyncContactPayload, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, SyncContactPayload>(\n `${this.basePath}/${id}/sync`,\n body ?? {},\n headers,\n )\n }\n\n /**\n * Blocks or unblocks a contact. Blocking closes the contact's open ticket. Requires the\n * block list to be active on the account.\n * @permissions contacts.block\n */\n block(id: string, body: BlockContactPayload, headers?: Record<string, string>): Promise<Contact> {\n return this.client.post<Contact, BlockContactPayload>(\n `${this.basePath}/${id}/block`,\n body,\n headers,\n )\n }\n\n /**\n * Resets the contact's unread counter. Resolves to `'OK'`.\n * @permissions contacts.view OR contacts.update\n */\n markRead(id: string, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string>(`${this.basePath}/${id}/mark-read`, undefined, headers)\n }\n\n /**\n * Returns the files and links exchanged with a contact, cursor-paginated.\n * @permissions contacts.view\n */\n getMedia(\n contactId: string,\n query?: ContactMediaQuery,\n headers?: Record<string, string>,\n ): Promise<ContactMediaPage> {\n const queryString = this.toQueryString(query)\n return this.client.get<ContactMediaPage>(\n `${this.basePath}/${contactId}/media${queryString}`,\n headers,\n )\n }\n\n /**\n * Transfers several tickets at once to a department and/or user.\n * @permissions tickets.transfer.all.bulk\n */\n bulkTransferTickets(\n body: BulkTransferTicketsPayload,\n headers?: Record<string, string>,\n ): Promise<BulkTransferTicketsResult> {\n return this.client.post<BulkTransferTicketsResult, BulkTransferTicketsPayload>(\n `${this.basePath}/ticket/bulk-transfer`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;AAyBA,IAAa,cAAb,cAAiCA,qCAAiE;CAChG,YAAY,QAAmB;AAC7B,QAAM,QAAQ,YAAY;;;;;;CAO5B,eAAe,MAA6B,SAAoD;AAC9F,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,mBACjB,MACA,QACD;;;;;;CAOH,MAAM,OAA4B,SAA8D;EAC9F,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IAAuB,GAAG,KAAK,SAAS,QAAQ,eAAe,QAAQ;;;;;;CAO5F,UACE,MACA,SAC4B;AAC5B,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,SACjB,MACA,QACD;;;;;;CAOH,QACE,OACA,SAC6B;EAC7B,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IAAwB,GAAG,KAAK,SAAS,UAAU,eAAe,QAAQ;;;;;;CAO/F,OACE,QACA,SACkC;EAClC,MAAM,cAAc,IAAI,WAAG,UAAU,OAAO;AAC5C,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,SAAS,eAC1B,QACD;;;;;;CAOH,WAAW,WAAmB,SAA6D;AACzF,SAAO,KAAK,OAAO,IAAsB,GAAG,KAAK,SAAS,GAAG,UAAU,eAAe,QAAQ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AAS,wBACjB,MACA,QACD"}
1
+ {"version":3,"file":"ContactsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/contacts/ContactsApi.ts"],"sourcesContent":["import qs from 'qs'\nimport type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { ListQuery, Paginated } from '../../core/types'\nimport type {\n BlockContactPayload,\n BulkTransferTicketsPayload,\n BulkTransferTicketsResult,\n Contact,\n ContactMediaPage,\n ContactMediaQuery,\n ContactsSelection,\n CountContactsQuery,\n CountMediaResult,\n CreateContactPayload,\n CreateManyContactsItem,\n ExistsContactsParams,\n ExportCsvPayload,\n ExportTemplatePayload,\n ImportContactsPayload,\n SyncContactPayload,\n TransferTicketPayload,\n UpdateContactPayload,\n SummarizeTicketResult,\n} from './types'\n\nexport class ContactsApi extends BaseCrudApi<Contact, CreateContactPayload, UpdateContactPayload> {\n constructor(client: ApiClient) {\n super(client, '/contacts')\n }\n\n /**\n * Downloads the CSV template (`;`-separated header line, in the language of the user) for\n * importing contacts, with columns based on the service type. Answered with no Content-Type.\n * @permissions contacts.view AND contacts.export\n */\n exportTemplate(body: ExportTemplatePayload, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, ExportTemplatePayload>(\n `${this.basePath}/export-template`,\n body,\n headers,\n )\n }\n\n /**\n * Returns the total number of contacts matching the given query filters.\n * @permissions contacts.view\n */\n count(query?: CountContactsQuery, headers?: Record<string, string>): Promise<{ count: number }> {\n const queryString = this.toQueryString(query)\n return this.client.get<{ count: number }>(`${this.basePath}/count${queryString}`, headers)\n }\n\n /**\n * Returns the total number of contacts matching the given filters (POST variant for complex queries).\n * @permissions contacts.view\n */\n countPost(\n body: CountContactsQuery,\n headers?: Record<string, string>,\n ): Promise<{ count: number }> {\n return this.client.post<{ count: number }, CountContactsQuery>(\n `${this.basePath}/count`,\n body,\n headers,\n )\n }\n\n /**\n * Returns a paginated list of contacts available for message forwarding.\n * @permissions contacts.view\n */\n forward(\n query?: ListQuery<Contact>,\n headers?: Record<string, string>,\n ): Promise<Paginated<Contact>> {\n const queryString = this.toQueryString(query)\n return this.client.get<Paginated<Contact>>(`${this.basePath}/forward${queryString}`, headers)\n }\n\n /**\n * Checks whether contacts exist for the given phone numbers on a specific service. Returns a map of number to boolean.\n * @permissions contacts.view\n */\n exists(\n params: ExistsContactsParams,\n headers?: Record<string, string>,\n ): Promise<Record<string, boolean>> {\n const queryString = `?${qs.stringify(params)}`\n return this.client.get<Record<string, boolean>>(\n `${this.basePath}/exists${queryString}`,\n headers,\n )\n }\n\n /**\n * Returns media counts grouped by type (e.g. image, video, document, link) for a contact.\n * @permissions contacts.view\n */\n countMedia(contactId: string, headers?: Record<string, string>): Promise<CountMediaResult> {\n return this.client.get<CountMediaResult>(`${this.basePath}/${contactId}/media/count`, headers)\n }\n\n /**\n * Returns a paginated list of contacts using POST body for advanced filtering.\n * @permissions contacts.view\n */\n list(\n body: Record<string, unknown>,\n headers?: Record<string, string>,\n ): Promise<Paginated<Contact>> {\n return this.client.post<Paginated<Contact>, Record<string, unknown>>(\n `${this.basePath}/list`,\n body,\n headers,\n )\n }\n\n /**\n * Opens (or transfers) the contact's ticket to a department, and optionally a user.\n * This is the real ticket-open flow used by the UI — there is no `POST /tickets`.\n * @permissions tickets.transfer.all OR tickets.transfer.me\n */\n transferTicket(\n contactId: string,\n payload: TransferTicketPayload,\n headers?: Record<string, string>,\n ): Promise<unknown> {\n return this.client.post<unknown, TransferTicketPayload>(\n `${this.basePath}/${contactId}/ticket/transfer`,\n payload,\n headers,\n )\n }\n\n /**\n * Creates or updates several contacts in one call. Existing contacts (same service and\n * number or e-mail) are updated; the others are created. Returns the resulting contacts.\n * @permissions contacts.view OR contacts.update OR contacts.create\n */\n createMany(\n body: CreateManyContactsItem[],\n query?: ListQuery<Contact>,\n headers?: Record<string, string>,\n ): Promise<Contact[]> {\n const queryString = this.toQueryString(query)\n return this.client.post<Contact[], CreateManyContactsItem[]>(\n `${this.basePath}/many${queryString}`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes every contact of the account that matches the selection.\n * @permissions contacts.view OR contacts.destroy\n */\n deleteMany(body: ContactsSelection, headers?: Record<string, string>): Promise<boolean> {\n return this.client.request<boolean, ContactsSelection>(\n 'DELETE',\n `${this.basePath}/many`,\n body,\n headers,\n )\n }\n\n /**\n * Exports the contacts that match the filter as CSV. Resolves to the CSV text.\n * @permissions contacts.view AND contacts.export\n */\n exportCsv(body: ExportCsvPayload, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, ExportCsvPayload>(`${this.basePath}/export/csv`, body, headers)\n }\n\n /**\n * Starts the import of a CSV file previously uploaded through `FilesApi`. The import runs\n * in the background; `csvHeaderLine` is validated against the service type template, with\n * every column of `exportTemplate` (including \"Criado em\"/\"Created at\"): a different header\n * answers 403 `Csv File - Invalid Header`. The file itself is only read by the job.\n * Resolves to `'OK'`.\n * @permissions contacts.view OR contacts.update OR contacts.create\n */\n importCsv(body: ImportContactsPayload, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, ImportContactsPayload>(\n `${this.basePath}/import-contacts`,\n body,\n headers,\n )\n }\n\n /**\n * Marks the contact as read and, when needed, syncs it with the messaging service.\n * Resolves to `'OK'`.\n * @permissions contacts.view OR contacts.update\n */\n sync(id: string, body?: SyncContactPayload, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, SyncContactPayload>(\n `${this.basePath}/${id}/sync`,\n body ?? {},\n headers,\n )\n }\n\n /**\n * Blocks or unblocks a contact. Blocking closes the contact's open ticket. Requires the\n * block list to be active on the account (`settings.isBlockListActive`; 400 otherwise).\n * `byUserId` and `description` are stored as sent: the backend does not fill in the user.\n * @permissions contacts.block\n */\n block(id: string, body: BlockContactPayload, headers?: Record<string, string>): Promise<Contact> {\n return this.client.post<Contact, BlockContactPayload>(\n `${this.basePath}/${id}/block`,\n body,\n headers,\n )\n }\n\n /**\n * Generates an AI summary of the open ticket of the contact. Consumes AI credits; resolves\n * `{ success, limitReached? }`. A contact with no open ticket (or an unknown contact) answers\n * 400.\n * @permissions tickets.update\n */\n summarizeTicket(id: string, headers?: Record<string, string>): Promise<SummarizeTicketResult> {\n return this.client.post<SummarizeTicketResult>(\n `${this.basePath}/${id}/ticket/summary`,\n undefined,\n headers,\n )\n }\n\n /**\n * Resets the contact's unread counter. Resolves to `'OK'`.\n * @permissions contacts.view OR contacts.update\n */\n markRead(id: string, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string>(`${this.basePath}/${id}/mark-read`, undefined, headers)\n }\n\n /**\n * Returns the files and links exchanged with a contact, cursor-paginated.\n * @permissions contacts.view\n */\n getMedia(\n contactId: string,\n query?: ContactMediaQuery,\n headers?: Record<string, string>,\n ): Promise<ContactMediaPage> {\n const queryString = this.toQueryString(query)\n return this.client.get<ContactMediaPage>(\n `${this.basePath}/${contactId}/media${queryString}`,\n headers,\n )\n }\n\n /**\n * Transfers several tickets at once to a department and/or user.\n * @permissions tickets.transfer.all.bulk\n */\n bulkTransferTickets(\n body: BulkTransferTicketsPayload,\n headers?: Record<string, string>,\n ): Promise<BulkTransferTicketsResult> {\n return this.client.post<BulkTransferTicketsResult, BulkTransferTicketsPayload>(\n `${this.basePath}/ticket/bulk-transfer`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;AA0BA,IAAa,cAAb,cAAiCA,qCAAiE;CAChG,YAAY,QAAmB;AAC7B,QAAM,QAAQ,YAAY;;;;;;;CAQ5B,eAAe,MAA6B,SAAmD;AAC7F,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,mBACjB,MACA,QACD;;;;;;CAOH,MAAM,OAA4B,SAA8D;EAC9F,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IAAuB,GAAG,KAAK,SAAS,QAAQ,eAAe,QAAQ;;;;;;CAO5F,UACE,MACA,SAC4B;AAC5B,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,SACjB,MACA,QACD;;;;;;CAOH,Q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K,SAAS,GAAG,GAAG,SACvB,MACA,QACD;;;;;;;;CASH,gBAAgB,IAAY,SAAkE;AAC5F,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,GAAG,GAAG,kBACvB,QACA,QACD;;;;;;CAOH,SAAS,IAAY,SAAmD;AACtE,SAAO,KAAK,OAAO,KAAa,GAAG,KAAK,SAAS,GAAG,GAAG,aAAa,QAAW,QAAQ;;;;;;CAOzF,SACE,WACA,OACA,SAC2B;EAC3B,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,GAAG,UAAU,QAAQ,eACtC,QACD;;;;;;CAOH,oBACE,MACA,SACoC;AACpC,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,wBACjB,MACA,QACD"}
@@ -1,14 +1,15 @@
1
1
  import type { ApiClient } from '../../core/ApiClient';
2
2
  import { BaseCrudApi } from '../../core/BaseCrudApi';
3
3
  import type { ListQuery, Paginated } from '../../core/types';
4
- import type { BlockContactPayload, BulkTransferTicketsPayload, BulkTransferTicketsResult, Contact, ContactMediaPage, ContactMediaQuery, ContactsSelection, CountContactsQuery, CountMediaResult, CreateContactPayload, CreateManyContactsItem, ExistsContactsParams, ExportCsvPayload, ExportTemplatePayload, ImportContactsPayload, SyncContactPayload, TransferTicketPayload, UpdateContactPayload } from './types';
4
+ import type { BlockContactPayload, BulkTransferTicketsPayload, BulkTransferTicketsResult, Contact, ContactMediaPage, ContactMediaQuery, ContactsSelection, CountContactsQuery, CountMediaResult, CreateContactPayload, CreateManyContactsItem, ExistsContactsParams, ExportCsvPayload, ExportTemplatePayload, ImportContactsPayload, SyncContactPayload, TransferTicketPayload, UpdateContactPayload, SummarizeTicketResult } from './types';
5
5
  export declare class ContactsApi extends BaseCrudApi<Contact, CreateContactPayload, UpdateContactPayload> {
6
6
  constructor(client: ApiClient);
7
7
  /**
8
- * Downloads a CSV template for importing contacts, with columns based on the service type.
8
+ * Downloads the CSV template (`;`-separated header line, in the language of the user) for
9
+ * importing contacts, with columns based on the service type. Answered with no Content-Type.
9
10
  * @permissions contacts.view AND contacts.export
10
11
  */
11
- exportTemplate(body: ExportTemplatePayload, headers?: Record<string, string>): Promise<unknown>;
12
+ exportTemplate(body: ExportTemplatePayload, headers?: Record<string, string>): Promise<string>;
12
13
  /**
13
14
  * Returns the total number of contacts matching the given query filters.
14
15
  * @permissions contacts.view
@@ -67,7 +68,9 @@ export declare class ContactsApi extends BaseCrudApi<Contact, CreateContactPaylo
67
68
  exportCsv(body: ExportCsvPayload, headers?: Record<string, string>): Promise<string>;
68
69
  /**
69
70
  * Starts the import of a CSV file previously uploaded through `FilesApi`. The import runs
70
- * in the background; the header line is validated against the service type template.
71
+ * in the background; `csvHeaderLine` is validated against the service type template, with
72
+ * every column of `exportTemplate` (including "Criado em"/"Created at"): a different header
73
+ * answers 403 `Csv File - Invalid Header`. The file itself is only read by the job.
71
74
  * Resolves to `'OK'`.
72
75
  * @permissions contacts.view OR contacts.update OR contacts.create
73
76
  */
@@ -80,10 +83,18 @@ export declare class ContactsApi extends BaseCrudApi<Contact, CreateContactPaylo
80
83
  sync(id: string, body?: SyncContactPayload, headers?: Record<string, string>): Promise<string>;
81
84
  /**
82
85
  * Blocks or unblocks a contact. Blocking closes the contact's open ticket. Requires the
83
- * block list to be active on the account.
86
+ * block list to be active on the account (`settings.isBlockListActive`; 400 otherwise).
87
+ * `byUserId` and `description` are stored as sent: the backend does not fill in the user.
84
88
  * @permissions contacts.block
85
89
  */
86
90
  block(id: string, body: BlockContactPayload, headers?: Record<string, string>): Promise<Contact>;
91
+ /**
92
+ * Generates an AI summary of the open ticket of the contact. Consumes AI credits; resolves
93
+ * `{ success, limitReached? }`. A contact with no open ticket (or an unknown contact) answers
94
+ * 400.
95
+ * @permissions tickets.update
96
+ */
97
+ summarizeTicket(id: string, headers?: Record<string, string>): Promise<SummarizeTicketResult>;
87
98
  /**
88
99
  * Resets the contact's unread counter. Resolves to `'OK'`.
89
100
  * @permissions contacts.view OR contacts.update
@@ -1 +1 @@
1
- {"version":3,"file":"ContactsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/contacts/ContactsApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EACzB,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAEhB,qBAAa,WAAY,SAAQ,WAAW,CAAC,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,CAAC;gBACnF,MAAM,EAAE,SAAS;IAI7B;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ/F;;;OAGG;IACH,KAAK,CAAC,KAAK,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAK/F;;;OAGG;IACH,SAAS,CACP,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ7B;;;OAGG;IAC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