sequenzy 2.1.16 → 2.1.29

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 (279) hide show
  1. package/dist/cjs/api/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +5 -1
  2. package/dist/cjs/api/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +7 -1
  3. package/dist/cjs/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +4 -1
  4. package/dist/cjs/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +4 -1
  5. package/dist/cjs/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +3 -0
  6. package/dist/cjs/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  7. package/dist/cjs/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +3 -0
  8. package/dist/cjs/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +4 -1
  9. package/dist/cjs/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +4 -1
  10. package/dist/cjs/api/resources/abTests/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/abTests/types/index.js +1 -0
  12. package/dist/cjs/api/resources/accounts/client/Client.d.ts +1 -1
  13. package/dist/cjs/api/resources/accounts/client/Client.js +1 -1
  14. package/dist/cjs/api/resources/analytics/client/Client.d.ts +20 -0
  15. package/dist/cjs/api/resources/analytics/client/Client.js +108 -1
  16. package/dist/cjs/api/resources/analytics/client/requests/GetMetricsBreakdownRequest.d.ts +27 -0
  17. package/dist/cjs/api/resources/analytics/client/requests/GetMetricsBreakdownRequest.js +3 -0
  18. package/dist/cjs/api/resources/analytics/client/requests/GetMetricsRequest.d.ts +4 -0
  19. package/dist/cjs/api/resources/analytics/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownRequestBy.d.ts +8 -0
  21. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownRequestBy.js +11 -0
  22. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownRequestEmailType.d.ts +6 -0
  23. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownRequestEmailType.js +9 -0
  24. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownRequestPeriod.d.ts +8 -0
  25. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownRequestPeriod.js +11 -0
  26. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownResponse.d.ts +14 -0
  27. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownResponse.js +3 -0
  28. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.d.ts +30 -0
  29. package/dist/cjs/api/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.js +3 -0
  30. package/dist/cjs/api/resources/analytics/types/GetMetricsResponse.d.ts +4 -0
  31. package/dist/cjs/api/resources/analytics/types/index.d.ts +5 -0
  32. package/dist/cjs/api/resources/analytics/types/index.js +5 -0
  33. package/dist/cjs/api/resources/integrations/client/Client.d.ts +17 -0
  34. package/dist/cjs/api/resources/integrations/client/Client.js +66 -0
  35. package/dist/cjs/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +1 -1
  36. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponse.d.ts +12 -0
  37. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponse.js +3 -0
  38. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.d.ts +11 -0
  39. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.js +3 -0
  40. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.d.ts +4 -0
  41. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.js +3 -0
  42. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.d.ts +4 -0
  43. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.js +7 -0
  44. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.d.ts +10 -0
  45. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.js +3 -0
  46. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.d.ts +7 -0
  47. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.js +10 -0
  48. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.d.ts +12 -0
  49. package/dist/cjs/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.js +15 -0
  50. package/dist/cjs/api/resources/integrations/types/index.d.ts +7 -0
  51. package/dist/cjs/api/resources/integrations/types/index.js +7 -0
  52. package/dist/cjs/api/resources/sequences/client/requests/SequenceCreateRequest.d.ts +2 -0
  53. package/dist/cjs/api/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +2 -0
  54. package/dist/cjs/api/resources/subscribers/client/requests/UpdateByExternalIdPathSubscribersRequest.d.ts +1 -1
  55. package/dist/cjs/api/resources/subscribers/client/requests/UpdateByExternalIdSubscribersRequest.d.ts +1 -1
  56. package/dist/cjs/api/resources/subscribers/client/requests/UpdateSubscribersRequest.d.ts +1 -1
  57. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +2 -1
  58. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +2 -1
  59. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +2 -1
  60. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +2 -1
  61. package/dist/cjs/api/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +2 -1
  62. package/dist/cjs/api/resources/subscribers/types/UpdateSubscribersRequestStatus.js +2 -1
  63. package/dist/cjs/api/types/AbTest.d.ts +6 -2
  64. package/dist/cjs/api/types/AbTestSignificance.d.ts +1 -1
  65. package/dist/cjs/api/types/AbTestSignificanceMetric.d.ts +4 -1
  66. package/dist/cjs/api/types/AbTestSignificanceMetric.js +4 -1
  67. package/dist/cjs/api/types/AbTestWinnerCriteria.d.ts +8 -0
  68. package/dist/cjs/api/types/AbTestWinnerCriteria.js +11 -0
  69. package/dist/cjs/api/types/AccountHealthInsight.d.ts +1 -1
  70. package/dist/cjs/api/types/SequenceCreateResponseSequence.d.ts +2 -0
  71. package/dist/cjs/api/types/SequenceSummary.d.ts +2 -0
  72. package/dist/cjs/api/types/index.d.ts +1 -0
  73. package/dist/cjs/api/types/index.js +1 -0
  74. package/dist/cjs/serialization/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +2 -0
  75. package/dist/cjs/serialization/resources/abTests/client/requests/CreateAbTestsRequest.js +2 -0
  76. package/dist/cjs/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +3 -0
  77. package/dist/cjs/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.js +3 -0
  78. package/dist/cjs/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +1 -1
  79. package/dist/cjs/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +1 -1
  80. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +2 -0
  81. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.js +2 -0
  82. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  83. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +35 -0
  84. package/dist/cjs/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +1 -1
  85. package/dist/cjs/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +1 -1
  86. package/dist/cjs/serialization/resources/abTests/types/index.d.ts +1 -0
  87. package/dist/cjs/serialization/resources/abTests/types/index.js +1 -0
  88. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownRequestBy.d.ts +7 -0
  89. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownRequestBy.js +29 -0
  90. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownRequestEmailType.d.ts +7 -0
  91. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownRequestEmailType.js +29 -0
  92. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownRequestPeriod.d.ts +7 -0
  93. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownRequestPeriod.js +29 -0
  94. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownResponse.d.ts +19 -0
  95. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownResponse.js +41 -0
  96. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.d.ts +26 -0
  97. package/dist/cjs/serialization/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.js +48 -0
  98. package/dist/cjs/serialization/resources/analytics/types/GetMetricsResponse.d.ts +2 -0
  99. package/dist/cjs/serialization/resources/analytics/types/GetMetricsResponse.js +2 -0
  100. package/dist/cjs/serialization/resources/analytics/types/index.d.ts +5 -0
  101. package/dist/cjs/serialization/resources/analytics/types/index.js +5 -0
  102. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponse.d.ts +15 -0
  103. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponse.js +37 -0
  104. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.d.ts +13 -0
  105. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.js +35 -0
  106. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.d.ts +10 -0
  107. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.js +32 -0
  108. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.d.ts +7 -0
  109. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.js +29 -0
  110. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.d.ts +15 -0
  111. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.js +37 -0
  112. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.d.ts +7 -0
  113. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.js +29 -0
  114. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.d.ts +7 -0
  115. package/dist/cjs/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.js +39 -0
  116. package/dist/cjs/serialization/resources/integrations/types/index.d.ts +7 -0
  117. package/dist/cjs/serialization/resources/integrations/types/index.js +7 -0
  118. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceCreateRequest.d.ts +1 -0
  119. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceCreateRequest.js +1 -0
  120. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +1 -0
  121. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceUpdateRequest.js +1 -0
  122. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +1 -1
  123. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +1 -1
  124. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +1 -1
  125. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +1 -1
  126. package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +1 -1
  127. package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.js +1 -1
  128. package/dist/cjs/serialization/types/AbTest.d.ts +4 -1
  129. package/dist/cjs/serialization/types/AbTest.js +4 -1
  130. package/dist/cjs/serialization/types/AbTestSignificanceMetric.d.ts +1 -1
  131. package/dist/cjs/serialization/types/AbTestSignificanceMetric.js +1 -1
  132. package/dist/cjs/serialization/types/AbTestWinnerCriteria.d.ts +7 -0
  133. package/dist/cjs/serialization/types/AbTestWinnerCriteria.js +29 -0
  134. package/dist/cjs/serialization/types/SequenceCreateResponseSequence.d.ts +1 -0
  135. package/dist/cjs/serialization/types/SequenceCreateResponseSequence.js +1 -0
  136. package/dist/cjs/serialization/types/SequenceSummary.d.ts +1 -0
  137. package/dist/cjs/serialization/types/SequenceSummary.js +1 -0
  138. package/dist/cjs/serialization/types/index.d.ts +1 -0
  139. package/dist/cjs/serialization/types/index.js +1 -0
  140. package/dist/esm/api/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +5 -1
  141. package/dist/esm/api/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +7 -1
  142. package/dist/esm/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +4 -1
  143. package/dist/esm/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +4 -1
  144. package/dist/esm/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +3 -0
  145. package/dist/esm/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  146. package/dist/esm/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +2 -0
  147. package/dist/esm/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +4 -1
  148. package/dist/esm/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +4 -1
  149. package/dist/esm/api/resources/abTests/types/index.d.ts +1 -0
  150. package/dist/esm/api/resources/abTests/types/index.js +1 -0
  151. package/dist/esm/api/resources/accounts/client/Client.d.ts +1 -1
  152. package/dist/esm/api/resources/accounts/client/Client.js +1 -1
  153. package/dist/esm/api/resources/analytics/client/Client.d.ts +20 -0
  154. package/dist/esm/api/resources/analytics/client/Client.js +108 -1
  155. package/dist/esm/api/resources/analytics/client/requests/GetMetricsBreakdownRequest.d.ts +27 -0
  156. package/dist/esm/api/resources/analytics/client/requests/GetMetricsBreakdownRequest.js +2 -0
  157. package/dist/esm/api/resources/analytics/client/requests/GetMetricsRequest.d.ts +4 -0
  158. package/dist/esm/api/resources/analytics/client/requests/index.d.ts +1 -0
  159. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownRequestBy.d.ts +8 -0
  160. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownRequestBy.js +8 -0
  161. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownRequestEmailType.d.ts +6 -0
  162. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownRequestEmailType.js +6 -0
  163. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownRequestPeriod.d.ts +8 -0
  164. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownRequestPeriod.js +8 -0
  165. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownResponse.d.ts +14 -0
  166. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownResponse.js +2 -0
  167. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.d.ts +30 -0
  168. package/dist/esm/api/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.js +2 -0
  169. package/dist/esm/api/resources/analytics/types/GetMetricsResponse.d.ts +4 -0
  170. package/dist/esm/api/resources/analytics/types/index.d.ts +5 -0
  171. package/dist/esm/api/resources/analytics/types/index.js +5 -0
  172. package/dist/esm/api/resources/integrations/client/Client.d.ts +17 -0
  173. package/dist/esm/api/resources/integrations/client/Client.js +66 -0
  174. package/dist/esm/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +1 -1
  175. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponse.d.ts +12 -0
  176. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponse.js +2 -0
  177. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.d.ts +11 -0
  178. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.js +2 -0
  179. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.d.ts +4 -0
  180. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.js +2 -0
  181. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.d.ts +4 -0
  182. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.js +4 -0
  183. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.d.ts +10 -0
  184. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.js +2 -0
  185. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.d.ts +7 -0
  186. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.js +7 -0
  187. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.d.ts +12 -0
  188. package/dist/esm/api/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.js +12 -0
  189. package/dist/esm/api/resources/integrations/types/index.d.ts +7 -0
  190. package/dist/esm/api/resources/integrations/types/index.js +7 -0
  191. package/dist/esm/api/resources/sequences/client/requests/SequenceCreateRequest.d.ts +2 -0
  192. package/dist/esm/api/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +2 -0
  193. package/dist/esm/api/resources/subscribers/client/requests/UpdateByExternalIdPathSubscribersRequest.d.ts +1 -1
  194. package/dist/esm/api/resources/subscribers/client/requests/UpdateByExternalIdSubscribersRequest.d.ts +1 -1
  195. package/dist/esm/api/resources/subscribers/client/requests/UpdateSubscribersRequest.d.ts +1 -1
  196. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +2 -1
  197. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +2 -1
  198. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +2 -1
  199. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +2 -1
  200. package/dist/esm/api/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +2 -1
  201. package/dist/esm/api/resources/subscribers/types/UpdateSubscribersRequestStatus.js +2 -1
  202. package/dist/esm/api/types/AbTest.d.ts +6 -2
  203. package/dist/esm/api/types/AbTestSignificance.d.ts +1 -1
  204. package/dist/esm/api/types/AbTestSignificanceMetric.d.ts +4 -1
  205. package/dist/esm/api/types/AbTestSignificanceMetric.js +4 -1
  206. package/dist/esm/api/types/AbTestWinnerCriteria.d.ts +8 -0
  207. package/dist/esm/api/types/AbTestWinnerCriteria.js +8 -0
  208. package/dist/esm/api/types/AccountHealthInsight.d.ts +1 -1
  209. package/dist/esm/api/types/SequenceCreateResponseSequence.d.ts +2 -0
  210. package/dist/esm/api/types/SequenceSummary.d.ts +2 -0
  211. package/dist/esm/api/types/index.d.ts +1 -0
  212. package/dist/esm/api/types/index.js +1 -0
  213. package/dist/esm/serialization/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +2 -0
  214. package/dist/esm/serialization/resources/abTests/client/requests/CreateAbTestsRequest.js +2 -0
  215. package/dist/esm/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +3 -0
  216. package/dist/esm/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.js +3 -0
  217. package/dist/esm/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +1 -1
  218. package/dist/esm/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +1 -1
  219. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +2 -0
  220. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.js +2 -0
  221. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  222. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +9 -0
  223. package/dist/esm/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +1 -1
  224. package/dist/esm/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +1 -1
  225. package/dist/esm/serialization/resources/abTests/types/index.d.ts +1 -0
  226. package/dist/esm/serialization/resources/abTests/types/index.js +1 -0
  227. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownRequestBy.d.ts +7 -0
  228. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownRequestBy.js +3 -0
  229. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownRequestEmailType.d.ts +7 -0
  230. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownRequestEmailType.js +3 -0
  231. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownRequestPeriod.d.ts +7 -0
  232. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownRequestPeriod.js +3 -0
  233. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownResponse.d.ts +19 -0
  234. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownResponse.js +15 -0
  235. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.d.ts +26 -0
  236. package/dist/esm/serialization/resources/analytics/types/GetMetricsBreakdownResponseRowsItem.js +22 -0
  237. package/dist/esm/serialization/resources/analytics/types/GetMetricsResponse.d.ts +2 -0
  238. package/dist/esm/serialization/resources/analytics/types/GetMetricsResponse.js +2 -0
  239. package/dist/esm/serialization/resources/analytics/types/index.d.ts +5 -0
  240. package/dist/esm/serialization/resources/analytics/types/index.js +5 -0
  241. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponse.d.ts +15 -0
  242. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponse.js +11 -0
  243. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.d.ts +13 -0
  244. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProviders.js +9 -0
  245. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.d.ts +10 -0
  246. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.js +6 -0
  247. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.d.ts +7 -0
  248. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponsePaymentProvidersReason.js +3 -0
  249. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.d.ts +15 -0
  250. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItem.js +11 -0
  251. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.d.ts +7 -0
  252. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.js +3 -0
  253. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.d.ts +7 -0
  254. package/dist/esm/serialization/resources/integrations/types/ListSuggestionsIntegrationsResponseSuggestionsItemProvider.js +13 -0
  255. package/dist/esm/serialization/resources/integrations/types/index.d.ts +7 -0
  256. package/dist/esm/serialization/resources/integrations/types/index.js +7 -0
  257. package/dist/esm/serialization/resources/sequences/client/requests/SequenceCreateRequest.d.ts +1 -0
  258. package/dist/esm/serialization/resources/sequences/client/requests/SequenceCreateRequest.js +1 -0
  259. package/dist/esm/serialization/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +1 -0
  260. package/dist/esm/serialization/resources/sequences/client/requests/SequenceUpdateRequest.js +1 -0
  261. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +1 -1
  262. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +1 -1
  263. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +1 -1
  264. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +1 -1
  265. package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +1 -1
  266. package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.js +1 -1
  267. package/dist/esm/serialization/types/AbTest.d.ts +4 -1
  268. package/dist/esm/serialization/types/AbTest.js +4 -1
  269. package/dist/esm/serialization/types/AbTestSignificanceMetric.d.ts +1 -1
  270. package/dist/esm/serialization/types/AbTestSignificanceMetric.js +1 -1
  271. package/dist/esm/serialization/types/AbTestWinnerCriteria.d.ts +7 -0
  272. package/dist/esm/serialization/types/AbTestWinnerCriteria.js +3 -0
  273. package/dist/esm/serialization/types/SequenceCreateResponseSequence.d.ts +1 -0
  274. package/dist/esm/serialization/types/SequenceCreateResponseSequence.js +1 -0
  275. package/dist/esm/serialization/types/SequenceSummary.d.ts +1 -0
  276. package/dist/esm/serialization/types/SequenceSummary.js +1 -0
  277. package/dist/esm/serialization/types/index.d.ts +1 -0
  278. package/dist/esm/serialization/types/index.js +1 -0
  279. package/package.json +1 -1
