sequenzy 2.1.60 → 2.1.82

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 (855) hide show
  1. package/dist/cjs/api/resources/abTests/client/Client.d.ts +1 -1
  2. package/dist/cjs/api/resources/abTests/client/Client.js +1 -1
  3. package/dist/cjs/api/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +1 -1
  4. package/dist/cjs/api/resources/analytics/client/Client.d.ts +40 -0
  5. package/dist/cjs/api/resources/analytics/client/Client.js +156 -0
  6. package/dist/cjs/api/resources/analytics/client/requests/ListCampaignRepliesLegacyRequest.d.ts +14 -0
  7. package/dist/cjs/api/resources/analytics/client/requests/ListCampaignRepliesLegacyRequest.js +3 -0
  8. package/dist/cjs/api/resources/analytics/client/requests/ListCampaignRepliesRequest.d.ts +14 -0
  9. package/dist/cjs/api/resources/analytics/client/requests/ListCampaignRepliesRequest.js +3 -0
  10. package/dist/cjs/api/resources/analytics/client/requests/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/analytics/types/ListCampaignRepliesLegacyResponse.d.ts +7 -0
  12. package/dist/cjs/api/resources/analytics/types/ListCampaignRepliesLegacyResponse.js +3 -0
  13. package/dist/cjs/api/resources/analytics/types/ListCampaignRepliesResponse.d.ts +7 -0
  14. package/dist/cjs/api/resources/analytics/types/ListCampaignRepliesResponse.js +3 -0
  15. package/dist/cjs/api/resources/analytics/types/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/analytics/types/index.js +2 -0
  17. package/dist/cjs/api/resources/campaigns/client/Client.d.ts +1 -1
  18. package/dist/cjs/api/resources/campaigns/client/Client.js +1 -1
  19. package/dist/cjs/api/resources/campaigns/client/requests/ResumeCampaignsRequest.d.ts +1 -1
  20. package/dist/cjs/api/resources/campaigns/client/requests/ScheduleCampaignsRequest.d.ts +1 -1
  21. package/dist/cjs/api/resources/inApp/client/Client.d.ts +326 -1
  22. package/dist/cjs/api/resources/inApp/client/Client.js +1295 -83
  23. package/dist/cjs/api/resources/inApp/client/requests/CreateInAppCampaignRequest.d.ts +15 -0
  24. package/dist/cjs/api/resources/inApp/client/requests/CreateInAppCampaignRequest.js +3 -0
  25. package/dist/cjs/api/resources/inApp/client/requests/CreateInAppPlacementRequest.d.ts +10 -0
  26. package/dist/cjs/api/resources/inApp/client/requests/CreateInAppPlacementRequest.js +3 -0
  27. package/dist/cjs/api/resources/inApp/client/requests/DeleteInAppPlacementRequest.d.ts +10 -0
  28. package/dist/cjs/api/resources/inApp/client/requests/DeleteInAppPlacementRequest.js +3 -0
  29. package/dist/cjs/api/resources/inApp/client/requests/DuplicateInAppCampaignRequest.d.ts +11 -0
  30. package/dist/cjs/api/resources/inApp/client/requests/DuplicateInAppCampaignRequest.js +3 -0
  31. package/dist/cjs/api/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.d.ts +12 -0
  32. package/dist/cjs/api/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.js +3 -0
  33. package/dist/cjs/api/resources/inApp/client/requests/GetInAppCampaignRequest.d.ts +9 -0
  34. package/dist/cjs/api/resources/inApp/client/requests/GetInAppCampaignRequest.js +3 -0
  35. package/dist/cjs/api/resources/inApp/client/requests/GetInAppCampaignStatsRequest.d.ts +9 -0
  36. package/dist/cjs/api/resources/inApp/client/requests/GetInAppCampaignStatsRequest.js +3 -0
  37. package/dist/cjs/api/resources/inApp/client/requests/GetInAppPlacementContentRequest.d.ts +15 -0
  38. package/dist/cjs/api/resources/inApp/client/requests/GetInAppPlacementContentRequest.js +3 -0
  39. package/dist/cjs/api/resources/inApp/client/requests/GetInAppPlacementRequest.d.ts +10 -0
  40. package/dist/cjs/api/resources/inApp/client/requests/GetInAppPlacementRequest.js +3 -0
  41. package/dist/cjs/api/resources/inApp/client/requests/ListInAppCampaignsRequest.d.ts +11 -0
  42. package/dist/cjs/api/resources/inApp/client/requests/ListInAppCampaignsRequest.js +3 -0
  43. package/dist/cjs/api/resources/inApp/client/requests/ListInAppMessagesRequest.d.ts +3 -0
  44. package/dist/cjs/api/resources/inApp/client/requests/SendInAppCampaignRequest.d.ts +11 -0
  45. package/dist/cjs/api/resources/inApp/client/requests/SendInAppCampaignRequest.js +3 -0
  46. package/dist/cjs/api/resources/inApp/client/requests/StopInAppCampaignRequest.d.ts +9 -0
  47. package/dist/cjs/api/resources/inApp/client/requests/StopInAppCampaignRequest.js +3 -0
  48. package/dist/cjs/api/resources/inApp/client/requests/UnscheduleInAppCampaignRequest.d.ts +9 -0
  49. package/dist/cjs/api/resources/inApp/client/requests/UnscheduleInAppCampaignRequest.js +3 -0
  50. package/dist/cjs/api/resources/inApp/client/requests/UpdateInAppCampaignRequest.d.ts +18 -0
  51. package/dist/cjs/api/resources/inApp/client/requests/UpdateInAppCampaignRequest.js +3 -0
  52. package/dist/cjs/api/resources/inApp/client/requests/UpdateInAppPlacementRequest.d.ts +13 -0
  53. package/dist/cjs/api/resources/inApp/client/requests/UpdateInAppPlacementRequest.js +3 -0
  54. package/dist/cjs/api/resources/inApp/client/requests/index.d.ts +15 -0
  55. package/dist/cjs/api/resources/inApp/types/CreateInAppCampaignRequestPriority.d.ts +7 -0
  56. package/dist/cjs/api/resources/inApp/types/CreateInAppCampaignRequestPriority.js +10 -0
  57. package/dist/cjs/api/resources/inApp/types/CreateInAppCampaignResponse.d.ts +5 -0
  58. package/dist/cjs/api/resources/inApp/types/CreateInAppCampaignResponse.js +3 -0
  59. package/dist/cjs/api/resources/inApp/types/CreateInAppPlacementResponse.d.ts +5 -0
  60. package/dist/cjs/api/resources/inApp/types/CreateInAppPlacementResponse.js +3 -0
  61. package/dist/cjs/api/resources/inApp/types/DeleteInAppPlacementResponse.d.ts +5 -0
  62. package/dist/cjs/api/resources/inApp/types/DeleteInAppPlacementResponse.js +3 -0
  63. package/dist/cjs/api/resources/inApp/types/DuplicateInAppCampaignResponse.d.ts +5 -0
  64. package/dist/cjs/api/resources/inApp/types/DuplicateInAppCampaignResponse.js +3 -0
  65. package/dist/cjs/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +4 -0
  66. package/dist/cjs/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +3 -0
  67. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignResponse.d.ts +6 -0
  68. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignResponse.js +3 -0
  69. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignStatsResponse.d.ts +10 -0
  70. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignStatsResponse.js +3 -0
  71. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignStatsResponseState.d.ts +8 -0
  72. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignStatsResponseState.js +11 -0
  73. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignStatsResponseStatus.d.ts +7 -0
  74. package/dist/cjs/api/resources/inApp/types/GetInAppCampaignStatsResponseStatus.js +10 -0
  75. package/dist/cjs/api/resources/inApp/types/GetInAppPlacementContentResponse.d.ts +6 -0
  76. package/dist/cjs/api/resources/inApp/types/GetInAppPlacementContentResponse.js +3 -0
  77. package/dist/cjs/api/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.d.ts +5 -0
  78. package/dist/cjs/api/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.js +3 -0
  79. package/dist/cjs/api/resources/inApp/types/GetInAppPlacementResponse.d.ts +5 -0
  80. package/dist/cjs/api/resources/inApp/types/GetInAppPlacementResponse.js +3 -0
  81. package/dist/cjs/api/resources/inApp/types/ListInAppCampaignsRequestStatus.d.ts +7 -0
  82. package/dist/cjs/api/resources/inApp/types/ListInAppCampaignsRequestStatus.js +10 -0
  83. package/dist/cjs/api/resources/inApp/types/ListInAppCampaignsResponse.d.ts +6 -0
  84. package/dist/cjs/api/resources/inApp/types/ListInAppCampaignsResponse.js +3 -0
  85. package/dist/cjs/api/resources/inApp/types/ListInAppMessagesRequestDeliver.d.ts +5 -0
  86. package/dist/cjs/api/resources/inApp/types/ListInAppMessagesRequestDeliver.js +8 -0
  87. package/dist/cjs/api/resources/inApp/types/ListInAppMessagesRequestKind.d.ts +1 -0
  88. package/dist/cjs/api/resources/inApp/types/ListInAppMessagesRequestKind.js +1 -0
  89. package/dist/cjs/api/resources/inApp/types/ListInAppPlacementsResponse.d.ts +5 -0
  90. package/dist/cjs/api/resources/inApp/types/ListInAppPlacementsResponse.js +3 -0
  91. package/dist/cjs/api/resources/inApp/types/SendInAppCampaignResponse.d.ts +6 -0
  92. package/dist/cjs/api/resources/inApp/types/SendInAppCampaignResponse.js +3 -0
  93. package/dist/cjs/api/resources/inApp/types/StopInAppCampaignResponse.d.ts +5 -0
  94. package/dist/cjs/api/resources/inApp/types/StopInAppCampaignResponse.js +3 -0
  95. package/dist/cjs/api/resources/inApp/types/UnscheduleInAppCampaignResponse.d.ts +5 -0
  96. package/dist/cjs/api/resources/inApp/types/UnscheduleInAppCampaignResponse.js +3 -0
  97. package/dist/cjs/api/resources/inApp/types/UpdateInAppCampaignRequestPriority.d.ts +7 -0
  98. package/dist/cjs/api/resources/inApp/types/UpdateInAppCampaignRequestPriority.js +10 -0
  99. package/dist/cjs/api/resources/inApp/types/UpdateInAppCampaignResponse.d.ts +5 -0
  100. package/dist/cjs/api/resources/inApp/types/UpdateInAppCampaignResponse.js +3 -0
  101. package/dist/cjs/api/resources/inApp/types/UpdateInAppPlacementResponse.d.ts +5 -0
  102. package/dist/cjs/api/resources/inApp/types/UpdateInAppPlacementResponse.js +3 -0
  103. package/dist/cjs/api/resources/inApp/types/index.d.ts +23 -0
  104. package/dist/cjs/api/resources/inApp/types/index.js +23 -0
  105. package/dist/cjs/api/resources/push/client/Client.d.ts +46 -6
  106. package/dist/cjs/api/resources/push/client/Client.js +168 -7
  107. package/dist/cjs/api/resources/push/client/requests/CreatePushCampaignRequest.d.ts +1 -0
  108. package/dist/cjs/api/resources/push/client/requests/EndLiveActivityRequest.d.ts +3 -1
  109. package/dist/cjs/api/resources/push/client/requests/EstimatePushCampaignRecipientsRequest.d.ts +2 -0
  110. package/dist/cjs/api/resources/push/client/requests/ListLiveActivitiesRequest.d.ts +2 -0
  111. package/dist/cjs/api/resources/push/client/requests/SendPushCampaignRequest.d.ts +8 -0
  112. package/dist/cjs/api/resources/push/client/requests/StartLiveActivityRequest.d.ts +7 -1
  113. package/dist/cjs/api/resources/push/client/requests/TranslatePushCampaignRequest.d.ts +14 -0
  114. package/dist/cjs/api/resources/push/client/requests/TranslatePushCampaignRequest.js +3 -0
  115. package/dist/cjs/api/resources/push/client/requests/TranslatePushContentRequest.d.ts +16 -0
  116. package/dist/cjs/api/resources/push/client/requests/TranslatePushContentRequest.js +3 -0
  117. package/dist/cjs/api/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +3 -1
  118. package/dist/cjs/api/resources/push/client/requests/UpdatePushCampaignRequest.d.ts +9 -0
  119. package/dist/cjs/api/resources/push/client/requests/index.d.ts +2 -0
  120. package/dist/cjs/api/resources/push/types/EstimatePushCampaignRecipientsResponse.d.ts +3 -0
  121. package/dist/cjs/api/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.d.ts +11 -0
  122. package/dist/cjs/api/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.js +3 -0
  123. package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestPlatform.d.ts +5 -0
  124. package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestPlatform.js +8 -0
  125. package/dist/cjs/api/resources/push/types/TranslatePushCampaignResponse.d.ts +4 -0
  126. package/dist/cjs/api/resources/push/types/TranslatePushCampaignResponse.js +3 -0
  127. package/dist/cjs/api/resources/push/types/TranslatePushContentResponse.d.ts +5 -0
  128. package/dist/cjs/api/resources/push/types/TranslatePushContentResponse.js +3 -0
  129. package/dist/cjs/api/resources/push/types/index.d.ts +4 -0
  130. package/dist/cjs/api/resources/push/types/index.js +4 -0
  131. package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +2 -0
  132. package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.d.ts +9 -0
  133. package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.js +3 -0
  134. package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.d.ts +13 -0
  135. package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.js +3 -0
  136. package/dist/cjs/api/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +4 -0
  137. package/dist/cjs/api/resources/templates/types/index.d.ts +2 -0
  138. package/dist/cjs/api/resources/templates/types/index.js +2 -0
  139. package/dist/cjs/api/resources/webTrackingKeys/client/Client.d.ts +4 -5
  140. package/dist/cjs/api/resources/webTrackingKeys/client/Client.js +7 -6
  141. package/dist/cjs/api/resources/webTrackingKeys/client/requests/MintIdentityWebTrackingKeysRequest.d.ts +5 -4
  142. package/dist/cjs/api/resources/webTrackingKeys/types/MintIdentityWebTrackingKeysResponse.d.ts +3 -2
  143. package/dist/cjs/api/types/CampaignChannel.d.ts +2 -1
  144. package/dist/cjs/api/types/CampaignChannel.js +2 -1
  145. package/dist/cjs/api/types/CampaignReply.d.ts +19 -0
  146. package/dist/cjs/api/types/CampaignReply.js +3 -0
  147. package/dist/cjs/api/types/InAppCampaign.d.ts +20 -0
  148. package/dist/cjs/api/types/InAppCampaign.js +3 -0
  149. package/dist/cjs/api/types/InAppCampaignMessage.d.ts +28 -0
  150. package/dist/cjs/api/types/InAppCampaignMessage.js +3 -0
  151. package/dist/cjs/api/types/InAppCampaignMessageButtonsItem.d.ts +7 -0
  152. package/dist/cjs/api/types/InAppCampaignMessageButtonsItem.js +3 -0
  153. package/dist/cjs/api/types/InAppCampaignMessageButtonsItemAction.d.ts +6 -0
  154. package/dist/cjs/api/types/InAppCampaignMessageButtonsItemAction.js +9 -0
  155. package/dist/cjs/api/types/InAppCampaignMessageFormat.d.ts +8 -0
  156. package/dist/cjs/api/types/InAppCampaignMessageFormat.js +11 -0
  157. package/dist/cjs/api/types/InAppCampaignMessageImagePlacement.d.ts +5 -0
  158. package/dist/cjs/api/types/InAppCampaignMessageImagePlacement.js +8 -0
  159. package/dist/cjs/api/types/InAppCampaignMessageKind.d.ts +5 -0
  160. package/dist/cjs/api/types/InAppCampaignMessageKind.js +8 -0
  161. package/dist/cjs/api/types/InAppCampaignMessagePosition.d.ts +7 -0
  162. package/dist/cjs/api/types/InAppCampaignMessagePosition.js +10 -0
  163. package/dist/cjs/api/types/InAppCampaignPriority.d.ts +6 -0
  164. package/dist/cjs/api/types/InAppCampaignPriority.js +9 -0
  165. package/dist/cjs/api/types/InAppCampaignState.d.ts +9 -0
  166. package/dist/cjs/api/types/InAppCampaignState.js +12 -0
  167. package/dist/cjs/api/types/InAppCampaignStats.d.ts +16 -0
  168. package/dist/cjs/api/types/InAppCampaignStats.js +3 -0
  169. package/dist/cjs/api/types/InAppCampaignStatsButtonsItem.d.ts +4 -0
  170. package/dist/cjs/api/types/InAppCampaignStatsButtonsItem.js +3 -0
  171. package/dist/cjs/api/types/InAppCampaignStatus.d.ts +8 -0
  172. package/dist/cjs/api/types/InAppCampaignStatus.js +11 -0
  173. package/dist/cjs/api/types/InAppCampaignType.d.ts +4 -0
  174. package/dist/cjs/api/types/InAppCampaignType.js +7 -0
  175. package/dist/cjs/api/types/InAppMessage.d.ts +9 -1
  176. package/dist/cjs/api/types/InAppMessageKind.d.ts +2 -1
  177. package/dist/cjs/api/types/InAppMessageKind.js +2 -1
  178. package/dist/cjs/api/types/InAppMessageLayout.d.ts +7 -0
  179. package/dist/cjs/api/types/InAppMessageLayout.js +10 -0
  180. package/dist/cjs/api/types/InAppMessagePriority.d.ts +7 -0
  181. package/dist/cjs/api/types/InAppMessagePriority.js +10 -0
  182. package/dist/cjs/api/types/InAppPlacement.d.ts +16 -0
  183. package/dist/cjs/api/types/InAppPlacement.js +3 -0
  184. package/dist/cjs/api/types/InAppPlacementInput.d.ts +6 -0
  185. package/dist/cjs/api/types/InAppPlacementInput.js +3 -0
  186. package/dist/cjs/api/types/InAppPlacementStats.d.ts +16 -0
  187. package/dist/cjs/api/types/InAppPlacementStats.js +3 -0
  188. package/dist/cjs/api/types/InAppPlacementWithStats.d.ts +4 -0
  189. package/dist/cjs/api/types/InAppPlacementWithStats.js +3 -0
  190. package/dist/cjs/api/types/LiveActivityDispatch.d.ts +4 -0
  191. package/dist/cjs/api/types/LiveActivityDispatchPlatforms.d.ts +7 -0
  192. package/dist/cjs/api/types/LiveActivityDispatchPlatforms.js +3 -0
  193. package/dist/cjs/api/types/LiveActivityToken.d.ts +5 -3
  194. package/dist/cjs/api/types/LiveActivityTokenPlatform.d.ts +6 -0
  195. package/dist/cjs/api/types/LiveActivityTokenPlatform.js +9 -0
  196. package/dist/cjs/api/types/PushCampaign.d.ts +8 -0
  197. package/dist/cjs/api/types/PushCampaignContent.d.ts +2 -0
  198. package/dist/cjs/api/types/PushLocalization.d.ts +20 -0
  199. package/dist/cjs/api/types/PushLocalization.js +3 -0
  200. package/dist/cjs/api/types/PushLocalizationList.d.ts +5 -0
  201. package/dist/cjs/api/types/PushLocalizationList.js +3 -0
  202. package/dist/cjs/api/types/PushLocalizationOrigin.d.ts +6 -0
  203. package/dist/cjs/api/types/PushLocalizationOrigin.js +9 -0
  204. package/dist/cjs/api/types/PushTranslationResult.d.ts +11 -0
  205. package/dist/cjs/api/types/PushTranslationResult.js +3 -0
  206. package/dist/cjs/api/types/PushTranslationResultFailedItem.d.ts +4 -0
  207. package/dist/cjs/api/types/PushTranslationResultFailedItem.js +3 -0
  208. package/dist/cjs/api/types/PushTranslationResultSkippedItem.d.ts +6 -0
  209. package/dist/cjs/api/types/PushTranslationResultSkippedItem.js +3 -0
  210. package/dist/cjs/api/types/PushTranslationResultSkippedItemReason.d.ts +6 -0
  211. package/dist/cjs/api/types/PushTranslationResultSkippedItemReason.js +9 -0
  212. package/dist/cjs/api/types/SequenceBranchPathStepInput.d.ts +2 -0
  213. package/dist/cjs/api/types/SequenceInboundWebhook.d.ts +2 -0
  214. package/dist/cjs/api/types/SequenceInboundWebhookFieldMapping.d.ts +1 -1
  215. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheck.d.ts +7 -0
  216. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheck.js +3 -0
  217. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +5 -0
  218. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +3 -0
  219. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  220. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckStatus.js +10 -0
  221. package/dist/cjs/api/types/SequenceStepInput.d.ts +2 -0
  222. package/dist/cjs/api/types/index.d.ts +33 -0
  223. package/dist/cjs/api/types/index.js +33 -0
  224. package/dist/cjs/serialization/resources/analytics/types/ListCampaignRepliesLegacyResponse.d.ts +14 -0
  225. package/dist/cjs/serialization/resources/analytics/types/ListCampaignRepliesLegacyResponse.js +36 -0
  226. package/dist/cjs/serialization/resources/analytics/types/ListCampaignRepliesResponse.d.ts +14 -0
  227. package/dist/cjs/serialization/resources/analytics/types/ListCampaignRepliesResponse.js +36 -0
  228. package/dist/cjs/serialization/resources/analytics/types/index.d.ts +2 -0
  229. package/dist/cjs/serialization/resources/analytics/types/index.js +2 -0
  230. package/dist/cjs/serialization/resources/inApp/client/requests/CreateInAppCampaignRequest.d.ts +15 -0
  231. package/dist/cjs/serialization/resources/inApp/client/requests/CreateInAppCampaignRequest.js +37 -0
  232. package/dist/cjs/serialization/resources/inApp/client/requests/CreateInAppPlacementRequest.d.ts +10 -0
  233. package/dist/cjs/serialization/resources/inApp/client/requests/CreateInAppPlacementRequest.js +34 -0
  234. package/dist/cjs/serialization/resources/inApp/client/requests/DuplicateInAppCampaignRequest.d.ts +9 -0
  235. package/dist/cjs/serialization/resources/inApp/client/requests/DuplicateInAppCampaignRequest.js +31 -0
  236. package/dist/cjs/serialization/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.d.ts +9 -0
  237. package/dist/cjs/serialization/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.js +31 -0
  238. package/dist/cjs/serialization/resources/inApp/client/requests/SendInAppCampaignRequest.d.ts +9 -0
  239. package/dist/cjs/serialization/resources/inApp/client/requests/SendInAppCampaignRequest.js +31 -0
  240. package/dist/cjs/serialization/resources/inApp/client/requests/UpdateInAppCampaignRequest.d.ts +15 -0
  241. package/dist/cjs/serialization/resources/inApp/client/requests/UpdateInAppCampaignRequest.js +37 -0
  242. package/dist/cjs/serialization/resources/inApp/client/requests/index.d.ts +6 -0
  243. package/dist/cjs/serialization/resources/inApp/client/requests/index.js +13 -1
  244. package/dist/cjs/serialization/resources/inApp/types/CreateInAppCampaignRequestPriority.d.ts +7 -0
  245. package/dist/cjs/serialization/resources/inApp/types/CreateInAppCampaignRequestPriority.js +29 -0
  246. package/dist/cjs/serialization/resources/inApp/types/CreateInAppCampaignResponse.d.ts +11 -0
  247. package/dist/cjs/serialization/resources/inApp/types/CreateInAppCampaignResponse.js +33 -0
  248. package/dist/cjs/serialization/resources/inApp/types/CreateInAppPlacementResponse.d.ts +11 -0
  249. package/dist/cjs/serialization/resources/inApp/types/CreateInAppPlacementResponse.js +33 -0
  250. package/dist/cjs/serialization/resources/inApp/types/DeleteInAppPlacementResponse.d.ts +11 -0
  251. package/dist/cjs/serialization/resources/inApp/types/DeleteInAppPlacementResponse.js +33 -0
  252. package/dist/cjs/serialization/resources/inApp/types/DuplicateInAppCampaignResponse.d.ts +11 -0
  253. package/dist/cjs/serialization/resources/inApp/types/DuplicateInAppCampaignResponse.js +33 -0
  254. package/dist/cjs/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +10 -0
  255. package/dist/cjs/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +32 -0
  256. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignResponse.d.ts +13 -0
  257. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignResponse.js +35 -0
  258. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignStatsResponse.d.ts +17 -0
  259. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignStatsResponse.js +39 -0
  260. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignStatsResponseState.d.ts +7 -0
  261. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignStatsResponseState.js +29 -0
  262. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignStatsResponseStatus.d.ts +7 -0
  263. package/dist/cjs/serialization/resources/inApp/types/GetInAppCampaignStatsResponseStatus.js +29 -0
  264. package/dist/cjs/serialization/resources/inApp/types/GetInAppPlacementContentResponse.d.ts +12 -0
  265. package/dist/cjs/serialization/resources/inApp/types/GetInAppPlacementContentResponse.js +34 -0
  266. package/dist/cjs/serialization/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.d.ts +11 -0
  267. package/dist/cjs/serialization/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.js +33 -0
  268. package/dist/cjs/serialization/resources/inApp/types/GetInAppPlacementResponse.d.ts +11 -0
  269. package/dist/cjs/serialization/resources/inApp/types/GetInAppPlacementResponse.js +33 -0
  270. package/dist/cjs/serialization/resources/inApp/types/ListInAppCampaignsRequestStatus.d.ts +7 -0
  271. package/dist/cjs/serialization/resources/inApp/types/ListInAppCampaignsRequestStatus.js +29 -0
  272. package/dist/cjs/serialization/resources/inApp/types/ListInAppCampaignsResponse.d.ts +12 -0
  273. package/dist/cjs/serialization/resources/inApp/types/ListInAppCampaignsResponse.js +34 -0
  274. package/dist/cjs/serialization/resources/inApp/types/ListInAppMessagesRequestDeliver.d.ts +7 -0
  275. package/dist/cjs/serialization/resources/inApp/types/ListInAppMessagesRequestDeliver.js +29 -0
  276. package/dist/cjs/serialization/resources/inApp/types/ListInAppMessagesRequestKind.d.ts +1 -1
  277. package/dist/cjs/serialization/resources/inApp/types/ListInAppMessagesRequestKind.js +1 -1
  278. package/dist/cjs/serialization/resources/inApp/types/ListInAppPlacementsResponse.d.ts +11 -0
  279. package/dist/cjs/serialization/resources/inApp/types/ListInAppPlacementsResponse.js +33 -0
  280. package/dist/cjs/serialization/resources/inApp/types/SendInAppCampaignResponse.d.ts +12 -0
  281. package/dist/cjs/serialization/resources/inApp/types/SendInAppCampaignResponse.js +34 -0
  282. package/dist/cjs/serialization/resources/inApp/types/StopInAppCampaignResponse.d.ts +11 -0
  283. package/dist/cjs/serialization/resources/inApp/types/StopInAppCampaignResponse.js +33 -0
  284. package/dist/cjs/serialization/resources/inApp/types/UnscheduleInAppCampaignResponse.d.ts +11 -0
  285. package/dist/cjs/serialization/resources/inApp/types/UnscheduleInAppCampaignResponse.js +33 -0
  286. package/dist/cjs/serialization/resources/inApp/types/UpdateInAppCampaignRequestPriority.d.ts +7 -0
  287. package/dist/cjs/serialization/resources/inApp/types/UpdateInAppCampaignRequestPriority.js +29 -0
  288. package/dist/cjs/serialization/resources/inApp/types/UpdateInAppCampaignResponse.d.ts +11 -0
  289. package/dist/cjs/serialization/resources/inApp/types/UpdateInAppCampaignResponse.js +33 -0
  290. package/dist/cjs/serialization/resources/inApp/types/UpdateInAppPlacementResponse.d.ts +11 -0
  291. package/dist/cjs/serialization/resources/inApp/types/UpdateInAppPlacementResponse.js +33 -0
  292. package/dist/cjs/serialization/resources/inApp/types/index.d.ts +23 -0
  293. package/dist/cjs/serialization/resources/inApp/types/index.js +23 -0
  294. package/dist/cjs/serialization/resources/push/client/requests/CreatePushCampaignRequest.d.ts +2 -0
  295. package/dist/cjs/serialization/resources/push/client/requests/CreatePushCampaignRequest.js +2 -0
  296. package/dist/cjs/serialization/resources/push/client/requests/EndLiveActivityRequest.d.ts +1 -0
  297. package/dist/cjs/serialization/resources/push/client/requests/EndLiveActivityRequest.js +1 -0
  298. package/dist/cjs/serialization/resources/push/client/requests/EstimatePushCampaignRecipientsRequest.d.ts +1 -0
  299. package/dist/cjs/serialization/resources/push/client/requests/EstimatePushCampaignRecipientsRequest.js +1 -0
  300. package/dist/cjs/serialization/resources/push/client/requests/SendPushCampaignRequest.d.ts +4 -0
  301. package/dist/cjs/serialization/resources/push/client/requests/SendPushCampaignRequest.js +4 -0
  302. package/dist/cjs/serialization/resources/push/client/requests/StartLiveActivityRequest.d.ts +3 -0
  303. package/dist/cjs/serialization/resources/push/client/requests/StartLiveActivityRequest.js +3 -0
  304. package/dist/cjs/serialization/resources/push/client/requests/TranslatePushCampaignRequest.d.ts +10 -0
  305. package/dist/cjs/serialization/resources/push/client/requests/TranslatePushCampaignRequest.js +32 -0
  306. package/dist/cjs/serialization/resources/push/client/requests/TranslatePushContentRequest.d.ts +14 -0
  307. package/dist/cjs/serialization/resources/push/client/requests/TranslatePushContentRequest.js +36 -0
  308. package/dist/cjs/serialization/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +1 -0
  309. package/dist/cjs/serialization/resources/push/client/requests/UpdateLiveActivityRequest.js +1 -0
  310. package/dist/cjs/serialization/resources/push/client/requests/UpdatePushCampaignRequest.d.ts +6 -0
  311. package/dist/cjs/serialization/resources/push/client/requests/UpdatePushCampaignRequest.js +6 -0
  312. package/dist/cjs/serialization/resources/push/client/requests/index.d.ts +2 -0
  313. package/dist/cjs/serialization/resources/push/client/requests/index.js +5 -1
  314. package/dist/cjs/serialization/resources/push/types/EstimatePushCampaignRecipientsResponse.d.ts +2 -0
  315. package/dist/cjs/serialization/resources/push/types/EstimatePushCampaignRecipientsResponse.js +2 -0
  316. package/dist/cjs/serialization/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.d.ts +11 -0
  317. package/dist/cjs/serialization/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.js +33 -0
  318. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestPlatform.d.ts +7 -0
  319. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestPlatform.js +29 -0
  320. package/dist/cjs/serialization/resources/push/types/TranslatePushCampaignResponse.d.ts +11 -0
  321. package/dist/cjs/serialization/resources/push/types/TranslatePushCampaignResponse.js +35 -0
  322. package/dist/cjs/serialization/resources/push/types/TranslatePushContentResponse.d.ts +11 -0
  323. package/dist/cjs/serialization/resources/push/types/TranslatePushContentResponse.js +35 -0
  324. package/dist/cjs/serialization/resources/push/types/index.d.ts +4 -0
  325. package/dist/cjs/serialization/resources/push/types/index.js +4 -0
  326. package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +2 -0
  327. package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.js +2 -0
  328. package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.d.ts +11 -0
  329. package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.js +33 -0
  330. package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.d.ts +15 -0
  331. package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.js +37 -0
  332. package/dist/cjs/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +2 -0
  333. package/dist/cjs/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.js +2 -0
  334. package/dist/cjs/serialization/resources/templates/types/index.d.ts +2 -0
  335. package/dist/cjs/serialization/resources/templates/types/index.js +2 -0
  336. package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/MintIdentityWebTrackingKeysRequest.d.ts +2 -1
  337. package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/MintIdentityWebTrackingKeysRequest.js +2 -1
  338. package/dist/cjs/serialization/resources/webTrackingKeys/types/MintIdentityWebTrackingKeysResponse.d.ts +2 -1
  339. package/dist/cjs/serialization/resources/webTrackingKeys/types/MintIdentityWebTrackingKeysResponse.js +2 -1
  340. package/dist/cjs/serialization/types/CampaignChannel.d.ts +1 -1
  341. package/dist/cjs/serialization/types/CampaignChannel.js +1 -1
  342. package/dist/cjs/serialization/types/CampaignReply.d.ts +19 -0
  343. package/dist/cjs/serialization/types/CampaignReply.js +41 -0
  344. package/dist/cjs/serialization/types/InAppCampaign.d.ts +26 -0
  345. package/dist/cjs/serialization/types/InAppCampaign.js +50 -0
  346. package/dist/cjs/serialization/types/InAppCampaignMessage.d.ts +29 -0
  347. package/dist/cjs/serialization/types/InAppCampaignMessage.js +51 -0
  348. package/dist/cjs/serialization/types/InAppCampaignMessageButtonsItem.d.ts +12 -0
  349. package/dist/cjs/serialization/types/InAppCampaignMessageButtonsItem.js +34 -0
  350. package/dist/cjs/serialization/types/InAppCampaignMessageButtonsItemAction.d.ts +7 -0
  351. package/dist/cjs/serialization/types/InAppCampaignMessageButtonsItemAction.js +29 -0
  352. package/dist/cjs/serialization/types/InAppCampaignMessageFormat.d.ts +7 -0
  353. package/dist/cjs/serialization/types/InAppCampaignMessageFormat.js +29 -0
  354. package/dist/cjs/serialization/types/InAppCampaignMessageImagePlacement.d.ts +7 -0
  355. package/dist/cjs/serialization/types/InAppCampaignMessageImagePlacement.js +29 -0
  356. package/dist/cjs/serialization/types/InAppCampaignMessageKind.d.ts +7 -0
  357. package/dist/cjs/serialization/types/InAppCampaignMessageKind.js +29 -0
  358. package/dist/cjs/serialization/types/InAppCampaignMessagePosition.d.ts +7 -0
  359. package/dist/cjs/serialization/types/InAppCampaignMessagePosition.js +29 -0
  360. package/dist/cjs/serialization/types/InAppCampaignPriority.d.ts +7 -0
  361. package/dist/cjs/serialization/types/InAppCampaignPriority.js +29 -0
  362. package/dist/cjs/serialization/types/InAppCampaignState.d.ts +7 -0
  363. package/dist/cjs/serialization/types/InAppCampaignState.js +29 -0
  364. package/dist/cjs/serialization/types/InAppCampaignStats.d.ts +17 -0
  365. package/dist/cjs/serialization/types/InAppCampaignStats.js +39 -0
  366. package/dist/cjs/serialization/types/InAppCampaignStatsButtonsItem.d.ts +10 -0
  367. package/dist/cjs/serialization/types/InAppCampaignStatsButtonsItem.js +32 -0
  368. package/dist/cjs/serialization/types/InAppCampaignStatus.d.ts +7 -0
  369. package/dist/cjs/serialization/types/InAppCampaignStatus.js +29 -0
  370. package/dist/cjs/serialization/types/InAppCampaignType.d.ts +7 -0
  371. package/dist/cjs/serialization/types/InAppCampaignType.js +29 -0
  372. package/dist/cjs/serialization/types/InAppMessage.d.ts +6 -0
  373. package/dist/cjs/serialization/types/InAppMessage.js +6 -0
  374. package/dist/cjs/serialization/types/InAppMessageKind.d.ts +1 -1
  375. package/dist/cjs/serialization/types/InAppMessageKind.js +1 -1
  376. package/dist/cjs/serialization/types/InAppMessageLayout.d.ts +7 -0
  377. package/dist/cjs/serialization/types/InAppMessageLayout.js +29 -0
  378. package/dist/cjs/serialization/types/InAppMessagePriority.d.ts +7 -0
  379. package/dist/cjs/serialization/types/InAppMessagePriority.js +29 -0
  380. package/dist/cjs/serialization/types/InAppPlacement.d.ts +15 -0
  381. package/dist/cjs/serialization/types/InAppPlacement.js +37 -0
  382. package/dist/cjs/serialization/types/InAppPlacementInput.d.ts +12 -0
  383. package/dist/cjs/serialization/types/InAppPlacementInput.js +34 -0
  384. package/dist/cjs/serialization/types/InAppPlacementStats.d.ts +14 -0
  385. package/dist/cjs/serialization/types/InAppPlacementStats.js +36 -0
  386. package/dist/cjs/serialization/types/InAppPlacementWithStats.d.ts +11 -0
  387. package/dist/cjs/serialization/types/InAppPlacementWithStats.js +35 -0
  388. package/dist/cjs/serialization/types/LiveActivityDispatch.d.ts +3 -0
  389. package/dist/cjs/serialization/types/LiveActivityDispatch.js +3 -0
  390. package/dist/cjs/serialization/types/LiveActivityDispatchPlatforms.d.ts +10 -0
  391. package/dist/cjs/serialization/types/LiveActivityDispatchPlatforms.js +32 -0
  392. package/dist/cjs/serialization/types/LiveActivityToken.d.ts +2 -0
  393. package/dist/cjs/serialization/types/LiveActivityToken.js +2 -0
  394. package/dist/cjs/serialization/types/LiveActivityTokenPlatform.d.ts +7 -0
  395. package/dist/cjs/serialization/types/LiveActivityTokenPlatform.js +29 -0
  396. package/dist/cjs/serialization/types/PushCampaign.d.ts +4 -0
  397. package/dist/cjs/serialization/types/PushCampaign.js +4 -0
  398. package/dist/cjs/serialization/types/PushCampaignContent.d.ts +2 -0
  399. package/dist/cjs/serialization/types/PushCampaignContent.js +2 -0
  400. package/dist/cjs/serialization/types/PushLocalization.d.ts +16 -0
  401. package/dist/cjs/serialization/types/PushLocalization.js +38 -0
  402. package/dist/cjs/serialization/types/PushLocalizationList.d.ts +8 -0
  403. package/dist/cjs/serialization/types/PushLocalizationList.js +30 -0
  404. package/dist/cjs/serialization/types/PushLocalizationOrigin.d.ts +7 -0
  405. package/dist/cjs/serialization/types/PushLocalizationOrigin.js +29 -0
  406. package/dist/cjs/serialization/types/PushTranslationResult.d.ts +15 -0
  407. package/dist/cjs/serialization/types/PushTranslationResult.js +37 -0
  408. package/dist/cjs/serialization/types/PushTranslationResultFailedItem.d.ts +10 -0
  409. package/dist/cjs/serialization/types/PushTranslationResultFailedItem.js +32 -0
  410. package/dist/cjs/serialization/types/PushTranslationResultSkippedItem.d.ts +11 -0
  411. package/dist/cjs/serialization/types/PushTranslationResultSkippedItem.js +33 -0
  412. package/dist/cjs/serialization/types/PushTranslationResultSkippedItemReason.d.ts +7 -0
  413. package/dist/cjs/serialization/types/PushTranslationResultSkippedItemReason.js +29 -0
  414. package/dist/cjs/serialization/types/SequenceBranchPathStepInput.d.ts +2 -0
  415. package/dist/cjs/serialization/types/SequenceBranchPathStepInput.js +2 -0
  416. package/dist/cjs/serialization/types/SequenceInboundWebhook.d.ts +2 -0
  417. package/dist/cjs/serialization/types/SequenceInboundWebhook.js +2 -0
  418. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheck.d.ts +12 -0
  419. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheck.js +34 -0
  420. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +10 -0
  421. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +32 -0
  422. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  423. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckStatus.js +29 -0
  424. package/dist/cjs/serialization/types/SequenceStepInput.d.ts +2 -0
  425. package/dist/cjs/serialization/types/SequenceStepInput.js +2 -0
  426. package/dist/cjs/serialization/types/index.d.ts +33 -0
  427. package/dist/cjs/serialization/types/index.js +33 -0
  428. package/dist/esm/api/resources/abTests/client/Client.d.ts +1 -1
  429. package/dist/esm/api/resources/abTests/client/Client.js +1 -1
  430. package/dist/esm/api/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +1 -1
  431. package/dist/esm/api/resources/analytics/client/Client.d.ts +40 -0
  432. package/dist/esm/api/resources/analytics/client/Client.js +156 -0
  433. package/dist/esm/api/resources/analytics/client/requests/ListCampaignRepliesLegacyRequest.d.ts +14 -0
  434. package/dist/esm/api/resources/analytics/client/requests/ListCampaignRepliesLegacyRequest.js +2 -0
  435. package/dist/esm/api/resources/analytics/client/requests/ListCampaignRepliesRequest.d.ts +14 -0
  436. package/dist/esm/api/resources/analytics/client/requests/ListCampaignRepliesRequest.js +2 -0
  437. package/dist/esm/api/resources/analytics/client/requests/index.d.ts +2 -0
  438. package/dist/esm/api/resources/analytics/types/ListCampaignRepliesLegacyResponse.d.ts +7 -0
  439. package/dist/esm/api/resources/analytics/types/ListCampaignRepliesLegacyResponse.js +2 -0
  440. package/dist/esm/api/resources/analytics/types/ListCampaignRepliesResponse.d.ts +7 -0
  441. package/dist/esm/api/resources/analytics/types/ListCampaignRepliesResponse.js +2 -0
  442. package/dist/esm/api/resources/analytics/types/index.d.ts +2 -0
  443. package/dist/esm/api/resources/analytics/types/index.js +2 -0
  444. package/dist/esm/api/resources/campaigns/client/Client.d.ts +1 -1
  445. package/dist/esm/api/resources/campaigns/client/Client.js +1 -1
  446. package/dist/esm/api/resources/campaigns/client/requests/ResumeCampaignsRequest.d.ts +1 -1
  447. package/dist/esm/api/resources/campaigns/client/requests/ScheduleCampaignsRequest.d.ts +1 -1
  448. package/dist/esm/api/resources/inApp/client/Client.d.ts +326 -1
  449. package/dist/esm/api/resources/inApp/client/Client.js +1295 -83
  450. package/dist/esm/api/resources/inApp/client/requests/CreateInAppCampaignRequest.d.ts +15 -0
  451. package/dist/esm/api/resources/inApp/client/requests/CreateInAppCampaignRequest.js +2 -0
  452. package/dist/esm/api/resources/inApp/client/requests/CreateInAppPlacementRequest.d.ts +10 -0
  453. package/dist/esm/api/resources/inApp/client/requests/CreateInAppPlacementRequest.js +2 -0
  454. package/dist/esm/api/resources/inApp/client/requests/DeleteInAppPlacementRequest.d.ts +10 -0
  455. package/dist/esm/api/resources/inApp/client/requests/DeleteInAppPlacementRequest.js +2 -0
  456. package/dist/esm/api/resources/inApp/client/requests/DuplicateInAppCampaignRequest.d.ts +11 -0
  457. package/dist/esm/api/resources/inApp/client/requests/DuplicateInAppCampaignRequest.js +2 -0
  458. package/dist/esm/api/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.d.ts +12 -0
  459. package/dist/esm/api/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.js +2 -0
  460. package/dist/esm/api/resources/inApp/client/requests/GetInAppCampaignRequest.d.ts +9 -0
  461. package/dist/esm/api/resources/inApp/client/requests/GetInAppCampaignRequest.js +2 -0
  462. package/dist/esm/api/resources/inApp/client/requests/GetInAppCampaignStatsRequest.d.ts +9 -0
  463. package/dist/esm/api/resources/inApp/client/requests/GetInAppCampaignStatsRequest.js +2 -0
  464. package/dist/esm/api/resources/inApp/client/requests/GetInAppPlacementContentRequest.d.ts +15 -0
  465. package/dist/esm/api/resources/inApp/client/requests/GetInAppPlacementContentRequest.js +2 -0
  466. package/dist/esm/api/resources/inApp/client/requests/GetInAppPlacementRequest.d.ts +10 -0
  467. package/dist/esm/api/resources/inApp/client/requests/GetInAppPlacementRequest.js +2 -0
  468. package/dist/esm/api/resources/inApp/client/requests/ListInAppCampaignsRequest.d.ts +11 -0
  469. package/dist/esm/api/resources/inApp/client/requests/ListInAppCampaignsRequest.js +2 -0
  470. package/dist/esm/api/resources/inApp/client/requests/ListInAppMessagesRequest.d.ts +3 -0
  471. package/dist/esm/api/resources/inApp/client/requests/SendInAppCampaignRequest.d.ts +11 -0
  472. package/dist/esm/api/resources/inApp/client/requests/SendInAppCampaignRequest.js +2 -0
  473. package/dist/esm/api/resources/inApp/client/requests/StopInAppCampaignRequest.d.ts +9 -0
  474. package/dist/esm/api/resources/inApp/client/requests/StopInAppCampaignRequest.js +2 -0
  475. package/dist/esm/api/resources/inApp/client/requests/UnscheduleInAppCampaignRequest.d.ts +9 -0
  476. package/dist/esm/api/resources/inApp/client/requests/UnscheduleInAppCampaignRequest.js +2 -0
  477. package/dist/esm/api/resources/inApp/client/requests/UpdateInAppCampaignRequest.d.ts +18 -0
  478. package/dist/esm/api/resources/inApp/client/requests/UpdateInAppCampaignRequest.js +2 -0
  479. package/dist/esm/api/resources/inApp/client/requests/UpdateInAppPlacementRequest.d.ts +13 -0
  480. package/dist/esm/api/resources/inApp/client/requests/UpdateInAppPlacementRequest.js +2 -0
  481. package/dist/esm/api/resources/inApp/client/requests/index.d.ts +15 -0
  482. package/dist/esm/api/resources/inApp/types/CreateInAppCampaignRequestPriority.d.ts +7 -0
  483. package/dist/esm/api/resources/inApp/types/CreateInAppCampaignRequestPriority.js +7 -0
  484. package/dist/esm/api/resources/inApp/types/CreateInAppCampaignResponse.d.ts +5 -0
  485. package/dist/esm/api/resources/inApp/types/CreateInAppCampaignResponse.js +2 -0
  486. package/dist/esm/api/resources/inApp/types/CreateInAppPlacementResponse.d.ts +5 -0
  487. package/dist/esm/api/resources/inApp/types/CreateInAppPlacementResponse.js +2 -0
  488. package/dist/esm/api/resources/inApp/types/DeleteInAppPlacementResponse.d.ts +5 -0
  489. package/dist/esm/api/resources/inApp/types/DeleteInAppPlacementResponse.js +2 -0
  490. package/dist/esm/api/resources/inApp/types/DuplicateInAppCampaignResponse.d.ts +5 -0
  491. package/dist/esm/api/resources/inApp/types/DuplicateInAppCampaignResponse.js +2 -0
  492. package/dist/esm/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +4 -0
  493. package/dist/esm/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +2 -0
  494. package/dist/esm/api/resources/inApp/types/GetInAppCampaignResponse.d.ts +6 -0
  495. package/dist/esm/api/resources/inApp/types/GetInAppCampaignResponse.js +2 -0
  496. package/dist/esm/api/resources/inApp/types/GetInAppCampaignStatsResponse.d.ts +10 -0
  497. package/dist/esm/api/resources/inApp/types/GetInAppCampaignStatsResponse.js +2 -0
  498. package/dist/esm/api/resources/inApp/types/GetInAppCampaignStatsResponseState.d.ts +8 -0
  499. package/dist/esm/api/resources/inApp/types/GetInAppCampaignStatsResponseState.js +8 -0
  500. package/dist/esm/api/resources/inApp/types/GetInAppCampaignStatsResponseStatus.d.ts +7 -0
  501. package/dist/esm/api/resources/inApp/types/GetInAppCampaignStatsResponseStatus.js +7 -0
  502. package/dist/esm/api/resources/inApp/types/GetInAppPlacementContentResponse.d.ts +6 -0
  503. package/dist/esm/api/resources/inApp/types/GetInAppPlacementContentResponse.js +2 -0
  504. package/dist/esm/api/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.d.ts +5 -0
  505. package/dist/esm/api/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.js +2 -0
  506. package/dist/esm/api/resources/inApp/types/GetInAppPlacementResponse.d.ts +5 -0
  507. package/dist/esm/api/resources/inApp/types/GetInAppPlacementResponse.js +2 -0
  508. package/dist/esm/api/resources/inApp/types/ListInAppCampaignsRequestStatus.d.ts +7 -0
  509. package/dist/esm/api/resources/inApp/types/ListInAppCampaignsRequestStatus.js +7 -0
  510. package/dist/esm/api/resources/inApp/types/ListInAppCampaignsResponse.d.ts +6 -0
  511. package/dist/esm/api/resources/inApp/types/ListInAppCampaignsResponse.js +2 -0
  512. package/dist/esm/api/resources/inApp/types/ListInAppMessagesRequestDeliver.d.ts +5 -0
  513. package/dist/esm/api/resources/inApp/types/ListInAppMessagesRequestDeliver.js +5 -0
  514. package/dist/esm/api/resources/inApp/types/ListInAppMessagesRequestKind.d.ts +1 -0
  515. package/dist/esm/api/resources/inApp/types/ListInAppMessagesRequestKind.js +1 -0
  516. package/dist/esm/api/resources/inApp/types/ListInAppPlacementsResponse.d.ts +5 -0
  517. package/dist/esm/api/resources/inApp/types/ListInAppPlacementsResponse.js +2 -0
  518. package/dist/esm/api/resources/inApp/types/SendInAppCampaignResponse.d.ts +6 -0
  519. package/dist/esm/api/resources/inApp/types/SendInAppCampaignResponse.js +2 -0
  520. package/dist/esm/api/resources/inApp/types/StopInAppCampaignResponse.d.ts +5 -0
  521. package/dist/esm/api/resources/inApp/types/StopInAppCampaignResponse.js +2 -0
  522. package/dist/esm/api/resources/inApp/types/UnscheduleInAppCampaignResponse.d.ts +5 -0
  523. package/dist/esm/api/resources/inApp/types/UnscheduleInAppCampaignResponse.js +2 -0
  524. package/dist/esm/api/resources/inApp/types/UpdateInAppCampaignRequestPriority.d.ts +7 -0
  525. package/dist/esm/api/resources/inApp/types/UpdateInAppCampaignRequestPriority.js +7 -0
  526. package/dist/esm/api/resources/inApp/types/UpdateInAppCampaignResponse.d.ts +5 -0
  527. package/dist/esm/api/resources/inApp/types/UpdateInAppCampaignResponse.js +2 -0
  528. package/dist/esm/api/resources/inApp/types/UpdateInAppPlacementResponse.d.ts +5 -0
  529. package/dist/esm/api/resources/inApp/types/UpdateInAppPlacementResponse.js +2 -0
  530. package/dist/esm/api/resources/inApp/types/index.d.ts +23 -0
  531. package/dist/esm/api/resources/inApp/types/index.js +23 -0
  532. package/dist/esm/api/resources/push/client/Client.d.ts +46 -6
  533. package/dist/esm/api/resources/push/client/Client.js +168 -7
  534. package/dist/esm/api/resources/push/client/requests/CreatePushCampaignRequest.d.ts +1 -0
  535. package/dist/esm/api/resources/push/client/requests/EndLiveActivityRequest.d.ts +3 -1
  536. package/dist/esm/api/resources/push/client/requests/EstimatePushCampaignRecipientsRequest.d.ts +2 -0
  537. package/dist/esm/api/resources/push/client/requests/ListLiveActivitiesRequest.d.ts +2 -0
  538. package/dist/esm/api/resources/push/client/requests/SendPushCampaignRequest.d.ts +8 -0
  539. package/dist/esm/api/resources/push/client/requests/StartLiveActivityRequest.d.ts +7 -1
  540. package/dist/esm/api/resources/push/client/requests/TranslatePushCampaignRequest.d.ts +14 -0
  541. package/dist/esm/api/resources/push/client/requests/TranslatePushCampaignRequest.js +2 -0
  542. package/dist/esm/api/resources/push/client/requests/TranslatePushContentRequest.d.ts +16 -0
  543. package/dist/esm/api/resources/push/client/requests/TranslatePushContentRequest.js +2 -0
  544. package/dist/esm/api/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +3 -1
  545. package/dist/esm/api/resources/push/client/requests/UpdatePushCampaignRequest.d.ts +9 -0
  546. package/dist/esm/api/resources/push/client/requests/index.d.ts +2 -0
  547. package/dist/esm/api/resources/push/types/EstimatePushCampaignRecipientsResponse.d.ts +3 -0
  548. package/dist/esm/api/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.d.ts +11 -0
  549. package/dist/esm/api/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.js +2 -0
  550. package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestPlatform.d.ts +5 -0
  551. package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestPlatform.js +5 -0
  552. package/dist/esm/api/resources/push/types/TranslatePushCampaignResponse.d.ts +4 -0
  553. package/dist/esm/api/resources/push/types/TranslatePushCampaignResponse.js +2 -0
  554. package/dist/esm/api/resources/push/types/TranslatePushContentResponse.d.ts +5 -0
  555. package/dist/esm/api/resources/push/types/TranslatePushContentResponse.js +2 -0
  556. package/dist/esm/api/resources/push/types/index.d.ts +4 -0
  557. package/dist/esm/api/resources/push/types/index.js +4 -0
  558. package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +2 -0
  559. package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.d.ts +9 -0
  560. package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.js +2 -0
  561. package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.d.ts +13 -0
  562. package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.js +2 -0
  563. package/dist/esm/api/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +4 -0
  564. package/dist/esm/api/resources/templates/types/index.d.ts +2 -0
  565. package/dist/esm/api/resources/templates/types/index.js +2 -0
  566. package/dist/esm/api/resources/webTrackingKeys/client/Client.d.ts +4 -5
  567. package/dist/esm/api/resources/webTrackingKeys/client/Client.js +7 -6
  568. package/dist/esm/api/resources/webTrackingKeys/client/requests/MintIdentityWebTrackingKeysRequest.d.ts +5 -4
  569. package/dist/esm/api/resources/webTrackingKeys/types/MintIdentityWebTrackingKeysResponse.d.ts +3 -2
  570. package/dist/esm/api/types/CampaignChannel.d.ts +2 -1
  571. package/dist/esm/api/types/CampaignChannel.js +2 -1
  572. package/dist/esm/api/types/CampaignReply.d.ts +19 -0
  573. package/dist/esm/api/types/CampaignReply.js +2 -0
  574. package/dist/esm/api/types/InAppCampaign.d.ts +20 -0
  575. package/dist/esm/api/types/InAppCampaign.js +2 -0
  576. package/dist/esm/api/types/InAppCampaignMessage.d.ts +28 -0
  577. package/dist/esm/api/types/InAppCampaignMessage.js +2 -0
  578. package/dist/esm/api/types/InAppCampaignMessageButtonsItem.d.ts +7 -0
  579. package/dist/esm/api/types/InAppCampaignMessageButtonsItem.js +2 -0
  580. package/dist/esm/api/types/InAppCampaignMessageButtonsItemAction.d.ts +6 -0
  581. package/dist/esm/api/types/InAppCampaignMessageButtonsItemAction.js +6 -0
  582. package/dist/esm/api/types/InAppCampaignMessageFormat.d.ts +8 -0
  583. package/dist/esm/api/types/InAppCampaignMessageFormat.js +8 -0
  584. package/dist/esm/api/types/InAppCampaignMessageImagePlacement.d.ts +5 -0
  585. package/dist/esm/api/types/InAppCampaignMessageImagePlacement.js +5 -0
  586. package/dist/esm/api/types/InAppCampaignMessageKind.d.ts +5 -0
  587. package/dist/esm/api/types/InAppCampaignMessageKind.js +5 -0
  588. package/dist/esm/api/types/InAppCampaignMessagePosition.d.ts +7 -0
  589. package/dist/esm/api/types/InAppCampaignMessagePosition.js +7 -0
  590. package/dist/esm/api/types/InAppCampaignPriority.d.ts +6 -0
  591. package/dist/esm/api/types/InAppCampaignPriority.js +6 -0
  592. package/dist/esm/api/types/InAppCampaignState.d.ts +9 -0
  593. package/dist/esm/api/types/InAppCampaignState.js +9 -0
  594. package/dist/esm/api/types/InAppCampaignStats.d.ts +16 -0
  595. package/dist/esm/api/types/InAppCampaignStats.js +2 -0
  596. package/dist/esm/api/types/InAppCampaignStatsButtonsItem.d.ts +4 -0
  597. package/dist/esm/api/types/InAppCampaignStatsButtonsItem.js +2 -0
  598. package/dist/esm/api/types/InAppCampaignStatus.d.ts +8 -0
  599. package/dist/esm/api/types/InAppCampaignStatus.js +8 -0
  600. package/dist/esm/api/types/InAppCampaignType.d.ts +4 -0
  601. package/dist/esm/api/types/InAppCampaignType.js +4 -0
  602. package/dist/esm/api/types/InAppMessage.d.ts +9 -1
  603. package/dist/esm/api/types/InAppMessageKind.d.ts +2 -1
  604. package/dist/esm/api/types/InAppMessageKind.js +2 -1
  605. package/dist/esm/api/types/InAppMessageLayout.d.ts +7 -0
  606. package/dist/esm/api/types/InAppMessageLayout.js +7 -0
  607. package/dist/esm/api/types/InAppMessagePriority.d.ts +7 -0
  608. package/dist/esm/api/types/InAppMessagePriority.js +7 -0
  609. package/dist/esm/api/types/InAppPlacement.d.ts +16 -0
  610. package/dist/esm/api/types/InAppPlacement.js +2 -0
  611. package/dist/esm/api/types/InAppPlacementInput.d.ts +6 -0
  612. package/dist/esm/api/types/InAppPlacementInput.js +2 -0
  613. package/dist/esm/api/types/InAppPlacementStats.d.ts +16 -0
  614. package/dist/esm/api/types/InAppPlacementStats.js +2 -0
  615. package/dist/esm/api/types/InAppPlacementWithStats.d.ts +4 -0
  616. package/dist/esm/api/types/InAppPlacementWithStats.js +2 -0
  617. package/dist/esm/api/types/LiveActivityDispatch.d.ts +4 -0
  618. package/dist/esm/api/types/LiveActivityDispatchPlatforms.d.ts +7 -0
  619. package/dist/esm/api/types/LiveActivityDispatchPlatforms.js +2 -0
  620. package/dist/esm/api/types/LiveActivityToken.d.ts +5 -3
  621. package/dist/esm/api/types/LiveActivityTokenPlatform.d.ts +6 -0
  622. package/dist/esm/api/types/LiveActivityTokenPlatform.js +6 -0
  623. package/dist/esm/api/types/PushCampaign.d.ts +8 -0
  624. package/dist/esm/api/types/PushCampaignContent.d.ts +2 -0
  625. package/dist/esm/api/types/PushLocalization.d.ts +20 -0
  626. package/dist/esm/api/types/PushLocalization.js +2 -0
  627. package/dist/esm/api/types/PushLocalizationList.d.ts +5 -0
  628. package/dist/esm/api/types/PushLocalizationList.js +2 -0
  629. package/dist/esm/api/types/PushLocalizationOrigin.d.ts +6 -0
  630. package/dist/esm/api/types/PushLocalizationOrigin.js +6 -0
  631. package/dist/esm/api/types/PushTranslationResult.d.ts +11 -0
  632. package/dist/esm/api/types/PushTranslationResult.js +2 -0
  633. package/dist/esm/api/types/PushTranslationResultFailedItem.d.ts +4 -0
  634. package/dist/esm/api/types/PushTranslationResultFailedItem.js +2 -0
  635. package/dist/esm/api/types/PushTranslationResultSkippedItem.d.ts +6 -0
  636. package/dist/esm/api/types/PushTranslationResultSkippedItem.js +2 -0
  637. package/dist/esm/api/types/PushTranslationResultSkippedItemReason.d.ts +6 -0
  638. package/dist/esm/api/types/PushTranslationResultSkippedItemReason.js +6 -0
  639. package/dist/esm/api/types/SequenceBranchPathStepInput.d.ts +2 -0
  640. package/dist/esm/api/types/SequenceInboundWebhook.d.ts +2 -0
  641. package/dist/esm/api/types/SequenceInboundWebhookFieldMapping.d.ts +1 -1
  642. package/dist/esm/api/types/SequenceInboundWebhookMappingCheck.d.ts +7 -0
  643. package/dist/esm/api/types/SequenceInboundWebhookMappingCheck.js +2 -0
  644. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +5 -0
  645. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +2 -0
  646. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  647. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckStatus.js +7 -0
  648. package/dist/esm/api/types/SequenceStepInput.d.ts +2 -0
  649. package/dist/esm/api/types/index.d.ts +33 -0
  650. package/dist/esm/api/types/index.js +33 -0
  651. package/dist/esm/serialization/resources/analytics/types/ListCampaignRepliesLegacyResponse.d.ts +14 -0
  652. package/dist/esm/serialization/resources/analytics/types/ListCampaignRepliesLegacyResponse.js +10 -0
  653. package/dist/esm/serialization/resources/analytics/types/ListCampaignRepliesResponse.d.ts +14 -0
  654. package/dist/esm/serialization/resources/analytics/types/ListCampaignRepliesResponse.js +10 -0
  655. package/dist/esm/serialization/resources/analytics/types/index.d.ts +2 -0
  656. package/dist/esm/serialization/resources/analytics/types/index.js +2 -0
  657. package/dist/esm/serialization/resources/inApp/client/requests/CreateInAppCampaignRequest.d.ts +15 -0
  658. package/dist/esm/serialization/resources/inApp/client/requests/CreateInAppCampaignRequest.js +11 -0
  659. package/dist/esm/serialization/resources/inApp/client/requests/CreateInAppPlacementRequest.d.ts +10 -0
  660. package/dist/esm/serialization/resources/inApp/client/requests/CreateInAppPlacementRequest.js +8 -0
  661. package/dist/esm/serialization/resources/inApp/client/requests/DuplicateInAppCampaignRequest.d.ts +9 -0
  662. package/dist/esm/serialization/resources/inApp/client/requests/DuplicateInAppCampaignRequest.js +5 -0
  663. package/dist/esm/serialization/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.d.ts +9 -0
  664. package/dist/esm/serialization/resources/inApp/client/requests/EstimateInAppCampaignRecipientsRequest.js +5 -0
  665. package/dist/esm/serialization/resources/inApp/client/requests/SendInAppCampaignRequest.d.ts +9 -0
  666. package/dist/esm/serialization/resources/inApp/client/requests/SendInAppCampaignRequest.js +5 -0
  667. package/dist/esm/serialization/resources/inApp/client/requests/UpdateInAppCampaignRequest.d.ts +15 -0
  668. package/dist/esm/serialization/resources/inApp/client/requests/UpdateInAppCampaignRequest.js +11 -0
  669. package/dist/esm/serialization/resources/inApp/client/requests/index.d.ts +6 -0
  670. package/dist/esm/serialization/resources/inApp/client/requests/index.js +6 -0
  671. package/dist/esm/serialization/resources/inApp/types/CreateInAppCampaignRequestPriority.d.ts +7 -0
  672. package/dist/esm/serialization/resources/inApp/types/CreateInAppCampaignRequestPriority.js +3 -0
  673. package/dist/esm/serialization/resources/inApp/types/CreateInAppCampaignResponse.d.ts +11 -0
  674. package/dist/esm/serialization/resources/inApp/types/CreateInAppCampaignResponse.js +7 -0
  675. package/dist/esm/serialization/resources/inApp/types/CreateInAppPlacementResponse.d.ts +11 -0
  676. package/dist/esm/serialization/resources/inApp/types/CreateInAppPlacementResponse.js +7 -0
  677. package/dist/esm/serialization/resources/inApp/types/DeleteInAppPlacementResponse.d.ts +11 -0
  678. package/dist/esm/serialization/resources/inApp/types/DeleteInAppPlacementResponse.js +7 -0
  679. package/dist/esm/serialization/resources/inApp/types/DuplicateInAppCampaignResponse.d.ts +11 -0
  680. package/dist/esm/serialization/resources/inApp/types/DuplicateInAppCampaignResponse.js +7 -0
  681. package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +10 -0
  682. package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +6 -0
  683. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignResponse.d.ts +13 -0
  684. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignResponse.js +9 -0
  685. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignStatsResponse.d.ts +17 -0
  686. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignStatsResponse.js +13 -0
  687. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignStatsResponseState.d.ts +7 -0
  688. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignStatsResponseState.js +3 -0
  689. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignStatsResponseStatus.d.ts +7 -0
  690. package/dist/esm/serialization/resources/inApp/types/GetInAppCampaignStatsResponseStatus.js +3 -0
  691. package/dist/esm/serialization/resources/inApp/types/GetInAppPlacementContentResponse.d.ts +12 -0
  692. package/dist/esm/serialization/resources/inApp/types/GetInAppPlacementContentResponse.js +8 -0
  693. package/dist/esm/serialization/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.d.ts +11 -0
  694. package/dist/esm/serialization/resources/inApp/types/GetInAppPlacementContentResponsePlacementsItem.js +7 -0
  695. package/dist/esm/serialization/resources/inApp/types/GetInAppPlacementResponse.d.ts +11 -0
  696. package/dist/esm/serialization/resources/inApp/types/GetInAppPlacementResponse.js +7 -0
  697. package/dist/esm/serialization/resources/inApp/types/ListInAppCampaignsRequestStatus.d.ts +7 -0
  698. package/dist/esm/serialization/resources/inApp/types/ListInAppCampaignsRequestStatus.js +3 -0
  699. package/dist/esm/serialization/resources/inApp/types/ListInAppCampaignsResponse.d.ts +12 -0
  700. package/dist/esm/serialization/resources/inApp/types/ListInAppCampaignsResponse.js +8 -0
  701. package/dist/esm/serialization/resources/inApp/types/ListInAppMessagesRequestDeliver.d.ts +7 -0
  702. package/dist/esm/serialization/resources/inApp/types/ListInAppMessagesRequestDeliver.js +3 -0
  703. package/dist/esm/serialization/resources/inApp/types/ListInAppMessagesRequestKind.d.ts +1 -1
  704. package/dist/esm/serialization/resources/inApp/types/ListInAppMessagesRequestKind.js +1 -1
  705. package/dist/esm/serialization/resources/inApp/types/ListInAppPlacementsResponse.d.ts +11 -0
  706. package/dist/esm/serialization/resources/inApp/types/ListInAppPlacementsResponse.js +7 -0
  707. package/dist/esm/serialization/resources/inApp/types/SendInAppCampaignResponse.d.ts +12 -0
  708. package/dist/esm/serialization/resources/inApp/types/SendInAppCampaignResponse.js +8 -0
  709. package/dist/esm/serialization/resources/inApp/types/StopInAppCampaignResponse.d.ts +11 -0
  710. package/dist/esm/serialization/resources/inApp/types/StopInAppCampaignResponse.js +7 -0
  711. package/dist/esm/serialization/resources/inApp/types/UnscheduleInAppCampaignResponse.d.ts +11 -0
  712. package/dist/esm/serialization/resources/inApp/types/UnscheduleInAppCampaignResponse.js +7 -0
  713. package/dist/esm/serialization/resources/inApp/types/UpdateInAppCampaignRequestPriority.d.ts +7 -0
  714. package/dist/esm/serialization/resources/inApp/types/UpdateInAppCampaignRequestPriority.js +3 -0
  715. package/dist/esm/serialization/resources/inApp/types/UpdateInAppCampaignResponse.d.ts +11 -0
  716. package/dist/esm/serialization/resources/inApp/types/UpdateInAppCampaignResponse.js +7 -0
  717. package/dist/esm/serialization/resources/inApp/types/UpdateInAppPlacementResponse.d.ts +11 -0
  718. package/dist/esm/serialization/resources/inApp/types/UpdateInAppPlacementResponse.js +7 -0
  719. package/dist/esm/serialization/resources/inApp/types/index.d.ts +23 -0
  720. package/dist/esm/serialization/resources/inApp/types/index.js +23 -0
  721. package/dist/esm/serialization/resources/push/client/requests/CreatePushCampaignRequest.d.ts +2 -0
  722. package/dist/esm/serialization/resources/push/client/requests/CreatePushCampaignRequest.js +2 -0
  723. package/dist/esm/serialization/resources/push/client/requests/EndLiveActivityRequest.d.ts +1 -0
  724. package/dist/esm/serialization/resources/push/client/requests/EndLiveActivityRequest.js +1 -0
  725. package/dist/esm/serialization/resources/push/client/requests/EstimatePushCampaignRecipientsRequest.d.ts +1 -0
  726. package/dist/esm/serialization/resources/push/client/requests/EstimatePushCampaignRecipientsRequest.js +1 -0
  727. package/dist/esm/serialization/resources/push/client/requests/SendPushCampaignRequest.d.ts +4 -0
  728. package/dist/esm/serialization/resources/push/client/requests/SendPushCampaignRequest.js +4 -0
  729. package/dist/esm/serialization/resources/push/client/requests/StartLiveActivityRequest.d.ts +3 -0
  730. package/dist/esm/serialization/resources/push/client/requests/StartLiveActivityRequest.js +3 -0
  731. package/dist/esm/serialization/resources/push/client/requests/TranslatePushCampaignRequest.d.ts +10 -0
  732. package/dist/esm/serialization/resources/push/client/requests/TranslatePushCampaignRequest.js +6 -0
  733. package/dist/esm/serialization/resources/push/client/requests/TranslatePushContentRequest.d.ts +14 -0
  734. package/dist/esm/serialization/resources/push/client/requests/TranslatePushContentRequest.js +10 -0
  735. package/dist/esm/serialization/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +1 -0
  736. package/dist/esm/serialization/resources/push/client/requests/UpdateLiveActivityRequest.js +1 -0
  737. package/dist/esm/serialization/resources/push/client/requests/UpdatePushCampaignRequest.d.ts +6 -0
  738. package/dist/esm/serialization/resources/push/client/requests/UpdatePushCampaignRequest.js +6 -0
  739. package/dist/esm/serialization/resources/push/client/requests/index.d.ts +2 -0
  740. package/dist/esm/serialization/resources/push/client/requests/index.js +2 -0
  741. package/dist/esm/serialization/resources/push/types/EstimatePushCampaignRecipientsResponse.d.ts +2 -0
  742. package/dist/esm/serialization/resources/push/types/EstimatePushCampaignRecipientsResponse.js +2 -0
  743. package/dist/esm/serialization/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.d.ts +11 -0
  744. package/dist/esm/serialization/resources/push/types/EstimatePushCampaignRecipientsResponseTimingCoverage.js +7 -0
  745. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestPlatform.d.ts +7 -0
  746. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestPlatform.js +3 -0
  747. package/dist/esm/serialization/resources/push/types/TranslatePushCampaignResponse.d.ts +11 -0
  748. package/dist/esm/serialization/resources/push/types/TranslatePushCampaignResponse.js +9 -0
  749. package/dist/esm/serialization/resources/push/types/TranslatePushContentResponse.d.ts +11 -0
  750. package/dist/esm/serialization/resources/push/types/TranslatePushContentResponse.js +9 -0
  751. package/dist/esm/serialization/resources/push/types/index.d.ts +4 -0
  752. package/dist/esm/serialization/resources/push/types/index.js +4 -0
  753. package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +2 -0
  754. package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.js +2 -0
  755. package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.d.ts +11 -0
  756. package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePush.js +7 -0
  757. package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.d.ts +15 -0
  758. package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponsePushLocalesItem.js +11 -0
  759. package/dist/esm/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +2 -0
  760. package/dist/esm/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.js +2 -0
  761. package/dist/esm/serialization/resources/templates/types/index.d.ts +2 -0
  762. package/dist/esm/serialization/resources/templates/types/index.js +2 -0
  763. package/dist/esm/serialization/resources/webTrackingKeys/client/requests/MintIdentityWebTrackingKeysRequest.d.ts +2 -1
  764. package/dist/esm/serialization/resources/webTrackingKeys/client/requests/MintIdentityWebTrackingKeysRequest.js +2 -1
  765. package/dist/esm/serialization/resources/webTrackingKeys/types/MintIdentityWebTrackingKeysResponse.d.ts +2 -1
  766. package/dist/esm/serialization/resources/webTrackingKeys/types/MintIdentityWebTrackingKeysResponse.js +2 -1
  767. package/dist/esm/serialization/types/CampaignChannel.d.ts +1 -1
  768. package/dist/esm/serialization/types/CampaignChannel.js +1 -1
  769. package/dist/esm/serialization/types/CampaignReply.d.ts +19 -0
  770. package/dist/esm/serialization/types/CampaignReply.js +15 -0
  771. package/dist/esm/serialization/types/InAppCampaign.d.ts +26 -0
  772. package/dist/esm/serialization/types/InAppCampaign.js +24 -0
  773. package/dist/esm/serialization/types/InAppCampaignMessage.d.ts +29 -0
  774. package/dist/esm/serialization/types/InAppCampaignMessage.js +25 -0
  775. package/dist/esm/serialization/types/InAppCampaignMessageButtonsItem.d.ts +12 -0
  776. package/dist/esm/serialization/types/InAppCampaignMessageButtonsItem.js +8 -0
  777. package/dist/esm/serialization/types/InAppCampaignMessageButtonsItemAction.d.ts +7 -0
  778. package/dist/esm/serialization/types/InAppCampaignMessageButtonsItemAction.js +3 -0
  779. package/dist/esm/serialization/types/InAppCampaignMessageFormat.d.ts +7 -0
  780. package/dist/esm/serialization/types/InAppCampaignMessageFormat.js +3 -0
  781. package/dist/esm/serialization/types/InAppCampaignMessageImagePlacement.d.ts +7 -0
  782. package/dist/esm/serialization/types/InAppCampaignMessageImagePlacement.js +3 -0
  783. package/dist/esm/serialization/types/InAppCampaignMessageKind.d.ts +7 -0
  784. package/dist/esm/serialization/types/InAppCampaignMessageKind.js +3 -0
  785. package/dist/esm/serialization/types/InAppCampaignMessagePosition.d.ts +7 -0
  786. package/dist/esm/serialization/types/InAppCampaignMessagePosition.js +3 -0
  787. package/dist/esm/serialization/types/InAppCampaignPriority.d.ts +7 -0
  788. package/dist/esm/serialization/types/InAppCampaignPriority.js +3 -0
  789. package/dist/esm/serialization/types/InAppCampaignState.d.ts +7 -0
  790. package/dist/esm/serialization/types/InAppCampaignState.js +3 -0
  791. package/dist/esm/serialization/types/InAppCampaignStats.d.ts +17 -0
  792. package/dist/esm/serialization/types/InAppCampaignStats.js +13 -0
  793. package/dist/esm/serialization/types/InAppCampaignStatsButtonsItem.d.ts +10 -0
  794. package/dist/esm/serialization/types/InAppCampaignStatsButtonsItem.js +6 -0
  795. package/dist/esm/serialization/types/InAppCampaignStatus.d.ts +7 -0
  796. package/dist/esm/serialization/types/InAppCampaignStatus.js +3 -0
  797. package/dist/esm/serialization/types/InAppCampaignType.d.ts +7 -0
  798. package/dist/esm/serialization/types/InAppCampaignType.js +3 -0
  799. package/dist/esm/serialization/types/InAppMessage.d.ts +6 -0
  800. package/dist/esm/serialization/types/InAppMessage.js +6 -0
  801. package/dist/esm/serialization/types/InAppMessageKind.d.ts +1 -1
  802. package/dist/esm/serialization/types/InAppMessageKind.js +1 -1
  803. package/dist/esm/serialization/types/InAppMessageLayout.d.ts +7 -0
  804. package/dist/esm/serialization/types/InAppMessageLayout.js +3 -0
  805. package/dist/esm/serialization/types/InAppMessagePriority.d.ts +7 -0
  806. package/dist/esm/serialization/types/InAppMessagePriority.js +3 -0
  807. package/dist/esm/serialization/types/InAppPlacement.d.ts +15 -0
  808. package/dist/esm/serialization/types/InAppPlacement.js +11 -0
  809. package/dist/esm/serialization/types/InAppPlacementInput.d.ts +12 -0
  810. package/dist/esm/serialization/types/InAppPlacementInput.js +8 -0
  811. package/dist/esm/serialization/types/InAppPlacementStats.d.ts +14 -0
  812. package/dist/esm/serialization/types/InAppPlacementStats.js +10 -0
  813. package/dist/esm/serialization/types/InAppPlacementWithStats.d.ts +11 -0
  814. package/dist/esm/serialization/types/InAppPlacementWithStats.js +9 -0
  815. package/dist/esm/serialization/types/LiveActivityDispatch.d.ts +3 -0
  816. package/dist/esm/serialization/types/LiveActivityDispatch.js +3 -0
  817. package/dist/esm/serialization/types/LiveActivityDispatchPlatforms.d.ts +10 -0
  818. package/dist/esm/serialization/types/LiveActivityDispatchPlatforms.js +6 -0
  819. package/dist/esm/serialization/types/LiveActivityToken.d.ts +2 -0
  820. package/dist/esm/serialization/types/LiveActivityToken.js +2 -0
  821. package/dist/esm/serialization/types/LiveActivityTokenPlatform.d.ts +7 -0
  822. package/dist/esm/serialization/types/LiveActivityTokenPlatform.js +3 -0
  823. package/dist/esm/serialization/types/PushCampaign.d.ts +4 -0
  824. package/dist/esm/serialization/types/PushCampaign.js +4 -0
  825. package/dist/esm/serialization/types/PushCampaignContent.d.ts +2 -0
  826. package/dist/esm/serialization/types/PushCampaignContent.js +2 -0
  827. package/dist/esm/serialization/types/PushLocalization.d.ts +16 -0
  828. package/dist/esm/serialization/types/PushLocalization.js +12 -0
  829. package/dist/esm/serialization/types/PushLocalizationList.d.ts +8 -0
  830. package/dist/esm/serialization/types/PushLocalizationList.js +4 -0
  831. package/dist/esm/serialization/types/PushLocalizationOrigin.d.ts +7 -0
  832. package/dist/esm/serialization/types/PushLocalizationOrigin.js +3 -0
  833. package/dist/esm/serialization/types/PushTranslationResult.d.ts +15 -0
  834. package/dist/esm/serialization/types/PushTranslationResult.js +11 -0
  835. package/dist/esm/serialization/types/PushTranslationResultFailedItem.d.ts +10 -0
  836. package/dist/esm/serialization/types/PushTranslationResultFailedItem.js +6 -0
  837. package/dist/esm/serialization/types/PushTranslationResultSkippedItem.d.ts +11 -0
  838. package/dist/esm/serialization/types/PushTranslationResultSkippedItem.js +7 -0
  839. package/dist/esm/serialization/types/PushTranslationResultSkippedItemReason.d.ts +7 -0
  840. package/dist/esm/serialization/types/PushTranslationResultSkippedItemReason.js +3 -0
  841. package/dist/esm/serialization/types/SequenceBranchPathStepInput.d.ts +2 -0
  842. package/dist/esm/serialization/types/SequenceBranchPathStepInput.js +2 -0
  843. package/dist/esm/serialization/types/SequenceInboundWebhook.d.ts +2 -0
  844. package/dist/esm/serialization/types/SequenceInboundWebhook.js +2 -0
  845. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheck.d.ts +12 -0
  846. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheck.js +8 -0
  847. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +10 -0
  848. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +6 -0
  849. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  850. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckStatus.js +3 -0
  851. package/dist/esm/serialization/types/SequenceStepInput.d.ts +2 -0
  852. package/dist/esm/serialization/types/SequenceStepInput.js +2 -0
  853. package/dist/esm/serialization/types/index.d.ts +33 -0
  854. package/dist/esm/serialization/types/index.js +33 -0
  855. package/package.json +1 -1
