magicbell-js 0.0.4 → 0.2.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 (420) hide show
  1. package/README.md +11 -22
  2. package/dist/commonjs/project-client/http/errors/throwable-error.d.ts +7 -0
  3. package/dist/commonjs/project-client/http/errors/throwable-error.d.ts.map +1 -0
  4. package/dist/commonjs/project-client/http/errors/throwable-error.js +25 -0
  5. package/dist/commonjs/project-client/http/errors/throwable-error.js.map +1 -0
  6. package/dist/commonjs/project-client/http/handlers/hook-handler.d.ts.map +1 -1
  7. package/dist/commonjs/project-client/http/handlers/hook-handler.js +2 -2
  8. package/dist/commonjs/project-client/http/handlers/hook-handler.js.map +1 -1
  9. package/dist/commonjs/project-client/http/transport/types.d.ts +2 -1
  10. package/dist/commonjs/project-client/http/transport/types.d.ts.map +1 -1
  11. package/dist/commonjs/project-client/index.d.ts +0 -6
  12. package/dist/commonjs/project-client/index.d.ts.map +1 -1
  13. package/dist/commonjs/project-client/index.js +2 -28
  14. package/dist/commonjs/project-client/index.js.map +1 -1
  15. package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
  16. package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.d.ts.map +1 -1
  17. package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.js +1 -1
  18. package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.js.map +1 -1
  19. package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
  20. package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
  21. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
  22. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
  23. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js +7 -6
  24. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js.map +1 -1
  25. package/dist/commonjs/project-client/services/broadcasts/models/email.d.ts +3 -3
  26. package/dist/commonjs/project-client/services/broadcasts/models/in-app.d.ts +3 -3
  27. package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts +0 -2
  28. package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts.map +1 -1
  29. package/dist/commonjs/project-client/services/broadcasts/models/index.js.map +1 -1
  30. package/dist/commonjs/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
  31. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
  32. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
  33. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js +0 -12
  34. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
  35. package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts +200 -441
  36. package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
  37. package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts +102 -60
  38. package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
  39. package/dist/commonjs/project-client/services/broadcasts/models/providers.js +35 -20
  40. package/dist/commonjs/project-client/services/broadcasts/models/providers.js.map +1 -1
  41. package/dist/commonjs/project-client/services/broadcasts/models/sms.d.ts +3 -3
  42. package/dist/commonjs/project-client/services/channels/channels-service.d.ts +48 -48
  43. package/dist/commonjs/project-client/services/channels/channels-service.d.ts.map +1 -1
  44. package/dist/commonjs/project-client/services/channels/channels-service.js +59 -59
  45. package/dist/commonjs/project-client/services/channels/channels-service.js.map +1 -1
  46. package/dist/commonjs/project-client/services/channels/models/discard-result.d.ts +8 -8
  47. package/dist/commonjs/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  48. package/dist/commonjs/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
  49. package/dist/commonjs/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
  50. package/dist/commonjs/project-client/services/channels/models/slack-token.d.ts +8 -8
  51. package/dist/commonjs/project-client/services/channels/request-params.d.ts +7 -10
  52. package/dist/commonjs/project-client/services/channels/request-params.d.ts.map +1 -1
  53. package/dist/commonjs/project-client/services/common/index.d.ts +1 -0
  54. package/dist/commonjs/project-client/services/common/index.d.ts.map +1 -1
  55. package/dist/{esm/project-client/services/users/models → commonjs/project-client/services/common}/user.d.ts +24 -24
  56. package/dist/commonjs/project-client/services/common/user.d.ts.map +1 -0
  57. package/dist/commonjs/project-client/services/common/user.js.map +1 -0
  58. package/dist/commonjs/project-client/services/events/events-service.d.ts +3 -3
  59. package/dist/commonjs/project-client/services/events/events-service.d.ts.map +1 -1
  60. package/dist/commonjs/project-client/services/events/events-service.js +6 -6
  61. package/dist/commonjs/project-client/services/events/events-service.js.map +1 -1
  62. package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +97 -193
  63. package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
  64. package/dist/commonjs/project-client/services/integrations/integrations-service.js +128 -528
  65. package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
  66. package/dist/commonjs/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
  67. package/dist/commonjs/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  68. package/dist/commonjs/project-client/services/integrations/models/inbox-config.d.ts +140 -140
  69. package/dist/commonjs/project-client/services/integrations/models/theme.d.ts +56 -56
  70. package/dist/commonjs/project-client/services/integrations/request-params.d.ts +48 -0
  71. package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
  72. package/dist/commonjs/project-client/services/users/models/index.d.ts +0 -1
  73. package/dist/commonjs/project-client/services/users/models/index.d.ts.map +1 -1
  74. package/dist/commonjs/project-client/services/users/models/user-collection.d.ts +42 -42
  75. package/dist/commonjs/project-client/services/users/models/user-collection.js +1 -1
  76. package/dist/commonjs/project-client/services/users/models/user-collection.js.map +1 -1
  77. package/dist/commonjs/project-client/services/users/users-service.d.ts +6 -6
  78. package/dist/commonjs/project-client/services/users/users-service.d.ts.map +1 -1
  79. package/dist/commonjs/project-client/services/users/users-service.js +8 -8
  80. package/dist/commonjs/project-client/services/users/users-service.js.map +1 -1
  81. package/dist/commonjs/user-client/http/errors/throwable-error.d.ts +7 -0
  82. package/dist/commonjs/user-client/http/errors/throwable-error.d.ts.map +1 -0
  83. package/dist/commonjs/user-client/http/errors/throwable-error.js +25 -0
  84. package/dist/commonjs/user-client/http/errors/throwable-error.js.map +1 -0
  85. package/dist/commonjs/user-client/http/handlers/hook-handler.d.ts.map +1 -1
  86. package/dist/commonjs/user-client/http/handlers/hook-handler.js +2 -2
  87. package/dist/commonjs/user-client/http/handlers/hook-handler.js.map +1 -1
  88. package/dist/commonjs/user-client/http/transport/types.d.ts +2 -1
  89. package/dist/commonjs/user-client/http/transport/types.d.ts.map +1 -1
  90. package/dist/commonjs/user-client/services/channels/channels-service.d.ts +61 -61
  91. package/dist/commonjs/user-client/services/channels/channels-service.d.ts.map +1 -1
  92. package/dist/commonjs/user-client/services/channels/channels-service.js +74 -74
  93. package/dist/commonjs/user-client/services/channels/channels-service.js.map +1 -1
  94. package/dist/commonjs/user-client/services/channels/models/discard-result.d.ts +8 -8
  95. package/dist/commonjs/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  96. package/dist/commonjs/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
  97. package/dist/commonjs/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
  98. package/dist/commonjs/user-client/services/channels/models/slack-token.d.ts +8 -8
  99. package/dist/commonjs/user-client/services/channels/request-params.d.ts +7 -7
  100. package/dist/commonjs/user-client/services/channels/request-params.d.ts.map +1 -1
  101. package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +12 -12
  102. package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts.map +1 -1
  103. package/dist/commonjs/user-client/services/integrations/integrations-service.js +20 -20
  104. package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
  105. package/dist/commonjs/user-client/services/integrations/models/authed-user.d.ts +8 -8
  106. package/dist/commonjs/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  107. package/dist/commonjs/user-client/services/integrations/models/slack-installation.d.ts +57 -57
  108. package/dist/commonjs/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
  109. package/dist/commonjs/user-client/services/integrations/models/theme.d.ts +56 -56
  110. package/dist/commonjs/user-client/services/notifications/models/notification-collection.d.ts +56 -56
  111. package/dist/commonjs/user-client/services/notifications/models/notification.d.ts +32 -32
  112. package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts +27 -2
  113. package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts.map +1 -1
  114. package/dist/commonjs/user-client/services/notifications/notifications-service.js +107 -1
  115. package/dist/commonjs/user-client/services/notifications/notifications-service.js.map +1 -1
  116. package/dist/commonjs/user-client/services/notifications/request-params.d.ts +9 -0
  117. package/dist/commonjs/user-client/services/notifications/request-params.d.ts.map +1 -1
  118. package/dist/esm/project-client/http/errors/throwable-error.d.ts +7 -0
  119. package/dist/esm/project-client/http/errors/throwable-error.d.ts.map +1 -0
  120. package/dist/esm/project-client/http/errors/throwable-error.js +21 -0
  121. package/dist/esm/project-client/http/errors/throwable-error.js.map +1 -0
  122. package/dist/esm/project-client/http/handlers/hook-handler.d.ts.map +1 -1
  123. package/dist/esm/project-client/http/handlers/hook-handler.js +2 -2
  124. package/dist/esm/project-client/http/handlers/hook-handler.js.map +1 -1
  125. package/dist/esm/project-client/http/transport/types.d.ts +2 -1
  126. package/dist/esm/project-client/http/transport/types.d.ts.map +1 -1
  127. package/dist/esm/project-client/index.d.ts +0 -6
  128. package/dist/esm/project-client/index.d.ts.map +1 -1
  129. package/dist/esm/project-client/index.js +0 -26
  130. package/dist/esm/project-client/index.js.map +1 -1
  131. package/dist/esm/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
  132. package/dist/esm/project-client/services/broadcasts/broadcasts-service.d.ts.map +1 -1
  133. package/dist/esm/project-client/services/broadcasts/broadcasts-service.js +1 -1
  134. package/dist/esm/project-client/services/broadcasts/broadcasts-service.js.map +1 -1
  135. package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
  136. package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
  137. package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
  138. package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
  139. package/dist/esm/project-client/services/broadcasts/models/broadcast.js +7 -6
  140. package/dist/esm/project-client/services/broadcasts/models/broadcast.js.map +1 -1
  141. package/dist/esm/project-client/services/broadcasts/models/email.d.ts +3 -3
  142. package/dist/esm/project-client/services/broadcasts/models/in-app.d.ts +3 -3
  143. package/dist/esm/project-client/services/broadcasts/models/index.d.ts +0 -2
  144. package/dist/esm/project-client/services/broadcasts/models/index.d.ts.map +1 -1
  145. package/dist/esm/project-client/services/broadcasts/models/index.js.map +1 -1
  146. package/dist/esm/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
  147. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
  148. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
  149. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js +0 -12
  150. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
  151. package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts +200 -441
  152. package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
  153. package/dist/esm/project-client/services/broadcasts/models/providers.d.ts +102 -60
  154. package/dist/esm/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
  155. package/dist/esm/project-client/services/broadcasts/models/providers.js +35 -20
  156. package/dist/esm/project-client/services/broadcasts/models/providers.js.map +1 -1
  157. package/dist/esm/project-client/services/broadcasts/models/sms.d.ts +3 -3
  158. package/dist/esm/project-client/services/channels/channels-service.d.ts +48 -48
  159. package/dist/esm/project-client/services/channels/channels-service.d.ts.map +1 -1
  160. package/dist/esm/project-client/services/channels/channels-service.js +59 -59
  161. package/dist/esm/project-client/services/channels/channels-service.js.map +1 -1
  162. package/dist/esm/project-client/services/channels/models/discard-result.d.ts +8 -8
  163. package/dist/esm/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  164. package/dist/esm/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
  165. package/dist/esm/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
  166. package/dist/esm/project-client/services/channels/models/slack-token.d.ts +8 -8
  167. package/dist/esm/project-client/services/channels/request-params.d.ts +7 -10
  168. package/dist/esm/project-client/services/channels/request-params.d.ts.map +1 -1
  169. package/dist/esm/project-client/services/common/index.d.ts +1 -0
  170. package/dist/esm/project-client/services/common/index.d.ts.map +1 -1
  171. package/dist/{commonjs/project-client/services/users/models → esm/project-client/services/common}/user.d.ts +24 -24
  172. package/dist/esm/project-client/services/common/user.d.ts.map +1 -0
  173. package/dist/esm/project-client/services/common/user.js.map +1 -0
  174. package/dist/esm/project-client/services/events/events-service.d.ts +3 -3
  175. package/dist/esm/project-client/services/events/events-service.d.ts.map +1 -1
  176. package/dist/esm/project-client/services/events/events-service.js +6 -6
  177. package/dist/esm/project-client/services/events/events-service.js.map +1 -1
  178. package/dist/esm/project-client/services/integrations/integrations-service.d.ts +97 -193
  179. package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
  180. package/dist/esm/project-client/services/integrations/integrations-service.js +128 -528
  181. package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
  182. package/dist/esm/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
  183. package/dist/esm/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  184. package/dist/esm/project-client/services/integrations/models/inbox-config.d.ts +140 -140
  185. package/dist/esm/project-client/services/integrations/models/theme.d.ts +56 -56
  186. package/dist/esm/project-client/services/integrations/request-params.d.ts +48 -0
  187. package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
  188. package/dist/esm/project-client/services/users/models/index.d.ts +0 -1
  189. package/dist/esm/project-client/services/users/models/index.d.ts.map +1 -1
  190. package/dist/esm/project-client/services/users/models/user-collection.d.ts +42 -42
  191. package/dist/esm/project-client/services/users/models/user-collection.js +1 -1
  192. package/dist/esm/project-client/services/users/models/user-collection.js.map +1 -1
  193. package/dist/esm/project-client/services/users/users-service.d.ts +6 -6
  194. package/dist/esm/project-client/services/users/users-service.d.ts.map +1 -1
  195. package/dist/esm/project-client/services/users/users-service.js +8 -8
  196. package/dist/esm/project-client/services/users/users-service.js.map +1 -1
  197. package/dist/esm/user-client/http/errors/throwable-error.d.ts +7 -0
  198. package/dist/esm/user-client/http/errors/throwable-error.d.ts.map +1 -0
  199. package/dist/esm/user-client/http/errors/throwable-error.js +21 -0
  200. package/dist/esm/user-client/http/errors/throwable-error.js.map +1 -0
  201. package/dist/esm/user-client/http/handlers/hook-handler.d.ts.map +1 -1
  202. package/dist/esm/user-client/http/handlers/hook-handler.js +2 -2
  203. package/dist/esm/user-client/http/handlers/hook-handler.js.map +1 -1
  204. package/dist/esm/user-client/http/transport/types.d.ts +2 -1
  205. package/dist/esm/user-client/http/transport/types.d.ts.map +1 -1
  206. package/dist/esm/user-client/services/channels/channels-service.d.ts +61 -61
  207. package/dist/esm/user-client/services/channels/channels-service.d.ts.map +1 -1
  208. package/dist/esm/user-client/services/channels/channels-service.js +74 -74
  209. package/dist/esm/user-client/services/channels/channels-service.js.map +1 -1
  210. package/dist/esm/user-client/services/channels/models/discard-result.d.ts +8 -8
  211. package/dist/esm/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  212. package/dist/esm/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
  213. package/dist/esm/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
  214. package/dist/esm/user-client/services/channels/models/slack-token.d.ts +8 -8
  215. package/dist/esm/user-client/services/channels/request-params.d.ts +7 -7
  216. package/dist/esm/user-client/services/channels/request-params.d.ts.map +1 -1
  217. package/dist/esm/user-client/services/integrations/integrations-service.d.ts +12 -12
  218. package/dist/esm/user-client/services/integrations/integrations-service.d.ts.map +1 -1
  219. package/dist/esm/user-client/services/integrations/integrations-service.js +20 -20
  220. package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
  221. package/dist/esm/user-client/services/integrations/models/authed-user.d.ts +8 -8
  222. package/dist/esm/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  223. package/dist/esm/user-client/services/integrations/models/slack-installation.d.ts +57 -57
  224. package/dist/esm/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
  225. package/dist/esm/user-client/services/integrations/models/theme.d.ts +56 -56
  226. package/dist/esm/user-client/services/notifications/models/notification-collection.d.ts +56 -56
  227. package/dist/esm/user-client/services/notifications/models/notification.d.ts +32 -32
  228. package/dist/esm/user-client/services/notifications/notifications-service.d.ts +27 -2
  229. package/dist/esm/user-client/services/notifications/notifications-service.d.ts.map +1 -1
  230. package/dist/esm/user-client/services/notifications/notifications-service.js +107 -1
  231. package/dist/esm/user-client/services/notifications/notifications-service.js.map +1 -1
  232. package/dist/esm/user-client/services/notifications/request-params.d.ts +9 -0
  233. package/dist/esm/user-client/services/notifications/request-params.d.ts.map +1 -1
  234. package/package.json +3 -2
  235. package/src/project-client/http/errors/throwable-error.ts +9 -0
  236. package/src/project-client/http/handlers/hook-handler.ts +5 -3
  237. package/src/project-client/http/transport/types.ts +2 -1
  238. package/src/project-client/index.ts +0 -20
  239. package/src/project-client/services/broadcasts/broadcasts-service.ts +2 -1
  240. package/src/project-client/services/broadcasts/models/broadcast.ts +8 -7
  241. package/src/project-client/services/broadcasts/models/index.ts +0 -2
  242. package/src/project-client/services/broadcasts/models/overrides-channels.ts +0 -14
  243. package/src/project-client/services/broadcasts/models/providers.ts +38 -20
  244. package/src/project-client/services/channels/channels-service.ts +75 -78
  245. package/src/project-client/services/channels/request-params.ts +7 -11
  246. package/src/project-client/services/common/index.ts +1 -0
  247. package/src/project-client/services/events/events-service.ts +7 -6
  248. package/src/project-client/services/integrations/integrations-service.ts +196 -545
  249. package/src/project-client/services/integrations/request-params.ts +64 -0
  250. package/src/project-client/services/users/models/index.ts +0 -1
  251. package/src/project-client/services/users/models/user-collection.ts +1 -1
  252. package/src/project-client/services/users/users-service.ts +9 -8
  253. package/src/user-client/http/errors/throwable-error.ts +9 -0
  254. package/src/user-client/http/handlers/hook-handler.ts +5 -3
  255. package/src/user-client/http/transport/types.ts +2 -1
  256. package/src/user-client/services/channels/channels-service.ts +89 -106
  257. package/src/user-client/services/channels/request-params.ts +7 -7
  258. package/src/user-client/services/integrations/integrations-service.ts +21 -20
  259. package/src/user-client/services/notifications/notifications-service.ts +122 -2
  260. package/src/user-client/services/notifications/request-params.ts +11 -0
  261. package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts +0 -76
  262. package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
  263. package/dist/commonjs/project-client/services/broadcasts/models/slack.js +0 -49
  264. package/dist/commonjs/project-client/services/broadcasts/models/slack.js.map +0 -1
  265. package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts +0 -76
  266. package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
  267. package/dist/commonjs/project-client/services/broadcasts/models/web-push.js +0 -49
  268. package/dist/commonjs/project-client/services/broadcasts/models/web-push.js.map +0 -1
  269. package/dist/commonjs/project-client/services/jwt/index.d.ts +0 -3
  270. package/dist/commonjs/project-client/services/jwt/index.d.ts.map +0 -1
  271. package/dist/commonjs/project-client/services/jwt/index.js +0 -8
  272. package/dist/commonjs/project-client/services/jwt/index.js.map +0 -1
  273. package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts +0 -56
  274. package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts.map +0 -1
  275. package/dist/commonjs/project-client/services/jwt/jwt-service.js +0 -216
  276. package/dist/commonjs/project-client/services/jwt/jwt-service.js.map +0 -1
  277. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
  278. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
  279. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js +0 -46
  280. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js.map +0 -1
  281. package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts +0 -104
  282. package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts.map +0 -1
  283. package/dist/commonjs/project-client/services/jwt/models/access-token.js +0 -59
  284. package/dist/commonjs/project-client/services/jwt/models/access-token.js.map +0 -1
  285. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
  286. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
  287. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js +0 -44
  288. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
  289. package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts +0 -90
  290. package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
  291. package/dist/commonjs/project-client/services/jwt/models/create-token-response.js +0 -54
  292. package/dist/commonjs/project-client/services/jwt/models/create-token-response.js.map +0 -1
  293. package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.d.ts +0 -90
  294. package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.d.ts.map +0 -1
  295. package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.js +0 -54
  296. package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.js.map +0 -1
  297. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
  298. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
  299. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js +0 -44
  300. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js.map +0 -1
  301. package/dist/commonjs/project-client/services/jwt/models/index.d.ts +0 -7
  302. package/dist/commonjs/project-client/services/jwt/models/index.d.ts.map +0 -1
  303. package/dist/commonjs/project-client/services/jwt/models/index.js +0 -3
  304. package/dist/commonjs/project-client/services/jwt/models/index.js.map +0 -1
  305. package/dist/commonjs/project-client/services/jwt/request-params.d.ts +0 -11
  306. package/dist/commonjs/project-client/services/jwt/request-params.d.ts.map +0 -1
  307. package/dist/commonjs/project-client/services/jwt/request-params.js +0 -3
  308. package/dist/commonjs/project-client/services/jwt/request-params.js.map +0 -1
  309. package/dist/commonjs/project-client/services/notifications/index.d.ts +0 -3
  310. package/dist/commonjs/project-client/services/notifications/index.d.ts.map +0 -1
  311. package/dist/commonjs/project-client/services/notifications/index.js +0 -8
  312. package/dist/commonjs/project-client/services/notifications/index.js.map +0 -1
  313. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
  314. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
  315. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js +0 -46
  316. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
  317. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
  318. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
  319. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js +0 -79
  320. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js.map +0 -1
  321. package/dist/commonjs/project-client/services/notifications/models/index.d.ts +0 -3
  322. package/dist/commonjs/project-client/services/notifications/models/index.d.ts.map +0 -1
  323. package/dist/commonjs/project-client/services/notifications/models/index.js +0 -3
  324. package/dist/commonjs/project-client/services/notifications/models/index.js.map +0 -1
  325. package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts +0 -13
  326. package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts.map +0 -1
  327. package/dist/commonjs/project-client/services/notifications/notifications-service.js +0 -43
  328. package/dist/commonjs/project-client/services/notifications/notifications-service.js.map +0 -1
  329. package/dist/commonjs/project-client/services/users/models/user.d.ts.map +0 -1
  330. package/dist/commonjs/project-client/services/users/models/user.js.map +0 -1
  331. package/dist/esm/project-client/services/broadcasts/models/slack.d.ts +0 -76
  332. package/dist/esm/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
  333. package/dist/esm/project-client/services/broadcasts/models/slack.js +0 -46
  334. package/dist/esm/project-client/services/broadcasts/models/slack.js.map +0 -1
  335. package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts +0 -76
  336. package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
  337. package/dist/esm/project-client/services/broadcasts/models/web-push.js +0 -46
  338. package/dist/esm/project-client/services/broadcasts/models/web-push.js.map +0 -1
  339. package/dist/esm/project-client/services/jwt/index.d.ts +0 -3
  340. package/dist/esm/project-client/services/jwt/index.d.ts.map +0 -1
  341. package/dist/esm/project-client/services/jwt/index.js +0 -3
  342. package/dist/esm/project-client/services/jwt/index.js.map +0 -1
  343. package/dist/esm/project-client/services/jwt/jwt-service.d.ts +0 -56
  344. package/dist/esm/project-client/services/jwt/jwt-service.d.ts.map +0 -1
  345. package/dist/esm/project-client/services/jwt/jwt-service.js +0 -212
  346. package/dist/esm/project-client/services/jwt/jwt-service.js.map +0 -1
  347. package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
  348. package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
  349. package/dist/esm/project-client/services/jwt/models/access-token-collection.js +0 -43
  350. package/dist/esm/project-client/services/jwt/models/access-token-collection.js.map +0 -1
  351. package/dist/esm/project-client/services/jwt/models/access-token.d.ts +0 -104
  352. package/dist/esm/project-client/services/jwt/models/access-token.d.ts.map +0 -1
  353. package/dist/esm/project-client/services/jwt/models/access-token.js +0 -56
  354. package/dist/esm/project-client/services/jwt/models/access-token.js.map +0 -1
  355. package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
  356. package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
  357. package/dist/esm/project-client/services/jwt/models/create-project-token-request.js +0 -41
  358. package/dist/esm/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
  359. package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts +0 -90
  360. package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
  361. package/dist/esm/project-client/services/jwt/models/create-token-response.js +0 -51
  362. package/dist/esm/project-client/services/jwt/models/create-token-response.js.map +0 -1
  363. package/dist/esm/project-client/services/jwt/models/create-user-token-request.d.ts +0 -90
  364. package/dist/esm/project-client/services/jwt/models/create-user-token-request.d.ts.map +0 -1
  365. package/dist/esm/project-client/services/jwt/models/create-user-token-request.js +0 -51
  366. package/dist/esm/project-client/services/jwt/models/create-user-token-request.js.map +0 -1
  367. package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
  368. package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
  369. package/dist/esm/project-client/services/jwt/models/discard-token-response.js +0 -41
  370. package/dist/esm/project-client/services/jwt/models/discard-token-response.js.map +0 -1
  371. package/dist/esm/project-client/services/jwt/models/index.d.ts +0 -7
  372. package/dist/esm/project-client/services/jwt/models/index.d.ts.map +0 -1
  373. package/dist/esm/project-client/services/jwt/models/index.js +0 -2
  374. package/dist/esm/project-client/services/jwt/models/index.js.map +0 -1
  375. package/dist/esm/project-client/services/jwt/request-params.d.ts +0 -11
  376. package/dist/esm/project-client/services/jwt/request-params.d.ts.map +0 -1
  377. package/dist/esm/project-client/services/jwt/request-params.js +0 -2
  378. package/dist/esm/project-client/services/jwt/request-params.js.map +0 -1
  379. package/dist/esm/project-client/services/notifications/index.d.ts +0 -3
  380. package/dist/esm/project-client/services/notifications/index.d.ts.map +0 -1
  381. package/dist/esm/project-client/services/notifications/index.js +0 -3
  382. package/dist/esm/project-client/services/notifications/index.js.map +0 -1
  383. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
  384. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
  385. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js +0 -43
  386. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
  387. package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
  388. package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
  389. package/dist/esm/project-client/services/notifications/models/delivery-plan.js +0 -76
  390. package/dist/esm/project-client/services/notifications/models/delivery-plan.js.map +0 -1
  391. package/dist/esm/project-client/services/notifications/models/index.d.ts +0 -3
  392. package/dist/esm/project-client/services/notifications/models/index.d.ts.map +0 -1
  393. package/dist/esm/project-client/services/notifications/models/index.js +0 -2
  394. package/dist/esm/project-client/services/notifications/models/index.js.map +0 -1
  395. package/dist/esm/project-client/services/notifications/notifications-service.d.ts +0 -13
  396. package/dist/esm/project-client/services/notifications/notifications-service.d.ts.map +0 -1
  397. package/dist/esm/project-client/services/notifications/notifications-service.js +0 -39
  398. package/dist/esm/project-client/services/notifications/notifications-service.js.map +0 -1
  399. package/dist/esm/project-client/services/users/models/user.d.ts.map +0 -1
  400. package/dist/esm/project-client/services/users/models/user.js.map +0 -1
  401. package/src/project-client/services/broadcasts/models/slack.ts +0 -57
  402. package/src/project-client/services/broadcasts/models/web-push.ts +0 -57
  403. package/src/project-client/services/jwt/index.ts +0 -2
  404. package/src/project-client/services/jwt/jwt-service.ts +0 -233
  405. package/src/project-client/services/jwt/models/access-token-collection.ts +0 -54
  406. package/src/project-client/services/jwt/models/access-token.ts +0 -69
  407. package/src/project-client/services/jwt/models/create-project-token-request.ts +0 -51
  408. package/src/project-client/services/jwt/models/create-token-response.ts +0 -63
  409. package/src/project-client/services/jwt/models/create-user-token-request.ts +0 -63
  410. package/src/project-client/services/jwt/models/discard-token-response.ts +0 -51
  411. package/src/project-client/services/jwt/models/index.ts +0 -6
  412. package/src/project-client/services/jwt/request-params.ts +0 -11
  413. package/src/project-client/services/notifications/index.ts +0 -2
  414. package/src/project-client/services/notifications/models/delivery-plan-collection.ts +0 -54
  415. package/src/project-client/services/notifications/models/delivery-plan.ts +0 -93
  416. package/src/project-client/services/notifications/models/index.ts +0 -2
  417. package/src/project-client/services/notifications/notifications-service.ts +0 -44
  418. /package/dist/commonjs/project-client/services/{users/models → common}/user.js +0 -0
  419. /package/dist/esm/project-client/services/{users/models → common}/user.js +0 -0
  420. /package/src/project-client/services/{users/models → common}/user.ts +0 -0
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  import { Environment } from '../../http/environment.js';
4
+ import { ThrowableError } from '../../http/errors/throwable-error.js';
4
5
  import { SerializationStyle } from '../../http/serialization/base-serializer.js';
