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
@@ -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];
@@ -1,7 +1,8 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
2
+ /** 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. */
3
3
  export const UpdateByExternalIdPathSubscribersRequestStatus = {
4
4
  Active: "active",
5
5
  Unsubscribed: "unsubscribed",
6
6
  Bounced: "bounced",
7
+ Complained: "complained",
7
8
  };
@@ -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];
@@ -1,7 +1,8 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
2
+ /** 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. */
3
3
  export const UpdateByExternalIdSubscribersRequestStatus = {
4
4
  Active: "active",
5
5
  Unsubscribed: "unsubscribed",
6
6
  Bounced: "bounced",
7
+ Complained: "complained",
7
8
  };
@@ -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];
@@ -1,7 +1,8 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** Setting `unsubscribed` performs a full global unsubscribe. */
2
+ /** 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. */
3
3
  export const UpdateSubscribersRequestStatus = {
4
4
  Active: "active",
5
5
  Unsubscribed: "unsubscribed",
6
6
  Bounced: "bounced",
7
+ Complained: "complained",
7
8
  };
@@ -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];
@@ -1,6 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** Metric compared, taken from the test's winner criteria. */
2
+ /** 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. */
3
3
  export const AbTestSignificanceMetric = {
4
4
  OpenRate: "open_rate",
5
5
  ClickRate: "click_rate",
6
+ GoalConversionRate: "goal_conversion_rate",
7
+ GoalValue: "goal_value",
8
+ EventRate: "event_rate",
6
9
  };
@@ -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,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const AbTestWinnerCriteria = {
3
+ OpenRate: "open_rate",
4
+ ClickRate: "click_rate",
5
+ GoalConversionRate: "goal_conversion_rate",
6
+ GoalValue: "goal_value",
7
+ EventRate: "event_rate",
8
+ };
@@ -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";
@@ -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";
@@ -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
  }
@@ -13,5 +13,7 @@ export const CreateAbTestsRequest = core.serialization.object({
13
13
  testType: CreateAbTestsRequestTestType.optional(),
14
14
  variants: core.serialization.list(CreateAbTestsRequestVariantsItem).optional(),
15
15
  winnerCriteria: CreateAbTestsRequestWinnerCriteria.optional(),
16
+ winnerEventName: core.serialization.string().optionalNullable(),
17
+ winnerGoalId: core.serialization.string().optionalNullable(),
16
18
  winnerThreshold: core.serialization.number().optional(),
17
19
  });
@@ -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
  }
@@ -6,11 +6,14 @@ export const UpdateAbTestsRequest = core.serialization.object({
6
6
  autoSelectWinner: core.serialization.boolean().optional(),
7
7
  cancelSampleUpdate: core.serialization.boolean().optional(),
8
8
  confirmLiveChange: core.serialization.boolean().optional(),
9
+ endTestNow: core.serialization.boolean().optional(),
9
10
  expectedUpdatedAt: core.serialization.date().optional(),
10
11
  name: core.serialization.string().optional(),
11
12
  testDurationMinutes: core.serialization.number().optional(),
12
13
  testPercentage: core.serialization.number().optional(),
13
14
  testType: UpdateAbTestsRequestTestType.optional(),
14
15
  winnerCriteria: UpdateAbTestsRequestWinnerCriteria.optional(),
16
+ winnerEventName: core.serialization.string().optionalNullable(),
17
+ winnerGoalId: core.serialization.string().optionalNullable(),
15
18
  winnerThreshold: core.serialization.number().optional(),
16
19
  });
@@ -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
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.js";
3
- export const CreateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate"]);
3
+ export const 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
  }
@@ -1,9 +1,11 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.js";
3
+ import { GetStatsAbTestsResponseVariantsItemOutcome } from "./GetStatsAbTestsResponseVariantsItemOutcome.js";
3
4
  export const GetStatsAbTestsResponseVariantsItem = core.serialization.object({
4
5
  id: core.serialization.string().optional(),
5
6
  isWinner: core.serialization.boolean().optional(),
6
7
  label: core.serialization.string().optional(),
8
+ outcome: GetStatsAbTestsResponseVariantsItemOutcome.optional(),
7
9
  stats: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
8
10
  subject: core.serialization.string().optional(),
9
11
  });
