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';
@@ -43,26 +44,26 @@ import {
43
44
  import { WebPushToken, webPushTokenResponse } from './models/web-push-token.js';
44
45
  import { WebPushTokenCollection, webPushTokenCollectionResponse } from './models/web-push-token-collection.js';
45
46
  import {
46
- GetInAppInboxTokensParams,
47
- GetMobilePushApnsTokensParams,
48
- GetMobilePushExpoTokensParams,
49
- GetMobilePushFcmTokensParams,
50
- GetSlackTokensParams,
51
- GetTeamsTokensParams,
52
- GetWebPushTokensParams,
47
+ ListApnsTokensParams,
48
+ ListExpoTokensParams,
49
+ ListFcmTokensParams,
50
+ ListInboxTokensParams,
51
+ ListSlackTokensParams,
52
+ ListTeamsTokensParams,
53
+ ListWebPushTokensParams,
53
54
  } from './request-params.js';
54
55
 
55
56
  export class ChannelsService extends BaseService {
56
57
  /**
57
- * Lists all in_app tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
58
+ * Lists all Inbox tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
58
59
  * @param {number} [params.limit] -
59
60
  * @param {string} [params.startingAfter] -
60
61
  * @param {string} [params.endingBefore] -
61
62
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
62
63
  * @returns {Promise<HttpResponse<InboxTokenResponseCollection>>} OK
63
64
  */
64
- async getInAppInboxTokens(
65
- params?: GetInAppInboxTokensParams,
65
+ async listInboxTokens(
66
+ params?: ListInboxTokensParams,
66
67
  requestConfig?: RequestConfig,
67
68
  ): Promise<HttpResponse<InboxTokenResponseCollection>> {
68
69
  const request = new RequestBuilder()
@@ -98,15 +99,15 @@ export class ChannelsService extends BaseService {
98
99
  }
99
100
 
100
101
  /**
101
- * Saves a in_app token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
102
+ * Saves the Inbox token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
102
103
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
103
- * @returns {Promise<HttpResponse<InboxToken>>} Created
104
+ * @returns {Promise<HttpResponse<InboxToken>>} OK
104
105
  */
105
- async saveInAppInboxToken(body: InboxToken, requestConfig?: RequestConfig): Promise<HttpResponse<InboxToken>> {
106
+ async saveInboxToken(body: InboxToken, requestConfig?: RequestConfig): Promise<HttpResponse<InboxToken>> {
106
107
  const request = new RequestBuilder()
107
108
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
108
109
  .setConfig(this.config)
109
- .setMethod('POST')
110
+ .setMethod('PUT')
110
111
  .setPath('/channels/in_app/inbox/tokens')
111
112
  .setRequestSchema(inboxTokenRequest)
112
113
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -114,7 +115,7 @@ export class ChannelsService extends BaseService {
114
115
  .addResponse({
115
116
  schema: inboxTokenResponse1,
116
117
  contentType: ContentType.Json,
117
- status: 201,
118
+ status: 200,
118
119
  })
119
120
  .setRetryAttempts(this.config, requestConfig)
120
121
  .setRetryDelayMs(this.config, requestConfig)
@@ -126,12 +127,12 @@ export class ChannelsService extends BaseService {
126
127
  }
127
128
 
128
129
  /**
129
- * Retrieves details of a specific in_app token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
130
+ * Fetches details of a specific Inbox token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
130
131
  * @param {string} tokenId -
131
132
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
132
133
  * @returns {Promise<HttpResponse<InboxTokenResponse>>} OK
133
134
  */
134
- async getInAppInboxToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<InboxTokenResponse>> {
135
+ async fetchInboxToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<InboxTokenResponse>> {
135
136
  const request = new RequestBuilder()
136
137
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
137
138
  .setConfig(this.config)
@@ -157,12 +158,12 @@ export class ChannelsService extends BaseService {
157
158
  }
158
159
 
159
160
  /**
160
- * Revokes one of the authenticated user's in_app tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
161
+ * Deletes one of the authenticated user's Inbox tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
161
162
  * @param {string} tokenId -
162
163
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
163
164
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
164
165
  */
165
- async discardInAppInboxToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
166
+ async deleteInboxToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
166
167
  const request = new RequestBuilder()
167
168
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
168
169
  .setConfig(this.config)
@@ -188,15 +189,15 @@ export class ChannelsService extends BaseService {
188
189
  }
189
190
 
190
191
  /**
191
- * Lists all mobile_push tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
192
+ * Lists all APNs tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
192
193
  * @param {number} [params.limit] -
193
194
  * @param {string} [params.startingAfter] -
194
195
  * @param {string} [params.endingBefore] -
195
196
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
196
197
  * @returns {Promise<HttpResponse<ApnsTokenCollection>>} OK
197
198
  */
198
- async getMobilePushApnsTokens(
199
- params?: GetMobilePushApnsTokensParams,
199
+ async listApnsTokens(
200
+ params?: ListApnsTokensParams,
200
201
  requestConfig?: RequestConfig,
201
202
  ): Promise<HttpResponse<ApnsTokenCollection>> {
202
203
  const request = new RequestBuilder()
@@ -232,18 +233,15 @@ export class ChannelsService extends BaseService {
232
233
  }
233
234
 
234
235
  /**
235
- * Saves a mobile_push token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
236
+ * Saves the APNs token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
236
237
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
237
- * @returns {Promise<HttpResponse<ApnsTokenPayload>>} Created
238
+ * @returns {Promise<HttpResponse<ApnsTokenPayload>>} OK
238
239
  */
239
- async saveMobilePushApnsToken(
240
- body: ApnsTokenPayload,
241
- requestConfig?: RequestConfig,
242
- ): Promise<HttpResponse<ApnsTokenPayload>> {
240
+ async saveApnsToken(body: ApnsTokenPayload, requestConfig?: RequestConfig): Promise<HttpResponse<ApnsTokenPayload>> {
243
241
  const request = new RequestBuilder()
244
242
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
245
243
  .setConfig(this.config)
246
- .setMethod('POST')
244
+ .setMethod('PUT')
247
245
  .setPath('/channels/mobile_push/apns/tokens')
248
246
  .setRequestSchema(apnsTokenPayloadRequest)
249
247
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -251,7 +249,7 @@ export class ChannelsService extends BaseService {
251
249
  .addResponse({
252
250
  schema: apnsTokenPayloadResponse,
253
251
  contentType: ContentType.Json,
254
- status: 201,
252
+ status: 200,
255
253
  })
256
254
  .setRetryAttempts(this.config, requestConfig)
257
255
  .setRetryDelayMs(this.config, requestConfig)
@@ -263,12 +261,12 @@ export class ChannelsService extends BaseService {
263
261
  }
264
262
 
265
263
  /**
266
- * Retrieves details of a specific mobile_push token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
264
+ * Fetches details of a specific APNs token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
267
265
  * @param {string} tokenId -
268
266
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
269
267
  * @returns {Promise<HttpResponse<ApnsToken>>} OK
270
268
  */
271
- async getMobilePushApnsToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<ApnsToken>> {
269
+ async fetchApnsToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<ApnsToken>> {
272
270
  const request = new RequestBuilder()
273
271
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
274
272
  .setConfig(this.config)
@@ -294,15 +292,12 @@ export class ChannelsService extends BaseService {
294
292
  }
295
293
 
296
294
  /**
297
- * Revokes one of the authenticated user's mobile_push tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
295
+ * Deletes one of the authenticated user's APNs tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
298
296
  * @param {string} tokenId -
299
297
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
300
298
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
301
299
  */
302
- async discardMobilePushApnsToken(
303
- tokenId: string,
304
- requestConfig?: RequestConfig,
305
- ): Promise<HttpResponse<DiscardResult>> {
300
+ async deleteApnsToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
306
301
  const request = new RequestBuilder()
307
302
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
308
303
  .setConfig(this.config)
@@ -328,15 +323,15 @@ export class ChannelsService extends BaseService {
328
323
  }
329
324
 
330
325
  /**
331
- * Lists all mobile_push tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
326
+ * Lists all Expo tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
332
327
  * @param {number} [params.limit] -
333
328
  * @param {string} [params.startingAfter] -
334
329
  * @param {string} [params.endingBefore] -
335
330
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
336
331
  * @returns {Promise<HttpResponse<ExpoTokenCollection>>} OK
337
332
  */
338
- async getMobilePushExpoTokens(
339
- params?: GetMobilePushExpoTokensParams,
333
+ async listExpoTokens(
334
+ params?: ListExpoTokensParams,
340
335
  requestConfig?: RequestConfig,
341
336
  ): Promise<HttpResponse<ExpoTokenCollection>> {
342
337
  const request = new RequestBuilder()
@@ -372,18 +367,15 @@ export class ChannelsService extends BaseService {
372
367
  }
373
368
 
374
369
  /**
375
- * Saves a mobile_push token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
370
+ * Saves the Expo token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
376
371
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
377
- * @returns {Promise<HttpResponse<ExpoTokenPayload>>} Created
372
+ * @returns {Promise<HttpResponse<ExpoTokenPayload>>} OK
378
373
  */
379
- async saveMobilePushExpoToken(
380
- body: ExpoTokenPayload,
381
- requestConfig?: RequestConfig,
382
- ): Promise<HttpResponse<ExpoTokenPayload>> {
374
+ async saveExpoToken(body: ExpoTokenPayload, requestConfig?: RequestConfig): Promise<HttpResponse<ExpoTokenPayload>> {
383
375
  const request = new RequestBuilder()
384
376
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
385
377
  .setConfig(this.config)
386
- .setMethod('POST')
378
+ .setMethod('PUT')
387
379
  .setPath('/channels/mobile_push/expo/tokens')
388
380
  .setRequestSchema(expoTokenPayloadRequest)
389
381
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -391,7 +383,7 @@ export class ChannelsService extends BaseService {
391
383
  .addResponse({
392
384
  schema: expoTokenPayloadResponse,
393
385
  contentType: ContentType.Json,
394
- status: 201,
386
+ status: 200,
395
387
  })
396
388
  .setRetryAttempts(this.config, requestConfig)
397
389
  .setRetryDelayMs(this.config, requestConfig)
@@ -403,12 +395,12 @@ export class ChannelsService extends BaseService {
403
395
  }
404
396
 
405
397
  /**
406
- * Retrieves details of a specific mobile_push token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
398
+ * Fetches details of a specific Expo token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
407
399
  * @param {string} tokenId -
408
400
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
409
401
  * @returns {Promise<HttpResponse<ExpoToken>>} OK
410
402
  */
411
- async getMobilePushExpoToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<ExpoToken>> {
403
+ async fetchExpoToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<ExpoToken>> {
412
404
  const request = new RequestBuilder()
413
405
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
414
406
  .setConfig(this.config)
@@ -434,15 +426,12 @@ export class ChannelsService extends BaseService {
434
426
  }
435
427
 
436
428
  /**
437
- * Revokes one of the authenticated user's mobile_push tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
429
+ * Deletes one of the authenticated user's Expo tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
438
430
  * @param {string} tokenId -
439
431
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
440
432
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
441
433
  */
442
- async discardMobilePushExpoToken(
443
- tokenId: string,
444
- requestConfig?: RequestConfig,
445
- ): Promise<HttpResponse<DiscardResult>> {
434
+ async deleteExpoToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
446
435
  const request = new RequestBuilder()
447
436
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
448
437
  .setConfig(this.config)
@@ -468,15 +457,15 @@ export class ChannelsService extends BaseService {
468
457
  }
469
458
 
470
459
  /**
471
- * Lists all mobile_push tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
460
+ * Lists all FCM tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
472
461
  * @param {number} [params.limit] -
473
462
  * @param {string} [params.startingAfter] -
474
463
  * @param {string} [params.endingBefore] -
475
464
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
476
465
  * @returns {Promise<HttpResponse<FcmTokenCollection>>} OK
477
466
  */
478
- async getMobilePushFcmTokens(
479
- params?: GetMobilePushFcmTokensParams,
467
+ async listFcmTokens(
468
+ params?: ListFcmTokensParams,
480
469
  requestConfig?: RequestConfig,
481
470
  ): Promise<HttpResponse<FcmTokenCollection>> {
482
471
  const request = new RequestBuilder()
@@ -512,18 +501,15 @@ export class ChannelsService extends BaseService {
512
501
  }
513
502
 
514
503
  /**
515
- * Saves a mobile_push token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
504
+ * Saves the FCM token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
516
505
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
517
- * @returns {Promise<HttpResponse<FcmTokenPayload>>} Created
506
+ * @returns {Promise<HttpResponse<FcmTokenPayload>>} OK
518
507
  */
519
- async saveMobilePushFcmToken(
520
- body: FcmTokenPayload,
521
- requestConfig?: RequestConfig,
522
- ): Promise<HttpResponse<FcmTokenPayload>> {
508
+ async saveFcmToken(body: FcmTokenPayload, requestConfig?: RequestConfig): Promise<HttpResponse<FcmTokenPayload>> {
523
509
  const request = new RequestBuilder()
524
510
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
525
511
  .setConfig(this.config)
526
- .setMethod('POST')
512
+ .setMethod('PUT')
527
513
  .setPath('/channels/mobile_push/fcm/tokens')
528
514
  .setRequestSchema(fcmTokenPayloadRequest)
529
515
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -531,7 +517,7 @@ export class ChannelsService extends BaseService {
531
517
  .addResponse({
532
518
  schema: fcmTokenPayloadResponse,
533
519
  contentType: ContentType.Json,
534
- status: 201,
520
+ status: 200,
535
521
  })
536
522
  .setRetryAttempts(this.config, requestConfig)
537
523
  .setRetryDelayMs(this.config, requestConfig)
@@ -543,12 +529,12 @@ export class ChannelsService extends BaseService {
543
529
  }
544
530
 
545
531
  /**
546
- * Retrieves details of a specific mobile_push token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
532
+ * Fetches details of a specific FCM token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
547
533
  * @param {string} tokenId -
548
534
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
549
535
  * @returns {Promise<HttpResponse<FcmToken>>} OK
550
536
  */
551
- async getMobilePushFcmToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<FcmToken>> {
537
+ async fetchFcmToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<FcmToken>> {
552
538
  const request = new RequestBuilder()
553
539
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
554
540
  .setConfig(this.config)
@@ -574,15 +560,12 @@ export class ChannelsService extends BaseService {
574
560
  }
575
561
 
576
562
  /**
577
- * Revokes one of the authenticated user's mobile_push tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
563
+ * Deletes one of the authenticated user's FCM tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
578
564
  * @param {string} tokenId -
579
565
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
580
566
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
581
567
  */
582
- async discardMobilePushFcmToken(
583
- tokenId: string,
584
- requestConfig?: RequestConfig,
585
- ): Promise<HttpResponse<DiscardResult>> {
568
+ async deleteFcmToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
586
569
  const request = new RequestBuilder()
587
570
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
588
571
  .setConfig(this.config)
@@ -608,15 +591,15 @@ export class ChannelsService extends BaseService {
608
591
  }
609
592
 
610
593
  /**
611
- * Lists all slack tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
594
+ * Lists all Slack tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
612
595
  * @param {number} [params.limit] -
613
596
  * @param {string} [params.startingAfter] -
614
597
  * @param {string} [params.endingBefore] -
615
598
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
616
599
  * @returns {Promise<HttpResponse<SlackTokenCollection>>} OK
617
600
  */
618
- async getSlackTokens(
619
- params?: GetSlackTokensParams,
601
+ async listSlackTokens(
602
+ params?: ListSlackTokensParams,
620
603
  requestConfig?: RequestConfig,
621
604
  ): Promise<HttpResponse<SlackTokenCollection>> {
622
605
  const request = new RequestBuilder()
@@ -652,9 +635,9 @@ export class ChannelsService extends BaseService {
652
635
  }
653
636
 
654
637
  /**
655
- * Saves a slack token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
638
+ * Saves the Slack token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
656
639
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
657
- * @returns {Promise<HttpResponse<SlackTokenPayload>>} Created
640
+ * @returns {Promise<HttpResponse<SlackTokenPayload>>} OK
658
641
  */
659
642
  async saveSlackToken(
660
643
  body: SlackTokenPayload,
@@ -663,7 +646,7 @@ export class ChannelsService extends BaseService {
663
646
  const request = new RequestBuilder()
664
647
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
665
648
  .setConfig(this.config)
666
- .setMethod('POST')
649
+ .setMethod('PUT')
667
650
  .setPath('/channels/slack/tokens')
668
651
  .setRequestSchema(slackTokenPayloadRequest)
669
652
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -671,7 +654,7 @@ export class ChannelsService extends BaseService {
671
654
  .addResponse({
672
655
  schema: slackTokenPayloadResponse,
673
656
  contentType: ContentType.Json,
674
- status: 201,
657
+ status: 200,
675
658
  })
676
659
  .setRetryAttempts(this.config, requestConfig)
677
660
  .setRetryDelayMs(this.config, requestConfig)
@@ -683,12 +666,12 @@ export class ChannelsService extends BaseService {
683
666
  }
684
667
 
685
668
  /**
686
- * Retrieves details of a specific slack token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
669
+ * Fetches details of a specific Slack token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
687
670
  * @param {string} tokenId -
688
671
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
689
672
  * @returns {Promise<HttpResponse<SlackToken>>} OK
690
673
  */
691
- async getSlackToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<SlackToken>> {
674
+ async fetchSlackToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<SlackToken>> {
692
675
  const request = new RequestBuilder()
693
676
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
694
677
  .setConfig(this.config)
@@ -714,12 +697,12 @@ export class ChannelsService extends BaseService {
714
697
  }
715
698
 
716
699
  /**
717
- * Revokes one of the authenticated user's slack tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
700
+ * Deletes one of the authenticated user's Slack tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
718
701
  * @param {string} tokenId -
719
702
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
720
703
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
721
704
  */
722
- async discardSlackToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
705
+ async deleteSlackToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
723
706
  const request = new RequestBuilder()
724
707
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
725
708
  .setConfig(this.config)
@@ -745,15 +728,15 @@ export class ChannelsService extends BaseService {
745
728
  }
746
729
 
747
730
  /**
748
- * Lists all teams tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
731
+ * Lists all Teams tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
749
732
  * @param {number} [params.limit] -
750
733
  * @param {string} [params.startingAfter] -
751
734
  * @param {string} [params.endingBefore] -
752
735
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
753
736
  * @returns {Promise<HttpResponse<TeamsTokenCollection>>} OK
754
737
  */
755
- async getTeamsTokens(
756
- params?: GetTeamsTokensParams,
738
+ async listTeamsTokens(
739
+ params?: ListTeamsTokensParams,
757
740
  requestConfig?: RequestConfig,
758
741
  ): Promise<HttpResponse<TeamsTokenCollection>> {
759
742
  const request = new RequestBuilder()
@@ -789,9 +772,9 @@ export class ChannelsService extends BaseService {
789
772
  }
790
773
 
791
774
  /**
792
- * Saves a teams token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
775
+ * Saves the Teams token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
793
776
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
794
- * @returns {Promise<HttpResponse<TeamsTokenPayload>>} Created
777
+ * @returns {Promise<HttpResponse<TeamsTokenPayload>>} OK
795
778
  */
796
779
  async saveTeamsToken(
797
780
  body: TeamsTokenPayload,
@@ -800,7 +783,7 @@ export class ChannelsService extends BaseService {
800
783
  const request = new RequestBuilder()
801
784
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
802
785
  .setConfig(this.config)
803
- .setMethod('POST')
786
+ .setMethod('PUT')
804
787
  .setPath('/channels/teams/tokens')
805
788
  .setRequestSchema(teamsTokenPayloadRequest)
806
789
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -808,7 +791,7 @@ export class ChannelsService extends BaseService {
808
791
  .addResponse({
809
792
  schema: teamsTokenPayloadResponse,
810
793
  contentType: ContentType.Json,
811
- status: 201,
794
+ status: 200,
812
795
  })
813
796
  .setRetryAttempts(this.config, requestConfig)
814
797
  .setRetryDelayMs(this.config, requestConfig)
@@ -820,12 +803,12 @@ export class ChannelsService extends BaseService {
820
803
  }
821
804
 
822
805
  /**
823
- * Retrieves details of a specific teams token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
806
+ * Fetches details of a specific Teams token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
824
807
  * @param {string} tokenId -
825
808
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
826
809
  * @returns {Promise<HttpResponse<TeamsToken>>} OK
827
810
  */
828
- async getTeamsToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<TeamsToken>> {
811
+ async fetchTeamsToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<TeamsToken>> {
829
812
  const request = new RequestBuilder()
830
813
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
831
814
  .setConfig(this.config)
@@ -851,12 +834,12 @@ export class ChannelsService extends BaseService {
851
834
  }
852
835
 
853
836
  /**
854
- * Revokes one of the authenticated user's teams tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
837
+ * Deletes one of the authenticated user's Teams tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
855
838
  * @param {string} tokenId -
856
839
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
857
840
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
858
841
  */
859
- async discardTeamsToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
842
+ async deleteTeamsToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
860
843
  const request = new RequestBuilder()
861
844
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
862
845
  .setConfig(this.config)
@@ -882,15 +865,15 @@ export class ChannelsService extends BaseService {
882
865
  }
883
866
 
884
867
  /**
885
- * Lists all web_push tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
868
+ * Lists all Web Push tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata.
886
869
  * @param {number} [params.limit] -
887
870
  * @param {string} [params.startingAfter] -
888
871
  * @param {string} [params.endingBefore] -
889
872
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
890
873
  * @returns {Promise<HttpResponse<WebPushTokenCollection>>} OK
891
874
  */
892
- async getWebPushTokens(
893
- params?: GetWebPushTokensParams,
875
+ async listWebPushTokens(
876
+ params?: ListWebPushTokensParams,
894
877
  requestConfig?: RequestConfig,
895
878
  ): Promise<HttpResponse<WebPushTokenCollection>> {
896
879
  const request = new RequestBuilder()
@@ -926,9 +909,9 @@ export class ChannelsService extends BaseService {
926
909
  }
927
910
 
928
911
  /**
929
- * Saves a web_push token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
912
+ * Saves the Web Push token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel.
930
913
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
931
- * @returns {Promise<HttpResponse<WebPushTokenPayload>>} Created
914
+ * @returns {Promise<HttpResponse<WebPushTokenPayload>>} OK
932
915
  */
933
916
  async saveWebPushToken(
934
917
  body: WebPushTokenPayload,
@@ -937,7 +920,7 @@ export class ChannelsService extends BaseService {
937
920
  const request = new RequestBuilder()
938
921
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
939
922
  .setConfig(this.config)
940
- .setMethod('POST')
923
+ .setMethod('PUT')
941
924
  .setPath('/channels/web_push/tokens')
942
925
  .setRequestSchema(webPushTokenPayloadRequest)
943
926
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -945,7 +928,7 @@ export class ChannelsService extends BaseService {
945
928
  .addResponse({
946
929
  schema: webPushTokenPayloadResponse,
947
930
  contentType: ContentType.Json,
948
- status: 201,
931
+ status: 200,
949
932
  })
950
933
  .setRetryAttempts(this.config, requestConfig)
951
934
  .setRetryDelayMs(this.config, requestConfig)
@@ -957,12 +940,12 @@ export class ChannelsService extends BaseService {
957
940
  }
958
941
 
959
942
  /**
960
- * Retrieves details of a specific web_push token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
943
+ * Fetches details of a specific Web Push token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.
961
944
  * @param {string} tokenId -
962
945
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
963
946
  * @returns {Promise<HttpResponse<WebPushToken>>} OK
964
947
  */
965
- async getWebPushToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<WebPushToken>> {
948
+ async fetchWebPushToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<WebPushToken>> {
966
949
  const request = new RequestBuilder()
967
950
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
968
951
  .setConfig(this.config)
@@ -988,12 +971,12 @@ export class ChannelsService extends BaseService {
988
971
  }
989
972
 
990
973
  /**
991
- * Revokes one of the authenticated user's web_push tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
974
+ * Deletes one of the authenticated user's Web Push tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens.
992
975
  * @param {string} tokenId -
993
976
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
994
977
  * @returns {Promise<HttpResponse<DiscardResult>>} OK
995
978
  */
996
- async discardWebPushToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
979
+ async deleteWebPushToken(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardResult>> {
997
980
  const request = new RequestBuilder()
998
981
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
999
982
  .setConfig(this.config)
@@ -1,40 +1,40 @@
1
- export interface GetInAppInboxTokensParams {
1
+ export interface ListInboxTokensParams {
2
2
  limit?: number;
3
3
  startingAfter?: string;
4
4
  endingBefore?: string;
5
5
  }
6
6
 
7
- export interface GetMobilePushApnsTokensParams {
7
+ export interface ListApnsTokensParams {
8
8
  limit?: number;
9
9
  startingAfter?: string;
10
10
  endingBefore?: string;
11
11
  }
12
12
 
13
- export interface GetMobilePushExpoTokensParams {
13
+ export interface ListExpoTokensParams {
14
14
  limit?: number;
15
15
  startingAfter?: string;
16
16
  endingBefore?: string;
17
17
  }
18
18
 
19
- export interface GetMobilePushFcmTokensParams {
19
+ export interface ListFcmTokensParams {
20
20
  limit?: number;
21
21
  startingAfter?: string;
22
22
  endingBefore?: string;
23
23
  }
24
24
 
25
- export interface GetSlackTokensParams {
25
+ export interface ListSlackTokensParams {
26
26
  limit?: number;
27
27
  startingAfter?: string;
28
28
  endingBefore?: string;
29
29
  }
30
30
 
31
- export interface GetTeamsTokensParams {
31
+ export interface ListTeamsTokensParams {
32
32
  limit?: number;
33
33
  startingAfter?: string;
34
34
  endingBefore?: string;
35
35
  }
36
36
 
37
- export interface GetWebPushTokensParams {
37
+ export interface ListWebPushTokensParams {
38
38
  limit?: number;
39
39
  startingAfter?: string;
40
40
  endingBefore?: string;