@@ -15,6 +15,157 @@ export class InAppClient {
15
15
  constructor(options = {}) {
16
16
  this._options = normalizeClientOptionsWithAuth(options);
17
17
  }
18
+ /**
19
+ * Creates an in-app campaign draft, one in-app message or content card for an audience. The message, priority, end time and audience can be set now or later. Requires the campaigns:write scope.
20
+ *
21
+ * @param {Sequenzy.CreateInAppCampaignRequest} request
22
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
23
+ *
24
+ * @throws {@link Sequenzy.BadRequestError}
25
+ * @throws {@link Sequenzy.UnauthorizedError}
26
+ * @throws {@link Sequenzy.ForbiddenError}
27
+ * @throws {@link Sequenzy.InternalServerError}
28
+ * @throws {@link errors.SequenzyError}
29
+ * @throws {@link errors.SequenzyTimeoutError}
30
+ *
31
+ * @example
32
+ * await client.inApp.createInAppCampaign()
33
+ */
34
+ createInAppCampaign(request = {}, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__createInAppCampaign(request, requestOptions));
36
+ }
37
+ async __createInAppCampaign(request = {}, requestOptions) {
38
+ const _authRequest = await this._options.authProvider.getAuthRequest();
39
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
40
+ const _response = await core.fetcher({
41
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
42
+ (await core.Supplier.get(this._options.environment)) ??
43
+ environments.SequenzyEnvironment.Default, "in-app/campaigns"),
44
+ method: "POST",
45
+ headers: _headers,
46
+ contentType: "application/json",
47
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
48
+ requestType: "json",
49
+ body: mergeAdditionalBodyParameters(serializers.CreateInAppCampaignRequest.jsonOrThrow(request, {
50
+ unrecognizedObjectKeys: "strip",
51
+ omitUndefined: true,
52
+ }), requestOptions?.additionalBodyParameters),
53
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
54
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
55
+ abortSignal: requestOptions?.abortSignal,
56
+ fetchFn: this._options?.fetch,
57
+ logging: this._options.logging,
58
+ });
59
+ if (_response.ok) {
60
+ return {
61
+ data: serializers.CreateInAppCampaignResponse.parseOrThrow(_response.body, {
62
+ unrecognizedObjectKeys: "passthrough",
63
+ allowUnrecognizedUnionMembers: true,
64
+ allowUnrecognizedEnumValues: true,
65
+ skipValidation: true,
66
+ breadcrumbsPrefix: ["response"],
67
+ }),
68
+ rawResponse: _response.rawResponse,
69
+ };
70
+ }
71
+ if (_response.error.reason === "status-code") {
72
+ switch (_response.error.statusCode) {
73
+ case 400:
74
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
75
+ case 401:
76
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
77
+ case 403:
78
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
79
+ case 500:
80
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
81
+ default:
82
+ throw new errors.SequenzyError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.body,
85
+ rawResponse: _response.rawResponse,
86
+ });
87
+ }
88
+ }
89
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/campaigns");
90
+ }
91
+ /**
92
+ * Creates a placement, a slot in your app that shows in-app content inline. The key never changes. A workspace can have up to 50 placements. Requires the sequences:write scope.
93
+ *
94
+ * @param {Sequenzy.CreateInAppPlacementRequest} request
95
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link Sequenzy.BadRequestError}
98
+ * @throws {@link Sequenzy.UnauthorizedError}
99
+ * @throws {@link Sequenzy.ForbiddenError}
100
+ * @throws {@link Sequenzy.ConflictError}
101
+ * @throws {@link Sequenzy.InternalServerError}
102
+ * @throws {@link errors.SequenzyError}
103
+ * @throws {@link errors.SequenzyTimeoutError}
104
+ *
105
+ * @example
106
+ * await client.inApp.createInAppPlacement({
107
+ * key: "home_hero"
108
+ * })
109
+ */
110
+ createInAppPlacement(request, requestOptions) {
111
+ return core.HttpResponsePromise.fromPromise(this.__createInAppPlacement(request, requestOptions));
112
+ }
113
+ async __createInAppPlacement(request, requestOptions) {
114
+ const _authRequest = await this._options.authProvider.getAuthRequest();
115
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
116
+ const _response = await core.fetcher({
117
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
118
+ (await core.Supplier.get(this._options.environment)) ??
119
+ environments.SequenzyEnvironment.Default, "in-app/placements"),
120
+ method: "POST",
121
+ headers: _headers,
122
+ contentType: "application/json",
123
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
124
+ requestType: "json",
125
+ body: mergeAdditionalBodyParameters(serializers.CreateInAppPlacementRequest.jsonOrThrow(request, {
126
+ unrecognizedObjectKeys: "strip",
127
+ omitUndefined: true,
128
+ }), requestOptions?.additionalBodyParameters),
129
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
130
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
131
+ abortSignal: requestOptions?.abortSignal,
132
+ fetchFn: this._options?.fetch,
133
+ logging: this._options.logging,
134
+ });
135
+ if (_response.ok) {
136
+ return {
137
+ data: serializers.CreateInAppPlacementResponse.parseOrThrow(_response.body, {
138
+ unrecognizedObjectKeys: "passthrough",
139
+ allowUnrecognizedUnionMembers: true,
140
+ allowUnrecognizedEnumValues: true,
141
+ skipValidation: true,
142
+ breadcrumbsPrefix: ["response"],
143
+ }),
144
+ rawResponse: _response.rawResponse,
145
+ };
146
+ }
147
+ if (_response.error.reason === "status-code") {
148
+ switch (_response.error.statusCode) {
149
+ case 400:
150
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
151
+ case 401:
152
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
153
+ case 403:
154
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
155
+ case 409:
156
+ throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
157
+ case 500:
158
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
159
+ default:
160
+ throw new errors.SequenzyError({
161
+ statusCode: _response.error.statusCode,
162
+ body: _response.error.body,
163
+ rawResponse: _response.rawResponse,
164
+ });
165
+ }
166
+ }
167
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/placements");
168
+ }
18
169
  /**
19
170
  * Deletes an item so the contact's app stops showing it the next time it fetches the feed. Its engagement no longer counts in step stats. Requires the subscribers:write scope.
20
171
  *
@@ -86,9 +237,9 @@ export class InAppClient {
86
237
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/in-app/messages/{messageId}");
87
238
  }
88
239
  /**
89
- * Created, displayed, clicked and dismissed counts for one in_app sequence step, plus push primer permission results. Requires the sequences:read scope.
240
+ * Deletes a placement. Its slots collapse in your app on the next refresh, and in-app steps that target it skip contacts until a placement with the same key exists again. Items already created stay in contact history and never show again, even under a placement created later with the same key. Requires the sequences:delete scope.
90
241
  *
91
- * @param {Sequenzy.GetInAppStepStatsRequest} request
242
+ * @param {Sequenzy.DeleteInAppPlacementRequest} request
92
243
  * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
93
244
  *
94
245
  * @throws {@link Sequenzy.UnauthorizedError}
@@ -99,22 +250,22 @@ export class InAppClient {
99
250
  * @throws {@link errors.SequenzyTimeoutError}
100
251
  *
101
252
  * @example
102
- * await client.inApp.getInAppStepStats({
103
- * stepId: "stepId"
253
+ * await client.inApp.deleteInAppPlacement({
254
+ * key: "key"
104
255
  * })
105
256
  */
