sequenzy 2.1.84 → 2.1.90

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 (343) hide show
  1. package/dist/cjs/api/resources/accounts/client/Client.d.ts +1 -1
  2. package/dist/cjs/api/resources/accounts/client/Client.js +1 -1
  3. package/dist/cjs/api/resources/analytics/client/Client.d.ts +1 -1
  4. package/dist/cjs/api/resources/analytics/client/Client.js +5 -3
  5. package/dist/cjs/api/resources/analytics/client/requests/ListCampaignPollResponsesLegacyRequest.d.ts +2 -0
  6. package/dist/cjs/api/resources/analytics/client/requests/ListCampaignPollResponsesRequest.d.ts +2 -0
  7. package/dist/cjs/api/resources/campaigns/client/Client.js +2 -1
  8. package/dist/cjs/api/resources/campaigns/client/requests/ListCampaignsRequest.d.ts +2 -0
  9. package/dist/cjs/api/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +4 -0
  10. package/dist/cjs/api/resources/inApp/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/inApp/client/Client.js +1 -1
  12. package/dist/cjs/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +2 -0
  13. package/dist/cjs/api/resources/media/client/Client.d.ts +23 -0
  14. package/dist/cjs/api/resources/media/client/Client.js +90 -0
  15. package/dist/cjs/api/resources/media/client/requests/CropEmailImageRequest.d.ts +21 -0
  16. package/dist/cjs/api/resources/media/client/requests/CropEmailImageRequest.js +3 -0
  17. package/dist/cjs/api/resources/media/client/requests/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +4 -0
  19. package/dist/cjs/api/resources/media/types/CropEmailImageRequestAspectRatio.js +3 -0
  20. package/dist/cjs/api/resources/media/types/CropEmailImageRequestCrop.d.ts +9 -0
  21. package/dist/cjs/api/resources/media/types/CropEmailImageRequestCrop.js +3 -0
  22. package/dist/cjs/api/resources/media/types/CropEmailImageResponse.d.ts +12 -0
  23. package/dist/cjs/api/resources/media/types/CropEmailImageResponse.js +3 -0
  24. package/dist/cjs/api/resources/media/types/CropEmailImageResponseAsset.d.ts +15 -0
  25. package/dist/cjs/api/resources/media/types/CropEmailImageResponseAsset.js +3 -0
  26. package/dist/cjs/api/resources/media/types/CropEmailImageResponseCrop.d.ts +11 -0
  27. package/dist/cjs/api/resources/media/types/CropEmailImageResponseCrop.js +3 -0
  28. package/dist/cjs/api/resources/media/types/index.d.ts +5 -0
  29. package/dist/cjs/api/resources/media/types/index.js +5 -0
  30. package/dist/cjs/api/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
  31. package/dist/cjs/api/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
  32. package/dist/cjs/api/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +6 -0
  33. package/dist/cjs/api/resources/push/types/TranslatePushContentRequestPlatformsItem.js +9 -0
  34. package/dist/cjs/api/resources/push/types/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/push/types/index.js +1 -0
  36. package/dist/cjs/api/resources/segments/client/Client.d.ts +1 -1
  37. package/dist/cjs/api/resources/segments/client/Client.js +1 -1
  38. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponse.d.ts +9 -0
  39. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +4 -0
  40. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +3 -0
  41. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +7 -0
  42. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +3 -0
  43. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +4 -0
  44. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +3 -0
  45. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +8 -0
  46. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +3 -0
  47. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +6 -0
  48. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +9 -0
  49. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +8 -0
  50. package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +11 -0
  51. package/dist/cjs/api/resources/segments/types/index.d.ts +6 -0
  52. package/dist/cjs/api/resources/segments/types/index.js +6 -0
  53. package/dist/cjs/api/resources/sequences/client/Client.d.ts +2 -2
  54. package/dist/cjs/api/resources/sequences/client/Client.js +4 -3
  55. package/dist/cjs/api/resources/sequences/client/requests/ListSequencesRequest.d.ts +2 -0
  56. package/dist/cjs/api/resources/sequences/types/DeleteSequencesResponse.d.ts +5 -0
  57. package/dist/cjs/api/resources/sequences/types/DeleteSequencesResponse.js +3 -0
  58. package/dist/cjs/api/resources/sequences/types/ListSequencesResponsePagination.d.ts +4 -0
  59. package/dist/cjs/api/resources/sequences/types/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/sequences/types/index.js +1 -0
  61. package/dist/cjs/api/resources/subscribers/client/Client.d.ts +3 -3
  62. package/dist/cjs/api/resources/subscribers/client/Client.js +3 -3
  63. package/dist/cjs/api/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +3 -0
  64. package/dist/cjs/api/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +3 -0
  65. package/dist/cjs/api/resources/subscribers/resources/tags/client/Client.d.ts +3 -1
  66. package/dist/cjs/api/resources/subscribers/resources/tags/client/Client.js +7 -1
  67. package/dist/cjs/api/resources/subscribers/resources/tags/client/requests/RemoveTagsRequest.d.ts +3 -3
  68. package/dist/cjs/api/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +3 -0
  69. package/dist/cjs/api/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +2 -0
  70. package/dist/cjs/api/resources/subscribers/resources/tags/types/RemoveTagsResponseSubscriber.d.ts +1 -1
  71. package/dist/cjs/api/resources/subscribers/types/AddTagsBulkResponse.d.ts +3 -0
  72. package/dist/cjs/api/resources/subscribers/types/CreateSubscribersResponse.d.ts +3 -0
  73. package/dist/cjs/api/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +3 -0
  74. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +3 -0
  75. package/dist/cjs/api/resources/subscribers/types/UpdateSubscribersResponse.d.ts +3 -0
  76. package/dist/cjs/api/resources/templates/client/Client.js +2 -1
  77. package/dist/cjs/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +2 -0
  78. package/dist/cjs/api/resources/templates/types/ListTemplatesResponsePagination.d.ts +4 -0
  79. package/dist/cjs/api/types/OutboundWebhookEventType.d.ts +1 -0
  80. package/dist/cjs/api/types/OutboundWebhookEventType.js +1 -0
  81. package/dist/cjs/api/types/PollResponse.d.ts +6 -0
  82. package/dist/cjs/api/types/SequenceTriggerWarnings.d.ts +4 -0
  83. package/dist/cjs/api/types/SequenceTriggerWarnings.js +3 -0
  84. package/dist/cjs/api/types/SequenceTriggersRan.d.ts +4 -0
  85. package/dist/cjs/api/types/SequenceTriggersRan.js +3 -0
  86. package/dist/cjs/api/types/SequenceTriggersSkippedReason.d.ts +7 -0
  87. package/dist/cjs/api/types/SequenceTriggersSkippedReason.js +10 -0
  88. package/dist/cjs/api/types/index.d.ts +3 -0
  89. package/dist/cjs/api/types/index.js +3 -0
  90. package/dist/cjs/serialization/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +2 -0
  91. package/dist/cjs/serialization/resources/campaigns/types/ListCampaignsResponsePagination.js +2 -0
  92. package/dist/cjs/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +1 -0
  93. package/dist/cjs/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +1 -0
  94. package/dist/cjs/serialization/resources/media/client/requests/CropEmailImageRequest.d.ts +16 -0
  95. package/dist/cjs/serialization/resources/media/client/requests/CropEmailImageRequest.js +38 -0
  96. package/dist/cjs/serialization/resources/media/client/requests/index.d.ts +1 -0
  97. package/dist/cjs/serialization/resources/media/client/requests/index.js +3 -1
  98. package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +7 -0
  99. package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestAspectRatio.js +29 -0
  100. package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestCrop.d.ts +12 -0
  101. package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestCrop.js +34 -0
  102. package/dist/cjs/serialization/resources/media/types/CropEmailImageResponse.d.ts +15 -0
  103. package/dist/cjs/serialization/resources/media/types/CropEmailImageResponse.js +37 -0
  104. package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseAsset.d.ts +18 -0
  105. package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseAsset.js +40 -0
  106. package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseCrop.d.ts +14 -0
  107. package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseCrop.js +36 -0
  108. package/dist/cjs/serialization/resources/media/types/index.d.ts +5 -0
  109. package/dist/cjs/serialization/resources/media/types/index.js +5 -0
  110. package/dist/cjs/serialization/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
  111. package/dist/cjs/serialization/resources/push/client/requests/SendTestPushRequest.js +2 -0
  112. package/dist/cjs/serialization/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
  113. package/dist/cjs/serialization/resources/push/client/requests/TranslatePushContentRequest.js +2 -0
  114. package/dist/cjs/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +7 -0
  115. package/dist/cjs/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.js +29 -0
  116. package/dist/cjs/serialization/resources/push/types/index.d.ts +1 -0
  117. package/dist/cjs/serialization/resources/push/types/index.js +1 -0
  118. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponse.d.ts +8 -0
  119. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponse.js +8 -0
  120. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +10 -0
  121. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +32 -0
  122. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +12 -0
  123. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +34 -0
  124. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +10 -0
  125. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +32 -0
  126. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +14 -0
  127. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +36 -0
  128. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +7 -0
  129. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +29 -0
  130. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +7 -0
  131. package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +29 -0
  132. package/dist/cjs/serialization/resources/segments/types/index.d.ts +6 -0
  133. package/dist/cjs/serialization/resources/segments/types/index.js +6 -0
  134. package/dist/cjs/serialization/resources/sequences/types/DeleteSequencesResponse.d.ts +10 -0
  135. package/dist/cjs/serialization/resources/sequences/types/DeleteSequencesResponse.js +34 -0
  136. package/dist/cjs/serialization/resources/sequences/types/ListSequencesResponsePagination.d.ts +2 -0
  137. package/dist/cjs/serialization/resources/sequences/types/ListSequencesResponsePagination.js +2 -0
  138. package/dist/cjs/serialization/resources/sequences/types/index.d.ts +1 -0
  139. package/dist/cjs/serialization/resources/sequences/types/index.js +1 -0
  140. package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +6 -0
  141. package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.js +6 -0
  142. package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +6 -0
  143. package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.js +6 -0
  144. package/dist/cjs/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +6 -0
  145. package/dist/cjs/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.js +6 -0
  146. package/dist/cjs/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +1 -0
  147. package/dist/cjs/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.js +1 -0
  148. package/dist/cjs/serialization/resources/subscribers/types/AddTagsBulkResponse.d.ts +6 -0
  149. package/dist/cjs/serialization/resources/subscribers/types/AddTagsBulkResponse.js +6 -0
  150. package/dist/cjs/serialization/resources/subscribers/types/CreateSubscribersResponse.d.ts +6 -0
  151. package/dist/cjs/serialization/resources/subscribers/types/CreateSubscribersResponse.js +6 -0
  152. package/dist/cjs/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +6 -0
  153. package/dist/cjs/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.js +6 -0
  154. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +6 -0
  155. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.js +6 -0
  156. package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersResponse.d.ts +6 -0
  157. package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersResponse.js +6 -0
  158. package/dist/cjs/serialization/resources/templates/types/ListTemplatesResponsePagination.d.ts +2 -0
  159. package/dist/cjs/serialization/resources/templates/types/ListTemplatesResponsePagination.js +2 -0
  160. package/dist/cjs/serialization/types/OutboundWebhookEventType.d.ts +1 -1
  161. package/dist/cjs/serialization/types/OutboundWebhookEventType.js +1 -0
  162. package/dist/cjs/serialization/types/PollResponse.d.ts +3 -0
  163. package/dist/cjs/serialization/types/PollResponse.js +3 -0
  164. package/dist/cjs/serialization/types/SequenceTriggerWarnings.d.ts +7 -0
  165. package/dist/cjs/serialization/types/SequenceTriggerWarnings.js +29 -0
  166. package/dist/cjs/serialization/types/SequenceTriggersRan.d.ts +7 -0
  167. package/dist/cjs/serialization/types/SequenceTriggersRan.js +29 -0
  168. package/dist/cjs/serialization/types/SequenceTriggersSkippedReason.d.ts +7 -0
  169. package/dist/cjs/serialization/types/SequenceTriggersSkippedReason.js +29 -0
  170. package/dist/cjs/serialization/types/index.d.ts +3 -0
  171. package/dist/cjs/serialization/types/index.js +3 -0
  172. package/dist/esm/api/resources/accounts/client/Client.d.ts +1 -1
  173. package/dist/esm/api/resources/accounts/client/Client.js +1 -1
  174. package/dist/esm/api/resources/analytics/client/Client.d.ts +1 -1
  175. package/dist/esm/api/resources/analytics/client/Client.js +5 -3
  176. package/dist/esm/api/resources/analytics/client/requests/ListCampaignPollResponsesLegacyRequest.d.ts +2 -0
  177. package/dist/esm/api/resources/analytics/client/requests/ListCampaignPollResponsesRequest.d.ts +2 -0
  178. package/dist/esm/api/resources/campaigns/client/Client.js +2 -1
  179. package/dist/esm/api/resources/campaigns/client/requests/ListCampaignsRequest.d.ts +2 -0
  180. package/dist/esm/api/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +4 -0
  181. package/dist/esm/api/resources/inApp/client/Client.d.ts +1 -1
  182. package/dist/esm/api/resources/inApp/client/Client.js +1 -1
  183. package/dist/esm/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +2 -0
  184. package/dist/esm/api/resources/media/client/Client.d.ts +23 -0
  185. package/dist/esm/api/resources/media/client/Client.js +90 -0
  186. package/dist/esm/api/resources/media/client/requests/CropEmailImageRequest.d.ts +21 -0
  187. package/dist/esm/api/resources/media/client/requests/CropEmailImageRequest.js +2 -0
  188. package/dist/esm/api/resources/media/client/requests/index.d.ts +1 -0
  189. package/dist/esm/api/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +4 -0
  190. package/dist/esm/api/resources/media/types/CropEmailImageRequestAspectRatio.js +2 -0
  191. package/dist/esm/api/resources/media/types/CropEmailImageRequestCrop.d.ts +9 -0
  192. package/dist/esm/api/resources/media/types/CropEmailImageRequestCrop.js +2 -0
  193. package/dist/esm/api/resources/media/types/CropEmailImageResponse.d.ts +12 -0
  194. package/dist/esm/api/resources/media/types/CropEmailImageResponse.js +2 -0
  195. package/dist/esm/api/resources/media/types/CropEmailImageResponseAsset.d.ts +15 -0
  196. package/dist/esm/api/resources/media/types/CropEmailImageResponseAsset.js +2 -0
  197. package/dist/esm/api/resources/media/types/CropEmailImageResponseCrop.d.ts +11 -0
  198. package/dist/esm/api/resources/media/types/CropEmailImageResponseCrop.js +2 -0
  199. package/dist/esm/api/resources/media/types/index.d.ts +5 -0
  200. package/dist/esm/api/resources/media/types/index.js +5 -0
  201. package/dist/esm/api/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
  202. package/dist/esm/api/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
  203. package/dist/esm/api/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +6 -0
  204. package/dist/esm/api/resources/push/types/TranslatePushContentRequestPlatformsItem.js +6 -0
  205. package/dist/esm/api/resources/push/types/index.d.ts +1 -0
  206. package/dist/esm/api/resources/push/types/index.js +1 -0
  207. package/dist/esm/api/resources/segments/client/Client.d.ts +1 -1
  208. package/dist/esm/api/resources/segments/client/Client.js +1 -1
  209. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponse.d.ts +9 -0
  210. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +4 -0
  211. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +2 -0
  212. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +7 -0
  213. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +2 -0
  214. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +4 -0
  215. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +2 -0
  216. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +8 -0
  217. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +2 -0
  218. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +6 -0
  219. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +6 -0
  220. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +8 -0
  221. package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +8 -0
  222. package/dist/esm/api/resources/segments/types/index.d.ts +6 -0
  223. package/dist/esm/api/resources/segments/types/index.js +6 -0
  224. package/dist/esm/api/resources/sequences/client/Client.d.ts +2 -2
  225. package/dist/esm/api/resources/sequences/client/Client.js +4 -3
  226. package/dist/esm/api/resources/sequences/client/requests/ListSequencesRequest.d.ts +2 -0
  227. package/dist/esm/api/resources/sequences/types/DeleteSequencesResponse.d.ts +5 -0
  228. package/dist/esm/api/resources/sequences/types/DeleteSequencesResponse.js +2 -0
  229. package/dist/esm/api/resources/sequences/types/ListSequencesResponsePagination.d.ts +4 -0
  230. package/dist/esm/api/resources/sequences/types/index.d.ts +1 -0
  231. package/dist/esm/api/resources/sequences/types/index.js +1 -0
  232. package/dist/esm/api/resources/subscribers/client/Client.d.ts +3 -3
  233. package/dist/esm/api/resources/subscribers/client/Client.js +3 -3
  234. package/dist/esm/api/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +3 -0
  235. package/dist/esm/api/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +3 -0
  236. package/dist/esm/api/resources/subscribers/resources/tags/client/Client.d.ts +3 -1
  237. package/dist/esm/api/resources/subscribers/resources/tags/client/Client.js +7 -1
  238. package/dist/esm/api/resources/subscribers/resources/tags/client/requests/RemoveTagsRequest.d.ts +3 -3
  239. package/dist/esm/api/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +3 -0
  240. package/dist/esm/api/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +2 -0
  241. package/dist/esm/api/resources/subscribers/resources/tags/types/RemoveTagsResponseSubscriber.d.ts +1 -1
  242. package/dist/esm/api/resources/subscribers/types/AddTagsBulkResponse.d.ts +3 -0
  243. package/dist/esm/api/resources/subscribers/types/CreateSubscribersResponse.d.ts +3 -0
  244. package/dist/esm/api/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +3 -0
  245. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +3 -0
  246. package/dist/esm/api/resources/subscribers/types/UpdateSubscribersResponse.d.ts +3 -0
  247. package/dist/esm/api/resources/templates/client/Client.js +2 -1
  248. package/dist/esm/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +2 -0
  249. package/dist/esm/api/resources/templates/types/ListTemplatesResponsePagination.d.ts +4 -0
  250. package/dist/esm/api/types/OutboundWebhookEventType.d.ts +1 -0
  251. package/dist/esm/api/types/OutboundWebhookEventType.js +1 -0
  252. package/dist/esm/api/types/PollResponse.d.ts +6 -0
  253. package/dist/esm/api/types/SequenceTriggerWarnings.d.ts +4 -0
  254. package/dist/esm/api/types/SequenceTriggerWarnings.js +2 -0
  255. package/dist/esm/api/types/SequenceTriggersRan.d.ts +4 -0
  256. package/dist/esm/api/types/SequenceTriggersRan.js +2 -0
  257. package/dist/esm/api/types/SequenceTriggersSkippedReason.d.ts +7 -0
  258. package/dist/esm/api/types/SequenceTriggersSkippedReason.js +7 -0
  259. package/dist/esm/api/types/index.d.ts +3 -0
  260. package/dist/esm/api/types/index.js +3 -0
  261. package/dist/esm/serialization/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +2 -0
  262. package/dist/esm/serialization/resources/campaigns/types/ListCampaignsResponsePagination.js +2 -0
  263. package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +1 -0
  264. package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +1 -0
  265. package/dist/esm/serialization/resources/media/client/requests/CropEmailImageRequest.d.ts +16 -0
  266. package/dist/esm/serialization/resources/media/client/requests/CropEmailImageRequest.js +12 -0
  267. package/dist/esm/serialization/resources/media/client/requests/index.d.ts +1 -0
  268. package/dist/esm/serialization/resources/media/client/requests/index.js +1 -0
  269. package/dist/esm/serialization/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +7 -0
  270. package/dist/esm/serialization/resources/media/types/CropEmailImageRequestAspectRatio.js +3 -0
  271. package/dist/esm/serialization/resources/media/types/CropEmailImageRequestCrop.d.ts +12 -0
  272. package/dist/esm/serialization/resources/media/types/CropEmailImageRequestCrop.js +8 -0
  273. package/dist/esm/serialization/resources/media/types/CropEmailImageResponse.d.ts +15 -0
  274. package/dist/esm/serialization/resources/media/types/CropEmailImageResponse.js +11 -0
  275. package/dist/esm/serialization/resources/media/types/CropEmailImageResponseAsset.d.ts +18 -0
  276. package/dist/esm/serialization/resources/media/types/CropEmailImageResponseAsset.js +14 -0
  277. package/dist/esm/serialization/resources/media/types/CropEmailImageResponseCrop.d.ts +14 -0
  278. package/dist/esm/serialization/resources/media/types/CropEmailImageResponseCrop.js +10 -0
  279. package/dist/esm/serialization/resources/media/types/index.d.ts +5 -0
  280. package/dist/esm/serialization/resources/media/types/index.js +5 -0
  281. package/dist/esm/serialization/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
  282. package/dist/esm/serialization/resources/push/client/requests/SendTestPushRequest.js +2 -0
  283. package/dist/esm/serialization/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
  284. package/dist/esm/serialization/resources/push/client/requests/TranslatePushContentRequest.js +2 -0
  285. package/dist/esm/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +7 -0
  286. package/dist/esm/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.js +3 -0
  287. package/dist/esm/serialization/resources/push/types/index.d.ts +1 -0
  288. package/dist/esm/serialization/resources/push/types/index.js +1 -0
  289. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponse.d.ts +8 -0
  290. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponse.js +8 -0
  291. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +10 -0
  292. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +6 -0
  293. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +12 -0
  294. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +8 -0
  295. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +10 -0
  296. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +6 -0
  297. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +14 -0
  298. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +10 -0
  299. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +7 -0
  300. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +3 -0
  301. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +7 -0
  302. package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +3 -0
  303. package/dist/esm/serialization/resources/segments/types/index.d.ts +6 -0
  304. package/dist/esm/serialization/resources/segments/types/index.js +6 -0
  305. package/dist/esm/serialization/resources/sequences/types/DeleteSequencesResponse.d.ts +10 -0
  306. package/dist/esm/serialization/resources/sequences/types/DeleteSequencesResponse.js +8 -0
  307. package/dist/esm/serialization/resources/sequences/types/ListSequencesResponsePagination.d.ts +2 -0
  308. package/dist/esm/serialization/resources/sequences/types/ListSequencesResponsePagination.js +2 -0
  309. package/dist/esm/serialization/resources/sequences/types/index.d.ts +1 -0
  310. package/dist/esm/serialization/resources/sequences/types/index.js +1 -0
  311. package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +6 -0
  312. package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.js +6 -0
  313. package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +6 -0
  314. package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.js +6 -0
  315. package/dist/esm/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +6 -0
  316. package/dist/esm/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.js +6 -0
  317. package/dist/esm/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +1 -0
  318. package/dist/esm/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.js +1 -0
  319. package/dist/esm/serialization/resources/subscribers/types/AddTagsBulkResponse.d.ts +6 -0
  320. package/dist/esm/serialization/resources/subscribers/types/AddTagsBulkResponse.js +6 -0
  321. package/dist/esm/serialization/resources/subscribers/types/CreateSubscribersResponse.d.ts +6 -0
  322. package/dist/esm/serialization/resources/subscribers/types/CreateSubscribersResponse.js +6 -0
  323. package/dist/esm/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +6 -0
  324. package/dist/esm/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.js +6 -0
  325. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +6 -0
  326. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.js +6 -0
  327. package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersResponse.d.ts +6 -0
  328. package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersResponse.js +6 -0
  329. package/dist/esm/serialization/resources/templates/types/ListTemplatesResponsePagination.d.ts +2 -0
  330. package/dist/esm/serialization/resources/templates/types/ListTemplatesResponsePagination.js +2 -0
  331. package/dist/esm/serialization/types/OutboundWebhookEventType.d.ts +1 -1
  332. package/dist/esm/serialization/types/OutboundWebhookEventType.js +1 -0
  333. package/dist/esm/serialization/types/PollResponse.d.ts +3 -0
  334. package/dist/esm/serialization/types/PollResponse.js +3 -0
  335. package/dist/esm/serialization/types/SequenceTriggerWarnings.d.ts +7 -0
  336. package/dist/esm/serialization/types/SequenceTriggerWarnings.js +3 -0
  337. package/dist/esm/serialization/types/SequenceTriggersRan.d.ts +7 -0
  338. package/dist/esm/serialization/types/SequenceTriggersRan.js +3 -0
  339. package/dist/esm/serialization/types/SequenceTriggersSkippedReason.d.ts +7 -0
  340. package/dist/esm/serialization/types/SequenceTriggersSkippedReason.js +3 -0
  341. package/dist/esm/serialization/types/index.d.ts +3 -0
  342. package/dist/esm/serialization/types/index.js +3 -0
  343. package/package.json +1 -1
