@getbrevo/brevo 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/LICENSE.md +15 -0
  3. package/README.md +105 -23
  4. package/api/accountApi.ts +1 -1
  5. package/api/companiesApi.ts +1 -1
  6. package/api/contactsApi.ts +7 -2
  7. package/api/conversationsApi.ts +1 -1
  8. package/api/couponsApi.ts +3 -3
  9. package/api/dealsApi.ts +1 -1
  10. package/api/domainsApi.ts +1 -1
  11. package/api/ecommerceApi.ts +160 -10
  12. package/api/emailCampaignsApi.ts +2 -2
  13. package/api/eventsApi.ts +1 -1
  14. package/api/externalFeedsApi.ts +1 -1
  15. package/api/filesApi.ts +1 -1
  16. package/api/inboundParsingApi.ts +1 -1
  17. package/api/masterAccountApi.ts +153 -2
  18. package/api/notesApi.ts +1 -1
  19. package/api/paymentsApi.ts +5 -5
  20. package/api/processApi.ts +1 -1
  21. package/api/resellerApi.ts +1 -1
  22. package/api/sMSCampaignsApi.ts +1 -1
  23. package/api/sendersApi.ts +1 -1
  24. package/api/tasksApi.ts +1 -1
  25. package/api/transactionalEmailsApi.ts +1 -1
  26. package/api/transactionalSMSApi.ts +3 -3
  27. package/api/transactionalWhatsAppApi.ts +1 -1
  28. package/api/userApi.ts +1 -1
  29. package/api/webhooksApi.ts +1 -1
  30. package/api/whatsAppCampaignsApi.ts +1 -1
  31. package/dist/api/contactsApi.d.ts +1 -1
  32. package/dist/api/contactsApi.js +4 -1
  33. package/dist/api/contactsApi.js.map +1 -1
  34. package/dist/api/couponsApi.d.ts +1 -1
  35. package/dist/api/couponsApi.js +1 -1
  36. package/dist/api/couponsApi.js.map +1 -1
  37. package/dist/api/ecommerceApi.d.ts +26 -6
  38. package/dist/api/ecommerceApi.js +136 -3
  39. package/dist/api/ecommerceApi.js.map +1 -1
  40. package/dist/api/masterAccountApi.d.ts +18 -0
  41. package/dist/api/masterAccountApi.js +133 -0
  42. package/dist/api/masterAccountApi.js.map +1 -1
  43. package/dist/api/paymentsApi.d.ts +2 -2
  44. package/dist/api/paymentsApi.js +1 -1
  45. package/dist/api/paymentsApi.js.map +1 -1
  46. package/dist/api/transactionalSMSApi.d.ts +1 -1
  47. package/dist/api/transactionalSMSApi.js +1 -1
  48. package/dist/api/transactionalSMSApi.js.map +1 -1
  49. package/dist/api.js +0 -1
  50. package/dist/model/companiesPostRequest.d.ts +2 -0
  51. package/dist/model/companiesPostRequest.js +10 -0
  52. package/dist/model/companiesPostRequest.js.map +1 -1
  53. package/dist/model/corporateSubAccountIpAssociatePostRequest.d.ts +15 -0
  54. package/dist/model/corporateSubAccountIpAssociatePostRequest.js +23 -0
  55. package/dist/model/corporateSubAccountIpAssociatePostRequest.js.map +1 -0
  56. package/dist/model/corporateSubAccountIpDissociatePutRequest.d.ts +15 -0
  57. package/dist/model/corporateSubAccountIpDissociatePutRequest.js +23 -0
  58. package/dist/model/corporateSubAccountIpDissociatePutRequest.js.map +1 -0
  59. package/dist/model/createPaymentRequest.d.ts +2 -1
  60. package/dist/model/createPaymentRequest.js +5 -0
  61. package/dist/model/createPaymentRequest.js.map +1 -1
  62. package/dist/model/createPaymentResponse.d.ts +15 -0
  63. package/dist/model/createPaymentResponse.js +23 -0
  64. package/dist/model/createPaymentResponse.js.map +1 -0
  65. package/dist/model/createSubAccount.d.ts +1 -0
  66. package/dist/model/createSubAccount.js +5 -0
  67. package/dist/model/createSubAccount.js.map +1 -1
  68. package/dist/model/createUpdateCategories.d.ts +1 -0
  69. package/dist/model/createUpdateCategories.js +5 -0
  70. package/dist/model/createUpdateCategories.js.map +1 -1
  71. package/dist/model/createUpdateCategory.d.ts +1 -0
  72. package/dist/model/createUpdateCategory.js +5 -0
  73. package/dist/model/createUpdateCategory.js.map +1 -1
  74. package/dist/model/createUpdateProduct.d.ts +1 -0
  75. package/dist/model/createUpdateProduct.js +5 -0
  76. package/dist/model/createUpdateProduct.js.map +1 -1
  77. package/dist/model/createUpdateProducts.d.ts +1 -0
  78. package/dist/model/createUpdateProducts.js +5 -0
  79. package/dist/model/createUpdateProducts.js.map +1 -1
  80. package/dist/model/crmDealsPostRequest.d.ts +2 -0
  81. package/dist/model/crmDealsPostRequest.js +10 -0
  82. package/dist/model/crmDealsPostRequest.js.map +1 -1
  83. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +24 -0
  84. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +49 -0
  85. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js.map +1 -0
  86. package/dist/model/ecommerceAttributionMetricsGet200Response.d.ts +17 -0
  87. package/dist/model/ecommerceAttributionMetricsGet200Response.js +23 -0
  88. package/dist/model/ecommerceAttributionMetricsGet200Response.js.map +1 -0
  89. package/dist/model/ecommerceAttributionMetricsGet200ResponseTotals.d.ts +16 -0
  90. package/dist/model/ecommerceAttributionMetricsGet200ResponseTotals.js +28 -0
  91. package/dist/model/ecommerceAttributionMetricsGet200ResponseTotals.js.map +1 -0
  92. package/dist/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.d.ts +15 -0
  93. package/dist/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.js +18 -0
  94. package/dist/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.js.map +1 -0
  95. package/dist/model/ecommerceConfigDisplayCurrencyGet200Response.d.ts +14 -0
  96. package/dist/model/ecommerceConfigDisplayCurrencyGet200Response.js +18 -0
  97. package/dist/model/ecommerceConfigDisplayCurrencyGet200Response.js.map +1 -0
  98. package/dist/model/errorModel.d.ts +2 -1
  99. package/dist/model/errorModel.js +1 -0
  100. package/dist/model/errorModel.js.map +1 -1
  101. package/dist/model/eventIdentifiers.d.ts +3 -3
  102. package/dist/model/eventIdentifiers.js +6 -6
  103. package/dist/model/eventIdentifiers.js.map +1 -1
  104. package/dist/model/getEmailCampaign.d.ts +4 -0
  105. package/dist/model/getEmailCampaign.js +20 -0
  106. package/dist/model/getEmailCampaign.js.map +1 -1
  107. package/dist/model/getEmailCampaignsCampaignsInner.d.ts +4 -0
  108. package/dist/model/getEmailCampaignsCampaignsInner.js +20 -0
  109. package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -1
  110. package/dist/model/getExtendedCampaignOverview.d.ts +4 -0
  111. package/dist/model/getExtendedCampaignOverview.js +20 -0
  112. package/dist/model/getExtendedCampaignOverview.js.map +1 -1
  113. package/dist/model/getPaymentRequest.d.ts +1 -0
  114. package/dist/model/getPaymentRequest.js +5 -0
  115. package/dist/model/getPaymentRequest.js.map +1 -1
  116. package/dist/model/getSmsEventReportEventsInner.d.ts +2 -1
  117. package/dist/model/getSmsEventReportEventsInner.js +1 -0
  118. package/dist/model/getSmsEventReportEventsInner.js.map +1 -1
  119. package/dist/model/getTransacAggregatedSmsReport.d.ts +1 -0
  120. package/dist/model/getTransacAggregatedSmsReport.js +5 -0
  121. package/dist/model/getTransacAggregatedSmsReport.js.map +1 -1
  122. package/dist/model/getTransacSmsReportReportsInner.d.ts +1 -0
  123. package/dist/model/getTransacSmsReportReportsInner.js +5 -0
  124. package/dist/model/getTransacSmsReportReportsInner.js.map +1 -1
  125. package/dist/model/models.d.ts +12 -0
  126. package/dist/model/models.js +37 -0
  127. package/dist/model/models.js.map +1 -1
  128. package/dist/model/orderBilling.d.ts +1 -0
  129. package/dist/model/orderBilling.js +5 -0
  130. package/dist/model/orderBilling.js.map +1 -1
  131. package/dist/model/subAccountDetailsResponse.d.ts +2 -0
  132. package/dist/model/subAccountDetailsResponse.js +5 -0
  133. package/dist/model/subAccountDetailsResponse.js.map +1 -1
  134. package/dist/model/subAccountDetailsResponseGroupsInner.d.ts +15 -0
  135. package/dist/model/subAccountDetailsResponseGroupsInner.js +23 -0
  136. package/dist/model/subAccountDetailsResponseGroupsInner.js.map +1 -0
  137. package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +4 -1
  138. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +9 -4
  139. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
  140. package/dist/model/subAccountDetailsResponsePlanInfoCreditsSms.d.ts +15 -0
  141. package/dist/model/subAccountDetailsResponsePlanInfoCreditsSms.js +23 -0
  142. package/dist/model/subAccountDetailsResponsePlanInfoCreditsSms.js.map +1 -0
  143. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.d.ts +15 -0
  144. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.js +23 -0
  145. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.js.map +1 -0
  146. package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +2 -0
  147. package/dist/model/subAccountUpdatePlanRequestCredits.js +10 -0
  148. package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
  149. package/dist/model/subAccountsResponseSubAccountsInner.d.ts +2 -0
  150. package/dist/model/subAccountsResponseSubAccountsInner.js +5 -0
  151. package/dist/model/subAccountsResponseSubAccountsInner.js.map +1 -1
  152. package/dist/model/subAccountsResponseSubAccountsInnerGroupsInner.d.ts +15 -0
  153. package/dist/model/subAccountsResponseSubAccountsInnerGroupsInner.js +23 -0
  154. package/dist/model/subAccountsResponseSubAccountsInnerGroupsInner.js.map +1 -0
  155. package/model/abTestCampaignResult.ts +1 -1
  156. package/model/abTestCampaignResultClickedLinks.ts +1 -1
  157. package/model/abTestCampaignResultStatistics.ts +1 -1
  158. package/model/abTestVersionClicksInner.ts +1 -1
  159. package/model/abTestVersionStats.ts +1 -1
  160. package/model/addChildDomain.ts +1 -1
  161. package/model/addContactToList.ts +1 -1
  162. package/model/addCredits.ts +1 -1
  163. package/model/authenticateDomainModel.ts +1 -1
  164. package/model/blockDomain.ts +1 -1
  165. package/model/cart.ts +1 -1
  166. package/model/companiesIdPatchRequest.ts +1 -1
  167. package/model/companiesLinkUnlinkIdPatchRequest.ts +1 -1
  168. package/model/companiesList.ts +1 -1
  169. package/model/companiesPost200Response.ts +1 -1
  170. package/model/companiesPostRequest.ts +19 -1
  171. package/model/company.ts +1 -1
  172. package/model/companyAttributesInner.ts +1 -1
  173. package/model/componentItems.ts +1 -1
  174. package/model/configuration.ts +1 -1
  175. package/model/conversationsAgentOnlinePingPostRequest.ts +1 -1
  176. package/model/conversationsMessage.ts +1 -1
  177. package/model/conversationsMessageFile.ts +1 -1
  178. package/model/conversationsMessageFileImageInfo.ts +1 -1
  179. package/model/conversationsMessagesIdPutRequest.ts +1 -1
  180. package/model/conversationsMessagesPostRequest.ts +1 -1
  181. package/model/conversationsPushedMessagesIdPutRequest.ts +1 -1
  182. package/model/conversationsPushedMessagesPostRequest.ts +1 -1
  183. package/model/conversionSourceMetrics.ts +1 -1
  184. package/model/conversionSourceProduct.ts +1 -1
  185. package/model/corporateGroupDetailsResponse.ts +1 -1
  186. package/model/corporateGroupDetailsResponseGroup.ts +1 -1
  187. package/model/corporateGroupDetailsResponseSubAccountsInner.ts +1 -1
  188. package/model/corporateGroupDetailsResponseUsersInner.ts +1 -1
  189. package/model/corporateGroupPost201Response.ts +1 -1
  190. package/model/corporateGroupPostRequest.ts +1 -1
  191. package/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.ts +1 -1
  192. package/model/corporateSubAccountIpAssociatePostRequest.ts +43 -0
  193. package/model/corporateSubAccountIpDissociatePutRequest.ts +43 -0
  194. package/model/corporateUserInvitationActionEmailPut200Response.ts +1 -1
  195. package/model/createApiKeyRequest.ts +1 -1
  196. package/model/createApiKeyResponse.ts +1 -1
  197. package/model/createAttribute.ts +1 -1
  198. package/model/createAttributeEnumerationInner.ts +1 -1
  199. package/model/createCategoryModel.ts +1 -1
  200. package/model/createChild.ts +1 -1
  201. package/model/createContact.ts +1 -1
  202. package/model/createCouponCollection201Response.ts +1 -1
  203. package/model/createCouponCollectionRequest.ts +1 -1
  204. package/model/createCouponsRequest.ts +1 -1
  205. package/model/createDoiContact.ts +1 -1
  206. package/model/createDomain.ts +1 -1
  207. package/model/createDomainModel.ts +1 -1
  208. package/model/createDomainModelDnsRecords.ts +1 -1
  209. package/model/createDomainModelDnsRecordsDkimRecord.ts +1 -1
  210. package/model/createEmailCampaign.ts +1 -1
  211. package/model/createEmailCampaignRecipients.ts +1 -1
  212. package/model/createEmailCampaignSender.ts +1 -1
  213. package/model/createExternalFeed.ts +1 -1
  214. package/model/createExternalFeed201Response.ts +1 -1
  215. package/model/createList.ts +1 -1
  216. package/model/createModel.ts +1 -1
  217. package/model/createPaymentRequest.ts +11 -2
  218. package/model/createPaymentResponse.ts +43 -0
  219. package/model/createProductModel.ts +1 -1
  220. package/model/createReseller.ts +1 -1
  221. package/model/createSender.ts +1 -1
  222. package/model/createSenderIpsInner.ts +1 -1
  223. package/model/createSenderModel.ts +1 -1
  224. package/model/createSmsCampaign.ts +1 -1
  225. package/model/createSmsCampaignRecipients.ts +1 -1
  226. package/model/createSmtpEmail.ts +1 -1
  227. package/model/createSmtpTemplate.ts +1 -1
  228. package/model/createSmtpTemplateSender.ts +1 -1
  229. package/model/createSubAccount.ts +10 -1
  230. package/model/createSubAccountResponse.ts +1 -1
  231. package/model/createUpdateBatchCategory.ts +1 -1
  232. package/model/createUpdateBatchCategoryModel.ts +1 -1
  233. package/model/createUpdateBatchProducts.ts +1 -1
  234. package/model/createUpdateBatchProductsModel.ts +1 -1
  235. package/model/createUpdateCategories.ts +10 -1
  236. package/model/createUpdateCategory.ts +10 -1
  237. package/model/createUpdateContactModel.ts +1 -1
  238. package/model/createUpdateFolder.ts +1 -1
  239. package/model/createUpdateProduct.ts +10 -1
  240. package/model/createUpdateProducts.ts +10 -1
  241. package/model/createWebhook.ts +1 -1
  242. package/model/createWhatsAppCampaign.ts +1 -1
  243. package/model/createWhatsAppCampaignRecipients.ts +1 -1
  244. package/model/createWhatsAppTemplate.ts +1 -1
  245. package/model/createdBatchId.ts +1 -1
  246. package/model/createdProcessId.ts +1 -1
  247. package/model/crmDealsIdPatchRequest.ts +1 -1
  248. package/model/crmDealsLinkUnlinkIdPatchRequest.ts +1 -1
  249. package/model/crmDealsPost201Response.ts +1 -1
  250. package/model/crmDealsPostRequest.ts +19 -1
  251. package/model/crmTasksIdPatchRequest.ts +1 -1
  252. package/model/crmTasksPost201Response.ts +1 -1
  253. package/model/crmTasksPostRequest.ts +1 -1
  254. package/model/deal.ts +1 -1
  255. package/model/dealAttributesInner.ts +1 -1
  256. package/model/dealsList.ts +1 -1
  257. package/model/deleteHardbounces.ts +1 -1
  258. package/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts +66 -0
  259. package/model/ecommerceAttributionMetricsGet200Response.ts +42 -0
  260. package/model/ecommerceAttributionMetricsGet200ResponseTotals.ts +46 -0
  261. package/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.ts +35 -0
  262. package/model/ecommerceConfigDisplayCurrencyGet200Response.ts +34 -0
  263. package/model/emailExportRecipients.ts +1 -1
  264. package/model/errorModel.ts +3 -2
  265. package/model/event.ts +1 -1
  266. package/model/eventIdentifiers.ts +10 -10
  267. package/model/exportWebhooksHistory.ts +1 -1
  268. package/model/fileData.ts +1 -1
  269. package/model/fileDownloadableLink.ts +1 -1
  270. package/model/getAccount.ts +1 -1
  271. package/model/getAccountActivity.ts +1 -1
  272. package/model/getAccountActivityLogsInner.ts +1 -1
  273. package/model/getAccountAllOfMarketingAutomation.ts +1 -1
  274. package/model/getAccountAllOfPlan.ts +1 -1
  275. package/model/getAccountAllOfRelay.ts +1 -1
  276. package/model/getAccountAllOfRelayData.ts +1 -1
  277. package/model/getAggregatedReport.ts +1 -1
  278. package/model/getAllExternalFeeds.ts +1 -1
  279. package/model/getAllExternalFeedsFeedsInner.ts +1 -1
  280. package/model/getAttributes.ts +1 -1
  281. package/model/getAttributesAttributesInner.ts +1 -1
  282. package/model/getAttributesAttributesInnerEnumerationInner.ts +1 -1
  283. package/model/getBlockedDomains.ts +1 -1
  284. package/model/getCampaignOverview.ts +1 -1
  285. package/model/getCampaignRecipients.ts +1 -1
  286. package/model/getCampaignStats.ts +1 -1
  287. package/model/getCategories.ts +1 -1
  288. package/model/getCategoryDetails.ts +1 -1
  289. package/model/getChildAccountCreationStatus.ts +1 -1
  290. package/model/getChildDomain.ts +1 -1
  291. package/model/getChildInfo.ts +1 -1
  292. package/model/getChildInfoAllOfApiKeys.ts +1 -1
  293. package/model/getChildInfoAllOfApiKeysV2.ts +1 -1
  294. package/model/getChildInfoAllOfApiKeysV3.ts +1 -1
  295. package/model/getChildInfoAllOfCredits.ts +1 -1
  296. package/model/getChildInfoAllOfStatistics.ts +1 -1
  297. package/model/getChildrenList.ts +1 -1
  298. package/model/getChildrenListChildrenInner.ts +1 -1
  299. package/model/getClient.ts +1 -1
  300. package/model/getContactCampaignStats.ts +1 -1
  301. package/model/getContactCampaignStatsClickedInner.ts +1 -1
  302. package/model/getContactCampaignStatsClickedInnerLinksInner.ts +1 -1
  303. package/model/getContactCampaignStatsMessagesSentInner.ts +1 -1
  304. package/model/getContactCampaignStatsOpenedInner.ts +1 -1
  305. package/model/getContactCampaignStatsTransacAttributesInner.ts +1 -1
  306. package/model/getContactCampaignStatsUnsubscriptions.ts +1 -1
  307. package/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.ts +1 -1
  308. package/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.ts +1 -1
  309. package/model/getContactDetails.ts +1 -1
  310. package/model/getContacts.ts +1 -1
  311. package/model/getCorporateInvitedUsersList.ts +1 -1
  312. package/model/getCorporateInvitedUsersListUsersInner.ts +1 -1
  313. package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +1 -1
  314. package/model/getCorporateInvitedUsersListUsersInnerGroups.ts +1 -1
  315. package/model/getCorporateUserPermission.ts +1 -1
  316. package/model/getCorporateUserPermissionFeatureAccess.ts +1 -1
  317. package/model/getCorporateUserPermissionGroupsInner.ts +1 -1
  318. package/model/getCouponCollection.ts +1 -1
  319. package/model/getDeviceBrowserStats.ts +1 -1
  320. package/model/getDomainConfigurationModel.ts +1 -1
  321. package/model/getDomainsList.ts +1 -1
  322. package/model/getDomainsListDomainsInner.ts +1 -1
  323. package/model/getEmailCampaign.ts +37 -1
  324. package/model/getEmailCampaigns.ts +1 -1
  325. package/model/getEmailCampaignsCampaignsInner.ts +37 -1
  326. package/model/getEmailEventReport.ts +1 -1
  327. package/model/getEmailEventReportEventsInner.ts +1 -1
  328. package/model/getExtendedCampaignOverview.ts +37 -1
  329. package/model/getExtendedCampaignOverviewAllOfSender.ts +1 -1
  330. package/model/getExtendedCampaignStats.ts +1 -1
  331. package/model/getExtendedClient.ts +1 -1
  332. package/model/getExtendedClientAllOfAddress.ts +1 -1
  333. package/model/getExtendedContactDetails.ts +1 -1
  334. package/model/getExtendedContactDetailsAllOfStatistics.ts +1 -1
  335. package/model/getExtendedContactDetailsAllOfStatisticsClicked.ts +1 -1
  336. package/model/getExtendedContactDetailsAllOfStatisticsLinks.ts +1 -1
  337. package/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.ts +1 -1
  338. package/model/getExtendedContactDetailsAllOfStatisticsOpened.ts +1 -1
  339. package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.ts +1 -1
  340. package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.ts +1 -1
  341. package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.ts +1 -1
  342. package/model/getExtendedList.ts +1 -1
  343. package/model/getExtendedListAllOfCampaignStats.ts +1 -1
  344. package/model/getExternalFeedByUUID.ts +1 -1
  345. package/model/getExternalFeedByUUIDHeadersInner.ts +1 -1
  346. package/model/getFolder.ts +1 -1
  347. package/model/getFolderLists.ts +1 -1
  348. package/model/getFolders.ts +1 -1
  349. package/model/getInboundEmailEvents.ts +1 -1
  350. package/model/getInboundEmailEventsByUuid.ts +1 -1
  351. package/model/getInboundEmailEventsByUuidAttachmentsInner.ts +1 -1
  352. package/model/getInboundEmailEventsByUuidLogsInner.ts +1 -1
  353. package/model/getInboundEmailEventsEventsInner.ts +1 -1
  354. package/model/getInvitedUsersList.ts +1 -1
  355. package/model/getInvitedUsersListUsersInner.ts +1 -1
  356. package/model/getInvitedUsersListUsersInnerFeatureAccess.ts +1 -1
  357. package/model/getIp.ts +1 -1
  358. package/model/getIpFromSender.ts +1 -1
  359. package/model/getIps.ts +1 -1
  360. package/model/getIpsFromSender.ts +1 -1
  361. package/model/getList.ts +1 -1
  362. package/model/getLists.ts +1 -1
  363. package/model/getListsListsInner.ts +1 -1
  364. package/model/getOrders.ts +1 -1
  365. package/model/getOrdersOrdersInner.ts +1 -1
  366. package/model/getPaymentRequest.ts +10 -1
  367. package/model/getProcess.ts +1 -1
  368. package/model/getProcesses.ts +1 -1
  369. package/model/getProductDetails.ts +1 -1
  370. package/model/getProducts.ts +1 -1
  371. package/model/getReports.ts +1 -1
  372. package/model/getReportsReportsInner.ts +1 -1
  373. package/model/getScheduledEmailByBatchId.ts +1 -1
  374. package/model/getScheduledEmailByBatchIdBatchesInner.ts +1 -1
  375. package/model/getScheduledEmailByMessageId.ts +1 -1
  376. package/model/getSegments.ts +1 -1
  377. package/model/getSegmentsSegments.ts +1 -1
  378. package/model/getSendersList.ts +1 -1
  379. package/model/getSendersListSendersInner.ts +1 -1
  380. package/model/getSendersListSendersInnerIpsInner.ts +1 -1
  381. package/model/getSharedTemplateUrl.ts +1 -1
  382. package/model/getSmsCampaign.ts +1 -1
  383. package/model/getSmsCampaignOverview.ts +1 -1
  384. package/model/getSmsCampaignStats.ts +1 -1
  385. package/model/getSmsCampaigns.ts +1 -1
  386. package/model/getSmsCampaignsCampaignsInner.ts +1 -1
  387. package/model/getSmsEventReport.ts +1 -1
  388. package/model/getSmsEventReportEventsInner.ts +3 -2
  389. package/model/getSmtpTemplateOverview.ts +1 -1
  390. package/model/getSmtpTemplateOverviewSender.ts +1 -1
  391. package/model/getSmtpTemplates.ts +1 -1
  392. package/model/getSsoToken.ts +1 -1
  393. package/model/getStatsByDevice.ts +1 -1
  394. package/model/getSubAccountGroups200ResponseInner.ts +1 -1
  395. package/model/getTransacAggregatedSmsReport.ts +12 -3
  396. package/model/getTransacBlockedContacts.ts +1 -1
  397. package/model/getTransacBlockedContactsContactsInner.ts +1 -1
  398. package/model/getTransacBlockedContactsContactsInnerReason.ts +1 -1
  399. package/model/getTransacEmailContent.ts +1 -1
  400. package/model/getTransacEmailContentEventsInner.ts +1 -1
  401. package/model/getTransacEmailsList.ts +1 -1
  402. package/model/getTransacEmailsListTransactionalEmailsInner.ts +1 -1
  403. package/model/getTransacSmsReport.ts +1 -1
  404. package/model/getTransacSmsReportReportsInner.ts +12 -3
  405. package/model/getUserPermission.ts +1 -1
  406. package/model/getUserPermissionPrivilegesInner.ts +1 -1
  407. package/model/getWATemplates.ts +1 -1
  408. package/model/getWATemplatesTemplatesInner.ts +1 -1
  409. package/model/getWebhook.ts +1 -1
  410. package/model/getWebhookAuth.ts +1 -1
  411. package/model/getWebhookHeadersInner.ts +1 -1
  412. package/model/getWebhooks.ts +1 -1
  413. package/model/getWhatsAppConfig.ts +1 -1
  414. package/model/getWhatsappCampaignOverview.ts +1 -1
  415. package/model/getWhatsappCampaigns.ts +1 -1
  416. package/model/getWhatsappCampaignsCampaignsInner.ts +1 -1
  417. package/model/getWhatsappEventReport.ts +1 -1
  418. package/model/getWhatsappEventReportEventsInner.ts +1 -1
  419. package/model/inviteAdminUser.ts +1 -1
  420. package/model/inviteAdminUserPrivilegesInner.ts +1 -1
  421. package/model/inviteuser.ts +1 -1
  422. package/model/inviteuserPrivilegesInner.ts +1 -1
  423. package/model/manageIp.ts +1 -1
  424. package/model/masterDetailsResponse.ts +1 -1
  425. package/model/masterDetailsResponseBillingInfo.ts +1 -1
  426. package/model/masterDetailsResponseBillingInfoAddress.ts +1 -1
  427. package/model/masterDetailsResponseBillingInfoName.ts +1 -1
  428. package/model/masterDetailsResponsePlanInfo.ts +1 -1
  429. package/model/masterDetailsResponsePlanInfoFeaturesInner.ts +1 -1
  430. package/model/models.ts +37 -0
  431. package/model/note.ts +1 -1
  432. package/model/noteData.ts +1 -1
  433. package/model/noteId.ts +1 -1
  434. package/model/notification.ts +1 -1
  435. package/model/order.ts +1 -1
  436. package/model/orderBatch.ts +1 -1
  437. package/model/orderBilling.ts +10 -1
  438. package/model/orderProductsInner.ts +1 -1
  439. package/model/otp.ts +1 -1
  440. package/model/pipeline.ts +1 -1
  441. package/model/pipelineStage.ts +1 -1
  442. package/model/postContactInfo.ts +1 -1
  443. package/model/postContactInfoContacts.ts +1 -1
  444. package/model/postSendFailed.ts +1 -1
  445. package/model/postSendSmsTestFailed.ts +1 -1
  446. package/model/putRevokeUserPermission.ts +1 -1
  447. package/model/putresendcancelinvitation.ts +1 -1
  448. package/model/remainingCreditModel.ts +1 -1
  449. package/model/remainingCreditModelChild.ts +1 -1
  450. package/model/remainingCreditModelReseller.ts +1 -1
  451. package/model/removeContactFromList.ts +1 -1
  452. package/model/removeCredits.ts +1 -1
  453. package/model/requestContactExport.ts +1 -1
  454. package/model/requestContactExportCustomContactFilter.ts +1 -1
  455. package/model/requestContactImport.ts +1 -1
  456. package/model/requestContactImportJsonBodyInner.ts +1 -1
  457. package/model/requestContactImportNewList.ts +1 -1
  458. package/model/requestSmsRecipientExport.ts +1 -1
  459. package/model/scheduleSmtpEmail.ts +1 -1
  460. package/model/sendReport.ts +1 -1
  461. package/model/sendReportEmail.ts +1 -1
  462. package/model/sendSms.ts +1 -1
  463. package/model/sendSmtpEmail.ts +1 -1
  464. package/model/sendSmtpEmailAttachmentInner.ts +1 -1
  465. package/model/sendSmtpEmailBccInner.ts +1 -1
  466. package/model/sendSmtpEmailCcInner.ts +1 -1
  467. package/model/sendSmtpEmailMessageVersionsInner.ts +1 -1
  468. package/model/sendSmtpEmailMessageVersionsInnerReplyTo.ts +1 -1
  469. package/model/sendSmtpEmailMessageVersionsInnerToInner.ts +1 -1
  470. package/model/sendSmtpEmailReplyTo.ts +1 -1
  471. package/model/sendSmtpEmailSender.ts +1 -1
  472. package/model/sendSmtpEmailToInner.ts +1 -1
  473. package/model/sendTestEmail.ts +1 -1
  474. package/model/sendTestSms.ts +1 -1
  475. package/model/sendTransacSms.ts +1 -1
  476. package/model/sendWhatsappMessage.ts +1 -1
  477. package/model/sendWhatsappMessage201Response.ts +1 -1
  478. package/model/ssoTokenRequest.ts +1 -1
  479. package/model/ssoTokenRequestCorporate.ts +1 -1
  480. package/model/subAccountAppsToggleRequest.ts +1 -1
  481. package/model/subAccountDetailsResponse.ts +11 -1
  482. package/model/subAccountDetailsResponseGroupsInner.ts +43 -0
  483. package/model/subAccountDetailsResponsePlanInfo.ts +1 -1
  484. package/model/subAccountDetailsResponsePlanInfoCredits.ts +14 -9
  485. package/model/subAccountDetailsResponsePlanInfoCreditsEmails.ts +1 -1
  486. package/model/subAccountDetailsResponsePlanInfoCreditsSms.ts +46 -0
  487. package/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.ts +46 -0
  488. package/model/subAccountDetailsResponsePlanInfoFeatures.ts +1 -1
  489. package/model/subAccountDetailsResponsePlanInfoFeaturesInbox.ts +1 -1
  490. package/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.ts +1 -1
  491. package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +1 -1
  492. package/model/subAccountUpdatePlanRequest.ts +1 -1
  493. package/model/subAccountUpdatePlanRequestCredits.ts +19 -1
  494. package/model/subAccountUpdatePlanRequestFeatures.ts +1 -1
  495. package/model/subAccountsResponse.ts +1 -1
  496. package/model/subAccountsResponseSubAccountsInner.ts +11 -1
  497. package/model/subAccountsResponseSubAccountsInnerGroupsInner.ts +43 -0
  498. package/model/task.ts +1 -1
  499. package/model/taskList.ts +1 -1
  500. package/model/taskReminder.ts +1 -1
  501. package/model/taskTypes.ts +1 -1
  502. package/model/updateAttribute.ts +1 -1
  503. package/model/updateAttributeEnumerationInner.ts +1 -1
  504. package/model/updateBatchContacts.ts +1 -1
  505. package/model/updateBatchContactsContactsInner.ts +1 -1
  506. package/model/updateBatchContactsModel.ts +1 -1
  507. package/model/updateCampaignStatus.ts +1 -1
  508. package/model/updateChild.ts +1 -1
  509. package/model/updateChildAccountStatus.ts +1 -1
  510. package/model/updateChildDomain.ts +1 -1
  511. package/model/updateContact.ts +1 -1
  512. package/model/updateCouponCollection200Response.ts +1 -1
  513. package/model/updateCouponCollectionRequest.ts +1 -1
  514. package/model/updateEmailCampaign.ts +1 -1
  515. package/model/updateEmailCampaignRecipients.ts +1 -1
  516. package/model/updateEmailCampaignSender.ts +1 -1
  517. package/model/updateExternalFeed.ts +1 -1
  518. package/model/updateList.ts +1 -1
  519. package/model/updateSender.ts +1 -1
  520. package/model/updateSmsCampaign.ts +1 -1
  521. package/model/updateSmtpTemplate.ts +1 -1
  522. package/model/updateSmtpTemplateSender.ts +1 -1
  523. package/model/updateWebhook.ts +1 -1
  524. package/model/updateWhatsAppCampaign.ts +1 -1
  525. package/model/uploadImageModel.ts +1 -1
  526. package/model/uploadImageToGallery.ts +1 -1
  527. package/model/variablesItems.ts +1 -1
  528. package/model/whatsappCampStats.ts +1 -1
  529. package/model/whatsappCampTemplate.ts +1 -1
  530. package/package.json +4 -4
