sequenzy 2.1.4 → 2.1.6

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 (203) hide show
  1. package/dist/cjs/api/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
  2. package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +9 -0
  3. package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +12 -0
  4. package/dist/cjs/api/resources/companies/types/index.d.ts +1 -0
  5. package/dist/cjs/api/resources/companies/types/index.js +1 -0
  6. package/dist/cjs/api/resources/push/client/Client.d.ts +97 -0
  7. package/dist/cjs/api/resources/push/client/Client.js +348 -0
  8. package/dist/cjs/api/resources/push/client/requests/EndLiveActivityRequest.d.ts +27 -0
  9. package/dist/cjs/api/resources/push/client/requests/EndLiveActivityRequest.js +3 -0
  10. package/dist/cjs/api/resources/push/client/requests/ListLiveActivitiesRequest.d.ts +17 -0
  11. package/dist/cjs/api/resources/push/client/requests/ListLiveActivitiesRequest.js +3 -0
  12. package/dist/cjs/api/resources/push/client/requests/StartLiveActivityRequest.d.ts +30 -0
  13. package/dist/cjs/api/resources/push/client/requests/StartLiveActivityRequest.js +3 -0
  14. package/dist/cjs/api/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +27 -0
  15. package/dist/cjs/api/resources/push/client/requests/UpdateLiveActivityRequest.js +3 -0
  16. package/dist/cjs/api/resources/push/client/requests/index.d.ts +4 -0
  17. package/dist/cjs/api/resources/push/types/EndLiveActivityRequestPriority.d.ts +6 -0
  18. package/dist/cjs/api/resources/push/types/EndLiveActivityRequestPriority.js +9 -0
  19. package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestKind.d.ts +5 -0
  20. package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestKind.js +8 -0
  21. package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +6 -0
  22. package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestStatus.js +9 -0
  23. package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponse.d.ts +8 -0
  24. package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponse.js +3 -0
  25. package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +9 -0
  26. package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummary.js +3 -0
  27. package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +5 -0
  28. package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +3 -0
  29. package/dist/cjs/api/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +6 -0
  30. package/dist/cjs/api/resources/push/types/UpdateLiveActivityRequestPriority.js +9 -0
  31. package/dist/cjs/api/resources/push/types/index.d.ts +7 -0
  32. package/dist/cjs/api/resources/push/types/index.js +7 -0
  33. package/dist/cjs/api/types/Company.d.ts +2 -0
  34. package/dist/cjs/api/types/CompanyFooterStyle.d.ts +9 -0
  35. package/dist/cjs/api/types/CompanyFooterStyle.js +12 -0
  36. package/dist/cjs/api/types/LiveActivityAlert.d.ts +9 -0
  37. package/dist/cjs/api/types/LiveActivityAlert.js +3 -0
  38. package/dist/cjs/api/types/LiveActivityDispatch.d.ts +11 -0
  39. package/dist/cjs/api/types/LiveActivityDispatch.js +3 -0
  40. package/dist/cjs/api/types/LiveActivityDispatchEvent.d.ts +6 -0
  41. package/dist/cjs/api/types/LiveActivityDispatchEvent.js +9 -0
  42. package/dist/cjs/api/types/LiveActivityTime.d.ts +4 -0
  43. package/dist/cjs/api/types/LiveActivityTime.js +3 -0
  44. package/dist/cjs/api/types/LiveActivityToken.d.ts +25 -0
  45. package/dist/cjs/api/types/LiveActivityToken.js +3 -0
  46. package/dist/cjs/api/types/LiveActivityTokenKind.d.ts +6 -0
  47. package/dist/cjs/api/types/LiveActivityTokenKind.js +9 -0
  48. package/dist/cjs/api/types/LiveActivityTokenStatus.d.ts +6 -0
  49. package/dist/cjs/api/types/LiveActivityTokenStatus.js +9 -0
  50. package/dist/cjs/api/types/index.d.ts +8 -0
  51. package/dist/cjs/api/types/index.js +8 -0
  52. package/dist/cjs/serialization/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
  53. package/dist/cjs/serialization/resources/companies/client/requests/UpdateCompaniesRequest.js +2 -0
  54. package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +7 -0
  55. package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +29 -0
  56. package/dist/cjs/serialization/resources/companies/types/index.d.ts +1 -0
  57. package/dist/cjs/serialization/resources/companies/types/index.js +1 -0
  58. package/dist/cjs/serialization/resources/push/client/requests/EndLiveActivityRequest.d.ts +20 -0
  59. package/dist/cjs/serialization/resources/push/client/requests/EndLiveActivityRequest.js +42 -0
  60. package/dist/cjs/serialization/resources/push/client/requests/StartLiveActivityRequest.d.ts +19 -0
  61. package/dist/cjs/serialization/resources/push/client/requests/StartLiveActivityRequest.js +41 -0
  62. package/dist/cjs/serialization/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +19 -0
  63. package/dist/cjs/serialization/resources/push/client/requests/UpdateLiveActivityRequest.js +41 -0
  64. package/dist/cjs/serialization/resources/push/client/requests/index.d.ts +3 -0
  65. package/dist/cjs/serialization/resources/push/client/requests/index.js +7 -1
  66. package/dist/cjs/serialization/resources/push/types/EndLiveActivityRequestPriority.d.ts +7 -0
  67. package/dist/cjs/serialization/resources/push/types/EndLiveActivityRequestPriority.js +29 -0
  68. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestKind.d.ts +7 -0
  69. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestKind.js +29 -0
  70. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +7 -0
  71. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestStatus.js +29 -0
  72. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponse.d.ts +14 -0
  73. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponse.js +36 -0
  74. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +12 -0
  75. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummary.js +34 -0
  76. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +11 -0
  77. package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +33 -0
  78. package/dist/cjs/serialization/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +7 -0
  79. package/dist/cjs/serialization/resources/push/types/UpdateLiveActivityRequestPriority.js +29 -0
  80. package/dist/cjs/serialization/resources/push/types/index.d.ts +7 -0
  81. package/dist/cjs/serialization/resources/push/types/index.js +7 -0
  82. package/dist/cjs/serialization/types/Company.d.ts +2 -0
  83. package/dist/cjs/serialization/types/Company.js +2 -0
  84. package/dist/cjs/serialization/types/CompanyFooterStyle.d.ts +7 -0
  85. package/dist/cjs/serialization/types/CompanyFooterStyle.js +29 -0
  86. package/dist/cjs/serialization/types/LiveActivityAlert.d.ts +11 -0
  87. package/dist/cjs/serialization/types/LiveActivityAlert.js +33 -0
  88. package/dist/cjs/serialization/types/LiveActivityDispatch.d.ts +15 -0
  89. package/dist/cjs/serialization/types/LiveActivityDispatch.js +37 -0
  90. package/dist/cjs/serialization/types/LiveActivityDispatchEvent.d.ts +7 -0
  91. package/dist/cjs/serialization/types/LiveActivityDispatchEvent.js +29 -0
  92. package/dist/cjs/serialization/types/LiveActivityTime.d.ts +7 -0
  93. package/dist/cjs/serialization/types/LiveActivityTime.js +29 -0
  94. package/dist/cjs/serialization/types/LiveActivityToken.d.ts +25 -0
  95. package/dist/cjs/serialization/types/LiveActivityToken.js +47 -0
  96. package/dist/cjs/serialization/types/LiveActivityTokenKind.d.ts +7 -0
  97. package/dist/cjs/serialization/types/LiveActivityTokenKind.js +29 -0
  98. package/dist/cjs/serialization/types/LiveActivityTokenStatus.d.ts +7 -0
  99. package/dist/cjs/serialization/types/LiveActivityTokenStatus.js +29 -0
  100. package/dist/cjs/serialization/types/index.d.ts +8 -0
  101. package/dist/cjs/serialization/types/index.js +8 -0
  102. package/dist/esm/api/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
  103. package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +9 -0
  104. package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +9 -0
  105. package/dist/esm/api/resources/companies/types/index.d.ts +1 -0
  106. package/dist/esm/api/resources/companies/types/index.js +1 -0
  107. package/dist/esm/api/resources/push/client/Client.d.ts +97 -0
  108. package/dist/esm/api/resources/push/client/Client.js +348 -0
  109. package/dist/esm/api/resources/push/client/requests/EndLiveActivityRequest.d.ts +27 -0
  110. package/dist/esm/api/resources/push/client/requests/EndLiveActivityRequest.js +2 -0
  111. package/dist/esm/api/resources/push/client/requests/ListLiveActivitiesRequest.d.ts +17 -0
  112. package/dist/esm/api/resources/push/client/requests/ListLiveActivitiesRequest.js +2 -0
  113. package/dist/esm/api/resources/push/client/requests/StartLiveActivityRequest.d.ts +30 -0
  114. package/dist/esm/api/resources/push/client/requests/StartLiveActivityRequest.js +2 -0
  115. package/dist/esm/api/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +27 -0
  116. package/dist/esm/api/resources/push/client/requests/UpdateLiveActivityRequest.js +2 -0
  117. package/dist/esm/api/resources/push/client/requests/index.d.ts +4 -0
  118. package/dist/esm/api/resources/push/types/EndLiveActivityRequestPriority.d.ts +6 -0
  119. package/dist/esm/api/resources/push/types/EndLiveActivityRequestPriority.js +6 -0
  120. package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestKind.d.ts +5 -0
  121. package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestKind.js +5 -0
  122. package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +6 -0
  123. package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestStatus.js +6 -0
  124. package/dist/esm/api/resources/push/types/ListLiveActivitiesResponse.d.ts +8 -0
  125. package/dist/esm/api/resources/push/types/ListLiveActivitiesResponse.js +2 -0
  126. package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +9 -0
  127. package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummary.js +2 -0
  128. package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +5 -0
  129. package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +2 -0
  130. package/dist/esm/api/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +6 -0
  131. package/dist/esm/api/resources/push/types/UpdateLiveActivityRequestPriority.js +6 -0
  132. package/dist/esm/api/resources/push/types/index.d.ts +7 -0
  133. package/dist/esm/api/resources/push/types/index.js +7 -0
  134. package/dist/esm/api/types/Company.d.ts +2 -0
  135. package/dist/esm/api/types/CompanyFooterStyle.d.ts +9 -0
  136. package/dist/esm/api/types/CompanyFooterStyle.js +9 -0
  137. package/dist/esm/api/types/LiveActivityAlert.d.ts +9 -0
  138. package/dist/esm/api/types/LiveActivityAlert.js +2 -0
  139. package/dist/esm/api/types/LiveActivityDispatch.d.ts +11 -0
  140. package/dist/esm/api/types/LiveActivityDispatch.js +2 -0
  141. package/dist/esm/api/types/LiveActivityDispatchEvent.d.ts +6 -0
  142. package/dist/esm/api/types/LiveActivityDispatchEvent.js +6 -0
  143. package/dist/esm/api/types/LiveActivityTime.d.ts +4 -0
  144. package/dist/esm/api/types/LiveActivityTime.js +2 -0
  145. package/dist/esm/api/types/LiveActivityToken.d.ts +25 -0
  146. package/dist/esm/api/types/LiveActivityToken.js +2 -0
  147. package/dist/esm/api/types/LiveActivityTokenKind.d.ts +6 -0
  148. package/dist/esm/api/types/LiveActivityTokenKind.js +6 -0
  149. package/dist/esm/api/types/LiveActivityTokenStatus.d.ts +6 -0
  150. package/dist/esm/api/types/LiveActivityTokenStatus.js +6 -0
  151. package/dist/esm/api/types/index.d.ts +8 -0
  152. package/dist/esm/api/types/index.js +8 -0
  153. package/dist/esm/serialization/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
  154. package/dist/esm/serialization/resources/companies/client/requests/UpdateCompaniesRequest.js +2 -0
  155. package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +7 -0
  156. package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +3 -0
  157. package/dist/esm/serialization/resources/companies/types/index.d.ts +1 -0
  158. package/dist/esm/serialization/resources/companies/types/index.js +1 -0
  159. package/dist/esm/serialization/resources/push/client/requests/EndLiveActivityRequest.d.ts +20 -0
  160. package/dist/esm/serialization/resources/push/client/requests/EndLiveActivityRequest.js +16 -0
  161. package/dist/esm/serialization/resources/push/client/requests/StartLiveActivityRequest.d.ts +19 -0
  162. package/dist/esm/serialization/resources/push/client/requests/StartLiveActivityRequest.js +15 -0
  163. package/dist/esm/serialization/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +19 -0
  164. package/dist/esm/serialization/resources/push/client/requests/UpdateLiveActivityRequest.js +15 -0
  165. package/dist/esm/serialization/resources/push/client/requests/index.d.ts +3 -0
  166. package/dist/esm/serialization/resources/push/client/requests/index.js +3 -0
  167. package/dist/esm/serialization/resources/push/types/EndLiveActivityRequestPriority.d.ts +7 -0
  168. package/dist/esm/serialization/resources/push/types/EndLiveActivityRequestPriority.js +3 -0
  169. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestKind.d.ts +7 -0
  170. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestKind.js +3 -0
  171. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +7 -0
  172. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestStatus.js +3 -0
  173. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponse.d.ts +14 -0
  174. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponse.js +10 -0
  175. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +12 -0
  176. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummary.js +8 -0
  177. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +11 -0
  178. package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +7 -0
  179. package/dist/esm/serialization/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +7 -0
  180. package/dist/esm/serialization/resources/push/types/UpdateLiveActivityRequestPriority.js +3 -0
  181. package/dist/esm/serialization/resources/push/types/index.d.ts +7 -0
  182. package/dist/esm/serialization/resources/push/types/index.js +7 -0
  183. package/dist/esm/serialization/types/Company.d.ts +2 -0
  184. package/dist/esm/serialization/types/Company.js +2 -0
  185. package/dist/esm/serialization/types/CompanyFooterStyle.d.ts +7 -0
  186. package/dist/esm/serialization/types/CompanyFooterStyle.js +3 -0
  187. package/dist/esm/serialization/types/LiveActivityAlert.d.ts +11 -0
  188. package/dist/esm/serialization/types/LiveActivityAlert.js +7 -0
  189. package/dist/esm/serialization/types/LiveActivityDispatch.d.ts +15 -0
  190. package/dist/esm/serialization/types/LiveActivityDispatch.js +11 -0
  191. package/dist/esm/serialization/types/LiveActivityDispatchEvent.d.ts +7 -0
  192. package/dist/esm/serialization/types/LiveActivityDispatchEvent.js +3 -0
  193. package/dist/esm/serialization/types/LiveActivityTime.d.ts +7 -0
  194. package/dist/esm/serialization/types/LiveActivityTime.js +3 -0
  195. package/dist/esm/serialization/types/LiveActivityToken.d.ts +25 -0
  196. package/dist/esm/serialization/types/LiveActivityToken.js +21 -0
  197. package/dist/esm/serialization/types/LiveActivityTokenKind.d.ts +7 -0
  198. package/dist/esm/serialization/types/LiveActivityTokenKind.js +3 -0
  199. package/dist/esm/serialization/types/LiveActivityTokenStatus.d.ts +7 -0
  200. package/dist/esm/serialization/types/LiveActivityTokenStatus.js +3 -0
  201. package/dist/esm/serialization/types/index.d.ts +8 -0
  202. package/dist/esm/serialization/types/index.js +8 -0
  203. package/package.json +1 -1
