@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,1143 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * enbbox API
6
+ * Notification infrastructure API — open-source alternative to Novu/Courier
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.TopicsApi = exports.TopicsApiFactory = exports.TopicsApiFp = exports.TopicsApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * TopicsApi - axios parameter creator
34
+ */
35
+ const TopicsApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ *
39
+ * @summary POST /v1/topics/:topicKey/subscribers
40
+ * @param {string} key Topic key
41
+ * @param {TopicSubscribers} topicSubscribers
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ addSubscribers: (key_1, topicSubscribers_1, ...args_1) => __awaiter(this, [key_1, topicSubscribers_1, ...args_1], void 0, function* (key, topicSubscribers, options = {}) {
46
+ // verify required parameter 'key' is not null or undefined
47
+ (0, common_1.assertParamExists)('addSubscribers', 'key', key);
48
+ // verify required parameter 'topicSubscribers' is not null or undefined
49
+ (0, common_1.assertParamExists)('addSubscribers', 'topicSubscribers', topicSubscribers);
50
+ const localVarPath = `/v1/topics/{key}/subscribers/`
51
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
52
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
54
+ let baseOptions;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ }
58
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
59
+ const localVarHeaderParameter = {};
60
+ const localVarQueryParameter = {};
61
+ // authentication bearer_auth required
62
+ // http bearer authentication required
63
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
64
+ localVarHeaderParameter['Content-Type'] = 'application/json';
65
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
66
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
68
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(topicSubscribers, localVarRequestOptions, configuration);
69
+ return {
70
+ url: (0, common_1.toPathString)(localVarUrlObj),
71
+ options: localVarRequestOptions,
72
+ };
73
+ }),
74
+ /**
75
+ *
76
+ * @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
77
+ * @param {string} key
78
+ * @param {string} subscriberId
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ checkSubscriber: (key_1, subscriberId_1, ...args_1) => __awaiter(this, [key_1, subscriberId_1, ...args_1], void 0, function* (key, subscriberId, options = {}) {
83
+ // verify required parameter 'key' is not null or undefined
84
+ (0, common_1.assertParamExists)('checkSubscriber', 'key', key);
85
+ // verify required parameter 'subscriberId' is not null or undefined
86
+ (0, common_1.assertParamExists)('checkSubscriber', 'subscriberId', subscriberId);
87
+ const localVarPath = `/v1/topics/{key}/subscribers/{subscriber_id}/`
88
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)))
89
+ .replace(`{${"subscriber_id"}}`, encodeURIComponent(String(subscriberId)));
90
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
91
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
92
+ let baseOptions;
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions;
95
+ }
96
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
97
+ const localVarHeaderParameter = {};
98
+ const localVarQueryParameter = {};
99
+ // authentication bearer_auth required
100
+ // http bearer authentication required
101
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
102
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
105
+ return {
106
+ url: (0, common_1.toPathString)(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ }),
110
+ /**
111
+ *
112
+ * @summary POST /v1/topics/:key/subscriptions — create subscriptions
113
+ * @param {string} key
114
+ * @param {CreateSubscription} createSubscription
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ createSubscriptions: (key_1, createSubscription_1, ...args_1) => __awaiter(this, [key_1, createSubscription_1, ...args_1], void 0, function* (key, createSubscription, options = {}) {
119
+ // verify required parameter 'key' is not null or undefined
120
+ (0, common_1.assertParamExists)('createSubscriptions', 'key', key);
121
+ // verify required parameter 'createSubscription' is not null or undefined
122
+ (0, common_1.assertParamExists)('createSubscriptions', 'createSubscription', createSubscription);
123
+ const localVarPath = `/v1/topics/{key}/subscriptions/`
124
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
+ let baseOptions;
128
+ if (configuration) {
129
+ baseOptions = configuration.baseOptions;
130
+ }
131
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
132
+ const localVarHeaderParameter = {};
133
+ const localVarQueryParameter = {};
134
+ // authentication bearer_auth required
135
+ // http bearer authentication required
136
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
137
+ localVarHeaderParameter['Content-Type'] = 'application/json';
138
+ localVarHeaderParameter['Accept'] = 'application/json';
139
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscription, localVarRequestOptions, configuration);
143
+ return {
144
+ url: (0, common_1.toPathString)(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ };
147
+ }),
148
+ /**
149
+ *
150
+ * @summary POST /v1/topics
151
+ * @param {CreateTopic} createTopic
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ createTopic: (createTopic_1, ...args_1) => __awaiter(this, [createTopic_1, ...args_1], void 0, function* (createTopic, options = {}) {
156
+ // verify required parameter 'createTopic' is not null or undefined
157
+ (0, common_1.assertParamExists)('createTopic', 'createTopic', createTopic);
158
+ const localVarPath = `/v1/topics/`;
159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
+ let baseOptions;
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ }
165
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
166
+ const localVarHeaderParameter = {};
167
+ const localVarQueryParameter = {};
168
+ // authentication bearer_auth required
169
+ // http bearer authentication required
170
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
172
+ localVarHeaderParameter['Accept'] = 'application/json';
173
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
174
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
175
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
176
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTopic, localVarRequestOptions, configuration);
177
+ return {
178
+ url: (0, common_1.toPathString)(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ }),
182
+ /**
183
+ *
184
+ * @summary DELETE /v1/topics/:key/subscriptions — bulk delete
185
+ * @param {string} key
186
+ * @param {DeleteSubscription} deleteSubscription
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ deleteSubscriptions: (key_1, deleteSubscription_1, ...args_1) => __awaiter(this, [key_1, deleteSubscription_1, ...args_1], void 0, function* (key, deleteSubscription, options = {}) {
191
+ // verify required parameter 'key' is not null or undefined
192
+ (0, common_1.assertParamExists)('deleteSubscriptions', 'key', key);
193
+ // verify required parameter 'deleteSubscription' is not null or undefined
194
+ (0, common_1.assertParamExists)('deleteSubscriptions', 'deleteSubscription', deleteSubscription);
195
+ const localVarPath = `/v1/topics/{key}/subscriptions/`
196
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ if (configuration) {
201
+ baseOptions = configuration.baseOptions;
202
+ }
203
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
204
+ const localVarHeaderParameter = {};
205
+ const localVarQueryParameter = {};
206
+ // authentication bearer_auth required
207
+ // http bearer authentication required
208
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
209
+ localVarHeaderParameter['Content-Type'] = 'application/json';
210
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
212
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
213
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteSubscription, localVarRequestOptions, configuration);
214
+ return {
215
+ url: (0, common_1.toPathString)(localVarUrlObj),
216
+ options: localVarRequestOptions,
217
+ };
218
+ }),
219
+ /**
220
+ *
221
+ * @summary DELETE /v1/topics/:topicKey
222
+ * @param {string} key Topic key
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ deleteTopic: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
227
+ // verify required parameter 'key' is not null or undefined
228
+ (0, common_1.assertParamExists)('deleteTopic', 'key', key);
229
+ const localVarPath = `/v1/topics/{key}/`
230
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
231
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
233
+ let baseOptions;
234
+ if (configuration) {
235
+ baseOptions = configuration.baseOptions;
236
+ }
237
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
238
+ const localVarHeaderParameter = {};
239
+ const localVarQueryParameter = {};
240
+ // authentication bearer_auth required
241
+ // http bearer authentication required
242
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
243
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
244
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
245
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
246
+ return {
247
+ url: (0, common_1.toPathString)(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ };
250
+ }),
251
+ /**
252
+ *
253
+ * @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
254
+ * @param {string} key
255
+ * @param {string} id
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ getSubscription: (key_1, id_1, ...args_1) => __awaiter(this, [key_1, id_1, ...args_1], void 0, function* (key, id, options = {}) {
260
+ // verify required parameter 'key' is not null or undefined
261
+ (0, common_1.assertParamExists)('getSubscription', 'key', key);
262
+ // verify required parameter 'id' is not null or undefined
263
+ (0, common_1.assertParamExists)('getSubscription', 'id', id);
264
+ const localVarPath = `/v1/topics/{key}/subscriptions/{id}/`
265
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)))
266
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
+ let baseOptions;
270
+ if (configuration) {
271
+ baseOptions = configuration.baseOptions;
272
+ }
273
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
274
+ const localVarHeaderParameter = {};
275
+ const localVarQueryParameter = {};
276
+ // authentication bearer_auth required
277
+ // http bearer authentication required
278
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
279
+ localVarHeaderParameter['Accept'] = 'application/json';
280
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
281
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
282
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
283
+ return {
284
+ url: (0, common_1.toPathString)(localVarUrlObj),
285
+ options: localVarRequestOptions,
286
+ };
287
+ }),
288
+ /**
289
+ *
290
+ * @summary GET /v1/topics/:topicKey
291
+ * @param {string} key Topic key
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ getTopic: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
296
+ // verify required parameter 'key' is not null or undefined
297
+ (0, common_1.assertParamExists)('getTopic', 'key', key);
298
+ const localVarPath = `/v1/topics/{key}/`
299
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
300
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
301
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
302
+ let baseOptions;
303
+ if (configuration) {
304
+ baseOptions = configuration.baseOptions;
305
+ }
306
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
307
+ const localVarHeaderParameter = {};
308
+ const localVarQueryParameter = {};
309
+ // authentication bearer_auth required
310
+ // http bearer authentication required
311
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
312
+ localVarHeaderParameter['Accept'] = 'application/json';
313
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
316
+ return {
317
+ url: (0, common_1.toPathString)(localVarUrlObj),
318
+ options: localVarRequestOptions,
319
+ };
320
+ }),
321
+ /**
322
+ *
323
+ * @summary GET /v1/topics/:key/subscriptions — list subscriptions
324
+ * @param {string} key
325
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
326
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
327
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
328
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ listSubscriptions: (key_1, limit_1, offset_1, q_1, filterBy_1, ...args_1) => __awaiter(this, [key_1, limit_1, offset_1, q_1, filterBy_1, ...args_1], void 0, function* (key, limit, offset, q, filterBy, options = {}) {
333
+ // verify required parameter 'key' is not null or undefined
334
+ (0, common_1.assertParamExists)('listSubscriptions', 'key', key);
335
+ const localVarPath = `/v1/topics/{key}/subscriptions/`
336
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
338
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
339
+ let baseOptions;
340
+ if (configuration) {
341
+ baseOptions = configuration.baseOptions;
342
+ }
343
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
344
+ const localVarHeaderParameter = {};
345
+ const localVarQueryParameter = {};
346
+ // authentication bearer_auth required
347
+ // http bearer authentication required
348
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
349
+ if (limit !== undefined) {
350
+ localVarQueryParameter['limit'] = limit;
351
+ }
352
+ if (offset !== undefined) {
353
+ localVarQueryParameter['offset'] = offset;
354
+ }
355
+ if (q !== undefined) {
356
+ localVarQueryParameter['q'] = q;
357
+ }
358
+ if (filterBy !== undefined) {
359
+ localVarQueryParameter['filter_by'] = filterBy;
360
+ }
361
+ localVarHeaderParameter['Accept'] = 'application/json';
362
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
363
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
365
+ return {
366
+ url: (0, common_1.toPathString)(localVarUrlObj),
367
+ options: localVarRequestOptions,
368
+ };
369
+ }),
370
+ /**
371
+ *
372
+ * @summary GET /v1/topics/:topicKey/subscribers
373
+ * @param {string} key Topic key
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ listTopicSubscribers: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
378
+ // verify required parameter 'key' is not null or undefined
379
+ (0, common_1.assertParamExists)('listTopicSubscribers', 'key', key);
380
+ const localVarPath = `/v1/topics/{key}/subscribers/`
381
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
383
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
384
+ let baseOptions;
385
+ if (configuration) {
386
+ baseOptions = configuration.baseOptions;
387
+ }
388
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
389
+ const localVarHeaderParameter = {};
390
+ const localVarQueryParameter = {};
391
+ // authentication bearer_auth required
392
+ // http bearer authentication required
393
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
394
+ localVarHeaderParameter['Accept'] = 'application/json';
395
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
397
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
398
+ return {
399
+ url: (0, common_1.toPathString)(localVarUrlObj),
400
+ options: localVarRequestOptions,
401
+ };
402
+ }),
403
+ /**
404
+ *
405
+ * @summary GET /v1/topics
406
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
407
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
408
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
409
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ listTopics: (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 = {}) {
414
+ const localVarPath = `/v1/topics/`;
415
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
416
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
417
+ let baseOptions;
418
+ if (configuration) {
419
+ baseOptions = configuration.baseOptions;
420
+ }
421
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
422
+ const localVarHeaderParameter = {};
423
+ const localVarQueryParameter = {};
424
+ // authentication bearer_auth required
425
+ // http bearer authentication required
426
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
427
+ if (limit !== undefined) {
428
+ localVarQueryParameter['limit'] = limit;
429
+ }
430
+ if (offset !== undefined) {
431
+ localVarQueryParameter['offset'] = offset;
432
+ }
433
+ if (q !== undefined) {
434
+ localVarQueryParameter['q'] = q;
435
+ }
436
+ if (filterBy !== undefined) {
437
+ localVarQueryParameter['filter_by'] = filterBy;
438
+ }
439
+ localVarHeaderParameter['Accept'] = 'application/json';
440
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
442
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
443
+ return {
444
+ url: (0, common_1.toPathString)(localVarUrlObj),
445
+ options: localVarRequestOptions,
446
+ };
447
+ }),
448
+ /**
449
+ *
450
+ * @summary POST /v1/topics/:topicKey/subscribers/removal
451
+ * @param {string} key Topic key
452
+ * @param {TopicSubscribers} topicSubscribers
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ removeSubscribers: (key_1, topicSubscribers_1, ...args_1) => __awaiter(this, [key_1, topicSubscribers_1, ...args_1], void 0, function* (key, topicSubscribers, options = {}) {
457
+ // verify required parameter 'key' is not null or undefined
458
+ (0, common_1.assertParamExists)('removeSubscribers', 'key', key);
459
+ // verify required parameter 'topicSubscribers' is not null or undefined
460
+ (0, common_1.assertParamExists)('removeSubscribers', 'topicSubscribers', topicSubscribers);
461
+ const localVarPath = `/v1/topics/{key}/subscribers/removal/`
462
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
464
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
465
+ let baseOptions;
466
+ if (configuration) {
467
+ baseOptions = configuration.baseOptions;
468
+ }
469
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
470
+ const localVarHeaderParameter = {};
471
+ const localVarQueryParameter = {};
472
+ // authentication bearer_auth required
473
+ // http bearer authentication required
474
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
475
+ localVarHeaderParameter['Content-Type'] = 'application/json';
476
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
478
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
479
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(topicSubscribers, localVarRequestOptions, configuration);
480
+ return {
481
+ url: (0, common_1.toPathString)(localVarUrlObj),
482
+ options: localVarRequestOptions,
483
+ };
484
+ }),
485
+ /**
486
+ *
487
+ * @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
488
+ * @param {string} key
489
+ * @param {string} id
490
+ * @param {UpdateSubscriptionMeta} updateSubscriptionMeta
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ updateSubscription: (key_1, id_1, updateSubscriptionMeta_1, ...args_1) => __awaiter(this, [key_1, id_1, updateSubscriptionMeta_1, ...args_1], void 0, function* (key, id, updateSubscriptionMeta, options = {}) {
495
+ // verify required parameter 'key' is not null or undefined
496
+ (0, common_1.assertParamExists)('updateSubscription', 'key', key);
497
+ // verify required parameter 'id' is not null or undefined
498
+ (0, common_1.assertParamExists)('updateSubscription', 'id', id);
499
+ // verify required parameter 'updateSubscriptionMeta' is not null or undefined
500
+ (0, common_1.assertParamExists)('updateSubscription', 'updateSubscriptionMeta', updateSubscriptionMeta);
501
+ const localVarPath = `/v1/topics/{key}/subscriptions/{id}/`
502
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)))
503
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
505
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
506
+ let baseOptions;
507
+ if (configuration) {
508
+ baseOptions = configuration.baseOptions;
509
+ }
510
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
511
+ const localVarHeaderParameter = {};
512
+ const localVarQueryParameter = {};
513
+ // authentication bearer_auth required
514
+ // http bearer authentication required
515
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
516
+ localVarHeaderParameter['Content-Type'] = 'application/json';
517
+ localVarHeaderParameter['Accept'] = 'application/json';
518
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
519
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
520
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
521
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSubscriptionMeta, localVarRequestOptions, configuration);
522
+ return {
523
+ url: (0, common_1.toPathString)(localVarUrlObj),
524
+ options: localVarRequestOptions,
525
+ };
526
+ }),
527
+ /**
528
+ *
529
+ * @summary PATCH /v1/topics/:topicKey
530
+ * @param {string} key Topic key
531
+ * @param {UpdateTopic} updateTopic
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ updateTopic: (key_1, updateTopic_1, ...args_1) => __awaiter(this, [key_1, updateTopic_1, ...args_1], void 0, function* (key, updateTopic, options = {}) {
536
+ // verify required parameter 'key' is not null or undefined
537
+ (0, common_1.assertParamExists)('updateTopic', 'key', key);
538
+ // verify required parameter 'updateTopic' is not null or undefined
539
+ (0, common_1.assertParamExists)('updateTopic', 'updateTopic', updateTopic);
540
+ const localVarPath = `/v1/topics/{key}/`
541
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
543
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
544
+ let baseOptions;
545
+ if (configuration) {
546
+ baseOptions = configuration.baseOptions;
547
+ }
548
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
549
+ const localVarHeaderParameter = {};
550
+ const localVarQueryParameter = {};
551
+ // authentication bearer_auth required
552
+ // http bearer authentication required
553
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
554
+ localVarHeaderParameter['Content-Type'] = 'application/json';
555
+ localVarHeaderParameter['Accept'] = 'application/json';
556
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
557
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
558
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
559
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTopic, localVarRequestOptions, configuration);
560
+ return {
561
+ url: (0, common_1.toPathString)(localVarUrlObj),
562
+ options: localVarRequestOptions,
563
+ };
564
+ }),
565
+ };
566
+ };
567
+ exports.TopicsApiAxiosParamCreator = TopicsApiAxiosParamCreator;
568
+ /**
569
+ * TopicsApi - functional programming interface
570
+ */
571
+ const TopicsApiFp = function (configuration) {
572
+ const localVarAxiosParamCreator = (0, exports.TopicsApiAxiosParamCreator)(configuration);
573
+ return {
574
+ /**
575
+ *
576
+ * @summary POST /v1/topics/:topicKey/subscribers
577
+ * @param {string} key Topic key
578
+ * @param {TopicSubscribers} topicSubscribers
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ addSubscribers(key, topicSubscribers, options) {
583
+ return __awaiter(this, void 0, void 0, function* () {
584
+ var _a, _b, _c;
585
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addSubscribers(key, topicSubscribers, options);
586
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
587
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.addSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
588
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
589
+ });
590
+ },
591
+ /**
592
+ *
593
+ * @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
594
+ * @param {string} key
595
+ * @param {string} subscriberId
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ checkSubscriber(key, subscriberId, options) {
600
+ return __awaiter(this, void 0, void 0, function* () {
601
+ var _a, _b, _c;
602
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkSubscriber(key, subscriberId, options);
603
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
604
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.checkSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
605
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
606
+ });
607
+ },
608
+ /**
609
+ *
610
+ * @summary POST /v1/topics/:key/subscriptions — create subscriptions
611
+ * @param {string} key
612
+ * @param {CreateSubscription} createSubscription
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ createSubscriptions(key, createSubscription, options) {
617
+ return __awaiter(this, void 0, void 0, function* () {
618
+ var _a, _b, _c;
619
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptions(key, createSubscription, options);
620
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
621
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.createSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
622
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
623
+ });
624
+ },
625
+ /**
626
+ *
627
+ * @summary POST /v1/topics
628
+ * @param {CreateTopic} createTopic
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ */
632
+ createTopic(createTopic, options) {
633
+ return __awaiter(this, void 0, void 0, function* () {
634
+ var _a, _b, _c;
635
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTopic(createTopic, options);
636
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
637
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.createTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
638
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
639
+ });
640
+ },
641
+ /**
642
+ *
643
+ * @summary DELETE /v1/topics/:key/subscriptions — bulk delete
644
+ * @param {string} key
645
+ * @param {DeleteSubscription} deleteSubscription
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ */
649
+ deleteSubscriptions(key, deleteSubscription, options) {
650
+ return __awaiter(this, void 0, void 0, function* () {
651
+ var _a, _b, _c;
652
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptions(key, deleteSubscription, options);
653
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
654
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.deleteSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
655
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
656
+ });
657
+ },
658
+ /**
659
+ *
660
+ * @summary DELETE /v1/topics/:topicKey
661
+ * @param {string} key Topic key
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ deleteTopic(key, options) {
666
+ return __awaiter(this, void 0, void 0, function* () {
667
+ var _a, _b, _c;
668
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTopic(key, options);
669
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
670
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.deleteTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
671
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
672
+ });
673
+ },
674
+ /**
675
+ *
676
+ * @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
677
+ * @param {string} key
678
+ * @param {string} id
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ getSubscription(key, id, options) {
683
+ return __awaiter(this, void 0, void 0, function* () {
684
+ var _a, _b, _c;
685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscription(key, id, options);
686
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
687
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.getSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
688
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
689
+ });
690
+ },
691
+ /**
692
+ *
693
+ * @summary GET /v1/topics/:topicKey
694
+ * @param {string} key Topic key
695
+ * @param {*} [options] Override http request option.
696
+ * @throws {RequiredError}
697
+ */
698
+ getTopic(key, options) {
699
+ return __awaiter(this, void 0, void 0, function* () {
700
+ var _a, _b, _c;
701
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopic(key, options);
702
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
703
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.getTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
704
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ });
706
+ },
707
+ /**
708
+ *
709
+ * @summary GET /v1/topics/:key/subscriptions — list subscriptions
710
+ * @param {string} key
711
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
712
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
713
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
714
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
715
+ * @param {*} [options] Override http request option.
716
+ * @throws {RequiredError}
717
+ */
718
+ listSubscriptions(key, limit, offset, q, filterBy, options) {
719
+ return __awaiter(this, void 0, void 0, function* () {
720
+ var _a, _b, _c;
721
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSubscriptions(key, limit, offset, q, filterBy, options);
722
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
723
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.listSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
724
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
725
+ });
726
+ },
727
+ /**
728
+ *
729
+ * @summary GET /v1/topics/:topicKey/subscribers
730
+ * @param {string} key Topic key
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ listTopicSubscribers(key, options) {
735
+ return __awaiter(this, void 0, void 0, function* () {
736
+ var _a, _b, _c;
737
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTopicSubscribers(key, options);
738
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
739
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.listTopicSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
740
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
741
+ });
742
+ },
743
+ /**
744
+ *
745
+ * @summary GET /v1/topics
746
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
747
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
748
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
749
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ listTopics(limit, offset, q, filterBy, options) {
754
+ return __awaiter(this, void 0, void 0, function* () {
755
+ var _a, _b, _c;
756
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTopics(limit, offset, q, filterBy, options);
757
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
758
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.listTopics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
759
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
760
+ });
761
+ },
762
+ /**
763
+ *
764
+ * @summary POST /v1/topics/:topicKey/subscribers/removal
765
+ * @param {string} key Topic key
766
+ * @param {TopicSubscribers} topicSubscribers
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ removeSubscribers(key, topicSubscribers, options) {
771
+ return __awaiter(this, void 0, void 0, function* () {
772
+ var _a, _b, _c;
773
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeSubscribers(key, topicSubscribers, options);
774
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
775
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.removeSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
776
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
777
+ });
778
+ },
779
+ /**
780
+ *
781
+ * @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
782
+ * @param {string} key
783
+ * @param {string} id
784
+ * @param {UpdateSubscriptionMeta} updateSubscriptionMeta
785
+ * @param {*} [options] Override http request option.
786
+ * @throws {RequiredError}
787
+ */
788
+ updateSubscription(key, id, updateSubscriptionMeta, options) {
789
+ return __awaiter(this, void 0, void 0, function* () {
790
+ var _a, _b, _c;
791
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscription(key, id, updateSubscriptionMeta, options);
792
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
793
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.updateSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
794
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
795
+ });
796
+ },
797
+ /**
798
+ *
799
+ * @summary PATCH /v1/topics/:topicKey
800
+ * @param {string} key Topic key
801
+ * @param {UpdateTopic} updateTopic
802
+ * @param {*} [options] Override http request option.
803
+ * @throws {RequiredError}
804
+ */
805
+ updateTopic(key, updateTopic, options) {
806
+ return __awaiter(this, void 0, void 0, function* () {
807
+ var _a, _b, _c;
808
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTopic(key, updateTopic, options);
809
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
810
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.updateTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
811
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
812
+ });
813
+ },
814
+ };
815
+ };
816
+ exports.TopicsApiFp = TopicsApiFp;
817
+ /**
818
+ * TopicsApi - factory interface
819
+ */
820
+ const TopicsApiFactory = function (configuration, basePath, axios) {
821
+ const localVarFp = (0, exports.TopicsApiFp)(configuration);
822
+ return {
823
+ /**
824
+ *
825
+ * @summary POST /v1/topics/:topicKey/subscribers
826
+ * @param {string} key Topic key
827
+ * @param {TopicSubscribers} topicSubscribers
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ */
831
+ addSubscribers(key, topicSubscribers, options) {
832
+ return localVarFp.addSubscribers(key, topicSubscribers, options).then((request) => request(axios, basePath));
833
+ },
834
+ /**
835
+ *
836
+ * @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
837
+ * @param {string} key
838
+ * @param {string} subscriberId
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ checkSubscriber(key, subscriberId, options) {
843
+ return localVarFp.checkSubscriber(key, subscriberId, options).then((request) => request(axios, basePath));
844
+ },
845
+ /**
846
+ *
847
+ * @summary POST /v1/topics/:key/subscriptions — create subscriptions
848
+ * @param {string} key
849
+ * @param {CreateSubscription} createSubscription
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ */
853
+ createSubscriptions(key, createSubscription, options) {
854
+ return localVarFp.createSubscriptions(key, createSubscription, options).then((request) => request(axios, basePath));
855
+ },
856
+ /**
857
+ *
858
+ * @summary POST /v1/topics
859
+ * @param {CreateTopic} createTopic
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ */
863
+ createTopic(createTopic, options) {
864
+ return localVarFp.createTopic(createTopic, options).then((request) => request(axios, basePath));
865
+ },
866
+ /**
867
+ *
868
+ * @summary DELETE /v1/topics/:key/subscriptions — bulk delete
869
+ * @param {string} key
870
+ * @param {DeleteSubscription} deleteSubscription
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ deleteSubscriptions(key, deleteSubscription, options) {
875
+ return localVarFp.deleteSubscriptions(key, deleteSubscription, options).then((request) => request(axios, basePath));
876
+ },
877
+ /**
878
+ *
879
+ * @summary DELETE /v1/topics/:topicKey
880
+ * @param {string} key Topic key
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ */
884
+ deleteTopic(key, options) {
885
+ return localVarFp.deleteTopic(key, options).then((request) => request(axios, basePath));
886
+ },
887
+ /**
888
+ *
889
+ * @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
890
+ * @param {string} key
891
+ * @param {string} id
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ getSubscription(key, id, options) {
896
+ return localVarFp.getSubscription(key, id, options).then((request) => request(axios, basePath));
897
+ },
898
+ /**
899
+ *
900
+ * @summary GET /v1/topics/:topicKey
901
+ * @param {string} key Topic key
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ getTopic(key, options) {
906
+ return localVarFp.getTopic(key, options).then((request) => request(axios, basePath));
907
+ },
908
+ /**
909
+ *
910
+ * @summary GET /v1/topics/:key/subscriptions — list subscriptions
911
+ * @param {string} key
912
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
913
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
914
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
915
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
916
+ * @param {*} [options] Override http request option.
917
+ * @throws {RequiredError}
918
+ */
919
+ listSubscriptions(key, limit, offset, q, filterBy, options) {
920
+ return localVarFp.listSubscriptions(key, limit, offset, q, filterBy, options).then((request) => request(axios, basePath));
921
+ },
922
+ /**
923
+ *
924
+ * @summary GET /v1/topics/:topicKey/subscribers
925
+ * @param {string} key Topic key
926
+ * @param {*} [options] Override http request option.
927
+ * @throws {RequiredError}
928
+ */
929
+ listTopicSubscribers(key, options) {
930
+ return localVarFp.listTopicSubscribers(key, options).then((request) => request(axios, basePath));
931
+ },
932
+ /**
933
+ *
934
+ * @summary GET /v1/topics
935
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
936
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
937
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
938
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ listTopics(limit, offset, q, filterBy, options) {
943
+ return localVarFp.listTopics(limit, offset, q, filterBy, options).then((request) => request(axios, basePath));
944
+ },
945
+ /**
946
+ *
947
+ * @summary POST /v1/topics/:topicKey/subscribers/removal
948
+ * @param {string} key Topic key
949
+ * @param {TopicSubscribers} topicSubscribers
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ removeSubscribers(key, topicSubscribers, options) {
954
+ return localVarFp.removeSubscribers(key, topicSubscribers, options).then((request) => request(axios, basePath));
955
+ },
956
+ /**
957
+ *
958
+ * @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
959
+ * @param {string} key
960
+ * @param {string} id
961
+ * @param {UpdateSubscriptionMeta} updateSubscriptionMeta
962
+ * @param {*} [options] Override http request option.
963
+ * @throws {RequiredError}
964
+ */
965
+ updateSubscription(key, id, updateSubscriptionMeta, options) {
966
+ return localVarFp.updateSubscription(key, id, updateSubscriptionMeta, options).then((request) => request(axios, basePath));
967
+ },
968
+ /**
969
+ *
970
+ * @summary PATCH /v1/topics/:topicKey
971
+ * @param {string} key Topic key
972
+ * @param {UpdateTopic} updateTopic
973
+ * @param {*} [options] Override http request option.
974
+ * @throws {RequiredError}
975
+ */
976
+ updateTopic(key, updateTopic, options) {
977
+ return localVarFp.updateTopic(key, updateTopic, options).then((request) => request(axios, basePath));
978
+ },
979
+ };
980
+ };
981
+ exports.TopicsApiFactory = TopicsApiFactory;
982
+ /**
983
+ * TopicsApi - object-oriented interface
984
+ */
985
+ class TopicsApi extends base_1.BaseAPI {
986
+ /**
987
+ *
988
+ * @summary POST /v1/topics/:topicKey/subscribers
989
+ * @param {string} key Topic key
990
+ * @param {TopicSubscribers} topicSubscribers
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ addSubscribers(key, topicSubscribers, options) {
995
+ return (0, exports.TopicsApiFp)(this.configuration).addSubscribers(key, topicSubscribers, options).then((request) => request(this.axios, this.basePath));
996
+ }
997
+ /**
998
+ *
999
+ * @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
1000
+ * @param {string} key
1001
+ * @param {string} subscriberId
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ */
1005
+ checkSubscriber(key, subscriberId, options) {
1006
+ return (0, exports.TopicsApiFp)(this.configuration).checkSubscriber(key, subscriberId, options).then((request) => request(this.axios, this.basePath));
1007
+ }
1008
+ /**
1009
+ *
1010
+ * @summary POST /v1/topics/:key/subscriptions — create subscriptions
1011
+ * @param {string} key
1012
+ * @param {CreateSubscription} createSubscription
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ */
1016
+ createSubscriptions(key, createSubscription, options) {
1017
+ return (0, exports.TopicsApiFp)(this.configuration).createSubscriptions(key, createSubscription, options).then((request) => request(this.axios, this.basePath));
1018
+ }
1019
+ /**
1020
+ *
1021
+ * @summary POST /v1/topics
1022
+ * @param {CreateTopic} createTopic
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ */
1026
+ createTopic(createTopic, options) {
1027
+ return (0, exports.TopicsApiFp)(this.configuration).createTopic(createTopic, options).then((request) => request(this.axios, this.basePath));
1028
+ }
1029
+ /**
1030
+ *
1031
+ * @summary DELETE /v1/topics/:key/subscriptions — bulk delete
1032
+ * @param {string} key
1033
+ * @param {DeleteSubscription} deleteSubscription
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ */
1037
+ deleteSubscriptions(key, deleteSubscription, options) {
1038
+ return (0, exports.TopicsApiFp)(this.configuration).deleteSubscriptions(key, deleteSubscription, options).then((request) => request(this.axios, this.basePath));
1039
+ }
1040
+ /**
1041
+ *
1042
+ * @summary DELETE /v1/topics/:topicKey
1043
+ * @param {string} key Topic key
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ */
1047
+ deleteTopic(key, options) {
1048
+ return (0, exports.TopicsApiFp)(this.configuration).deleteTopic(key, options).then((request) => request(this.axios, this.basePath));
1049
+ }
1050
+ /**
1051
+ *
1052
+ * @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
1053
+ * @param {string} key
1054
+ * @param {string} id
1055
+ * @param {*} [options] Override http request option.
1056
+ * @throws {RequiredError}
1057
+ */
1058
+ getSubscription(key, id, options) {
1059
+ return (0, exports.TopicsApiFp)(this.configuration).getSubscription(key, id, options).then((request) => request(this.axios, this.basePath));
1060
+ }
1061
+ /**
1062
+ *
1063
+ * @summary GET /v1/topics/:topicKey
1064
+ * @param {string} key Topic key
1065
+ * @param {*} [options] Override http request option.
1066
+ * @throws {RequiredError}
1067
+ */
1068
+ getTopic(key, options) {
1069
+ return (0, exports.TopicsApiFp)(this.configuration).getTopic(key, options).then((request) => request(this.axios, this.basePath));
1070
+ }
1071
+ /**
1072
+ *
1073
+ * @summary GET /v1/topics/:key/subscriptions — list subscriptions
1074
+ * @param {string} key
1075
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
1076
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
1077
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
1078
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ listSubscriptions(key, limit, offset, q, filterBy, options) {
1083
+ return (0, exports.TopicsApiFp)(this.configuration).listSubscriptions(key, limit, offset, q, filterBy, options).then((request) => request(this.axios, this.basePath));
1084
+ }
1085
+ /**
1086
+ *
1087
+ * @summary GET /v1/topics/:topicKey/subscribers
1088
+ * @param {string} key Topic key
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ listTopicSubscribers(key, options) {
1093
+ return (0, exports.TopicsApiFp)(this.configuration).listTopicSubscribers(key, options).then((request) => request(this.axios, this.basePath));
1094
+ }
1095
+ /**
1096
+ *
1097
+ * @summary GET /v1/topics
1098
+ * @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
1099
+ * @param {number | null} [offset] Number of items to skip before returning results (default: 0).
1100
+ * @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
1101
+ * @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ listTopics(limit, offset, q, filterBy, options) {
1106
+ return (0, exports.TopicsApiFp)(this.configuration).listTopics(limit, offset, q, filterBy, options).then((request) => request(this.axios, this.basePath));
1107
+ }
1108
+ /**
1109
+ *
1110
+ * @summary POST /v1/topics/:topicKey/subscribers/removal
1111
+ * @param {string} key Topic key
1112
+ * @param {TopicSubscribers} topicSubscribers
1113
+ * @param {*} [options] Override http request option.
1114
+ * @throws {RequiredError}
1115
+ */
1116
+ removeSubscribers(key, topicSubscribers, options) {
1117
+ return (0, exports.TopicsApiFp)(this.configuration).removeSubscribers(key, topicSubscribers, options).then((request) => request(this.axios, this.basePath));
1118
+ }
1119
+ /**
1120
+ *
1121
+ * @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
1122
+ * @param {string} key
1123
+ * @param {string} id
1124
+ * @param {UpdateSubscriptionMeta} updateSubscriptionMeta
1125
+ * @param {*} [options] Override http request option.
1126
+ * @throws {RequiredError}
1127
+ */
1128
+ updateSubscription(key, id, updateSubscriptionMeta, options) {
1129
+ return (0, exports.TopicsApiFp)(this.configuration).updateSubscription(key, id, updateSubscriptionMeta, options).then((request) => request(this.axios, this.basePath));
1130
+ }
1131
+ /**
1132
+ *
1133
+ * @summary PATCH /v1/topics/:topicKey
1134
+ * @param {string} key Topic key
1135
+ * @param {UpdateTopic} updateTopic
1136
+ * @param {*} [options] Override http request option.
1137
+ * @throws {RequiredError}
1138
+ */
1139
+ updateTopic(key, updateTopic, options) {
1140
+ return (0, exports.TopicsApiFp)(this.configuration).updateTopic(key, updateTopic, options).then((request) => request(this.axios, this.basePath));
1141
+ }
1142
+ }
1143
+ exports.TopicsApi = TopicsApi;