package/api/eventsApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
package/api/filesApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -19,6 +19,8 @@ import { CorporateGroupDetailsResponse } from '../model/corporateGroupDetailsRes
19
19
  import { CorporateGroupPost201Response } from '../model/corporateGroupPost201Response';
20
20
  import { CorporateGroupPostRequest } from '../model/corporateGroupPostRequest';
21
21
  import { CorporateGroupUnlinkGroupIdSubAccountsPutRequest } from '../model/corporateGroupUnlinkGroupIdSubAccountsPutRequest';
22
+ import { CorporateSubAccountIpAssociatePostRequest } from '../model/corporateSubAccountIpAssociatePostRequest';
23
+ import { CorporateSubAccountIpDissociatePutRequest } from '../model/corporateSubAccountIpDissociatePutRequest';
22
24
  import { CorporateUserInvitationActionEmailPut200Response } from '../model/corporateUserInvitationActionEmailPut200Response';
23
25
  import { CreateApiKeyRequest } from '../model/createApiKeyRequest';
24
26
  import { CreateApiKeyResponse } from '../model/createApiKeyResponse';
@@ -961,7 +963,7 @@ export class MasterAccountApi {
961
963
  });
962
964
  }
963
965
  /**
964
- * This endpoint will update the sub-account plan
966
+ * This endpoint will update the sub-account plan. On the Corporate solution new version v2, you can set an unlimited number of credits in your sub-organization. Please pass the value “-1\" to set the consumable in unlimited mode.
965
967
  * @summary Update sub-account plan
966
968
  * @param id Id of the sub-account organization
967
969
  * @param updatePlanDetails Values to update a sub-account plan
@@ -1041,6 +1043,155 @@ export class MasterAccountApi {
1041
1043
  });
1042
1044
  });
1043
1045
  }
1046
+ /**
1047
+ * This endpoint allows to associate an IP to sub-accounts
1048
+ * @summary Associate an IP to sub-accounts
1049
+ * @param body Ip address association details
1050
+ */
1051
+ public async corporateSubAccountIpAssociatePost (body: CorporateSubAccountIpAssociatePostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
1052
+ const localVarPath = this.basePath + '/corporate/subAccount/ip/associate';
1053
+ let localVarQueryParameters: any = {};
1054
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1055
+ const produces = ['application/json'];
1056
+ // give precedence to 'application/json'
1057
+ if (produces.indexOf('application/json') >= 0) {
1058
+ localVarHeaderParams.Accept = 'application/json';
1059
+ } else {
1060
+ localVarHeaderParams.Accept = produces.join(',');
1061
+ }
1062
+ let localVarFormParams: any = {};
1063
+
1064
+ // verify required parameter 'body' is not null or undefined
1065
+ if (body === null || body === undefined) {
1066
+ throw new Error('Required parameter body was null or undefined when calling corporateSubAccountIpAssociatePost.');
1067
+ }
1068
+
1069
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1070
+
1071
+ let localVarUseFormData = false;
1072
+
1073
+ let localVarRequestOptions: localVarRequest.Options = {
1074
+ method: 'POST',
1075
+ qs: localVarQueryParameters,
1076
+ headers: localVarHeaderParams,
1077
+ uri: localVarPath,
1078
+ useQuerystring: this._useQuerystring,
1079
+ json: true,
1080
+ body: ObjectSerializer.serialize(body, "CorporateSubAccountIpAssociatePostRequest")
1081
+ };
1082
+
1083
+ let authenticationPromise = Promise.resolve();
1084
+ if (this.authentications.apiKey.apiKey) {
1085
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1086
+ }
1087
+ if (this.authentications.partnerKey.apiKey) {
1088
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1089
+ }
1090
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1091
+
1092
+ let interceptorPromise = authenticationPromise;
1093
+ for (const interceptor of this.interceptors) {
1094
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1095
+ }
1096
+
1097
+ return interceptorPromise.then(() => {
1098
+ if (Object.keys(localVarFormParams).length) {
1099
+ if (localVarUseFormData) {
1100
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1101
+ } else {
1102
+ localVarRequestOptions.form = localVarFormParams;
1103
+ }
1104
+ }
1105
+ return new Promise<{ response: http.IncomingMessage; body: object; }>((resolve, reject) => {
1106
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1107
+ if (error) {
1108
+ reject(error);
1109
+ } else {
1110
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1111
+ body = ObjectSerializer.deserialize(body, "object");
1112
+ resolve({ response: response, body: body });
1113
+ } else {
1114
+ reject(new HttpError(response, body, response.statusCode));
1115
+ }
1116
+ }
1117
+ });
1118
+ });
1119
+ });
1120
+ }
1121
+ /**
1122
+ * This endpoint allows to dissociate an IP from sub-accounts
1123
+ * @summary Dissociate an IP from sub-accounts
1124
+ * @param body Ip address dissociation details
1125
+ */
1126
+ public async corporateSubAccountIpDissociatePut (body: CorporateSubAccountIpDissociatePutRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
1127
+ const localVarPath = this.basePath + '/corporate/subAccount/ip/dissociate';
1128
+ let localVarQueryParameters: any = {};
1129
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1130
+ const produces = ['application/json'];
1131
+ // give precedence to 'application/json'
1132
+ if (produces.indexOf('application/json') >= 0) {
1133
+ localVarHeaderParams.Accept = 'application/json';
1134
+ } else {
1135
+ localVarHeaderParams.Accept = produces.join(',');
1136
+ }
1137
+ let localVarFormParams: any = {};
1138
+
1139
+ // verify required parameter 'body' is not null or undefined
1140
+ if (body === null || body === undefined) {
1141
+ throw new Error('Required parameter body was null or undefined when calling corporateSubAccountIpDissociatePut.');
1142
+ }
1143
+
1144
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1145
+
1146
+ let localVarUseFormData = false;
1147
+
1148
+ let localVarRequestOptions: localVarRequest.Options = {
1149
+ method: 'PUT',
1150
+ qs: localVarQueryParameters,
1151
+ headers: localVarHeaderParams,
1152
+ uri: localVarPath,
1153
+ useQuerystring: this._useQuerystring,
1154
+ json: true,
1155
+ body: ObjectSerializer.serialize(body, "CorporateSubAccountIpDissociatePutRequest")
1156
+ };
1157
+
1158
+ let authenticationPromise = Promise.resolve();
1159
+ if (this.authentications.apiKey.apiKey) {
1160
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1161
+ }
1162
+ if (this.authentications.partnerKey.apiKey) {
1163
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1164
+ }
1165
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1166
+
1167
+ let interceptorPromise = authenticationPromise;
1168
+ for (const interceptor of this.interceptors) {
1169
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1170
+ }
1171
+
1172
+ return interceptorPromise.then(() => {
1173
+ if (Object.keys(localVarFormParams).length) {
1174
+ if (localVarUseFormData) {
1175
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1176
+ } else {
1177
+ localVarRequestOptions.form = localVarFormParams;
1178
+ }
1179
+ }
1180
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
1181
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1182
+ if (error) {
1183
+ reject(error);
1184
+ } else {
1185
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1186
+ resolve({ response: response, body: body });
1187
+ } else {
1188
+ reject(new HttpError(response, body, response.statusCode));
1189
+ }
1190
+ }
1191
+ });
1192
+ });
1193
+ });
1194
+ }
1044
1195
  /**
1045
1196
  * This endpoint will generate an API v3 key for a sub account
1046
1197
  * @summary Create an API key for a sub-account
package/api/notesApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -15,8 +15,8 @@ import localVarRequest from 'request';
15
15
  import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
- import { CreateModel } from '../model/createModel';
19
18
  import { CreatePaymentRequest } from '../model/createPaymentRequest';
19
+ import { CreatePaymentResponse } from '../model/createPaymentResponse';
20
20
  import { ErrorModel } from '../model/errorModel';
21
21
  import { GetPaymentRequest } from '../model/getPaymentRequest';
22
22
 
@@ -99,7 +99,7 @@ export class PaymentsApi {
99
99
  * @summary Create a payment request
100
100
  * @param createPaymentRquest Create a payment request
101
101
  */