@@ -0,0 +1,13 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const GetStatsAbTestsResponseVariantsItemOutcome: core.serialization.ObjectSchema<serializers.GetStatsAbTestsResponseVariantsItemOutcome.Raw, Sequenzy.GetStatsAbTestsResponseVariantsItemOutcome>;
5
+ export declare namespace GetStatsAbTestsResponseVariantsItemOutcome {
6
+ interface Raw {
7
+ conversionRate?: number | null;
8
+ convertedRecipients?: number | null;
9
+ deliveries?: number | null;
10
+ value?: number | null;
11
+ valuePerDelivery?: number | null;
12
+ }
13
+ }
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const GetStatsAbTestsResponseVariantsItemOutcome = core.serialization.object({
4
+ conversionRate: core.serialization.number().optional(),
5
+ convertedRecipients: core.serialization.number().optional(),
6
+ deliveries: core.serialization.number().optional(),
7
+ value: core.serialization.number().optional(),
8
+ valuePerDelivery: core.serialization.number().optional(),
9
+ });
@@ -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 UpdateAbTestsRequestWinnerCriteria: core.serialization.Schema<serializers.UpdateAbTestsRequestWinnerCriteria.Raw, Sequenzy.UpdateAbTestsRequestWinnerCriteria>;
5
5
  export declare namespace UpdateAbTestsRequestWinnerCriteria {
6
- type Raw = "open_rate" | "click_rate";
6
+ type Raw = "open_rate" | "click_rate" | "goal_conversion_rate" | "goal_value" | "event_rate";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.js";
3
- export const UpdateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate"]);
3
+ export const UpdateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate", "goal_conversion_rate", "goal_value", "event_rate"]);
@@ -9,6 +9,7 @@ export * from "./GetAbTestsResponse.js";
9
9
  export * from "./GetStatsAbTestsRequestPeriod.js";
10
10
  export * from "./GetStatsAbTestsResponse.js";
11
11
  export * from "./GetStatsAbTestsResponseVariantsItem.js";
12
+ export * from "./GetStatsAbTestsResponseVariantsItemOutcome.js";
12
13
  export * from "./ListAbTestsResponse.js";
13
14
  export * from "./RestartAbTestsRequestTestType.js";
14
15
  export * from "./RestartAbTestsResponse.js";
@@ -9,6 +9,7 @@ export * from "./GetAbTestsResponse.js";
9
9
  export * from "./GetStatsAbTestsRequestPeriod.js";
10
10
  export * from "./GetStatsAbTestsResponse.js";
11
11
  export * from "./GetStatsAbTestsResponseVariantsItem.js";
12
+ export * from "./GetStatsAbTestsResponseVariantsItemOutcome.js";
12
13
  export * from "./ListAbTestsResponse.js";
13
14
  export * from "./RestartAbTestsRequestTestType.js";
14
15
  export * from "./RestartAbTestsResponse.js";
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const GetMetricsBreakdownRequestBy: core.serialization.Schema<serializers.GetMetricsBreakdownRequestBy.Raw, Sequenzy.GetMetricsBreakdownRequestBy>;
5
+ export declare namespace GetMetricsBreakdownRequestBy {
6
+ type Raw = "email" | "sequence" | "email_type" | "mailbox_provider" | "recipient_domain";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const GetMetricsBreakdownRequestBy = core.serialization.enum_(["email", "sequence", "email_type", "mailbox_provider", "recipient_domain"]);
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const GetMetricsBreakdownRequestEmailType: core.serialization.Schema<serializers.GetMetricsBreakdownRequestEmailType.Raw, Sequenzy.GetMetricsBreakdownRequestEmailType>;
5
+ export declare namespace GetMetricsBreakdownRequestEmailType {
6
+ type Raw = "campaign" | "transactional" | "sequence";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const GetMetricsBreakdownRequestEmailType = core.serialization.enum_(["campaign", "transactional", "sequence"]);
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const GetMetricsBreakdownRequestPeriod: core.serialization.Schema<serializers.GetMetricsBreakdownRequestPeriod.Raw, Sequenzy.GetMetricsBreakdownRequestPeriod>;
5
+ export declare namespace GetMetricsBreakdownRequestPeriod {
6
+ type Raw = "1h" | "24h" | "7d" | "30d" | "90d";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const GetMetricsBreakdownRequestPeriod = core.serialization.enum_(["1h", "24h", "7d", "30d", "90d"]);
@@ -0,0 +1,19 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { GetMetricsBreakdownResponseRowsItem } from "./GetMetricsBreakdownResponseRowsItem.js";
5
+ export declare const GetMetricsBreakdownResponse: core.serialization.ObjectSchema<serializers.GetMetricsBreakdownResponse.Raw, Sequenzy.GetMetricsBreakdownResponse>;
6
+ export declare namespace GetMetricsBreakdownResponse {
7
+ interface Raw {
8
+ by: string;
9
+ emailType?: string | null;
10
+ end: string;
11
+ mailboxProvider?: string | null;
12
+ period?: string | null;
13
+ recipientDomain?: string | null;
14
+ rows: GetMetricsBreakdownResponseRowsItem.Raw[];
15
+ source?: string | null;
16
+ start: string;
17
+ success: boolean;
18
+ }
19
+ }
@@ -0,0 +1,15 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ import { GetMetricsBreakdownResponseRowsItem } from "./GetMetricsBreakdownResponseRowsItem.js";
4
+ export const GetMetricsBreakdownResponse = core.serialization.object({
5
+ by: core.serialization.string(),
6
+ emailType: core.serialization.string().optional(),
7
+ end: core.serialization.date(),
8
+ mailboxProvider: core.serialization.string().optional(),
9
+ period: core.serialization.string().optional(),
10
+ recipientDomain: core.serialization.string().optional(),
11
+ rows: core.serialization.list(GetMetricsBreakdownResponseRowsItem),
12
+ source: core.serialization.string().optional(),
13
+ start: core.serialization.date(),
14
+ success: core.serialization.boolean(),
15
+ });
@@ -0,0 +1,26 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const GetMetricsBreakdownResponseRowsItem: core.serialization.ObjectSchema<serializers.GetMetricsBreakdownResponseRowsItem.Raw, Sequenzy.GetMetricsBreakdownResponseRowsItem>;
5
+ export declare namespace GetMetricsBreakdownResponseRowsItem {
6
+ interface Raw {
7
+ bounced: number;
8
+ bounceRate: number;
9
+ clicked: number;
10
+ clickRate: number;
11
+ complained: number;
12
+ conversions?: number | null;
13
+ delivered: number;
14
+ deliveryRate: number;
15
+ detail?: (string | null | undefined) | null;
16
+ filter?: (Record<string, unknown> | null | undefined) | null;
17
+ key: string;
18
+ label: string;
19
+ opened: number;
20
+ openRate: number;
21
+ revenue?: number | null;
22
+ sent: number;
23
+ unsubscribed: number;
24
+ unsubscribeRate: number;
25
+ }
26
+ }
@@ -0,0 +1,22 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const GetMetricsBreakdownResponseRowsItem = core.serialization.object({
4
+ bounced: core.serialization.number(),
5
+ bounceRate: core.serialization.number(),
6
+ clicked: core.serialization.number(),
7
+ clickRate: core.serialization.number(),
8
+ complained: core.serialization.number(),
9
+ conversions: core.serialization.number().optional(),
10
+ delivered: core.serialization.number(),
11
+ deliveryRate: core.serialization.number(),
12
+ detail: core.serialization.string().optionalNullable(),
13
+ filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optionalNullable(),
14
+ key: core.serialization.string(),
15
+ label: core.serialization.string(),
16
+ opened: core.serialization.number(),
17
+ openRate: core.serialization.number(),
18
+ revenue: core.serialization.number().optional(),
19
+ sent: core.serialization.number(),
20
+ unsubscribed: core.serialization.number(),
21
+ unsubscribeRate: core.serialization.number(),
22
+ });
@@ -12,6 +12,8 @@ export declare namespace GetMetricsResponse {
12
12
  emailType?: GetMetricsResponseEmailType.Raw | null;
13
13
  mailboxProvider?: string | null;
14
14
  period?: string | null;
15
+ recipientDomain?: string | null;
16
+ source?: string | null;
15
17
  stats?: EngagementStats.Raw | null;
16
18
  subscriberCount?: number | null;
17
19
  success?: boolean | null;
@@ -9,6 +9,8 @@ export const GetMetricsResponse = core.serialization.object({
9
9
  emailType: GetMetricsResponseEmailType.optional(),
10
10
  mailboxProvider: core.serialization.string().optional(),
11
11
  period: core.serialization.string().optional(),
12
+ recipientDomain: core.serialization.string().optional(),
13
+ source: core.serialization.string().optional(),
12
14
  stats: EngagementStats.optional(),
13
15
  subscriberCount: core.serialization.number().optional(),
14
16
  success: core.serialization.boolean().optional(),
@@ -11,6 +11,11 @@ export * from "./GetLinkClickMetricsRequestEmailType.js";
11
11
  export * from "./GetLinkClickMetricsRequestPeriod.js";
12
12
  export * from "./GetLinkClickMetricsResponse.js";
13
13
  export * from "./GetLinkClickMetricsResponseEmailType.js";
14
+ export * from "./GetMetricsBreakdownRequestBy.js";
15
+ export * from "./GetMetricsBreakdownRequestEmailType.js";
16
+ export * from "./GetMetricsBreakdownRequestPeriod.js";
17
+ export * from "./GetMetricsBreakdownResponse.js";
18
+ export * from "./GetMetricsBreakdownResponseRowsItem.js";
14
19
  export * from "./GetMetricsRequestEmailType.js";
15
20
  export * from "./GetMetricsRequestPeriod.js";
16
21
  export * from "./GetMetricsResponse.js";
@@ -11,6 +11,11 @@ export * from "./GetLinkClickMetricsRequestEmailType.js";
11
11
  export * from "./GetLinkClickMetricsRequestPeriod.js";
12
12
  export * from "./GetLinkClickMetricsResponse.js";
13
13
  export * from "./GetLinkClickMetricsResponseEmailType.js";
14
+ export * from "./GetMetricsBreakdownRequestBy.js";
15
+ export * from "./GetMetricsBreakdownRequestEmailType.js";
16
+ export * from "./GetMetricsBreakdownRequestPeriod.js";
17
+ export * from "./GetMetricsBreakdownResponse.js";
18
+ export * from "./GetMetricsBreakdownResponseRowsItem.js";
14
19
  export * from "./GetMetricsRequestEmailType.js";
15
20
  export * from "./GetMetricsRequestPeriod.js";
16
21
  export * from "./GetMetricsResponse.js";
@@ -0,0 +1,15 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { ListSuggestionsIntegrationsResponsePaymentProviders } from "./ListSuggestionsIntegrationsResponsePaymentProviders.js";
5
+ import { ListSuggestionsIntegrationsResponseSuggestionsItem } from "./ListSuggestionsIntegrationsResponseSuggestionsItem.js";
6
+ export declare const ListSuggestionsIntegrationsResponse: core.serialization.ObjectSchema<serializers.ListSuggestionsIntegrationsResponse.Raw, Sequenzy.ListSuggestionsIntegrationsResponse>;
7
+ export declare namespace ListSuggestionsIntegrationsResponse {
8
+ interface Raw {
9
+ paymentProviders?: ListSuggestionsIntegrationsResponsePaymentProviders.Raw | null;
10
+ scanComplete: boolean;
11
+ success: boolean;
12
+ suggestions: ListSuggestionsIntegrationsResponseSuggestionsItem.Raw[];
13
+ websiteUrl?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ import { ListSuggestionsIntegrationsResponsePaymentProviders } from "./ListSuggestionsIntegrationsResponsePaymentProviders.js";
4
+ import { ListSuggestionsIntegrationsResponseSuggestionsItem } from "./ListSuggestionsIntegrationsResponseSuggestionsItem.js";
5
+ export const ListSuggestionsIntegrationsResponse = core.serialization.object({
6
+ paymentProviders: ListSuggestionsIntegrationsResponsePaymentProviders.nullable(),
7
+ scanComplete: core.serialization.boolean(),
8
+ success: core.serialization.boolean(),
9
+ suggestions: core.serialization.list(ListSuggestionsIntegrationsResponseSuggestionsItem),
10
+ websiteUrl: core.serialization.string().nullable(),
11
+ });