@enbbox/api 1.0.0

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 (750) hide show
  1. package/README.md +380 -0
  2. package/dist/api/activity-api.d.ts +381 -0
  3. package/dist/api/activity-api.js +636 -0
  4. package/dist/api/billing-api.d.ts +337 -0
  5. package/dist/api/billing-api.js +571 -0
  6. package/dist/api/channel-connections-api.d.ts +263 -0
  7. package/dist/api/channel-connections-api.js +437 -0
  8. package/dist/api/channel-endpoints-api.d.ts +263 -0
  9. package/dist/api/channel-endpoints-api.js +437 -0
  10. package/dist/api/contexts-api.d.ts +278 -0
  11. package/dist/api/contexts-api.js +458 -0
  12. package/dist/api/events-api.d.ts +203 -0
  13. package/dist/api/events-api.js +341 -0
  14. package/dist/api/feature-flags-api.d.ts +74 -0
  15. package/dist/api/feature-flags-api.js +124 -0
  16. package/dist/api/health-api.d.ts +144 -0
  17. package/dist/api/health-api.js +237 -0
  18. package/dist/api/inbound-parse-api.d.ts +79 -0
  19. package/dist/api/inbound-parse-api.js +129 -0
  20. package/dist/api/inbox-api.d.ts +582 -0
  21. package/dist/api/inbox-api.js +976 -0
  22. package/dist/api/integrations-api.d.ts +420 -0
  23. package/dist/api/integrations-api.js +707 -0
  24. package/dist/api/layouts-api.d.ts +431 -0
  25. package/dist/api/layouts-api.js +721 -0
  26. package/dist/api/messages-api.d.ts +185 -0
  27. package/dist/api/messages-api.js +303 -0
  28. package/dist/api/metrics-api.d.ts +74 -0
  29. package/dist/api/metrics-api.js +121 -0
  30. package/dist/api/notification-groups-api.d.ts +202 -0
  31. package/dist/api/notification-groups-api.js +340 -0
  32. package/dist/api/notifications-api.d.ts +171 -0
  33. package/dist/api/notifications-api.js +284 -0
  34. package/dist/api/preferences-api.d.ts +176 -0
  35. package/dist/api/preferences-api.js +293 -0
  36. package/dist/api/projects-api.d.ts +541 -0
  37. package/dist/api/projects-api.js +915 -0
  38. package/dist/api/subscribers-api.d.ts +780 -0
  39. package/dist/api/subscribers-api.js +1292 -0
  40. package/dist/api/topics-api.d.ts +689 -0
  41. package/dist/api/topics-api.js +1143 -0
  42. package/dist/api/translations-api.d.ts +239 -0
  43. package/dist/api/translations-api.js +405 -0
  44. package/dist/api/webhooks-api.d.ts +208 -0
  45. package/dist/api/webhooks-api.js +344 -0
  46. package/dist/api/workflows-api.d.ts +493 -0
  47. package/dist/api/workflows-api.js +820 -0
  48. package/dist/api.d.ts +34 -0
  49. package/dist/api.js +52 -0
  50. package/dist/base.d.ts +42 -0
  51. package/dist/base.js +46 -0
  52. package/dist/common.d.ts +34 -0
  53. package/dist/common.js +139 -0
  54. package/dist/configuration.d.ts +98 -0
  55. package/dist/configuration.js +44 -0
  56. package/dist/esm/api/activity-api.d.ts +381 -0
  57. package/dist/esm/api/activity-api.js +629 -0
  58. package/dist/esm/api/billing-api.d.ts +337 -0
  59. package/dist/esm/api/billing-api.js +564 -0
  60. package/dist/esm/api/channel-connections-api.d.ts +263 -0
  61. package/dist/esm/api/channel-connections-api.js +430 -0
  62. package/dist/esm/api/channel-endpoints-api.d.ts +263 -0
  63. package/dist/esm/api/channel-endpoints-api.js +430 -0
  64. package/dist/esm/api/contexts-api.d.ts +278 -0
  65. package/dist/esm/api/contexts-api.js +451 -0
  66. package/dist/esm/api/events-api.d.ts +203 -0
  67. package/dist/esm/api/events-api.js +334 -0
  68. package/dist/esm/api/feature-flags-api.d.ts +74 -0
  69. package/dist/esm/api/feature-flags-api.js +117 -0
  70. package/dist/esm/api/health-api.d.ts +144 -0
  71. package/dist/esm/api/health-api.js +230 -0
  72. package/dist/esm/api/inbound-parse-api.d.ts +79 -0
  73. package/dist/esm/api/inbound-parse-api.js +122 -0
  74. package/dist/esm/api/inbox-api.d.ts +582 -0
  75. package/dist/esm/api/inbox-api.js +969 -0
  76. package/dist/esm/api/integrations-api.d.ts +420 -0
  77. package/dist/esm/api/integrations-api.js +700 -0
  78. package/dist/esm/api/layouts-api.d.ts +431 -0
  79. package/dist/esm/api/layouts-api.js +714 -0
  80. package/dist/esm/api/messages-api.d.ts +185 -0
  81. package/dist/esm/api/messages-api.js +296 -0
  82. package/dist/esm/api/metrics-api.d.ts +74 -0
  83. package/dist/esm/api/metrics-api.js +114 -0
  84. package/dist/esm/api/notification-groups-api.d.ts +202 -0
  85. package/dist/esm/api/notification-groups-api.js +333 -0
  86. package/dist/esm/api/notifications-api.d.ts +171 -0
  87. package/dist/esm/api/notifications-api.js +277 -0
  88. package/dist/esm/api/preferences-api.d.ts +176 -0
  89. package/dist/esm/api/preferences-api.js +286 -0
  90. package/dist/esm/api/projects-api.d.ts +541 -0
  91. package/dist/esm/api/projects-api.js +908 -0
  92. package/dist/esm/api/subscribers-api.d.ts +780 -0
  93. package/dist/esm/api/subscribers-api.js +1285 -0
  94. package/dist/esm/api/topics-api.d.ts +689 -0
  95. package/dist/esm/api/topics-api.js +1136 -0
  96. package/dist/esm/api/translations-api.d.ts +239 -0
  97. package/dist/esm/api/translations-api.js +398 -0
  98. package/dist/esm/api/webhooks-api.d.ts +208 -0
  99. package/dist/esm/api/webhooks-api.js +337 -0
  100. package/dist/esm/api/workflows-api.d.ts +493 -0
  101. package/dist/esm/api/workflows-api.js +813 -0
  102. package/dist/esm/api.d.ts +34 -0
  103. package/dist/esm/api.js +36 -0
  104. package/dist/esm/base.d.ts +42 -0
  105. package/dist/esm/base.js +41 -0
  106. package/dist/esm/common.d.ts +34 -0
  107. package/dist/esm/common.js +126 -0
  108. package/dist/esm/configuration.d.ts +98 -0
  109. package/dist/esm/configuration.js +40 -0
  110. package/dist/esm/index.d.ts +14 -0
  111. package/dist/esm/index.js +16 -0
  112. package/dist/esm/models/action-body.d.ts +20 -0
  113. package/dist/esm/models/action-body.js +14 -0
  114. package/dist/esm/models/action-record.d.ts +22 -0
  115. package/dist/esm/models/action-record.js +14 -0
  116. package/dist/esm/models/action-type.d.ts +22 -0
  117. package/dist/esm/models/action-type.js +23 -0
  118. package/dist/esm/models/activity-chart-point.d.ts +40 -0
  119. package/dist/esm/models/activity-chart-point.js +14 -0
  120. package/dist/esm/models/activity-record.d.ts +56 -0
  121. package/dist/esm/models/activity-record.js +14 -0
  122. package/dist/esm/models/activity-request-record.d.ts +40 -0
  123. package/dist/esm/models/activity-request-record.js +14 -0
  124. package/dist/esm/models/activity-stats.d.ts +40 -0
  125. package/dist/esm/models/activity-stats.js +14 -0
  126. package/dist/esm/models/actor-type.d.ts +21 -0
  127. package/dist/esm/models/actor-type.js +22 -0
  128. package/dist/esm/models/api-key-created.d.ts +32 -0
  129. package/dist/esm/models/api-key-created.js +14 -0
  130. package/dist/esm/models/api-key-info.d.ts +32 -0
  131. package/dist/esm/models/api-key-info.js +14 -0
  132. package/dist/esm/models/auto-configure-result.d.ts +17 -0
  133. package/dist/esm/models/auto-configure-result.js +14 -0
  134. package/dist/esm/models/billing-interval.d.ts +19 -0
  135. package/dist/esm/models/billing-interval.js +20 -0
  136. package/dist/esm/models/branding.d.ts +40 -0
  137. package/dist/esm/models/branding.js +14 -0
  138. package/dist/esm/models/broadcast-trigger.d.ts +23 -0
  139. package/dist/esm/models/broadcast-trigger.js +14 -0
  140. package/dist/esm/models/bulk-create-subscribers.d.ts +18 -0
  141. package/dist/esm/models/bulk-create-subscribers.js +14 -0
  142. package/dist/esm/models/bulk-preference-item.d.ts +17 -0
  143. package/dist/esm/models/bulk-preference-item.js +14 -0
  144. package/dist/esm/models/bulk-preferences.d.ts +18 -0
  145. package/dist/esm/models/bulk-preferences.js +14 -0
  146. package/dist/esm/models/bulk-result.d.ts +16 -0
  147. package/dist/esm/models/bulk-result.js +14 -0
  148. package/dist/esm/models/bulk-trigger.d.ts +21 -0
  149. package/dist/esm/models/bulk-trigger.js +14 -0
  150. package/dist/esm/models/channel-connection-record.d.ts +37 -0
  151. package/dist/esm/models/channel-connection-record.js +14 -0
  152. package/dist/esm/models/channel-endpoint-record.d.ts +41 -0
  153. package/dist/esm/models/channel-endpoint-record.js +14 -0
  154. package/dist/esm/models/channel-preferences.d.ts +21 -0
  155. package/dist/esm/models/channel-preferences.js +14 -0
  156. package/dist/esm/models/channel-type.d.ts +22 -0
  157. package/dist/esm/models/channel-type.js +23 -0
  158. package/dist/esm/models/chart-query.d.ts +20 -0
  159. package/dist/esm/models/chart-query.js +14 -0
  160. package/dist/esm/models/chat-oauth-request.d.ts +15 -0
  161. package/dist/esm/models/chat-oauth-request.js +14 -0
  162. package/dist/esm/models/chat-oauth.d.ts +17 -0
  163. package/dist/esm/models/chat-oauth.js +14 -0
  164. package/dist/esm/models/checkout-session.d.ts +25 -0
  165. package/dist/esm/models/checkout-session.js +14 -0
  166. package/dist/esm/models/context-record.d.ts +36 -0
  167. package/dist/esm/models/context-record.js +14 -0
  168. package/dist/esm/models/create-channel-connection.d.ts +29 -0
  169. package/dist/esm/models/create-channel-connection.js +14 -0
  170. package/dist/esm/models/create-channel-endpoint.d.ts +33 -0
  171. package/dist/esm/models/create-channel-endpoint.js +14 -0
  172. package/dist/esm/models/create-checkout.d.ts +25 -0
  173. package/dist/esm/models/create-checkout.js +14 -0
  174. package/dist/esm/models/create-context.d.ts +28 -0
  175. package/dist/esm/models/create-context.js +14 -0
  176. package/dist/esm/models/create-integration.d.ts +41 -0
  177. package/dist/esm/models/create-integration.js +14 -0
  178. package/dist/esm/models/create-layout.d.ts +28 -0
  179. package/dist/esm/models/create-layout.js +14 -0
  180. package/dist/esm/models/create-notification-group.d.ts +20 -0
  181. package/dist/esm/models/create-notification-group.js +14 -0
  182. package/dist/esm/models/create-project.d.ts +20 -0
  183. package/dist/esm/models/create-project.js +14 -0
  184. package/dist/esm/models/create-subscriber.d.ts +52 -0
  185. package/dist/esm/models/create-subscriber.js +14 -0
  186. package/dist/esm/models/create-subscription.d.ts +17 -0
  187. package/dist/esm/models/create-subscription.js +14 -0
  188. package/dist/esm/models/create-topic.d.ts +24 -0
  189. package/dist/esm/models/create-topic.js +14 -0
  190. package/dist/esm/models/create-webhook.d.ts +24 -0
  191. package/dist/esm/models/create-webhook.js +14 -0
  192. package/dist/esm/models/create-workflow.d.ts +50 -0
  193. package/dist/esm/models/create-workflow.js +14 -0
  194. package/dist/esm/models/cta-type.d.ts +18 -0
  195. package/dist/esm/models/cta-type.js +19 -0
  196. package/dist/esm/models/cursor-meta.d.ts +32 -0
  197. package/dist/esm/models/cursor-meta.js +14 -0
  198. package/dist/esm/models/cursor-paginated-feed-item-data-inner.d.ts +34 -0
  199. package/dist/esm/models/cursor-paginated-feed-item-data-inner.js +14 -0
  200. package/dist/esm/models/cursor-paginated-feed-item.d.ts +26 -0
  201. package/dist/esm/models/cursor-paginated-feed-item.js +14 -0
  202. package/dist/esm/models/cursor-paginated-message-record-data-inner.d.ts +39 -0
  203. package/dist/esm/models/cursor-paginated-message-record-data-inner.js +14 -0
  204. package/dist/esm/models/cursor-paginated-message-record.d.ts +26 -0
  205. package/dist/esm/models/cursor-paginated-message-record.js +14 -0
  206. package/dist/esm/models/cursor-pagination.d.ts +28 -0
  207. package/dist/esm/models/cursor-pagination.js +14 -0
  208. package/dist/esm/models/delete-subscription.d.ts +14 -0
  209. package/dist/esm/models/delete-subscription.js +14 -0
  210. package/dist/esm/models/delivery-ack.d.ts +17 -0
  211. package/dist/esm/models/delivery-ack.js +14 -0
  212. package/dist/esm/models/delivery-status-webhook.d.ts +23 -0
  213. package/dist/esm/models/delivery-status-webhook.js +14 -0
  214. package/dist/esm/models/dns-settings.d.ts +24 -0
  215. package/dist/esm/models/dns-settings.js +14 -0
  216. package/dist/esm/models/engagement-stats-response.d.ts +32 -0
  217. package/dist/esm/models/engagement-stats-response.js +14 -0
  218. package/dist/esm/models/entitlement-item.d.ts +28 -0
  219. package/dist/esm/models/entitlement-item.js +14 -0
  220. package/dist/esm/models/entitlements.d.ts +18 -0
  221. package/dist/esm/models/entitlements.js +14 -0
  222. package/dist/esm/models/error-detail.d.ts +32 -0
  223. package/dist/esm/models/error-detail.js +14 -0
  224. package/dist/esm/models/events-usage.d.ts +24 -0
  225. package/dist/esm/models/events-usage.js +14 -0
  226. package/dist/esm/models/feed-item.d.ts +34 -0
  227. package/dist/esm/models/feed-item.js +14 -0
  228. package/dist/esm/models/feed-query.d.ts +22 -0
  229. package/dist/esm/models/feed-query.js +14 -0
  230. package/dist/esm/models/inbox-notification.d.ts +33 -0
  231. package/dist/esm/models/inbox-notification.js +14 -0
  232. package/dist/esm/models/inbox-preference.d.ts +19 -0
  233. package/dist/esm/models/inbox-preference.js +14 -0
  234. package/dist/esm/models/inbox-query.d.ts +20 -0
  235. package/dist/esm/models/inbox-query.js +14 -0
  236. package/dist/esm/models/index.d.ts +158 -0
  237. package/dist/esm/models/index.js +158 -0
  238. package/dist/esm/models/init-session-request.d.ts +24 -0
  239. package/dist/esm/models/init-session-request.js +14 -0
  240. package/dist/esm/models/init-session-response.d.ts +24 -0
  241. package/dist/esm/models/init-session-response.js +14 -0
  242. package/dist/esm/models/integration-record.d.ts +49 -0
  243. package/dist/esm/models/integration-record.js +14 -0
  244. package/dist/esm/models/invite-member-body.d.ts +24 -0
  245. package/dist/esm/models/invite-member-body.js +14 -0
  246. package/dist/esm/models/invite-member.d.ts +24 -0
  247. package/dist/esm/models/invite-member.js +14 -0
  248. package/dist/esm/models/job-log.d.ts +41 -0
  249. package/dist/esm/models/job-log.js +14 -0
  250. package/dist/esm/models/layout-preview-result.d.ts +17 -0
  251. package/dist/esm/models/layout-preview-result.js +14 -0
  252. package/dist/esm/models/layout-preview.d.ts +17 -0
  253. package/dist/esm/models/layout-preview.js +14 -0
  254. package/dist/esm/models/layout-record.d.ts +31 -0
  255. package/dist/esm/models/layout-record.js +14 -0
  256. package/dist/esm/models/layout-usage-item.d.ts +18 -0
  257. package/dist/esm/models/layout-usage-item.js +14 -0
  258. package/dist/esm/models/mark-all.d.ts +17 -0
  259. package/dist/esm/models/mark-all.js +14 -0
  260. package/dist/esm/models/mark-messages.d.ts +18 -0
  261. package/dist/esm/models/mark-messages.js +14 -0
  262. package/dist/esm/models/mark-result.d.ts +17 -0
  263. package/dist/esm/models/mark-result.js +14 -0
  264. package/dist/esm/models/member-record.d.ts +32 -0
  265. package/dist/esm/models/member-record.js +14 -0
  266. package/dist/esm/models/member-role.d.ts +21 -0
  267. package/dist/esm/models/member-role.js +22 -0
  268. package/dist/esm/models/member-status.d.ts +20 -0
  269. package/dist/esm/models/member-status.js +21 -0
  270. package/dist/esm/models/message-query.d.ts +40 -0
  271. package/dist/esm/models/message-query.js +14 -0
  272. package/dist/esm/models/message-record.d.ts +39 -0
  273. package/dist/esm/models/message-record.js +14 -0
  274. package/dist/esm/models/notification-count.d.ts +19 -0
  275. package/dist/esm/models/notification-count.js +14 -0
  276. package/dist/esm/models/notification-group-record.d.ts +24 -0
  277. package/dist/esm/models/notification-group-record.js +14 -0
  278. package/dist/esm/models/notification-log.d.ts +33 -0
  279. package/dist/esm/models/notification-log.js +14 -0
  280. package/dist/esm/models/notification-query.d.ts +28 -0
  281. package/dist/esm/models/notification-query.js +14 -0
  282. package/dist/esm/models/offset-meta.d.ts +32 -0
  283. package/dist/esm/models/offset-meta.js +14 -0
  284. package/dist/esm/models/offset-pagination.d.ts +32 -0
  285. package/dist/esm/models/offset-pagination.js +14 -0
  286. package/dist/esm/models/online-status.d.ts +17 -0
  287. package/dist/esm/models/online-status.js +14 -0
  288. package/dist/esm/models/paginated-channel-connection-record-data-inner.d.ts +37 -0
  289. package/dist/esm/models/paginated-channel-connection-record-data-inner.js +14 -0
  290. package/dist/esm/models/paginated-channel-connection-record.d.ts +26 -0
  291. package/dist/esm/models/paginated-channel-connection-record.js +14 -0
  292. package/dist/esm/models/paginated-channel-endpoint-record-data-inner.d.ts +41 -0
  293. package/dist/esm/models/paginated-channel-endpoint-record-data-inner.js +14 -0
  294. package/dist/esm/models/paginated-channel-endpoint-record.d.ts +26 -0
  295. package/dist/esm/models/paginated-channel-endpoint-record.js +14 -0
  296. package/dist/esm/models/paginated-context-record-data-inner.d.ts +36 -0
  297. package/dist/esm/models/paginated-context-record-data-inner.js +14 -0
  298. package/dist/esm/models/paginated-context-record.d.ts +26 -0
  299. package/dist/esm/models/paginated-context-record.js +14 -0
  300. package/dist/esm/models/paginated-integration-record-data-inner.d.ts +49 -0
  301. package/dist/esm/models/paginated-integration-record-data-inner.js +14 -0
  302. package/dist/esm/models/paginated-integration-record.d.ts +26 -0
  303. package/dist/esm/models/paginated-integration-record.js +14 -0
  304. package/dist/esm/models/paginated-layout-record-data-inner.d.ts +31 -0
  305. package/dist/esm/models/paginated-layout-record-data-inner.js +14 -0
  306. package/dist/esm/models/paginated-layout-record.d.ts +26 -0
  307. package/dist/esm/models/paginated-layout-record.js +14 -0
  308. package/dist/esm/models/paginated-subscriber-record-data-inner.d.ts +61 -0
  309. package/dist/esm/models/paginated-subscriber-record-data-inner.js +14 -0
  310. package/dist/esm/models/paginated-subscriber-record.d.ts +26 -0
  311. package/dist/esm/models/paginated-subscriber-record.js +14 -0
  312. package/dist/esm/models/paginated-topic-record-data-inner.d.ts +22 -0
  313. package/dist/esm/models/paginated-topic-record-data-inner.js +14 -0
  314. package/dist/esm/models/paginated-topic-record.d.ts +26 -0
  315. package/dist/esm/models/paginated-topic-record.js +14 -0
  316. package/dist/esm/models/paginated-topic-subscription-record-data-inner.d.ts +33 -0
  317. package/dist/esm/models/paginated-topic-subscription-record-data-inner.js +14 -0
  318. package/dist/esm/models/paginated-topic-subscription-record.d.ts +26 -0
  319. package/dist/esm/models/paginated-topic-subscription-record.js +14 -0
  320. package/dist/esm/models/paginated-workflow-record-data-inner.d.ts +52 -0
  321. package/dist/esm/models/paginated-workflow-record-data-inner.js +14 -0
  322. package/dist/esm/models/paginated-workflow-record.d.ts +26 -0
  323. package/dist/esm/models/paginated-workflow-record.js +14 -0
  324. package/dist/esm/models/pagination-query.d.ts +28 -0
  325. package/dist/esm/models/pagination-query.js +14 -0
  326. package/dist/esm/models/patch-credentials.d.ts +23 -0
  327. package/dist/esm/models/patch-credentials.js +14 -0
  328. package/dist/esm/models/plan-limits-response.d.ts +45 -0
  329. package/dist/esm/models/plan-limits-response.js +14 -0
  330. package/dist/esm/models/plan.d.ts +22 -0
  331. package/dist/esm/models/plan.js +23 -0
  332. package/dist/esm/models/portal-url.d.ts +20 -0
  333. package/dist/esm/models/portal-url.js +14 -0
  334. package/dist/esm/models/preference-channels.d.ts +21 -0
  335. package/dist/esm/models/preference-channels.js +14 -0
  336. package/dist/esm/models/preference-record.d.ts +24 -0
  337. package/dist/esm/models/preference-record.js +14 -0
  338. package/dist/esm/models/preview-result.d.ts +14 -0
  339. package/dist/esm/models/preview-result.js +14 -0
  340. package/dist/esm/models/price-info.d.ts +32 -0
  341. package/dist/esm/models/price-info.js +14 -0
  342. package/dist/esm/models/prices.d.ts +18 -0
  343. package/dist/esm/models/prices.js +14 -0
  344. package/dist/esm/models/project-record.d.ts +34 -0
  345. package/dist/esm/models/project-record.js +14 -0
  346. package/dist/esm/models/set-credentials.d.ts +23 -0
  347. package/dist/esm/models/set-credentials.js +14 -0
  348. package/dist/esm/models/step-preview.d.ts +17 -0
  349. package/dist/esm/models/step-preview.js +14 -0
  350. package/dist/esm/models/step-record.d.ts +30 -0
  351. package/dist/esm/models/step-record.js +14 -0
  352. package/dist/esm/models/step-type.d.ts +27 -0
  353. package/dist/esm/models/step-type.js +28 -0
  354. package/dist/esm/models/subscriber-credential.d.ts +20 -0
  355. package/dist/esm/models/subscriber-credential.js +14 -0
  356. package/dist/esm/models/subscriber-payload.d.ts +17 -0
  357. package/dist/esm/models/subscriber-payload.js +14 -0
  358. package/dist/esm/models/subscriber-record.d.ts +61 -0
  359. package/dist/esm/models/subscriber-record.js +14 -0
  360. package/dist/esm/models/subscription.d.ts +59 -0
  361. package/dist/esm/models/subscription.js +14 -0
  362. package/dist/esm/models/sync-workflow.d.ts +18 -0
  363. package/dist/esm/models/sync-workflow.js +14 -0
  364. package/dist/esm/models/system-avatar-icon.d.ts +23 -0
  365. package/dist/esm/models/system-avatar-icon.js +24 -0
  366. package/dist/esm/models/topic-record.d.ts +22 -0
  367. package/dist/esm/models/topic-record.js +14 -0
  368. package/dist/esm/models/topic-subscribers.d.ts +17 -0
  369. package/dist/esm/models/topic-subscribers.js +14 -0
  370. package/dist/esm/models/topic-subscription-record.d.ts +33 -0
  371. package/dist/esm/models/topic-subscription-record.js +14 -0
  372. package/dist/esm/models/topic-subscription.d.ts +21 -0
  373. package/dist/esm/models/topic-subscription.js +14 -0
  374. package/dist/esm/models/trial-info.d.ts +32 -0
  375. package/dist/esm/models/trial-info.js +14 -0
  376. package/dist/esm/models/trigger-event.d.ts +41 -0
  377. package/dist/esm/models/trigger-event.js +14 -0
  378. package/dist/esm/models/trigger-recipients-one-of.d.ts +17 -0
  379. package/dist/esm/models/trigger-recipients-one-of.js +14 -0
  380. package/dist/esm/models/trigger-recipients.d.ts +18 -0
  381. package/dist/esm/models/trigger-recipients.js +14 -0
  382. package/dist/esm/models/trigger-result.d.ts +29 -0
  383. package/dist/esm/models/trigger-result.js +14 -0
  384. package/dist/esm/models/trigger-status.d.ts +24 -0
  385. package/dist/esm/models/trigger-status.js +25 -0
  386. package/dist/esm/models/unseen-count.d.ts +17 -0
  387. package/dist/esm/models/unseen-count.js +14 -0
  388. package/dist/esm/models/update-channel-connection.d.ts +17 -0
  389. package/dist/esm/models/update-channel-connection.js +14 -0
  390. package/dist/esm/models/update-channel-endpoint.d.ts +21 -0
  391. package/dist/esm/models/update-channel-endpoint.js +14 -0
  392. package/dist/esm/models/update-context.d.ts +20 -0
  393. package/dist/esm/models/update-context.js +14 -0
  394. package/dist/esm/models/update-inbox-preferences.d.ts +21 -0
  395. package/dist/esm/models/update-inbox-preferences.js +14 -0
  396. package/dist/esm/models/update-integration.d.ts +32 -0
  397. package/dist/esm/models/update-integration.js +14 -0
  398. package/dist/esm/models/update-layout.d.ts +23 -0
  399. package/dist/esm/models/update-layout.js +14 -0
  400. package/dist/esm/models/update-notification-group.d.ts +20 -0
  401. package/dist/esm/models/update-notification-group.js +14 -0
  402. package/dist/esm/models/update-preference.d.ts +19 -0
  403. package/dist/esm/models/update-preference.js +14 -0
  404. package/dist/esm/models/update-project.d.ts +25 -0
  405. package/dist/esm/models/update-project.js +14 -0
  406. package/dist/esm/models/update-subscriber.d.ts +48 -0
  407. package/dist/esm/models/update-subscriber.js +14 -0
  408. package/dist/esm/models/update-subscription-meta.d.ts +17 -0
  409. package/dist/esm/models/update-subscription-meta.js +14 -0
  410. package/dist/esm/models/update-topic.d.ts +20 -0
  411. package/dist/esm/models/update-topic.js +14 -0
  412. package/dist/esm/models/update-workflow.d.ts +42 -0
  413. package/dist/esm/models/update-workflow.js +14 -0
  414. package/dist/esm/models/usage.d.ts +49 -0
  415. package/dist/esm/models/usage.js +14 -0
  416. package/dist/esm/models/webhook-record.d.ts +40 -0
  417. package/dist/esm/models/webhook-record.js +14 -0
  418. package/dist/esm/models/widget-settings.d.ts +20 -0
  419. package/dist/esm/models/widget-settings.js +14 -0
  420. package/dist/esm/models/workflow-record.d.ts +52 -0
  421. package/dist/esm/models/workflow-record.js +14 -0
  422. package/dist/esm/models/workflow-run-record.d.ts +40 -0
  423. package/dist/esm/models/workflow-run-record.js +14 -0
  424. package/dist/esm/models/workflow-stats-response.d.ts +32 -0
  425. package/dist/esm/models/workflow-stats-response.js +14 -0
  426. package/dist/esm/models/workflow-status.d.ts +20 -0
  427. package/dist/esm/models/workflow-status.js +14 -0
  428. package/dist/esm/models/workflow-step-create.d.ts +41 -0
  429. package/dist/esm/models/workflow-step-create.js +14 -0
  430. package/dist/index.d.ts +14 -0
  431. package/dist/index.js +32 -0
  432. package/dist/models/action-body.d.ts +20 -0
  433. package/dist/models/action-body.js +15 -0
  434. package/dist/models/action-record.d.ts +22 -0
  435. package/dist/models/action-record.js +15 -0
  436. package/dist/models/action-type.d.ts +22 -0
  437. package/dist/models/action-type.js +26 -0
  438. package/dist/models/activity-chart-point.d.ts +40 -0
  439. package/dist/models/activity-chart-point.js +15 -0
  440. package/dist/models/activity-record.d.ts +56 -0
  441. package/dist/models/activity-record.js +15 -0
  442. package/dist/models/activity-request-record.d.ts +40 -0
  443. package/dist/models/activity-request-record.js +15 -0
  444. package/dist/models/activity-stats.d.ts +40 -0
  445. package/dist/models/activity-stats.js +15 -0
  446. package/dist/models/actor-type.d.ts +21 -0
  447. package/dist/models/actor-type.js +25 -0
  448. package/dist/models/api-key-created.d.ts +32 -0
  449. package/dist/models/api-key-created.js +15 -0
  450. package/dist/models/api-key-info.d.ts +32 -0
  451. package/dist/models/api-key-info.js +15 -0
  452. package/dist/models/auto-configure-result.d.ts +17 -0
  453. package/dist/models/auto-configure-result.js +15 -0
  454. package/dist/models/billing-interval.d.ts +19 -0
  455. package/dist/models/billing-interval.js +23 -0
  456. package/dist/models/branding.d.ts +40 -0
  457. package/dist/models/branding.js +15 -0
  458. package/dist/models/broadcast-trigger.d.ts +23 -0
  459. package/dist/models/broadcast-trigger.js +15 -0
  460. package/dist/models/bulk-create-subscribers.d.ts +18 -0
  461. package/dist/models/bulk-create-subscribers.js +15 -0
  462. package/dist/models/bulk-preference-item.d.ts +17 -0
  463. package/dist/models/bulk-preference-item.js +15 -0
  464. package/dist/models/bulk-preferences.d.ts +18 -0
  465. package/dist/models/bulk-preferences.js +15 -0
  466. package/dist/models/bulk-result.d.ts +16 -0
  467. package/dist/models/bulk-result.js +15 -0
  468. package/dist/models/bulk-trigger.d.ts +21 -0
  469. package/dist/models/bulk-trigger.js +15 -0
  470. package/dist/models/channel-connection-record.d.ts +37 -0
  471. package/dist/models/channel-connection-record.js +15 -0
  472. package/dist/models/channel-endpoint-record.d.ts +41 -0
  473. package/dist/models/channel-endpoint-record.js +15 -0
  474. package/dist/models/channel-preferences.d.ts +21 -0
  475. package/dist/models/channel-preferences.js +15 -0
  476. package/dist/models/channel-type.d.ts +22 -0
  477. package/dist/models/channel-type.js +26 -0
  478. package/dist/models/chart-query.d.ts +20 -0
  479. package/dist/models/chart-query.js +15 -0
  480. package/dist/models/chat-oauth-request.d.ts +15 -0
  481. package/dist/models/chat-oauth-request.js +15 -0
  482. package/dist/models/chat-oauth.d.ts +17 -0
  483. package/dist/models/chat-oauth.js +15 -0
  484. package/dist/models/checkout-session.d.ts +25 -0
  485. package/dist/models/checkout-session.js +15 -0
  486. package/dist/models/context-record.d.ts +36 -0
  487. package/dist/models/context-record.js +15 -0
  488. package/dist/models/create-channel-connection.d.ts +29 -0
  489. package/dist/models/create-channel-connection.js +15 -0
  490. package/dist/models/create-channel-endpoint.d.ts +33 -0
  491. package/dist/models/create-channel-endpoint.js +15 -0
  492. package/dist/models/create-checkout.d.ts +25 -0
  493. package/dist/models/create-checkout.js +15 -0
  494. package/dist/models/create-context.d.ts +28 -0
  495. package/dist/models/create-context.js +15 -0
  496. package/dist/models/create-integration.d.ts +41 -0
  497. package/dist/models/create-integration.js +15 -0
  498. package/dist/models/create-layout.d.ts +28 -0
  499. package/dist/models/create-layout.js +15 -0
  500. package/dist/models/create-notification-group.d.ts +20 -0
  501. package/dist/models/create-notification-group.js +15 -0
  502. package/dist/models/create-project.d.ts +20 -0
  503. package/dist/models/create-project.js +15 -0
  504. package/dist/models/create-subscriber.d.ts +52 -0
  505. package/dist/models/create-subscriber.js +15 -0
  506. package/dist/models/create-subscription.d.ts +17 -0
  507. package/dist/models/create-subscription.js +15 -0
  508. package/dist/models/create-topic.d.ts +24 -0
  509. package/dist/models/create-topic.js +15 -0
  510. package/dist/models/create-webhook.d.ts +24 -0
  511. package/dist/models/create-webhook.js +15 -0
  512. package/dist/models/create-workflow.d.ts +50 -0
  513. package/dist/models/create-workflow.js +15 -0
  514. package/dist/models/cta-type.d.ts +18 -0
  515. package/dist/models/cta-type.js +22 -0
  516. package/dist/models/cursor-meta.d.ts +32 -0
  517. package/dist/models/cursor-meta.js +15 -0
  518. package/dist/models/cursor-paginated-feed-item-data-inner.d.ts +34 -0
  519. package/dist/models/cursor-paginated-feed-item-data-inner.js +15 -0
  520. package/dist/models/cursor-paginated-feed-item.d.ts +26 -0
  521. package/dist/models/cursor-paginated-feed-item.js +15 -0
  522. package/dist/models/cursor-paginated-message-record-data-inner.d.ts +39 -0
  523. package/dist/models/cursor-paginated-message-record-data-inner.js +15 -0
  524. package/dist/models/cursor-paginated-message-record.d.ts +26 -0
  525. package/dist/models/cursor-paginated-message-record.js +15 -0
  526. package/dist/models/cursor-pagination.d.ts +28 -0
  527. package/dist/models/cursor-pagination.js +15 -0
  528. package/dist/models/delete-subscription.d.ts +14 -0
  529. package/dist/models/delete-subscription.js +15 -0
  530. package/dist/models/delivery-ack.d.ts +17 -0
  531. package/dist/models/delivery-ack.js +15 -0
  532. package/dist/models/delivery-status-webhook.d.ts +23 -0
  533. package/dist/models/delivery-status-webhook.js +15 -0
  534. package/dist/models/dns-settings.d.ts +24 -0
  535. package/dist/models/dns-settings.js +15 -0
  536. package/dist/models/engagement-stats-response.d.ts +32 -0
  537. package/dist/models/engagement-stats-response.js +15 -0
  538. package/dist/models/entitlement-item.d.ts +28 -0
  539. package/dist/models/entitlement-item.js +15 -0
  540. package/dist/models/entitlements.d.ts +18 -0
  541. package/dist/models/entitlements.js +15 -0
  542. package/dist/models/error-detail.d.ts +32 -0
  543. package/dist/models/error-detail.js +15 -0
  544. package/dist/models/events-usage.d.ts +24 -0
  545. package/dist/models/events-usage.js +15 -0
  546. package/dist/models/feed-item.d.ts +34 -0
  547. package/dist/models/feed-item.js +15 -0
  548. package/dist/models/feed-query.d.ts +22 -0
  549. package/dist/models/feed-query.js +15 -0
  550. package/dist/models/inbox-notification.d.ts +33 -0
  551. package/dist/models/inbox-notification.js +15 -0
  552. package/dist/models/inbox-preference.d.ts +19 -0
  553. package/dist/models/inbox-preference.js +15 -0
  554. package/dist/models/inbox-query.d.ts +20 -0
  555. package/dist/models/inbox-query.js +15 -0
  556. package/dist/models/index.d.ts +158 -0
  557. package/dist/models/index.js +174 -0
  558. package/dist/models/init-session-request.d.ts +24 -0
  559. package/dist/models/init-session-request.js +15 -0
  560. package/dist/models/init-session-response.d.ts +24 -0
  561. package/dist/models/init-session-response.js +15 -0
  562. package/dist/models/integration-record.d.ts +49 -0
  563. package/dist/models/integration-record.js +15 -0
  564. package/dist/models/invite-member-body.d.ts +24 -0
  565. package/dist/models/invite-member-body.js +15 -0
  566. package/dist/models/invite-member.d.ts +24 -0
  567. package/dist/models/invite-member.js +15 -0
  568. package/dist/models/job-log.d.ts +41 -0
  569. package/dist/models/job-log.js +15 -0
  570. package/dist/models/layout-preview-result.d.ts +17 -0
  571. package/dist/models/layout-preview-result.js +15 -0
  572. package/dist/models/layout-preview.d.ts +17 -0
  573. package/dist/models/layout-preview.js +15 -0
  574. package/dist/models/layout-record.d.ts +31 -0
  575. package/dist/models/layout-record.js +15 -0
  576. package/dist/models/layout-usage-item.d.ts +18 -0
  577. package/dist/models/layout-usage-item.js +15 -0
  578. package/dist/models/mark-all.d.ts +17 -0
  579. package/dist/models/mark-all.js +15 -0
  580. package/dist/models/mark-messages.d.ts +18 -0
  581. package/dist/models/mark-messages.js +15 -0
  582. package/dist/models/mark-result.d.ts +17 -0
  583. package/dist/models/mark-result.js +15 -0
  584. package/dist/models/member-record.d.ts +32 -0
  585. package/dist/models/member-record.js +15 -0
  586. package/dist/models/member-role.d.ts +21 -0
  587. package/dist/models/member-role.js +25 -0
  588. package/dist/models/member-status.d.ts +20 -0
  589. package/dist/models/member-status.js +24 -0
  590. package/dist/models/message-query.d.ts +40 -0
  591. package/dist/models/message-query.js +15 -0
  592. package/dist/models/message-record.d.ts +39 -0
  593. package/dist/models/message-record.js +15 -0
  594. package/dist/models/notification-count.d.ts +19 -0
  595. package/dist/models/notification-count.js +15 -0
  596. package/dist/models/notification-group-record.d.ts +24 -0
  597. package/dist/models/notification-group-record.js +15 -0
  598. package/dist/models/notification-log.d.ts +33 -0
  599. package/dist/models/notification-log.js +15 -0
  600. package/dist/models/notification-query.d.ts +28 -0
  601. package/dist/models/notification-query.js +15 -0
  602. package/dist/models/offset-meta.d.ts +32 -0
  603. package/dist/models/offset-meta.js +15 -0
  604. package/dist/models/offset-pagination.d.ts +32 -0
  605. package/dist/models/offset-pagination.js +15 -0
  606. package/dist/models/online-status.d.ts +17 -0
  607. package/dist/models/online-status.js +15 -0
  608. package/dist/models/paginated-channel-connection-record-data-inner.d.ts +37 -0
  609. package/dist/models/paginated-channel-connection-record-data-inner.js +15 -0
  610. package/dist/models/paginated-channel-connection-record.d.ts +26 -0
  611. package/dist/models/paginated-channel-connection-record.js +15 -0
  612. package/dist/models/paginated-channel-endpoint-record-data-inner.d.ts +41 -0
  613. package/dist/models/paginated-channel-endpoint-record-data-inner.js +15 -0
  614. package/dist/models/paginated-channel-endpoint-record.d.ts +26 -0
  615. package/dist/models/paginated-channel-endpoint-record.js +15 -0
  616. package/dist/models/paginated-context-record-data-inner.d.ts +36 -0
  617. package/dist/models/paginated-context-record-data-inner.js +15 -0
  618. package/dist/models/paginated-context-record.d.ts +26 -0
  619. package/dist/models/paginated-context-record.js +15 -0
  620. package/dist/models/paginated-integration-record-data-inner.d.ts +49 -0
  621. package/dist/models/paginated-integration-record-data-inner.js +15 -0
  622. package/dist/models/paginated-integration-record.d.ts +26 -0
  623. package/dist/models/paginated-integration-record.js +15 -0
  624. package/dist/models/paginated-layout-record-data-inner.d.ts +31 -0
  625. package/dist/models/paginated-layout-record-data-inner.js +15 -0
  626. package/dist/models/paginated-layout-record.d.ts +26 -0
  627. package/dist/models/paginated-layout-record.js +15 -0
  628. package/dist/models/paginated-subscriber-record-data-inner.d.ts +61 -0
  629. package/dist/models/paginated-subscriber-record-data-inner.js +15 -0
  630. package/dist/models/paginated-subscriber-record.d.ts +26 -0
  631. package/dist/models/paginated-subscriber-record.js +15 -0
  632. package/dist/models/paginated-topic-record-data-inner.d.ts +22 -0
  633. package/dist/models/paginated-topic-record-data-inner.js +15 -0
  634. package/dist/models/paginated-topic-record.d.ts +26 -0
  635. package/dist/models/paginated-topic-record.js +15 -0
  636. package/dist/models/paginated-topic-subscription-record-data-inner.d.ts +33 -0
  637. package/dist/models/paginated-topic-subscription-record-data-inner.js +15 -0
  638. package/dist/models/paginated-topic-subscription-record.d.ts +26 -0
  639. package/dist/models/paginated-topic-subscription-record.js +15 -0
  640. package/dist/models/paginated-workflow-record-data-inner.d.ts +52 -0
  641. package/dist/models/paginated-workflow-record-data-inner.js +15 -0
  642. package/dist/models/paginated-workflow-record.d.ts +26 -0
  643. package/dist/models/paginated-workflow-record.js +15 -0
  644. package/dist/models/pagination-query.d.ts +28 -0
  645. package/dist/models/pagination-query.js +15 -0
  646. package/dist/models/patch-credentials.d.ts +23 -0
  647. package/dist/models/patch-credentials.js +15 -0
  648. package/dist/models/plan-limits-response.d.ts +45 -0
  649. package/dist/models/plan-limits-response.js +15 -0
  650. package/dist/models/plan.d.ts +22 -0
  651. package/dist/models/plan.js +26 -0
  652. package/dist/models/portal-url.d.ts +20 -0
  653. package/dist/models/portal-url.js +15 -0
  654. package/dist/models/preference-channels.d.ts +21 -0
  655. package/dist/models/preference-channels.js +15 -0
  656. package/dist/models/preference-record.d.ts +24 -0
  657. package/dist/models/preference-record.js +15 -0
  658. package/dist/models/preview-result.d.ts +14 -0
  659. package/dist/models/preview-result.js +15 -0
  660. package/dist/models/price-info.d.ts +32 -0
  661. package/dist/models/price-info.js +15 -0
  662. package/dist/models/prices.d.ts +18 -0
  663. package/dist/models/prices.js +15 -0
  664. package/dist/models/project-record.d.ts +34 -0
  665. package/dist/models/project-record.js +15 -0
  666. package/dist/models/set-credentials.d.ts +23 -0
  667. package/dist/models/set-credentials.js +15 -0
  668. package/dist/models/step-preview.d.ts +17 -0
  669. package/dist/models/step-preview.js +15 -0
  670. package/dist/models/step-record.d.ts +30 -0
  671. package/dist/models/step-record.js +15 -0
  672. package/dist/models/step-type.d.ts +27 -0
  673. package/dist/models/step-type.js +31 -0
  674. package/dist/models/subscriber-credential.d.ts +20 -0
  675. package/dist/models/subscriber-credential.js +15 -0
  676. package/dist/models/subscriber-payload.d.ts +17 -0
  677. package/dist/models/subscriber-payload.js +15 -0
  678. package/dist/models/subscriber-record.d.ts +61 -0
  679. package/dist/models/subscriber-record.js +15 -0
  680. package/dist/models/subscription.d.ts +59 -0
  681. package/dist/models/subscription.js +15 -0
  682. package/dist/models/sync-workflow.d.ts +18 -0
  683. package/dist/models/sync-workflow.js +15 -0
  684. package/dist/models/system-avatar-icon.d.ts +23 -0
  685. package/dist/models/system-avatar-icon.js +27 -0
  686. package/dist/models/topic-record.d.ts +22 -0
  687. package/dist/models/topic-record.js +15 -0
  688. package/dist/models/topic-subscribers.d.ts +17 -0
  689. package/dist/models/topic-subscribers.js +15 -0
  690. package/dist/models/topic-subscription-record.d.ts +33 -0
  691. package/dist/models/topic-subscription-record.js +15 -0
  692. package/dist/models/topic-subscription.d.ts +21 -0
  693. package/dist/models/topic-subscription.js +15 -0
  694. package/dist/models/trial-info.d.ts +32 -0
  695. package/dist/models/trial-info.js +15 -0
  696. package/dist/models/trigger-event.d.ts +41 -0
  697. package/dist/models/trigger-event.js +15 -0
  698. package/dist/models/trigger-recipients-one-of.d.ts +17 -0
  699. package/dist/models/trigger-recipients-one-of.js +15 -0
  700. package/dist/models/trigger-recipients.d.ts +18 -0
  701. package/dist/models/trigger-recipients.js +15 -0
  702. package/dist/models/trigger-result.d.ts +29 -0
  703. package/dist/models/trigger-result.js +15 -0
  704. package/dist/models/trigger-status.d.ts +24 -0
  705. package/dist/models/trigger-status.js +28 -0
  706. package/dist/models/unseen-count.d.ts +17 -0
  707. package/dist/models/unseen-count.js +15 -0
  708. package/dist/models/update-channel-connection.d.ts +17 -0
  709. package/dist/models/update-channel-connection.js +15 -0
  710. package/dist/models/update-channel-endpoint.d.ts +21 -0
  711. package/dist/models/update-channel-endpoint.js +15 -0
  712. package/dist/models/update-context.d.ts +20 -0
  713. package/dist/models/update-context.js +15 -0
  714. package/dist/models/update-inbox-preferences.d.ts +21 -0
  715. package/dist/models/update-inbox-preferences.js +15 -0
  716. package/dist/models/update-integration.d.ts +32 -0
  717. package/dist/models/update-integration.js +15 -0
  718. package/dist/models/update-layout.d.ts +23 -0
  719. package/dist/models/update-layout.js +15 -0
  720. package/dist/models/update-notification-group.d.ts +20 -0
  721. package/dist/models/update-notification-group.js +15 -0
  722. package/dist/models/update-preference.d.ts +19 -0
  723. package/dist/models/update-preference.js +15 -0
  724. package/dist/models/update-project.d.ts +25 -0
  725. package/dist/models/update-project.js +15 -0
  726. package/dist/models/update-subscriber.d.ts +48 -0
  727. package/dist/models/update-subscriber.js +15 -0
  728. package/dist/models/update-subscription-meta.d.ts +17 -0
  729. package/dist/models/update-subscription-meta.js +15 -0
  730. package/dist/models/update-topic.d.ts +20 -0
  731. package/dist/models/update-topic.js +15 -0
  732. package/dist/models/update-workflow.d.ts +42 -0
  733. package/dist/models/update-workflow.js +15 -0
  734. package/dist/models/usage.d.ts +49 -0
  735. package/dist/models/usage.js +15 -0
  736. package/dist/models/webhook-record.d.ts +40 -0
  737. package/dist/models/webhook-record.js +15 -0
  738. package/dist/models/widget-settings.d.ts +20 -0
  739. package/dist/models/widget-settings.js +15 -0
  740. package/dist/models/workflow-record.d.ts +52 -0
  741. package/dist/models/workflow-record.js +15 -0
  742. package/dist/models/workflow-run-record.d.ts +40 -0
  743. package/dist/models/workflow-run-record.js +15 -0
  744. package/dist/models/workflow-stats-response.d.ts +32 -0
  745. package/dist/models/workflow-stats-response.js +15 -0
  746. package/dist/models/workflow-status.d.ts +20 -0
  747. package/dist/models/workflow-status.js +15 -0
  748. package/dist/models/workflow-step-create.d.ts +41 -0
  749. package/dist/models/workflow-step-create.js +15 -0
  750. package/package.json +56 -0