102
- public async createPaymentRequest (createPaymentRquest: CreatePaymentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateModel; }> {
102
+ public async createPaymentRequest (createPaymentRquest: CreatePaymentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreatePaymentResponse; }> {
103
103
  const localVarPath = this.basePath + '/payments/requests';
104
104
  let localVarQueryParameters: any = {};
105
105
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -153,13 +153,13 @@ export class PaymentsApi {
153
153
  localVarRequestOptions.form = localVarFormParams;
154
154
  }
155
155
  }
156
- return new Promise<{ response: http.IncomingMessage; body: CreateModel; }>((resolve, reject) => {
156
+ return new Promise<{ response: http.IncomingMessage; body: CreatePaymentResponse; }>((resolve, reject) => {
157
157
  localVarRequest(localVarRequestOptions, (error, response, body) => {
158
158
  if (error) {
159
159
  reject(error);
160
160
  } else {
161
161
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
162
- body = ObjectSerializer.deserialize(body, "CreateModel");
162
+ body = ObjectSerializer.deserialize(body, "CreatePaymentResponse");
163
163
  resolve({ response: response, body: body });
164
164
  } else {
165
165
  reject(new HttpError(response, body, response.statusCode));
package/api/processApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
package/api/sendersApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
package/api/tasksApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -109,7 +109,7 @@ export class TransactionalSMSApi {
109
109
  * @param tags Filter the report for specific tags passed as a serialized urlencoded array
110
110
  * @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
111
111
  */
112
- public async getSmsEvents (limit?: number, startDate?: string, endDate?: string, offset?: number, days?: number, phoneNumber?: string, event?: 'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected', tags?: string, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSmsEventReport; }> {
112
+ public async getSmsEvents (limit?: number, startDate?: string, endDate?: string, offset?: number, days?: number, phoneNumber?: string, event?: 'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected' | 'skipped', tags?: string, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSmsEventReport; }> {
113
113
  const localVarPath = this.basePath + '/transactionalSMS/statistics/events';
114
114
  let localVarQueryParameters: any = {};
115
115
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -147,7 +147,7 @@ export class TransactionalSMSApi {
147
147
  }
148
148
 
149
149
  if (event !== undefined) {
150
- localVarQueryParameters['event'] = ObjectSerializer.serialize(event, "'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected'");
150
+ localVarQueryParameters['event'] = ObjectSerializer.serialize(event, "'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected' | 'skipped'");
151
151
  }
152
152
 
153
153
  if (tags !== undefined) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
package/api/userApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Brevo API
3
- * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
3
+ * Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity |
4
4
  *
5
5
  * The version of the OpenAPI document: 3.0.0
6
6
  * Contact: contact@brevo.com
@@ -156,7 +156,7 @@ export declare class ContactsApi {
156
156
  response: http.IncomingMessage;
157
157
  body: GetContactCampaignStats;
158
158
  }>;
159
- getContacts(limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, options?: {
159
+ getContacts(limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, filter?: string, options?: {
160
160
  headers: {
161
161
  [name: string]: string;
162
162
  };
@@ -958,7 +958,7 @@ class ContactsApi {
958
958
  });
959
959
  });
960
960
  }
961
- getContacts(limit, offset, modifiedSince, createdSince, sort, segmentId, listIds, options = { headers: {} }) {
961
+ getContacts(limit, offset, modifiedSince, createdSince, sort, segmentId, listIds, filter, options = { headers: {} }) {
962
962
  return __awaiter(this, void 0, void 0, function* () {
963
963
  const localVarPath = this.basePath + '/contacts';
964
964
  let localVarQueryParameters = {};
@@ -992,6 +992,9 @@ class ContactsApi {
992
992
  if (listIds !== undefined) {
993
993
  localVarQueryParameters['listIds'] = models_1.ObjectSerializer.serialize(listIds, "Array<number>");
994
994
  }
995
+ if (filter !== undefined) {
996
+ localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(filter, "string");
997
+ }
995
998
  Object.assign(localVarHeaderParams, options.headers);
996
999
  let localVarUseFormData = false;
997
1000
  let localVarRequestOptions = {