@@ -691,6 +691,72 @@ class IntegrationsClient {
691
691
  }
692
692
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/integrations/catalog");
693
693
  }
694
+ /**
695
+ * Suggests integrations to connect next, from what Sequenzy found on the company's website during onboarding: tools on the homepage or on the sign-in page it links to (Clerk, Supabase, PostHog, Segment, Webflow, Wix, WordPress, WooCommerce) or a Shopify storefront. Connected providers are left out. Payment providers are never guessed from the site: when it lists pricing and no payment or commerce integration is connected, paymentProviders lists every payment provider. Requires the account:read scope.
696
+ *
697
+ * @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
698
+ *
699
+ * @throws {@link Sequenzy.UnauthorizedError}
700
+ * @throws {@link Sequenzy.ForbiddenError}
701
+ * @throws {@link Sequenzy.NotFoundError}
702
+ * @throws {@link Sequenzy.ServiceUnavailableError}
703
+ * @throws {@link errors.SequenzyError}
704
+ * @throws {@link errors.SequenzyTimeoutError}
705
+ *
706
+ * @example
707
+ * await client.integrations.listSuggestions()
708
+ */
709
+ listSuggestions(requestOptions) {
710
+ return core.HttpResponsePromise.fromPromise(this.__listSuggestions(requestOptions));
711
+ }
712
+ async __listSuggestions(requestOptions) {
713
+ const _authRequest = await this._options.authProvider.getAuthRequest();
714
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
715
+ const _response = await core.fetcher({
716
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
717
+ (await core.Supplier.get(this._options.environment)) ??
718
+ environments.SequenzyEnvironment.Default, "integrations/suggestions"),
719
+ method: "GET",
720
+ headers: _headers,
721
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
722
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
723
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
724
+ abortSignal: requestOptions?.abortSignal,
725
+ fetchFn: this._options?.fetch,
726
+ logging: this._options.logging,
727
+ });
728
+ if (_response.ok) {
729
+ return {
730
+ data: serializers.ListSuggestionsIntegrationsResponse.parseOrThrow(_response.body, {
731
+ unrecognizedObjectKeys: "passthrough",
732
+ allowUnrecognizedUnionMembers: true,
733
+ allowUnrecognizedEnumValues: true,
734
+ skipValidation: true,
735
+ breadcrumbsPrefix: ["response"],
736
+ }),
737
+ rawResponse: _response.rawResponse,
738
+ };
739
+ }
740
+ if (_response.error.reason === "status-code") {
741
+ switch (_response.error.statusCode) {
742
+ case 401:
743
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
744
+ case 403:
745
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
746
+ case 404:
747
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
748
+ case 503:
749
+ throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
750
+ default:
751
+ throw new errors.SequenzyError({
752
+ statusCode: _response.error.statusCode,
753
+ body: _response.error.body,
754
+ rawResponse: _response.rawResponse,
755
+ });
756
+ }
757
+ }
758
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/integrations/suggestions");
759
+ }
694
760
  /**
695
761
  * Queues a manual re-sync for a connected integration - customers and revenue for a payment provider (Stripe, Polar, Paddle, Dodo, Lemon Squeezy, Creem, Chargebee, Whop), the user backfill for Supabase, or the event-history import for PostHog and Segment. The Supabase sync reads the project, schema, and table already configured for the integration and returns 400 when none is configured. PostHog and Segment re-run their event-history imports with credentials stored at connect time and are the supported retry path for failed imports; each restarts from the beginning, already-imported events dedupe, and returns 409 while queued or syncing. Segment requires a saved Unify space ID and Profile API token and covers the most recent 14 days served by the Profile API. Terminal BullMQ failures release imports for retry. Returns immediately; poll the integration to watch syncStatus. Other providers re-sync from the dashboard. Requires the integrations:manage scope.
696
762
  *
@@ -16,6 +16,6 @@ export interface ConnectIntegrationsRequest {
16
16
  providerAccountId?: string;
17
17
  /** PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain. SparkLoop: listIds for new referrals. */