@@ -0,0 +1,1285 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * enbbox API
5
+ * Notification infrastructure API — open-source alternative to Novu/Courier
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * SubscribersApi - axios parameter creator
31
+ */
32
+ export const SubscribersApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary POST /v1/subscribers/bulk — create multiple subscribers at once
37
+ * @param {BulkCreateSubscribers} bulkCreateSubscribers
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ bulkCreate: (bulkCreateSubscribers_1, ...args_1) => __awaiter(this, [bulkCreateSubscribers_1, ...args_1], void 0, function* (bulkCreateSubscribers, options = {}) {
42
+ // verify required parameter 'bulkCreateSubscribers' is not null or undefined
43
+ assertParamExists('bulkCreate', 'bulkCreateSubscribers', bulkCreateSubscribers);
44
+ const localVarPath = `/v1/subscribers/bulk/`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication bearer_auth required
55
+ // http bearer authentication required
56
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+ localVarHeaderParameter['Accept'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkCreateSubscribers, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ *
70
+ * @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
71
+ * @param {string} id Subscriber ID
72
+ * @param {BulkPreferences} bulkPreferences
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ bulkUpdatePreferences: (id_1, bulkPreferences_1, ...args_1) => __awaiter(this, [id_1, bulkPreferences_1, ...args_1], void 0, function* (id, bulkPreferences, options = {}) {
77
+ // verify required parameter 'id' is not null or undefined
78
+ assertParamExists('bulkUpdatePreferences', 'id', id);
79
+ // verify required parameter 'bulkPreferences' is not null or undefined
80
+ assertParamExists('bulkUpdatePreferences', 'bulkPreferences', bulkPreferences);
81
+ const localVarPath = `/v1/subscribers/{id}/preferences/bulk/`
82
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
90
+ const localVarHeaderParameter = {};
91
+ const localVarQueryParameter = {};
92
+ // authentication bearer_auth required
93
+ // http bearer authentication required
94
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
95
+ localVarHeaderParameter['Content-Type'] = 'application/json';
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
99
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkPreferences, localVarRequestOptions, configuration);
100
+ return {
101
+ url: toPathString(localVarUrlObj),
102
+ options: localVarRequestOptions,
103
+ };
104
+ }),
105
+ /**
106
+ *
107
+ * @summary POST /v1/subscribers
108
+ * @param {CreateSubscriber} createSubscriber
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ createSubscriber: (createSubscriber_1, ...args_1) => __awaiter(this, [createSubscriber_1, ...args_1], void 0, function* (createSubscriber, options = {}) {
113
+ // verify required parameter 'createSubscriber' is not null or undefined
114
+ assertParamExists('createSubscriber', 'createSubscriber', createSubscriber);
115
+ const localVarPath = `/v1/subscribers/`;
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication bearer_auth required
126
+ // http bearer authentication required
127
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
129
+ localVarHeaderParameter['Accept'] = 'application/json';
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
133
+ localVarRequestOptions.data = serializeDataIfNeeded(createSubscriber, localVarRequestOptions, configuration);
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ }),
139
+ /**
140
+ *
141
+ * @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
142
+ * @param {string} id Subscriber ID
143
+ * @param {string} providerId Provider ID
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ deleteCredentials: (id_1, providerId_1, ...args_1) => __awaiter(this, [id_1, providerId_1, ...args_1], void 0, function* (id, providerId, options = {}) {
148
+ // verify required parameter 'id' is not null or undefined
149
+ assertParamExists('deleteCredentials', 'id', id);
150
+ // verify required parameter 'providerId' is not null or undefined
151
+ assertParamExists('deleteCredentials', 'providerId', providerId);
152
+ const localVarPath = `/v1/subscribers/{id}/credentials/{provider_id}/`
153
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
154
+ .replace(`{${"provider_id"}}`, encodeURIComponent(String(providerId)));
155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ }
161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
162
+ const localVarHeaderParameter = {};
163
+ const localVarQueryParameter = {};
164
+ // authentication bearer_auth required
165
+ // http bearer authentication required
166
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
167
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
170
+ return {
171
+ url: toPathString(localVarUrlObj),
172
+ options: localVarRequestOptions,
173
+ };
174
+ }),
175
+ /**
176
+ *
177
+ * @summary DELETE /v1/subscribers/:subscriber_id
178
+ * @param {string} id Subscriber ID
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ deleteSubscriber: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
183
+ // verify required parameter 'id' is not null or undefined
184
+ assertParamExists('deleteSubscriber', 'id', id);
185
+ const localVarPath = `/v1/subscribers/{id}/`
186
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
187
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
188
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
189
+ let baseOptions;
190
+ if (configuration) {
191
+ baseOptions = configuration.baseOptions;
192
+ }
193
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
194
+ const localVarHeaderParameter = {};
195
+ const localVarQueryParameter = {};
196
+ // authentication bearer_auth required
197
+ // http bearer authentication required
198
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
202
+ return {
203
+ url: toPathString(localVarUrlObj),
204
+ options: localVarRequestOptions,
205
+ };
206
+ }),
207
+ /**
208
+ *
209
+ * @summary GET /v1/subscribers/:subscriber_id
210
+ * @param {string} id Subscriber ID
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ getSubscriber: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
215
+ // verify required parameter 'id' is not null or undefined
216
+ assertParamExists('getSubscriber', 'id', id);
217
+ const localVarPath = `/v1/subscribers/{id}/`
218
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
219
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
221
+ let baseOptions;
222
+ if (configuration) {
223
+ baseOptions = configuration.baseOptions;
224
+ }
225
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
226
+ const localVarHeaderParameter = {};
227
+ const localVarQueryParameter = {};
228
+ // authentication bearer_auth required
229
+ // http bearer authentication required
230
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
231
+ localVarHeaderParameter['Accept'] = 'application/json';
232
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
233
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
235
+ return {
236
+ url: toPathString(localVarUrlObj),
237
+ options: localVarRequestOptions,
238
+ };
239
+ }),
240
+ /**
241
+ *
242
+ * @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
243
+ * @param {string} id Subscriber ID
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ listSubscriberSubscriptions: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
248
+ // verify required parameter 'id' is not null or undefined
249
+ assertParamExists('listSubscriberSubscriptions', 'id', id);
250
+ const localVarPath = `/v1/subscribers/{id}/subscriptions/`
251
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
252
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
253
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
254
+ let baseOptions;
255
+ if (configuration) {
256
+ baseOptions = configuration.baseOptions;
257
+ }
258
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
259
+ const localVarHeaderParameter = {};
260
+ const localVarQueryParameter = {};
261
+ // authentication bearer_auth required
262
+ // http bearer authentication required
263
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
264
+ localVarHeaderParameter['Accept'] = 'application/json';
265
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
266
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
267
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
268
+ return {
269
+ url: toPathString(localVarUrlObj),
270
+ options: localVarRequestOptions,
271
+ };
272
+ }),
273
+ /**
274
+ * Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
275
+ * @summary GET /v1/subscribers
276
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
277
+ * @param {number | null} [offset] Number of items to skip (default 0).
278
+ * @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
279
+ * @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ listSubscribers: (limit_1, offset_1, q_1, filterBy_1, ...args_1) => __awaiter(this, [limit_1, offset_1, q_1, filterBy_1, ...args_1], void 0, function* (limit, offset, q, filterBy, options = {}) {
284
+ const localVarPath = `/v1/subscribers/`;
285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
287
+ let baseOptions;
288
+ if (configuration) {
289
+ baseOptions = configuration.baseOptions;
290
+ }
291
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
292
+ const localVarHeaderParameter = {};
293
+ const localVarQueryParameter = {};
294
+ // authentication bearer_auth required
295
+ // http bearer authentication required
296
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
297
+ if (limit !== undefined) {
298
+ localVarQueryParameter['limit'] = limit;
299
+ }
300
+ if (offset !== undefined) {
301
+ localVarQueryParameter['offset'] = offset;
302
+ }
303
+ if (q !== undefined) {
304
+ localVarQueryParameter['q'] = q;
305
+ }
306
+ if (filterBy !== undefined) {
307
+ localVarQueryParameter['filter_by'] = filterBy;
308
+ }
309
+ localVarHeaderParameter['Accept'] = 'application/json';
310
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
313
+ return {
314
+ url: toPathString(localVarUrlObj),
315
+ options: localVarRequestOptions,
316
+ };
317
+ }),
318
+ /**
319
+ *
320
+ * @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
321
+ * @param {string} id Subscriber ID
322
+ * @param {MarkAll} markAll
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ markAllMessages: (id_1, markAll_1, ...args_1) => __awaiter(this, [id_1, markAll_1, ...args_1], void 0, function* (id, markAll, options = {}) {
327
+ // verify required parameter 'id' is not null or undefined
328
+ assertParamExists('markAllMessages', 'id', id);
329
+ // verify required parameter 'markAll' is not null or undefined
330
+ assertParamExists('markAllMessages', 'markAll', markAll);
331
+ const localVarPath = `/v1/subscribers/{id}/messages/mark-all/`
332
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
335
+ let baseOptions;
336
+ if (configuration) {
337
+ baseOptions = configuration.baseOptions;
338
+ }
339
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
340
+ const localVarHeaderParameter = {};
341
+ const localVarQueryParameter = {};
342
+ // authentication bearer_auth required
343
+ // http bearer authentication required
344
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
345
+ localVarHeaderParameter['Content-Type'] = 'application/json';
346
+ localVarHeaderParameter['Accept'] = 'application/json';
347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
348
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
349
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
350
+ localVarRequestOptions.data = serializeDataIfNeeded(markAll, localVarRequestOptions, configuration);
351
+ return {
352
+ url: toPathString(localVarUrlObj),
353
+ options: localVarRequestOptions,
354
+ };
355
+ }),
356
+ /**
357
+ *
358
+ * @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
359
+ * @param {string} id Subscriber ID
360
+ * @param {MarkMessages} markMessages
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ markMessages: (id_1, markMessages_1, ...args_1) => __awaiter(this, [id_1, markMessages_1, ...args_1], void 0, function* (id, markMessages, options = {}) {
365
+ // verify required parameter 'id' is not null or undefined
366
+ assertParamExists('markMessages', 'id', id);
367
+ // verify required parameter 'markMessages' is not null or undefined
368
+ assertParamExists('markMessages', 'markMessages', markMessages);
369
+ const localVarPath = `/v1/subscribers/{id}/messages/mark-as/`
370
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
371
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
372
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
373
+ let baseOptions;
374
+ if (configuration) {
375
+ baseOptions = configuration.baseOptions;
376
+ }
377
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
378
+ const localVarHeaderParameter = {};
379
+ const localVarQueryParameter = {};
380
+ // authentication bearer_auth required
381
+ // http bearer authentication required
382
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
383
+ localVarHeaderParameter['Content-Type'] = 'application/json';
384
+ localVarHeaderParameter['Accept'] = 'application/json';
385
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
386
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
387
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
388
+ localVarRequestOptions.data = serializeDataIfNeeded(markMessages, localVarRequestOptions, configuration);
389
+ return {
390
+ url: toPathString(localVarUrlObj),
391
+ options: localVarRequestOptions,
392
+ };
393
+ }),
394
+ /**
395
+ *
396
+ * @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
397
+ * @param {string} id Subscriber ID
398
+ * @param {SetCredentials} setCredentials
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ setCredentials: (id_1, setCredentials_1, ...args_1) => __awaiter(this, [id_1, setCredentials_1, ...args_1], void 0, function* (id, setCredentials, options = {}) {
403
+ // verify required parameter 'id' is not null or undefined
404
+ assertParamExists('setCredentials', 'id', id);
405
+ // verify required parameter 'setCredentials' is not null or undefined
406
+ assertParamExists('setCredentials', 'setCredentials', setCredentials);
407
+ const localVarPath = `/v1/subscribers/{id}/credentials/`
408
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
409
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
410
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
411
+ let baseOptions;
412
+ if (configuration) {
413
+ baseOptions = configuration.baseOptions;
414
+ }
415
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
416
+ const localVarHeaderParameter = {};
417
+ const localVarQueryParameter = {};
418
+ // authentication bearer_auth required
419
+ // http bearer authentication required
420
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
421
+ localVarHeaderParameter['Content-Type'] = 'application/json';
422
+ localVarHeaderParameter['Accept'] = 'application/json';
423
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
426
+ localVarRequestOptions.data = serializeDataIfNeeded(setCredentials, localVarRequestOptions, configuration);
427
+ return {
428
+ url: toPathString(localVarUrlObj),
429
+ options: localVarRequestOptions,
430
+ };
431
+ }),
432
+ /**
433
+ *
434
+ * @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
435
+ * @param {string} id Subscriber ID
436
+ * @param {number | null} [limit]
437
+ * @param {string | null} [after]
438
+ * @param {string | null} [before]
439
+ * @param {string | null} [channel]
440
+ * @param {boolean | null} [read]
441
+ * @param {boolean | null} [seen]
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ subscriberFeed: (id_1, limit_1, after_1, before_1, channel_1, read_1, seen_1, ...args_1) => __awaiter(this, [id_1, limit_1, after_1, before_1, channel_1, read_1, seen_1, ...args_1], void 0, function* (id, limit, after, before, channel, read, seen, options = {}) {
446
+ // verify required parameter 'id' is not null or undefined
447
+ assertParamExists('subscriberFeed', 'id', id);
448
+ const localVarPath = `/v1/subscribers/{id}/notifications/feed/`
449
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
452
+ let baseOptions;
453
+ if (configuration) {
454
+ baseOptions = configuration.baseOptions;
455
+ }
456
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
457
+ const localVarHeaderParameter = {};
458
+ const localVarQueryParameter = {};
459
+ // authentication bearer_auth required
460
+ // http bearer authentication required
461
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
462
+ if (limit !== undefined) {
463
+ localVarQueryParameter['limit'] = limit;
464
+ }
465
+ if (after !== undefined) {
466
+ localVarQueryParameter['after'] = after;
467
+ }
468
+ if (before !== undefined) {
469
+ localVarQueryParameter['before'] = before;
470
+ }
471
+ if (channel !== undefined) {
472
+ localVarQueryParameter['channel'] = channel;
473
+ }
474
+ if (read !== undefined) {
475
+ localVarQueryParameter['read'] = read;
476
+ }
477
+ if (seen !== undefined) {
478
+ localVarQueryParameter['seen'] = seen;
479
+ }
480
+ localVarHeaderParameter['Accept'] = 'application/json';
481
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
482
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
484
+ return {
485
+ url: toPathString(localVarUrlObj),
486
+ options: localVarRequestOptions,
487
+ };
488
+ }),
489
+ /**
490
+ *
491
+ * @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
492
+ * @param {string} id Subscriber ID
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ unseenCount: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
497
+ // verify required parameter 'id' is not null or undefined
498
+ assertParamExists('unseenCount', 'id', id);
499
+ const localVarPath = `/v1/subscribers/{id}/notifications/unseen/`
500
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
501
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
503
+ let baseOptions;
504
+ if (configuration) {
505
+ baseOptions = configuration.baseOptions;
506
+ }
507
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
508
+ const localVarHeaderParameter = {};
509
+ const localVarQueryParameter = {};
510
+ // authentication bearer_auth required
511
+ // http bearer authentication required
512
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
513
+ localVarHeaderParameter['Accept'] = 'application/json';
514
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
517
+ return {
518
+ url: toPathString(localVarUrlObj),
519
+ options: localVarRequestOptions,
520
+ };
521
+ }),
522
+ /**
523
+ *
524
+ * @summary PATCH /v1/subscribers/:id/online-status — set online/offline
525
+ * @param {string} id Subscriber ID
526
+ * @param {OnlineStatus} onlineStatus
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ updateOnlineStatus: (id_1, onlineStatus_1, ...args_1) => __awaiter(this, [id_1, onlineStatus_1, ...args_1], void 0, function* (id, onlineStatus, options = {}) {
531
+ // verify required parameter 'id' is not null or undefined
532
+ assertParamExists('updateOnlineStatus', 'id', id);
533
+ // verify required parameter 'onlineStatus' is not null or undefined
534
+ assertParamExists('updateOnlineStatus', 'onlineStatus', onlineStatus);
535
+ const localVarPath = `/v1/subscribers/{id}/online-status/`
536
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
537
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
538
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
539
+ let baseOptions;
540
+ if (configuration) {
541
+ baseOptions = configuration.baseOptions;
542
+ }
543
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
544
+ const localVarHeaderParameter = {};
545
+ const localVarQueryParameter = {};
546
+ // authentication bearer_auth required
547
+ // http bearer authentication required
548
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
549
+ localVarHeaderParameter['Content-Type'] = 'application/json';
550
+ localVarHeaderParameter['Accept'] = 'application/json';
551
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
552
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
553
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
554
+ localVarRequestOptions.data = serializeDataIfNeeded(onlineStatus, localVarRequestOptions, configuration);
555
+ return {
556
+ url: toPathString(localVarUrlObj),
557
+ options: localVarRequestOptions,
558
+ };
559
+ }),
560
+ /**
561
+ *
562
+ * @summary PATCH /v1/subscribers/:subscriber_id
563
+ * @param {string} id Subscriber ID
564
+ * @param {UpdateSubscriber} updateSubscriber
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ updateSubscriber: (id_1, updateSubscriber_1, ...args_1) => __awaiter(this, [id_1, updateSubscriber_1, ...args_1], void 0, function* (id, updateSubscriber, options = {}) {
569
+ // verify required parameter 'id' is not null or undefined
570
+ assertParamExists('updateSubscriber', 'id', id);
571
+ // verify required parameter 'updateSubscriber' is not null or undefined
572
+ assertParamExists('updateSubscriber', 'updateSubscriber', updateSubscriber);
573
+ const localVarPath = `/v1/subscribers/{id}/`
574
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
577
+ let baseOptions;
578
+ if (configuration) {
579
+ baseOptions = configuration.baseOptions;
580
+ }
581
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
582
+ const localVarHeaderParameter = {};
583
+ const localVarQueryParameter = {};
584
+ // authentication bearer_auth required
585
+ // http bearer authentication required
586
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
587
+ localVarHeaderParameter['Content-Type'] = 'application/json';
588
+ localVarHeaderParameter['Accept'] = 'application/json';
589
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
590
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
591
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
592
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriber, localVarRequestOptions, configuration);
593
+ return {
594
+ url: toPathString(localVarUrlObj),
595
+ options: localVarRequestOptions,
596
+ };
597
+ }),
598
+ /**
599
+ *
600
+ * @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
601
+ * @param {string} id Subscriber ID
602
+ * @param {PatchCredentials} patchCredentials
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ upsertCredentials: (id_1, patchCredentials_1, ...args_1) => __awaiter(this, [id_1, patchCredentials_1, ...args_1], void 0, function* (id, patchCredentials, options = {}) {
607
+ // verify required parameter 'id' is not null or undefined
608
+ assertParamExists('upsertCredentials', 'id', id);
609
+ // verify required parameter 'patchCredentials' is not null or undefined
610
+ assertParamExists('upsertCredentials', 'patchCredentials', patchCredentials);
611
+ const localVarPath = `/v1/subscribers/{id}/credentials/`
612
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
613
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
614
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
615
+ let baseOptions;
616
+ if (configuration) {
617
+ baseOptions = configuration.baseOptions;
618
+ }
619
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
620
+ const localVarHeaderParameter = {};
621
+ const localVarQueryParameter = {};
622
+ // authentication bearer_auth required
623
+ // http bearer authentication required
624
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
625
+ localVarHeaderParameter['Content-Type'] = 'application/json';
626
+ localVarHeaderParameter['Accept'] = 'application/json';
627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
630
+ localVarRequestOptions.data = serializeDataIfNeeded(patchCredentials, localVarRequestOptions, configuration);
631
+ return {
632
+ url: toPathString(localVarUrlObj),
633
+ options: localVarRequestOptions,
634
+ };
635
+ }),
636
+ };
637
+ };
638
+ /**
639
+ * SubscribersApi - functional programming interface
640
+ */
641
+ export const SubscribersApiFp = function (configuration) {
642
+ const localVarAxiosParamCreator = SubscribersApiAxiosParamCreator(configuration);
643
+ return {
644
+ /**
645
+ *
646
+ * @summary POST /v1/subscribers/bulk — create multiple subscribers at once
647
+ * @param {BulkCreateSubscribers} bulkCreateSubscribers
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ bulkCreate(bulkCreateSubscribers, options) {
652
+ return __awaiter(this, void 0, void 0, function* () {
653
+ var _a, _b, _c;
654
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreate(bulkCreateSubscribers, options);
655
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
656
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.bulkCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
657
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
658
+ });
659
+ },
660
+ /**
661
+ *
662
+ * @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
663
+ * @param {string} id Subscriber ID
664
+ * @param {BulkPreferences} bulkPreferences
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ bulkUpdatePreferences(id, bulkPreferences, options) {
669
+ return __awaiter(this, void 0, void 0, function* () {
670
+ var _a, _b, _c;
671
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdatePreferences(id, bulkPreferences, options);
672
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
673
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.bulkUpdatePreferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
674
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
675
+ });
676
+ },
677
+ /**
678
+ *
679
+ * @summary POST /v1/subscribers
680
+ * @param {CreateSubscriber} createSubscriber
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
684
+ createSubscriber(createSubscriber, options) {
685
+ return __awaiter(this, void 0, void 0, function* () {
686
+ var _a, _b, _c;
687
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriber(createSubscriber, options);
688
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
689
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.createSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
691
+ });
692
+ },
693
+ /**
694
+ *
695
+ * @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
696
+ * @param {string} id Subscriber ID
697
+ * @param {string} providerId Provider ID
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ deleteCredentials(id, providerId, options) {
702
+ return __awaiter(this, void 0, void 0, function* () {
703
+ var _a, _b, _c;
704
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCredentials(id, providerId, options);
705
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
706
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.deleteCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
707
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
708
+ });
709
+ },
710
+ /**
711
+ *
712
+ * @summary DELETE /v1/subscribers/:subscriber_id
713
+ * @param {string} id Subscriber ID
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ deleteSubscriber(id, options) {
718
+ return __awaiter(this, void 0, void 0, function* () {
719
+ var _a, _b, _c;
720
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriber(id, options);
721
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
722
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.deleteSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
723
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
724
+ });
725
+ },
726
+ /**
727
+ *
728
+ * @summary GET /v1/subscribers/:subscriber_id
729
+ * @param {string} id Subscriber ID
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ getSubscriber(id, options) {
734
+ return __awaiter(this, void 0, void 0, function* () {
735
+ var _a, _b, _c;
736
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriber(id, options);
737
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
738
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.getSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
739
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
740
+ });
741
+ },
742
+ /**
743
+ *
744
+ * @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
745
+ * @param {string} id Subscriber ID
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ listSubscriberSubscriptions(id, options) {
750
+ return __awaiter(this, void 0, void 0, function* () {
751
+ var _a, _b, _c;
752
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSubscriberSubscriptions(id, options);
753
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
754
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.listSubscriberSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
755
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
756
+ });
757
+ },
758
+ /**
759
+ * Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
760
+ * @summary GET /v1/subscribers
761
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
762
+ * @param {number | null} [offset] Number of items to skip (default 0).
763
+ * @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
764
+ * @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
765
+ * @param {*} [options] Override http request option.
766
+ * @throws {RequiredError}
767
+ */
768
+ listSubscribers(limit, offset, q, filterBy, options) {
769
+ return __awaiter(this, void 0, void 0, function* () {
770
+ var _a, _b, _c;
771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSubscribers(limit, offset, q, filterBy, options);
772
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
773
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.listSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
774
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
775
+ });
776
+ },
777
+ /**
778
+ *
779
+ * @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
780
+ * @param {string} id Subscriber ID
781
+ * @param {MarkAll} markAll
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ markAllMessages(id, markAll, options) {
786
+ return __awaiter(this, void 0, void 0, function* () {
787
+ var _a, _b, _c;
788
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markAllMessages(id, markAll, options);
789
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
790
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.markAllMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
792
+ });
793
+ },
794
+ /**
795
+ *
796
+ * @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
797
+ * @param {string} id Subscriber ID
798
+ * @param {MarkMessages} markMessages
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ markMessages(id, markMessages, options) {
803
+ return __awaiter(this, void 0, void 0, function* () {
804
+ var _a, _b, _c;
805
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markMessages(id, markMessages, options);
806
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
807
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.markMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
808
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
809
+ });
810
+ },
811
+ /**
812
+ *
813
+ * @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
814
+ * @param {string} id Subscriber ID
815
+ * @param {SetCredentials} setCredentials
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ setCredentials(id, setCredentials, options) {
820
+ return __awaiter(this, void 0, void 0, function* () {
821
+ var _a, _b, _c;
822
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setCredentials(id, setCredentials, options);
823
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
824
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.setCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
826
+ });
827
+ },
828
+ /**
829
+ *
830
+ * @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
831
+ * @param {string} id Subscriber ID
832
+ * @param {number | null} [limit]
833
+ * @param {string | null} [after]
834
+ * @param {string | null} [before]
835
+ * @param {string | null} [channel]
836
+ * @param {boolean | null} [read]
837
+ * @param {boolean | null} [seen]
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ subscriberFeed(id, limit, after, before, channel, read, seen, options) {
842
+ return __awaiter(this, void 0, void 0, function* () {
843
+ var _a, _b, _c;
844
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.subscriberFeed(id, limit, after, before, channel, read, seen, options);
845
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
846
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.subscriberFeed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
847
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
848
+ });
849
+ },
850
+ /**
851
+ *
852
+ * @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
853
+ * @param {string} id Subscriber ID
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ */
857
+ unseenCount(id, options) {
858
+ return __awaiter(this, void 0, void 0, function* () {
859
+ var _a, _b, _c;
860
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unseenCount(id, options);
861
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
862
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.unseenCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
863
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
864
+ });
865
+ },
866
+ /**
867
+ *
868
+ * @summary PATCH /v1/subscribers/:id/online-status — set online/offline
869
+ * @param {string} id Subscriber ID
870
+ * @param {OnlineStatus} onlineStatus
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ updateOnlineStatus(id, onlineStatus, options) {
875
+ return __awaiter(this, void 0, void 0, function* () {
876
+ var _a, _b, _c;
877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOnlineStatus(id, onlineStatus, options);
878
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
879
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.updateOnlineStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
880
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
881
+ });
882
+ },
883
+ /**
884
+ *
885
+ * @summary PATCH /v1/subscribers/:subscriber_id
886
+ * @param {string} id Subscriber ID
887
+ * @param {UpdateSubscriber} updateSubscriber
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ */
891
+ updateSubscriber(id, updateSubscriber, options) {
892
+ return __awaiter(this, void 0, void 0, function* () {
893
+ var _a, _b, _c;
894
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriber(id, updateSubscriber, options);
895
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
896
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.updateSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
897
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
898
+ });
899
+ },
900
+ /**
901
+ *
902
+ * @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
903
+ * @param {string} id Subscriber ID
904
+ * @param {PatchCredentials} patchCredentials
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ */
908
+ upsertCredentials(id, patchCredentials, options) {
909
+ return __awaiter(this, void 0, void 0, function* () {
910
+ var _a, _b, _c;
911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertCredentials(id, patchCredentials, options);
912
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
913
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.upsertCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
914
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
915
+ });
916
+ },
917
+ };
918
+ };
919
+ /**
920
+ * SubscribersApi - factory interface
921
+ */
922
+ export const SubscribersApiFactory = function (configuration, basePath, axios) {
923
+ const localVarFp = SubscribersApiFp(configuration);
924
+ return {
925
+ /**
926
+ *
927
+ * @summary POST /v1/subscribers/bulk — create multiple subscribers at once
928
+ * @param {BulkCreateSubscribers} bulkCreateSubscribers
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ bulkCreate(bulkCreateSubscribers, options) {
933
+ return localVarFp.bulkCreate(bulkCreateSubscribers, options).then((request) => request(axios, basePath));
934
+ },
935
+ /**
936
+ *
937
+ * @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
938
+ * @param {string} id Subscriber ID
939
+ * @param {BulkPreferences} bulkPreferences
940
+ * @param {*} [options] Override http request option.
941
+ * @throws {RequiredError}
942
+ */
943
+ bulkUpdatePreferences(id, bulkPreferences, options) {
944
+ return localVarFp.bulkUpdatePreferences(id, bulkPreferences, options).then((request) => request(axios, basePath));
945
+ },
946
+ /**
947
+ *
948
+ * @summary POST /v1/subscribers
949
+ * @param {CreateSubscriber} createSubscriber
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ createSubscriber(createSubscriber, options) {
954
+ return localVarFp.createSubscriber(createSubscriber, options).then((request) => request(axios, basePath));
955
+ },
956
+ /**
957
+ *
958
+ * @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
959
+ * @param {string} id Subscriber ID
960
+ * @param {string} providerId Provider ID
961
+ * @param {*} [options] Override http request option.
962
+ * @throws {RequiredError}
963
+ */
964
+ deleteCredentials(id, providerId, options) {
965
+ return localVarFp.deleteCredentials(id, providerId, options).then((request) => request(axios, basePath));
966
+ },
967
+ /**
968
+ *
969
+ * @summary DELETE /v1/subscribers/:subscriber_id
970
+ * @param {string} id Subscriber ID
971
+ * @param {*} [options] Override http request option.
972
+ * @throws {RequiredError}
973
+ */
974
+ deleteSubscriber(id, options) {
975
+ return localVarFp.deleteSubscriber(id, options).then((request) => request(axios, basePath));
976
+ },
977
+ /**
978
+ *
979
+ * @summary GET /v1/subscribers/:subscriber_id
980
+ * @param {string} id Subscriber ID
981
+ * @param {*} [options] Override http request option.
982
+ * @throws {RequiredError}
983
+ */
984
+ getSubscriber(id, options) {
985
+ return localVarFp.getSubscriber(id, options).then((request) => request(axios, basePath));
986
+ },
987
+ /**
988
+ *
989
+ * @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
990
+ * @param {string} id Subscriber ID
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ listSubscriberSubscriptions(id, options) {
995
+ return localVarFp.listSubscriberSubscriptions(id, options).then((request) => request(axios, basePath));
996
+ },
997
+ /**
998
+ * Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
999
+ * @summary GET /v1/subscribers
1000
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
1001
+ * @param {number | null} [offset] Number of items to skip (default 0).
1002
+ * @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
1003
+ * @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
1004
+ * @param {*} [options] Override http request option.
1005
+ * @throws {RequiredError}
1006
+ */
1007
+ listSubscribers(limit, offset, q, filterBy, options) {
1008
+ return localVarFp.listSubscribers(limit, offset, q, filterBy, options).then((request) => request(axios, basePath));
1009
+ },
1010
+ /**
1011
+ *
1012
+ * @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
1013
+ * @param {string} id Subscriber ID
1014
+ * @param {MarkAll} markAll
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ markAllMessages(id, markAll, options) {
1019
+ return localVarFp.markAllMessages(id, markAll, options).then((request) => request(axios, basePath));
1020
+ },
1021
+ /**
1022
+ *
1023
+ * @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
1024
+ * @param {string} id Subscriber ID
1025
+ * @param {MarkMessages} markMessages
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ markMessages(id, markMessages, options) {
1030
+ return localVarFp.markMessages(id, markMessages, options).then((request) => request(axios, basePath));
1031
+ },
1032
+ /**
1033
+ *
1034
+ * @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
1035
+ * @param {string} id Subscriber ID
1036
+ * @param {SetCredentials} setCredentials
1037
+ * @param {*} [options] Override http request option.
1038
+ * @throws {RequiredError}
1039
+ */
1040
+ setCredentials(id, setCredentials, options) {
1041
+ return localVarFp.setCredentials(id, setCredentials, options).then((request) => request(axios, basePath));
1042
+ },
1043
+ /**
1044
+ *
1045
+ * @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
1046
+ * @param {string} id Subscriber ID
1047
+ * @param {number | null} [limit]
1048
+ * @param {string | null} [after]
1049
+ * @param {string | null} [before]
1050
+ * @param {string | null} [channel]
1051
+ * @param {boolean | null} [read]
1052
+ * @param {boolean | null} [seen]
1053
+ * @param {*} [options] Override http request option.
1054
+ * @throws {RequiredError}
1055
+ */
1056
+ subscriberFeed(id, limit, after, before, channel, read, seen, options) {
1057
+ return localVarFp.subscriberFeed(id, limit, after, before, channel, read, seen, options).then((request) => request(axios, basePath));
1058
+ },
1059
+ /**
1060
+ *
1061
+ * @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
1062
+ * @param {string} id Subscriber ID
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ unseenCount(id, options) {
1067
+ return localVarFp.unseenCount(id, options).then((request) => request(axios, basePath));
1068
+ },
1069
+ /**
1070
+ *
1071
+ * @summary PATCH /v1/subscribers/:id/online-status — set online/offline
1072
+ * @param {string} id Subscriber ID
1073
+ * @param {OnlineStatus} onlineStatus
1074
+ * @param {*} [options] Override http request option.
1075
+ * @throws {RequiredError}
1076
+ */
1077
+ updateOnlineStatus(id, onlineStatus, options) {
1078
+ return localVarFp.updateOnlineStatus(id, onlineStatus, options).then((request) => request(axios, basePath));
1079
+ },
1080
+ /**
1081
+ *
1082
+ * @summary PATCH /v1/subscribers/:subscriber_id
1083
+ * @param {string} id Subscriber ID
1084
+ * @param {UpdateSubscriber} updateSubscriber
1085
+ * @param {*} [options] Override http request option.
1086
+ * @throws {RequiredError}
1087
+ */
1088
+ updateSubscriber(id, updateSubscriber, options) {
1089
+ return localVarFp.updateSubscriber(id, updateSubscriber, options).then((request) => request(axios, basePath));
1090
+ },
1091
+ /**
1092
+ *
1093
+ * @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
1094
+ * @param {string} id Subscriber ID
1095
+ * @param {PatchCredentials} patchCredentials
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ upsertCredentials(id, patchCredentials, options) {
1100
+ return localVarFp.upsertCredentials(id, patchCredentials, options).then((request) => request(axios, basePath));
1101
+ },
1102
+ };
1103
+ };
1104
+ /**
1105
+ * SubscribersApi - object-oriented interface
1106
+ */
1107
+ export class SubscribersApi extends BaseAPI {
1108
+ /**
1109
+ *
1110
+ * @summary POST /v1/subscribers/bulk — create multiple subscribers at once
1111
+ * @param {BulkCreateSubscribers} bulkCreateSubscribers
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ */
1115
+ bulkCreate(bulkCreateSubscribers, options) {
1116
+ return SubscribersApiFp(this.configuration).bulkCreate(bulkCreateSubscribers, options).then((request) => request(this.axios, this.basePath));
1117
+ }
1118
+ /**
1119
+ *
1120
+ * @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
1121
+ * @param {string} id Subscriber ID
1122
+ * @param {BulkPreferences} bulkPreferences
1123
+ * @param {*} [options] Override http request option.
1124
+ * @throws {RequiredError}
1125
+ */
1126
+ bulkUpdatePreferences(id, bulkPreferences, options) {
1127
+ return SubscribersApiFp(this.configuration).bulkUpdatePreferences(id, bulkPreferences, options).then((request) => request(this.axios, this.basePath));
1128
+ }
1129
+ /**
1130
+ *
1131
+ * @summary POST /v1/subscribers
1132
+ * @param {CreateSubscriber} createSubscriber
1133
+ * @param {*} [options] Override http request option.
1134
+ * @throws {RequiredError}
1135
+ */
1136
+ createSubscriber(createSubscriber, options) {
1137
+ return SubscribersApiFp(this.configuration).createSubscriber(createSubscriber, options).then((request) => request(this.axios, this.basePath));
1138
+ }
1139
+ /**
1140
+ *
1141
+ * @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
1142
+ * @param {string} id Subscriber ID
1143
+ * @param {string} providerId Provider ID
1144
+ * @param {*} [options] Override http request option.
1145
+ * @throws {RequiredError}
1146
+ */
1147
+ deleteCredentials(id, providerId, options) {
1148
+ return SubscribersApiFp(this.configuration).deleteCredentials(id, providerId, options).then((request) => request(this.axios, this.basePath));
1149
+ }
1150
+ /**
1151
+ *
1152
+ * @summary DELETE /v1/subscribers/:subscriber_id
1153
+ * @param {string} id Subscriber ID
1154
+ * @param {*} [options] Override http request option.
1155
+ * @throws {RequiredError}
1156
+ */
1157
+ deleteSubscriber(id, options) {
1158
+ return SubscribersApiFp(this.configuration).deleteSubscriber(id, options).then((request) => request(this.axios, this.basePath));
1159
+ }
1160
+ /**
1161
+ *
1162
+ * @summary GET /v1/subscribers/:subscriber_id
1163
+ * @param {string} id Subscriber ID
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ */
1167
+ getSubscriber(id, options) {
1168
+ return SubscribersApiFp(this.configuration).getSubscriber(id, options).then((request) => request(this.axios, this.basePath));
1169
+ }
1170
+ /**
1171
+ *
1172
+ * @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
1173
+ * @param {string} id Subscriber ID
1174
+ * @param {*} [options] Override http request option.
1175
+ * @throws {RequiredError}
1176
+ */
1177
+ listSubscriberSubscriptions(id, options) {
1178
+ return SubscribersApiFp(this.configuration).listSubscriberSubscriptions(id, options).then((request) => request(this.axios, this.basePath));
1179
+ }
1180
+ /**
1181
+ * Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
1182
+ * @summary GET /v1/subscribers
1183
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
1184
+ * @param {number | null} [offset] Number of items to skip (default 0).
1185
+ * @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
1186
+ * @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ listSubscribers(limit, offset, q, filterBy, options) {
1191
+ return SubscribersApiFp(this.configuration).listSubscribers(limit, offset, q, filterBy, options).then((request) => request(this.axios, this.basePath));
1192
+ }
1193
+ /**
1194
+ *
1195
+ * @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
1196
+ * @param {string} id Subscriber ID
1197
+ * @param {MarkAll} markAll
1198
+ * @param {*} [options] Override http request option.
1199
+ * @throws {RequiredError}
1200
+ */
1201
+ markAllMessages(id, markAll, options) {
1202
+ return SubscribersApiFp(this.configuration).markAllMessages(id, markAll, options).then((request) => request(this.axios, this.basePath));
1203
+ }
1204
+ /**
1205
+ *
1206
+ * @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
1207
+ * @param {string} id Subscriber ID
1208
+ * @param {MarkMessages} markMessages
1209
+ * @param {*} [options] Override http request option.
1210
+ * @throws {RequiredError}
1211
+ */
1212
+ markMessages(id, markMessages, options) {
1213
+ return SubscribersApiFp(this.configuration).markMessages(id, markMessages, options).then((request) => request(this.axios, this.basePath));
1214
+ }
1215
+ /**
1216
+ *
1217
+ * @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
1218
+ * @param {string} id Subscriber ID
1219
+ * @param {SetCredentials} setCredentials
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ */
1223
+ setCredentials(id, setCredentials, options) {
1224
+ return SubscribersApiFp(this.configuration).setCredentials(id, setCredentials, options).then((request) => request(this.axios, this.basePath));
1225
+ }
1226
+ /**
1227
+ *
1228
+ * @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
1229
+ * @param {string} id Subscriber ID
1230
+ * @param {number | null} [limit]
1231
+ * @param {string | null} [after]
1232
+ * @param {string | null} [before]
1233
+ * @param {string | null} [channel]
1234
+ * @param {boolean | null} [read]
1235
+ * @param {boolean | null} [seen]
1236
+ * @param {*} [options] Override http request option.
1237
+ * @throws {RequiredError}
1238
+ */
1239
+ subscriberFeed(id, limit, after, before, channel, read, seen, options) {
1240
+ return SubscribersApiFp(this.configuration).subscriberFeed(id, limit, after, before, channel, read, seen, options).then((request) => request(this.axios, this.basePath));
1241
+ }
1242
+ /**
1243
+ *
1244
+ * @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
1245
+ * @param {string} id Subscriber ID
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ */
1249
+ unseenCount(id, options) {
1250
+ return SubscribersApiFp(this.configuration).unseenCount(id, options).then((request) => request(this.axios, this.basePath));
1251
+ }
1252
+ /**
1253
+ *
1254
+ * @summary PATCH /v1/subscribers/:id/online-status — set online/offline
1255
+ * @param {string} id Subscriber ID
1256
+ * @param {OnlineStatus} onlineStatus
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ */
1260
+ updateOnlineStatus(id, onlineStatus, options) {
1261
+ return SubscribersApiFp(this.configuration).updateOnlineStatus(id, onlineStatus, options).then((request) => request(this.axios, this.basePath));
1262
+ }
1263
+ /**
1264
+ *
1265
+ * @summary PATCH /v1/subscribers/:subscriber_id
1266
+ * @param {string} id Subscriber ID
1267
+ * @param {UpdateSubscriber} updateSubscriber
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ */
1271
+ updateSubscriber(id, updateSubscriber, options) {
1272
+ return SubscribersApiFp(this.configuration).updateSubscriber(id, updateSubscriber, options).then((request) => request(this.axios, this.basePath));
1273
+ }
1274
+ /**
1275
+ *
1276
+ * @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
1277
+ * @param {string} id Subscriber ID
1278
+ * @param {PatchCredentials} patchCredentials
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ */
1282
+ upsertCredentials(id, patchCredentials, options) {
1283
+ return SubscribersApiFp(this.configuration).upsertCredentials(id, patchCredentials, options).then((request) => request(this.axios, this.basePath));
1284
+ }
1285
+ }