@@ -74,7 +74,7 @@ export declare class AccountsClient {
74
74
  createFromOrganizationId(request: Sequenzy.AccountOrganizationIdKey, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.CreateFromOrganizationIdAccountsResponse>;
75
75
  private __createFromOrganizationId;
76
76
  /**
77
- * Deletes the account and its memberships. Contacts are kept; their `account.*` attributes are cleared.
77
+ * Deletes one customer organization (a B2B account your contacts belong to, shown under Subscribers > Organizations) and its memberships. Contacts are kept; their `organization.*` attributes (and the older `account.*` alias) are cleared or replaced by another organization they belong to. Never deletes your Sequenzy account, workspace, login or API keys.
78
78
  *
79
79
  * @param {Sequenzy.DeleteAccountsRequest} request
80
80
  * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -268,7 +268,7 @@ class AccountsClient {
268
268
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/account-suggestions/organization-ids");
269
269
  }
270
270
  /**
271
- * Deletes the account and its memberships. Contacts are kept; their `account.*` attributes are cleared.
271
+ * Deletes one customer organization (a B2B account your contacts belong to, shown under Subscribers > Organizations) and its memberships. Contacts are kept; their `organization.*` attributes (and the older `account.*` alias) are cleared or replaced by another organization they belong to. Never deletes your Sequenzy account, workspace, login or API keys.
272
272
  *
273
273
  * @param {Sequenzy.DeleteAccountsRequest} request
274
274
  * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -258,7 +258,7 @@ export declare class AnalyticsClient {
258
258
  listCampaignEvents(request: Sequenzy.ListCampaignEventsRequest, requestOptions?: AnalyticsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListCampaignEventsResponse>;
259
259
  private __listCampaignEvents;
260
260
  /**
261
- * Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
261
+ * Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. Each row also carries the respondent's latest comment from the poll's confirmation page; pass `hasComment=true` to list only respondents who commented, newest comment first. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
262
262
  *
263
263
  * @param {Sequenzy.ListCampaignPollResponsesRequest} request
264
264
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1188,7 +1188,7 @@ class AnalyticsClient {
1188
1188
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/metrics/campaigns/{campaignId}/events");
1189
1189
  }
1190
1190
  /**
1191
- * Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
1191
+ * Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. Each row also carries the respondent's latest comment from the poll's confirmation page; pass `hasComment=true` to list only respondents who commented, newest comment first. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
1192
1192
  *
1193
1193
  * @param {Sequenzy.ListCampaignPollResponsesRequest} request
1194
1194
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1209,9 +1209,10 @@ class AnalyticsClient {
1209
1209
  return core.HttpResponsePromise.fromPromise(this.__listCampaignPollResponses(request, requestOptions));
1210
1210
  }
1211
1211
  async __listCampaignPollResponses(request, requestOptions) {
1212
- const { campaignId, blockId, limit, page } = request;
1212
+ const { campaignId, blockId, hasComment, limit, page } = request;
1213
1213
  const _queryParams = {
1214
1214
  blockId,
1215
+ hasComment,
1215
1216
  limit,
1216
1217
  page,
1217
1218
  };
@@ -1288,9 +1289,10 @@ class AnalyticsClient {
1288
1289
  return core.HttpResponsePromise.fromPromise(this.__listCampaignPollResponsesLegacy(request, requestOptions));
1289
1290
  }
1290
1291
  async __listCampaignPollResponsesLegacy(request, requestOptions) {
1291
- const { campaignId, blockId, limit, page } = request;
1292
+ const { campaignId, blockId, hasComment, limit, page } = request;
1292
1293
  const _queryParams = {
1293
1294
  blockId,
1295
+ hasComment,
1294
1296
  limit,
1295
1297
  page,
1296
1298
  };
@@ -9,6 +9,8 @@ export interface ListCampaignPollResponsesLegacyRequest {
9
9
  campaignId: string;
10
10
  /** Restrict results to one poll block. */
11
11
  blockId?: string;
12
+ /** Pass `true` to list only respondents who left a comment, newest comment first. */
13
+ hasComment?: boolean;
12
14
  /** Responses per page (max 500) */
13
15
  limit?: number;
14
16
  /** Page number */
@@ -9,6 +9,8 @@ export interface ListCampaignPollResponsesRequest {
9
9
  campaignId: string;
10
10
  /** Restrict results to one poll block. Block IDs come from the `polls` array of the campaign metrics endpoint. */
11
11
  blockId?: string;
12
+ /** Pass `true` to list only respondents who left a comment, newest comment first. */
13
+ hasComment?: boolean;
12
14
  /** Responses per page (max 500) */
13
15
  limit?: number;
14
16
  /** Page number */
@@ -1325,11 +1325,12 @@ class CampaignsClient {
1325
1325
  return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
1326
1326
  }
1327
1327
  async __list(request = {}, requestOptions) {
1328
- const { label, limit, offset, status } = request;
1328
+ const { label, limit, offset, page, status } = request;
1329
1329
  const _queryParams = {
1330
1330
  label,
1331
1331
  limit,
1332
1332
  offset,
1333
+ page,
1333
1334
  status: status != null
1334
1335
  ? serializers.ListCampaignsRequestStatus.jsonOrThrow(status, {
1335
1336
  unrecognizedObjectKeys: "strip",
@@ -10,6 +10,8 @@ export interface ListCampaignsRequest {
10
10
  limit?: number;
11
11
  /** Optional zero-based row offset. */
12
12
  offset?: number;
13
+ /** Optional 1-based page number, used when offset is absent: page=N starts at row (N - 1) * limit. An explicit offset takes precedence; a malformed page is ignored. */
14
+ page?: number;
13
15
  /** Optional campaign status filter. */
14
16
  status?: Sequenzy.ListCampaignsRequestStatus;
15
17
  }
@@ -3,5 +3,9 @@ export interface ListCampaignsResponsePagination {
3
3
  hasMore?: boolean;
4
4
  limit?: number;
5
5
  offset?: number;
6
+ /** 1-based page that starts at offset. */
7
+ page?: number;
6
8
  total?: number;
9
+ /** Pages at this limit. */
10
+ totalPages?: number;
7
11
  }
@@ -114,7 +114,7 @@ export declare class InAppClient {
114
114
  duplicateInAppCampaign(request: Sequenzy.DuplicateInAppCampaignRequest, requestOptions?: InAppClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DuplicateInAppCampaignResponse>;
115
115
  private __duplicateInAppCampaign;
116
116
  /**
117
- * Counts the contacts who match an audience now. Contacts who join the audience while the campaign is live get it too. Requires the campaigns:read scope.
117
+ * Counts the contacts who match an audience now, and how many of them are known to have your app connected. Contacts who join the audience while the campaign is live get it too. Requires the campaigns:read scope.
118
118
  *
119
119
  * @param {Sequenzy.EstimateInAppCampaignRecipientsRequest} request
120
120
  * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -412,7 +412,7 @@ class InAppClient {
412
412
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/in-app/campaigns/{campaignId}/duplicate");
413
413
  }
414
414
  /**
415
- * Counts the contacts who match an audience now. Contacts who join the audience while the campaign is live get it too. Requires the campaigns:read scope.
415
+ * Counts the contacts who match an audience now, and how many of them are known to have your app connected. Contacts who join the audience while the campaign is live get it too. Requires the campaigns:read scope.
416
416
  *
417
417
  * @param {Sequenzy.EstimateInAppCampaignRecipientsRequest} request
418
418
  * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,4 +1,6 @@
1
1
  export interface EstimateInAppCampaignRecipientsResponse {
2
+ /** Contacts in the audience known to have your app connected, from an active iOS or Android device or an in-app message their app displayed. A lower bound; everyone in the audience gets the campaign the next time their app fetches the feed. */
3
+ appUserCount?: number;
2
4
  audienceCount?: number;
3
5
  success?: boolean;
4
6
  }
@@ -55,6 +55,29 @@ export declare class MediaClient {
55
55
  */
56
56
  createEmailImageUploadUrl(request: Sequenzy.CreateEmailImageUploadUrlRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Sequenzy.CreateEmailImageUploadUrlResponse>;
57
57
  private __createEmailImageUploadUrl;
58
+ /**
59
+ * Crops a media-library image, or a Pexels or Unsplash photo, into a new hosted image in the company's media library. The crop is baked into the file, so every email client shows exactly the selected area. Pass either crop or aspectRatio. The original is kept. Requests are idempotent: the same source and pixel area return the same asset. Requires emails:write.
60
+ *
61
+ * @param {Sequenzy.CropEmailImageRequest} request
62
+ * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Sequenzy.BadRequestError}
65
+ * @throws {@link Sequenzy.UnauthorizedError}
66
+ * @throws {@link Sequenzy.ForbiddenError}
67
+ * @throws {@link Sequenzy.NotFoundError}
68
+ * @throws {@link Sequenzy.ContentTooLargeError}
69
+ * @throws {@link Sequenzy.UnprocessableEntityError}
70
+ * @throws {@link Sequenzy.ServiceUnavailableError}
71
+ * @throws {@link errors.SequenzyError}
72
+ * @throws {@link errors.SequenzyTimeoutError}
73
+ *
74
+ * @example
75
+ * await client.media.cropEmailImage({
76
+ * sourceUrl: "sourceUrl"
77
+ * })
78
+ */
79
+ cropEmailImage(request: Sequenzy.CropEmailImageRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Sequenzy.CropEmailImageResponse>;
80
+ private __cropEmailImage;
58
81
  /**
59
82
  * Uploads the exact bytes to the authenticated URL returned by POST /media/upload-url. The server enforces the requested size, verifies the file signature, and creates the public object only once.
60
83
  *
@@ -191,6 +191,96 @@ class MediaClient {
191
191
  }
192
192
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/media/upload-url");
193
193
  }
194
+ /**
195
+ * Crops a media-library image, or a Pexels or Unsplash photo, into a new hosted image in the company's media library. The crop is baked into the file, so every email client shows exactly the selected area. Pass either crop or aspectRatio. The original is kept. Requests are idempotent: the same source and pixel area return the same asset. Requires emails:write.
196
+ *
197
+ * @param {Sequenzy.CropEmailImageRequest} request
198
+ * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
199
+ *
200
+ * @throws {@link Sequenzy.BadRequestError}
201
+ * @throws {@link Sequenzy.UnauthorizedError}
202
+ * @throws {@link Sequenzy.ForbiddenError}
203
+ * @throws {@link Sequenzy.NotFoundError}
204
+ * @throws {@link Sequenzy.ContentTooLargeError}
205
+ * @throws {@link Sequenzy.UnprocessableEntityError}
206
+ * @throws {@link Sequenzy.ServiceUnavailableError}
207
+ * @throws {@link errors.SequenzyError}
208
+ * @throws {@link errors.SequenzyTimeoutError}
209
+ *
210
+ * @example
211
+ * await client.media.cropEmailImage({
212
+ * sourceUrl: "sourceUrl"
213
+ * })
214
+ */
215
+ cropEmailImage(request, requestOptions) {
216
+ return core.HttpResponsePromise.fromPromise(this.__cropEmailImage(request, requestOptions));
217
+ }
218
+ async __cropEmailImage(request, requestOptions) {
219
+ const _authRequest = await this._options.authProvider.getAuthRequest();
220
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
221
+ const _response = await core.fetcher({
222
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
223
+ (await core.Supplier.get(this._options.environment)) ??
224
+ environments.SequenzyEnvironment.Default, "media/crop"),
225
+ method: "POST",
226
+ headers: _headers,
227
+ contentType: "application/json",
228
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
229
+ requestType: "json",
230
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.CropEmailImageRequest.jsonOrThrow(request, {
231
+ unrecognizedObjectKeys: "strip",
232
+ omitUndefined: true,
233
+ }), requestOptions?.additionalBodyParameters),
234
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
235
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
236
+ abortSignal: requestOptions?.abortSignal,
237
+ fetchFn: this._options?.fetch,
238
+ logging: this._options.logging,
239
+ });
240
+ if (_response.ok) {
241
+ return {
242
+ data: serializers.CropEmailImageResponse.parseOrThrow(_response.body, {
243
+ unrecognizedObjectKeys: "passthrough",
244
+ allowUnrecognizedUnionMembers: true,
245
+ allowUnrecognizedEnumValues: true,
246
+ skipValidation: true,
247
+ breadcrumbsPrefix: ["response"],
248
+ }),
249
+ rawResponse: _response.rawResponse,
250
+ };
251
+ }
252
+ if (_response.error.reason === "status-code") {
253
+ switch (_response.error.statusCode) {
254
+ case 400:
255
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
256
+ case 401:
257
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
258
+ case 403:
259
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
260
+ case 404:
261
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
262
+ case 413:
263
+ throw new Sequenzy.ContentTooLargeError(serializers.Error_.parseOrThrow(_response.error.body, {
264
+ unrecognizedObjectKeys: "passthrough",
265
+ allowUnrecognizedUnionMembers: true,
266
+ allowUnrecognizedEnumValues: true,
267
+ skipValidation: true,
268
+ breadcrumbsPrefix: ["response"],
269
+ }), _response.rawResponse);
270
+ case 422:
271
+ throw new Sequenzy.UnprocessableEntityError(_response.error.body, _response.rawResponse);
272
+ case 503:
273
+ throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
274
+ default:
275
+ throw new errors.SequenzyError({
276
+ statusCode: _response.error.statusCode,
277
+ body: _response.error.body,
278
+ rawResponse: _response.rawResponse,
279
+ });
280
+ }
281
+ }
282
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/media/crop");
283
+ }
194
284
  /**
195
285
  * Uploads the exact bytes to the authenticated URL returned by POST /media/upload-url. The server enforces the requested size, verifies the file signature, and creates the public object only once.
196
286
  *
@@ -0,0 +1,21 @@
1
+ import type * as Sequenzy from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * sourceUrl: "sourceUrl"
6
+ * }
7
+ */
8
+ export interface CropEmailImageRequest {
9
+ /** Stored on the new asset; longer text is cut at 500 characters. Defaults to the generated file name. A repeated crop keeps the first request's alt text. */
10
+ altText?: string;
11
+ /** Width / height as a number or "W:H" string, between 1:10 and 10:1. Crops the largest area of that shape. Mutually exclusive with crop. */
12
+ aspectRatio?: Sequenzy.CropEmailImageRequestAspectRatio;
13
+ /** Area to keep, as fractions of the upright (EXIF-oriented) image. Must stay inside the image. Mutually exclusive with aspectRatio. */
14
+ crop?: Sequenzy.CropEmailImageRequestCrop;
15
+ /** With aspectRatio only. Horizontal center of the crop. Defaults to 0.5. */
16
+ focusX?: number;
17
+ /** With aspectRatio only. Vertical center of the crop. Defaults to 0.5. */
18
+ focusY?: number;
19
+ /** Hosted URL of the original image: a media-library URL or a Pexels/Unsplash photo. Merge tags and other hosts are rejected. */
20
+ sourceUrl: string;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export type { CompleteEmailImageUploadRequest } from "./CompleteEmailImageUploadRequest.js";
2
2
  export type { CreateEmailImageUploadUrlRequest } from "./CreateEmailImageUploadUrlRequest.js";
3
+ export type { CropEmailImageRequest } from "./CropEmailImageRequest.js";
3
4
  export type { UploadEmailImageBytesRequest } from "./UploadEmailImageBytesRequest.js";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Width / height as a number or "W:H" string, between 1:10 and 10:1. Crops the largest area of that shape. Mutually exclusive with crop.
3
+ */
4
+ export type CropEmailImageRequestAspectRatio = number | string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Area to keep, as fractions of the upright (EXIF-oriented) image. Must stay inside the image. Mutually exclusive with aspectRatio.
3
+ */
4
+ export interface CropEmailImageRequestCrop {
5
+ height: number;
6
+ width: number;
7
+ x: number;
8
+ y: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as Sequenzy from "../../../index.js";
2
+ export interface CropEmailImageResponse {
3
+ /** The new media-library asset holding the cropped image. */
4
+ asset?: Sequenzy.CropEmailImageResponseAsset;
5
+ /** Crop record to store on the image block next to src, so the editor can re-open or undo the crop. x, y, width and height are snapped to whole source pixels. */
6
+ crop?: Sequenzy.CropEmailImageResponseCrop;
7
+ /** Upright height of the original in pixels. */
8
+ sourceHeight?: number;
9
+ /** Upright width of the original in pixels. */
10
+ sourceWidth?: number;
11
+ success?: boolean;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The new media-library asset holding the cropped image.
3
+ */
4
+ export interface CropEmailImageResponseAsset {
5
+ altText?: string | null;
6
+ companyId?: string;
7
+ createdAt?: Date;
8
+ filename?: string;
9
+ height?: string | null;
10
+ id?: string;
11
+ mimeType?: string;
12
+ size?: string;
13
+ url?: string;
14
+ width?: string | null;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Crop record to store on the image block next to src, so the editor can re-open or undo the crop. x, y, width and height are snapped to whole source pixels.
3
+ */
4
+ export interface CropEmailImageResponseCrop {
5
+ croppedSrc?: string;
6
+ height?: number;
7
+ sourceSrc?: string;
8
+ width?: number;
9
+ x?: number;
10
+ y?: number;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,9 @@
1
1
  export * from "./CompleteEmailImageUploadResponse.js";
2
2
  export * from "./CompleteEmailImageUploadResponseAsset.js";
3
3
  export * from "./CreateEmailImageUploadUrlResponse.js";
4
+ export * from "./CropEmailImageRequestAspectRatio.js";
5
+ export * from "./CropEmailImageRequestCrop.js";
6
+ export * from "./CropEmailImageResponse.js";
7
+ export * from "./CropEmailImageResponseAsset.js";
8
+ export * from "./CropEmailImageResponseCrop.js";
4
9
  export * from "./UploadEmailImageBytesResponse.js";
@@ -17,4 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CompleteEmailImageUploadResponse.js"), exports);
18
18
  __exportStar(require("./CompleteEmailImageUploadResponseAsset.js"), exports);
19
19
  __exportStar(require("./CreateEmailImageUploadUrlResponse.js"), exports);
20
+ __exportStar(require("./CropEmailImageRequestAspectRatio.js"), exports);
21
+ __exportStar(require("./CropEmailImageRequestCrop.js"), exports);
22
+ __exportStar(require("./CropEmailImageResponse.js"), exports);
23
+ __exportStar(require("./CropEmailImageResponseAsset.js"), exports);
24
+ __exportStar(require("./CropEmailImageResponseCrop.js"), exports);
20
25
  __exportStar(require("./UploadEmailImageBytesResponse.js"), exports);
@@ -14,6 +14,8 @@ export interface SendTestPushRequest {
14
14
  iconUrl?: string | null;
15
15
  /** Optional https image shown in the notification. */
16
16
  imageUrl?: string | null;
17
+ /** Accepted so a campaign body can be sent as is, but not used. A test always sends the title and body given here. */
18
+ localizations?: Sequenzy.PushLocalizationList;
17
19
  /** Limit delivery to these platforms. Omit or pass an empty array for every platform. */
18
20
  platforms?: Sequenzy.SendTestPushRequestPlatformsItem[];
19
21
  /** Notify every active device of this subscriber. */
@@ -11,6 +11,8 @@ export interface TranslatePushContentRequest {
11
11
  localizations?: Sequenzy.PushLocalizationList;
12
12
  /** Retranslate versions a person wrote too. */
13
13
  overwrite?: boolean;
14
+ /** Accepted so a campaign body can be sent as is, but not used. Translation does not depend on the platform. */
15
+ platforms?: Sequenzy.TranslatePushContentRequestPlatformsItem[];
14
16
  /** Main-language title. A title or a body is required. */
15
17
  title?: string;
16
18
  }
@@ -0,0 +1,6 @@
1
+ export declare const TranslatePushContentRequestPlatformsItem: {
2
+ readonly Web: "web";
3
+ readonly Ios: "ios";
4
+ readonly Android: "android";
5
+ };
6
+ export type TranslatePushContentRequestPlatformsItem = (typeof TranslatePushContentRequestPlatformsItem)[keyof typeof TranslatePushContentRequestPlatformsItem];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TranslatePushContentRequestPlatformsItem = void 0;
5
+ exports.TranslatePushContentRequestPlatformsItem = {
6
+ Web: "web",
7
+ Ios: "ios",
8
+ Android: "android",
9
+ };
@@ -43,6 +43,7 @@ export * from "./SetApnsCredentialsResponse.js";
43
43
  export * from "./SetFcmCredentialsRequestServiceAccount.js";
44
44
  export * from "./SetFcmCredentialsResponse.js";
45
45
  export * from "./TranslatePushCampaignResponse.js";
46
+ export * from "./TranslatePushContentRequestPlatformsItem.js";
46
47
  export * from "./TranslatePushContentResponse.js";
47
48
  export * from "./UnschedulePushCampaignResponse.js";
48
49
  export * from "./UpdateLiveActivityRequestPriority.js";
@@ -59,6 +59,7 @@ __exportStar(require("./SetApnsCredentialsResponse.js"), exports);
59
59
  __exportStar(require("./SetFcmCredentialsRequestServiceAccount.js"), exports);
60
60
  __exportStar(require("./SetFcmCredentialsResponse.js"), exports);
61
61
  __exportStar(require("./TranslatePushCampaignResponse.js"), exports);
62
+ __exportStar(require("./TranslatePushContentRequestPlatformsItem.js"), exports);
62
63
  __exportStar(require("./TranslatePushContentResponse.js"), exports);
63
64
  __exportStar(require("./UnschedulePushCampaignResponse.js"), exports);
64
65
  __exportStar(require("./UpdateLiveActivityRequestPriority.js"), exports);
@@ -30,7 +30,7 @@ export declare class SegmentsClient {
30
30
  create(request: Sequenzy.CreateSegmentsRequest, requestOptions?: SegmentsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.CreateSegmentsResponse>;
31
31
  private __create;
32
32
  /**
33
- * Deletes a saved segment. Subscribers matched by the segment are not affected.
33
+ * Deletes a saved segment. Subscribers matched by the segment are not affected. Deleting is not blocked when the segment is in use; the response lists what read it, and those now treat every contact as not in the segment. Draft campaigns and conditions inside email content are not checked. If the usage check fails, the segment is still deleted and the four affected fields are omitted, which means usage is unknown.
34
34
  *
35
35
  * @param {Sequenzy.DeleteSegmentsRequest} request
36
36
  * @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -111,7 +111,7 @@ class SegmentsClient {
111
111
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/segments");
112
112
  }
113
113
  /**
114
- * Deletes a saved segment. Subscribers matched by the segment are not affected.
114
+ * Deletes a saved segment. Subscribers matched by the segment are not affected. Deleting is not blocked when the segment is in use; the response lists what read it, and those now treat every contact as not in the segment. Draft campaigns and conditions inside email content are not checked. If the usage check fails, the segment is still deleted and the four affected fields are omitted, which means usage is unknown.
115
115
  *
116
116
  * @param {Sequenzy.DeleteSegmentsRequest} request
117
117
  * @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,3 +1,12 @@
1
+ import type * as Sequenzy from "../../../index.js";
1
2
  export interface DeleteSegmentsResponse {
3
+ /** Ad audience syncs that pushed the segment's members. */
4
+ affectedAudienceSyncs?: Sequenzy.DeleteSegmentsResponseAffectedAudienceSyncsItem[];
5
+ /** Campaigns that still read the segment and targeted or excluded it. Unsent campaigns (scheduled, waiting approval, sending or paused) and live in-app campaigns (status sent, type in_app, not yet ended). */
6
+ affectedCampaigns?: Sequenzy.DeleteSegmentsResponseAffectedCampaignsItem[];
7
+ /** Other segments whose rules referenced the deleted segment. */
8
+ affectedSegments?: Sequenzy.DeleteSegmentsResponseAffectedSegmentsItem[];
9
+ /** Sequences (not archived) that read the deleted segment. */
10
+ affectedSequences?: Sequenzy.DeleteSegmentsResponseAffectedSequencesItem[];
2
11
  success?: boolean;
3
12
  }
@@ -0,0 +1,4 @@
1
+ export interface DeleteSegmentsResponseAffectedAudienceSyncsItem {
2
+ audienceName?: string;
3
+ id?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface DeleteSegmentsResponseAffectedCampaignsItem {
2
+ id?: string;
3
+ name?: string;
4
+ status?: string;
5
+ /** Campaign type, such as email, sms, push or in_app. */
6
+ type?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface DeleteSegmentsResponseAffectedSegmentsItem {
2
+ id?: string;
3
+ name?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Sequenzy from "../../../index.js";
2
+ export interface DeleteSegmentsResponseAffectedSequencesItem {
3
+ id?: string;
4
+ name?: string;
5
+ status?: Sequenzy.DeleteSegmentsResponseAffectedSequencesItemStatus;
6
+ /** How the sequence used the segment: `trigger` (entered or left the segment), `condition` (a condition or split), `filter` (a segment rule in a trigger or step filter), `stop_condition` (exit when in the segment), `audience` (automatic, recurring or running audience enrollment). */
7
+ usages?: Sequenzy.DeleteSegmentsResponseAffectedSequencesItemUsagesItem[];
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export declare const DeleteSegmentsResponseAffectedSequencesItemStatus: {
2
+ readonly Draft: "draft";
3
+ readonly Active: "active";
4
+ readonly Paused: "paused";
5
+ };
6
+ export type DeleteSegmentsResponseAffectedSequencesItemStatus = (typeof DeleteSegmentsResponseAffectedSequencesItemStatus)[keyof typeof DeleteSegmentsResponseAffectedSequencesItemStatus];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DeleteSegmentsResponseAffectedSequencesItemStatus = void 0;
5
+ exports.DeleteSegmentsResponseAffectedSequencesItemStatus = {
6
+ Draft: "draft",
7
+ Active: "active",
8
+ Paused: "paused",
9
+ };
@@ -0,0 +1,8 @@
1
+ export declare const DeleteSegmentsResponseAffectedSequencesItemUsagesItem: {
2
+ readonly Trigger: "trigger";
3
+ readonly Condition: "condition";
4
+ readonly Filter: "filter";
5
+ readonly StopCondition: "stop_condition";
6
+ readonly Audience: "audience";
7
+ };
8
+ export type DeleteSegmentsResponseAffectedSequencesItemUsagesItem = (typeof DeleteSegmentsResponseAffectedSequencesItemUsagesItem)[keyof typeof DeleteSegmentsResponseAffectedSequencesItemUsagesItem];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DeleteSegmentsResponseAffectedSequencesItemUsagesItem = void 0;
5
+ exports.DeleteSegmentsResponseAffectedSequencesItemUsagesItem = {
6
+ Trigger: "trigger",
7
+ Condition: "condition",
8
+ Filter: "filter",
9
+ StopCondition: "stop_condition",
10
+ Audience: "audience",
11
+ };