106
- getInAppStepStats(request, requestOptions) {
107
- return core.HttpResponsePromise.fromPromise(this.__getInAppStepStats(request, requestOptions));
257
+ deleteInAppPlacement(request, requestOptions) {
258
+ return core.HttpResponsePromise.fromPromise(this.__deleteInAppPlacement(request, requestOptions));
108
259
  }
109
- async __getInAppStepStats(request, requestOptions) {
110
- const { stepId } = request;
260
+ async __deleteInAppPlacement(request, requestOptions) {
261
+ const { key } = request;
111
262
  const _authRequest = await this._options.authProvider.getAuthRequest();
112
263
  const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
113
264
  const _response = await core.fetcher({
114
265
  url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
115
266
  (await core.Supplier.get(this._options.environment)) ??
116
- environments.SequenzyEnvironment.Default, `in-app/steps/${core.url.encodePathParam(stepId)}/stats`),
117
- method: "GET",
267
+ environments.SequenzyEnvironment.Default, `in-app/placements/${core.url.encodePathParam(key)}`),
268
+ method: "DELETE",
118
269
  headers: _headers,
119
270
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
120
271
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
@@ -125,7 +276,7 @@ export class InAppClient {
125
276
  });
126
277
  if (_response.ok) {
127
278
  return {
128
- data: serializers.GetInAppStepStatsResponse.parseOrThrow(_response.body, {
279
+ data: serializers.DeleteInAppPlacementResponse.parseOrThrow(_response.body, {
129
280
  unrecognizedObjectKeys: "passthrough",
130
281
  allowUnrecognizedUnionMembers: true,
131
282
  allowUnrecognizedEnumValues: true,
@@ -153,12 +304,12 @@ export class InAppClient {
153
304
  });
154
305
  }
155
306
  }
156
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/steps/{stepId}/stats");
307
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/in-app/placements/{key}");
157
308
  }
158
309
  /**
159
- * Lists a contact's in-app messages and content cards, created by in_app sequence steps. With status open (default) it returns what the app should show now: messages not yet displayed, clicked or dismissed, and cards not dismissed, excluding expired items, messages first, then pinned cards, then newest. With status all it returns history, newest first. Identify the contact with email, externalId or subscriberId. Requires the subscribers:read scope.
310
+ * Copies an in-app campaign's message, priority, audience and labels into a new draft. An end time that has passed is not copied. Requires the campaigns:write scope.
160
311
  *
161
- * @param {Sequenzy.ListInAppMessagesRequest} request
312
+ * @param {Sequenzy.DuplicateInAppCampaignRequest} request
162
313
  * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
163
314
  *
164
315
  * @throws {@link Sequenzy.BadRequestError}
@@ -170,48 +321,30 @@ export class InAppClient {
170
321
  * @throws {@link errors.SequenzyTimeoutError}
171
322
  *
172
323
  * @example
173
- * await client.inApp.listInAppMessages({
174
- * actions: "request_push_permission"
324
+ * await client.inApp.duplicateInAppCampaign({
325
+ * campaignId: "campaignId"
175
326
  * })
176
327
  */
177
- listInAppMessages(request = {}, requestOptions) {
178
- return core.HttpResponsePromise.fromPromise(this.__listInAppMessages(request, requestOptions));
328
+ duplicateInAppCampaign(request, requestOptions) {
329
+ return core.HttpResponsePromise.fromPromise(this.__duplicateInAppCampaign(request, requestOptions));
179
330
  }
180
- async __listInAppMessages(request = {}, requestOptions) {
181
- const { actions, email, externalId, formats, kind, limit, status, subscriberId } = request;
182
- const _queryParams = {
183
- actions,
184
- email,
185
- externalId,
186
- formats,
187
- kind: kind != null
188
- ? serializers.ListInAppMessagesRequestKind.jsonOrThrow(kind, {
189
- unrecognizedObjectKeys: "strip",
190
- omitUndefined: true,
191
- })
192
- : undefined,
193
- limit,
194
- status: status != null
195
- ? serializers.ListInAppMessagesRequestStatus.jsonOrThrow(status, {
196
- unrecognizedObjectKeys: "strip",
197
- omitUndefined: true,
198
- })
199
- : undefined,
200
- subscriberId,
201
- };
331
+ async __duplicateInAppCampaign(request, requestOptions) {
332
+ const { campaignId, ..._body } = request;
202
333
  const _authRequest = await this._options.authProvider.getAuthRequest();
203
334
  const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
204
335
  const _response = await core.fetcher({
205
336
  url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
206
337
  (await core.Supplier.get(this._options.environment)) ??
207
- environments.SequenzyEnvironment.Default, "in-app/messages"),
208
- method: "GET",
338
+ environments.SequenzyEnvironment.Default, `in-app/campaigns/${core.url.encodePathParam(campaignId)}/duplicate`),
339
+ method: "POST",
209
340
  headers: _headers,
210
- queryString: core.url
211
- .queryBuilder()
212
- .addMany(_queryParams)
213
- .mergeAdditional(requestOptions?.queryParams)
214
- .build(),
341
+ contentType: "application/json",
342
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
343
+ requestType: "json",
344
+ body: mergeAdditionalBodyParameters(serializers.DuplicateInAppCampaignRequest.jsonOrThrow(_body, {
345
+ unrecognizedObjectKeys: "strip",
346
+ omitUndefined: true,
347
+ }), requestOptions?.additionalBodyParameters),
215
348
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
216
349
  maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
217
350
  abortSignal: requestOptions?.abortSignal,
@@ -220,7 +353,7 @@ export class InAppClient {
220
353
  });
221
354
  if (_response.ok) {
222
355
  return {
223
- data: serializers.ListInAppMessagesResponse.parseOrThrow(_response.body, {
356
+ data: serializers.DuplicateInAppCampaignResponse.parseOrThrow(_response.body, {
224
357
  unrecognizedObjectKeys: "passthrough",
225
358
  allowUnrecognizedUnionMembers: true,
226
359
  allowUnrecognizedEnumValues: true,
@@ -250,34 +383,47 @@ export class InAppClient {
250
383
  });
251
384
  }
252
385
  }
253
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/messages");
386
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/campaigns/{campaignId}/duplicate");
254
387
  }
255
388
  /**
256
- * Built-in starting points for in_app sequence steps. Each config is a complete step without a label; link buttons have no url until you add one. Requires the sequences:read scope.
389
+ * Counts the contacts who match an audience now. Contacts who join the audience while the campaign is live get it too. Requires the campaigns:read scope.
257
390
  *
391
+ * @param {Sequenzy.EstimateInAppCampaignRecipientsRequest} request
258
392
  * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
259
393
  *
394
+ * @throws {@link Sequenzy.BadRequestError}
260
395
  * @throws {@link Sequenzy.UnauthorizedError}
261
396
  * @throws {@link Sequenzy.ForbiddenError}
397
+ * @throws {@link Sequenzy.InternalServerError}
262
398
  * @throws {@link errors.SequenzyError}
263
399
  * @throws {@link errors.SequenzyTimeoutError}
264
400
  *
265
401
  * @example
266
- * await client.inApp.listInAppTemplates()
402
+ * await client.inApp.estimateInAppCampaignRecipients({
403
+ * targetLists: {
404
+ * "key": "value"
405
+ * }
406
+ * })
267
407
  */
268
- listInAppTemplates(requestOptions) {
269
- return core.HttpResponsePromise.fromPromise(this.__listInAppTemplates(requestOptions));
408
+ estimateInAppCampaignRecipients(request, requestOptions) {
409
+ return core.HttpResponsePromise.fromPromise(this.__estimateInAppCampaignRecipients(request, requestOptions));
270
410
  }
271
- async __listInAppTemplates(requestOptions) {
411
+ async __estimateInAppCampaignRecipients(request, requestOptions) {
272
412
  const _authRequest = await this._options.authProvider.getAuthRequest();
273
413
  const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
274
414
  const _response = await core.fetcher({
275
415
  url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
276
416
  (await core.Supplier.get(this._options.environment)) ??
277
- environments.SequenzyEnvironment.Default, "in-app/templates"),
278
- method: "GET",
417
+ environments.SequenzyEnvironment.Default, "in-app/campaigns/estimate"),
418
+ method: "POST",
279
419
  headers: _headers,
420
+ contentType: "application/json",
280
421
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
422
+ requestType: "json",
423
+ body: mergeAdditionalBodyParameters(serializers.EstimateInAppCampaignRecipientsRequest.jsonOrThrow(request, {
424
+ unrecognizedObjectKeys: "strip",
425
+ omitUndefined: true,
426
+ }), requestOptions?.additionalBodyParameters),
281
427
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
282
428
  maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
283
429
  abortSignal: requestOptions?.abortSignal,
@@ -286,7 +432,7 @@ export class InAppClient {
286
432
  });
287
433
  if (_response.ok) {
288
434
  return {
289
- data: serializers.ListInAppTemplatesResponse.parseOrThrow(_response.body, {
435
+ data: serializers.EstimateInAppCampaignRecipientsResponse.parseOrThrow(_response.body, {
290
436
  unrecognizedObjectKeys: "passthrough",
291
437
  allowUnrecognizedUnionMembers: true,
292
438
  allowUnrecognizedEnumValues: true,
@@ -298,10 +444,14 @@ export class InAppClient {
298
444
  }
299
445
  if (_response.error.reason === "status-code") {
300
446
  switch (_response.error.statusCode) {
447
+ case 400:
448
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
301
449
  case 401:
302
450
  throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
303
451
  case 403:
304
452
  throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
453
+ case 500:
454
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
305
455
  default:
306
456
  throw new errors.SequenzyError({
307
457
  statusCode: _response.error.statusCode,
@@ -310,49 +460,40 @@ export class InAppClient {
310
460
  });
311
461
  }
312
462
  }
313
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/templates");
463
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/campaigns/estimate");
314
464
  }
315
465
  /**
316
- * Records that the app displayed, clicked, dismissed or read an item. The first report of each type sets its timestamp; repeats change nothing except clickCount, and recorded is false. Clicks, dismissals and reads also mark the item displayed. Messages leave the open feed once displayed, clicked or dismissed; cards once dismissed. Requires the subscribers:write scope.
466
+ * Returns an in-app campaign's message, audience, priority, schedule, end time and state, plus reach and engagement once it has launched (null for drafts and scheduled campaigns). Requires the campaigns:read scope.
317
467
  *
318
- * @param {Sequenzy.RecordInAppEventRequest} request
468
+ * @param {Sequenzy.GetInAppCampaignRequest} request
319
469
  * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
320
470
  *
321
- * @throws {@link Sequenzy.BadRequestError}
322
471
  * @throws {@link Sequenzy.UnauthorizedError}
323
472
  * @throws {@link Sequenzy.ForbiddenError}
324
473
  * @throws {@link Sequenzy.NotFoundError}
325
- * @throws {@link Sequenzy.UnprocessableEntityError}
326
474
  * @throws {@link Sequenzy.InternalServerError}
327
475
  * @throws {@link errors.SequenzyError}
328
476
  * @throws {@link errors.SequenzyTimeoutError}
329
477
  *
330
478
  * @example
331
- * await client.inApp.recordInAppEvent({
332
- * messageId: "messageId",
333
- * type: "displayed"
479
+ * await client.inApp.getInAppCampaign({
480
+ * campaignId: "campaignId"
334
481
  * })
335
482
  */
336
- recordInAppEvent(request, requestOptions) {
337
- return core.HttpResponsePromise.fromPromise(this.__recordInAppEvent(request, requestOptions));
483
+ getInAppCampaign(request, requestOptions) {
484
+ return core.HttpResponsePromise.fromPromise(this.__getInAppCampaign(request, requestOptions));
338
485
  }
339
- async __recordInAppEvent(request, requestOptions) {
340
- const { messageId, ..._body } = request;
486
+ async __getInAppCampaign(request, requestOptions) {
487
+ const { campaignId } = request;
341
488
  const _authRequest = await this._options.authProvider.getAuthRequest();
342
489
  const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
343
490
  const _response = await core.fetcher({
344
491
  url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
345
492
  (await core.Supplier.get(this._options.environment)) ??
346
- environments.SequenzyEnvironment.Default, `in-app/messages/${core.url.encodePathParam(messageId)}/events`),
347
- method: "POST",
493
+ environments.SequenzyEnvironment.Default, `in-app/campaigns/${core.url.encodePathParam(campaignId)}`),
494
+ method: "GET",
348
495
  headers: _headers,
349
- contentType: "application/json",
350
496
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
351
- requestType: "json",
352
- body: mergeAdditionalBodyParameters(serializers.RecordInAppEventRequest.jsonOrThrow(_body, {
353
- unrecognizedObjectKeys: "strip",
354
- omitUndefined: true,
355
- }), requestOptions?.additionalBodyParameters),
356
497
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
357
498
  maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
358
499
  abortSignal: requestOptions?.abortSignal,
@@ -361,7 +502,7 @@ export class InAppClient {
361
502
  });
362
503
  if (_response.ok) {
363
504
  return {
364
- data: serializers.RecordInAppEventResponse.parseOrThrow(_response.body, {
505
+ data: serializers.GetInAppCampaignResponse.parseOrThrow(_response.body, {
365
506
  unrecognizedObjectKeys: "passthrough",
366
507
  allowUnrecognizedUnionMembers: true,
367
508
  allowUnrecognizedEnumValues: true,
@@ -373,16 +514,12 @@ export class InAppClient {
373
514
  }
374
515
  if (_response.error.reason === "status-code") {
375
516
  switch (_response.error.statusCode) {
376
- case 400:
377
- throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
378
517
  case 401:
379
518
  throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
380
519
  case 403:
381
520
  throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
382
521
  case 404:
383
522
  throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
384
- case 422:
385
- throw new Sequenzy.UnprocessableEntityError(_response.error.body, _response.rawResponse);
386
523
  case 500:
387
524
  throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
388
525
  default:
@@ -393,7 +530,1082 @@ export class InAppClient {
393
530
  });
394
531
  }
395
532
  }
396
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/messages/{messageId}/events");
533
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/campaigns/{campaignId}");
534
+ }
535
+ /**
536
+ * Returns reach and engagement for an in-app campaign, counted from the messages it delivered. Requires the campaigns:read scope.
537
+ *
538
+ * @param {Sequenzy.GetInAppCampaignStatsRequest} request
539
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
540
+ *
541
+ * @throws {@link Sequenzy.UnauthorizedError}
542
+ * @throws {@link Sequenzy.ForbiddenError}
543
+ * @throws {@link Sequenzy.NotFoundError}
544
+ * @throws {@link Sequenzy.InternalServerError}
545
+ * @throws {@link errors.SequenzyError}
546
+ * @throws {@link errors.SequenzyTimeoutError}
547
+ *
548
+ * @example
549
+ * await client.inApp.getInAppCampaignStats({
550
+ * campaignId: "campaignId"
551
+ * })
552
+ */
553
+ getInAppCampaignStats(request, requestOptions) {
554
+ return core.HttpResponsePromise.fromPromise(this.__getInAppCampaignStats(request, requestOptions));
555
+ }
556
+ async __getInAppCampaignStats(request, requestOptions) {
557
+ const { campaignId } = request;
558
+ const _authRequest = await this._options.authProvider.getAuthRequest();
559
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
560
+ const _response = await core.fetcher({
561
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
562
+ (await core.Supplier.get(this._options.environment)) ??
563
+ environments.SequenzyEnvironment.Default, `in-app/campaigns/${core.url.encodePathParam(campaignId)}/stats`),
564
+ method: "GET",
565
+ headers: _headers,
566
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
567
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
568
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
569
+ abortSignal: requestOptions?.abortSignal,
570
+ fetchFn: this._options?.fetch,
571
+ logging: this._options.logging,
572
+ });
573
+ if (_response.ok) {
574
+ return {
575
+ data: serializers.GetInAppCampaignStatsResponse.parseOrThrow(_response.body, {
576
+ unrecognizedObjectKeys: "passthrough",
577
+ allowUnrecognizedUnionMembers: true,
578
+ allowUnrecognizedEnumValues: true,
579
+ skipValidation: true,
580
+ breadcrumbsPrefix: ["response"],
581
+ }),
582
+ rawResponse: _response.rawResponse,
583
+ };
584
+ }
585
+ if (_response.error.reason === "status-code") {
586
+ switch (_response.error.statusCode) {
587
+ case 401:
588
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
589
+ case 403:
590
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
591
+ case 404:
592
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
593
+ case 500:
594
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
595
+ default:
596
+ throw new errors.SequenzyError({
597
+ statusCode: _response.error.statusCode,
598
+ body: _response.error.body,
599
+ rawResponse: _response.rawResponse,
600
+ });
601
+ }
602
+ }
603
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/campaigns/{campaignId}/stats");
604
+ }
605
+ /**
606
+ * One placement with its all-time item counts. Requires the sequences:read scope.
607
+ *
608
+ * @param {Sequenzy.GetInAppPlacementRequest} request
609
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
610
+ *
611
+ * @throws {@link Sequenzy.UnauthorizedError}
612
+ * @throws {@link Sequenzy.ForbiddenError}
613
+ * @throws {@link Sequenzy.NotFoundError}
614
+ * @throws {@link Sequenzy.InternalServerError}
615
+ * @throws {@link errors.SequenzyError}
616
+ * @throws {@link errors.SequenzyTimeoutError}
617
+ *
618
+ * @example
619
+ * await client.inApp.getInAppPlacement({
620
+ * key: "key"
621
+ * })
622
+ */
623
+ getInAppPlacement(request, requestOptions) {
624
+ return core.HttpResponsePromise.fromPromise(this.__getInAppPlacement(request, requestOptions));
625
+ }
626
+ async __getInAppPlacement(request, requestOptions) {
627
+ const { key } = request;
628
+ const _authRequest = await this._options.authProvider.getAuthRequest();
629
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
630
+ const _response = await core.fetcher({
631
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
632
+ (await core.Supplier.get(this._options.environment)) ??
633
+ environments.SequenzyEnvironment.Default, `in-app/placements/${core.url.encodePathParam(key)}`),
634
+ method: "GET",
635
+ headers: _headers,
636
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
637
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
638
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
639
+ abortSignal: requestOptions?.abortSignal,
640
+ fetchFn: this._options?.fetch,
641
+ logging: this._options.logging,
642
+ });
643
+ if (_response.ok) {
644
+ return {
645
+ data: serializers.GetInAppPlacementResponse.parseOrThrow(_response.body, {
646
+ unrecognizedObjectKeys: "passthrough",
647
+ allowUnrecognizedUnionMembers: true,
648
+ allowUnrecognizedEnumValues: true,
649
+ skipValidation: true,
650
+ breadcrumbsPrefix: ["response"],
651
+ }),
652
+ rawResponse: _response.rawResponse,
653
+ };
654
+ }
655
+ if (_response.error.reason === "status-code") {
656
+ switch (_response.error.statusCode) {
657
+ case 401:
658
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
659
+ case 403:
660
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
661
+ case 404:
662
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
663
+ case 500:
664
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
665
+ default:
666
+ throw new errors.SequenzyError({
667
+ statusCode: _response.error.statusCode,
668
+ body: _response.error.body,
669
+ rawResponse: _response.rawResponse,
670
+ });
671
+ }
672
+ }
673
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/placements/{key}");
674
+ }
675
+ /**
676
+ * What each requested placement shows one contact now: their highest-priority open placement item (ties go to the newest), or null so your app collapses the slot. Keys the workspace has not defined always return null. Reading marks nothing displayed. Identify the contact with email, externalId or subscriberId. Requires the subscribers:read scope.
677
+ *
678
+ * @param {Sequenzy.GetInAppPlacementContentRequest} request
679
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
680
+ *
681
+ * @throws {@link Sequenzy.BadRequestError}
682
+ * @throws {@link Sequenzy.UnauthorizedError}
683
+ * @throws {@link Sequenzy.ForbiddenError}
684
+ * @throws {@link Sequenzy.NotFoundError}
685
+ * @throws {@link Sequenzy.InternalServerError}
686
+ * @throws {@link errors.SequenzyError}
687
+ * @throws {@link errors.SequenzyTimeoutError}
688
+ *
689
+ * @example
690
+ * await client.inApp.getInAppPlacementContent({
691
+ * placements: "home_hero,checkout_upsell"
692
+ * })
693
+ */
694
+ getInAppPlacementContent(request, requestOptions) {
695
+ return core.HttpResponsePromise.fromPromise(this.__getInAppPlacementContent(request, requestOptions));
696
+ }
697
+ async __getInAppPlacementContent(request, requestOptions) {
698
+ const { actions, email, externalId, placements, subscriberId } = request;
699
+ const _queryParams = {
700
+ actions,
701
+ email,
702
+ externalId,
703
+ placements,
704
+ subscriberId,
705
+ };
706
+ const _authRequest = await this._options.authProvider.getAuthRequest();
707
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
708
+ const _response = await core.fetcher({
709
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
710
+ (await core.Supplier.get(this._options.environment)) ??
711
+ environments.SequenzyEnvironment.Default, "in-app/placement-feed"),
712
+ method: "GET",
713
+ headers: _headers,
714
+ queryString: core.url
715
+ .queryBuilder()
716
+ .addMany(_queryParams)
717
+ .mergeAdditional(requestOptions?.queryParams)
718
+ .build(),
719
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
720
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
721
+ abortSignal: requestOptions?.abortSignal,
722
+ fetchFn: this._options?.fetch,
723
+ logging: this._options.logging,
724
+ });
725
+ if (_response.ok) {
726
+ return {
727
+ data: serializers.GetInAppPlacementContentResponse.parseOrThrow(_response.body, {
728
+ unrecognizedObjectKeys: "passthrough",
729
+ allowUnrecognizedUnionMembers: true,
730
+ allowUnrecognizedEnumValues: true,
731
+ skipValidation: true,
732
+ breadcrumbsPrefix: ["response"],
733
+ }),
734
+ rawResponse: _response.rawResponse,
735
+ };
736
+ }
737
+ if (_response.error.reason === "status-code") {
738
+ switch (_response.error.statusCode) {
739
+ case 400:
740
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
741
+ case 401:
742
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
743
+ case 403:
744
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
745
+ case 404:
746
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
747
+ case 500:
748
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
749
+ default:
750
+ throw new errors.SequenzyError({
751
+ statusCode: _response.error.statusCode,
752
+ body: _response.error.body,
753
+ rawResponse: _response.rawResponse,
754
+ });
755
+ }
756
+ }
757
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/placement-feed");
758
+ }
759
+ /**
760
+ * Created, displayed, clicked and dismissed counts for one in_app sequence step, plus push primer permission results. Requires the sequences:read scope.
761
+ *
762
+ * @param {Sequenzy.GetInAppStepStatsRequest} request
763
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
764
+ *
765
+ * @throws {@link Sequenzy.UnauthorizedError}
766
+ * @throws {@link Sequenzy.ForbiddenError}
767
+ * @throws {@link Sequenzy.NotFoundError}
768
+ * @throws {@link Sequenzy.InternalServerError}
769
+ * @throws {@link errors.SequenzyError}
770
+ * @throws {@link errors.SequenzyTimeoutError}
771
+ *
772
+ * @example
773
+ * await client.inApp.getInAppStepStats({
774
+ * stepId: "stepId"
775
+ * })
776
+ */
777
+ getInAppStepStats(request, requestOptions) {
778
+ return core.HttpResponsePromise.fromPromise(this.__getInAppStepStats(request, requestOptions));
779
+ }
780
+ async __getInAppStepStats(request, requestOptions) {
781
+ const { stepId } = request;
782
+ const _authRequest = await this._options.authProvider.getAuthRequest();
783
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
784
+ const _response = await core.fetcher({
785
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
786
+ (await core.Supplier.get(this._options.environment)) ??
787
+ environments.SequenzyEnvironment.Default, `in-app/steps/${core.url.encodePathParam(stepId)}/stats`),
788
+ method: "GET",
789
+ headers: _headers,
790
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
791
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
792
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
793
+ abortSignal: requestOptions?.abortSignal,
794
+ fetchFn: this._options?.fetch,
795
+ logging: this._options.logging,
796
+ });
797
+ if (_response.ok) {
798
+ return {
799
+ data: serializers.GetInAppStepStatsResponse.parseOrThrow(_response.body, {
800
+ unrecognizedObjectKeys: "passthrough",
801
+ allowUnrecognizedUnionMembers: true,
802
+ allowUnrecognizedEnumValues: true,
803
+ skipValidation: true,
804
+ breadcrumbsPrefix: ["response"],
805
+ }),
806
+ rawResponse: _response.rawResponse,
807
+ };
808
+ }
809
+ if (_response.error.reason === "status-code") {
810
+ switch (_response.error.statusCode) {
811
+ case 401:
812
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
813
+ case 403:
814
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
815
+ case 404:
816
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
817
+ case 500:
818
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
819
+ default:
820
+ throw new errors.SequenzyError({
821
+ statusCode: _response.error.statusCode,
822
+ body: _response.error.body,
823
+ rawResponse: _response.rawResponse,
824
+ });
825
+ }
826
+ }
827
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/steps/{stepId}/stats");
828
+ }
829
+ /**
830
+ * Lists in-app campaigns, newest first. Each carries its stored status and a state (draft, scheduled, live, ended, stopped). In-app campaigns also appear in GET /campaigns with type in_app. Requires the campaigns:read scope.
831
+ *
832
+ * @param {Sequenzy.ListInAppCampaignsRequest} request
833
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
834
+ *
835
+ * @throws {@link Sequenzy.BadRequestError}
836
+ * @throws {@link Sequenzy.UnauthorizedError}
837
+ * @throws {@link Sequenzy.ForbiddenError}
838
+ * @throws {@link Sequenzy.InternalServerError}
839
+ * @throws {@link errors.SequenzyError}
840
+ * @throws {@link errors.SequenzyTimeoutError}
841
+ *
842
+ * @example
843
+ * await client.inApp.listInAppCampaigns()
844
+ */
845
+ listInAppCampaigns(request = {}, requestOptions) {
846
+ return core.HttpResponsePromise.fromPromise(this.__listInAppCampaigns(request, requestOptions));
847
+ }
848
+ async __listInAppCampaigns(request = {}, requestOptions) {
849
+ const { limit, offset, status } = request;
850
+ const _queryParams = {
851
+ limit,
852
+ offset,
853
+ status: status != null
854
+ ? serializers.ListInAppCampaignsRequestStatus.jsonOrThrow(status, {
855
+ unrecognizedObjectKeys: "strip",
856
+ omitUndefined: true,
857
+ })
858
+ : undefined,
859
+ };
860
+ const _authRequest = await this._options.authProvider.getAuthRequest();
861
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
862
+ const _response = await core.fetcher({
863
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
864
+ (await core.Supplier.get(this._options.environment)) ??
865
+ environments.SequenzyEnvironment.Default, "in-app/campaigns"),
866
+ method: "GET",
867
+ headers: _headers,
868
+ queryString: core.url
869
+ .queryBuilder()
870
+ .addMany(_queryParams)
871
+ .mergeAdditional(requestOptions?.queryParams)
872
+ .build(),
873
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
874
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
875
+ abortSignal: requestOptions?.abortSignal,
876
+ fetchFn: this._options?.fetch,
877
+ logging: this._options.logging,
878
+ });
879
+ if (_response.ok) {
880
+ return {
881
+ data: serializers.ListInAppCampaignsResponse.parseOrThrow(_response.body, {
882
+ unrecognizedObjectKeys: "passthrough",
883
+ allowUnrecognizedUnionMembers: true,
884
+ allowUnrecognizedEnumValues: true,
885
+ skipValidation: true,
886
+ breadcrumbsPrefix: ["response"],
887
+ }),
888
+ rawResponse: _response.rawResponse,
889
+ };
890
+ }
891
+ if (_response.error.reason === "status-code") {
892
+ switch (_response.error.statusCode) {
893
+ case 400:
894
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
895
+ case 401:
896
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
897
+ case 403:
898
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
899
+ case 500:
900
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
901
+ default:
902
+ throw new errors.SequenzyError({
903
+ statusCode: _response.error.statusCode,
904
+ body: _response.error.body,
905
+ rawResponse: _response.rawResponse,
906
+ });
907
+ }
908
+ }
909
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/campaigns");
910
+ }
911
+ /**
912
+ * Lists a contact's in-app messages and content cards, created by in_app sequence steps and in-app campaigns. With status open (default) it first delivers live in-app campaigns the contact qualifies for, as the app's own feed does, then returns what the app should show now: messages not yet displayed, clicked or dismissed, and cards not dismissed, excluding expired items, messages first, then higher campaign priority, then pinned cards, then newest. With status all it returns history, newest first. Identify the contact with email, externalId or subscriberId. Requires the subscribers:read scope.
913
+ *
914
+ * @param {Sequenzy.ListInAppMessagesRequest} request
915
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
916
+ *
917
+ * @throws {@link Sequenzy.BadRequestError}
918
+ * @throws {@link Sequenzy.UnauthorizedError}
919
+ * @throws {@link Sequenzy.ForbiddenError}
920
+ * @throws {@link Sequenzy.NotFoundError}
921
+ * @throws {@link Sequenzy.InternalServerError}
922
+ * @throws {@link errors.SequenzyError}
923
+ * @throws {@link errors.SequenzyTimeoutError}
924
+ *
925
+ * @example
926
+ * await client.inApp.listInAppMessages({
927
+ * actions: "request_push_permission"
928
+ * })
929
+ */
930
+ listInAppMessages(request = {}, requestOptions) {
931
+ return core.HttpResponsePromise.fromPromise(this.__listInAppMessages(request, requestOptions));
932
+ }
933
+ async __listInAppMessages(request = {}, requestOptions) {
934
+ const { actions, deliver, email, externalId, formats, kind, limit, status, subscriberId } = request;
935
+ const _queryParams = {
936
+ actions,
937
+ deliver: deliver != null
938
+ ? serializers.ListInAppMessagesRequestDeliver.jsonOrThrow(deliver, {
939
+ unrecognizedObjectKeys: "strip",
940
+ omitUndefined: true,
941
+ })
942
+ : undefined,
943
+ email,
944
+ externalId,
945
+ formats,
946
+ kind: kind != null
947
+ ? serializers.ListInAppMessagesRequestKind.jsonOrThrow(kind, {
948
+ unrecognizedObjectKeys: "strip",
949
+ omitUndefined: true,
950
+ })
951
+ : undefined,
952
+ limit,
953
+ status: status != null
954
+ ? serializers.ListInAppMessagesRequestStatus.jsonOrThrow(status, {
955
+ unrecognizedObjectKeys: "strip",
956
+ omitUndefined: true,
957
+ })
958
+ : undefined,
959
+ subscriberId,
960
+ };
961
+ const _authRequest = await this._options.authProvider.getAuthRequest();
962
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
963
+ const _response = await core.fetcher({
964
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
965
+ (await core.Supplier.get(this._options.environment)) ??
966
+ environments.SequenzyEnvironment.Default, "in-app/messages"),
967
+ method: "GET",
968
+ headers: _headers,
969
+ queryString: core.url
970
+ .queryBuilder()
971
+ .addMany(_queryParams)
972
+ .mergeAdditional(requestOptions?.queryParams)
973
+ .build(),
974
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
975
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
976
+ abortSignal: requestOptions?.abortSignal,
977
+ fetchFn: this._options?.fetch,
978
+ logging: this._options.logging,
979
+ });
980
+ if (_response.ok) {
981
+ return {
982
+ data: serializers.ListInAppMessagesResponse.parseOrThrow(_response.body, {
983
+ unrecognizedObjectKeys: "passthrough",
984
+ allowUnrecognizedUnionMembers: true,
985
+ allowUnrecognizedEnumValues: true,
986
+ skipValidation: true,
987
+ breadcrumbsPrefix: ["response"],
988
+ }),
989
+ rawResponse: _response.rawResponse,
990
+ };
991
+ }
992
+ if (_response.error.reason === "status-code") {
993
+ switch (_response.error.statusCode) {
994
+ case 400:
995
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
996
+ case 401:
997
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
998
+ case 403:
999
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1000
+ case 404:
1001
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1002
+ case 500:
1003
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1004
+ default:
1005
+ throw new errors.SequenzyError({
1006
+ statusCode: _response.error.statusCode,
1007
+ body: _response.error.body,
1008
+ rawResponse: _response.rawResponse,
1009
+ });
1010
+ }
1011
+ }
1012
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/messages");
1013
+ }
1014
+ /**
1015
+ * Lists the workspace's placements, sorted by name, each with all-time item counts. Requires the sequences:read scope.
1016
+ *
1017
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1018
+ *
1019
+ * @throws {@link Sequenzy.UnauthorizedError}
1020
+ * @throws {@link Sequenzy.ForbiddenError}
1021
+ * @throws {@link Sequenzy.InternalServerError}
1022
+ * @throws {@link errors.SequenzyError}
1023
+ * @throws {@link errors.SequenzyTimeoutError}
1024
+ *
1025
+ * @example
1026
+ * await client.inApp.listInAppPlacements()
1027
+ */
1028
+ listInAppPlacements(requestOptions) {
1029
+ return core.HttpResponsePromise.fromPromise(this.__listInAppPlacements(requestOptions));
1030
+ }
1031
+ async __listInAppPlacements(requestOptions) {
1032
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1033
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1034
+ const _response = await core.fetcher({
1035
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1036
+ (await core.Supplier.get(this._options.environment)) ??
1037
+ environments.SequenzyEnvironment.Default, "in-app/placements"),
1038
+ method: "GET",
1039
+ headers: _headers,
1040
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1041
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1042
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1043
+ abortSignal: requestOptions?.abortSignal,
1044
+ fetchFn: this._options?.fetch,
1045
+ logging: this._options.logging,
1046
+ });
1047
+ if (_response.ok) {
1048
+ return {
1049
+ data: serializers.ListInAppPlacementsResponse.parseOrThrow(_response.body, {
1050
+ unrecognizedObjectKeys: "passthrough",
1051
+ allowUnrecognizedUnionMembers: true,
1052
+ allowUnrecognizedEnumValues: true,
1053
+ skipValidation: true,
1054
+ breadcrumbsPrefix: ["response"],
1055
+ }),
1056
+ rawResponse: _response.rawResponse,
1057
+ };
1058
+ }
1059
+ if (_response.error.reason === "status-code") {
1060
+ switch (_response.error.statusCode) {
1061
+ case 401:
1062
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1063
+ case 403:
1064
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1065
+ case 500:
1066
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1067
+ default:
1068
+ throw new errors.SequenzyError({
1069
+ statusCode: _response.error.statusCode,
1070
+ body: _response.error.body,
1071
+ rawResponse: _response.rawResponse,
1072
+ });
1073
+ }
1074
+ }
1075
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/placements");
1076
+ }
1077
+ /**
1078
+ * Built-in starting points for in_app sequence steps. Each config is a complete step without a label; link buttons have no url until you add one. Requires the sequences:read scope.
1079
+ *
1080
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1081
+ *
1082
+ * @throws {@link Sequenzy.UnauthorizedError}
1083
+ * @throws {@link Sequenzy.ForbiddenError}
1084
+ * @throws {@link errors.SequenzyError}
1085
+ * @throws {@link errors.SequenzyTimeoutError}
1086
+ *
1087
+ * @example
1088
+ * await client.inApp.listInAppTemplates()
1089
+ */
1090
+ listInAppTemplates(requestOptions) {
1091
+ return core.HttpResponsePromise.fromPromise(this.__listInAppTemplates(requestOptions));
1092
+ }
1093
+ async __listInAppTemplates(requestOptions) {
1094
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1095
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1096
+ const _response = await core.fetcher({
1097
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1098
+ (await core.Supplier.get(this._options.environment)) ??
1099
+ environments.SequenzyEnvironment.Default, "in-app/templates"),
1100
+ method: "GET",
1101
+ headers: _headers,
1102
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1103
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1104
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1105
+ abortSignal: requestOptions?.abortSignal,
1106
+ fetchFn: this._options?.fetch,
1107
+ logging: this._options.logging,
1108
+ });
1109
+ if (_response.ok) {
1110
+ return {
1111
+ data: serializers.ListInAppTemplatesResponse.parseOrThrow(_response.body, {
1112
+ unrecognizedObjectKeys: "passthrough",
1113
+ allowUnrecognizedUnionMembers: true,
1114
+ allowUnrecognizedEnumValues: true,
1115
+ skipValidation: true,
1116
+ breadcrumbsPrefix: ["response"],
1117
+ }),
1118
+ rawResponse: _response.rawResponse,
1119
+ };
1120
+ }
1121
+ if (_response.error.reason === "status-code") {
1122
+ switch (_response.error.statusCode) {
1123
+ case 401:
1124
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1125
+ case 403:
1126
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1127
+ default:
1128
+ throw new errors.SequenzyError({
1129
+ statusCode: _response.error.statusCode,
1130
+ body: _response.error.body,
1131
+ rawResponse: _response.rawResponse,
1132
+ });
1133
+ }
1134
+ }
1135
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/in-app/templates");
1136
+ }
1137
+ /**
1138
+ * Records that the app displayed, clicked, dismissed or read an item. The first report of each type sets its timestamp; repeats change nothing except clickCount, and recorded is false. Clicks, dismissals and reads also mark the item displayed. Messages leave the open feed once displayed, clicked or dismissed; cards once dismissed. Requires the subscribers:write scope.
1139
+ *
1140
+ * @param {Sequenzy.RecordInAppEventRequest} request
1141
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1142
+ *
1143
+ * @throws {@link Sequenzy.BadRequestError}
1144
+ * @throws {@link Sequenzy.UnauthorizedError}
1145
+ * @throws {@link Sequenzy.ForbiddenError}
1146
+ * @throws {@link Sequenzy.NotFoundError}
1147
+ * @throws {@link Sequenzy.UnprocessableEntityError}
1148
+ * @throws {@link Sequenzy.InternalServerError}
1149
+ * @throws {@link errors.SequenzyError}
1150
+ * @throws {@link errors.SequenzyTimeoutError}
1151
+ *
1152
+ * @example
1153
+ * await client.inApp.recordInAppEvent({
1154
+ * messageId: "messageId",
1155
+ * type: "displayed"
1156
+ * })
1157
+ */
1158
+ recordInAppEvent(request, requestOptions) {
1159
+ return core.HttpResponsePromise.fromPromise(this.__recordInAppEvent(request, requestOptions));
1160
+ }
1161
+ async __recordInAppEvent(request, requestOptions) {
1162
+ const { messageId, ..._body } = request;
1163
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1164
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1165
+ const _response = await core.fetcher({
1166
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1167
+ (await core.Supplier.get(this._options.environment)) ??
1168
+ environments.SequenzyEnvironment.Default, `in-app/messages/${core.url.encodePathParam(messageId)}/events`),
1169
+ method: "POST",
1170
+ headers: _headers,
1171
+ contentType: "application/json",
1172
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1173
+ requestType: "json",
1174
+ body: mergeAdditionalBodyParameters(serializers.RecordInAppEventRequest.jsonOrThrow(_body, {
1175
+ unrecognizedObjectKeys: "strip",
1176
+ omitUndefined: true,
1177
+ }), requestOptions?.additionalBodyParameters),
1178
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1179
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1180
+ abortSignal: requestOptions?.abortSignal,
1181
+ fetchFn: this._options?.fetch,
1182
+ logging: this._options.logging,
1183
+ });
1184
+ if (_response.ok) {
1185
+ return {
1186
+ data: serializers.RecordInAppEventResponse.parseOrThrow(_response.body, {
1187
+ unrecognizedObjectKeys: "passthrough",
1188
+ allowUnrecognizedUnionMembers: true,
1189
+ allowUnrecognizedEnumValues: true,
1190
+ skipValidation: true,
1191
+ breadcrumbsPrefix: ["response"],
1192
+ }),
1193
+ rawResponse: _response.rawResponse,
1194
+ };
1195
+ }
1196
+ if (_response.error.reason === "status-code") {
1197
+ switch (_response.error.statusCode) {
1198
+ case 400:
1199
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
1200
+ case 401:
1201
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1202
+ case 403:
1203
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1204
+ case 404:
1205
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1206
+ case 422:
1207
+ throw new Sequenzy.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1208
+ case 500:
1209
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1210
+ default:
1211
+ throw new errors.SequenzyError({
1212
+ statusCode: _response.error.statusCode,
1213
+ body: _response.error.body,
1214
+ rawResponse: _response.rawResponse,
1215
+ });
1216
+ }
1217
+ }
1218
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/messages/{messageId}/events");
1219
+ }
1220
+ /**
1221
+ * Launches a draft or scheduled in-app campaign now, or schedules it when scheduledAt is a future ISO 8601 time. Launching writes nothing per contact. While the campaign is live, each contact in the audience gets the message the first time their app fetches its feed (SDK feed, browser feed or GET /in-app/messages), including contacts who join the audience later or open the app days later. Callers that cannot render the message's format or button actions do not use it up. Requires a message, an audience and an end time after the start. Requires the campaigns:send scope.
1222
+ *
1223
+ * @param {Sequenzy.SendInAppCampaignRequest} request
1224
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1225
+ *
1226
+ * @throws {@link Sequenzy.BadRequestError}
1227
+ * @throws {@link Sequenzy.UnauthorizedError}
1228
+ * @throws {@link Sequenzy.ForbiddenError}
1229
+ * @throws {@link Sequenzy.NotFoundError}
1230
+ * @throws {@link Sequenzy.ConflictError}
1231
+ * @throws {@link Sequenzy.InternalServerError}
1232
+ * @throws {@link errors.SequenzyError}
1233
+ * @throws {@link errors.SequenzyTimeoutError}
1234
+ *
1235
+ * @example
1236
+ * await client.inApp.sendInAppCampaign({
1237
+ * campaignId: "campaignId"
1238
+ * })
1239
+ */
1240
+ sendInAppCampaign(request, requestOptions) {
1241
+ return core.HttpResponsePromise.fromPromise(this.__sendInAppCampaign(request, requestOptions));
1242
+ }
1243
+ async __sendInAppCampaign(request, requestOptions) {
1244
+ const { campaignId, ..._body } = request;
1245
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1246
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1247
+ const _response = await core.fetcher({
1248
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1249
+ (await core.Supplier.get(this._options.environment)) ??
1250
+ environments.SequenzyEnvironment.Default, `in-app/campaigns/${core.url.encodePathParam(campaignId)}/send`),
1251
+ method: "POST",
1252
+ headers: _headers,
1253
+ contentType: "application/json",
1254
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1255
+ requestType: "json",
1256
+ body: mergeAdditionalBodyParameters(serializers.SendInAppCampaignRequest.jsonOrThrow(_body, {
1257
+ unrecognizedObjectKeys: "strip",
1258
+ omitUndefined: true,
1259
+ }), requestOptions?.additionalBodyParameters),
1260
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1261
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1262
+ abortSignal: requestOptions?.abortSignal,
1263
+ fetchFn: this._options?.fetch,
1264
+ logging: this._options.logging,
1265
+ });
1266
+ if (_response.ok) {
1267
+ return {
1268
+ data: serializers.SendInAppCampaignResponse.parseOrThrow(_response.body, {
1269
+ unrecognizedObjectKeys: "passthrough",
1270
+ allowUnrecognizedUnionMembers: true,
1271
+ allowUnrecognizedEnumValues: true,
1272
+ skipValidation: true,
1273
+ breadcrumbsPrefix: ["response"],
1274
+ }),
1275
+ rawResponse: _response.rawResponse,
1276
+ };
1277
+ }
1278
+ if (_response.error.reason === "status-code") {
1279
+ switch (_response.error.statusCode) {
1280
+ case 400:
1281
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
1282
+ case 401:
1283
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1284
+ case 403:
1285
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1286
+ case 404:
1287
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1288
+ case 409:
1289
+ throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
1290
+ case 500:
1291
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1292
+ default:
1293
+ throw new errors.SequenzyError({
1294
+ statusCode: _response.error.statusCode,
1295
+ body: _response.error.body,
1296
+ rawResponse: _response.rawResponse,
1297
+ });
1298
+ }
1299
+ }
1300
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/campaigns/{campaignId}/send");
1301
+ }
1302
+ /**
1303
+ * Stops a scheduled or live in-app campaign. Nobody new gets it, and it leaves every feed that still has it, including cards contacts have seen but not dismissed. Stats are kept. Stopping is final; duplicate the campaign to run it again. Stopping a stopped campaign succeeds and ends its items again; a campaign past its end time has already ended (409). POST /campaigns/{campaignId}/cancel does the same for in-app campaigns. Requires the campaigns:send scope.
1304
+ *
1305
+ * @param {Sequenzy.StopInAppCampaignRequest} request
1306
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1307
+ *
1308
+ * @throws {@link Sequenzy.UnauthorizedError}
1309
+ * @throws {@link Sequenzy.ForbiddenError}
1310
+ * @throws {@link Sequenzy.NotFoundError}
1311
+ * @throws {@link Sequenzy.ConflictError}
1312
+ * @throws {@link Sequenzy.InternalServerError}
1313
+ * @throws {@link errors.SequenzyError}
1314
+ * @throws {@link errors.SequenzyTimeoutError}
1315
+ *
1316
+ * @example
1317
+ * await client.inApp.stopInAppCampaign({
1318
+ * campaignId: "campaignId"
1319
+ * })
1320
+ */
1321
+ stopInAppCampaign(request, requestOptions) {
1322
+ return core.HttpResponsePromise.fromPromise(this.__stopInAppCampaign(request, requestOptions));
1323
+ }
1324
+ async __stopInAppCampaign(request, requestOptions) {
1325
+ const { campaignId } = request;
1326
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1327
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1328
+ const _response = await core.fetcher({
1329
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1330
+ (await core.Supplier.get(this._options.environment)) ??
1331
+ environments.SequenzyEnvironment.Default, `in-app/campaigns/${core.url.encodePathParam(campaignId)}/stop`),
1332
+ method: "POST",
1333
+ headers: _headers,
1334
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1335
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1336
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1337
+ abortSignal: requestOptions?.abortSignal,
1338
+ fetchFn: this._options?.fetch,
1339
+ logging: this._options.logging,
1340
+ });
1341
+ if (_response.ok) {
1342
+ return {
1343
+ data: serializers.StopInAppCampaignResponse.parseOrThrow(_response.body, {
1344
+ unrecognizedObjectKeys: "passthrough",
1345
+ allowUnrecognizedUnionMembers: true,
1346
+ allowUnrecognizedEnumValues: true,
1347
+ skipValidation: true,
1348
+ breadcrumbsPrefix: ["response"],
1349
+ }),
1350
+ rawResponse: _response.rawResponse,
1351
+ };
1352
+ }
1353
+ if (_response.error.reason === "status-code") {
1354
+ switch (_response.error.statusCode) {
1355
+ case 401:
1356
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1357
+ case 403:
1358
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1359
+ case 404:
1360
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1361
+ case 409:
1362
+ throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
1363
+ case 500:
1364
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1365
+ default:
1366
+ throw new errors.SequenzyError({
1367
+ statusCode: _response.error.statusCode,
1368
+ body: _response.error.body,
1369
+ rawResponse: _response.rawResponse,
1370
+ });
1371
+ }
1372
+ }
1373
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/campaigns/{campaignId}/stop");
1374
+ }
1375
+ /**
1376
+ * Moves a scheduled in-app campaign back to draft. Requires the campaigns:send scope.
1377
+ *
1378
+ * @param {Sequenzy.UnscheduleInAppCampaignRequest} request
1379
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1380
+ *
1381
+ * @throws {@link Sequenzy.UnauthorizedError}
1382
+ * @throws {@link Sequenzy.ForbiddenError}
1383
+ * @throws {@link Sequenzy.NotFoundError}
1384
+ * @throws {@link Sequenzy.ConflictError}
1385
+ * @throws {@link Sequenzy.InternalServerError}
1386
+ * @throws {@link errors.SequenzyError}
1387
+ * @throws {@link errors.SequenzyTimeoutError}
1388
+ *
1389
+ * @example
1390
+ * await client.inApp.unscheduleInAppCampaign({
1391
+ * campaignId: "campaignId"
1392
+ * })
1393
+ */
1394
+ unscheduleInAppCampaign(request, requestOptions) {
1395
+ return core.HttpResponsePromise.fromPromise(this.__unscheduleInAppCampaign(request, requestOptions));
1396
+ }
1397
+ async __unscheduleInAppCampaign(request, requestOptions) {
1398
+ const { campaignId } = request;
1399
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1400
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1401
+ const _response = await core.fetcher({
1402
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1403
+ (await core.Supplier.get(this._options.environment)) ??
1404
+ environments.SequenzyEnvironment.Default, `in-app/campaigns/${core.url.encodePathParam(campaignId)}/unschedule`),
1405
+ method: "POST",
1406
+ headers: _headers,
1407
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1408
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1409
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1410
+ abortSignal: requestOptions?.abortSignal,
1411
+ fetchFn: this._options?.fetch,
1412
+ logging: this._options.logging,
1413
+ });
1414
+ if (_response.ok) {
1415
+ return {
1416
+ data: serializers.UnscheduleInAppCampaignResponse.parseOrThrow(_response.body, {
1417
+ unrecognizedObjectKeys: "passthrough",
1418
+ allowUnrecognizedUnionMembers: true,
1419
+ allowUnrecognizedEnumValues: true,
1420
+ skipValidation: true,
1421
+ breadcrumbsPrefix: ["response"],
1422
+ }),
1423
+ rawResponse: _response.rawResponse,
1424
+ };
1425
+ }
1426
+ if (_response.error.reason === "status-code") {
1427
+ switch (_response.error.statusCode) {
1428
+ case 401:
1429
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1430
+ case 403:
1431
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1432
+ case 404:
1433
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1434
+ case 409:
1435
+ throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
1436
+ case 500:
1437
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1438
+ default:
1439
+ throw new errors.SequenzyError({
1440
+ statusCode: _response.error.statusCode,
1441
+ body: _response.error.body,
1442
+ rawResponse: _response.rawResponse,
1443
+ });
1444
+ }
1445
+ }
1446
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/in-app/campaigns/{campaignId}/unschedule");
1447
+ }
1448
+ /**
1449
+ * Updates a draft or scheduled in-app campaign. Only the fields you pass change; message fields are merged over the stored message. Clear imageUrl, position, imagePlacement, expiresAfterDays, style, html or showCloseButton with null, eyebrow with "", buttons with [] and data with {}. A scheduled campaign must stay launchable. Live, ended and stopped campaigns cannot be edited; stop and duplicate them instead. Requires the campaigns:write scope.
1450
+ *
1451
+ * @param {Sequenzy.UpdateInAppCampaignRequest} request
1452
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1453
+ *
1454
+ * @throws {@link Sequenzy.BadRequestError}
1455
+ * @throws {@link Sequenzy.UnauthorizedError}
1456
+ * @throws {@link Sequenzy.ForbiddenError}
1457
+ * @throws {@link Sequenzy.NotFoundError}
1458
+ * @throws {@link Sequenzy.ConflictError}
1459
+ * @throws {@link Sequenzy.InternalServerError}
1460
+ * @throws {@link errors.SequenzyError}
1461
+ * @throws {@link errors.SequenzyTimeoutError}
1462
+ *
1463
+ * @example
1464
+ * await client.inApp.updateInAppCampaign({
1465
+ * campaignId: "campaignId"
1466
+ * })
1467
+ */
1468
+ updateInAppCampaign(request, requestOptions) {
1469
+ return core.HttpResponsePromise.fromPromise(this.__updateInAppCampaign(request, requestOptions));
1470
+ }
1471
+ async __updateInAppCampaign(request, requestOptions) {
1472
+ const { campaignId, ..._body } = request;
1473
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1474
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1475
+ const _response = await core.fetcher({
1476
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1477
+ (await core.Supplier.get(this._options.environment)) ??
1478
+ environments.SequenzyEnvironment.Default, `in-app/campaigns/${core.url.encodePathParam(campaignId)}`),
1479
+ method: "PATCH",
1480
+ headers: _headers,
1481
+ contentType: "application/json",
1482
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1483
+ requestType: "json",
1484
+ body: mergeAdditionalBodyParameters(serializers.UpdateInAppCampaignRequest.jsonOrThrow(_body, {
1485
+ unrecognizedObjectKeys: "strip",
1486
+ omitUndefined: true,
1487
+ }), requestOptions?.additionalBodyParameters),
1488
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1489
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1490
+ abortSignal: requestOptions?.abortSignal,
1491
+ fetchFn: this._options?.fetch,
1492
+ logging: this._options.logging,
1493
+ });
1494
+ if (_response.ok) {
1495
+ return {
1496
+ data: serializers.UpdateInAppCampaignResponse.parseOrThrow(_response.body, {
1497
+ unrecognizedObjectKeys: "passthrough",
1498
+ allowUnrecognizedUnionMembers: true,
1499
+ allowUnrecognizedEnumValues: true,
1500
+ skipValidation: true,
1501
+ breadcrumbsPrefix: ["response"],
1502
+ }),
1503
+ rawResponse: _response.rawResponse,
1504
+ };
1505
+ }
1506
+ if (_response.error.reason === "status-code") {
1507
+ switch (_response.error.statusCode) {
1508
+ case 400:
1509
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
1510
+ case 401:
1511
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1512
+ case 403:
1513
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1514
+ case 404:
1515
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1516
+ case 409:
1517
+ throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
1518
+ case 500:
1519
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1520
+ default:
1521
+ throw new errors.SequenzyError({
1522
+ statusCode: _response.error.statusCode,
1523
+ body: _response.error.body,
1524
+ rawResponse: _response.rawResponse,
1525
+ });
1526
+ }
1527
+ }
1528
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/in-app/campaigns/{campaignId}");
1529
+ }
1530
+ /**
1531
+ * Changes a placement's name, description or size hints; null clears a size hint. The key cannot change. Requires the sequences:write scope.
1532
+ *
1533
+ * @param {Sequenzy.UpdateInAppPlacementRequest} request
1534
+ * @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
1535
+ *
1536
+ * @throws {@link Sequenzy.BadRequestError}
1537
+ * @throws {@link Sequenzy.UnauthorizedError}
1538
+ * @throws {@link Sequenzy.ForbiddenError}
1539
+ * @throws {@link Sequenzy.NotFoundError}
1540
+ * @throws {@link Sequenzy.InternalServerError}
1541
+ * @throws {@link errors.SequenzyError}
1542
+ * @throws {@link errors.SequenzyTimeoutError}
1543
+ *
1544
+ * @example
1545
+ * await client.inApp.updateInAppPlacement({
1546
+ * key: "key",
1547
+ * body: {}
1548
+ * })
1549
+ */
1550
+ updateInAppPlacement(request, requestOptions) {
1551
+ return core.HttpResponsePromise.fromPromise(this.__updateInAppPlacement(request, requestOptions));
1552
+ }
1553
+ async __updateInAppPlacement(request, requestOptions) {
1554
+ const { key, body: _body } = request;
1555
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1556
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1557
+ const _response = await core.fetcher({
1558
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1559
+ (await core.Supplier.get(this._options.environment)) ??
1560
+ environments.SequenzyEnvironment.Default, `in-app/placements/${core.url.encodePathParam(key)}`),
1561
+ method: "PATCH",
1562
+ headers: _headers,
1563
+ contentType: "application/json",
1564
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1565
+ requestType: "json",
1566
+ body: mergeAdditionalBodyParameters(serializers.InAppPlacementInput.jsonOrThrow(_body, {
1567
+ unrecognizedObjectKeys: "strip",
1568
+ omitUndefined: true,
1569
+ }), requestOptions?.additionalBodyParameters),
1570
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1571
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1572
+ abortSignal: requestOptions?.abortSignal,
1573
+ fetchFn: this._options?.fetch,
1574
+ logging: this._options.logging,
1575
+ });
1576
+ if (_response.ok) {
1577
+ return {
1578
+ data: serializers.UpdateInAppPlacementResponse.parseOrThrow(_response.body, {
1579
+ unrecognizedObjectKeys: "passthrough",
1580
+ allowUnrecognizedUnionMembers: true,
1581
+ allowUnrecognizedEnumValues: true,
1582
+ skipValidation: true,
1583
+ breadcrumbsPrefix: ["response"],
1584
+ }),
1585
+ rawResponse: _response.rawResponse,
1586
+ };
1587
+ }
1588
+ if (_response.error.reason === "status-code") {
1589
+ switch (_response.error.statusCode) {
1590
+ case 400:
1591
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
1592
+ case 401:
1593
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1594
+ case 403:
1595
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1596
+ case 404:
1597
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1598
+ case 500:
1599
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1600
+ default:
1601
+ throw new errors.SequenzyError({
1602
+ statusCode: _response.error.statusCode,
1603
+ body: _response.error.body,
1604
+ rawResponse: _response.rawResponse,
1605
+ });
1606
+ }
1607
+ }
1608
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/in-app/placements/{key}");
397
1609
  }
398
1610
  /**
399
1611
  * Checks a custom HTML in-app message document without saving anything: size against the 100 KB limit, Braze Liquid converted to Sequenzy merge tags, script hosts a website CSP must allow, whether it closes itself, warnings and blocking errors. Requires the sequences:read scope.