5
6
  import { RequestBuilder } from '../../http/transport/request-builder.js';
6
7
  import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
@@ -29,33 +30,31 @@ import { TeamsTokenCollection, teamsTokenCollectionResponse } from './models/tea
29
30
  import { WebPushToken, webPushTokenResponse } from './models/web-push-token.js';
30
31
  import { WebPushTokenCollection, webPushTokenCollectionResponse } from './models/web-push-token-collection.js';
31
32
  import {
32
- GetDeliveryconfigParams,
33
- GetInAppInboxUserTokensParams,
34
- GetMobilePushApnsUserTokensParams,
35
- GetMobilePushExpoUserTokensParams,
36
- GetMobilePushFcmUserTokensParams,
37
- GetSlackUserTokensParams,
38
- GetTeamsUserTokensParams,
39
- GetWebPushUserTokensParams,
33
+ ListUserApnsTokensParams,
34
+ ListUserExpoTokensParams,
35
+ ListUserFcmTokensParams,
36
+ ListUserInboxTokensParams,
37
+ ListUserSlackTokensParams,
38
+ ListUserTeamsTokensParams,
39
+ ListUserWebPushTokensParams,
40
40
  } from './request-params.js';
41
41
 
42
42
  export class ChannelsService extends BaseService {
43
43
  /**
44
- *
45
- * @param {string} [params.key] -
44
+ * Save the channels configuration for a given key.
46
45
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
47
46
  * @returns {Promise<HttpResponse<CategoryDeliveryConfig>>} OK
48
47
  */
49
- async getDeliveryconfig(
50
- params?: GetDeliveryconfigParams,
48
+ async saveChannelsConfig(
49
+ body: CategoryDeliveryConfig,
51
50
  requestConfig?: RequestConfig,
52
51
  ): Promise<HttpResponse<CategoryDeliveryConfig>> {
53
52
  const request = new RequestBuilder()
54
53
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
55
54
  .setConfig(this.config)
56
- .setMethod('GET')
57
- .setPath('/channels/deliveryconfig')
58
- .setRequestSchema(z.any())
55
+ .setMethod('PUT')
56
+ .setPath('/channels')
57
+ .setRequestSchema(categoryDeliveryConfigRequest)
59
58
  .addAccessTokenAuth(this.config.token, 'Bearer')
60
59
  .setRequestContentType(ContentType.Json)
61
60
  .addResponse({
@@ -66,29 +65,25 @@ export class ChannelsService extends BaseService {
66
65
  .setRetryAttempts(this.config, requestConfig)
67
66
  .setRetryDelayMs(this.config, requestConfig)
68
67
  .setResponseValidation(this.config, requestConfig)
69
- .addQueryParam({
70
- key: 'key',
71
- value: params?.key,
72
- })
68
+ .addHeaderParam({ key: 'Content-Type', value: 'application/json' })
69
+ .addBody(body)
73
70
  .build();
74
71
  return this.client.call<CategoryDeliveryConfig>(request);
75
72
  }
76
73
 
77
74
  /**
78
- *
75
+ * Fetches the channels config for a given key.
76
+ * @param {string} key -
79
77
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
80
78
  * @returns {Promise<HttpResponse<CategoryDeliveryConfig>>} OK
81
79
  */
82
- async saveDeliveryconfig(
83
- body: CategoryDeliveryConfig,
84
- requestConfig?: RequestConfig,
85
- ): Promise<HttpResponse<CategoryDeliveryConfig>> {
80
+ async fetchChannelsConfig(key: string, requestConfig?: RequestConfig): Promise<HttpResponse<CategoryDeliveryConfig>> {
86
81
  const request = new RequestBuilder()
87
82
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
88
83
  .setConfig(this.config)
89
- .setMethod('PUT')
90
- .setPath('/channels/deliveryconfig')
91
- .setRequestSchema(categoryDeliveryConfigRequest)
84
+ .setMethod('GET')
85
+ .setPath('/channels/{key}')
86
+ .setRequestSchema(z.any())
92
87
  .addAccessTokenAuth(this.config.token, 'Bearer')
93
88
  .setRequestContentType(ContentType.Json)
94
89
  .addResponse({
@@ -99,14 +94,16 @@ export class ChannelsService extends BaseService {
99
94
  .setRetryAttempts(this.config, requestConfig)
100
95
  .setRetryDelayMs(this.config, requestConfig)
101
96
  .setResponseValidation(this.config, requestConfig)
102
- .addHeaderParam({ key: 'Content-Type', value: 'application/json' })
103
- .addBody(body)
97
+ .addPathParam({
98
+ key: 'key',
99
+ value: key,
100
+ })
104
101
  .build();
105
102
  return this.client.call<CategoryDeliveryConfig>(request);
106
103
  }
107
104
 
108
105
  /**
109
- * Lists all in_app tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
106
+ * Lists all Inbox tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
110
107
  * @param {string} userId -
111
108
  * @param {number} [params.limit] -
112
109
  * @param {string} [params.startingAfter] -
@@ -114,9 +111,9 @@ export class ChannelsService extends BaseService {
114
111
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
115
112
  * @returns {Promise<HttpResponse<InboxTokenResponseCollection>>} OK
116
113
  */
117
- async getInAppInboxUserTokens(
114
+ async listUserInboxTokens(
118
115
  userId: string,
119
- params?: GetInAppInboxUserTokensParams,
116
+ params?: ListUserInboxTokensParams,
120
117
  requestConfig?: RequestConfig,
121
118
  ): Promise<HttpResponse<InboxTokenResponseCollection>> {
122
119
  const request = new RequestBuilder()
@@ -156,13 +153,13 @@ export class ChannelsService extends BaseService {
156
153
  }
157
154
 
158
155
  /**
159
- * Retrieves a specific in_app token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
156
+ * Fetches a specific Inbox token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
160
157
  * @param {string} userId -
161
158
  * @param {string} tokenId -
162
159
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
163
160
  * @returns {Promise<HttpResponse<InboxTokenResponse>>} OK
164
161
  */
165
- async getInAppInboxUserToken(
162
+ async fetchUserInboxToken(
166
163
  userId: string,
167
164
  tokenId: string,
168
165
  requestConfig?: RequestConfig,
@@ -196,13 +193,13 @@ export class ChannelsService extends BaseService {
196
193
  }
197
194
 
198
195
  /**
199
- * Revokes a specific user's in_app token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
196
+ * Deletes a specific user's Inbox token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
200
197
  * @param {string} userId -
201
198
  * @param {string} tokenId -
202
199
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
203
200
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
204
201
  */
205
- async discardInAppInboxUserToken(
202
+ async deleteUserInboxToken(
206
203
  userId: string,
207
204
  tokenId: string,
208
205
  requestConfig?: RequestConfig,
@@ -236,7 +233,7 @@ export class ChannelsService extends BaseService {
236
233
  }
237
234
 
238
235
  /**
239
- * Lists all mobile_push tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
236
+ * Lists all APNs tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
240
237
  * @param {string} userId -
241
238
  * @param {number} [params.limit] -
242
239
  * @param {string} [params.startingAfter] -
@@ -244,9 +241,9 @@ export class ChannelsService extends BaseService {
244
241
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
245
242
  * @returns {Promise<HttpResponse<ApnsTokenCollection>>} OK
246
243
  */
247
- async getMobilePushApnsUserTokens(
244
+ async listUserApnsTokens(
248
245
  userId: string,
249
- params?: GetMobilePushApnsUserTokensParams,
246
+ params?: ListUserApnsTokensParams,
250
247
  requestConfig?: RequestConfig,
251
248
  ): Promise<HttpResponse<ApnsTokenCollection>> {
252
249
  const request = new RequestBuilder()
@@ -286,13 +283,13 @@ export class ChannelsService extends BaseService {
286
283
  }
287
284
 
288
285
  /**
289
- * Retrieves a specific mobile_push token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
286
+ * Fetches a specific APNs token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
290
287
  * @param {string} userId -
291
288
  * @param {string} tokenId -
292
289
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
293
290
  * @returns {Promise<HttpResponse<ApnsToken>>} OK
294
291
  */
295
- async getMobilePushApnsUserToken(
292
+ async fetchUserApnsToken(
296
293
  userId: string,
297
294
  tokenId: string,
298
295
  requestConfig?: RequestConfig,
@@ -326,13 +323,13 @@ export class ChannelsService extends BaseService {
326
323
  }
327
324
 
328
325
  /**
329
- * Revokes a specific user's mobile_push token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
326
+ * Deletes a specific user's APNs token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
330
327
  * @param {string} userId -
331
328
  * @param {string} tokenId -
332
329
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
333
330
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
334
331
  */
335
- async discardMobilePushApnsUserToken(
332
+ async deleteUserApnsToken(
336
333
  userId: string,
337
334
  tokenId: string,
338
335
  requestConfig?: RequestConfig,
@@ -366,7 +363,7 @@ export class ChannelsService extends BaseService {
366
363
  }
367
364
 
368
365
  /**
369
- * Lists all mobile_push tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
366
+ * Lists all Expo tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
370
367
  * @param {string} userId -
371
368
  * @param {number} [params.limit] -
372
369
  * @param {string} [params.startingAfter] -
@@ -374,9 +371,9 @@ export class ChannelsService extends BaseService {
374
371
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
375
372
  * @returns {Promise<HttpResponse<ExpoTokenCollection>>} OK
376
373
  */
377
- async getMobilePushExpoUserTokens(
374
+ async listUserExpoTokens(
378
375
  userId: string,
379
- params?: GetMobilePushExpoUserTokensParams,
376
+ params?: ListUserExpoTokensParams,
380
377
  requestConfig?: RequestConfig,
381
378
  ): Promise<HttpResponse<ExpoTokenCollection>> {
382
379
  const request = new RequestBuilder()
@@ -416,13 +413,13 @@ export class ChannelsService extends BaseService {
416
413
  }
417
414
 
418
415
  /**
419
- * Retrieves a specific mobile_push token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
416
+ * Fetches a specific Expo token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
420
417
  * @param {string} userId -
421
418
  * @param {string} tokenId -
422
419
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
423
420
  * @returns {Promise<HttpResponse<ExpoToken>>} OK
424
421
  */
425
- async getMobilePushExpoUserToken(
422
+ async fetchUserExpoToken(
426
423
  userId: string,
427
424
  tokenId: string,
428
425
  requestConfig?: RequestConfig,
@@ -456,13 +453,13 @@ export class ChannelsService extends BaseService {
456
453
  }
457
454
 
458
455
  /**
459
- * Revokes a specific user's mobile_push token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
456
+ * Deletes a specific user's Expo token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
460
457
  * @param {string} userId -
461
458
  * @param {string} tokenId -
462
459
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
463
460
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
464
461
  */
465
- async discardMobilePushExpoUserToken(
462
+ async deleteUserExpoToken(
466
463
  userId: string,
467
464
  tokenId: string,
468
465
  requestConfig?: RequestConfig,
@@ -496,7 +493,7 @@ export class ChannelsService extends BaseService {
496
493
  }
497
494
 
498
495
  /**
499
- * Lists all mobile_push tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
496
+ * Lists all FCM tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
500
497
  * @param {string} userId -
501
498
  * @param {number} [params.limit] -
502
499
  * @param {string} [params.startingAfter] -
@@ -504,9 +501,9 @@ export class ChannelsService extends BaseService {
504
501
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
505
502
  * @returns {Promise<HttpResponse<FcmTokenCollection>>} OK
506
503
  */
507
- async getMobilePushFcmUserTokens(
504
+ async listUserFcmTokens(
508
505
  userId: string,
509
- params?: GetMobilePushFcmUserTokensParams,
506
+ params?: ListUserFcmTokensParams,
510
507
  requestConfig?: RequestConfig,
511
508
  ): Promise<HttpResponse<FcmTokenCollection>> {
512
509
  const request = new RequestBuilder()
@@ -546,13 +543,13 @@ export class ChannelsService extends BaseService {
546
543
  }
547
544
 
548
545
  /**
549
- * Retrieves a specific mobile_push token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
546
+ * Fetches a specific FCM token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
550
547
  * @param {string} userId -
551
548
  * @param {string} tokenId -
552
549
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
553
550
  * @returns {Promise<HttpResponse<FcmToken>>} OK
554
551
  */
555
- async getMobilePushFcmUserToken(
552
+ async fetchUserFcmToken(
556
553
  userId: string,
557
554
  tokenId: string,
558
555
  requestConfig?: RequestConfig,
@@ -586,13 +583,13 @@ export class ChannelsService extends BaseService {
586
583
  }
587
584
 
588
585
  /**
589
- * Revokes a specific user's mobile_push token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
586
+ * Deletes a specific user's FCM token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
590
587
  * @param {string} userId -
591
588
  * @param {string} tokenId -
592
589
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
593
590
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
594
591
  */
595
- async discardMobilePushFcmUserToken(
592
+ async deleteUserFcmToken(
596
593
  userId: string,
597
594
  tokenId: string,
598
595
  requestConfig?: RequestConfig,
@@ -626,7 +623,7 @@ export class ChannelsService extends BaseService {
626
623
  }
627
624
 
628
625
  /**
629
- * Lists all slack tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
626
+ * Lists all Slack tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
630
627
  * @param {string} userId -
631
628
  * @param {number} [params.limit] -
632
629
  * @param {string} [params.startingAfter] -
@@ -634,9 +631,9 @@ export class ChannelsService extends BaseService {
634
631
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
635
632
  * @returns {Promise<HttpResponse<SlackTokenCollection>>} OK
636
633
  */
637
- async getSlackUserTokens(
634
+ async listUserSlackTokens(
638
635
  userId: string,
639
- params?: GetSlackUserTokensParams,
636
+ params?: ListUserSlackTokensParams,
640
637
  requestConfig?: RequestConfig,
641
638
  ): Promise<HttpResponse<SlackTokenCollection>> {
642
639
  const request = new RequestBuilder()
@@ -676,13 +673,13 @@ export class ChannelsService extends BaseService {
676
673
  }
677
674
 
678
675
  /**
679
- * Retrieves a specific slack token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
676
+ * Fetches a specific Slack token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
680
677
  * @param {string} userId -
681
678
  * @param {string} tokenId -
682
679
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
683
680
  * @returns {Promise<HttpResponse<SlackToken>>} OK
684
681
  */
685
- async getSlackUserToken(
682
+ async fetchUserSlackToken(
686
683
  userId: string,
687
684
  tokenId: string,
688
685
  requestConfig?: RequestConfig,
@@ -716,13 +713,13 @@ export class ChannelsService extends BaseService {
716
713
  }
717
714
 
718
715
  /**
719
- * Revokes a specific user's slack token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
716
+ * Deletes a specific user's Slack token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
720
717
  * @param {string} userId -
721
718
  * @param {string} tokenId -
722
719
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
723
720
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
724
721
  */
725
- async discardSlackUserToken(
722
+ async deleteUserSlackToken(
726
723
  userId: string,
727
724
  tokenId: string,
728
725
  requestConfig?: RequestConfig,
@@ -756,7 +753,7 @@ export class ChannelsService extends BaseService {
756
753
  }
757
754
 
758
755
  /**
759
- * Lists all teams tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
756
+ * Lists all Teams tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
760
757
  * @param {string} userId -
761
758
  * @param {number} [params.limit] -
762
759
  * @param {string} [params.startingAfter] -
@@ -764,9 +761,9 @@ export class ChannelsService extends BaseService {
764
761
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
765
762
  * @returns {Promise<HttpResponse<TeamsTokenCollection>>} OK
766
763
  */
767
- async getTeamsUserTokens(
764
+ async listUserTeamsTokens(
768
765
  userId: string,
769
- params?: GetTeamsUserTokensParams,
766
+ params?: ListUserTeamsTokensParams,
770
767
  requestConfig?: RequestConfig,
771
768
  ): Promise<HttpResponse<TeamsTokenCollection>> {
772
769
  const request = new RequestBuilder()
@@ -806,13 +803,13 @@ export class ChannelsService extends BaseService {
806
803
  }
807
804
 
808
805
  /**
809
- * Retrieves a specific teams token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
806
+ * Fetches a specific Teams token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
810
807
  * @param {string} userId -
811
808
  * @param {string} tokenId -
812
809
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
813
810
  * @returns {Promise<HttpResponse<TeamsToken>>} OK
814
811
  */
815
- async getTeamsUserToken(
812
+ async fetchUserTeamsToken(
816
813
  userId: string,
817
814
  tokenId: string,
818
815
  requestConfig?: RequestConfig,
@@ -846,13 +843,13 @@ export class ChannelsService extends BaseService {
846
843
  }
847
844
 
848
845
  /**
849
- * Revokes a specific user's teams token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
846
+ * Deletes a specific user's Teams token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
850
847
  * @param {string} userId -
851
848
  * @param {string} tokenId -
852
849
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
853
850
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
854
851
  */
855
- async discardTeamsUserToken(
852
+ async deleteUserTeamsToken(
856
853
  userId: string,
857
854
  tokenId: string,
858
855
  requestConfig?: RequestConfig,
@@ -886,7 +883,7 @@ export class ChannelsService extends BaseService {
886
883
  }
887
884
 
888
885
  /**
889
- * Lists all web_push tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
886
+ * Lists all Web Push tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
890
887
  * @param {string} userId -
891
888
  * @param {number} [params.limit] -
892
889
  * @param {string} [params.startingAfter] -
@@ -894,9 +891,9 @@ export class ChannelsService extends BaseService {
894
891
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
895
892
  * @returns {Promise<HttpResponse<WebPushTokenCollection>>} OK
896
893
  */
897
- async getWebPushUserTokens(
894
+ async listUserWebPushTokens(
898
895
  userId: string,
899
- params?: GetWebPushUserTokensParams,
896
+ params?: ListUserWebPushTokensParams,
900
897
  requestConfig?: RequestConfig,
901
898
  ): Promise<HttpResponse<WebPushTokenCollection>> {
902
899
  const request = new RequestBuilder()
@@ -936,13 +933,13 @@ export class ChannelsService extends BaseService {
936
933
  }
937
934
 
938
935
  /**
939
- * Retrieves a specific web_push token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
936
+ * Fetches a specific Web Push token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata.
940
937
  * @param {string} userId -
941
938
  * @param {string} tokenId -
942
939
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
943
940
  * @returns {Promise<HttpResponse<WebPushToken>>} OK
944
941
  */
945
- async getWebPushUserToken(
942
+ async fetchUserWebPushToken(
946
943
  userId: string,
947
944
  tokenId: string,
948
945
  requestConfig?: RequestConfig,
@@ -976,13 +973,13 @@ export class ChannelsService extends BaseService {
976
973
  }
977
974
 
978
975
  /**
979
- * Revokes a specific user's web_push token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
976
+ * Deletes a specific user's Web Push token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone.
980
977
  * @param {string} userId -
981
978
  * @param {string} tokenId -
982
979
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
983
980
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
984
981
  */
985
- async discardWebPushUserToken(
982
+ async deleteUserWebPushToken(
986
983
  userId: string,
987
984
  tokenId: string,
988
985
  requestConfig?: RequestConfig,
@@ -1,44 +1,40 @@
1
- export interface GetDeliveryconfigParams {
2
- key?: string;
3
- }
4
-
5
- export interface GetInAppInboxUserTokensParams {
1
+ export interface ListUserInboxTokensParams {
6
2
  limit?: number;
7
3
  startingAfter?: string;
8
4
  endingBefore?: string;
9
5
  }
10
6
 
11
- export interface GetMobilePushApnsUserTokensParams {
7
+ export interface ListUserApnsTokensParams {
12
8
  limit?: number;
13
9
  startingAfter?: string;
14
10
  endingBefore?: string;
15
11
  }
16
12
 
17
- export interface GetMobilePushExpoUserTokensParams {
13
+ export interface ListUserExpoTokensParams {
18
14
  limit?: number;
19
15
  startingAfter?: string;
20
16
  endingBefore?: string;
21
17
  }
22
18
 
23
- export interface GetMobilePushFcmUserTokensParams {
19
+ export interface ListUserFcmTokensParams {
24
20
  limit?: number;
25
21
  startingAfter?: string;
26
22
  endingBefore?: string;
27
23
  }
28
24
 
29
- export interface GetSlackUserTokensParams {
25
+ export interface ListUserSlackTokensParams {
30
26
  limit?: number;
31
27
  startingAfter?: string;
32
28
  endingBefore?: string;
33
29
  }
34
30
 
35
- export interface GetTeamsUserTokensParams {
31
+ export interface ListUserTeamsTokensParams {
36
32
  limit?: number;
37
33
  startingAfter?: string;
38
34
  endingBefore?: string;
39
35
  }
40
36
 
41
- export interface GetWebPushUserTokensParams {
37
+ export interface ListUserWebPushTokensParams {
42
38
  limit?: number;
43
39
  startingAfter?: string;
44
40
  endingBefore?: string;
@@ -1 +1,2 @@
1
1
  export type { Links } from './links.js';
2
+ export type { User } from './user.js';
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  import { Environment } from '../../http/environment.js';
4
+ import { ThrowableError } from '../../http/errors/throwable-error.js';
4
5
  import { SerializationStyle } from '../../http/serialization/base-serializer.js';
5
6
  import { RequestBuilder } from '../../http/transport/request-builder.js';
6
7
  import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
@@ -52,17 +53,17 @@ export class EventsService extends BaseService {
52
53
  }
53
54
 
54
55
  /**
55
- * Retrieves a project event by its ID.
56
- * @param {string} id -
56
+ * Fetches a project event by its ID.
57
+ * @param {string} eventId -
57
58
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
58
59
  * @returns {Promise<HttpResponse<Event>>} OK
59
60
  */
60
- async getEvent(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<Event>> {
61
+ async fetchEvent(eventId: string, requestConfig?: RequestConfig): Promise<HttpResponse<Event>> {
61
62
  const request = new RequestBuilder()
62
63
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
63
64
  .setConfig(this.config)
64
65
  .setMethod('GET')
65
- .setPath('/events/{id}')
66
+ .setPath('/events/{event_id}')
66
67
  .setRequestSchema(z.any())
67
68
  .addAccessTokenAuth(this.config.token, 'Bearer')
68
69
  .setRequestContentType(ContentType.Json)
@@ -75,8 +76,8 @@ export class EventsService extends BaseService {
75
76
  .setRetryDelayMs(this.config, requestConfig)
76
77
  .setResponseValidation(this.config, requestConfig)
77
78
  .addPathParam({
78
- key: 'id',
79
- value: id,
79
+ key: 'event_id',
80
+ value: eventId,
80
81
  })
81
82
  .build();
82
83
  return this.client.call<Event>(request);