@@ -26,6 +26,8 @@ export interface UpdateCompaniesRequest {
26
26
  /** Default email theme. Partial update - omitted fields keep their current value (or the preset default) and numeric values are clamped to supported ranges. Pass null to reset to the platform default theme. */
27
27
  emailTheme?: Sequenzy.UpdateCompaniesRequestEmailTheme | null;
28
28
  fontFamily?: string | null;
29
+ /** Footer style for new AI-designed emails: `auto` (fits the brand), `classic`, `mono`, `band` or `editorial`. Kept in the stored footer theme, alongside its other settings. Existing emails keep their footers. Other values return 400. */
30
+ footerStyle?: Sequenzy.UpdateCompaniesRequestFooterStyle;
29
31
  /** Enable or disable forwarding captured replies to the configured mailbox. */
30
32
  forwardReplies?: boolean;
31
33
  founderName?: string | null;
@@ -0,0 +1,9 @@
1
+ /** Footer style for new AI-designed emails: `auto` (fits the brand), `classic`, `mono`, `band` or `editorial`. Kept in the stored footer theme, alongside its other settings. Existing emails keep their footers. Other values return 400. */
2
+ export declare const UpdateCompaniesRequestFooterStyle: {
3
+ readonly Auto: "auto";
4
+ readonly Classic: "classic";
5
+ readonly Mono: "mono";
6
+ readonly Band: "band";
7
+ readonly Editorial: "editorial";
8
+ };
9
+ export type UpdateCompaniesRequestFooterStyle = (typeof UpdateCompaniesRequestFooterStyle)[keyof typeof UpdateCompaniesRequestFooterStyle];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UpdateCompaniesRequestFooterStyle = void 0;
5
+ /** Footer style for new AI-designed emails: `auto` (fits the brand), `classic`, `mono`, `band` or `editorial`. Kept in the stored footer theme, alongside its other settings. Existing emails keep their footers. Other values return 400. */
6
+ exports.UpdateCompaniesRequestFooterStyle = {
7
+ Auto: "auto",
8
+ Classic: "classic",
9
+ Mono: "mono",
10
+ Band: "band",
11
+ Editorial: "editorial",
12
+ };
@@ -12,5 +12,6 @@ export * from "./UpdateCompaniesRequestEmailThemeColors.js";
12
12
  export * from "./UpdateCompaniesRequestEmailThemeLayout.js";
13
13
  export * from "./UpdateCompaniesRequestEmailThemePresetId.js";
14
14
  export * from "./UpdateCompaniesRequestEmailThemeTypography.js";
15
+ export * from "./UpdateCompaniesRequestFooterStyle.js";
15
16
  export * from "./UpdateCompaniesRequestReplyTrackingDomainMode.js";
16
17
  export * from "./UpdateCompaniesResponse.js";
@@ -28,5 +28,6 @@ __exportStar(require("./UpdateCompaniesRequestEmailThemeColors.js"), exports);
28
28
  __exportStar(require("./UpdateCompaniesRequestEmailThemeLayout.js"), exports);
29
29
  __exportStar(require("./UpdateCompaniesRequestEmailThemePresetId.js"), exports);
30
30
  __exportStar(require("./UpdateCompaniesRequestEmailThemeTypography.js"), exports);
31
+ __exportStar(require("./UpdateCompaniesRequestFooterStyle.js"), exports);
31
32
  __exportStar(require("./UpdateCompaniesRequestReplyTrackingDomainMode.js"), exports);
32
33
  __exportStar(require("./UpdateCompaniesResponse.js"), exports);
@@ -126,6 +126,31 @@ export declare class PushClient {
126
126
  */
127
127
  duplicatePushCampaign(request: Sequenzy.DuplicatePushCampaignRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DuplicatePushCampaignResponse>;
128
128
  private __duplicatePushCampaign;
129
+ /**
130
+ * Ends the contact's activity on every device running it. Tokens are marked ended as APNs accepts the push, so an end that failed can be sent again. Without dismissalDate iOS keeps an ended activity on the Lock Screen for up to four hours. Requires the transactional:send scope.
131
+ *
132
+ * @param {Sequenzy.EndLiveActivityRequest} request
133
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
134
+ *
135
+ * @throws {@link Sequenzy.BadRequestError}
136
+ * @throws {@link Sequenzy.UnauthorizedError}
137
+ * @throws {@link Sequenzy.ForbiddenError}
138
+ * @throws {@link Sequenzy.NotFoundError}
139
+ * @throws {@link Sequenzy.UnprocessableEntityError}
140
+ * @throws {@link Sequenzy.InternalServerError}
141
+ * @throws {@link errors.SequenzyError}
142
+ * @throws {@link errors.SequenzyTimeoutError}
143
+ *
144
+ * @example
145
+ * await client.push.endLiveActivity({
146
+ * activityId: "order-1234",
147
+ * contentState: {
148
+ * "key": "value"
149
+ * }
150
+ * })
151
+ */
152
+ endLiveActivity(request: Sequenzy.EndLiveActivityRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.LiveActivityDispatch>;
153
+ private __endLiveActivity;
129
154
  /**
130
155
  * Counts the contacts in an audience (audienceCount) and those with an active device on the selected platforms (eligibleCount). Email status does not affect push eligibility. Requires the campaigns:read scope.
131
156
  *
@@ -206,6 +231,24 @@ export declare class PushClient {
206
231
  */
207
232
  getPushSettings(requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.GetPushSettingsResponse>;
208
233
  private __getPushSettings;
234
+ /**
235
+ * Lists ActivityKit tokens the Sequenzy iOS SDK reported, with a summary per activity type (for the contact when email or subscriberId is given). push_to_start tokens can start an activity of their type; update tokens address one running activity. Tokens are masked. Requires the subscribers:read scope.
236
+ *
237
+ * @param {Sequenzy.ListLiveActivitiesRequest} request
238
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
239
+ *
240
+ * @throws {@link Sequenzy.UnauthorizedError}
241
+ * @throws {@link Sequenzy.ForbiddenError}
242
+ * @throws {@link Sequenzy.NotFoundError}
243
+ * @throws {@link Sequenzy.InternalServerError}
244
+ * @throws {@link errors.SequenzyError}
245
+ * @throws {@link errors.SequenzyTimeoutError}
246
+ *
247
+ * @example
248
+ * await client.push.listLiveActivities()
249
+ */
250
+ listLiveActivities(request?: Sequenzy.ListLiveActivitiesRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListLiveActivitiesResponse>;
251
+ private __listLiveActivities;
209
252
  /**
210
253
  * Lists push campaigns, newest first. Push campaigns also appear in GET /campaigns with type push. Requires the campaigns:read scope.
211
254
  *
@@ -350,6 +393,34 @@ export declare class PushClient {
350
393
  */
351
394
  setFcmCredentials(request: Sequenzy.SetFcmCredentialsRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SetFcmCredentialsResponse>;
352
395
  private __setFcmCredentials;
396
+ /**
397
+ * Starts an iOS Live Activity remotely (push-to-start, iOS 17.2+) on every device of one contact that reported a push-to-start token for activityType. Sequenzy adds sequenzy.activityId to the attributes so the SDK can report the new activity's update token under your id. Returns 202 with tokenCount 0, sending nothing, when no device can start it. Calling it again starts another copy. Requires the transactional:send scope.
398
+ *
399
+ * @param {Sequenzy.StartLiveActivityRequest} request
400
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
401
+ *
402
+ * @throws {@link Sequenzy.BadRequestError}
403
+ * @throws {@link Sequenzy.UnauthorizedError}
404
+ * @throws {@link Sequenzy.ForbiddenError}
405
+ * @throws {@link Sequenzy.NotFoundError}
406
+ * @throws {@link Sequenzy.UnprocessableEntityError}
407
+ * @throws {@link Sequenzy.InternalServerError}
408
+ * @throws {@link errors.SequenzyError}
409
+ * @throws {@link errors.SequenzyTimeoutError}
410
+ *
411
+ * @example
412
+ * await client.push.startLiveActivity({
413
+ * activityId: "order-1234",
414
+ * activityType: "DeliveryAttributes",
415
+ * alert: {},
416
+ * contentState: {
417
+ * "minutesAway": 8,
418
+ * "status": "out_for_delivery"
419
+ * }
420
+ * })
421
+ */
422
+ startLiveActivity(request: Sequenzy.StartLiveActivityRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.LiveActivityDispatch>;
423
+ private __startLiveActivity;
353
424
  /**
354
425
  * Moves a scheduled push campaign back to draft. The queued send is discarded. Requires the campaigns:send scope.
355
426
  *
@@ -372,6 +443,32 @@ export declare class PushClient {
372
443
  */
373
444
  unschedulePushCampaign(request: Sequenzy.UnschedulePushCampaignRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.UnschedulePushCampaignResponse>;
374
445
  private __unschedulePushCampaign;
446
+ /**
447
+ * Sends new content state to every running copy of the contact's activity (one per device that reported an update token). Each request carries a fixed timestamp, so a retried or late delivery never replaces newer content. Returns tokenCount 0 when no running copy has reported a token. Requires the transactional:send scope.
448
+ *
449
+ * @param {Sequenzy.UpdateLiveActivityRequest} request
450
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
451
+ *
452
+ * @throws {@link Sequenzy.BadRequestError}
453
+ * @throws {@link Sequenzy.UnauthorizedError}
454
+ * @throws {@link Sequenzy.ForbiddenError}
455
+ * @throws {@link Sequenzy.NotFoundError}
456
+ * @throws {@link Sequenzy.UnprocessableEntityError}
457
+ * @throws {@link Sequenzy.InternalServerError}
458
+ * @throws {@link errors.SequenzyError}
459
+ * @throws {@link errors.SequenzyTimeoutError}
460
+ *
461
+ * @example
462
+ * await client.push.updateLiveActivity({
463
+ * activityId: "order-1234",
464
+ * contentState: {
465
+ * "minutesAway": 8,
466
+ * "status": "out_for_delivery"
467
+ * }
468
+ * })
469
+ */
470
+ updateLiveActivity(request: Sequenzy.UpdateLiveActivityRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.LiveActivityDispatch>;
471
+ private __updateLiveActivity;
375
472
  /**
376
473
  * Updates a draft or scheduled push campaign. Only the fields you pass change; content fields merge over the stored content. A scheduled campaign keeps its schedule and cannot be cleared to empty content. Requires the campaigns:write scope.
377
474
  *
@@ -465,6 +465,90 @@ class PushClient {
465
465
  }
466
466
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/push/campaigns/{campaignId}/duplicate");
467
467
  }
468
+ /**
469
+ * Ends the contact's activity on every device running it. Tokens are marked ended as APNs accepts the push, so an end that failed can be sent again. Without dismissalDate iOS keeps an ended activity on the Lock Screen for up to four hours. Requires the transactional:send scope.
470
+ *
471
+ * @param {Sequenzy.EndLiveActivityRequest} request
472
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
473
+ *
474
+ * @throws {@link Sequenzy.BadRequestError}
475
+ * @throws {@link Sequenzy.UnauthorizedError}
476
+ * @throws {@link Sequenzy.ForbiddenError}
477
+ * @throws {@link Sequenzy.NotFoundError}
478
+ * @throws {@link Sequenzy.UnprocessableEntityError}
479
+ * @throws {@link Sequenzy.InternalServerError}
480
+ * @throws {@link errors.SequenzyError}
481
+ * @throws {@link errors.SequenzyTimeoutError}
482
+ *
483
+ * @example
484
+ * await client.push.endLiveActivity({
485
+ * activityId: "order-1234",
486
+ * contentState: {
487
+ * "key": "value"
488
+ * }
489
+ * })
490
+ */
491
+ endLiveActivity(request, requestOptions) {
492
+ return core.HttpResponsePromise.fromPromise(this.__endLiveActivity(request, requestOptions));
493
+ }
494
+ async __endLiveActivity(request, requestOptions) {
495
+ const _authRequest = await this._options.authProvider.getAuthRequest();
496
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
497
+ const _response = await core.fetcher({
498
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
499
+ (await core.Supplier.get(this._options.environment)) ??
500
+ environments.SequenzyEnvironment.Default, "push/live-activities/end"),
501
+ method: "POST",
502
+ headers: _headers,
503
+ contentType: "application/json",
504
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
505
+ requestType: "json",
506
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.EndLiveActivityRequest.jsonOrThrow(request, {
507
+ unrecognizedObjectKeys: "strip",
508
+ omitUndefined: true,
509
+ }), requestOptions?.additionalBodyParameters),
510
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
511
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
512
+ abortSignal: requestOptions?.abortSignal,
513
+ fetchFn: this._options?.fetch,
514
+ logging: this._options.logging,
515
+ });
516
+ if (_response.ok) {
517
+ return {
518
+ data: serializers.LiveActivityDispatch.parseOrThrow(_response.body, {
519
+ unrecognizedObjectKeys: "passthrough",
520
+ allowUnrecognizedUnionMembers: true,
521
+ allowUnrecognizedEnumValues: true,
522
+ skipValidation: true,
523
+ breadcrumbsPrefix: ["response"],
524
+ }),
525
+ rawResponse: _response.rawResponse,
526
+ };
527
+ }
528
+ if (_response.error.reason === "status-code") {
529
+ switch (_response.error.statusCode) {
530
+ case 400:
531
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
532
+ case 401:
533
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
534
+ case 403:
535
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
536
+ case 404:
537
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
538
+ case 422:
539
+ throw new Sequenzy.UnprocessableEntityError(_response.error.body, _response.rawResponse);
540
+ case 500:
541
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
542
+ default:
543
+ throw new errors.SequenzyError({
544
+ statusCode: _response.error.statusCode,
545
+ body: _response.error.body,
546
+ rawResponse: _response.rawResponse,
547
+ });
548
+ }
549
+ }
550
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/push/live-activities/end");
551
+ }
468
552
  /**
469
553
  * Counts the contacts in an audience (audienceCount) and those with an active device on the selected platforms (eligibleCount). Email status does not affect push eligibility. Requires the campaigns:read scope.
470
554
  *
@@ -751,6 +835,98 @@ class PushClient {
751
835
  }
752
836
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/push/settings");
753
837
  }
838
+ /**
839
+ * Lists ActivityKit tokens the Sequenzy iOS SDK reported, with a summary per activity type (for the contact when email or subscriberId is given). push_to_start tokens can start an activity of their type; update tokens address one running activity. Tokens are masked. Requires the subscribers:read scope.
840
+ *
841
+ * @param {Sequenzy.ListLiveActivitiesRequest} request
842
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
843
+ *
844
+ * @throws {@link Sequenzy.UnauthorizedError}
845
+ * @throws {@link Sequenzy.ForbiddenError}
846
+ * @throws {@link Sequenzy.NotFoundError}
847
+ * @throws {@link Sequenzy.InternalServerError}
848
+ * @throws {@link errors.SequenzyError}
849
+ * @throws {@link errors.SequenzyTimeoutError}
850
+ *
851
+ * @example
852
+ * await client.push.listLiveActivities()
853
+ */
854
+ listLiveActivities(request = {}, requestOptions) {
855
+ return core.HttpResponsePromise.fromPromise(this.__listLiveActivities(request, requestOptions));
856
+ }
857
+ async __listLiveActivities(request = {}, requestOptions) {
858
+ const { activityId, activityType, cursor, email, kind, limit, status, subscriberId } = request;
859
+ const _queryParams = {
860
+ activityId,
861
+ activityType,
862
+ cursor,
863
+ email,
864
+ kind: kind != null
865
+ ? serializers.ListLiveActivitiesRequestKind.jsonOrThrow(kind, {
866
+ unrecognizedObjectKeys: "strip",
867
+ omitUndefined: true,
868
+ })
869
+ : undefined,
870
+ limit,
871
+ status: status != null
872
+ ? serializers.ListLiveActivitiesRequestStatus.jsonOrThrow(status, {
873
+ unrecognizedObjectKeys: "strip",
874
+ omitUndefined: true,
875
+ })
876
+ : undefined,
877
+ subscriberId,
878
+ };
879
+ const _authRequest = await this._options.authProvider.getAuthRequest();
880
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
881
+ const _response = await core.fetcher({
882
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
883
+ (await core.Supplier.get(this._options.environment)) ??
884
+ environments.SequenzyEnvironment.Default, "push/live-activities"),
885
+ method: "GET",
886
+ headers: _headers,
887
+ queryString: core.url
888
+ .queryBuilder()
889
+ .addMany(_queryParams)
890
+ .mergeAdditional(requestOptions?.queryParams)
891
+ .build(),
892
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
893
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
894
+ abortSignal: requestOptions?.abortSignal,
895
+ fetchFn: this._options?.fetch,
896
+ logging: this._options.logging,
897
+ });
898
+ if (_response.ok) {
899
+ return {
900
+ data: serializers.ListLiveActivitiesResponse.parseOrThrow(_response.body, {
901
+ unrecognizedObjectKeys: "passthrough",
902
+ allowUnrecognizedUnionMembers: true,
903
+ allowUnrecognizedEnumValues: true,
904
+ skipValidation: true,
905
+ breadcrumbsPrefix: ["response"],
906
+ }),
907
+ rawResponse: _response.rawResponse,
908
+ };
909
+ }
910
+ if (_response.error.reason === "status-code") {
911
+ switch (_response.error.statusCode) {
912
+ case 401:
913
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
914
+ case 403:
915
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
916
+ case 404:
917
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
918
+ case 500:
919
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
920
+ default:
921
+ throw new errors.SequenzyError({
922
+ statusCode: _response.error.statusCode,
923
+ body: _response.error.body,
924
+ rawResponse: _response.rawResponse,
925
+ });
926
+ }
927
+ }
928
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/push/live-activities");
929
+ }
754
930
  /**
755
931
  * Lists push campaigns, newest first. Push campaigns also appear in GET /campaigns with type push. Requires the campaigns:read scope.
756
932
  *
@@ -1319,6 +1495,93 @@ class PushClient {
1319
1495
  }
1320
1496
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/push/settings/android");
1321
1497
  }
1498
+ /**
1499
+ * Starts an iOS Live Activity remotely (push-to-start, iOS 17.2+) on every device of one contact that reported a push-to-start token for activityType. Sequenzy adds sequenzy.activityId to the attributes so the SDK can report the new activity's update token under your id. Returns 202 with tokenCount 0, sending nothing, when no device can start it. Calling it again starts another copy. Requires the transactional:send scope.
1500
+ *
1501
+ * @param {Sequenzy.StartLiveActivityRequest} request
1502
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
1503
+ *
1504
+ * @throws {@link Sequenzy.BadRequestError}
1505
+ * @throws {@link Sequenzy.UnauthorizedError}
1506
+ * @throws {@link Sequenzy.ForbiddenError}
1507
+ * @throws {@link Sequenzy.NotFoundError}
1508
+ * @throws {@link Sequenzy.UnprocessableEntityError}
1509
+ * @throws {@link Sequenzy.InternalServerError}
1510
+ * @throws {@link errors.SequenzyError}
1511
+ * @throws {@link errors.SequenzyTimeoutError}
1512
+ *
1513
+ * @example
1514
+ * await client.push.startLiveActivity({
1515
+ * activityId: "order-1234",
1516
+ * activityType: "DeliveryAttributes",
1517
+ * alert: {},
1518
+ * contentState: {
1519
+ * "minutesAway": 8,
1520
+ * "status": "out_for_delivery"
1521
+ * }
1522
+ * })
1523
+ */
1524
+ startLiveActivity(request, requestOptions) {
1525
+ return core.HttpResponsePromise.fromPromise(this.__startLiveActivity(request, requestOptions));
1526
+ }
1527
+ async __startLiveActivity(request, requestOptions) {
1528
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1529
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1530
+ const _response = await core.fetcher({
1531
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1532
+ (await core.Supplier.get(this._options.environment)) ??
1533
+ environments.SequenzyEnvironment.Default, "push/live-activities/start"),
1534
+ method: "POST",
1535
+ headers: _headers,
1536
+ contentType: "application/json",
1537
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1538
+ requestType: "json",
1539
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.StartLiveActivityRequest.jsonOrThrow(request, {
1540
+ unrecognizedObjectKeys: "strip",
1541
+ omitUndefined: true,
1542
+ }), requestOptions?.additionalBodyParameters),
1543
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1544
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1545
+ abortSignal: requestOptions?.abortSignal,
1546
+ fetchFn: this._options?.fetch,
1547
+ logging: this._options.logging,
1548
+ });
1549
+ if (_response.ok) {
1550
+ return {
1551
+ data: serializers.LiveActivityDispatch.parseOrThrow(_response.body, {
1552
+ unrecognizedObjectKeys: "passthrough",
1553
+ allowUnrecognizedUnionMembers: true,
1554
+ allowUnrecognizedEnumValues: true,
1555
+ skipValidation: true,
1556
+ breadcrumbsPrefix: ["response"],
1557
+ }),
1558
+ rawResponse: _response.rawResponse,
1559
+ };
1560
+ }
1561
+ if (_response.error.reason === "status-code") {
1562
+ switch (_response.error.statusCode) {
1563
+ case 400:
1564
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
1565
+ case 401:
1566
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1567
+ case 403:
1568
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1569
+ case 404:
1570
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1571
+ case 422:
1572
+ throw new Sequenzy.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1573
+ case 500:
1574
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1575
+ default:
1576
+ throw new errors.SequenzyError({
1577
+ statusCode: _response.error.statusCode,
1578
+ body: _response.error.body,
1579
+ rawResponse: _response.rawResponse,
1580
+ });
1581
+ }
1582
+ }
1583
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/push/live-activities/start");
1584
+ }
1322
1585
  /**
1323
1586
  * Moves a scheduled push campaign back to draft. The queued send is discarded. Requires the campaigns:send scope.
1324
1587
  *
@@ -1395,6 +1658,91 @@ class PushClient {
1395
1658
  }
1396
1659
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/push/campaigns/{campaignId}/unschedule");
1397
1660
  }
1661
+ /**
1662
+ * Sends new content state to every running copy of the contact's activity (one per device that reported an update token). Each request carries a fixed timestamp, so a retried or late delivery never replaces newer content. Returns tokenCount 0 when no running copy has reported a token. Requires the transactional:send scope.
1663
+ *
1664
+ * @param {Sequenzy.UpdateLiveActivityRequest} request
1665
+ * @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
1666
+ *
1667
+ * @throws {@link Sequenzy.BadRequestError}
1668
+ * @throws {@link Sequenzy.UnauthorizedError}
1669
+ * @throws {@link Sequenzy.ForbiddenError}
1670
+ * @throws {@link Sequenzy.NotFoundError}
1671
+ * @throws {@link Sequenzy.UnprocessableEntityError}
1672
+ * @throws {@link Sequenzy.InternalServerError}
1673
+ * @throws {@link errors.SequenzyError}
1674
+ * @throws {@link errors.SequenzyTimeoutError}
1675
+ *
1676
+ * @example
1677
+ * await client.push.updateLiveActivity({
1678
+ * activityId: "order-1234",
1679
+ * contentState: {
1680
+ * "minutesAway": 8,
1681
+ * "status": "out_for_delivery"
1682
+ * }
1683
+ * })
1684
+ */
1685
+ updateLiveActivity(request, requestOptions) {
1686
+ return core.HttpResponsePromise.fromPromise(this.__updateLiveActivity(request, requestOptions));
1687
+ }
1688
+ async __updateLiveActivity(request, requestOptions) {
1689
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1690
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1691
+ const _response = await core.fetcher({
1692
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1693
+ (await core.Supplier.get(this._options.environment)) ??
1694
+ environments.SequenzyEnvironment.Default, "push/live-activities/update"),
1695
+ method: "POST",
1696
+ headers: _headers,
1697
+ contentType: "application/json",
1698
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1699
+ requestType: "json",
1700
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.UpdateLiveActivityRequest.jsonOrThrow(request, {
1701
+ unrecognizedObjectKeys: "strip",
1702
+ omitUndefined: true,
1703
+ }), requestOptions?.additionalBodyParameters),
1704
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1705
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1706
+ abortSignal: requestOptions?.abortSignal,
1707
+ fetchFn: this._options?.fetch,
1708
+ logging: this._options.logging,
1709
+ });
1710
+ if (_response.ok) {
1711
+ return {
1712
+ data: serializers.LiveActivityDispatch.parseOrThrow(_response.body, {
1713
+ unrecognizedObjectKeys: "passthrough",
1714
+ allowUnrecognizedUnionMembers: true,
1715
+ allowUnrecognizedEnumValues: true,
1716
+ skipValidation: true,
1717
+ breadcrumbsPrefix: ["response"],
1718
+ }),
1719
+ rawResponse: _response.rawResponse,
1720
+ };
1721
+ }
1722
+ if (_response.error.reason === "status-code") {
1723
+ switch (_response.error.statusCode) {
1724
+ case 400:
1725
+ throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
1726
+ case 401:
1727
+ throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
1728
+ case 403:
1729
+ throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
1730
+ case 404:
1731
+ throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
1732
+ case 422:
1733
+ throw new Sequenzy.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1734
+ case 500:
1735
+ throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
1736
+ default:
1737
+ throw new errors.SequenzyError({
1738
+ statusCode: _response.error.statusCode,
1739
+ body: _response.error.body,
1740
+ rawResponse: _response.rawResponse,
1741
+ });
1742
+ }
1743
+ }
1744
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/push/live-activities/update");
1745
+ }
1398
1746
  /**
1399
1747
  * Updates a draft or scheduled push campaign. Only the fields you pass change; content fields merge over the stored content. A scheduled campaign keeps its schedule and cannot be cleared to empty content. Requires the campaigns:write scope.
1400
1748
  *
@@ -0,0 +1,27 @@
1
+ import type * as Sequenzy from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * activityId: "order-1234",
6
+ * contentState: {
7
+ * "key": "value"
8
+ * }
9
+ * }
10
+ */
11
+ export interface EndLiveActivityRequest {
12
+ /** Your id for the activity, chosen when it starts. */
13
+ activityId: string;
14
+ alert?: Sequenzy.LiveActivityAlert;
15
+ /** Final content shown until the activity is removed. Required, as in Apple's end payloads. */
16
+ contentState: Record<string, unknown>;
17
+ dismissalDate?: Sequenzy.LiveActivityTime;
18
+ /** Contact whose activity it is. Provide email or subscriberId; activities are always addressed per contact, so a token registered under the same activityId by another device never receives this content. */
19
+ email?: string;
20
+ /** high (default) delivers immediately and counts against Apple's Live Activity update budget; low (apns-priority 5) does not. Pushes with an alert always go at high priority. */
21
+ priority?: Sequenzy.EndLiveActivityRequestPriority;
22
+ /** Orders a person's concurrent activities; higher shows first. */
23
+ relevanceScore?: number;
24
+ staleDate?: Sequenzy.LiveActivityTime;
25
+ /** Subscriber whose activity it is. */
26
+ subscriberId?: string;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import type * as Sequenzy from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface ListLiveActivitiesRequest {
7
+ activityId?: string;
8
+ activityType?: string;
9
+ /** nextCursor from the previous page. */
10
+ cursor?: string;
11
+ /** Only this contact's tokens. */
12
+ email?: string;
13
+ kind?: Sequenzy.ListLiveActivitiesRequestKind;
14
+ limit?: number;
15
+ status?: Sequenzy.ListLiveActivitiesRequestStatus;
16
+ subscriberId?: string;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ import type * as Sequenzy from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * activityId: "order-1234",
6
+ * activityType: "DeliveryAttributes",
7
+ * alert: {},
8
+ * contentState: {
9
+ * "minutesAway": 8,
10
+ * "status": "out_for_delivery"
11
+ * }
12
+ * }
13
+ */
14
+ export interface StartLiveActivityRequest {
15
+ /** Your id for the activity, chosen when it starts. */
16
+ activityId: string;
17
+ /** The Swift ActivityAttributes type name, sent to APNs as attributes-type. */
18
+ activityType: string;
19
+ alert: Sequenzy.LiveActivityAlert;
20
+ /** Static attributes as JSON. A sequenzy key you send is replaced. */
21
+ attributes?: Record<string, unknown>;
22
+ /** Your Swift ContentState as JSON. Date fields decode as seconds since 2001-01-01 unless your struct decodes them differently. */
23
+ contentState: Record<string, unknown>;
24
+ /** Contact whose devices start the activity. Provide email or subscriberId. */
25
+ email?: string;
26
+ /** Orders a person's concurrent activities; higher shows first. */
27
+ relevanceScore?: number;
28
+ staleDate?: Sequenzy.LiveActivityTime;
29
+ subscriberId?: string;
30
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });