@getbrevo/brevo 5.0.3 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/README.md +99 -37
  2. package/dist/cjs/BaseClient.d.ts +3 -0
  3. package/dist/cjs/BaseClient.js +17 -2
  4. package/dist/cjs/api/resources/account/client/Client.d.ts +5 -6
  5. package/dist/cjs/api/resources/account/client/Client.js +21 -13
  6. package/dist/cjs/api/resources/account/types/GetAccountResponse.d.ts +4 -17
  7. package/dist/cjs/api/resources/balance/client/Client.d.ts +8 -7
  8. package/dist/cjs/api/resources/balance/client/Client.js +70 -33
  9. package/dist/cjs/api/resources/balance/client/requests/BeginTransactionRequest.d.ts +21 -11
  10. package/dist/cjs/api/resources/balance/client/requests/BeginTransactionRequest.js +9 -0
  11. package/dist/cjs/api/resources/balance/client/requests/CreateBalanceOrderRequest.d.ts +11 -3
  12. package/dist/cjs/api/resources/balance/client/requests/CreateBalanceOrderRequest.js +9 -0
  13. package/dist/cjs/api/resources/balance/client/requests/GetContactBalancesRequest.d.ts +13 -1
  14. package/dist/cjs/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidActiveBalanceRequest.d.ts +7 -6
  15. package/dist/cjs/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.ts +6 -6
  16. package/dist/cjs/api/resources/balance/client/requests/index.d.ts +2 -2
  17. package/dist/cjs/api/resources/balance/client/requests/index.js +5 -1
  18. package/dist/cjs/api/resources/balance/types/GetContactBalancesRequestSort.d.ts +5 -0
  19. package/dist/cjs/api/resources/balance/types/GetContactBalancesRequestSort.js +8 -0
  20. package/dist/cjs/api/resources/balance/types/GetContactBalancesRequestSortField.d.ts +5 -0
  21. package/dist/cjs/api/resources/balance/types/GetContactBalancesRequestSortField.js +8 -0
  22. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceRequestSort.d.ts +5 -0
  23. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceRequestSort.js +8 -0
  24. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceResponse.d.ts +30 -0
  25. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.d.ts +10 -0
  26. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.js +15 -0
  27. package/dist/cjs/api/resources/balance/types/GetSubscriptionBalancesResponse.d.ts +7 -2
  28. package/dist/cjs/api/resources/balance/types/PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.d.ts +14 -14
  29. package/dist/cjs/api/resources/balance/types/index.d.ts +4 -0
  30. package/dist/cjs/api/resources/balance/types/index.js +4 -0
  31. package/dist/cjs/api/resources/companies/client/Client.d.ts +22 -0
  32. package/dist/cjs/api/resources/companies/client/Client.js +49 -18
  33. package/dist/cjs/api/resources/companies/client/requests/GetCompaniesRequest.d.ts +4 -4
  34. package/dist/cjs/api/resources/companies/client/requests/PatchCompaniesIdRequest.d.ts +1 -1
  35. package/dist/cjs/api/resources/companies/client/requests/PostCompaniesImportRequest.d.ts +1 -1
  36. package/dist/cjs/api/resources/companies/client/requests/PostCrmAttributesRequest.d.ts +2 -2
  37. package/dist/cjs/api/resources/companies/client/requests/PostCrmAttributesRequest.js +1 -1
  38. package/dist/cjs/api/resources/companies/types/GetCrmAttributesCompaniesResponseItem.d.ts +20 -4
  39. package/dist/cjs/api/resources/contacts/client/Client.d.ts +38 -1
  40. package/dist/cjs/api/resources/contacts/client/Client.js +129 -37
  41. package/dist/cjs/api/resources/contacts/client/requests/CreateContactRequest.d.ts +5 -1
  42. package/dist/cjs/api/resources/contacts/client/requests/GetContactInfoRequest.d.ts +2 -2
  43. package/dist/cjs/api/resources/contacts/client/requests/GetContactStatsRequest.d.ts +2 -2
  44. package/dist/cjs/api/resources/contacts/client/requests/GetContactsRequest.d.ts +3 -1
  45. package/dist/cjs/api/resources/contacts/client/requests/GetListRequest.d.ts +1 -1
  46. package/dist/cjs/api/resources/contacts/client/requests/UpdateContactRequest.d.ts +5 -3
  47. package/dist/cjs/api/resources/contacts/types/GetAttributesResponse.d.ts +3 -1
  48. package/dist/cjs/api/resources/contacts/types/GetContactInfoResponse.d.ts +4 -2
  49. package/dist/cjs/api/resources/contacts/types/GetSegmentsResponse.d.ts +2 -2
  50. package/dist/cjs/api/resources/conversations/client/Client.d.ts +18 -8
  51. package/dist/cjs/api/resources/conversations/client/Client.js +28 -18
  52. package/dist/cjs/api/resources/conversations/client/requests/PostConversationsAgentOnlinePingRequest.d.ts +8 -8
  53. package/dist/cjs/api/resources/conversations/client/requests/PostConversationsMessagesRequest.d.ts +12 -10
  54. package/dist/cjs/api/resources/conversations/client/requests/PostConversationsPushedMessagesRequest.d.ts +11 -9
  55. package/dist/cjs/api/resources/conversations/client/requests/PutConversationsMessagesIdRequest.d.ts +1 -1
  56. package/dist/cjs/api/resources/conversations/client/requests/PutConversationsPushedMessagesIdRequest.d.ts +2 -2
  57. package/dist/cjs/api/resources/coupons/client/Client.d.ts +10 -0
  58. package/dist/cjs/api/resources/coupons/client/Client.js +19 -5
  59. package/dist/cjs/api/resources/customObjects/client/Client.d.ts +101 -21
  60. package/dist/cjs/api/resources/customObjects/client/Client.js +108 -26
  61. package/dist/cjs/api/resources/customObjects/client/requests/BatchDeleteObjectRecordsRequest.d.ts +2 -2
  62. package/dist/cjs/api/resources/customObjects/client/requests/GetrecordsRequest.d.ts +1 -1
  63. package/dist/cjs/api/resources/customObjects/client/requests/UpsertrecordsRequest.d.ts +114 -25
  64. package/dist/cjs/api/resources/customObjects/client/requests/UpsertrecordsRequest.js +21 -0
  65. package/dist/cjs/api/resources/customObjects/client/requests/index.d.ts +1 -1
  66. package/dist/cjs/api/resources/customObjects/client/requests/index.js +3 -0
  67. package/dist/cjs/api/resources/customObjects/types/GetrecordsResponse.d.ts +14 -5
  68. package/dist/cjs/api/resources/deals/client/Client.d.ts +22 -0
  69. package/dist/cjs/api/resources/deals/client/Client.js +59 -22
  70. package/dist/cjs/api/resources/deals/client/requests/GetCrmDealsRequest.d.ts +5 -3
  71. package/dist/cjs/api/resources/deals/client/requests/PatchCrmDealsIdRequest.d.ts +1 -1
  72. package/dist/cjs/api/resources/deals/client/requests/PostCrmDealsImportRequest.d.ts +1 -1
  73. package/dist/cjs/api/resources/deals/types/GetCrmAttributesDealsResponseItem.d.ts +20 -4
  74. package/dist/cjs/api/resources/domains/client/Client.js +5 -5
  75. package/dist/cjs/api/resources/ecommerce/client/Client.d.ts +32 -3
  76. package/dist/cjs/api/resources/ecommerce/client/Client.js +81 -22
  77. package/dist/cjs/api/resources/ecommerce/client/requests/CreateBatchOrderRequest.d.ts +2 -2
  78. package/dist/cjs/api/resources/ecommerce/client/requests/CreateUpdateBatchProductsRequest.d.ts +4 -2
  79. package/dist/cjs/api/resources/ecommerce/client/requests/CreateUpdateProductRequest.d.ts +4 -2
  80. package/dist/cjs/api/resources/ecommerce/client/requests/GetEcommerceAttributionMetricsRequest.d.ts +2 -1
  81. package/dist/cjs/api/resources/ecommerce/client/requests/GetProductsRequest.d.ts +18 -2
  82. package/dist/cjs/api/resources/ecommerce/types/CreateUpdateCategoryResponse.d.ts +1 -1
  83. package/dist/cjs/api/resources/ecommerce/types/CreateUpdateProductResponse.d.ts +2 -2
  84. package/dist/cjs/api/resources/ecommerce/types/GetProductsRequestSortByField.d.ts +7 -0
  85. package/dist/cjs/api/resources/ecommerce/types/GetProductsRequestSortByField.js +10 -0
  86. package/dist/cjs/api/resources/ecommerce/types/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/ecommerce/types/index.js +1 -0
  88. package/dist/cjs/api/resources/emailCampaigns/client/Client.d.ts +22 -1
  89. package/dist/cjs/api/resources/emailCampaigns/client/Client.js +51 -15
  90. package/dist/cjs/api/resources/emailCampaigns/client/requests/CreateEmailCampaignRequest.d.ts +7 -7
  91. package/dist/cjs/api/resources/emailCampaigns/client/requests/GetEmailCampaignRequest.d.ts +1 -1
  92. package/dist/cjs/api/resources/emailCampaigns/client/requests/GetEmailCampaignsRequest.d.ts +6 -4
  93. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignResponse.d.ts +28 -5
  94. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignResponse.js +9 -0
  95. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.d.ts +27 -4
  96. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.js +9 -0
  97. package/dist/cjs/api/resources/event/client/Client.d.ts +8 -6
  98. package/dist/cjs/api/resources/event/client/Client.js +14 -8
  99. package/dist/cjs/api/resources/event/client/requests/CreateBatchEventsRequest.d.ts +76 -0
  100. package/dist/cjs/api/resources/event/client/requests/CreateEventRequest.d.ts +5 -5
  101. package/dist/cjs/api/resources/event/client/requests/index.d.ts +1 -0
  102. package/dist/cjs/api/resources/event/index.d.ts +0 -1
  103. package/dist/cjs/api/resources/event/index.js +0 -1
  104. package/dist/cjs/api/resources/externalFeeds/client/Client.js +9 -5
  105. package/dist/cjs/api/resources/externalFeeds/types/GetAllExternalFeedsResponse.d.ts +3 -7
  106. package/dist/cjs/api/resources/externalFeeds/types/GetExternalFeedByUuidResponse.d.ts +3 -9
  107. package/dist/cjs/api/resources/files/client/Client.d.ts +10 -0
  108. package/dist/cjs/api/resources/files/client/Client.js +19 -5
  109. package/dist/cjs/api/resources/inboundParsing/client/Client.d.ts +2 -1
  110. package/dist/cjs/api/resources/inboundParsing/client/Client.js +11 -4
  111. package/dist/cjs/api/resources/inboundParsing/client/requests/GetInboundEmailEventsRequest.d.ts +2 -2
  112. package/dist/cjs/api/resources/inboundParsing/types/GetInboundEmailEventsByUuidResponse.d.ts +2 -2
  113. package/dist/cjs/api/resources/index.d.ts +0 -1
  114. package/dist/cjs/api/resources/index.js +0 -1
  115. package/dist/cjs/api/resources/masterAccount/client/Client.d.ts +10 -0
  116. package/dist/cjs/api/resources/masterAccount/client/Client.js +84 -46
  117. package/dist/cjs/api/resources/notes/client/Client.d.ts +12 -2
  118. package/dist/cjs/api/resources/notes/client/Client.js +21 -7
  119. package/dist/cjs/api/resources/notes/client/requests/PatchCrmNotesIdRequest.d.ts +1 -1
  120. package/dist/cjs/api/resources/notes/types/PostCrmNotesResponse.d.ts +1 -1
  121. package/dist/cjs/api/resources/payments/client/Client.d.ts +6 -0
  122. package/dist/cjs/api/resources/payments/client/Client.js +9 -3
  123. package/dist/cjs/api/resources/process/client/Client.d.ts +13 -18
  124. package/dist/cjs/api/resources/process/client/Client.js +19 -20
  125. package/dist/cjs/api/resources/process/types/GetProcessResponse.d.ts +22 -38
  126. package/dist/cjs/api/resources/process/types/GetProcessResponse.js +1 -0
  127. package/dist/cjs/api/resources/process/types/GetProcessesResponse.d.ts +22 -38
  128. package/dist/cjs/api/resources/process/types/GetProcessesResponse.js +1 -0
  129. package/dist/cjs/api/resources/program/client/Client.d.ts +1 -1
  130. package/dist/cjs/api/resources/program/client/Client.js +26 -14
  131. package/dist/cjs/api/resources/program/client/requests/GetLpListRequest.d.ts +2 -2
  132. package/dist/cjs/api/resources/program/client/requests/SubscribeToLoyaltyProgramRequest.d.ts +5 -3
  133. package/dist/cjs/api/resources/program/types/GetLpListRequestSort.d.ts +5 -0
  134. package/dist/cjs/api/resources/program/types/GetLpListRequestSort.js +8 -0
  135. package/dist/cjs/api/resources/program/types/GetParameterSubscriptionInfoResponse.d.ts +2 -0
  136. package/dist/cjs/api/resources/program/types/SubscribeMemberToASubscriptionResponse.d.ts +4 -4
  137. package/dist/cjs/api/resources/program/types/SubscribeToLoyaltyProgramResponse.d.ts +10 -8
  138. package/dist/cjs/api/resources/program/types/index.d.ts +1 -0
  139. package/dist/cjs/api/resources/program/types/index.js +1 -0
  140. package/dist/cjs/api/resources/reward/client/Client.js +26 -10
  141. package/dist/cjs/api/resources/reward/client/requests/CreateVoucherRequest.d.ts +2 -0
  142. package/dist/cjs/api/resources/reward/client/requests/RedeemVoucherRequest.d.ts +2 -0
  143. package/dist/cjs/api/resources/reward/types/CreateRewardResponse.d.ts +7 -7
  144. package/dist/cjs/api/resources/reward/types/CreateVoucherResponse.d.ts +2 -0
  145. package/dist/cjs/api/resources/reward/types/GetLoyaltyOfferProgramsPidVouchersResponse.d.ts +2 -0
  146. package/dist/cjs/api/resources/senders/client/Client.js +11 -7
  147. package/dist/cjs/api/resources/senders/types/GetIpsResponse.d.ts +2 -2
  148. package/dist/cjs/api/resources/smsCampaigns/client/Client.d.ts +16 -0
  149. package/dist/cjs/api/resources/smsCampaigns/client/Client.js +30 -10
  150. package/dist/cjs/api/resources/smsCampaigns/client/requests/GetSmsCampaignsRequest.d.ts +3 -3
  151. package/dist/cjs/api/resources/smsCampaigns/types/GetSmsCampaignResponse.d.ts +38 -2
  152. package/dist/cjs/api/resources/smsCampaigns/types/GetSmsCampaignsResponse.d.ts +7 -1
  153. package/dist/cjs/api/resources/smsTemplates/client/Client.js +5 -1
  154. package/dist/cjs/api/resources/tasks/client/Client.d.ts +16 -2
  155. package/dist/cjs/api/resources/tasks/client/Client.js +35 -12
  156. package/dist/cjs/api/resources/tasks/client/requests/PostCrmTasksRequest.d.ts +1 -1
  157. package/dist/cjs/api/resources/tasks/types/{GetCrmTasktypesResponse.d.ts → GetCrmTasktypesResponseItem.d.ts} +1 -4
  158. package/dist/cjs/api/resources/tasks/types/GetCrmTasktypesResponseItem.js +3 -0
  159. package/dist/cjs/api/resources/tasks/types/index.d.ts +1 -1
  160. package/dist/cjs/api/resources/tasks/types/index.js +1 -1
  161. package/dist/cjs/api/resources/tier/client/Client.js +22 -10
  162. package/dist/cjs/api/resources/tier/client/requests/CreateTierGroupRequest.d.ts +62 -0
  163. package/dist/cjs/api/resources/tier/client/requests/CreateTierGroupRequest.js +30 -0
  164. package/dist/cjs/api/resources/transactionalEmails/client/Client.d.ts +31 -2
  165. package/dist/cjs/api/resources/transactionalEmails/client/Client.js +114 -35
  166. package/dist/cjs/api/resources/transactionalEmails/client/requests/DeleteScheduledEmailByIdRequest.d.ts +1 -1
  167. package/dist/cjs/api/resources/transactionalEmails/client/requests/DeleteSmtpLogIdentifierRequest.d.ts +5 -1
  168. package/dist/cjs/api/resources/transactionalEmails/client/requests/GetAggregatedSmtpReportRequest.d.ts +1 -1
  169. package/dist/cjs/api/resources/transactionalEmails/client/requests/GetEmailEventReportRequest.d.ts +1 -1
  170. package/dist/cjs/api/resources/transactionalEmails/client/requests/GetScheduledEmailByIdRequest.d.ts +2 -2
  171. package/dist/cjs/api/resources/transactionalEmails/client/requests/GetSmtpReportRequest.d.ts +1 -1
  172. package/dist/cjs/api/resources/transactionalEmails/client/requests/GetSmtpTemplateRequest.d.ts +3 -2
  173. package/dist/cjs/api/resources/transactionalEmails/client/requests/GetSmtpTemplatesRequest.d.ts +2 -0
  174. package/dist/cjs/api/resources/transactionalEmails/client/requests/UpdateSmtpTemplateRequest.d.ts +3 -2
  175. package/dist/cjs/api/resources/transactionalEmails/types/GetSmtpTemplateRequestTemplateId.d.ts +1 -0
  176. package/dist/cjs/api/resources/transactionalEmails/types/GetSmtpTemplateRequestTemplateId.js +3 -0
  177. package/dist/cjs/api/resources/transactionalEmails/types/GetTransacEmailContentResponse.d.ts +2 -2
  178. package/dist/cjs/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesRequest.d.ts +1 -0
  179. package/dist/cjs/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesRequest.js +3 -0
  180. package/dist/cjs/api/resources/transactionalEmails/types/UpdateSmtpTemplateRequestTemplateId.d.ts +1 -0
  181. package/dist/cjs/api/resources/transactionalEmails/types/UpdateSmtpTemplateRequestTemplateId.js +3 -0
  182. package/dist/cjs/api/resources/transactionalEmails/types/index.d.ts +3 -0
  183. package/dist/cjs/api/resources/transactionalEmails/types/index.js +3 -0
  184. package/dist/cjs/api/resources/transactionalSms/client/Client.d.ts +9 -0
  185. package/dist/cjs/api/resources/transactionalSms/client/Client.js +28 -5
  186. package/dist/cjs/api/resources/transactionalWhatsApp/client/Client.js +6 -2
  187. package/dist/cjs/api/resources/user/client/Client.d.ts +8 -0
  188. package/dist/cjs/api/resources/user/client/Client.js +14 -6
  189. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +0 -1
  190. package/dist/cjs/api/resources/webhooks/client/Client.js +10 -7
  191. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequest.d.ts +14 -21
  192. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequest.js +2 -2
  193. package/dist/cjs/api/resources/webhooks/client/requests/ExportWebhooksHistoryRequest.d.ts +1 -1
  194. package/dist/cjs/api/resources/whatsAppCampaigns/client/Client.d.ts +6 -0
  195. package/dist/cjs/api/resources/whatsAppCampaigns/client/Client.js +23 -9
  196. package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignResponse.d.ts +15 -0
  197. package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppTemplatesResponse.d.ts +2 -0
  198. package/dist/cjs/api/types/BalanceDefinition.d.ts +81 -32
  199. package/dist/cjs/api/types/BalanceDefinition.js +46 -2
  200. package/dist/cjs/api/types/BalanceLimit.d.ts +37 -14
  201. package/dist/cjs/api/types/BalanceLimit.js +22 -0
  202. package/dist/cjs/api/types/Company.d.ts +1 -1
  203. package/dist/cjs/api/types/ConversationsMessage.d.ts +59 -20
  204. package/dist/cjs/api/types/Deal.d.ts +4 -4
  205. package/dist/cjs/api/types/FileData.d.ts +8 -6
  206. package/dist/cjs/api/types/GetCampaignRecipients.d.ts +4 -0
  207. package/dist/cjs/api/types/GetCampaignStats.d.ts +4 -4
  208. package/dist/cjs/api/types/GetContactDetails.d.ts +2 -0
  209. package/dist/cjs/api/types/GetEventsList.d.ts +0 -2
  210. package/dist/cjs/api/types/GetExtendedCampaignOverview.d.ts +28 -5
  211. package/dist/cjs/api/types/GetExtendedCampaignOverview.js +9 -0
  212. package/dist/cjs/api/types/GetExtendedCampaignStats.d.ts +8 -10
  213. package/dist/cjs/api/types/GetProductDetails.d.ts +3 -1
  214. package/dist/cjs/api/types/GetSmsCampaignOverview.d.ts +7 -1
  215. package/dist/cjs/api/types/GetSmtpTemplateOverview.d.ts +3 -1
  216. package/dist/cjs/api/types/GetWebhook.d.ts +5 -10
  217. package/dist/cjs/api/types/GetWebhook.js +2 -6
  218. package/dist/cjs/api/types/LoyaltyProgram.d.ts +23 -20
  219. package/dist/cjs/api/types/LoyaltyProgram.js +2 -1
  220. package/dist/cjs/api/types/Note.d.ts +10 -8
  221. package/dist/cjs/api/types/NoteData.d.ts +1 -1
  222. package/dist/cjs/api/types/Order.d.ts +1 -1
  223. package/dist/cjs/api/types/Pipeline.d.ts +3 -3
  224. package/dist/cjs/api/types/SendTransacSms.d.ts +7 -14
  225. package/dist/cjs/api/types/Task.d.ts +20 -8
  226. package/dist/cjs/api/types/TierGroup.d.ts +66 -0
  227. package/dist/cjs/api/types/TierGroup.js +30 -0
  228. package/dist/cjs/api/types/Transaction.d.ts +36 -17
  229. package/dist/cjs/api/types/Transaction.js +17 -0
  230. package/dist/cjs/core/auth/AuthProvider.d.ts +1 -0
  231. package/dist/cjs/core/auth/AuthProvider.js +7 -0
  232. package/dist/cjs/core/auth/BasicAuth.d.ts +2 -2
  233. package/dist/cjs/core/auth/BasicAuth.js +7 -1
  234. package/dist/cjs/core/auth/index.d.ts +1 -1
  235. package/dist/cjs/core/auth/index.js +3 -1
  236. package/dist/cjs/core/fetcher/Fetcher.d.ts +8 -0
  237. package/dist/cjs/core/fetcher/Fetcher.js +13 -8
  238. package/dist/cjs/core/fetcher/requestWithRetries.js +4 -1
  239. package/dist/cjs/core/file/file.js +3 -2
  240. package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
  241. package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
  242. package/dist/cjs/core/url/index.d.ts +1 -0
  243. package/dist/cjs/core/url/index.js +3 -1
  244. package/dist/cjs/core/url/qs.d.ts +2 -1
  245. package/dist/cjs/core/url/qs.js +24 -12
  246. package/dist/cjs/errors/BrevoError.d.ts +3 -1
  247. package/dist/cjs/errors/BrevoError.js +4 -1
  248. package/dist/cjs/errors/BrevoTimeoutError.d.ts +4 -1
  249. package/dist/cjs/errors/BrevoTimeoutError.js +4 -1
  250. package/dist/cjs/errors/handleNonStatusCodeError.js +4 -1
  251. package/dist/cjs/version.d.ts +1 -1
  252. package/dist/cjs/version.js +1 -1
  253. package/dist/esm/BaseClient.d.mts +3 -0
  254. package/dist/esm/BaseClient.mjs +17 -2
  255. package/dist/esm/api/resources/account/client/Client.d.mts +5 -6
  256. package/dist/esm/api/resources/account/client/Client.mjs +21 -13
  257. package/dist/esm/api/resources/account/types/GetAccountResponse.d.mts +4 -17
  258. package/dist/esm/api/resources/balance/client/Client.d.mts +8 -7
  259. package/dist/esm/api/resources/balance/client/Client.mjs +70 -33
  260. package/dist/esm/api/resources/balance/client/requests/BeginTransactionRequest.d.mts +21 -11
  261. package/dist/esm/api/resources/balance/client/requests/BeginTransactionRequest.mjs +8 -1
  262. package/dist/esm/api/resources/balance/client/requests/CreateBalanceOrderRequest.d.mts +11 -3
  263. package/dist/esm/api/resources/balance/client/requests/CreateBalanceOrderRequest.mjs +8 -1
  264. package/dist/esm/api/resources/balance/client/requests/GetContactBalancesRequest.d.mts +13 -1
  265. package/dist/esm/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidActiveBalanceRequest.d.mts +7 -6
  266. package/dist/esm/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.mts +6 -6
  267. package/dist/esm/api/resources/balance/client/requests/index.d.mts +2 -2
  268. package/dist/esm/api/resources/balance/client/requests/index.mjs +2 -0
  269. package/dist/esm/api/resources/balance/types/GetContactBalancesRequestSort.d.mts +5 -0
  270. package/dist/esm/api/resources/balance/types/GetContactBalancesRequestSort.mjs +5 -0
  271. package/dist/esm/api/resources/balance/types/GetContactBalancesRequestSortField.d.mts +5 -0
  272. package/dist/esm/api/resources/balance/types/GetContactBalancesRequestSortField.mjs +5 -0
  273. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceRequestSort.d.mts +5 -0
  274. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceRequestSort.mjs +5 -0
  275. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceResponse.d.mts +30 -0
  276. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.d.mts +10 -0
  277. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.mjs +14 -1
  278. package/dist/esm/api/resources/balance/types/GetSubscriptionBalancesResponse.d.mts +7 -2
  279. package/dist/esm/api/resources/balance/types/PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.d.mts +14 -14
  280. package/dist/esm/api/resources/balance/types/index.d.mts +4 -0
  281. package/dist/esm/api/resources/balance/types/index.mjs +4 -0
  282. package/dist/esm/api/resources/companies/client/Client.d.mts +22 -0
  283. package/dist/esm/api/resources/companies/client/Client.mjs +49 -18
  284. package/dist/esm/api/resources/companies/client/requests/GetCompaniesRequest.d.mts +4 -4
  285. package/dist/esm/api/resources/companies/client/requests/PatchCompaniesIdRequest.d.mts +1 -1
  286. package/dist/esm/api/resources/companies/client/requests/PostCompaniesImportRequest.d.mts +1 -1
  287. package/dist/esm/api/resources/companies/client/requests/PostCrmAttributesRequest.d.mts +2 -2
  288. package/dist/esm/api/resources/companies/client/requests/PostCrmAttributesRequest.mjs +1 -1
  289. package/dist/esm/api/resources/companies/types/GetCrmAttributesCompaniesResponseItem.d.mts +20 -4
  290. package/dist/esm/api/resources/contacts/client/Client.d.mts +38 -1
  291. package/dist/esm/api/resources/contacts/client/Client.mjs +129 -37
  292. package/dist/esm/api/resources/contacts/client/requests/CreateContactRequest.d.mts +5 -1
  293. package/dist/esm/api/resources/contacts/client/requests/GetContactInfoRequest.d.mts +2 -2
  294. package/dist/esm/api/resources/contacts/client/requests/GetContactStatsRequest.d.mts +2 -2
  295. package/dist/esm/api/resources/contacts/client/requests/GetContactsRequest.d.mts +3 -1
  296. package/dist/esm/api/resources/contacts/client/requests/GetListRequest.d.mts +1 -1
  297. package/dist/esm/api/resources/contacts/client/requests/UpdateContactRequest.d.mts +5 -3
  298. package/dist/esm/api/resources/contacts/types/GetAttributesResponse.d.mts +3 -1
  299. package/dist/esm/api/resources/contacts/types/GetContactInfoResponse.d.mts +4 -2
  300. package/dist/esm/api/resources/contacts/types/GetSegmentsResponse.d.mts +2 -2
  301. package/dist/esm/api/resources/conversations/client/Client.d.mts +18 -8
  302. package/dist/esm/api/resources/conversations/client/Client.mjs +28 -18
  303. package/dist/esm/api/resources/conversations/client/requests/PostConversationsAgentOnlinePingRequest.d.mts +8 -8
  304. package/dist/esm/api/resources/conversations/client/requests/PostConversationsMessagesRequest.d.mts +12 -10
  305. package/dist/esm/api/resources/conversations/client/requests/PostConversationsPushedMessagesRequest.d.mts +11 -9
  306. package/dist/esm/api/resources/conversations/client/requests/PutConversationsMessagesIdRequest.d.mts +1 -1
  307. package/dist/esm/api/resources/conversations/client/requests/PutConversationsPushedMessagesIdRequest.d.mts +2 -2
  308. package/dist/esm/api/resources/coupons/client/Client.d.mts +10 -0
  309. package/dist/esm/api/resources/coupons/client/Client.mjs +19 -5
  310. package/dist/esm/api/resources/customObjects/client/Client.d.mts +101 -21
  311. package/dist/esm/api/resources/customObjects/client/Client.mjs +108 -26
  312. package/dist/esm/api/resources/customObjects/client/requests/BatchDeleteObjectRecordsRequest.d.mts +2 -2
  313. package/dist/esm/api/resources/customObjects/client/requests/GetrecordsRequest.d.mts +1 -1
  314. package/dist/esm/api/resources/customObjects/client/requests/UpsertrecordsRequest.d.mts +114 -25
  315. package/dist/esm/api/resources/customObjects/client/requests/UpsertrecordsRequest.mjs +20 -1
  316. package/dist/esm/api/resources/customObjects/client/requests/index.d.mts +1 -1
  317. package/dist/esm/api/resources/customObjects/client/requests/index.mjs +1 -1
  318. package/dist/esm/api/resources/customObjects/types/GetrecordsResponse.d.mts +14 -5
  319. package/dist/esm/api/resources/deals/client/Client.d.mts +22 -0
  320. package/dist/esm/api/resources/deals/client/Client.mjs +59 -22
  321. package/dist/esm/api/resources/deals/client/requests/GetCrmDealsRequest.d.mts +5 -3
  322. package/dist/esm/api/resources/deals/client/requests/PatchCrmDealsIdRequest.d.mts +1 -1
  323. package/dist/esm/api/resources/deals/client/requests/PostCrmDealsImportRequest.d.mts +1 -1
  324. package/dist/esm/api/resources/deals/types/GetCrmAttributesDealsResponseItem.d.mts +20 -4
  325. package/dist/esm/api/resources/domains/client/Client.mjs +5 -5
  326. package/dist/esm/api/resources/ecommerce/client/Client.d.mts +32 -3
  327. package/dist/esm/api/resources/ecommerce/client/Client.mjs +81 -22
  328. package/dist/esm/api/resources/ecommerce/client/requests/CreateBatchOrderRequest.d.mts +2 -2
  329. package/dist/esm/api/resources/ecommerce/client/requests/CreateUpdateBatchProductsRequest.d.mts +4 -2
  330. package/dist/esm/api/resources/ecommerce/client/requests/CreateUpdateProductRequest.d.mts +4 -2
  331. package/dist/esm/api/resources/ecommerce/client/requests/GetEcommerceAttributionMetricsRequest.d.mts +2 -1
  332. package/dist/esm/api/resources/ecommerce/client/requests/GetProductsRequest.d.mts +18 -2
  333. package/dist/esm/api/resources/ecommerce/types/CreateUpdateCategoryResponse.d.mts +1 -1
  334. package/dist/esm/api/resources/ecommerce/types/CreateUpdateProductResponse.d.mts +2 -2
  335. package/dist/esm/api/resources/ecommerce/types/GetProductsRequestSortByField.d.mts +7 -0
  336. package/dist/esm/api/resources/ecommerce/types/GetProductsRequestSortByField.mjs +7 -0
  337. package/dist/esm/api/resources/ecommerce/types/index.d.mts +1 -0
  338. package/dist/esm/api/resources/ecommerce/types/index.mjs +1 -0
  339. package/dist/esm/api/resources/emailCampaigns/client/Client.d.mts +22 -1
  340. package/dist/esm/api/resources/emailCampaigns/client/Client.mjs +51 -15
  341. package/dist/esm/api/resources/emailCampaigns/client/requests/CreateEmailCampaignRequest.d.mts +7 -7
  342. package/dist/esm/api/resources/emailCampaigns/client/requests/GetEmailCampaignRequest.d.mts +1 -1
  343. package/dist/esm/api/resources/emailCampaigns/client/requests/GetEmailCampaignsRequest.d.mts +6 -4
  344. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignResponse.d.mts +28 -5
  345. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignResponse.mjs +9 -0
  346. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.d.mts +27 -4
  347. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.mjs +9 -0
  348. package/dist/esm/api/resources/event/client/Client.d.mts +8 -6
  349. package/dist/esm/api/resources/event/client/Client.mjs +14 -8
  350. package/dist/esm/api/resources/event/client/requests/CreateBatchEventsRequest.d.mts +76 -0
  351. package/dist/esm/api/resources/event/client/requests/CreateEventRequest.d.mts +5 -5
  352. package/dist/esm/api/resources/event/client/requests/index.d.mts +1 -0
  353. package/dist/esm/api/resources/event/index.d.mts +0 -1
  354. package/dist/esm/api/resources/event/index.mjs +0 -1
  355. package/dist/esm/api/resources/externalFeeds/client/Client.mjs +9 -5
  356. package/dist/esm/api/resources/externalFeeds/types/GetAllExternalFeedsResponse.d.mts +3 -7
  357. package/dist/esm/api/resources/externalFeeds/types/GetExternalFeedByUuidResponse.d.mts +3 -9
  358. package/dist/esm/api/resources/files/client/Client.d.mts +10 -0
  359. package/dist/esm/api/resources/files/client/Client.mjs +19 -5
  360. package/dist/esm/api/resources/inboundParsing/client/Client.d.mts +2 -1
  361. package/dist/esm/api/resources/inboundParsing/client/Client.mjs +11 -4
  362. package/dist/esm/api/resources/inboundParsing/client/requests/GetInboundEmailEventsRequest.d.mts +2 -2
  363. package/dist/esm/api/resources/inboundParsing/types/GetInboundEmailEventsByUuidResponse.d.mts +2 -2
  364. package/dist/esm/api/resources/index.d.mts +0 -1
  365. package/dist/esm/api/resources/index.mjs +0 -1
  366. package/dist/esm/api/resources/masterAccount/client/Client.d.mts +10 -0
  367. package/dist/esm/api/resources/masterAccount/client/Client.mjs +84 -46
  368. package/dist/esm/api/resources/notes/client/Client.d.mts +12 -2
  369. package/dist/esm/api/resources/notes/client/Client.mjs +21 -7
  370. package/dist/esm/api/resources/notes/client/requests/PatchCrmNotesIdRequest.d.mts +1 -1
  371. package/dist/esm/api/resources/notes/types/PostCrmNotesResponse.d.mts +1 -1
  372. package/dist/esm/api/resources/payments/client/Client.d.mts +6 -0
  373. package/dist/esm/api/resources/payments/client/Client.mjs +9 -3
  374. package/dist/esm/api/resources/process/client/Client.d.mts +13 -18
  375. package/dist/esm/api/resources/process/client/Client.mjs +19 -20
  376. package/dist/esm/api/resources/process/types/GetProcessResponse.d.mts +22 -38
  377. package/dist/esm/api/resources/process/types/GetProcessResponse.mjs +1 -0
  378. package/dist/esm/api/resources/process/types/GetProcessesResponse.d.mts +22 -38
  379. package/dist/esm/api/resources/process/types/GetProcessesResponse.mjs +1 -0
  380. package/dist/esm/api/resources/program/client/Client.d.mts +1 -1
  381. package/dist/esm/api/resources/program/client/Client.mjs +26 -14
  382. package/dist/esm/api/resources/program/client/requests/GetLpListRequest.d.mts +2 -2
  383. package/dist/esm/api/resources/program/client/requests/SubscribeToLoyaltyProgramRequest.d.mts +5 -3
  384. package/dist/esm/api/resources/program/types/GetLpListRequestSort.d.mts +5 -0
  385. package/dist/esm/api/resources/program/types/GetLpListRequestSort.mjs +5 -0
  386. package/dist/esm/api/resources/program/types/GetParameterSubscriptionInfoResponse.d.mts +2 -0
  387. package/dist/esm/api/resources/program/types/SubscribeMemberToASubscriptionResponse.d.mts +4 -4
  388. package/dist/esm/api/resources/program/types/SubscribeToLoyaltyProgramResponse.d.mts +10 -8
  389. package/dist/esm/api/resources/program/types/index.d.mts +1 -0
  390. package/dist/esm/api/resources/program/types/index.mjs +1 -0
  391. package/dist/esm/api/resources/reward/client/Client.mjs +26 -10
  392. package/dist/esm/api/resources/reward/client/requests/CreateVoucherRequest.d.mts +2 -0
  393. package/dist/esm/api/resources/reward/client/requests/RedeemVoucherRequest.d.mts +2 -0
  394. package/dist/esm/api/resources/reward/types/CreateRewardResponse.d.mts +7 -7
  395. package/dist/esm/api/resources/reward/types/CreateVoucherResponse.d.mts +2 -0
  396. package/dist/esm/api/resources/reward/types/GetLoyaltyOfferProgramsPidVouchersResponse.d.mts +2 -0
  397. package/dist/esm/api/resources/senders/client/Client.mjs +11 -7
  398. package/dist/esm/api/resources/senders/types/GetIpsResponse.d.mts +2 -2
  399. package/dist/esm/api/resources/smsCampaigns/client/Client.d.mts +16 -0
  400. package/dist/esm/api/resources/smsCampaigns/client/Client.mjs +30 -10
  401. package/dist/esm/api/resources/smsCampaigns/client/requests/GetSmsCampaignsRequest.d.mts +3 -3
  402. package/dist/esm/api/resources/smsCampaigns/types/GetSmsCampaignResponse.d.mts +38 -2
  403. package/dist/esm/api/resources/smsCampaigns/types/GetSmsCampaignsResponse.d.mts +7 -1
  404. package/dist/esm/api/resources/smsTemplates/client/Client.mjs +5 -1
  405. package/dist/esm/api/resources/tasks/client/Client.d.mts +16 -2
  406. package/dist/esm/api/resources/tasks/client/Client.mjs +35 -12
  407. package/dist/esm/api/resources/tasks/client/requests/PostCrmTasksRequest.d.mts +1 -1
  408. package/dist/esm/api/resources/tasks/types/{GetCrmTasktypesResponse.d.mts → GetCrmTasktypesResponseItem.d.mts} +1 -4
  409. package/dist/esm/api/resources/tasks/types/GetCrmTasktypesResponseItem.mjs +2 -0
  410. package/dist/esm/api/resources/tasks/types/index.d.mts +1 -1
  411. package/dist/esm/api/resources/tasks/types/index.mjs +1 -1
  412. package/dist/esm/api/resources/tier/client/Client.mjs +22 -10
  413. package/dist/esm/api/resources/tier/client/requests/CreateTierGroupRequest.d.mts +62 -0
  414. package/dist/esm/api/resources/tier/client/requests/CreateTierGroupRequest.mjs +30 -0
  415. package/dist/esm/api/resources/transactionalEmails/client/Client.d.mts +31 -2
  416. package/dist/esm/api/resources/transactionalEmails/client/Client.mjs +114 -35
  417. package/dist/esm/api/resources/transactionalEmails/client/requests/DeleteScheduledEmailByIdRequest.d.mts +1 -1
  418. package/dist/esm/api/resources/transactionalEmails/client/requests/DeleteSmtpLogIdentifierRequest.d.mts +5 -1
  419. package/dist/esm/api/resources/transactionalEmails/client/requests/GetAggregatedSmtpReportRequest.d.mts +1 -1
  420. package/dist/esm/api/resources/transactionalEmails/client/requests/GetEmailEventReportRequest.d.mts +1 -1
  421. package/dist/esm/api/resources/transactionalEmails/client/requests/GetScheduledEmailByIdRequest.d.mts +2 -2
  422. package/dist/esm/api/resources/transactionalEmails/client/requests/GetSmtpReportRequest.d.mts +1 -1
  423. package/dist/esm/api/resources/transactionalEmails/client/requests/GetSmtpTemplateRequest.d.mts +3 -2
  424. package/dist/esm/api/resources/transactionalEmails/client/requests/GetSmtpTemplatesRequest.d.mts +2 -0
  425. package/dist/esm/api/resources/transactionalEmails/client/requests/UpdateSmtpTemplateRequest.d.mts +3 -2
  426. package/dist/esm/api/resources/transactionalEmails/types/GetSmtpTemplateRequestTemplateId.d.mts +1 -0
  427. package/dist/esm/api/resources/transactionalEmails/types/GetSmtpTemplateRequestTemplateId.mjs +2 -0
  428. package/dist/esm/api/resources/transactionalEmails/types/GetTransacEmailContentResponse.d.mts +2 -2
  429. package/dist/esm/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesRequest.d.mts +1 -0
  430. package/dist/esm/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesRequest.mjs +2 -0
  431. package/dist/esm/api/resources/transactionalEmails/types/UpdateSmtpTemplateRequestTemplateId.d.mts +1 -0
  432. package/dist/esm/api/resources/transactionalEmails/types/UpdateSmtpTemplateRequestTemplateId.mjs +2 -0
  433. package/dist/esm/api/resources/transactionalEmails/types/index.d.mts +3 -0
  434. package/dist/esm/api/resources/transactionalEmails/types/index.mjs +3 -0
  435. package/dist/esm/api/resources/transactionalSms/client/Client.d.mts +9 -0
  436. package/dist/esm/api/resources/transactionalSms/client/Client.mjs +28 -5
  437. package/dist/esm/api/resources/transactionalWhatsApp/client/Client.mjs +6 -2
  438. package/dist/esm/api/resources/user/client/Client.d.mts +8 -0
  439. package/dist/esm/api/resources/user/client/Client.mjs +14 -6
  440. package/dist/esm/api/resources/webhooks/client/Client.d.mts +0 -1
  441. package/dist/esm/api/resources/webhooks/client/Client.mjs +10 -7
  442. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequest.d.mts +14 -21
  443. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequest.mjs +2 -2
  444. package/dist/esm/api/resources/webhooks/client/requests/ExportWebhooksHistoryRequest.d.mts +1 -1
  445. package/dist/esm/api/resources/whatsAppCampaigns/client/Client.d.mts +6 -0
  446. package/dist/esm/api/resources/whatsAppCampaigns/client/Client.mjs +23 -9
  447. package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignResponse.d.mts +15 -0
  448. package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppTemplatesResponse.d.mts +2 -0
  449. package/dist/esm/api/types/BalanceDefinition.d.mts +81 -32
  450. package/dist/esm/api/types/BalanceDefinition.mjs +46 -2
  451. package/dist/esm/api/types/BalanceLimit.d.mts +37 -14
  452. package/dist/esm/api/types/BalanceLimit.mjs +21 -1
  453. package/dist/esm/api/types/Company.d.mts +1 -1
  454. package/dist/esm/api/types/ConversationsMessage.d.mts +59 -20
  455. package/dist/esm/api/types/Deal.d.mts +4 -4
  456. package/dist/esm/api/types/FileData.d.mts +8 -6
  457. package/dist/esm/api/types/GetCampaignRecipients.d.mts +4 -0
  458. package/dist/esm/api/types/GetCampaignStats.d.mts +4 -4
  459. package/dist/esm/api/types/GetContactDetails.d.mts +2 -0
  460. package/dist/esm/api/types/GetEventsList.d.mts +0 -2
  461. package/dist/esm/api/types/GetExtendedCampaignOverview.d.mts +28 -5
  462. package/dist/esm/api/types/GetExtendedCampaignOverview.mjs +9 -0
  463. package/dist/esm/api/types/GetExtendedCampaignStats.d.mts +8 -10
  464. package/dist/esm/api/types/GetProductDetails.d.mts +3 -1
  465. package/dist/esm/api/types/GetSmsCampaignOverview.d.mts +7 -1
  466. package/dist/esm/api/types/GetSmtpTemplateOverview.d.mts +3 -1
  467. package/dist/esm/api/types/GetWebhook.d.mts +5 -10
  468. package/dist/esm/api/types/GetWebhook.mjs +2 -6
  469. package/dist/esm/api/types/LoyaltyProgram.d.mts +23 -20
  470. package/dist/esm/api/types/LoyaltyProgram.mjs +2 -1
  471. package/dist/esm/api/types/Note.d.mts +10 -8
  472. package/dist/esm/api/types/NoteData.d.mts +1 -1
  473. package/dist/esm/api/types/Order.d.mts +1 -1
  474. package/dist/esm/api/types/Pipeline.d.mts +3 -3
  475. package/dist/esm/api/types/SendTransacSms.d.mts +7 -14
  476. package/dist/esm/api/types/Task.d.mts +20 -8
  477. package/dist/esm/api/types/TierGroup.d.mts +66 -0
  478. package/dist/esm/api/types/TierGroup.mjs +30 -0
  479. package/dist/esm/api/types/Transaction.d.mts +36 -17
  480. package/dist/esm/api/types/Transaction.mjs +16 -1
  481. package/dist/esm/core/auth/AuthProvider.d.mts +1 -0
  482. package/dist/esm/core/auth/AuthProvider.mjs +6 -1
  483. package/dist/esm/core/auth/BasicAuth.d.mts +2 -2
  484. package/dist/esm/core/auth/BasicAuth.mjs +7 -1
  485. package/dist/esm/core/auth/index.d.mts +1 -1
  486. package/dist/esm/core/auth/index.mjs +1 -0
  487. package/dist/esm/core/fetcher/Fetcher.d.mts +8 -0
  488. package/dist/esm/core/fetcher/Fetcher.mjs +13 -8
  489. package/dist/esm/core/fetcher/requestWithRetries.mjs +4 -1
  490. package/dist/esm/core/file/file.mjs +3 -2
  491. package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
  492. package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
  493. package/dist/esm/core/url/index.d.mts +1 -0
  494. package/dist/esm/core/url/index.mjs +1 -0
  495. package/dist/esm/core/url/qs.d.mts +2 -1
  496. package/dist/esm/core/url/qs.mjs +24 -12
  497. package/dist/esm/errors/BrevoError.d.mts +3 -1
  498. package/dist/esm/errors/BrevoError.mjs +4 -1
  499. package/dist/esm/errors/BrevoTimeoutError.d.mts +4 -1
  500. package/dist/esm/errors/BrevoTimeoutError.mjs +4 -1
  501. package/dist/esm/errors/handleNonStatusCodeError.mjs +4 -1
  502. package/dist/esm/version.d.mts +1 -1
  503. package/dist/esm/version.mjs +1 -1
  504. package/package.json +8 -8
  505. package/reference.md +1828 -99
  506. package/dist/cjs/api/resources/event/types/CreateBatchEventsRequestItem.d.ts +0 -59
  507. package/dist/cjs/api/resources/event/types/index.d.ts +0 -1
  508. package/dist/cjs/api/resources/event/types/index.js +0 -17
  509. package/dist/esm/api/resources/event/types/CreateBatchEventsRequestItem.d.mts +0 -59
  510. package/dist/esm/api/resources/event/types/index.d.mts +0 -1
  511. package/dist/esm/api/resources/event/types/index.mjs +0 -1
  512. /package/dist/cjs/api/resources/{event/types/CreateBatchEventsRequestItem.js → balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceResponse.js} +0 -0
  513. /package/dist/cjs/api/resources/{tasks/types/GetCrmTasktypesResponse.js → event/client/requests/CreateBatchEventsRequest.js} +0 -0
  514. /package/dist/esm/api/resources/{event/types/CreateBatchEventsRequestItem.mjs → balance/types/GetLoyaltyBalanceProgramsPidActiveBalanceResponse.mjs} +0 -0
  515. /package/dist/esm/api/resources/{tasks/types/GetCrmTasktypesResponse.mjs → event/client/requests/CreateBatchEventsRequest.mjs} +0 -0
package/reference.md CHANGED
@@ -19,25 +19,22 @@ Retrieves details of your Brevo account.
19
19
  - Check plan details (type, credits, expiration)
20
20
  - Get relay information (for transactional emails)
21
21
  - Check Marketing Automation status
22
- - View date/time preferences and account settings
23
22
  - Access organization and user identifiers
24
23
 
25
24
  **Key information returned:**
26
25
  - Complete account details (organization ID, user ID, company information)
27
26
  - Address and contact information
28
27
  - Plan configurations and credit allocations across different verticals
29
- - Marketing Automation settings and tracker key
28
+ - Marketing Automation settings and tracker key (when enabled)
30
29
  - SMTP relay configuration for transactional emails
31
- - Date/time preferences and account settings
32
30
  - Enterprise features availability status
33
31
 
34
32
  **Important considerations:**
35
33
  - Provides comprehensive account overview for billing and configuration management
36
34
  - Essential for understanding current plan limitations and feature availability
37
- - Marketing Automation key required for advanced automation features
38
- - Plan verticals show detailed breakdown across Marketing, Chat, and CRM categories
35
+ - Marketing Automation key is only returned when Marketing Automation is enabled on the account
36
+ - Plan verticals show detailed breakdown across Marketing, Chat, and CRM categories (only returned when plan verticals are available)
39
37
  - Relay configuration crucial for transactional email setup and deliverability
40
- - Date/time preferences affect campaign scheduling and reporting displays
41
38
  - Enterprise status determines access to advanced features and sub-account management
42
39
  </dd>
43
40
  </dl>
@@ -1261,6 +1258,20 @@ await client.masterAccount.getSubAccountDetails({
1261
1258
  <dl>
1262
1259
  <dd>
1263
1260
 
1261
+ #### 📝 Description
1262
+
1263
+ <dl>
1264
+ <dd>
1265
+
1266
+ <dl>
1267
+ <dd>
1268
+
1269
+ Permanently deletes a sub-account from the corporate master account. Once deleted, all data associated with the sub-account organization is removed and cannot be recovered, so ensure the sub-account is no longer needed before proceeding.
1270
+ </dd>
1271
+ </dl>
1272
+ </dd>
1273
+ </dl>
1274
+
1264
1275
  #### 🔌 Usage
1265
1276
 
1266
1277
  <dl>
@@ -1931,6 +1942,20 @@ await client.masterAccount.changeAdminUserPermissions({
1931
1942
  <dl>
1932
1943
  <dd>
1933
1944
 
1945
+ #### 📝 Description
1946
+
1947
+ <dl>
1948
+ <dd>
1949
+
1950
+ <dl>
1951
+ <dd>
1952
+
1953
+ Retrieves the list of all users associated with your organization, including both active and pending invited users. Each user entry includes their email address, owner status, current invitation status, and feature access levels for marketing, CRM, and conversations.
1954
+ </dd>
1955
+ </dl>
1956
+ </dd>
1957
+ </dl>
1958
+
1934
1959
  #### 🔌 Usage
1935
1960
 
1936
1961
  <dl>
@@ -1972,6 +1997,20 @@ await client.user.getInvitedUsersList();
1972
1997
  <dl>
1973
1998
  <dd>
1974
1999
 
2000
+ #### 📝 Description
2001
+
2002
+ <dl>
2003
+ <dd>
2004
+
2005
+ <dl>
2006
+ <dd>
2007
+
2008
+ Revokes all permissions for an invited user in the organization, effectively removing their access to the platform. If the user''s plan change generated credit notes, they are returned in the response for billing reconciliation.
2009
+ </dd>
2010
+ </dl>
2011
+ </dd>
2012
+ </dl>
2013
+
1975
2014
  #### 🔌 Usage
1976
2015
 
1977
2016
  <dl>
@@ -2157,6 +2196,20 @@ await client.user.inviteuser({
2157
2196
  <dl>
2158
2197
  <dd>
2159
2198
 
2199
+ #### 📝 Description
2200
+
2201
+ <dl>
2202
+ <dd>
2203
+
2204
+ <dl>
2205
+ <dd>
2206
+
2207
+ Resends or cancels a pending invitation for a user in the organization, depending on the action path parameter. Use `resend` to send a new invitation email to the user, or `cancel` to revoke the pending invitation entirely and remove the user''s pending access.
2208
+ </dd>
2209
+ </dl>
2210
+ </dd>
2211
+ </dl>
2212
+
2160
2213
  #### 🔌 Usage
2161
2214
 
2162
2215
  <dl>
@@ -2342,6 +2395,20 @@ await client.user.editUserPermission({
2342
2395
  <dl>
2343
2396
  <dd>
2344
2397
 
2398
+ #### 📝 Description
2399
+
2400
+ <dl>
2401
+ <dd>
2402
+
2403
+ <dl>
2404
+ <dd>
2405
+
2406
+ Retrieves the granular feature-level permissions assigned to a specific user in the organization, identified by their email address. The response includes the user''s current status (active or pending) and a detailed list of privileges specifying which features and permission levels are granted.
2407
+ </dd>
2408
+ </dl>
2409
+ </dd>
2410
+ </dl>
2411
+
2345
2412
  #### 🔌 Usage
2346
2413
 
2347
2414
  <dl>
@@ -2412,20 +2479,19 @@ Retrieves a list of background processes from your Brevo account with filtering
2412
2479
  - Identify failed or stuck processes for troubleshooting
2413
2480
 
2414
2481
  **Key information returned:**
2415
- - Process details (ID, name, type, status)
2416
- - Process creation and completion timestamps
2417
- - Process progress and completion status
2418
- - Error information for failed processes
2419
- - Process result data and download links
2482
+ - Process details (ID, name, status)
2483
+ - Export download URLs for completed export processes
2484
+ - Import details with CSV report URLs for completed import processes
2485
+ - Total count of processes for pagination
2420
2486
 
2421
2487
  **Important considerations:**
2422
2488
  - Background processes handle long-running operations like imports and exports
2423
- - Process status indicates current state (queued, processing, completed, failed, cancelled)
2489
+ - Process status indicates current state (queued, processing, completed)
2424
2490
  - Export processes provide download URLs when completed
2425
- - Failed processes include error messages for troubleshooting
2491
+ - Import processes provide CSV report URLs with details about problematic records
2426
2492
  - Use pagination for accounts with many historical processes
2427
2493
  - Sort options available for creation order (ascending or descending)
2428
- - Different process types handle specific operations (imports, exports, calculations)
2494
+ - Default limit is 10 results per page, maximum is 50
2429
2495
  </dd>
2430
2496
  </dl>
2431
2497
  </dd>
@@ -2498,18 +2564,14 @@ Retrieves detailed information about a specific background process.
2498
2564
  - Track process execution times
2499
2565
 
2500
2566
  **Key information returned:**
2501
- - Complete process details and status
2502
- - Import/export statistics and results
2503
- - Error information for troubleshooting
2504
- - Download URLs for export processes
2505
- - Process timing and performance data
2567
+ - Complete process details (ID, name, status)
2568
+ - Download URLs for completed export processes
2569
+ - Import details with CSV report URLs for completed import processes
2506
2570
 
2507
2571
  **Important considerations:**
2508
- - Process ID must exist in your account
2509
- - Completed processes provide detailed statistics and results
2510
- - Export processes include download URLs when successful
2511
- - Failed processes contain error messages for debugging
2512
- - Timing information helps with performance analysis
2572
+ - Process ID must exist in your account and not be deleted
2573
+ - Completed export processes include download URLs
2574
+ - Completed import processes include CSV report URLs with details about problematic records
2513
2575
  - Different process types return different result structures
2514
2576
  </dd>
2515
2577
  </dl>
@@ -3588,7 +3650,6 @@ Key information returned:
3588
3650
 
3589
3651
  ```typescript
3590
3652
  await client.webhooks.createWebhook({
3591
- events: ["sent"],
3592
3653
  url: "http://requestb.in/173lyyx1"
3593
3654
  });
3594
3655
 
@@ -4377,24 +4438,51 @@ await client.externalFeeds.deleteExternalFeed({
4377
4438
 
4378
4439
  <Note title="Enterprise access only">Custom objects are only available to Enterprise plans.
4379
4440
  This feature is in beta. These are subject to change.</Note>
4380
- This API allows bulk upsert of object records in a single request. Each object record may include
4381
- - Attributes
4382
- - Identifiers
4383
- - Associations
4384
- **Response:**
4385
- The API processes the request asynchronously and returns a processId that you can use to track the background process status.
4386
- **API and Schema Limitation:**
4387
- - Size:
4388
- - Max 1000 objects records per request
4389
- - Max request body size: 1 MB
4390
- - Max 500 attributes defined per object record upsert request
4391
- - This is coherent with schema limitation: an object cannot have more than 500 attributes.
4392
- - Worth noting: Nothing happens If an attribute is mentioned in the request, but was not previously defined for the object schema (no error, no attribute creation)
4393
- - Max 10 associations defined per associated object type, in each record of the request
4394
- - This is not a schema limitation. You can associate an object record to an unlimited number of other object records by running multiple requests.
4441
+ Performs bulk create or update (upsert) operations for object records in a single asynchronous request. This endpoint is optimized for high-volume data imports and synchronization scenarios.
4442
+
4443
+ **How Upsert Works:**
4444
+ - **Create**: Omit `identifiers`, or provide only `ext_id` (if it doesn't already exist). A new record is created with a Brevo-generated `id`.
4445
+ - **Update**: Provide `id` (Brevo internal ID) or an `ext_id` that already exists. The matching record is updated with the new attribute values.
4446
+ - **Important:** `id` is for **updates only**. Providing an `id` that does not belong to an existing record will fail during async processing (the HTTP response will still be 202, but the record will be rejected in the background). To create a new record with a stable external reference, use `ext_id` instead.
4447
+
4448
+ **Request Structure:**
4449
+ Each object record in the `records` array can include:
4450
+ - `identifiers`: Either `id` (internal Brevo ID) or `ext_id` (your external system ID) — required for updates. **Note:** use `id` (singular), not `ids`.
4451
+ - `attributes`: Key-value pairs where each key is the attribute **key** (e.g., `company_name`), not the attribute label (e.g., "Company Name").
4452
+ - `associations`: Controls linking and unlinking of associated records (optional). Each entry specifies:
4453
+ - `object_type`: The type of the associated object
4454
+ - `action`: `link` (default) to create the association, or `unlink` to remove it
4455
+ - `records`: The associated records to link or unlink (each identified by `ext_id` or `id`)
4456
+ - **Unlink is idempotent** — unlinking a non-existing association is a no-op (no error returned)
4457
+ - `link` and `unlink` actions can be submitted for the same `object_type` in a single record entry
4458
+ - Both associated records must already exist before a link can be created
4459
+
4460
+ > **Common mistake:** Passing the attribute **label** (the display name you see in the UI) instead of the attribute **key** will cause the attribute to be silently ignored and the record may not be created as expected.
4461
+
4462
+ **Asynchronous Processing:**
4463
+ - Returns immediately with a `processId` (HTTP 202 Accepted)
4464
+ - Use the processId to track status via the Get process API
4465
+
4466
+ **API and Schema Limitations:**
4467
+ - Max 1000 object records per request
4468
+ - Max request body size: 1 MB
4469
+ - Max 500 attributes per object record (matches the schema limit of 500 attributes per object)
4470
+ - Unknown attribute keys are silently ignored (no error, no attribute creation)
4471
+ - Max 10 association records per associated object-type in each record of the request. If you need more, send multiple requests.
4472
+
4473
+ **Important Behaviors:**
4474
+ - The object schema must be created before upserting records
4475
+ - Unknown attribute keys are silently ignored (no error, no creation)
4476
+ - Both associated object records must already exist before creating a link association
4477
+ - Unlink operations are idempotent: attempting to unlink a non-existing association returns success
4478
+ - `link` and `unlink` actions can be submitted for the same `object_type` in a single record entry
4479
+ - Contact objects cannot be created via this endpoint
4480
+ - For `category` and `multiple_category` attributes, pass the option **key** as the value (not the option label or option ID).
4481
+ - The `id` identifier (internal Brevo ID) can only be used for **updating** existing records. To create new records, either omit identifiers (Brevo auto-generates an ID) or provide an `ext_id`.
4482
+
4395
4483
  **Errors:**
4396
- - Make sure both object records exist before associating them, else the API will return an error.
4397
- - This route does not create objects. The object where the object records are upserted by this API must be created already else the API will return an error "invalid object type".
4484
+ - Make sure both object records exist before associating them, else the API will return an error.
4485
+ - This route does not create objects. The object where the object records are upserted by this API must be created already else the API will return an error "invalid object type".
4398
4486
  </dd>
4399
4487
  </dl>
4400
4488
  </dd>
@@ -4411,7 +4499,34 @@ This API allows bulk upsert of object records in a single request. Each object r
4411
4499
  ```typescript
4412
4500
  await client.customObjects.upsertrecords({
4413
4501
  object_type: "vehicle",
4414
- records: [{}]
4502
+ records: [{
4503
+ associations: [{
4504
+ object_type: "garage",
4505
+ action: "link",
4506
+ records: [{
4507
+ identifiers: {
4508
+ id: 435435
4509
+ }
4510
+ }]
4511
+ }, {
4512
+ object_type: "garage",
4513
+ action: "unlink",
4514
+ records: [{
4515
+ identifiers: {
4516
+ ext_id: "old-garage-001"
4517
+ }
4518
+ }]
4519
+ }],
4520
+ attributes: {
4521
+ "make": "Toyota",
4522
+ "model": "Camry",
4523
+ "year": 2020,
4524
+ "engine_type": "hybrid"
4525
+ },
4526
+ identifiers: {
4527
+ ext_id: "VIN123"
4528
+ }
4529
+ }]
4415
4530
  });
4416
4531
 
4417
4532
  ```
@@ -4530,8 +4645,8 @@ await client.customObjects.getrecords({
4530
4645
  <dd>
4531
4646
 
4532
4647
  Use this endpoint to delete multiple object records of the same object-type in one request.
4533
- The request is accepted and processed asynchronously. You can track the status of the deletion process using the returned **processId**.
4534
- **API and Schema Limitations:** - Each request can contain up to **1000** object record identifiers - If more records must be deleted send multiple batch requests
4648
+ The request is accepted and processed asynchronously. You can track the status of the deletion process using the returned **processId**.
4649
+ **Limitations:** - Each request can contain up to **1000** object record identifiers - Either `ids` or `ext_ids` must be provided, but **not both** in the same request - Deletion of Brevo standard object records is not supported via this endpoint - If more records must be deleted, send multiple batch requests
4535
4650
  </dd>
4536
4651
  </dl>
4537
4652
  </dd>
@@ -4592,6 +4707,20 @@ await client.customObjects.batchDeleteObjectRecords({
4592
4707
  <dl>
4593
4708
  <dd>
4594
4709
 
4710
+ #### 📝 Description
4711
+
4712
+ <dl>
4713
+ <dd>
4714
+
4715
+ <dl>
4716
+ <dd>
4717
+
4718
+ Retrieve all contacts from your Brevo account with support for pagination, filtering, and sorting. Results default to 50 contacts per page (maximum 1000) sorted in descending order of creation, and can be filtered by modification date, creation date, contact IDs (up to 20), list IDs, segment ID, or contact attributes using the equals operator. Note that either listIds or segmentId can be passed but not both simultaneously.
4719
+ </dd>
4720
+ </dl>
4721
+ </dd>
4722
+ </dl>
4723
+
4595
4724
  #### 🔌 Usage
4596
4725
 
4597
4726
  <dl>
@@ -4637,7 +4766,7 @@ await client.contacts.getContacts();
4637
4766
  </dl>
4638
4767
  </details>
4639
4768
 
4640
- <details><summary><code>client.contacts.<a href="/src/api/resources/contacts/client/Client.ts">createContact</a>({ ...params }) -> Brevo.CreateContactResponse</code></summary>
4769
+ <details><summary><code>client.contacts.<a href="/src/api/resources/contacts/client/Client.ts">createContact</a>({ ...params }) -> Brevo.CreateContactResponse | undefined</code></summary>
4641
4770
  <dl>
4642
4771
  <dd>
4643
4772
 
@@ -4706,6 +4835,20 @@ await client.contacts.createContact();
4706
4835
  <dl>
4707
4836
  <dd>
4708
4837
 
4838
+ #### 📝 Description
4839
+
4840
+ <dl>
4841
+ <dd>
4842
+
4843
+ <dl>
4844
+ <dd>
4845
+
4846
+ Retrieve all contact attributes defined in your Brevo account, grouped by category (normal, transactional, category, calculated, global). Each attribute includes its name, type, and category, along with enumeration values for category-type attributes and options for multiple-choice-type attributes.
4847
+ </dd>
4848
+ </dl>
4849
+ </dd>
4850
+ </dl>
4851
+
4709
4852
  #### 🔌 Usage
4710
4853
 
4711
4854
  <dl>
@@ -4747,6 +4890,20 @@ await client.contacts.getAttributes();
4747
4890
  <dl>
4748
4891
  <dd>
4749
4892
 
4893
+ #### 📝 Description
4894
+
4895
+ <dl>
4896
+ <dd>
4897
+
4898
+ <dl>
4899
+ <dd>
4900
+
4901
+ Create a new contact attribute under the specified category and name. The required body properties depend on the category: use "type" for normal, transactional, or category attributes; use "value" for calculated or global attributes; use "enumeration" for category attributes; and use "multiCategoryOptions" for normal multiple-choice attributes. None of the category or multicategory option values can exceed 200 characters.
4902
+ </dd>
4903
+ </dl>
4904
+ </dd>
4905
+ </dl>
4906
+
4750
4907
  #### 🔌 Usage
4751
4908
 
4752
4909
  <dl>
@@ -4799,6 +4956,20 @@ await client.contacts.createAttribute({
4799
4956
  <dl>
4800
4957
  <dd>
4801
4958
 
4959
+ #### 📝 Description
4960
+
4961
+ <dl>
4962
+ <dd>
4963
+
4964
+ <dl>
4965
+ <dd>
4966
+
4967
+ Update an existing contact attribute identified by its category and name. For category-type attributes, you can update the enumeration values; for calculated or global attributes, update the computed value formula; and for normal multiple-choice attributes, update the multicategory options. None of the category or multicategory option values can exceed 200 characters.
4968
+ </dd>
4969
+ </dl>
4970
+ </dd>
4971
+ </dl>
4972
+
4802
4973
  #### 🔌 Usage
4803
4974
 
4804
4975
  <dl>
@@ -4851,6 +5022,20 @@ await client.contacts.updateAttribute({
4851
5022
  <dl>
4852
5023
  <dd>
4853
5024
 
5025
+ #### 📝 Description
5026
+
5027
+ <dl>
5028
+ <dd>
5029
+
5030
+ <dl>
5031
+ <dd>
5032
+
5033
+ Permanently delete an existing contact attribute by its category and name. The attribute must exist in the specified category (normal, transactional, category, calculated, or global), otherwise a 404 error is returned.
5034
+ </dd>
5035
+ </dl>
5036
+ </dd>
5037
+ </dl>
5038
+
4854
5039
  #### 🔌 Usage
4855
5040
 
4856
5041
  <dl>
@@ -4903,6 +5088,20 @@ await client.contacts.deleteAttribute({
4903
5088
  <dl>
4904
5089
  <dd>
4905
5090
 
5091
+ #### 📝 Description
5092
+
5093
+ <dl>
5094
+ <dd>
5095
+
5096
+ <dl>
5097
+ <dd>
5098
+
5099
+ Delete a specific option from an existing multiple-choice contact attribute. The attribute type must be "multiple-choice", and both the attribute name and the option to delete must already exist in your account.
5100
+ </dd>
5101
+ </dl>
5102
+ </dd>
5103
+ </dl>
5104
+
4906
5105
  #### 🔌 Usage
4907
5106
 
4908
5107
  <dl>
@@ -4956,6 +5155,20 @@ await client.contacts.deleteMultiAttributeOptions({
4956
5155
  <dl>
4957
5156
  <dd>
4958
5157
 
5158
+ #### 📝 Description
5159
+
5160
+ <dl>
5161
+ <dd>
5162
+
5163
+ <dl>
5164
+ <dd>
5165
+
5166
+ Update multiple contacts in a single API call by passing an array of contact objects. Each contact in the array must be identified by one of: email, id, or sms (only one identifier per contact). You can update attributes, blacklist status, list memberships, ext_id, and transactional email forbidden senders for each contact in the batch.
5167
+ </dd>
5168
+ </dl>
5169
+ </dd>
5170
+ </dl>
5171
+
4959
5172
  #### 🔌 Usage
4960
5173
 
4961
5174
  <dl>
@@ -5205,6 +5418,20 @@ await client.contacts.getFolders();
5205
5418
  <dl>
5206
5419
  <dd>
5207
5420
 
5421
+ #### 📝 Description
5422
+
5423
+ <dl>
5424
+ <dd>
5425
+
5426
+ <dl>
5427
+ <dd>
5428
+
5429
+ Create a new folder to organize your contact lists. Folders serve as containers for grouping related lists together. The folder name is required and must be provided in the request body.
5430
+ </dd>
5431
+ </dl>
5432
+ </dd>
5433
+ </dl>
5434
+
5208
5435
  #### 🔌 Usage
5209
5436
 
5210
5437
  <dl>
@@ -5321,6 +5548,20 @@ await client.contacts.getFolder({
5321
5548
  <dl>
5322
5549
  <dd>
5323
5550
 
5551
+ #### 📝 Description
5552
+
5553
+ <dl>
5554
+ <dd>
5555
+
5556
+ <dl>
5557
+ <dd>
5558
+
5559
+ Update the name of an existing folder identified by its ID. The new folder name must be provided in the request body. Returns a 404 error if the folder ID does not exist.
5560
+ </dd>
5561
+ </dl>
5562
+ </dd>
5563
+ </dl>
5564
+
5324
5565
  #### 🔌 Usage
5325
5566
 
5326
5567
  <dl>
@@ -5373,6 +5614,20 @@ await client.contacts.updateFolder({
5373
5614
  <dl>
5374
5615
  <dd>
5375
5616
 
5617
+ #### 📝 Description
5618
+
5619
+ <dl>
5620
+ <dd>
5621
+
5622
+ <dl>
5623
+ <dd>
5624
+
5625
+ Permanently delete a folder identified by its ID. Deleting a folder will also delete all the contact lists contained within it. This action cannot be undone.
5626
+ </dd>
5627
+ </dl>
5628
+ </dd>
5629
+ </dl>
5630
+
5376
5631
  #### 🔌 Usage
5377
5632
 
5378
5633
  <dl>
@@ -5619,6 +5874,20 @@ await client.contacts.getLists();
5619
5874
  <dl>
5620
5875
  <dd>
5621
5876
 
5877
+ #### 📝 Description
5878
+
5879
+ <dl>
5880
+ <dd>
5881
+
5882
+ <dl>
5883
+ <dd>
5884
+
5885
+ Create a new contact list inside a specified folder. Both the list name and the parent folder ID are required. The newly created list will be empty and ready to receive contacts via the add contacts endpoint.
5886
+ </dd>
5887
+ </dl>
5888
+ </dd>
5889
+ </dl>
5890
+
5622
5891
  #### 🔌 Usage
5623
5892
 
5624
5893
  <dl>
@@ -5671,6 +5940,20 @@ await client.contacts.createList({
5671
5940
  <dl>
5672
5941
  <dd>
5673
5942
 
5943
+ #### 📝 Description
5944
+
5945
+ <dl>
5946
+ <dd>
5947
+
5948
+ <dl>
5949
+ <dd>
5950
+
5951
+ Retrieve the details of a specific contact list by its ID, including its name, folder ID, creation date, subscriber counts, and campaign statistics. You can optionally filter campaign statistics by providing startDate and endDate parameters (both must be used together in YYYY-MM-DD format).
5952
+ </dd>
5953
+ </dl>
5954
+ </dd>
5955
+ </dl>
5956
+
5674
5957
  #### 🔌 Usage
5675
5958
 
5676
5959
  <dl>
@@ -5722,6 +6005,20 @@ await client.contacts.getList({
5722
6005
  <dl>
5723
6006
  <dd>
5724
6007
 
6008
+ #### 📝 Description
6009
+
6010
+ <dl>
6011
+ <dd>
6012
+
6013
+ <dl>
6014
+ <dd>
6015
+
6016
+ Update an existing contact list identified by its ID. You can update the list name, move it to a different folder by providing a new folderId, or both. Only one of the two parameters (name, folderId) needs to be provided per request.
6017
+ </dd>
6018
+ </dl>
6019
+ </dd>
6020
+ </dl>
6021
+
5725
6022
  #### 🔌 Usage
5726
6023
 
5727
6024
  <dl>
@@ -5773,6 +6070,20 @@ await client.contacts.updateList({
5773
6070
  <dl>
5774
6071
  <dd>
5775
6072
 
6073
+ #### 📝 Description
6074
+
6075
+ <dl>
6076
+ <dd>
6077
+
6078
+ <dl>
6079
+ <dd>
6080
+
6081
+ Permanently delete a contact list identified by its ID. The contacts in the list are not deleted; they are only removed from this list. Returns a 404 error if the list ID does not exist.
6082
+ </dd>
6083
+ </dl>
6084
+ </dd>
6085
+ </dl>
6086
+
5776
6087
  #### 🔌 Usage
5777
6088
 
5778
6089
  <dl>
@@ -5824,7 +6135,7 @@ await client.contacts.deleteList({
5824
6135
  <dl>
5825
6136
  <dd>
5826
6137
 
5827
- #### 🔌 Usage
6138
+ #### 📝 Description
5828
6139
 
5829
6140
  <dl>
5830
6141
  <dd>
@@ -5832,10 +6143,24 @@ await client.contacts.deleteList({
5832
6143
  <dl>
5833
6144
  <dd>
5834
6145
 
5835
- ```typescript
5836
- await client.contacts.getContactsFromList({
5837
- listId: 1000000
5838
- });
6146
+ Retrieve all contacts belonging to a specific list, identified by its list ID. Results are paginated with a default of 50 contacts per page (maximum 500) and sorted in descending order of creation. You can optionally filter contacts by their modification date using the modifiedSince parameter.
6147
+ </dd>
6148
+ </dl>
6149
+ </dd>
6150
+ </dl>
6151
+
6152
+ #### 🔌 Usage
6153
+
6154
+ <dl>
6155
+ <dd>
6156
+
6157
+ <dl>
6158
+ <dd>
6159
+
6160
+ ```typescript
6161
+ await client.contacts.getContactsFromList({
6162
+ listId: 1000000
6163
+ });
5839
6164
 
5840
6165
  ```
5841
6166
  </dd>
@@ -5983,6 +6308,20 @@ await client.contacts.removeContactFromList({
5983
6308
  <dl>
5984
6309
  <dd>
5985
6310
 
6311
+ #### 📝 Description
6312
+
6313
+ <dl>
6314
+ <dd>
6315
+
6316
+ <dl>
6317
+ <dd>
6318
+
6319
+ Retrieve all contact segments defined in your Brevo account with support for pagination and sorting. Results default to 10 segments per page (maximum 50) sorted in descending order of creation. Each segment includes its ID, name, category name, and last update timestamp.
6320
+ </dd>
6321
+ </dl>
6322
+ </dd>
6323
+ </dl>
6324
+
5986
6325
  #### 🔌 Usage
5987
6326
 
5988
6327
  <dl>
@@ -6231,6 +6570,20 @@ await client.contacts.deleteContact({
6231
6570
  <dl>
6232
6571
  <dd>
6233
6572
 
6573
+ #### 📝 Description
6574
+
6575
+ <dl>
6576
+ <dd>
6577
+
6578
+ <dl>
6579
+ <dd>
6580
+
6581
+ Retrieve email campaign statistics for a specific contact identified by email address or numeric ID. Statistics include messages sent, opens, clicks, hard/soft bounces, deliveries, unsubscriptions, complaints, and transactional attributes. By default, data covers the last 90 days; use startDate and endDate parameters (YYYY-MM-DD) to specify a custom range with a maximum span of 90 days.
6582
+ </dd>
6583
+ </dl>
6584
+ </dd>
6585
+ </dl>
6586
+
6234
6587
  #### 🔌 Usage
6235
6588
 
6236
6589
  <dl>
@@ -6291,7 +6644,7 @@ await client.contacts.getContactStats({
6291
6644
  <dl>
6292
6645
  <dd>
6293
6646
 
6294
- We recommend pinging this endpoint every minute for as long as the agent has to be considered online.
6647
+ Sets the agent's status to online for 2-3 minutes. We recommend pinging this endpoint every minute for as long as the agent has to be considered online. You must provide either `agentId` alone, or all three of `agentEmail` + `agentName` + `receivedFrom`.
6295
6648
  </dd>
6296
6649
  </dl>
6297
6650
  </dd>
@@ -6348,6 +6701,20 @@ await client.conversations.setsAgentsStatusToOnlineFor23Minutes({
6348
6701
  <dl>
6349
6702
  <dd>
6350
6703
 
6704
+ #### 📝 Description
6705
+
6706
+ <dl>
6707
+ <dd>
6708
+
6709
+ <dl>
6710
+ <dd>
6711
+
6712
+ Send a message as an agent to an existing visitor's conversation. You must provide either `agentId` alone, or all three of `agentEmail` + `agentName` + `receivedFrom` to identify the agent.
6713
+ </dd>
6714
+ </dl>
6715
+ </dd>
6716
+ </dl>
6717
+
6351
6718
  #### 🔌 Usage
6352
6719
 
6353
6720
  <dl>
@@ -6401,6 +6768,20 @@ await client.conversations.sendAMessageAsAnAgent({
6401
6768
  <dl>
6402
6769
  <dd>
6403
6770
 
6771
+ #### 📝 Description
6772
+
6773
+ <dl>
6774
+ <dd>
6775
+
6776
+ <dl>
6777
+ <dd>
6778
+
6779
+ Retrieve a single message by its ID.
6780
+ </dd>
6781
+ </dl>
6782
+ </dd>
6783
+ </dl>
6784
+
6404
6785
  #### 🔌 Usage
6405
6786
 
6406
6787
  <dl>
@@ -6460,7 +6841,7 @@ await client.conversations.getAMessage({
6460
6841
  <dl>
6461
6842
  <dd>
6462
6843
 
6463
- Only agents’ messages can be edited.
6844
+ Update the text of a message sent by an agent. Only messages of type `agent` can be edited. The `text` and `html` fields of the message will be updated.
6464
6845
  </dd>
6465
6846
  </dl>
6466
6847
  </dd>
@@ -6526,7 +6907,7 @@ await client.conversations.updateAMessageSentByAnAgent({
6526
6907
  <dl>
6527
6908
  <dd>
6528
6909
 
6529
- Only agents’ messages can be deleted.
6910
+ Delete a message sent by an agent. Only messages of type `agent` can be deleted.
6530
6911
  </dd>
6531
6912
  </dl>
6532
6913
  </dd>
@@ -6591,7 +6972,7 @@ await client.conversations.deleteAMessageSentByAnAgent({
6591
6972
  <dl>
6592
6973
  <dd>
6593
6974
 
6594
- Example of automated messages: order status, announce new features in your web app, etc.
6975
+ Send an automated (pushed) message to a visitor on behalf of an agent. Example use cases: order status updates, announcing new features in your web app, etc.
6595
6976
  </dd>
6596
6977
  </dl>
6597
6978
  </dd>
@@ -6608,7 +6989,7 @@ Example of automated messages: order status, announce new features in your web a
6608
6989
  ```typescript
6609
6990
  await client.conversations.sendAnAutomatedMessageToAVisitor({
6610
6991
  groupId: "PjRBMhWGen6aRHjif",
6611
- text: "Your order has shipped! Here\u2019s your tracking number: 9114 5847 3325 9667 4328 88",
6992
+ text: "Your order has shipped! Here's your tracking number: 9114 5847 3325 9667 4328 88",
6612
6993
  visitorId: "kZMvWhf8npAu3H6qd57w2Hv6nh6rnxvg"
6613
6994
  });
6614
6995
 
@@ -6650,6 +7031,20 @@ await client.conversations.sendAnAutomatedMessageToAVisitor({
6650
7031
  <dl>
6651
7032
  <dd>
6652
7033
 
7034
+ #### 📝 Description
7035
+
7036
+ <dl>
7037
+ <dd>
7038
+
7039
+ <dl>
7040
+ <dd>
7041
+
7042
+ Retrieve a single automated (pushed) message by its ID.
7043
+ </dd>
7044
+ </dl>
7045
+ </dd>
7046
+ </dl>
7047
+
6653
7048
  #### 🔌 Usage
6654
7049
 
6655
7050
  <dl>
@@ -6701,6 +7096,20 @@ await client.conversations.getAnAutomatedMessage({
6701
7096
  <dl>
6702
7097
  <dd>
6703
7098
 
7099
+ #### 📝 Description
7100
+
7101
+ <dl>
7102
+ <dd>
7103
+
7104
+ <dl>
7105
+ <dd>
7106
+
7107
+ Update the text of an automated (pushed) message. The `text` and `html` fields of the message will be updated.
7108
+ </dd>
7109
+ </dl>
7110
+ </dd>
7111
+ </dl>
7112
+
6704
7113
  #### 🔌 Usage
6705
7114
 
6706
7115
  <dl>
@@ -6712,7 +7121,7 @@ await client.conversations.getAnAutomatedMessage({
6712
7121
  ```typescript
6713
7122
  await client.conversations.updateAnAutomatedMessage({
6714
7123
  id: "id",
6715
- text: "Your order has shipped! Here\u2019s your tracking number: 9114 5847 4668 7775 9233 54"
7124
+ text: "Your order has shipped! Here's your tracking number: 9114 5847 4668 7775 9233 54"
6716
7125
  });
6717
7126
 
6718
7127
  ```
@@ -6753,6 +7162,20 @@ await client.conversations.updateAnAutomatedMessage({
6753
7162
  <dl>
6754
7163
  <dd>
6755
7164
 
7165
+ #### 📝 Description
7166
+
7167
+ <dl>
7168
+ <dd>
7169
+
7170
+ <dl>
7171
+ <dd>
7172
+
7173
+ Delete an automated (pushed) message by its ID.
7174
+ </dd>
7175
+ </dl>
7176
+ </dd>
7177
+ </dl>
7178
+
6756
7179
  #### 🔌 Usage
6757
7180
 
6758
7181
  <dl>
@@ -6870,6 +7293,20 @@ await client.conversations.setVisitorGroupAssignment({
6870
7293
  <dl>
6871
7294
  <dd>
6872
7295
 
7296
+ #### 📝 Description
7297
+
7298
+ <dl>
7299
+ <dd>
7300
+
7301
+ <dl>
7302
+ <dd>
7303
+
7304
+ Retrieve a paginated list of all ecommerce categories stored in your Brevo account. Results are sorted by creation date in descending order by default, and can be filtered by category IDs, name, modification date, creation date, or deletion status. The response includes a `count` field with the total number of matching categories, and pagination defaults to 50 categories per page (maximum 100).
7305
+ </dd>
7306
+ </dl>
7307
+ </dd>
7308
+ </dl>
7309
+
6873
7310
  #### 🔌 Usage
6874
7311
 
6875
7312
  <dl>
@@ -6915,10 +7352,24 @@ await client.ecommerce.getCategories();
6915
7352
  </dl>
6916
7353
  </details>
6917
7354
 
6918
- <details><summary><code>client.ecommerce.<a href="/src/api/resources/ecommerce/client/Client.ts">createUpdateCategory</a>({ ...params }) -> Brevo.CreateUpdateCategoryResponse</code></summary>
7355
+ <details><summary><code>client.ecommerce.<a href="/src/api/resources/ecommerce/client/Client.ts">createUpdateCategory</a>({ ...params }) -> Brevo.CreateUpdateCategoryResponse | undefined</code></summary>
7356
+ <dl>
7357
+ <dd>
7358
+
7359
+ #### 📝 Description
7360
+
7361
+ <dl>
7362
+ <dd>
7363
+
6919
7364
  <dl>
6920
7365
  <dd>
6921
7366
 
7367
+ Create a new ecommerce category or update an existing one, identified by the mandatory `id` field. When `updateEnabled` is set to `false` (the default), the endpoint performs an insert and returns `201`; if the category ID already exists, a `400` error is returned. When `updateEnabled` is `true`, the endpoint performs an upsert, returning `201` for a new category or `204` when an existing category is updated. The `name` field is mandatory for creation but optional for updates.
7368
+ </dd>
7369
+ </dl>
7370
+ </dd>
7371
+ </dl>
7372
+
6922
7373
  #### 🔌 Usage
6923
7374
 
6924
7375
  <dl>
@@ -6970,6 +7421,20 @@ await client.ecommerce.createUpdateCategory({
6970
7421
  <dl>
6971
7422
  <dd>
6972
7423
 
7424
+ #### 📝 Description
7425
+
7426
+ <dl>
7427
+ <dd>
7428
+
7429
+ <dl>
7430
+ <dd>
7431
+
7432
+ Create or update multiple ecommerce categories in a single request. The `categories` array accepts up to 100 category objects, each requiring a unique `id`. When `updateEnabled` is `false` (the default), all categories are inserted as new; if any ID already exists, a `400` error is returned. When `updateEnabled` is `true`, existing categories are updated and new ones are created via upsert. Duplicate IDs within the same request payload are rejected. The response returns the count of created and updated categories.
7433
+ </dd>
7434
+ </dl>
7435
+ </dd>
7436
+ </dl>
7437
+
6973
7438
  #### 🔌 Usage
6974
7439
 
6975
7440
  <dl>
@@ -7023,6 +7488,20 @@ await client.ecommerce.createUpdateBatchCategory({
7023
7488
  <dl>
7024
7489
  <dd>
7025
7490
 
7491
+ #### 📝 Description
7492
+
7493
+ <dl>
7494
+ <dd>
7495
+
7496
+ <dl>
7497
+ <dd>
7498
+
7499
+ Retrieve the full details of a single ecommerce category by its unique ID. The response includes the category name, URL, creation and modification timestamps, and deletion status. Returns a `404` error if no category matches the provided ID.
7500
+ </dd>
7501
+ </dl>
7502
+ </dd>
7503
+ </dl>
7504
+
7026
7505
  #### 🔌 Usage
7027
7506
 
7028
7507
  <dl>
@@ -7129,6 +7608,20 @@ await client.ecommerce.activateTheECommerceApp();
7129
7608
  <dl>
7130
7609
  <dd>
7131
7610
 
7611
+ #### 📝 Description
7612
+
7613
+ <dl>
7614
+ <dd>
7615
+
7616
+ <dl>
7617
+ <dd>
7618
+
7619
+ Retrieve aggregated ecommerce attribution metrics for one or more Brevo email campaigns, SMS campaigns, or automation workflows. You can optionally filter by a date range using `periodFrom` and `periodTo` in RFC3339 format. The response includes per-source metrics (orders count, revenue, and average basket) as well as aggregated totals across all requested sources.
7620
+ </dd>
7621
+ </dl>
7622
+ </dd>
7623
+ </dl>
7624
+
7132
7625
  #### 🔌 Usage
7133
7626
 
7134
7627
  <dl>
@@ -7140,7 +7633,8 @@ await client.ecommerce.activateTheECommerceApp();
7140
7633
  ```typescript
7141
7634
  await client.ecommerce.getAttributionMetricsForOneOrMoreBrevoCampaignsOrWorkflows({
7142
7635
  periodFrom: "2022-01-02T00:00:00Z",
7143
- periodTo: "2022-01-03T00:00:00Z"
7636
+ periodTo: "2022-01-03T00:00:00Z",
7637
+ "emailCampaignId[]": ["sale"]
7144
7638
  });
7145
7639
 
7146
7640
  ```
@@ -7181,6 +7675,20 @@ await client.ecommerce.getAttributionMetricsForOneOrMoreBrevoCampaignsOrWorkflow
7181
7675
  <dl>
7182
7676
  <dd>
7183
7677
 
7678
+ #### 📝 Description
7679
+
7680
+ <dl>
7681
+ <dd>
7682
+
7683
+ <dl>
7684
+ <dd>
7685
+
7686
+ Retrieve detailed attribution metrics for a single Brevo campaign or automation workflow, identified by its conversion source type and ID. The response includes orders count, revenue, average basket value, and the number of new customers attributed to that specific campaign or workflow.
7687
+ </dd>
7688
+ </dl>
7689
+ </dd>
7690
+ </dl>
7691
+
7184
7692
  #### 🔌 Usage
7185
7693
 
7186
7694
  <dl>
@@ -7233,6 +7741,20 @@ await client.ecommerce.getDetailedAttributionMetricsForASingleBrevoCampaignOrWor
7233
7741
  <dl>
7234
7742
  <dd>
7235
7743
 
7744
+ #### 📝 Description
7745
+
7746
+ <dl>
7747
+ <dd>
7748
+
7749
+ <dl>
7750
+ <dd>
7751
+
7752
+ Retrieve the list of products whose sales have been attributed to a specific Brevo campaign or automation workflow. Each product entry includes its ID, name, SKU, image URL, product URL, price, revenue, and orders count. The conversion source type must be one of `email_campaign`, `sms_campaign`, `automation_workflow_email`, or `automation_workflow_sms`.
7753
+ </dd>
7754
+ </dl>
7755
+ </dd>
7756
+ </dl>
7757
+
7236
7758
  #### 🔌 Usage
7237
7759
 
7238
7760
  <dl>
@@ -7285,6 +7807,20 @@ await client.ecommerce.getAttributedProductSalesForASingleBrevoCampaignOrWorkflo
7285
7807
  <dl>
7286
7808
  <dd>
7287
7809
 
7810
+ #### 📝 Description
7811
+
7812
+ <dl>
7813
+ <dd>
7814
+
7815
+ <dl>
7816
+ <dd>
7817
+
7818
+ Retrieve the ISO 4217 display currency code currently configured for your Brevo ecommerce account. This currency is used to display monetary values across the ecommerce dashboard and reports. Returns a `403` error if ecommerce is not activated on the account.
7819
+ </dd>
7820
+ </dl>
7821
+ </dd>
7822
+ </dl>
7823
+
7288
7824
  #### 🔌 Usage
7289
7825
 
7290
7826
  <dl>
@@ -7326,6 +7862,20 @@ await client.ecommerce.getTheIso4217CompliantDisplayCurrencyCodeForYourBrevoAcco
7326
7862
  <dl>
7327
7863
  <dd>
7328
7864
 
7865
+ #### 📝 Description
7866
+
7867
+ <dl>
7868
+ <dd>
7869
+
7870
+ <dl>
7871
+ <dd>
7872
+
7873
+ Set or update the ISO 4217 display currency code for your Brevo ecommerce account. This currency determines how monetary values are displayed in the ecommerce dashboard and reports. The provided currency code must be a valid ISO 4217 code; invalid codes result in a `422` error. Returns a `403` error if ecommerce is not activated on the account.
7874
+ </dd>
7875
+ </dl>
7876
+ </dd>
7877
+ </dl>
7878
+
7329
7879
  #### 🔌 Usage
7330
7880
 
7331
7881
  <dl>
@@ -7588,6 +8138,20 @@ await client.ecommerce.createBatchOrder({
7588
8138
  <dl>
7589
8139
  <dd>
7590
8140
 
8141
+ #### 📝 Description
8142
+
8143
+ <dl>
8144
+ <dd>
8145
+
8146
+ <dl>
8147
+ <dd>
8148
+
8149
+ Retrieve a paginated list of all ecommerce products stored in your Brevo account. Results are sorted by creation date in descending order by default, and can be filtered by product IDs, name (minimum 3 characters), price range, category IDs, modification date, creation date, or deletion status. Use the `search` parameter to query across SKU, name, and ID simultaneously — results are prioritized as exact SKU match > SKU prefix match > name match > ID match. Pagination defaults to 50 products per page (maximum 1000), and the response includes a `count` field with the total number of matching products.
8150
+ </dd>
8151
+ </dl>
8152
+ </dd>
8153
+ </dl>
8154
+
7591
8155
  #### 🔌 Usage
7592
8156
 
7593
8157
  <dl>
@@ -7633,10 +8197,24 @@ await client.ecommerce.getProducts();
7633
8197
  </dl>
7634
8198
  </details>
7635
8199
 
7636
- <details><summary><code>client.ecommerce.<a href="/src/api/resources/ecommerce/client/Client.ts">createUpdateProduct</a>({ ...params }) -> Brevo.CreateUpdateProductResponse</code></summary>
8200
+ <details><summary><code>client.ecommerce.<a href="/src/api/resources/ecommerce/client/Client.ts">createUpdateProduct</a>({ ...params }) -> Brevo.CreateUpdateProductResponse | undefined</code></summary>
8201
+ <dl>
8202
+ <dd>
8203
+
8204
+ #### 📝 Description
8205
+
8206
+ <dl>
8207
+ <dd>
8208
+
7637
8209
  <dl>
7638
8210
  <dd>
7639
8211
 
8212
+ Create a new ecommerce product or update an existing one, identified by the mandatory `id` field. When `updateEnabled` is `false` (the default), the endpoint inserts a new product and returns `201`; if the product ID already exists, a `400` error is returned. When `updateEnabled` is `true`, the endpoint performs an upsert, returning `201` for a new product or `204` for an update. The `name` field is mandatory for creation but optional for updates. Product images are downloaded, validated (max 5 MB, formats: jpeg, jpg, png, bmp, gif, webp), and re-hosted on S3. The `metaInfo` object supports up to 20 keys with a cumulative size limit of approximately 1000 KB.
8213
+ </dd>
8214
+ </dl>
8215
+ </dd>
8216
+ </dl>
8217
+
7640
8218
  #### 🔌 Usage
7641
8219
 
7642
8220
  <dl>
@@ -7689,7 +8267,7 @@ await client.ecommerce.createUpdateProduct({
7689
8267
  <dl>
7690
8268
  <dd>
7691
8269
 
7692
- #### 🔌 Usage
8270
+ #### 📝 Description
7693
8271
 
7694
8272
  <dl>
7695
8273
  <dd>
@@ -7697,9 +8275,23 @@ await client.ecommerce.createUpdateProduct({
7697
8275
  <dl>
7698
8276
  <dd>
7699
8277
 
7700
- ```typescript
7701
- await client.ecommerce.createUpdateBatchProducts({
7702
- products: [{
8278
+ Create or update multiple ecommerce products in a single request. The `products` array accepts up to 100 product objects for creation (or up to 1000 when `updateEnabled` is `true` and the account has an increased limit). Each product requires a unique `id` and `name` (name is mandatory for creation only). When `updateEnabled` is `false`, all products are inserted as new; if any ID already exists, a `400` error is returned. When `updateEnabled` is `true`, existing products are updated and new ones are created via upsert. Duplicate IDs within the same request payload are rejected. The response returns the count of created and updated products.
8279
+ </dd>
8280
+ </dl>
8281
+ </dd>
8282
+ </dl>
8283
+
8284
+ #### 🔌 Usage
8285
+
8286
+ <dl>
8287
+ <dd>
8288
+
8289
+ <dl>
8290
+ <dd>
8291
+
8292
+ ```typescript
8293
+ await client.ecommerce.createUpdateBatchProducts({
8294
+ products: [{
7703
8295
  id: "P11",
7704
8296
  name: "Iphone 11"
7705
8297
  }]
@@ -7743,6 +8335,20 @@ await client.ecommerce.createUpdateBatchProducts({
7743
8335
  <dl>
7744
8336
  <dd>
7745
8337
 
8338
+ #### 📝 Description
8339
+
8340
+ <dl>
8341
+ <dd>
8342
+
8343
+ <dl>
8344
+ <dd>
8345
+
8346
+ Retrieve the full details of a single ecommerce product by its unique ID. The response includes the product name, price, SKU, URL, image URLs (original and thumbnails), categories, stock level, meta information, creation and modification timestamps, and deletion status. Returns a `404` error if no product matches the provided ID.
8347
+ </dd>
8348
+ </dl>
8349
+ </dd>
8350
+ </dl>
8351
+
7746
8352
  #### 🔌 Usage
7747
8353
 
7748
8354
  <dl>
@@ -7794,6 +8400,20 @@ await client.ecommerce.getProductInfo({
7794
8400
  <dl>
7795
8401
  <dd>
7796
8402
 
8403
+ #### 📝 Description
8404
+
8405
+ <dl>
8406
+ <dd>
8407
+
8408
+ <dl>
8409
+ <dd>
8410
+
8411
+ Register a contact to receive an alert for a specific product event, such as `back_in_stock`. At least one contact identifier (`ext_id`, `email`, or `sms`) must be provided; when multiple are given, priority is `ext_id` > `email` > `sms`. Returns a `404` error if the product ID does not exist, and a `403` error if product alerts are not enabled for the account.
8412
+ </dd>
8413
+ </dl>
8414
+ </dd>
8415
+ </dl>
8416
+
7797
8417
  #### 🔌 Usage
7798
8418
 
7799
8419
  <dl>
@@ -7847,6 +8467,20 @@ await client.ecommerce.createProductAlert({
7847
8467
  <dl>
7848
8468
  <dd>
7849
8469
 
8470
+ #### 📝 Description
8471
+
8472
+ <dl>
8473
+ <dd>
8474
+
8475
+ <dl>
8476
+ <dd>
8477
+
8478
+ Retrieve a paginated list of all coupon collections in your Brevo account. Results can be sorted by creation date, remaining coupons count, or expiration date, in ascending or descending order. Pagination defaults to 50 collections per page (maximum 100).
8479
+ </dd>
8480
+ </dl>
8481
+ </dd>
8482
+ </dl>
8483
+
7850
8484
  #### 🔌 Usage
7851
8485
 
7852
8486
  <dl>
@@ -7896,6 +8530,20 @@ await client.coupons.getCouponCollections();
7896
8530
  <dl>
7897
8531
  <dd>
7898
8532
 
8533
+ #### 📝 Description
8534
+
8535
+ <dl>
8536
+ <dd>
8537
+
8538
+ <dl>
8539
+ <dd>
8540
+
8541
+ Create a new coupon collection with a name and a default coupon value. You can optionally set an expiration date in RFC3339 format and configure alert thresholds to receive email notifications when remaining coupons or remaining days before expiration fall below a specified number. The collection ID is auto-generated as a UUID and returned in the response.
8542
+ </dd>
8543
+ </dl>
8544
+ </dd>
8545
+ </dl>
8546
+
7899
8547
  #### 🔌 Usage
7900
8548
 
7901
8549
  <dl>
@@ -7948,6 +8596,20 @@ await client.coupons.createCouponCollection({
7948
8596
  <dl>
7949
8597
  <dd>
7950
8598
 
8599
+ #### 📝 Description
8600
+
8601
+ <dl>
8602
+ <dd>
8603
+
8604
+ <dl>
8605
+ <dd>
8606
+
8607
+ Retrieve the details of a single coupon collection by its UUID. The response includes the collection name, default coupon value, total and remaining coupon counts, and creation timestamp. Returns a `404` error if no collection matches the provided ID.
8608
+ </dd>
8609
+ </dl>
8610
+ </dd>
8611
+ </dl>
8612
+
7951
8613
  #### 🔌 Usage
7952
8614
 
7953
8615
  <dl>
@@ -7999,6 +8661,20 @@ await client.coupons.getCouponCollection({
7999
8661
  <dl>
8000
8662
  <dd>
8001
8663
 
8664
+ #### 📝 Description
8665
+
8666
+ <dl>
8667
+ <dd>
8668
+
8669
+ <dl>
8670
+ <dd>
8671
+
8672
+ Update an existing coupon collection by its UUID. You can modify the default coupon value, set or remove the expiration date (pass `null` to remove), and configure or disable alert thresholds for remaining coupons or remaining days. Only the fields included in the request body are updated; omitted fields remain unchanged.
8673
+ </dd>
8674
+ </dl>
8675
+ </dd>
8676
+ </dl>
8677
+
8002
8678
  #### 🔌 Usage
8003
8679
 
8004
8680
  <dl>
@@ -8050,6 +8726,20 @@ await client.coupons.updateCouponCollection({
8050
8726
  <dl>
8051
8727
  <dd>
8052
8728
 
8729
+ #### 📝 Description
8730
+
8731
+ <dl>
8732
+ <dd>
8733
+
8734
+ <dl>
8735
+ <dd>
8736
+
8737
+ Add coupons to an existing coupon collection. The `coupons` array must contain between 1 and 10,000 unique coupon code strings, all associated with the specified `collectionId`. Coupon creation is processed asynchronously and a `204` status is returned immediately upon acceptance. Returns a `404` error if the specified coupon collection does not exist.
8738
+ </dd>
8739
+ </dl>
8740
+ </dd>
8741
+ </dl>
8742
+
8053
8743
  #### 🔌 Usage
8054
8744
 
8055
8745
  <dl>
@@ -8103,6 +8793,20 @@ await client.coupons.createCoupons({
8103
8793
  <dl>
8104
8794
  <dd>
8105
8795
 
8796
+ #### 📝 Description
8797
+
8798
+ <dl>
8799
+ <dd>
8800
+
8801
+ <dl>
8802
+ <dd>
8803
+
8804
+ Create a new payment request for a Brevo contact. The request requires a reference (displayed on the payment page), a contact ID, and a cart with currency and amount in cents. You can optionally configure a custom success redirect URL and enable email notifications with reminders. Returns the payment request ID and its public payment URL. A `403` error is returned if Brevo Payments is not activated or the account is not validated.
8805
+ </dd>
8806
+ </dl>
8807
+ </dd>
8808
+ </dl>
8809
+
8106
8810
  #### 🔌 Usage
8107
8811
 
8108
8812
  <dl>
@@ -8159,6 +8863,20 @@ await client.payments.createPaymentRequest({
8159
8863
  <dl>
8160
8864
  <dd>
8161
8865
 
8866
+ #### 📝 Description
8867
+
8868
+ <dl>
8869
+ <dd>
8870
+
8871
+ <dl>
8872
+ <dd>
8873
+
8874
+ Retrieve the details of a specific payment request by its ID. The response includes the reference, status (created, sent, reminderSent, or paid), cart details, notification configuration, contact ID, and the number of reminders sent. Returns a `404` error if no payment request matches the provided ID.
8875
+ </dd>
8876
+ </dl>
8877
+ </dd>
8878
+ </dl>
8879
+
8162
8880
  #### 🔌 Usage
8163
8881
 
8164
8882
  <dl>
@@ -8210,6 +8928,20 @@ await client.payments.getPaymentRequest({
8210
8928
  <dl>
8211
8929
  <dd>
8212
8930
 
8931
+ #### 📝 Description
8932
+
8933
+ <dl>
8934
+ <dd>
8935
+
8936
+ <dl>
8937
+ <dd>
8938
+
8939
+ Delete a payment request by its UUID. Once deleted, the payment request can no longer be accessed or paid. Returns a `404` error if no payment request matches the provided ID, and a `403` error if Brevo Payments is not activated or the account is not validated.
8940
+ </dd>
8941
+ </dl>
8942
+ </dd>
8943
+ </dl>
8944
+
8213
8945
  #### 🔌 Usage
8214
8946
 
8215
8947
  <dl>
@@ -8418,10 +9150,12 @@ Create multiple events to track contacts' interactions in a single request.
8418
9150
  <dd>
8419
9151
 
8420
9152
  ```typescript
8421
- await client.event.createBatchEvents([{
8422
- event_name: "order_created",
8423
- identifiers: {}
8424
- }]);
9153
+ await client.event.createBatchEvents({
9154
+ events: [{
9155
+ event_name: "order_created",
9156
+ identifiers: {}
9157
+ }]
9158
+ });
8425
9159
 
8426
9160
  ```
8427
9161
  </dd>
@@ -8437,7 +9171,7 @@ await client.event.createBatchEvents([{
8437
9171
  <dl>
8438
9172
  <dd>
8439
9173
 
8440
- **request:** `Brevo.CreateBatchEventsRequestItem[]`
9174
+ **request:** `Brevo.CreateBatchEventsRequest`
8441
9175
 
8442
9176
  </dd>
8443
9177
  </dl>
@@ -8470,7 +9204,7 @@ await client.event.createBatchEvents([{
8470
9204
  <dl>
8471
9205
  <dd>
8472
9206
 
8473
- This endpoint will show the list of all the events for the received emails.
9207
+ This endpoint will show the list of all the events for the received emails. When no date range is provided, the last 30 days of events are returned by default.
8474
9208
  </dd>
8475
9209
  </dl>
8476
9210
  </dd>
@@ -8652,7 +9386,7 @@ await client.inboundParsing.getInboundEmailAttachment({
8652
9386
  </details>
8653
9387
 
8654
9388
  ## Balance
8655
- <details><summary><code>client.balance.<a href="/src/api/resources/balance/client/Client.ts">getActiveBalancesApi</a>({ ...params }) -> Brevo.BalanceLimit</code></summary>
9389
+ <details><summary><code>client.balance.<a href="/src/api/resources/balance/client/Client.ts">getActiveBalancesApi</a>({ ...params }) -> Brevo.GetLoyaltyBalanceProgramsPidActiveBalanceResponse</code></summary>
8656
9390
  <dl>
8657
9391
  <dd>
8658
9392
 
@@ -8681,8 +9415,8 @@ Returns Active Balances
8681
9415
  ```typescript
8682
9416
  await client.balance.getActiveBalancesApi({
8683
9417
  pid: "pid",
8684
- contact_id: 1,
8685
- balance_definition_id: "balance_definition_id"
9418
+ contactId: 1000000,
9419
+ balanceDefinitionId: "balanceDefinitionId"
8686
9420
  });
8687
9421
 
8688
9422
  ```
@@ -9340,7 +10074,7 @@ await client.balance.deleteBalanceLimit({
9340
10074
  <dl>
9341
10075
  <dd>
9342
10076
 
9343
- Returns balance list
10077
+ Returns contact balances for a given balance definition across all subscriptions.
9344
10078
  </dd>
9345
10079
  </dl>
9346
10080
  </dd>
@@ -9356,7 +10090,8 @@ Returns balance list
9356
10090
 
9357
10091
  ```typescript
9358
10092
  await client.balance.getContactBalances({
9359
- pid: "pid"
10093
+ pid: "pid",
10094
+ balanceDefinitionId: "balanceDefinitionId"
9360
10095
  });
9361
10096
 
9362
10097
  ```
@@ -9426,7 +10161,7 @@ await client.balance.createBalanceOrder({
9426
10161
  balanceDefinitionId: "balanceDefinitionId",
9427
10162
  contactId: 1,
9428
10163
  dueAt: "dueAt",
9429
- source: "source"
10164
+ source: "engine"
9430
10165
  });
9431
10166
 
9432
10167
  ```
@@ -9625,7 +10360,7 @@ Returns transaction history
9625
10360
  ```typescript
9626
10361
  await client.balance.getTransactionHistoryApi({
9627
10362
  pid: "pid",
9628
- contactId: 1,
10363
+ contactId: 1000000,
9629
10364
  balanceDefinitionId: "balanceDefinitionId"
9630
10365
  });
9631
10366
 
@@ -10609,7 +11344,7 @@ Subscribes to a loyalty program
10609
11344
  ```typescript
10610
11345
  await client.program.subscribeToLoyaltyProgram({
10611
11346
  pid: "pid",
10612
- contactId: 1
11347
+ contactId: 1000000
10613
11348
  });
10614
11349
 
10615
11350
  ```
@@ -11986,7 +12721,7 @@ await client.tier.deleteTier({
11986
12721
  <dd>
11987
12722
 
11988
12723
  <Note>The response payload for this endpoint has changed
11989
- You now need to specify which type of statistics you would like to retrieve. For more information visit [this page](https://developers.brevo.com/changelog/get-all-marketing-campaigns).</Note>
12724
+ You now need to specify which type of statistics you would like to retrieve. For more information visit [this page](https://developers.brevo.com/changelog/2023/2/7).</Note>
11990
12725
  </dd>
11991
12726
  </dl>
11992
12727
  </dd>
@@ -12041,6 +12776,20 @@ await client.emailCampaigns.getEmailCampaigns();
12041
12776
  <dl>
12042
12777
  <dd>
12043
12778
 
12779
+ #### 📝 Description
12780
+
12781
+ <dl>
12782
+ <dd>
12783
+
12784
+ <dl>
12785
+ <dd>
12786
+
12787
+ Create a new email campaign. The campaign requires at minimum a name and sender details, and is created in draft status by default. You must provide email content via one of three mutually exclusive options: htmlContent (inline HTML), htmlUrl (remote URL), or templateId (existing template); additionally, A/B testing can be enabled by setting abTesting to true with subjectA and subjectB, but this is incompatible with sendAtBestTime.
12788
+ </dd>
12789
+ </dl>
12790
+ </dd>
12791
+ </dl>
12792
+
12044
12793
  #### 🔌 Usage
12045
12794
 
12046
12795
  <dl>
@@ -12093,6 +12842,20 @@ await client.emailCampaigns.createEmailCampaign({
12093
12842
  <dl>
12094
12843
  <dd>
12095
12844
 
12845
+ #### 📝 Description
12846
+
12847
+ <dl>
12848
+ <dd>
12849
+
12850
+ <dl>
12851
+ <dd>
12852
+
12853
+ Upload an image to your account''s image gallery by providing an absolute URL to the image. The maximum allowed image size is 2MB and supported formats are jpeg, jpg, png, bmp, and gif; local file uploads are not supported.
12854
+ </dd>
12855
+ </dl>
12856
+ </dd>
12857
+ </dl>
12858
+
12096
12859
  #### 🔌 Usage
12097
12860
 
12098
12861
  <dl>
@@ -12144,6 +12907,20 @@ await client.emailCampaigns.uploadImageToGallery({
12144
12907
  <dl>
12145
12908
  <dd>
12146
12909
 
12910
+ #### 📝 Description
12911
+
12912
+ <dl>
12913
+ <dd>
12914
+
12915
+ <dl>
12916
+ <dd>
12917
+
12918
+ Retrieve detailed information about a specific email campaign by its ID, including recipients, statistics, and HTML content. Use the statistics query parameter to select which statistics to include (globalStats, linksStats, statsByDomain, statsByDevice, or statsByBrowser); statsByDevice and statsByBrowser are only available on this single-campaign endpoint. You can exclude HTML content from the response by setting excludeHtmlContent to true.
12919
+ </dd>
12920
+ </dl>
12921
+ </dd>
12922
+ </dl>
12923
+
12147
12924
  #### 🔌 Usage
12148
12925
 
12149
12926
  <dl>
@@ -12195,6 +12972,20 @@ await client.emailCampaigns.getEmailCampaign({
12195
12972
  <dl>
12196
12973
  <dd>
12197
12974
 
12975
+ #### 📝 Description
12976
+
12977
+ <dl>
12978
+ <dd>
12979
+
12980
+ <dl>
12981
+ <dd>
12982
+
12983
+ Update an existing email campaign''s properties such as name, subject, content, sender, recipients, schedule, and A/B testing configuration. The campaign must exist and the request body must contain at least one valid field to update. Only draft or scheduled campaigns can be modified; if sendAtBestTime is enabled, IP warmup will be automatically disabled.
12984
+ </dd>
12985
+ </dl>
12986
+ </dd>
12987
+ </dl>
12988
+
12198
12989
  #### 🔌 Usage
12199
12990
 
12200
12991
  <dl>
@@ -12246,6 +13037,20 @@ await client.emailCampaigns.updateEmailCampaign({
12246
13037
  <dl>
12247
13038
  <dd>
12248
13039
 
13040
+ #### 📝 Description
13041
+
13042
+ <dl>
13043
+ <dd>
13044
+
13045
+ <dl>
13046
+ <dd>
13047
+
13048
+ Delete an email campaign by its campaign ID. Only campaigns that have not been scheduled can be deleted; attempting to delete a campaign that has already been scheduled will return a 403 permission denied error. Related data in templates, newsletter builder, and schedule collections is also cleaned up.
13049
+ </dd>
13050
+ </dl>
13051
+ </dd>
13052
+ </dl>
13053
+
12249
13054
  #### 🔌 Usage
12250
13055
 
12251
13056
  <dl>
@@ -12362,6 +13167,20 @@ await client.emailCampaigns.getAbTestCampaignResult({
12362
13167
  <dl>
12363
13168
  <dd>
12364
13169
 
13170
+ #### 📝 Description
13171
+
13172
+ <dl>
13173
+ <dd>
13174
+
13175
+ <dl>
13176
+ <dd>
13177
+
13178
+ Export the recipients of a sent email campaign as an asynchronous process, filtered by recipient type (e.g. openers, clickers, hardBounces). The recipientsType field is required and determines which subset of recipients to export. An optional notifyURL webhook will be called once the export is complete, and the response returns a processId to track the export status.
13179
+ </dd>
13180
+ </dl>
13181
+ </dd>
13182
+ </dl>
13183
+
12365
13184
  #### 🔌 Usage
12366
13185
 
12367
13186
  <dl>
@@ -12414,6 +13233,20 @@ await client.emailCampaigns.emailExportRecipients({
12414
13233
  <dl>
12415
13234
  <dd>
12416
13235
 
13236
+ #### 📝 Description
13237
+
13238
+ <dl>
13239
+ <dd>
13240
+
13241
+ <dl>
13242
+ <dd>
13243
+
13244
+ Send an existing email campaign immediately by scheduling it for the current time. The campaign must have valid recipients and content configured before sending. The system verifies your account''s send limit and credit balance before dispatching; if credits are insufficient, a 402 error is returned.
13245
+ </dd>
13246
+ </dl>
13247
+ </dd>
13248
+ </dl>
13249
+
12417
13250
  #### 🔌 Usage
12418
13251
 
12419
13252
  <dl>
@@ -12536,7 +13369,7 @@ await client.emailCampaigns.sendReport({
12536
13369
  <dl>
12537
13370
  <dd>
12538
13371
 
12539
- #### 🔌 Usage
13372
+ #### 📝 Description
12540
13373
 
12541
13374
  <dl>
12542
13375
  <dd>
@@ -12544,19 +13377,33 @@ await client.emailCampaigns.sendReport({
12544
13377
  <dl>
12545
13378
  <dd>
12546
13379
 
12547
- ```typescript
12548
- await client.emailCampaigns.sendTestEmail({
12549
- campaignId: 1000000,
12550
- body: {}
12551
- });
12552
-
12553
- ```
13380
+ Send a test version of an email campaign to specified email addresses or your entire test list. If the emailTo array is left empty, the test mail will be sent to all addresses in your test list. You can send a maximum of 50 test emails per day.
12554
13381
  </dd>
12555
13382
  </dl>
12556
13383
  </dd>
12557
13384
  </dl>
12558
13385
 
12559
- #### ⚙️ Parameters
13386
+ #### 🔌 Usage
13387
+
13388
+ <dl>
13389
+ <dd>
13390
+
13391
+ <dl>
13392
+ <dd>
13393
+
13394
+ ```typescript
13395
+ await client.emailCampaigns.sendTestEmail({
13396
+ campaignId: 1000000,
13397
+ body: {}
13398
+ });
13399
+
13400
+ ```
13401
+ </dd>
13402
+ </dl>
13403
+ </dd>
13404
+ </dl>
13405
+
13406
+ #### ⚙️ Parameters
12560
13407
 
12561
13408
  <dl>
12562
13409
  <dd>
@@ -12653,6 +13500,20 @@ await client.emailCampaigns.getSharedTemplateUrl({
12653
13500
  <dl>
12654
13501
  <dd>
12655
13502
 
13503
+ #### 📝 Description
13504
+
13505
+ <dl>
13506
+ <dd>
13507
+
13508
+ <dl>
13509
+ <dd>
13510
+
13511
+ Update the status of an email campaign, such as suspending, archiving, or replicating it. Available status values include suspended, archive, darchive, sent, queued, replicate, replicateTemplate, cancel, and draft. Note that the replicateTemplate status is only available for template type campaigns.
13512
+ </dd>
13513
+ </dl>
13514
+ </dd>
13515
+ </dl>
13516
+
12656
13517
  #### 🔌 Usage
12657
13518
 
12658
13519
  <dl>
@@ -12706,6 +13567,20 @@ await client.emailCampaigns.updateCampaignStatus({
12706
13567
  <dl>
12707
13568
  <dd>
12708
13569
 
13570
+ #### 📝 Description
13571
+
13572
+ <dl>
13573
+ <dd>
13574
+
13575
+ <dl>
13576
+ <dd>
13577
+
13578
+ Retrieve a paginated list of all your SMS campaigns with their statistics and recipient information. Results can be filtered by status and date range, with a default limit of 500 and maximum of 1000 per page. The sort order defaults to descending by creation date; date filters are only available when status is not passed or is set to sent.
13579
+ </dd>
13580
+ </dl>
13581
+ </dd>
13582
+ </dl>
13583
+
12709
13584
  #### 🔌 Usage
12710
13585
 
12711
13586
  <dl>
@@ -12755,6 +13630,20 @@ await client.smsCampaigns.getSmsCampaigns();
12755
13630
  <dl>
12756
13631
  <dd>
12757
13632
 
13633
+ #### 📝 Description
13634
+
13635
+ <dl>
13636
+ <dd>
13637
+
13638
+ <dl>
13639
+ <dd>
13640
+
13641
+ Create a new SMS campaign with the required name, sender, and content fields. The sender name is limited to 11 alphanumeric characters or 15 numeric characters, and the content should stay within 160 characters per SMS segment. If a scheduledAt date is provided, listIds in recipients become mandatory; accounts under validation are limited to 4 total campaigns and campaigns with more than 10 recipients will be saved as draft.
13642
+ </dd>
13643
+ </dl>
13644
+ </dd>
13645
+ </dl>
13646
+
12758
13647
  #### 🔌 Usage
12759
13648
 
12760
13649
  <dl>
@@ -12808,6 +13697,20 @@ await client.smsCampaigns.createSmsCampaign({
12808
13697
  <dl>
12809
13698
  <dd>
12810
13699
 
13700
+ #### 📝 Description
13701
+
13702
+ <dl>
13703
+ <dd>
13704
+
13705
+ <dl>
13706
+ <dd>
13707
+
13708
+ Retrieve detailed information about a specific SMS campaign by its ID, including campaign content, sender, recipients with list names, statistics (delivered, sent, bounces, unsubscriptions, answered), and tags. Unlike the list endpoint, recipients are returned as objects with id and name fields rather than plain IDs.
13709
+ </dd>
13710
+ </dl>
13711
+ </dd>
13712
+ </dl>
13713
+
12811
13714
  #### 🔌 Usage
12812
13715
 
12813
13716
  <dl>
@@ -12859,6 +13762,20 @@ await client.smsCampaigns.getSmsCampaign({
12859
13762
  <dl>
12860
13763
  <dd>
12861
13764
 
13765
+ #### 📝 Description
13766
+
13767
+ <dl>
13768
+ <dd>
13769
+
13770
+ <dl>
13771
+ <dd>
13772
+
13773
+ Update an existing SMS campaign''s properties such as name, sender, content, recipients, scheduled date, organisation prefix, and unsubscribe instructions. The request body must contain at least one valid field to update. The campaign must exist and must be of type SMS; if a scheduledAt is provided, valid recipients must be present either in the request or already configured on the campaign.
13774
+ </dd>
13775
+ </dl>
13776
+ </dd>
13777
+ </dl>
13778
+
12862
13779
  #### 🔌 Usage
12863
13780
 
12864
13781
  <dl>
@@ -12910,6 +13827,20 @@ await client.smsCampaigns.updateSmsCampaign({
12910
13827
  <dl>
12911
13828
  <dd>
12912
13829
 
13830
+ #### 📝 Description
13831
+
13832
+ <dl>
13833
+ <dd>
13834
+
13835
+ <dl>
13836
+ <dd>
13837
+
13838
+ Delete an SMS campaign by its campaign ID. Only campaigns that have not been scheduled or sent can be deleted; attempting to delete a campaign that is queued, in process, or has been sent with recipients will return a 403 permission denied error.
13839
+ </dd>
13840
+ </dl>
13841
+ </dd>
13842
+ </dl>
13843
+
12913
13844
  #### 🔌 Usage
12914
13845
 
12915
13846
  <dl>
@@ -13027,6 +13958,20 @@ await client.smsCampaigns.requestSmsRecipientExport({
13027
13958
  <dl>
13028
13959
  <dd>
13029
13960
 
13961
+ #### 📝 Description
13962
+
13963
+ <dl>
13964
+ <dd>
13965
+
13966
+ <dl>
13967
+ <dd>
13968
+
13969
+ Send an existing SMS campaign immediately by scheduling it for the current time. The system verifies your account''s SMS credit balance before dispatching; if credits are insufficient or the remaining credit is less than the number of recipients, a 402 error is returned. The campaign must have valid recipients and content already configured.
13970
+ </dd>
13971
+ </dl>
13972
+ </dd>
13973
+ </dl>
13974
+
13030
13975
  #### 🔌 Usage
13031
13976
 
13032
13977
  <dl>
@@ -13149,6 +14094,20 @@ await client.smsCampaigns.sendSmsReport({
13149
14094
  <dl>
13150
14095
  <dd>
13151
14096
 
14097
+ #### 📝 Description
14098
+
14099
+ <dl>
14100
+ <dd>
14101
+
14102
+ <dl>
14103
+ <dd>
14104
+
14105
+ Send a test SMS to a specified phone number to preview the campaign before sending it to all recipients. The phone number must belong to one of your existing contacts in your Brevo account and must not be blacklisted. The number should include the country code (e.g. 33689965433).
14106
+ </dd>
14107
+ </dl>
14108
+ </dd>
14109
+ </dl>
14110
+
13152
14111
  #### 🔌 Usage
13153
14112
 
13154
14113
  <dl>
@@ -13200,6 +14159,20 @@ await client.smsCampaigns.sendTestSms({
13200
14159
  <dl>
13201
14160
  <dd>
13202
14161
 
14162
+ #### 📝 Description
14163
+
14164
+ <dl>
14165
+ <dd>
14166
+
14167
+ <dl>
14168
+ <dd>
14169
+
14170
+ Update the status of an SMS campaign, such as suspending, archiving, or replicating it. Available status values include suspended, archive, darchive, sent, queued, replicate, replicateTemplate, cancel, and draft. Note that the replicateTemplate status is only available for template type campaigns.
14171
+ </dd>
14172
+ </dl>
14173
+ </dd>
14174
+ </dl>
14175
+
13203
14176
  #### 🔌 Usage
13204
14177
 
13205
14178
  <dl>
@@ -13253,6 +14226,20 @@ await client.smsCampaigns.updateSmsCampaignStatus({
13253
14226
  <dl>
13254
14227
  <dd>
13255
14228
 
14229
+ #### 📝 Description
14230
+
14231
+ <dl>
14232
+ <dd>
14233
+
14234
+ <dl>
14235
+ <dd>
14236
+
14237
+ Retrieve a paginated list of all your WhatsApp campaigns with their statistics and metadata. Results can be filtered by creation date range using startDate and endDate, with a default limit of 50 and maximum of 100 per page. The sort order defaults to descending by modification date.
14238
+ </dd>
14239
+ </dl>
14240
+ </dd>
14241
+ </dl>
14242
+
13256
14243
  #### 🔌 Usage
13257
14244
 
13258
14245
  <dl>
@@ -13499,6 +14486,20 @@ await client.whatsAppCampaigns.createWhatsAppTemplate({
13499
14486
  <dl>
13500
14487
  <dd>
13501
14488
 
14489
+ #### 📝 Description
14490
+
14491
+ <dl>
14492
+ <dd>
14493
+
14494
+ <dl>
14495
+ <dd>
14496
+
14497
+ Retrieve a paginated list of all your WhatsApp templates with their status, category, language, and metadata. Results can be filtered by creation date range and optionally by source (Automation or Conversations), with a default limit of 50 and maximum of 100 per page. The sort order defaults to descending by modification date.
14498
+ </dd>
14499
+ </dl>
14500
+ </dd>
14501
+ </dl>
14502
+
13502
14503
  #### 🔌 Usage
13503
14504
 
13504
14505
  <dl>
@@ -13752,6 +14753,20 @@ await client.whatsAppCampaigns.updateWhatsAppCampaign({
13752
14753
  <dl>
13753
14754
  <dd>
13754
14755
 
14756
+ #### 📝 Description
14757
+
14758
+ <dl>
14759
+ <dd>
14760
+
14761
+ <dl>
14762
+ <dd>
14763
+
14764
+ Delete a WhatsApp campaign by its campaign ID. The campaign must exist; if the campaign ID is not found, a 404 error is returned. This action is permanent and cannot be undone.
14765
+ </dd>
14766
+ </dl>
14767
+ </dd>
14768
+ </dl>
14769
+
13755
14770
  #### 🔌 Usage
13756
14771
 
13757
14772
  <dl>
@@ -13804,6 +14819,20 @@ await client.whatsAppCampaigns.deleteWhatsAppCampaign({
13804
14819
  <dl>
13805
14820
  <dd>
13806
14821
 
14822
+ #### 📝 Description
14823
+
14824
+ <dl>
14825
+ <dd>
14826
+
14827
+ <dl>
14828
+ <dd>
14829
+
14830
+ Retrieve a paginated list of companies with optional filtering, sorting, and search capabilities. Results are sorted by creation date in descending order by default, and can be filtered by attributes, linked contacts, linked deals, or modification/creation timestamps.
14831
+ </dd>
14832
+ </dl>
14833
+ </dd>
14834
+ </dl>
14835
+
13807
14836
  #### 🔌 Usage
13808
14837
 
13809
14838
  <dl>
@@ -13853,6 +14882,20 @@ await client.companies.getAllCompanies();
13853
14882
  <dl>
13854
14883
  <dd>
13855
14884
 
14885
+ #### 📝 Description
14886
+
14887
+ <dl>
14888
+ <dd>
14889
+
14890
+ <dl>
14891
+ <dd>
14892
+
14893
+ Create a new CRM company with the specified name, attributes, and optional associations to contacts and deals. The company name is required, and you can optionally provide a country code when a phone number attribute is included.
14894
+ </dd>
14895
+ </dl>
14896
+ </dd>
14897
+ </dl>
14898
+
13856
14899
  #### 🔌 Usage
13857
14900
 
13858
14901
  <dl>
@@ -13967,6 +15010,20 @@ await client.companies.importCompaniesCreationAndUpdation({});
13967
15010
  <dl>
13968
15011
  <dd>
13969
15012
 
15013
+ #### 📝 Description
15014
+
15015
+ <dl>
15016
+ <dd>
15017
+
15018
+ <dl>
15019
+ <dd>
15020
+
15021
+ Link or unlink contacts and deals with a specific company in a single request. You can simultaneously link new contacts/deals and unlink existing ones by providing the respective ID arrays in the request body.
15022
+ </dd>
15023
+ </dl>
15024
+ </dd>
15025
+ </dl>
15026
+
13970
15027
  #### 🔌 Usage
13971
15028
 
13972
15029
  <dl>
@@ -14018,6 +15075,20 @@ await client.companies.linkAndUnlinkCompanyWithContactAndDeal({
14018
15075
  <dl>
14019
15076
  <dd>
14020
15077
 
15078
+ #### 📝 Description
15079
+
15080
+ <dl>
15081
+ <dd>
15082
+
15083
+ <dl>
15084
+ <dd>
15085
+
15086
+ Retrieve the full details of a single company by its identifier, including its attributes, linked contacts, and linked deals. Returns a 404 error if the company does not exist, or a 403 error if the user lacks permission to view the company.
15087
+ </dd>
15088
+ </dl>
15089
+ </dd>
15090
+ </dl>
15091
+
14021
15092
  #### 🔌 Usage
14022
15093
 
14023
15094
  <dl>
@@ -14069,6 +15140,20 @@ await client.companies.getACompany({
14069
15140
  <dl>
14070
15141
  <dd>
14071
15142
 
15143
+ #### 📝 Description
15144
+
15145
+ <dl>
15146
+ <dd>
15147
+
15148
+ <dl>
15149
+ <dd>
15150
+
15151
+ Permanently delete a company by its identifier. The requesting user must be the company owner or have manage permission on companies; otherwise, a 403 Forbidden error is returned.
15152
+ </dd>
15153
+ </dl>
15154
+ </dd>
15155
+ </dl>
15156
+
14072
15157
  #### 🔌 Usage
14073
15158
 
14074
15159
  <dl>
@@ -14120,6 +15205,20 @@ await client.companies.deleteACompany({
14120
15205
  <dl>
14121
15206
  <dd>
14122
15207
 
15208
+ #### 📝 Description
15209
+
15210
+ <dl>
15211
+ <dd>
15212
+
15213
+ <dl>
15214
+ <dd>
15215
+
15216
+ Update an existing company''s attributes, name, linked contacts, or linked deals. Note that passing `linkedContactsIds` or `linkedDealsIds` replaces the entire list of associations, so omitted IDs will be removed. The company name cannot be set to an empty string.
15217
+ </dd>
15218
+ </dl>
15219
+ </dd>
15220
+ </dl>
15221
+
14123
15222
  #### 🔌 Usage
14124
15223
 
14125
15224
  <dl>
@@ -14171,7 +15270,21 @@ await client.companies.updateACompany({
14171
15270
  <dl>
14172
15271
  <dd>
14173
15272
 
14174
- #### 🔌 Usage
15273
+ #### 📝 Description
15274
+
15275
+ <dl>
15276
+ <dd>
15277
+
15278
+ <dl>
15279
+ <dd>
15280
+
15281
+ Create a new custom attribute for companies or deals. The attribute label must be unique within the object type, cannot exceed 50 characters, and cannot use reserved names. For `single-select` or `multi-choice` attribute types, you must also provide the `optionsLabels` array.
15282
+ </dd>
15283
+ </dl>
15284
+ </dd>
15285
+ </dl>
15286
+
15287
+ #### 🔌 Usage
14175
15288
 
14176
15289
  <dl>
14177
15290
  <dd>
@@ -14224,6 +15337,20 @@ await client.companies.createACompanyDealAttribute({
14224
15337
  <dl>
14225
15338
  <dd>
14226
15339
 
15340
+ #### 📝 Description
15341
+
15342
+ <dl>
15343
+ <dd>
15344
+
15345
+ <dl>
15346
+ <dd>
15347
+
15348
+ Delete an existing custom attribute by its identifier. This permanently removes the attribute definition and cleans up all references to it across companies or deals. System-default and non-editable attributes cannot be deleted.
15349
+ </dd>
15350
+ </dl>
15351
+ </dd>
15352
+ </dl>
15353
+
14227
15354
  #### 🔌 Usage
14228
15355
 
14229
15356
  <dl>
@@ -14275,6 +15402,20 @@ await client.companies.deleteAnAttribute({
14275
15402
  <dl>
14276
15403
  <dd>
14277
15404
 
15405
+ #### 📝 Description
15406
+
15407
+ <dl>
15408
+ <dd>
15409
+
15410
+ <dl>
15411
+ <dd>
15412
+
15413
+ Update an existing custom attribute''s label or options. You can rename the attribute label or modify the available options for `single-select` and `multi-choice` attribute types. System-default attributes cannot be modified except for specific editable fields.
15414
+ </dd>
15415
+ </dl>
15416
+ </dd>
15417
+ </dl>
15418
+
14278
15419
  #### 🔌 Usage
14279
15420
 
14280
15421
  <dl>
@@ -14326,6 +15467,20 @@ await client.companies.updateAnAttribute({
14326
15467
  <dl>
14327
15468
  <dd>
14328
15469
 
15470
+ #### 📝 Description
15471
+
15472
+ <dl>
15473
+ <dd>
15474
+
15475
+ <dl>
15476
+ <dd>
15477
+
15478
+ Retrieve the list of all attributes defined for companies, including both system-default and custom attributes. Each attribute includes its label, internal name, type, required status, and available options for select-type attributes.
15479
+ </dd>
15480
+ </dl>
15481
+ </dd>
15482
+ </dl>
15483
+
14329
15484
  #### 🔌 Usage
14330
15485
 
14331
15486
  <dl>
@@ -14368,6 +15523,20 @@ await client.companies.getCompanyAttributes();
14368
15523
  <dl>
14369
15524
  <dd>
14370
15525
 
15526
+ #### 📝 Description
15527
+
15528
+ <dl>
15529
+ <dd>
15530
+
15531
+ <dl>
15532
+ <dd>
15533
+
15534
+ Retrieve the list of all attributes defined for deals, including both system-default and custom attributes. Each attribute includes its label, internal name, type, required status, and available options for select-type attributes.
15535
+ </dd>
15536
+ </dl>
15537
+ </dd>
15538
+ </dl>
15539
+
14371
15540
  #### 🔌 Usage
14372
15541
 
14373
15542
  <dl>
@@ -14409,6 +15578,20 @@ await client.deals.getDealAttributes();
14409
15578
  <dl>
14410
15579
  <dd>
14411
15580
 
15581
+ #### 📝 Description
15582
+
15583
+ <dl>
15584
+ <dd>
15585
+
15586
+ <dl>
15587
+ <dd>
15588
+
15589
+ Retrieve a paginated list of deals with optional filtering, sorting, and search capabilities. Results can be filtered by attributes such as deal name or owner, linked companies, linked contacts, or modification/creation timestamps. Default sort order is descending by creation date.
15590
+ </dd>
15591
+ </dl>
15592
+ </dd>
15593
+ </dl>
15594
+
14412
15595
  #### 🔌 Usage
14413
15596
 
14414
15597
  <dl>
@@ -14458,6 +15641,20 @@ await client.deals.getAllDeals();
14458
15641
  <dl>
14459
15642
  <dd>
14460
15643
 
15644
+ #### 📝 Description
15645
+
15646
+ <dl>
15647
+ <dd>
15648
+
15649
+ <dl>
15650
+ <dd>
15651
+
15652
+ Create a new deal in the CRM with the specified name, attributes, and optional associations to contacts and companies. You can assign the deal to a specific pipeline and stage by providing `pipeline` and `deal_stage` attribute IDs, which can be retrieved from the pipeline details endpoint.
15653
+ </dd>
15654
+ </dl>
15655
+ </dd>
15656
+ </dl>
15657
+
14461
15658
  #### 🔌 Usage
14462
15659
 
14463
15660
  <dl>
@@ -14572,6 +15769,20 @@ await client.deals.importDealsCreationAndUpdation({});
14572
15769
  <dl>
14573
15770
  <dd>
14574
15771
 
15772
+ #### 📝 Description
15773
+
15774
+ <dl>
15775
+ <dd>
15776
+
15777
+ <dl>
15778
+ <dd>
15779
+
15780
+ Link or unlink contacts and companies with a specific deal in a single request. You can simultaneously link new contacts/companies and unlink existing ones by providing the respective ID arrays in the request body.
15781
+ </dd>
15782
+ </dl>
15783
+ </dd>
15784
+ </dl>
15785
+
14575
15786
  #### 🔌 Usage
14576
15787
 
14577
15788
  <dl>
@@ -14623,6 +15834,20 @@ await client.deals.linkAndUnlinkADealWithContactsAndCompanies({
14623
15834
  <dl>
14624
15835
  <dd>
14625
15836
 
15837
+ #### 📝 Description
15838
+
15839
+ <dl>
15840
+ <dd>
15841
+
15842
+ <dl>
15843
+ <dd>
15844
+
15845
+ Retrieve the full details of a single deal by its identifier, including its attributes, pipeline stage, linked contacts, and linked companies. Returns a 404 error if the deal does not exist.
15846
+ </dd>
15847
+ </dl>
15848
+ </dd>
15849
+ </dl>
15850
+
14626
15851
  #### 🔌 Usage
14627
15852
 
14628
15853
  <dl>
@@ -14674,6 +15899,20 @@ await client.deals.getADeal({
14674
15899
  <dl>
14675
15900
  <dd>
14676
15901
 
15902
+ #### 📝 Description
15903
+
15904
+ <dl>
15905
+ <dd>
15906
+
15907
+ <dl>
15908
+ <dd>
15909
+
15910
+ Permanently delete a deal by its identifier. The requesting user must be the deal owner or have manage permission on deals; otherwise, a 403 Forbidden error is returned.
15911
+ </dd>
15912
+ </dl>
15913
+ </dd>
15914
+ </dl>
15915
+
14677
15916
  #### 🔌 Usage
14678
15917
 
14679
15918
  <dl>
@@ -14725,6 +15964,20 @@ await client.deals.deleteADeal({
14725
15964
  <dl>
14726
15965
  <dd>
14727
15966
 
15967
+ #### 📝 Description
15968
+
15969
+ <dl>
15970
+ <dd>
15971
+
15972
+ <dl>
15973
+ <dd>
15974
+
15975
+ Update an existing deal''s attributes, name, linked contacts, or linked companies. Note that passing `linkedContactsIds` or `linkedCompaniesIds` replaces the entire list of associations, so omitted IDs will be removed. To move a deal to a different pipeline or stage, provide both the `pipeline` and `deal_stage` attribute IDs.
15976
+ </dd>
15977
+ </dl>
15978
+ </dd>
15979
+ </dl>
15980
+
14728
15981
  #### 🔌 Usage
14729
15982
 
14730
15983
  <dl>
@@ -14831,6 +16084,20 @@ await client.deals.getPipelineStages();
14831
16084
  <dl>
14832
16085
  <dd>
14833
16086
 
16087
+ #### 📝 Description
16088
+
16089
+ <dl>
16090
+ <dd>
16091
+
16092
+ <dl>
16093
+ <dd>
16094
+
16095
+ Retrieve the list of all deal pipelines configured for your account, including each pipeline''s stages and settings. If no pipelines have been configured yet, a default pipeline is automatically created and returned.
16096
+ </dd>
16097
+ </dl>
16098
+ </dd>
16099
+ </dl>
16100
+
14834
16101
  #### 🔌 Usage
14835
16102
 
14836
16103
  <dl>
@@ -14872,6 +16139,20 @@ await client.deals.getAllPipelines();
14872
16139
  <dl>
14873
16140
  <dd>
14874
16141
 
16142
+ #### 📝 Description
16143
+
16144
+ <dl>
16145
+ <dd>
16146
+
16147
+ <dl>
16148
+ <dd>
16149
+
16150
+ Retrieve the details of a specific deal pipeline by its identifier, including its stages, stage ordering, and configuration. Use this endpoint to obtain the pipeline and stage IDs needed when creating or updating deals.
16151
+ </dd>
16152
+ </dl>
16153
+ </dd>
16154
+ </dl>
16155
+
14875
16156
  #### 🔌 Usage
14876
16157
 
14877
16158
  <dl>
@@ -14924,6 +16205,20 @@ await client.deals.getAPipeline({
14924
16205
  <dl>
14925
16206
  <dd>
14926
16207
 
16208
+ #### 📝 Description
16209
+
16210
+ <dl>
16211
+ <dd>
16212
+
16213
+ <dl>
16214
+ <dd>
16215
+
16216
+ Retrieve a paginated list of CRM files with optional filtering by entity type, entity IDs, and date range. Results are sorted by creation date in descending order by default, with a default limit of 50 files per page.
16217
+ </dd>
16218
+ </dl>
16219
+ </dd>
16220
+ </dl>
16221
+
14927
16222
  #### 🔌 Usage
14928
16223
 
14929
16224
  <dl>
@@ -14973,6 +16268,20 @@ await client.files.getAllFiles();
14973
16268
  <dl>
14974
16269
  <dd>
14975
16270
 
16271
+ #### 📝 Description
16272
+
16273
+ <dl>
16274
+ <dd>
16275
+
16276
+ <dl>
16277
+ <dd>
16278
+
16279
+ Upload a file and associate it with a contact, company, or deal. The file must be sent as multipart form data with a maximum size of 10 MB. You can optionally link the file to a specific entity by providing the corresponding entity ID.
16280
+ </dd>
16281
+ </dl>
16282
+ </dd>
16283
+ </dl>
16284
+
14976
16285
  #### 🔌 Usage
14977
16286
 
14978
16287
  <dl>
@@ -15024,6 +16333,20 @@ await client.files.uploadAFile({
15024
16333
  <dl>
15025
16334
  <dd>
15026
16335
 
16336
+ #### 📝 Description
16337
+
16338
+ <dl>
16339
+ <dd>
16340
+
16341
+ <dl>
16342
+ <dd>
16343
+
16344
+ Get a temporary download URL for a CRM file by its identifier. The returned URL is valid for 5 minutes only and provides direct access to the file content.
16345
+ </dd>
16346
+ </dl>
16347
+ </dd>
16348
+ </dl>
16349
+
15027
16350
  #### 🔌 Usage
15028
16351
 
15029
16352
  <dl>
@@ -15075,6 +16398,20 @@ await client.files.downloadAFile({
15075
16398
  <dl>
15076
16399
  <dd>
15077
16400
 
16401
+ #### 📝 Description
16402
+
16403
+ <dl>
16404
+ <dd>
16405
+
16406
+ <dl>
16407
+ <dd>
16408
+
16409
+ Permanently delete a CRM file by its identifier. This removes the file from storage and unlinks it from any associated contacts, companies, or deals.
16410
+ </dd>
16411
+ </dl>
16412
+ </dd>
16413
+ </dl>
16414
+
15078
16415
  #### 🔌 Usage
15079
16416
 
15080
16417
  <dl>
@@ -15126,6 +16463,20 @@ await client.files.deleteAFile({
15126
16463
  <dl>
15127
16464
  <dd>
15128
16465
 
16466
+ #### 📝 Description
16467
+
16468
+ <dl>
16469
+ <dd>
16470
+
16471
+ <dl>
16472
+ <dd>
16473
+
16474
+ Retrieve the metadata and details of a specific CRM file by its identifier. This returns information such as the file name, size, type, creation date, and associated entities, but does not include the file content itself.
16475
+ </dd>
16476
+ </dl>
16477
+ </dd>
16478
+ </dl>
16479
+
15129
16480
  #### 🔌 Usage
15130
16481
 
15131
16482
  <dl>
@@ -15178,6 +16529,20 @@ await client.files.getFileDetails({
15178
16529
  <dl>
15179
16530
  <dd>
15180
16531
 
16532
+ #### 📝 Description
16533
+
16534
+ <dl>
16535
+ <dd>
16536
+
16537
+ <dl>
16538
+ <dd>
16539
+
16540
+ Retrieve a paginated list of CRM notes with optional filtering by entity type, entity IDs, and date range. Results are sorted by creation date in descending order by default, with a default limit of 50 notes per page.
16541
+ </dd>
16542
+ </dl>
16543
+ </dd>
16544
+ </dl>
16545
+
15181
16546
  #### 🔌 Usage
15182
16547
 
15183
16548
  <dl>
@@ -15227,6 +16592,20 @@ await client.notes.getAllNotes();
15227
16592
  <dl>
15228
16593
  <dd>
15229
16594
 
16595
+ #### 📝 Description
16596
+
16597
+ <dl>
16598
+ <dd>
16599
+
16600
+ <dl>
16601
+ <dd>
16602
+
16603
+ Create a new CRM note and optionally associate it with contacts, companies, or deals. The note text content is required, and you can link the note to multiple entities simultaneously during creation.
16604
+ </dd>
16605
+ </dl>
16606
+ </dd>
16607
+ </dl>
16608
+
15230
16609
  #### 🔌 Usage
15231
16610
 
15232
16611
  <dl>
@@ -15237,7 +16616,7 @@ await client.notes.getAllNotes();
15237
16616
 
15238
16617
  ```typescript
15239
16618
  await client.notes.createANote({
15240
- text: "In communication with client_dev for resolution of queries."
16619
+ text: "<p>Meeting notes: <b>Action item</b> - visit <a href=\"https://www.brevo.com/\">Brevo</a> for details.</p>"
15241
16620
  });
15242
16621
 
15243
16622
  ```
@@ -15278,6 +16657,20 @@ await client.notes.createANote({
15278
16657
  <dl>
15279
16658
  <dd>
15280
16659
 
16660
+ #### 📝 Description
16661
+
16662
+ <dl>
16663
+ <dd>
16664
+
16665
+ <dl>
16666
+ <dd>
16667
+
16668
+ Retrieve the full details of a single CRM note by its identifier. The response includes the note''s text content, creation date, author, and any associated contacts, companies, or deals.
16669
+ </dd>
16670
+ </dl>
16671
+ </dd>
16672
+ </dl>
16673
+
15281
16674
  #### 🔌 Usage
15282
16675
 
15283
16676
  <dl>
@@ -15329,6 +16722,20 @@ await client.notes.getANote({
15329
16722
  <dl>
15330
16723
  <dd>
15331
16724
 
16725
+ #### 📝 Description
16726
+
16727
+ <dl>
16728
+ <dd>
16729
+
16730
+ <dl>
16731
+ <dd>
16732
+
16733
+ Permanently delete a CRM note by its identifier. This removes the note and unlinks it from any associated contacts, companies, or deals.
16734
+ </dd>
16735
+ </dl>
16736
+ </dd>
16737
+ </dl>
16738
+
15332
16739
  #### 🔌 Usage
15333
16740
 
15334
16741
  <dl>
@@ -15380,6 +16787,20 @@ await client.notes.deleteANote({
15380
16787
  <dl>
15381
16788
  <dd>
15382
16789
 
16790
+ #### 📝 Description
16791
+
16792
+ <dl>
16793
+ <dd>
16794
+
16795
+ <dl>
16796
+ <dd>
16797
+
16798
+ Update an existing CRM note''s text content and its associations with contacts, companies, or deals. You can modify the note text, change the pinned status, or update the linked entities.
16799
+ </dd>
16800
+ </dl>
16801
+ </dd>
16802
+ </dl>
16803
+
15383
16804
  #### 🔌 Usage
15384
16805
 
15385
16806
  <dl>
@@ -15392,7 +16813,7 @@ await client.notes.deleteANote({
15392
16813
  await client.notes.updateANote({
15393
16814
  id: "id",
15394
16815
  body: {
15395
- text: "In communication with client_dev for resolution of queries."
16816
+ text: "<p>Meeting notes: <b>Action item</b> - visit <a href=\"https://www.brevo.com/\">Brevo</a> for details.</p>"
15396
16817
  }
15397
16818
  });
15398
16819
 
@@ -15435,6 +16856,20 @@ await client.notes.updateANote({
15435
16856
  <dl>
15436
16857
  <dd>
15437
16858
 
16859
+ #### 📝 Description
16860
+
16861
+ <dl>
16862
+ <dd>
16863
+
16864
+ <dl>
16865
+ <dd>
16866
+
16867
+ Retrieve a paginated list of CRM tasks with optional filtering by task type, status, date range, assignee, and linked entities (contacts, deals, companies). Results are sorted by creation date in descending order by default, with a default limit of 50 tasks per page.
16868
+ </dd>
16869
+ </dl>
16870
+ </dd>
16871
+ </dl>
16872
+
15438
16873
  #### 🔌 Usage
15439
16874
 
15440
16875
  <dl>
@@ -15486,6 +16921,20 @@ await client.tasks.getAllTasks({
15486
16921
  <dl>
15487
16922
  <dd>
15488
16923
 
16924
+ #### 📝 Description
16925
+
16926
+ <dl>
16927
+ <dd>
16928
+
16929
+ <dl>
16930
+ <dd>
16931
+
16932
+ Create a new CRM task with the specified name, type, due date, and optional associations to contacts, companies, or deals. A task requires a name, task type ID, and due date at minimum. You can also set a duration, notes, a reminder, and assign the task to a specific user.
16933
+ </dd>
16934
+ </dl>
16935
+ </dd>
16936
+ </dl>
16937
+
15489
16938
  #### 🔌 Usage
15490
16939
 
15491
16940
  <dl>
@@ -15497,7 +16946,7 @@ await client.tasks.getAllTasks({
15497
16946
  ```typescript
15498
16947
  await client.tasks.createATask({
15499
16948
  date: "2021-11-01T17:44:54Z",
15500
- name: "Task: Connect with client_dev",
16949
+ name: "Task: Connect with client",
15501
16950
  taskTypeId: "61a5cd07ca1347c82306ad09"
15502
16951
  });
15503
16952
 
@@ -15533,11 +16982,25 @@ await client.tasks.createATask({
15533
16982
 
15534
16983
  </dd>
15535
16984
  </dl>
15536
- </details>
15537
-
15538
- <details><summary><code>client.tasks.<a href="/src/api/resources/tasks/client/Client.ts">getATask</a>({ ...params }) -> Brevo.Task</code></summary>
15539
- <dl>
15540
- <dd>
16985
+ </details>
16986
+
16987
+ <details><summary><code>client.tasks.<a href="/src/api/resources/tasks/client/Client.ts">getATask</a>({ ...params }) -> Brevo.Task</code></summary>
16988
+ <dl>
16989
+ <dd>
16990
+
16991
+ #### 📝 Description
16992
+
16993
+ <dl>
16994
+ <dd>
16995
+
16996
+ <dl>
16997
+ <dd>
16998
+
16999
+ Retrieve the full details of a single CRM task by its identifier. The response includes the task''s name, type, status, due date, duration, notes, assignee, reminder settings, and linked contacts, companies, or deals.
17000
+ </dd>
17001
+ </dl>
17002
+ </dd>
17003
+ </dl>
15541
17004
 
15542
17005
  #### 🔌 Usage
15543
17006
 
@@ -15590,6 +17053,20 @@ await client.tasks.getATask({
15590
17053
  <dl>
15591
17054
  <dd>
15592
17055
 
17056
+ #### 📝 Description
17057
+
17058
+ <dl>
17059
+ <dd>
17060
+
17061
+ <dl>
17062
+ <dd>
17063
+
17064
+ Permanently delete a CRM task by its identifier. This removes the task and cancels any associated reminders. The requesting user must be the task assignee or have manage permission on tasks.
17065
+ </dd>
17066
+ </dl>
17067
+ </dd>
17068
+ </dl>
17069
+
15593
17070
  #### 🔌 Usage
15594
17071
 
15595
17072
  <dl>
@@ -15641,6 +17118,20 @@ await client.tasks.deleteATask({
15641
17118
  <dl>
15642
17119
  <dd>
15643
17120
 
17121
+ #### 📝 Description
17122
+
17123
+ <dl>
17124
+ <dd>
17125
+
17126
+ <dl>
17127
+ <dd>
17128
+
17129
+ Update an existing CRM task''s properties such as name, type, due date, status, duration, notes, assignee, reminder, or linked entities. Only the fields provided in the request body will be updated; omitted fields remain unchanged.
17130
+ </dd>
17131
+ </dl>
17132
+ </dd>
17133
+ </dl>
17134
+
15644
17135
  #### 🔌 Usage
15645
17136
 
15646
17137
  <dl>
@@ -15688,10 +17179,24 @@ await client.tasks.updateATask({
15688
17179
  </dl>
15689
17180
  </details>
15690
17181
 
15691
- <details><summary><code>client.tasks.<a href="/src/api/resources/tasks/client/Client.ts">getAllTaskTypes</a>() -> Brevo.GetCrmTasktypesResponse</code></summary>
17182
+ <details><summary><code>client.tasks.<a href="/src/api/resources/tasks/client/Client.ts">getAllTaskTypes</a>() -> Brevo.GetCrmTasktypesResponseItem[]</code></summary>
17183
+ <dl>
17184
+ <dd>
17185
+
17186
+ #### 📝 Description
17187
+
15692
17188
  <dl>
15693
17189
  <dd>
15694
17190
 
17191
+ <dl>
17192
+ <dd>
17193
+
17194
+ Retrieve the list of all available task types, such as Email, Call, Meeting, Todo, Lunch, Deadline, and LinkedIn. If no task types exist yet, the default set is automatically created and returned. Use the task type ID when creating or updating tasks.
17195
+ </dd>
17196
+ </dl>
17197
+ </dd>
17198
+ </dl>
17199
+
15695
17200
  #### 🔌 Usage
15696
17201
 
15697
17202
  <dl>
@@ -15867,6 +17372,20 @@ await client.transactionalWhatsApp.getWhatsappEventReport();
15867
17372
  <dl>
15868
17373
  <dd>
15869
17374
 
17375
+ #### 📝 Description
17376
+
17377
+ <dl>
17378
+ <dd>
17379
+
17380
+ <dl>
17381
+ <dd>
17382
+
17383
+ Retrieve a paginated list of transactional contacts that have been blocked or unsubscribed, along with the reason for blocking (e.g. hard bounce, admin blocked, spam complaint, or unsubscription via email/API/Marketing Automation). Both `startDate` and `endDate` must be provided together when filtering by date range, and neither date can be in the future. Results default to 50 per page (max 100) and are sorted in descending order of record creation unless overridden with the `sort` parameter.
17384
+ </dd>
17385
+ </dl>
17386
+ </dd>
17387
+ </dl>
17388
+
15870
17389
  #### 🔌 Usage
15871
17390
 
15872
17391
  <dl>
@@ -15916,6 +17435,20 @@ await client.transactionalEmails.getTransacBlockedContacts();
15916
17435
  <dl>
15917
17436
  <dd>
15918
17437
 
17438
+ #### 📝 Description
17439
+
17440
+ <dl>
17441
+ <dd>
17442
+
17443
+ <dl>
17444
+ <dd>
17445
+
17446
+ Unblock or resubscribe a transactional contact by removing their email address from the blacklist. The email address must be URL-encoded in the path parameter and must be a valid email format. If the contact is not found in the blocklist, a 404 error is returned.
17447
+ </dd>
17448
+ </dl>
17449
+ </dd>
17450
+ </dl>
17451
+
15919
17452
  #### 🔌 Usage
15920
17453
 
15921
17454
  <dl>
@@ -16215,6 +17748,20 @@ await client.transactionalEmails.deleteHardbounces();
16215
17748
  <dl>
16216
17749
  <dd>
16217
17750
 
17751
+ #### 📝 Description
17752
+
17753
+ <dl>
17754
+ <dd>
17755
+
17756
+ <dl>
17757
+ <dd>
17758
+
17759
+ Send a transactional email to one or more recipients, either using inline HTML content or a pre-built template via `templateId`. You can schedule emails for future delivery using `scheduledAt` (UTC, up to 5-minute delay), send multiple personalized versions with `messageVersions` (max 2000 total recipients, 99 per version), and attach files via URL or base64-encoded content. A `sender` and `subject` are required when no `templateId` is provided; when a `templateId` is used, the template''s sender and subject are applied unless overridden.
17760
+ </dd>
17761
+ </dl>
17762
+ </dd>
17763
+ </dl>
17764
+
16218
17765
  #### 🔌 Usage
16219
17766
 
16220
17767
  <dl>
@@ -16537,6 +18084,20 @@ await client.transactionalEmails.getTransacEmailContent({
16537
18084
  <dl>
16538
18085
  <dd>
16539
18086
 
18087
+ #### 📝 Description
18088
+
18089
+ <dl>
18090
+ <dd>
18091
+
18092
+ <dl>
18093
+ <dd>
18094
+
18095
+ Delete SMTP transactional log entries identified by a message ID (enclosed in angle brackets with an @ sign) or a valid email address. Optionally narrow the deletion to a specific date range using `from_date` and `to_date` query parameters (YYYY-MM-DD format). The operation also removes any associated stored email preview content.
18096
+ </dd>
18097
+ </dl>
18098
+ </dd>
18099
+ </dl>
18100
+
16540
18101
  #### 🔌 Usage
16541
18102
 
16542
18103
  <dl>
@@ -16714,6 +18275,20 @@ await client.transactionalEmails.getEmailEventReport();
16714
18275
  <dl>
16715
18276
  <dd>
16716
18277
 
18278
+ #### 📝 Description
18279
+
18280
+ <dl>
18281
+ <dd>
18282
+
18283
+ <dl>
18284
+ <dd>
18285
+
18286
+ This endpoint will show the aggregated stats per day for the past 10 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 30 days.
18287
+ </dd>
18288
+ </dl>
18289
+ </dd>
18290
+ </dl>
18291
+
16717
18292
  #### 🔌 Usage
16718
18293
 
16719
18294
  <dl>
@@ -16763,6 +18338,20 @@ await client.transactionalEmails.getSmtpReport();
16763
18338
  <dl>
16764
18339
  <dd>
16765
18340
 
18341
+ #### 📝 Description
18342
+
18343
+ <dl>
18344
+ <dd>
18345
+
18346
+ <dl>
18347
+ <dd>
18348
+
18349
+ Generate a fully rendered preview of a transactional email template by resolving dynamic variables. Provide either an `email` address (to populate variables from the contact''s attributes) or a `params` object with key-value pairs for manual substitution; at least one of these is required alongside the mandatory `templateId`. The response includes the rendered HTML, subject, sender details, preview text, and any feed names used in the template.
18350
+ </dd>
18351
+ </dl>
18352
+ </dd>
18353
+ </dl>
18354
+
16766
18355
  #### 🔌 Usage
16767
18356
 
16768
18357
  <dl>
@@ -16790,7 +18379,7 @@ await client.transactionalEmails.postPreviewSmtpEmailTemplates({
16790
18379
  <dl>
16791
18380
  <dd>
16792
18381
 
16793
- **request:** `unknown`
18382
+ **request:** `Brevo.PostPreviewSmtpEmailTemplatesRequest`
16794
18383
 
16795
18384
  </dd>
16796
18385
  </dl>
@@ -16814,6 +18403,20 @@ await client.transactionalEmails.postPreviewSmtpEmailTemplates({
16814
18403
  <dl>
16815
18404
  <dd>
16816
18405
 
18406
+ #### 📝 Description
18407
+
18408
+ <dl>
18409
+ <dd>
18410
+
18411
+ <dl>
18412
+ <dd>
18413
+
18414
+ Retrieve a paginated list of all transactional email templates (including automation templates) with their details such as name, subject, sender, status, HTML content, and timestamps. Results default to 50 per page (max 1000) and are sorted in descending creation order unless overridden. You can filter by active/inactive status using `templateStatus` and by editor type using `editorType` (currently only `richTextEditor` is supported).
18415
+ </dd>
18416
+ </dl>
18417
+ </dd>
18418
+ </dl>
18419
+
16817
18420
  #### 🔌 Usage
16818
18421
 
16819
18422
  <dl>
@@ -16863,6 +18466,20 @@ await client.transactionalEmails.getSmtpTemplates();
16863
18466
  <dl>
16864
18467
  <dd>
16865
18468
 
18469
+ #### 📝 Description
18470
+
18471
+ <dl>
18472
+ <dd>
18473
+
18474
+ <dl>
18475
+ <dd>
18476
+
18477
+ Create a new transactional email template with the specified sender, subject, and content. The `sender`, `subject`, and `templateName` fields are required. Template content can be provided via `htmlContent` (minimum 10 characters) or `htmlUrl`; at least one must be supplied. Templates are created as inactive by default unless `isActive` is explicitly set to `true`.
18478
+ </dd>
18479
+ </dl>
18480
+ </dd>
18481
+ </dl>
18482
+
16866
18483
  #### 🔌 Usage
16867
18484
 
16868
18485
  <dl>
@@ -16916,6 +18533,20 @@ await client.transactionalEmails.createSmtpTemplate({
16916
18533
  <dl>
16917
18534
  <dd>
16918
18535
 
18536
+ #### 📝 Description
18537
+
18538
+ <dl>
18539
+ <dd>
18540
+
18541
+ <dl>
18542
+ <dd>
18543
+
18544
+ Retrieve the full details of a specific transactional email template by its numeric ID or custom template identifier string. The response includes the template name, subject, sender information, HTML content, active status, creation and modification timestamps, reply-to address, tag, and a `doiTemplate` flag indicating whether the template is a double opt-in template (detected by the presence of optin-related tags or variables in the content).
18545
+ </dd>
18546
+ </dl>
18547
+ </dd>
18548
+ </dl>
18549
+
16919
18550
  #### 🔌 Usage
16920
18551
 
16921
18552
  <dl>
@@ -16967,6 +18598,20 @@ await client.transactionalEmails.getSmtpTemplate({
16967
18598
  <dl>
16968
18599
  <dd>
16969
18600
 
18601
+ #### 📝 Description
18602
+
18603
+ <dl>
18604
+ <dd>
18605
+
18606
+ <dl>
18607
+ <dd>
18608
+
18609
+ Update an existing transactional email template by its numeric ID or custom template identifier string. All fields in the request body are optional; only the provided fields will be updated. You can update the template name, subject, sender, reply-to address, HTML content (via `htmlContent` or `htmlUrl`), active status, tag, attachment URL, and the personalized `toField`. Only one of sender email or sender ID should be provided per request.
18610
+ </dd>
18611
+ </dl>
18612
+ </dd>
18613
+ </dl>
18614
+
16970
18615
  #### 🔌 Usage
16971
18616
 
16972
18617
  <dl>
@@ -17018,6 +18663,20 @@ await client.transactionalEmails.updateSmtpTemplate({
17018
18663
  <dl>
17019
18664
  <dd>
17020
18665
 
18666
+ #### 📝 Description
18667
+
18668
+ <dl>
18669
+ <dd>
18670
+
18671
+ <dl>
18672
+ <dd>
18673
+
18674
+ Permanently delete a transactional email template by its numeric ID. Only inactive templates can be deleted; attempting to delete an active template returns a 405 error. To deactivate a template before deletion, use `PUT /smtp/templates/{templateId}` with `isActive` set to `false`. Deletion also removes associated newsletter template data and triggers asynchronous cleanup of shared assets.
18675
+ </dd>
18676
+ </dl>
18677
+ </dd>
18678
+ </dl>
18679
+
17021
18680
  #### 🔌 Usage
17022
18681
 
17023
18682
  <dl>
@@ -17069,6 +18728,20 @@ await client.transactionalEmails.deleteSmtpTemplate({
17069
18728
  <dl>
17070
18729
  <dd>
17071
18730
 
18731
+ #### 📝 Description
18732
+
18733
+ <dl>
18734
+ <dd>
18735
+
18736
+ <dl>
18737
+ <dd>
18738
+
18739
+ Send a test email of the specified transactional template to one or more recipients. Provide an array of email addresses in the `emailTo` field; if left empty, the test mail is sent to your entire test list. You can send a maximum of 50 test emails per day, and all provided email addresses must be valid.
18740
+ </dd>
18741
+ </dl>
18742
+ </dd>
18743
+ </dl>
18744
+
17072
18745
  #### 🔌 Usage
17073
18746
 
17074
18747
  <dl>
@@ -17190,6 +18863,20 @@ await client.transactionalSms.sendAsyncTransactionalSms({
17190
18863
  <dl>
17191
18864
  <dd>
17192
18865
 
18866
+ #### 📝 Description
18867
+
18868
+ <dl>
18869
+ <dd>
18870
+
18871
+ <dl>
18872
+ <dd>
18873
+
18874
+ Send a transactional SMS message to a single mobile number. The `sender`, `recipient`, and either `content` or `templateId` fields are required. The sender name is limited to 11 alphanumeric characters or 15 numeric characters, and the recipient must be a valid international phone number (6-15 digits, optional leading +). Tags can be a string or an array of up to 10 strings. The SMS type defaults to `transactional` but can be set to `marketing`; if the content includes a stop code, it is automatically treated as marketing. Returns the message ID, SMS count, credits used, and remaining credits.
18875
+ </dd>
18876
+ </dl>
18877
+ </dd>
18878
+ </dl>
18879
+
17193
18880
  #### 🔌 Usage
17194
18881
 
17195
18882
  <dl>
@@ -17242,6 +18929,20 @@ await client.transactionalSms.sendTransacSms({
17242
18929
  <dl>
17243
18930
  <dd>
17244
18931
 
18932
+ #### 📝 Description
18933
+
18934
+ <dl>
18935
+ <dd>
18936
+
18937
+ <dl>
18938
+ <dd>
18939
+
18940
+ Retrieve an aggregated report of your transactional SMS activity over a specified time period, including counts for requests, delivered, hard bounces, soft bounces, blocked, unsubscribed, replied, accepted, rejected, and skipped messages. Filter by date range using `startDate` and `endDate` (both required together, YYYY-MM-DD format) or by a number of past `days` (not compatible with date range). You can further narrow results by `tag`. If no date filter is provided, the report covers all available data and returns the auto-detected date range.
18941
+ </dd>
18942
+ </dl>
18943
+ </dd>
18944
+ </dl>
18945
+
17245
18946
  #### 🔌 Usage
17246
18947
 
17247
18948
  <dl>
@@ -17291,6 +18992,20 @@ await client.transactionalSms.getTransacAggregatedSmsReport();
17291
18992
  <dl>
17292
18993
  <dd>
17293
18994
 
18995
+ #### 📝 Description
18996
+
18997
+ <dl>
18998
+ <dd>
18999
+
19000
+ <dl>
19001
+ <dd>
19002
+
19003
+ Retrieve a paginated list of individual SMS event records (unaggregated), including event type, phone number, message ID, timestamp, tag, and reason or reply content where applicable. Results default to 50 per page (max 100) and are sorted in descending order unless overridden. Filter by date range (`startDate`/`endDate`), past `days` (not compatible with date range), specific `event` type (e.g. delivered, bounces, replies), `phoneNumber`, or `tags`. Bounce events include the failure reason, and reply events include the reply content.
19004
+ </dd>
19005
+ </dl>
19006
+ </dd>
19007
+ </dl>
19008
+
17294
19009
  #### 🔌 Usage
17295
19010
 
17296
19011
  <dl>
@@ -17340,6 +19055,20 @@ await client.transactionalSms.getSmsEvents();
17340
19055
  <dl>
17341
19056
  <dd>
17342
19057
 
19058
+ #### 📝 Description
19059
+
19060
+ <dl>
19061
+ <dd>
19062
+
19063
+ <dl>
19064
+ <dd>
19065
+
19066
+ Retrieve a day-by-day breakdown of your transactional SMS activity, with each entry containing the date and counts for requests, delivered, hard bounces, soft bounces, blocked, unsubscribed, replied, accepted, rejected, and skipped messages. Filter by date range using `startDate` and `endDate` (both required together, YYYY-MM-DD format), by a number of past `days` (not compatible with date range), or by `tag`. Results are sorted in descending order by default unless overridden with the `sort` parameter.
19067
+ </dd>
19068
+ </dl>
19069
+ </dd>
19070
+ </dl>
19071
+
17343
19072
  #### 🔌 Usage
17344
19073
 
17345
19074
  <dl>