18
18
  settings?: Sequenzy.ConnectIntegrationsRequestSettings;
19
- /** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Segment, use 16-153 UTF-8 bytes. For SparkLoop, pass the webhook authentication token from SparkLoop Settings → Integrations (sent as the SparkLoop-Token header). */
19
+ /** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and for sparkloop, and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Segment, use 16-153 UTF-8 bytes. For SparkLoop, omit it so Sequenzy authenticates deliveries with a secret in the webhook URL it registers, or pass the account's webhook authentication token to verify the SparkLoop-Token header instead. */
20
20
  webhookSecret?: string;
21
21
  }
@@ -0,0 +1,12 @@
1
+ import type * as Sequenzy from "../../../index.js";
2
+ export interface ListSuggestionsIntegrationsResponse {
3
+ /** Present when the website lists pricing and no payment or commerce integration is connected; null otherwise. */
4
+ paymentProviders: Sequenzy.ListSuggestionsIntegrationsResponsePaymentProviders | null;
5
+ /** False while onboarding is still reading the website, including the tool scan, which can finish a few seconds after the rest. An empty list then means the site has not been scanned yet, not that nothing was found. */
6
+ scanComplete: boolean;
7
+ success: boolean;
8
+ /** Detected providers that are not connected, in suggestion order. */
9
+ suggestions: Sequenzy.ListSuggestionsIntegrationsResponseSuggestionsItem[];
10
+ /** The company website the suggestions were read from. */
11
+ websiteUrl: string | null;
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,11 @@
1
+ import type * as Sequenzy from "../../../index.js";
2
+ /**
3
+ * Present when the website lists pricing and no payment or commerce integration is connected; null otherwise.
4
+ */
5
+ export interface ListSuggestionsIntegrationsResponsePaymentProviders {
6
+ /** Pricing plans read from the website or entered in settings. */
7
+ pricingPlanCount: number;
8
+ /** Every available payment provider. */
9
+ providers: Sequenzy.ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem[];
10
+ reason: Sequenzy.ListSuggestionsIntegrationsResponsePaymentProvidersReason;
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 });
@@ -0,0 +1,4 @@
1
+ export interface ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem {
2
+ name: string;
3
+ provider: 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,4 @@
1
+ export declare const ListSuggestionsIntegrationsResponsePaymentProvidersReason: {
2
+ readonly PricingFound: "pricing_found";
3
+ };
4
+ export type ListSuggestionsIntegrationsResponsePaymentProvidersReason = (typeof ListSuggestionsIntegrationsResponsePaymentProvidersReason)[keyof typeof ListSuggestionsIntegrationsResponsePaymentProvidersReason];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListSuggestionsIntegrationsResponsePaymentProvidersReason = void 0;
5
+ exports.ListSuggestionsIntegrationsResponsePaymentProvidersReason = {
6
+ PricingFound: "pricing_found",
7
+ };
@@ -0,0 +1,10 @@
1
+ import type * as Sequenzy from "../../../index.js";
2
+ export interface ListSuggestionsIntegrationsResponseSuggestionsItem {
3
+ category: string;
4
+ /** Where the provider was found. storefront means the site runs on Shopify. */
5
+ evidence: Sequenzy.ListSuggestionsIntegrationsResponseSuggestionsItemEvidence;
6
+ name: string;
7
+ provider: Sequenzy.ListSuggestionsIntegrationsResponseSuggestionsItemProvider;
8
+ /** The myshopify.com domain for a Shopify suggestion when one was found; null otherwise. */
9
+ shopDomain: string | null;
10
+ }
@@ -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
+ /** Where the provider was found. storefront means the site runs on Shopify. */
2
+ export declare const ListSuggestionsIntegrationsResponseSuggestionsItemEvidence: {
3
+ readonly Homepage: "homepage";
4
+ readonly SignInPage: "sign_in_page";
5
+ readonly Storefront: "storefront";
6
+ };
7
+ export type ListSuggestionsIntegrationsResponseSuggestionsItemEvidence = (typeof ListSuggestionsIntegrationsResponseSuggestionsItemEvidence)[keyof typeof ListSuggestionsIntegrationsResponseSuggestionsItemEvidence];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListSuggestionsIntegrationsResponseSuggestionsItemEvidence = void 0;
5
+ /** Where the provider was found. storefront means the site runs on Shopify. */
6
+ exports.ListSuggestionsIntegrationsResponseSuggestionsItemEvidence = {
7
+ Homepage: "homepage",
8
+ SignInPage: "sign_in_page",
9
+ Storefront: "storefront",
10
+ };
@@ -0,0 +1,12 @@
1
+ export declare const ListSuggestionsIntegrationsResponseSuggestionsItemProvider: {
2
+ readonly Shopify: "shopify";
3
+ readonly Clerk: "clerk";
4
+ readonly Supabase: "supabase";
5
+ readonly Posthog: "posthog";
6
+ readonly Segment: "segment";
7
+ readonly Woocommerce: "woocommerce";
8
+ readonly Wordpress: "wordpress";
9
+ readonly Webflow: "webflow";
10
+ readonly Wix: "wix";
11
+ };
12
+ export type ListSuggestionsIntegrationsResponseSuggestionsItemProvider = (typeof ListSuggestionsIntegrationsResponseSuggestionsItemProvider)[keyof typeof ListSuggestionsIntegrationsResponseSuggestionsItemProvider];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListSuggestionsIntegrationsResponseSuggestionsItemProvider = void 0;
5
+ exports.ListSuggestionsIntegrationsResponseSuggestionsItemProvider = {
6
+ Shopify: "shopify",
7
+ Clerk: "clerk",
8
+ Supabase: "supabase",
9
+ Posthog: "posthog",
10
+ Segment: "segment",
11
+ Woocommerce: "woocommerce",
12
+ Wordpress: "wordpress",
13
+ Webflow: "webflow",
14
+ Wix: "wix",
15
+ };
@@ -13,6 +13,13 @@ export * from "./ListActivityIntegrationsRequestStatus.js";
13
13
  export * from "./ListActivityIntegrationsResponse.js";
14
14
  export * from "./ListCapabilitiesIntegrationsResponse.js";
15
15
  export * from "./ListIntegrationsResponse.js";
16
+ export * from "./ListSuggestionsIntegrationsResponse.js";
17
+ export * from "./ListSuggestionsIntegrationsResponsePaymentProviders.js";
18
+ export * from "./ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.js";
19
+ export * from "./ListSuggestionsIntegrationsResponsePaymentProvidersReason.js";
20
+ export * from "./ListSuggestionsIntegrationsResponseSuggestionsItem.js";
21
+ export * from "./ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.js";
22
+ export * from "./ListSuggestionsIntegrationsResponseSuggestionsItemProvider.js";
16
23
  export * from "./SyncIntegrationsResponse.js";
17
24
  export * from "./SyncIntegrationsResponseSyncTarget.js";
18
25
  export * from "./UpdateSyncIntegrationsResponse.js";
@@ -29,6 +29,13 @@ __exportStar(require("./ListActivityIntegrationsRequestStatus.js"), exports);
29
29
  __exportStar(require("./ListActivityIntegrationsResponse.js"), exports);
30
30
  __exportStar(require("./ListCapabilitiesIntegrationsResponse.js"), exports);
31
31
  __exportStar(require("./ListIntegrationsResponse.js"), exports);
32
+ __exportStar(require("./ListSuggestionsIntegrationsResponse.js"), exports);
33
+ __exportStar(require("./ListSuggestionsIntegrationsResponsePaymentProviders.js"), exports);
34
+ __exportStar(require("./ListSuggestionsIntegrationsResponsePaymentProvidersProvidersItem.js"), exports);
35
+ __exportStar(require("./ListSuggestionsIntegrationsResponsePaymentProvidersReason.js"), exports);
36
+ __exportStar(require("./ListSuggestionsIntegrationsResponseSuggestionsItem.js"), exports);
37
+ __exportStar(require("./ListSuggestionsIntegrationsResponseSuggestionsItemEvidence.js"), exports);
38
+ __exportStar(require("./ListSuggestionsIntegrationsResponseSuggestionsItemProvider.js"), exports);
32
39
  __exportStar(require("./SyncIntegrationsResponse.js"), exports);
33
40
  __exportStar(require("./SyncIntegrationsResponseSyncTarget.js"), exports);
34
41
  __exportStar(require("./UpdateSyncIntegrationsResponse.js"), exports);
@@ -106,6 +106,8 @@ import type * as Sequenzy from "../../../../index.js";
106
106
  * }
107
107
  */
108
108
  export interface SequenceCreateRequest {
109
+ /** Only enroll contacts whose status is `active`. Defaults to `false`: unsubscribed and bounced contacts still enter on tag, event, list and contact triggers so non-marketing steps run for them, and their marketing emails are skipped at send time. Pending double opt-in contacts still wait for confirmation. */
110
+ activeSubscribersOnly?: boolean;
109
111
  /** Addresses blind-copied on every sequence email. */
110
112
  bccEmails?: string[] | null;
111
113
  /** Custom inbound-webhook integration metadata. */
@@ -165,6 +165,8 @@ import type * as Sequenzy from "../../../../index.js";
165
165
  export interface SequenceUpdateRequest {
166
166
  /** Sequence ID */
167
167
  sequenceId: string;
168
+ /** Only enroll contacts whose status is `active`. Defaults to `false`: unsubscribed and bounced contacts still enter on tag, event, list and contact triggers so non-marketing steps run for them, and their marketing emails are skipped at send time. Pending double opt-in contacts still wait for confirmation. */
169
+ activeSubscribersOnly?: boolean;
168
170
  /** Keep enrolling later joiners of an audience until the last key date. Null clears it. Changing the trigger away from manual switches it off (endedReason "disabled"). */
169
171
  audienceAutoEnroll?: Sequenzy.SequenceAudienceAutoEnroll | null;
170
172
  /** Email addresses that receive a blind copy of every email this sequence sends, such as a customer support inbox (max 10). Set to null to remove them. */
@@ -26,7 +26,7 @@ export interface UpdateByExternalIdPathSubscribersRequest {
26
26
  phoneCountry?: string | null;
27
27
  /** SMS marketing consent. true sets smsStatus to subscribed with consent source api, false sets unsubscribed, omitted leaves SMS status unchanged. Never inferred from phone presence. */
28
28
  smsConsent?: boolean;
29
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
29
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
30
30
  status?: Sequenzy.UpdateByExternalIdPathSubscribersRequestStatus;
31
31
  tags?: string[];
32
32
  /** IANA timezone identifier (e.g. America/New_York) used for recipient-local campaign delivery. Invalid values fail with a 400 validation error; null clears the stored value. */
@@ -26,7 +26,7 @@ export interface UpdateByExternalIdSubscribersRequest {
26
26
  phoneCountry?: string | null;
27
27
  /** SMS marketing consent. true sets smsStatus to subscribed with consent source api, false sets unsubscribed, omitted leaves SMS status unchanged. Never inferred from phone presence. */
28
28
  smsConsent?: boolean;
29
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
29
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
30
30
  status?: Sequenzy.UpdateByExternalIdSubscribersRequestStatus;
31
31
  tags?: string[];
32
32
  /** IANA timezone identifier (e.g. America/New_York) used for recipient-local campaign delivery. Invalid values fail with a 400 validation error; null clears the stored value. */
@@ -26,7 +26,7 @@ export interface UpdateSubscribersRequest {
26
26
  phoneCountry?: string | null;
27
27
  /** SMS marketing consent. true sets smsStatus to subscribed with consent source api, false sets unsubscribed, omitted leaves SMS status unchanged. Never inferred from phone presence. */
28
28
  smsConsent?: boolean;
29
- /** Setting `unsubscribed` performs a full global unsubscribe. */
29
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
30
30
  status?: Sequenzy.UpdateSubscribersRequestStatus;
31
31
  tags?: string[];
32
32
  /** IANA timezone identifier such as America/New_York, stored as a native profile field and used for recipient-local campaign delivery. An invalid identifier returns 400 VALIDATION_ERROR. Omit to keep unchanged, or send null to clear. */
@@ -1,7 +1,8 @@
1
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
1
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
2
2
  export declare const UpdateByExternalIdPathSubscribersRequestStatus: {
3
3
  readonly Active: "active";
4
4
  readonly Unsubscribed: "unsubscribed";
5
5
  readonly Bounced: "bounced";
6
+ readonly Complained: "complained";
6
7
  };
7
8
  export type UpdateByExternalIdPathSubscribersRequestStatus = (typeof UpdateByExternalIdPathSubscribersRequestStatus)[keyof typeof UpdateByExternalIdPathSubscribersRequestStatus];
@@ -2,9 +2,10 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateByExternalIdPathSubscribersRequestStatus = void 0;
5
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
5
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
6
6
  exports.UpdateByExternalIdPathSubscribersRequestStatus = {
7
7
  Active: "active",
8
8
  Unsubscribed: "unsubscribed",
9
9
  Bounced: "bounced",
10
+ Complained: "complained",
10
11
  };
@@ -1,7 +1,8 @@
1
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
1
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
2
2
  export declare const UpdateByExternalIdSubscribersRequestStatus: {
3
3
  readonly Active: "active";
4
4
  readonly Unsubscribed: "unsubscribed";
5
5
  readonly Bounced: "bounced";
6
+ readonly Complained: "complained";
6
7
  };
7
8
  export type UpdateByExternalIdSubscribersRequestStatus = (typeof UpdateByExternalIdSubscribersRequestStatus)[keyof typeof UpdateByExternalIdSubscribersRequestStatus];
@@ -2,9 +2,10 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateByExternalIdSubscribersRequestStatus = void 0;
5
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
5
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
6
6
  exports.UpdateByExternalIdSubscribersRequestStatus = {
7
7
  Active: "active",
8
8
  Unsubscribed: "unsubscribed",
9
9
  Bounced: "bounced",
10
+ Complained: "complained",
10
11
  };
@@ -1,7 +1,8 @@
1
- /** Setting `unsubscribed` performs a full global unsubscribe. */
1
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
2
2
  export declare const UpdateSubscribersRequestStatus: {
3
3
  readonly Active: "active";
4
4
  readonly Unsubscribed: "unsubscribed";
5
5
  readonly Bounced: "bounced";
6
+ readonly Complained: "complained";
6
7
  };
7
8
  export type UpdateSubscribersRequestStatus = (typeof UpdateSubscribersRequestStatus)[keyof typeof UpdateSubscribersRequestStatus];
@@ -2,9 +2,10 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateSubscribersRequestStatus = void 0;
5
- /** Setting `unsubscribed` performs a full global unsubscribe. */
5
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
6
6
  exports.UpdateSubscribersRequestStatus = {
7
7
  Active: "active",
8
8
  Unsubscribed: "unsubscribed",
9
9
  Bounced: "bounced",
10
+ Complained: "complained",
10
11
  };
@@ -14,7 +14,7 @@ export interface AbTest {
14
14
  pendingSampleUpdate?: Sequenzy.AbTestPendingSampleUpdate | null;
15
15
  /** Present on campaign detail and settings responses. Null if the campaign is missing. Counts unique recipient deliveries across retry attempts, excluding separate test emails. */
16
16
  progress?: Sequenzy.AbTestProgress | null;
17
- /** Effective settings for this test kind. Campaign tests return testPercentage, testDurationMinutes, and winnerCriteria; sequence tests return testType, winnerThreshold, and winnerCriteria. */
17
+ /** Effective settings for this test kind. Campaign tests return testPercentage, testDurationMinutes, winnerCriteria, winnerGoalId, and winnerEventName; sequence tests return testType, winnerThreshold, winnerCriteria, winnerGoalId, and winnerEventName. */
18
18
  settings?: Record<string, unknown>;
19
19
  status?: string;
20
20
  /** Campaign test duration. Sequence tests retain the legacy internal sentinel value 0; use settings instead. */
@@ -27,7 +27,11 @@ export interface AbTest {
27
27
  testType?: Sequenzy.AbTestTestType;
28
28
  updatedAt?: Date;
29
29
  variants?: Sequenzy.AbTestVariant[];
30
- winnerCriteria?: string;
30
+ winnerCriteria?: Sequenzy.AbTestWinnerCriteria;
31
+ /** Event judged by `event_rate`. Null for other criteria. */
32
+ winnerEventName?: string | null;
33
+ /** Goal judged by `goal_conversion_rate` or `goal_value` (a goal ID or `default-revenue`). Null for other criteria. */
34
+ winnerGoalId?: string | null;
31
35
  winnerSelectedAt?: Date | null;
32
36
  /** Effective sequence recipient threshold. Present for sequence tests. */
33
37
  winnerThreshold?: number;
@@ -10,7 +10,7 @@ export interface AbTestSignificance {
10
10
  /** Variant with the highest rate, or null when the top variants are tied. */
11
11
  leaderVariantId: string | null;
12
12
  leaderVariantLabel: string | null;
13
- /** Metric compared, taken from the test's winner criteria. */
13
+ /** Metric compared, taken from the test's winner criteria. Goal and event criteria compare whether recipients converted; `goal_value` does too, since value has no yes/no outcome per recipient. */
14
14
  metric: Sequenzy.AbTestSignificanceMetric;
15
15
  /** Corrected two-sided p-value of the weakest leader comparison. Very strong results can round to exactly 0. Null while data is insufficient. */
16
16
  pValue: number | null;
@@ -1,6 +1,9 @@
1
- /** Metric compared, taken from the test's winner criteria. */
1
+ /** Metric compared, taken from the test's winner criteria. Goal and event criteria compare whether recipients converted; `goal_value` does too, since value has no yes/no outcome per recipient. */
2
2
  export declare const AbTestSignificanceMetric: {
3
3
  readonly OpenRate: "open_rate";
4
4
  readonly ClickRate: "click_rate";
5
+ readonly GoalConversionRate: "goal_conversion_rate";
6
+ readonly GoalValue: "goal_value";
7
+ readonly EventRate: "event_rate";
5
8
  };
6
9
  export type AbTestSignificanceMetric = (typeof AbTestSignificanceMetric)[keyof typeof AbTestSignificanceMetric];
@@ -2,8 +2,11 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AbTestSignificanceMetric = void 0;
5
- /** Metric compared, taken from the test's winner criteria. */
5
+ /** Metric compared, taken from the test's winner criteria. Goal and event criteria compare whether recipients converted; `goal_value` does too, since value has no yes/no outcome per recipient. */
6
6
  exports.AbTestSignificanceMetric = {
7
7
  OpenRate: "open_rate",
8
8
  ClickRate: "click_rate",
9
+ GoalConversionRate: "goal_conversion_rate",
10
+ GoalValue: "goal_value",
11
+ EventRate: "event_rate",
9
12
  };
@@ -0,0 +1,8 @@
1
+ export declare const AbTestWinnerCriteria: {
2
+ readonly OpenRate: "open_rate";
3
+ readonly ClickRate: "click_rate";
4
+ readonly GoalConversionRate: "goal_conversion_rate";
5
+ readonly GoalValue: "goal_value";
6
+ readonly EventRate: "event_rate";
7
+ };
8
+ export type AbTestWinnerCriteria = (typeof AbTestWinnerCriteria)[keyof typeof AbTestWinnerCriteria];
@@ -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.AbTestWinnerCriteria = void 0;
5
+ exports.AbTestWinnerCriteria = {
6
+ OpenRate: "open_rate",
7
+ ClickRate: "click_rate",
8
+ GoalConversionRate: "goal_conversion_rate",
9
+ GoalValue: "goal_value",
10
+ EventRate: "event_rate",
11
+ };
@@ -7,7 +7,7 @@ export interface AccountHealthInsight {
7
7
  actions?: Sequenzy.AccountHealthAction[];
8
8
  detail?: string;
9
9
  detector?: Sequenzy.AccountHealthInsightDetector;
10
- /** Detector-specific numbers behind the finding. Event findings carry `monthlyRevenue` (USD a month the people behind the event pay) when a payment integration syncs revenue to contacts. A missing_sequence finding carries the suggested `playbook`, `name`, `goal`, `trigger` and `steps`. An over_emailing finding carries `overloadedSubscribers`, `recipients`, `peakPerDay`, `dailyThreshold`, `windowDays`, `frequencyCap` (null when off) and `sources` (type campaign, sequence or api, id, name, sends, and respectsFrequencyCap for sequences; the api source has an empty id and stands for marketing Send API email, which the frequency cap does not limit). A neglected_subscribers finding carries `neglectedSubscribers`, `eligibleSubscribers`, `days`, `estimated` and `sampled`. */
10
+ /** Detector-specific numbers behind the finding. Event findings carry `monthlyRevenue` (USD a month the people behind the event pay) when a payment integration syncs revenue to contacts. A missing_sequence finding carries the suggested `playbook`, `name`, `goal`, `trigger` and `steps`. An over_emailing finding carries `overloadedSubscribers`, `recipients`, `peakPerDay`, `dailyThreshold`, `windowDays`, `frequencyCap` (null when off) and `sources` (type campaign, sequence or api, id, name, sends, and respectsFrequencyCap for sequences, plus enrollsEveryTime when the sequence uses unlimited re-entry and peakEnrollmentsPerPerson, the most times one person entered it in the window; the api source has an empty id and stands for marketing Send API email, which the frequency cap does not limit). A neglected_subscribers finding carries `neglectedSubscribers`, `eligibleSubscribers`, `days`, `estimated` and `sampled`. */
11
11
  evidence?: Record<string, unknown>;
12
12
  /** Included in Get Account Health only. Your own answer to "was this useful?" for this finding (the API key owner's), or null when you have not answered. Other responses that return an insight leave it out. */
13
13
  feedback?: Sequenzy.AccountHealthInsightFeedback | null;
@@ -2,6 +2,8 @@ import type * as Sequenzy from "../index.js";
2
2
  export interface SequenceCreateResponseSequence {
3
3
  /** Whether new subscribers can enter the sequence right now. */
4
4
  acceptsNewEnrollments?: boolean;
5
+ /** Whether only active contacts can enter. When `false`, unsubscribed and bounced contacts still enter and only their marketing emails are skipped. */
6
+ activeSubscribersOnly?: boolean;
5
7
  discountCount?: number;
6
8
  effectiveStatus?: Sequenzy.SequenceEffectiveStatus;
7
9
  /** One plain-language sentence describing the run state, safe to show a user verbatim. */
@@ -2,6 +2,8 @@ import type * as Sequenzy from "../index.js";
2
2
  export interface SequenceSummary {
3
3
  /** Whether new subscribers can enter the sequence right now. */
4
4
  acceptsNewEnrollments?: boolean;
5
+ /** Whether only active contacts can enter. When `false`, unsubscribed and bounced contacts still enter and only their marketing emails are skipped. */
6
+ activeSubscribersOnly?: boolean;
5
7
  audienceAutoEnroll?: Sequenzy.SequenceAudienceAutoEnroll | null;
6
8
  /** Email addresses blind-copied on every email this sequence sends. */
7
9
  bccEmails?: string[] | null;
@@ -9,6 +9,7 @@ export * from "./AbTestSignificanceMetric.js";
9
9
  export * from "./AbTestSignificanceStatus.js";
10
10
  export * from "./AbTestTestType.js";
11
11
  export * from "./AbTestVariant.js";
12
+ export * from "./AbTestWinnerCriteria.js";
12
13
  export * from "./Account.js";
13
14
  export * from "./AccountEvent.js";
14
15
  export * from "./AccountHealthAction.js";
@@ -25,6 +25,7 @@ __exportStar(require("./AbTestSignificanceMetric.js"), exports);
25
25
  __exportStar(require("./AbTestSignificanceStatus.js"), exports);
26
26
  __exportStar(require("./AbTestTestType.js"), exports);
27
27
  __exportStar(require("./AbTestVariant.js"), exports);
28
+ __exportStar(require("./AbTestWinnerCriteria.js"), exports);
28
29
  __exportStar(require("./Account.js"), exports);
29
30
  __exportStar(require("./AccountEvent.js"), exports);
30
31
  __exportStar(require("./AccountHealthAction.js"), exports);
@@ -16,6 +16,8 @@ export declare namespace CreateAbTestsRequest {
16
16
  testType?: CreateAbTestsRequestTestType.Raw | null;
17
17
  variants?: CreateAbTestsRequestVariantsItem.Raw[] | null;
18
18
  winnerCriteria?: CreateAbTestsRequestWinnerCriteria.Raw | null;
19
+ winnerEventName?: (string | null | undefined) | null;
20
+ winnerGoalId?: (string | null | undefined) | null;
19
21
  winnerThreshold?: number | null;
20
22
  }
21
23
  }
@@ -39,5 +39,7 @@ exports.CreateAbTestsRequest = core.serialization.object({
39
39
  testType: CreateAbTestsRequestTestType_js_1.CreateAbTestsRequestTestType.optional(),
40
40
  variants: core.serialization.list(CreateAbTestsRequestVariantsItem_js_1.CreateAbTestsRequestVariantsItem).optional(),
41
41
  winnerCriteria: CreateAbTestsRequestWinnerCriteria_js_1.CreateAbTestsRequestWinnerCriteria.optional(),
42
+ winnerEventName: core.serialization.string().optionalNullable(),
43
+ winnerGoalId: core.serialization.string().optionalNullable(),
42
44
  winnerThreshold: core.serialization.number().optional(),
43
45
  });
@@ -9,12 +9,15 @@ export declare namespace UpdateAbTestsRequest {
9
9
  autoSelectWinner?: boolean | null;
10
10
  cancelSampleUpdate?: boolean | null;
11
11
  confirmLiveChange?: boolean | null;
12
+ endTestNow?: boolean | null;
12
13
  expectedUpdatedAt?: string | null;
13
14
  name?: string | null;
14
15
  testDurationMinutes?: number | null;
15
16
  testPercentage?: number | null;
16
17
  testType?: UpdateAbTestsRequestTestType.Raw | null;
17
18
  winnerCriteria?: UpdateAbTestsRequestWinnerCriteria.Raw | null;
19
+ winnerEventName?: (string | null | undefined) | null;
20
+ winnerGoalId?: (string | null | undefined) | null;
18
21
  winnerThreshold?: number | null;
19
22
  }
20
23
  }
@@ -32,11 +32,14 @@ exports.UpdateAbTestsRequest = core.serialization.object({
32
32
  autoSelectWinner: core.serialization.boolean().optional(),
33
33
  cancelSampleUpdate: core.serialization.boolean().optional(),
34
34
  confirmLiveChange: core.serialization.boolean().optional(),
35
+ endTestNow: core.serialization.boolean().optional(),
35
36
  expectedUpdatedAt: core.serialization.date().optional(),
36
37
  name: core.serialization.string().optional(),
37
38
  testDurationMinutes: core.serialization.number().optional(),
38
39
  testPercentage: core.serialization.number().optional(),
39
40
  testType: UpdateAbTestsRequestTestType_js_1.UpdateAbTestsRequestTestType.optional(),
40
41
  winnerCriteria: UpdateAbTestsRequestWinnerCriteria_js_1.UpdateAbTestsRequestWinnerCriteria.optional(),
42
+ winnerEventName: core.serialization.string().optionalNullable(),
43
+ winnerGoalId: core.serialization.string().optionalNullable(),
41
44
  winnerThreshold: core.serialization.number().optional(),
42
45
  });
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const CreateAbTestsRequestWinnerCriteria: core.serialization.Schema<serializers.CreateAbTestsRequestWinnerCriteria.Raw, Sequenzy.CreateAbTestsRequestWinnerCriteria>;
5
5
  export declare namespace CreateAbTestsRequestWinnerCriteria {
6
- type Raw = "open_rate" | "click_rate";
6
+ type Raw = "open_rate" | "click_rate" | "goal_conversion_rate" | "goal_value" | "event_rate";
7
7
  }
@@ -26,4 +26,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.CreateAbTestsRequestWinnerCriteria = void 0;
28
28
  const core = __importStar(require("../../../../core/index.js"));
29
- exports.CreateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate"]);
29
+ exports.CreateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate", "goal_conversion_rate", "goal_value", "event_rate"]);
@@ -1,12 +1,14 @@
1
1
  import type * as Sequenzy from "../../../../api/index.js";
2
2
  import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
+ import { GetStatsAbTestsResponseVariantsItemOutcome } from "./GetStatsAbTestsResponseVariantsItemOutcome.js";
4
5
  export declare const GetStatsAbTestsResponseVariantsItem: core.serialization.ObjectSchema<serializers.GetStatsAbTestsResponseVariantsItem.Raw, Sequenzy.GetStatsAbTestsResponseVariantsItem>;
5
6
  export declare namespace GetStatsAbTestsResponseVariantsItem {
6
7
  interface Raw {
7
8
  id?: string | null;
8
9
  isWinner?: boolean | null;
9
10
  label?: string | null;
11
+ outcome?: GetStatsAbTestsResponseVariantsItemOutcome.Raw | null;
10
12
  stats?: Record<string, unknown> | null;
11
13
  subject?: string | null;
12
14
  }