magicbell-js 0.1.0 → 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 (363) hide show
  1. package/README.md +11 -21
  2. package/dist/commonjs/project-client/index.d.ts +0 -6
  3. package/dist/commonjs/project-client/index.d.ts.map +1 -1
  4. package/dist/commonjs/project-client/index.js +2 -28
  5. package/dist/commonjs/project-client/index.js.map +1 -1
  6. package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
  7. package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.js +1 -1
  8. package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
  9. package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
  10. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
  11. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
  12. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js +7 -6
  13. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js.map +1 -1
  14. package/dist/commonjs/project-client/services/broadcasts/models/email.d.ts +3 -3
  15. package/dist/commonjs/project-client/services/broadcasts/models/in-app.d.ts +3 -3
  16. package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts +0 -2
  17. package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts.map +1 -1
  18. package/dist/commonjs/project-client/services/broadcasts/models/index.js.map +1 -1
  19. package/dist/commonjs/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
  20. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
  21. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
  22. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js +0 -12
  23. package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
  24. package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts +200 -441
  25. package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
  26. package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts +102 -60
  27. package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
  28. package/dist/commonjs/project-client/services/broadcasts/models/providers.js +35 -20
  29. package/dist/commonjs/project-client/services/broadcasts/models/providers.js.map +1 -1
  30. package/dist/commonjs/project-client/services/broadcasts/models/sms.d.ts +3 -3
  31. package/dist/commonjs/project-client/services/channels/channels-service.d.ts +48 -48
  32. package/dist/commonjs/project-client/services/channels/channels-service.d.ts.map +1 -1
  33. package/dist/commonjs/project-client/services/channels/channels-service.js +59 -59
  34. package/dist/commonjs/project-client/services/channels/channels-service.js.map +1 -1
  35. package/dist/commonjs/project-client/services/channels/models/discard-result.d.ts +8 -8
  36. package/dist/commonjs/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  37. package/dist/commonjs/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
  38. package/dist/commonjs/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
  39. package/dist/commonjs/project-client/services/channels/models/slack-token.d.ts +8 -8
  40. package/dist/commonjs/project-client/services/channels/request-params.d.ts +7 -10
  41. package/dist/commonjs/project-client/services/channels/request-params.d.ts.map +1 -1
  42. package/dist/commonjs/project-client/services/common/index.d.ts +1 -0
  43. package/dist/commonjs/project-client/services/common/index.d.ts.map +1 -1
  44. package/dist/commonjs/project-client/services/{users/models → common}/user.d.ts +24 -24
  45. package/dist/commonjs/project-client/services/common/user.d.ts.map +1 -0
  46. package/dist/commonjs/project-client/services/common/user.js.map +1 -0
  47. package/dist/commonjs/project-client/services/events/events-service.d.ts +3 -3
  48. package/dist/commonjs/project-client/services/events/events-service.d.ts.map +1 -1
  49. package/dist/commonjs/project-client/services/events/events-service.js +6 -6
  50. package/dist/commonjs/project-client/services/events/events-service.js.map +1 -1
  51. package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +97 -193
  52. package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
  53. package/dist/commonjs/project-client/services/integrations/integrations-service.js +128 -528
  54. package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
  55. package/dist/commonjs/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
  56. package/dist/commonjs/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  57. package/dist/commonjs/project-client/services/integrations/models/inbox-config.d.ts +140 -140
  58. package/dist/commonjs/project-client/services/integrations/models/theme.d.ts +56 -56
  59. package/dist/commonjs/project-client/services/integrations/request-params.d.ts +48 -0
  60. package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
  61. package/dist/commonjs/project-client/services/users/models/index.d.ts +0 -1
  62. package/dist/commonjs/project-client/services/users/models/index.d.ts.map +1 -1
  63. package/dist/commonjs/project-client/services/users/models/user-collection.d.ts +42 -42
  64. package/dist/commonjs/project-client/services/users/models/user-collection.js +1 -1
  65. package/dist/commonjs/project-client/services/users/models/user-collection.js.map +1 -1
  66. package/dist/commonjs/project-client/services/users/users-service.d.ts +6 -6
  67. package/dist/commonjs/project-client/services/users/users-service.d.ts.map +1 -1
  68. package/dist/commonjs/project-client/services/users/users-service.js +8 -8
  69. package/dist/commonjs/project-client/services/users/users-service.js.map +1 -1
  70. package/dist/commonjs/user-client/services/channels/channels-service.d.ts +61 -61
  71. package/dist/commonjs/user-client/services/channels/channels-service.d.ts.map +1 -1
  72. package/dist/commonjs/user-client/services/channels/channels-service.js +74 -74
  73. package/dist/commonjs/user-client/services/channels/channels-service.js.map +1 -1
  74. package/dist/commonjs/user-client/services/channels/models/discard-result.d.ts +8 -8
  75. package/dist/commonjs/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  76. package/dist/commonjs/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
  77. package/dist/commonjs/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
  78. package/dist/commonjs/user-client/services/channels/models/slack-token.d.ts +8 -8
  79. package/dist/commonjs/user-client/services/channels/request-params.d.ts +7 -7
  80. package/dist/commonjs/user-client/services/channels/request-params.d.ts.map +1 -1
  81. package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +12 -12
  82. package/dist/commonjs/user-client/services/integrations/integrations-service.js +20 -20
  83. package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
  84. package/dist/commonjs/user-client/services/integrations/models/authed-user.d.ts +8 -8
  85. package/dist/commonjs/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  86. package/dist/commonjs/user-client/services/integrations/models/slack-installation.d.ts +57 -57
  87. package/dist/commonjs/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
  88. package/dist/commonjs/user-client/services/integrations/models/theme.d.ts +56 -56
  89. package/dist/commonjs/user-client/services/notifications/models/notification-collection.d.ts +56 -56
  90. package/dist/commonjs/user-client/services/notifications/models/notification.d.ts +32 -32
  91. package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts +6 -6
  92. package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts.map +1 -1
  93. package/dist/commonjs/user-client/services/notifications/notifications-service.js +5 -5
  94. package/dist/commonjs/user-client/services/notifications/notifications-service.js.map +1 -1
  95. package/dist/commonjs/user-client/services/notifications/request-params.d.ts +2 -2
  96. package/dist/commonjs/user-client/services/notifications/request-params.d.ts.map +1 -1
  97. package/dist/esm/project-client/index.d.ts +0 -6
  98. package/dist/esm/project-client/index.d.ts.map +1 -1
  99. package/dist/esm/project-client/index.js +0 -26
  100. package/dist/esm/project-client/index.js.map +1 -1
  101. package/dist/esm/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
  102. package/dist/esm/project-client/services/broadcasts/broadcasts-service.js +1 -1
  103. package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
  104. package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
  105. package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
  106. package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
  107. package/dist/esm/project-client/services/broadcasts/models/broadcast.js +7 -6
  108. package/dist/esm/project-client/services/broadcasts/models/broadcast.js.map +1 -1
  109. package/dist/esm/project-client/services/broadcasts/models/email.d.ts +3 -3
  110. package/dist/esm/project-client/services/broadcasts/models/in-app.d.ts +3 -3
  111. package/dist/esm/project-client/services/broadcasts/models/index.d.ts +0 -2
  112. package/dist/esm/project-client/services/broadcasts/models/index.d.ts.map +1 -1
  113. package/dist/esm/project-client/services/broadcasts/models/index.js.map +1 -1
  114. package/dist/esm/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
  115. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
  116. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
  117. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js +0 -12
  118. package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
  119. package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts +200 -441
  120. package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
  121. package/dist/esm/project-client/services/broadcasts/models/providers.d.ts +102 -60
  122. package/dist/esm/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
  123. package/dist/esm/project-client/services/broadcasts/models/providers.js +35 -20
  124. package/dist/esm/project-client/services/broadcasts/models/providers.js.map +1 -1
  125. package/dist/esm/project-client/services/broadcasts/models/sms.d.ts +3 -3
  126. package/dist/esm/project-client/services/channels/channels-service.d.ts +48 -48
  127. package/dist/esm/project-client/services/channels/channels-service.d.ts.map +1 -1
  128. package/dist/esm/project-client/services/channels/channels-service.js +59 -59
  129. package/dist/esm/project-client/services/channels/channels-service.js.map +1 -1
  130. package/dist/esm/project-client/services/channels/models/discard-result.d.ts +8 -8
  131. package/dist/esm/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  132. package/dist/esm/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
  133. package/dist/esm/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
  134. package/dist/esm/project-client/services/channels/models/slack-token.d.ts +8 -8
  135. package/dist/esm/project-client/services/channels/request-params.d.ts +7 -10
  136. package/dist/esm/project-client/services/channels/request-params.d.ts.map +1 -1
  137. package/dist/esm/project-client/services/common/index.d.ts +1 -0
  138. package/dist/esm/project-client/services/common/index.d.ts.map +1 -1
  139. package/dist/esm/project-client/services/{users/models → common}/user.d.ts +24 -24
  140. package/dist/esm/project-client/services/common/user.d.ts.map +1 -0
  141. package/dist/esm/project-client/services/common/user.js.map +1 -0
  142. package/dist/esm/project-client/services/events/events-service.d.ts +3 -3
  143. package/dist/esm/project-client/services/events/events-service.d.ts.map +1 -1
  144. package/dist/esm/project-client/services/events/events-service.js +6 -6
  145. package/dist/esm/project-client/services/events/events-service.js.map +1 -1
  146. package/dist/esm/project-client/services/integrations/integrations-service.d.ts +97 -193
  147. package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
  148. package/dist/esm/project-client/services/integrations/integrations-service.js +128 -528
  149. package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
  150. package/dist/esm/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
  151. package/dist/esm/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  152. package/dist/esm/project-client/services/integrations/models/inbox-config.d.ts +140 -140
  153. package/dist/esm/project-client/services/integrations/models/theme.d.ts +56 -56
  154. package/dist/esm/project-client/services/integrations/request-params.d.ts +48 -0
  155. package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
  156. package/dist/esm/project-client/services/users/models/index.d.ts +0 -1
  157. package/dist/esm/project-client/services/users/models/index.d.ts.map +1 -1
  158. package/dist/esm/project-client/services/users/models/user-collection.d.ts +42 -42
  159. package/dist/esm/project-client/services/users/models/user-collection.js +1 -1
  160. package/dist/esm/project-client/services/users/models/user-collection.js.map +1 -1
  161. package/dist/esm/project-client/services/users/users-service.d.ts +6 -6
  162. package/dist/esm/project-client/services/users/users-service.d.ts.map +1 -1
  163. package/dist/esm/project-client/services/users/users-service.js +8 -8
  164. package/dist/esm/project-client/services/users/users-service.js.map +1 -1
  165. package/dist/esm/user-client/services/channels/channels-service.d.ts +61 -61
  166. package/dist/esm/user-client/services/channels/channels-service.d.ts.map +1 -1
  167. package/dist/esm/user-client/services/channels/channels-service.js +74 -74
  168. package/dist/esm/user-client/services/channels/channels-service.js.map +1 -1
  169. package/dist/esm/user-client/services/channels/models/discard-result.d.ts +8 -8
  170. package/dist/esm/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
  171. package/dist/esm/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
  172. package/dist/esm/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
  173. package/dist/esm/user-client/services/channels/models/slack-token.d.ts +8 -8
  174. package/dist/esm/user-client/services/channels/request-params.d.ts +7 -7
  175. package/dist/esm/user-client/services/channels/request-params.d.ts.map +1 -1
  176. package/dist/esm/user-client/services/integrations/integrations-service.d.ts +12 -12
  177. package/dist/esm/user-client/services/integrations/integrations-service.js +20 -20
  178. package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
  179. package/dist/esm/user-client/services/integrations/models/authed-user.d.ts +8 -8
  180. package/dist/esm/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
  181. package/dist/esm/user-client/services/integrations/models/slack-installation.d.ts +57 -57
  182. package/dist/esm/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
  183. package/dist/esm/user-client/services/integrations/models/theme.d.ts +56 -56
  184. package/dist/esm/user-client/services/notifications/models/notification-collection.d.ts +56 -56
  185. package/dist/esm/user-client/services/notifications/models/notification.d.ts +32 -32
  186. package/dist/esm/user-client/services/notifications/notifications-service.d.ts +6 -6
  187. package/dist/esm/user-client/services/notifications/notifications-service.d.ts.map +1 -1
  188. package/dist/esm/user-client/services/notifications/notifications-service.js +5 -5
  189. package/dist/esm/user-client/services/notifications/notifications-service.js.map +1 -1
  190. package/dist/esm/user-client/services/notifications/request-params.d.ts +2 -2
  191. package/dist/esm/user-client/services/notifications/request-params.d.ts.map +1 -1
  192. package/package.json +2 -2
  193. package/src/project-client/index.ts +0 -20
  194. package/src/project-client/services/broadcasts/broadcasts-service.ts +1 -1
  195. package/src/project-client/services/broadcasts/models/broadcast.ts +8 -7
  196. package/src/project-client/services/broadcasts/models/index.ts +0 -2
  197. package/src/project-client/services/broadcasts/models/overrides-channels.ts +0 -14
  198. package/src/project-client/services/broadcasts/models/providers.ts +38 -20
  199. package/src/project-client/services/channels/channels-service.ts +74 -78
  200. package/src/project-client/services/channels/request-params.ts +7 -11
  201. package/src/project-client/services/common/index.ts +1 -0
  202. package/src/project-client/services/events/events-service.ts +6 -6
  203. package/src/project-client/services/integrations/integrations-service.ts +195 -545
  204. package/src/project-client/services/integrations/request-params.ts +64 -0
  205. package/src/project-client/services/users/models/index.ts +0 -1
  206. package/src/project-client/services/users/models/user-collection.ts +1 -1
  207. package/src/project-client/services/users/users-service.ts +8 -8
  208. package/src/user-client/services/channels/channels-service.ts +88 -106
  209. package/src/user-client/services/channels/request-params.ts +7 -7
  210. package/src/user-client/services/integrations/integrations-service.ts +20 -20
  211. package/src/user-client/services/notifications/notifications-service.ts +12 -8
  212. package/src/user-client/services/notifications/request-params.ts +2 -2
  213. package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts +0 -76
  214. package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
  215. package/dist/commonjs/project-client/services/broadcasts/models/slack.js +0 -49
  216. package/dist/commonjs/project-client/services/broadcasts/models/slack.js.map +0 -1
  217. package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts +0 -76
  218. package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
  219. package/dist/commonjs/project-client/services/broadcasts/models/web-push.js +0 -49
  220. package/dist/commonjs/project-client/services/broadcasts/models/web-push.js.map +0 -1
  221. package/dist/commonjs/project-client/services/jwt/index.d.ts +0 -3
  222. package/dist/commonjs/project-client/services/jwt/index.d.ts.map +0 -1
  223. package/dist/commonjs/project-client/services/jwt/index.js +0 -8
  224. package/dist/commonjs/project-client/services/jwt/index.js.map +0 -1
  225. package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts +0 -32
  226. package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts.map +0 -1
  227. package/dist/commonjs/project-client/services/jwt/jwt-service.js +0 -113
  228. package/dist/commonjs/project-client/services/jwt/jwt-service.js.map +0 -1
  229. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
  230. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
  231. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js +0 -46
  232. package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js.map +0 -1
  233. package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts +0 -104
  234. package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts.map +0 -1
  235. package/dist/commonjs/project-client/services/jwt/models/access-token.js +0 -59
  236. package/dist/commonjs/project-client/services/jwt/models/access-token.js.map +0 -1
  237. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
  238. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
  239. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js +0 -44
  240. package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
  241. package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts +0 -90
  242. package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
  243. package/dist/commonjs/project-client/services/jwt/models/create-token-response.js +0 -54
  244. package/dist/commonjs/project-client/services/jwt/models/create-token-response.js.map +0 -1
  245. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
  246. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
  247. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js +0 -44
  248. package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js.map +0 -1
  249. package/dist/commonjs/project-client/services/jwt/models/index.d.ts +0 -6
  250. package/dist/commonjs/project-client/services/jwt/models/index.d.ts.map +0 -1
  251. package/dist/commonjs/project-client/services/jwt/models/index.js +0 -3
  252. package/dist/commonjs/project-client/services/jwt/models/index.js.map +0 -1
  253. package/dist/commonjs/project-client/services/jwt/request-params.d.ts +0 -6
  254. package/dist/commonjs/project-client/services/jwt/request-params.d.ts.map +0 -1
  255. package/dist/commonjs/project-client/services/jwt/request-params.js +0 -3
  256. package/dist/commonjs/project-client/services/jwt/request-params.js.map +0 -1
  257. package/dist/commonjs/project-client/services/notifications/index.d.ts +0 -3
  258. package/dist/commonjs/project-client/services/notifications/index.d.ts.map +0 -1
  259. package/dist/commonjs/project-client/services/notifications/index.js +0 -8
  260. package/dist/commonjs/project-client/services/notifications/index.js.map +0 -1
  261. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
  262. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
  263. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js +0 -46
  264. package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
  265. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
  266. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
  267. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js +0 -79
  268. package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js.map +0 -1
  269. package/dist/commonjs/project-client/services/notifications/models/index.d.ts +0 -3
  270. package/dist/commonjs/project-client/services/notifications/models/index.d.ts.map +0 -1
  271. package/dist/commonjs/project-client/services/notifications/models/index.js +0 -3
  272. package/dist/commonjs/project-client/services/notifications/models/index.js.map +0 -1
  273. package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts +0 -13
  274. package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts.map +0 -1
  275. package/dist/commonjs/project-client/services/notifications/notifications-service.js +0 -43
  276. package/dist/commonjs/project-client/services/notifications/notifications-service.js.map +0 -1
  277. package/dist/commonjs/project-client/services/users/models/user.d.ts.map +0 -1
  278. package/dist/commonjs/project-client/services/users/models/user.js.map +0 -1
  279. package/dist/esm/project-client/services/broadcasts/models/slack.d.ts +0 -76
  280. package/dist/esm/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
  281. package/dist/esm/project-client/services/broadcasts/models/slack.js +0 -46
  282. package/dist/esm/project-client/services/broadcasts/models/slack.js.map +0 -1
  283. package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts +0 -76
  284. package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
  285. package/dist/esm/project-client/services/broadcasts/models/web-push.js +0 -46
  286. package/dist/esm/project-client/services/broadcasts/models/web-push.js.map +0 -1
  287. package/dist/esm/project-client/services/jwt/index.d.ts +0 -3
  288. package/dist/esm/project-client/services/jwt/index.d.ts.map +0 -1
  289. package/dist/esm/project-client/services/jwt/index.js +0 -3
  290. package/dist/esm/project-client/services/jwt/index.js.map +0 -1
  291. package/dist/esm/project-client/services/jwt/jwt-service.d.ts +0 -32
  292. package/dist/esm/project-client/services/jwt/jwt-service.d.ts.map +0 -1
  293. package/dist/esm/project-client/services/jwt/jwt-service.js +0 -109
  294. package/dist/esm/project-client/services/jwt/jwt-service.js.map +0 -1
  295. package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
  296. package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
  297. package/dist/esm/project-client/services/jwt/models/access-token-collection.js +0 -43
  298. package/dist/esm/project-client/services/jwt/models/access-token-collection.js.map +0 -1
  299. package/dist/esm/project-client/services/jwt/models/access-token.d.ts +0 -104
  300. package/dist/esm/project-client/services/jwt/models/access-token.d.ts.map +0 -1
  301. package/dist/esm/project-client/services/jwt/models/access-token.js +0 -56
  302. package/dist/esm/project-client/services/jwt/models/access-token.js.map +0 -1
  303. package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
  304. package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
  305. package/dist/esm/project-client/services/jwt/models/create-project-token-request.js +0 -41
  306. package/dist/esm/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
  307. package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts +0 -90
  308. package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
  309. package/dist/esm/project-client/services/jwt/models/create-token-response.js +0 -51
  310. package/dist/esm/project-client/services/jwt/models/create-token-response.js.map +0 -1
  311. package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
  312. package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
  313. package/dist/esm/project-client/services/jwt/models/discard-token-response.js +0 -41
  314. package/dist/esm/project-client/services/jwt/models/discard-token-response.js.map +0 -1
  315. package/dist/esm/project-client/services/jwt/models/index.d.ts +0 -6
  316. package/dist/esm/project-client/services/jwt/models/index.d.ts.map +0 -1
  317. package/dist/esm/project-client/services/jwt/models/index.js +0 -2
  318. package/dist/esm/project-client/services/jwt/models/index.js.map +0 -1
  319. package/dist/esm/project-client/services/jwt/request-params.d.ts +0 -6
  320. package/dist/esm/project-client/services/jwt/request-params.d.ts.map +0 -1
  321. package/dist/esm/project-client/services/jwt/request-params.js +0 -2
  322. package/dist/esm/project-client/services/jwt/request-params.js.map +0 -1
  323. package/dist/esm/project-client/services/notifications/index.d.ts +0 -3
  324. package/dist/esm/project-client/services/notifications/index.d.ts.map +0 -1
  325. package/dist/esm/project-client/services/notifications/index.js +0 -3
  326. package/dist/esm/project-client/services/notifications/index.js.map +0 -1
  327. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
  328. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
  329. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js +0 -43
  330. package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
  331. package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
  332. package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
  333. package/dist/esm/project-client/services/notifications/models/delivery-plan.js +0 -76
  334. package/dist/esm/project-client/services/notifications/models/delivery-plan.js.map +0 -1
  335. package/dist/esm/project-client/services/notifications/models/index.d.ts +0 -3
  336. package/dist/esm/project-client/services/notifications/models/index.d.ts.map +0 -1
  337. package/dist/esm/project-client/services/notifications/models/index.js +0 -2
  338. package/dist/esm/project-client/services/notifications/models/index.js.map +0 -1
  339. package/dist/esm/project-client/services/notifications/notifications-service.d.ts +0 -13
  340. package/dist/esm/project-client/services/notifications/notifications-service.d.ts.map +0 -1
  341. package/dist/esm/project-client/services/notifications/notifications-service.js +0 -39
  342. package/dist/esm/project-client/services/notifications/notifications-service.js.map +0 -1
  343. package/dist/esm/project-client/services/users/models/user.d.ts.map +0 -1
  344. package/dist/esm/project-client/services/users/models/user.js.map +0 -1
  345. package/src/project-client/services/broadcasts/models/slack.ts +0 -57
  346. package/src/project-client/services/broadcasts/models/web-push.ts +0 -57
  347. package/src/project-client/services/jwt/index.ts +0 -2
  348. package/src/project-client/services/jwt/jwt-service.ts +0 -121
  349. package/src/project-client/services/jwt/models/access-token-collection.ts +0 -54
  350. package/src/project-client/services/jwt/models/access-token.ts +0 -69
  351. package/src/project-client/services/jwt/models/create-project-token-request.ts +0 -51
  352. package/src/project-client/services/jwt/models/create-token-response.ts +0 -63
  353. package/src/project-client/services/jwt/models/discard-token-response.ts +0 -51
  354. package/src/project-client/services/jwt/models/index.ts +0 -5
  355. package/src/project-client/services/jwt/request-params.ts +0 -5
  356. package/src/project-client/services/notifications/index.ts +0 -2
  357. package/src/project-client/services/notifications/models/delivery-plan-collection.ts +0 -54
  358. package/src/project-client/services/notifications/models/delivery-plan.ts +0 -93
  359. package/src/project-client/services/notifications/models/index.ts +0 -2
  360. package/src/project-client/services/notifications/notifications-service.ts +0 -45
  361. /package/dist/commonjs/project-client/services/{users/models → common}/user.js +0 -0
  362. /package/dist/esm/project-client/services/{users/models → common}/user.js +0 -0
  363. /package/src/project-client/services/{users/models → common}/user.ts +0 -0
@@ -38,9 +38,9 @@ import {
38
38
 
39
39
  export class IntegrationsService extends BaseService {
40
40
  /**
41
- * Creates a new installation of a inbox integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
41
+ * Creates a new installation of a Inbox integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
42
42
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
43
- * @returns {Promise<HttpResponse<InboxConfigPayload>>} Created
43
+ * @returns {Promise<HttpResponse<InboxConfigPayload>>} OK
44
44
  */
45
45
  async saveInboxInstallation(
46
46
  body: InboxConfigPayload,
@@ -49,7 +49,7 @@ export class IntegrationsService extends BaseService {
49
49
  const request = new RequestBuilder()
50
50
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
51
51
  .setConfig(this.config)
52
- .setMethod('POST')
52
+ .setMethod('PUT')
53
53
  .setPath('/integrations/inbox/installations')
54
54
  .setRequestSchema(inboxConfigPayloadRequest)
55
55
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -57,7 +57,7 @@ export class IntegrationsService extends BaseService {
57
57
  .addResponse({
58
58
  schema: inboxConfigPayloadResponse,
59
59
  contentType: ContentType.Json,
60
- status: 201,
60
+ status: 200,
61
61
  })
62
62
  .setRetryAttempts(this.config, requestConfig)
63
63
  .setRetryDelayMs(this.config, requestConfig)
@@ -69,7 +69,7 @@ export class IntegrationsService extends BaseService {
69
69
  }
70
70
 
71
71
  /**
72
- * Initiates the installation flow for a inbox integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
72
+ * Initiates the installation flow for an Inbox integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
73
73
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
74
74
  * @returns {Promise<HttpResponse<InboxConfigPayload>>} Created
75
75
  */
@@ -95,9 +95,9 @@ export class IntegrationsService extends BaseService {
95
95
  }
96
96
 
97
97
  /**
98
- * Creates a new installation of a slack integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
98
+ * Creates a new installation of a Slack integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
99
99
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
100
- * @returns {Promise<HttpResponse<SlackInstallation>>} Created
100
+ * @returns {Promise<HttpResponse<SlackInstallation>>} OK
101
101
  */
102
102
  async saveSlackInstallation(
103
103
  body: SlackInstallation,
@@ -106,7 +106,7 @@ export class IntegrationsService extends BaseService {
106
106
  const request = new RequestBuilder()
107
107
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
108
108
  .setConfig(this.config)
109
- .setMethod('POST')
109
+ .setMethod('PUT')
110
110
  .setPath('/integrations/slack/installations')
111
111
  .setRequestSchema(slackInstallationRequest)
112
112
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -114,7 +114,7 @@ export class IntegrationsService extends BaseService {
114
114
  .addResponse({
115
115
  schema: slackInstallationResponse,
116
116
  contentType: ContentType.Json,
117
- status: 201,
117
+ status: 200,
118
118
  })
119
119
  .setRetryAttempts(this.config, requestConfig)
120
120
  .setRetryDelayMs(this.config, requestConfig)
@@ -126,7 +126,7 @@ export class IntegrationsService extends BaseService {
126
126
  }
127
127
 
128
128
  /**
129
- * Completes the installation flow for a slack integration. This endpoint is typically called after the user has completed any required authorization steps with slack.
129
+ * Completes the installation flow for the Slack integration. This endpoint is typically called after the user has completed any required authorization steps with Slack.
130
130
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
131
131
  * @returns {Promise<HttpResponse<SlackInstallation>>} Created
132
132
  */
@@ -157,7 +157,7 @@ export class IntegrationsService extends BaseService {
157
157
  }
158
158
 
159
159
  /**
160
- * Initiates the installation flow for a slack integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
160
+ * Initiates the installation flow for a Slack integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
161
161
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
162
162
  * @returns {Promise<HttpResponse<SlackStartInstallResponseContent>>} Created
163
163
  */
@@ -188,9 +188,9 @@ export class IntegrationsService extends BaseService {
188
188
  }
189
189
 
190
190
  /**
191
- * Creates a new installation of a templates integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
191
+ * Creates a new installation of a Templates integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
192
192
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
193
- * @returns {Promise<HttpResponse<TemplatesInstallation>>} Created
193
+ * @returns {Promise<HttpResponse<TemplatesInstallation>>} OK
194
194
  */
195
195
  async saveTemplatesInstallation(
196
196
  body: TemplatesInstallation,
@@ -199,7 +199,7 @@ export class IntegrationsService extends BaseService {
199
199
  const request = new RequestBuilder()
200
200
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
201
201
  .setConfig(this.config)
202
- .setMethod('POST')
202
+ .setMethod('PUT')
203
203
  .setPath('/integrations/templates/installations')
204
204
  .setRequestSchema(templatesInstallationRequest)
205
205
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -207,7 +207,7 @@ export class IntegrationsService extends BaseService {
207
207
  .addResponse({
208
208
  schema: templatesInstallationResponse,
209
209
  contentType: ContentType.Json,
210
- status: 201,
210
+ status: 200,
211
211
  })
212
212
  .setRetryAttempts(this.config, requestConfig)
213
213
  .setRetryDelayMs(this.config, requestConfig)
@@ -219,9 +219,9 @@ export class IntegrationsService extends BaseService {
219
219
  }
220
220
 
221
221
  /**
222
- * Creates a new installation of a web_push integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
222
+ * Creates a new installation of a Web Push integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
223
223
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
224
- * @returns {Promise<HttpResponse<WebPushTokenPayload>>} Created
224
+ * @returns {Promise<HttpResponse<WebPushTokenPayload>>} OK
225
225
  */
226
226
  async saveWebPushInstallation(
227
227
  body: WebPushTokenPayload,
@@ -230,7 +230,7 @@ export class IntegrationsService extends BaseService {
230
230
  const request = new RequestBuilder()
231
231
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
232
232
  .setConfig(this.config)
233
- .setMethod('POST')
233
+ .setMethod('PUT')
234
234
  .setPath('/integrations/web_push/installations')
235
235
  .setRequestSchema(webPushTokenPayloadRequest)
236
236
  .addAccessTokenAuth(this.config.token, 'Bearer')
@@ -238,7 +238,7 @@ export class IntegrationsService extends BaseService {
238
238
  .addResponse({
239
239
  schema: webPushTokenPayloadResponse,
240
240
  contentType: ContentType.Json,
241
- status: 201,
241
+ status: 200,
242
242
  })
243
243
  .setRetryAttempts(this.config, requestConfig)
244
244
  .setRetryDelayMs(this.config, requestConfig)
@@ -250,7 +250,7 @@ export class IntegrationsService extends BaseService {
250
250
  }
251
251
 
252
252
  /**
253
- * Initiates the installation flow for a web_push integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
253
+ * Initiates the installation flow for a Web Push integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
254
254
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
255
255
  * @returns {Promise<HttpResponse<WebPushStartInstallationResponse>>} Created
256
256
  */
@@ -8,7 +8,11 @@ import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
8
8
  import { BaseService } from '../base-service.js';
9
9
  import { Notification, notificationResponse } from './models/notification.js';
10
10
  import { NotificationCollection, notificationCollectionResponse } from './models/notification-collection.js';
11
- import { ArchiveNotificationsParams, ListNotificationsParams, MarkNotificationsReadParams } from './request-params.js';
11
+ import {
12
+ ArchiveAllNotificationsParams,
13
+ ListNotificationsParams,
14
+ MarkAllNotificationsReadParams,
15
+ } from './request-params.js';
12
16
 
13
17
  export class NotificationsService extends BaseService {
14
18
  /**
@@ -71,14 +75,14 @@ export class NotificationsService extends BaseService {
71
75
  }
72
76
 
73
77
  /**
74
- * Archives all notifications.
78
+ * Archive all notifications.
75
79
  * @param {string} [params.category] -
76
80
  * @param {string} [params.topic] -
77
81
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
78
82
  * @returns {Promise<HttpResponse<any>>} No Content
79
83
  */
80
- async archiveNotifications(
81
- params?: ArchiveNotificationsParams,
84
+ async archiveAllNotifications(
85
+ params?: ArchiveAllNotificationsParams,
82
86
  requestConfig?: RequestConfig,
83
87
  ): Promise<HttpResponse<void>> {
84
88
  const request = new RequestBuilder()
@@ -116,8 +120,8 @@ export class NotificationsService extends BaseService {
116
120
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
117
121
  * @returns {Promise<HttpResponse<any>>} No Content
118
122
  */
119
- async markNotificationsRead(
120
- params?: MarkNotificationsReadParams,
123
+ async markAllNotificationsRead(
124
+ params?: MarkAllNotificationsReadParams,
121
125
  requestConfig?: RequestConfig,
122
126
  ): Promise<HttpResponse<void>> {
123
127
  const request = new RequestBuilder()
@@ -154,7 +158,7 @@ export class NotificationsService extends BaseService {
154
158
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
155
159
  * @returns {Promise<HttpResponse<Notification>>} OK
156
160
  */
157
- async getNotification(notificationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<Notification>> {
161
+ async fetchNotification(notificationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<Notification>> {
158
162
  const request = new RequestBuilder()
159
163
  .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
160
164
  .setConfig(this.config)
@@ -180,7 +184,7 @@ export class NotificationsService extends BaseService {
180
184
  }
181
185
 
182
186
  /**
183
- * Archives a notification.
187
+ * Archive a notification.
184
188
  * @param {string} notificationId -
185
189
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
186
190
  * @returns {Promise<HttpResponse<any>>} No Content
@@ -7,12 +7,12 @@ export interface ListNotificationsParams {
7
7
  topic?: string;
8
8
  }
9
9
 
10
- export interface ArchiveNotificationsParams {
10
+ export interface ArchiveAllNotificationsParams {
11
11
  category?: string;
12
12
  topic?: string;
13
13
  }
14
14
 
15
- export interface MarkNotificationsReadParams {
15
+ export interface MarkAllNotificationsReadParams {
16
16
  category?: string;
17
17
  topic?: string;
18
18
  }
@@ -1,76 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * The shape of the model inside the application code - what the users use
4
- */
5
- export declare const slack: z.ZodLazy<z.ZodObject<{
6
- actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
- content: z.ZodOptional<z.ZodString>;
8
- title: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- actionUrl?: string | null | undefined;
11
- content?: string | undefined;
12
- title?: string | undefined;
13
- }, {
14
- actionUrl?: string | null | undefined;
15
- content?: string | undefined;
16
- title?: string | undefined;
17
- }>>;
18
- /**
19
- *
20
- * @typedef {Slack} slack
21
- * @property {string}
22
- * @property {string}
23
- * @property {string}
24
- */
25
- export type Slack = z.infer<typeof slack>;
26
- /**
27
- * The shape of the model mapping from the api schema into the application shape.
28
- * Is equal to application shape if all property names match the api schema
29
- */
30
- export declare const slackResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
31
- action_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
- content: z.ZodOptional<z.ZodString>;
33
- title: z.ZodOptional<z.ZodString>;
34
- }, "strip", z.ZodTypeAny, {
35
- content?: string | undefined;
36
- title?: string | undefined;
37
- action_url?: string | null | undefined;
38
- }, {
39
- content?: string | undefined;
40
- title?: string | undefined;
41
- action_url?: string | null | undefined;
42
- }>, {
43
- actionUrl: string | null | undefined;
44
- content: string | undefined;
45
- title: string | undefined;
46
- }, {
47
- content?: string | undefined;
48
- title?: string | undefined;
49
- action_url?: string | null | undefined;
50
- }>>;
51
- /**
52
- * The shape of the model mapping from the application shape into the api schema.
53
- * Is equal to application shape if all property names match the api schema
54
- */
55
- export declare const slackRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
56
- actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
57
- content: z.ZodOptional<z.ZodString>;
58
- title: z.ZodOptional<z.ZodString>;
59
- }, "strip", z.ZodTypeAny, {
60
- actionUrl?: string | null | undefined;
61
- content?: string | undefined;
62
- title?: string | undefined;
63
- }, {
64
- actionUrl?: string | null | undefined;
65
- content?: string | undefined;
66
- title?: string | undefined;
67
- }>, {
68
- action_url: string | null | undefined;
69
- content: string | undefined;
70
- title: string | undefined;
71
- }, {
72
- actionUrl?: string | null | undefined;
73
- content?: string | undefined;
74
- title?: string | undefined;
75
- }>>;
76
- //# sourceMappingURL=slack.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/slack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;GAMhB,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;GAYxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;GAYvB,CAAC"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.slackRequest = exports.slackResponse = exports.slack = void 0;
4
- const zod_1 = require("zod");
5
- /**
6
- * The shape of the model inside the application code - what the users use
7
- */
8
- exports.slack = zod_1.z.lazy(() => {
9
- return zod_1.z.object({
10
- actionUrl: zod_1.z.string().max(2048).optional().nullable(),
11
- content: zod_1.z.string().max(1048576).optional(),
12
- title: zod_1.z.string().min(1).max(255).optional(),
13
- });
14
- });
15
- /**
16
- * The shape of the model mapping from the api schema into the application shape.
17
- * Is equal to application shape if all property names match the api schema
18
- */
19
- exports.slackResponse = zod_1.z.lazy(() => {
20
- return zod_1.z
21
- .object({
22
- action_url: zod_1.z.string().max(2048).optional().nullable(),
23
- content: zod_1.z.string().max(1048576).optional(),
24
- title: zod_1.z.string().min(1).max(255).optional(),
25
- })
26
- .transform((data) => ({
27
- actionUrl: data['action_url'],
28
- content: data['content'],
29
- title: data['title'],
30
- }));
31
- });
32
- /**
33
- * The shape of the model mapping from the application shape into the api schema.
34
- * Is equal to application shape if all property names match the api schema
35
- */
36
- exports.slackRequest = zod_1.z.lazy(() => {
37
- return zod_1.z
38
- .object({
39
- actionUrl: zod_1.z.string().max(2048).optional().nullable(),
40
- content: zod_1.z.string().max(1048576).optional(),
41
- title: zod_1.z.string().min(1).max(255).optional(),
42
- })
43
- .transform((data) => ({
44
- action_url: data['actionUrl'],
45
- content: data['content'],
46
- title: data['title'],
47
- }));
48
- });
49
- //# sourceMappingURL=slack.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slack.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/slack.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,KAAK,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC/B,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWH;;;GAGG;AACU,QAAA,aAAa,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACvC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACtC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
@@ -1,76 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * The shape of the model inside the application code - what the users use
4
- */
5
- export declare const webPush: z.ZodLazy<z.ZodObject<{
6
- actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
- content: z.ZodOptional<z.ZodString>;
8
- title: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- actionUrl?: string | null | undefined;
11
- content?: string | undefined;
12
- title?: string | undefined;
13
- }, {
14
- actionUrl?: string | null | undefined;
15
- content?: string | undefined;
16
- title?: string | undefined;
17
- }>>;
18
- /**
19
- *
20
- * @typedef {WebPush} webPush
21
- * @property {string}
22
- * @property {string}
23
- * @property {string}
24
- */
25
- export type WebPush = z.infer<typeof webPush>;
26
- /**
27
- * The shape of the model mapping from the api schema into the application shape.
28
- * Is equal to application shape if all property names match the api schema
29
- */
30
- export declare const webPushResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
31
- action_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
- content: z.ZodOptional<z.ZodString>;
33
- title: z.ZodOptional<z.ZodString>;
34
- }, "strip", z.ZodTypeAny, {
35
- content?: string | undefined;
36
- title?: string | undefined;
37
- action_url?: string | null | undefined;
38
- }, {
39
- content?: string | undefined;
40
- title?: string | undefined;
41
- action_url?: string | null | undefined;
42
- }>, {
43
- actionUrl: string | null | undefined;
44
- content: string | undefined;
45
- title: string | undefined;
46
- }, {
47
- content?: string | undefined;
48
- title?: string | undefined;
49
- action_url?: string | null | undefined;
50
- }>>;
51
- /**
52
- * The shape of the model mapping from the application shape into the api schema.
53
- * Is equal to application shape if all property names match the api schema
54
- */
55
- export declare const webPushRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
56
- actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
57
- content: z.ZodOptional<z.ZodString>;
58
- title: z.ZodOptional<z.ZodString>;
59
- }, "strip", z.ZodTypeAny, {
60
- actionUrl?: string | null | undefined;
61
- content?: string | undefined;
62
- title?: string | undefined;
63
- }, {
64
- actionUrl?: string | null | undefined;
65
- content?: string | undefined;
66
- title?: string | undefined;
67
- }>, {
68
- action_url: string | null | undefined;
69
- content: string | undefined;
70
- title: string | undefined;
71
- }, {
72
- actionUrl?: string | null | undefined;
73
- content?: string | undefined;
74
- title?: string | undefined;
75
- }>>;
76
- //# sourceMappingURL=web-push.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"web-push.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/web-push.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;GAMlB,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;GAY1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;GAYzB,CAAC"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.webPushRequest = exports.webPushResponse = exports.webPush = void 0;
4
- const zod_1 = require("zod");
5
- /**
6
- * The shape of the model inside the application code - what the users use
7
- */
8
- exports.webPush = zod_1.z.lazy(() => {
9
- return zod_1.z.object({
10
- actionUrl: zod_1.z.string().max(2048).optional().nullable(),
11
- content: zod_1.z.string().max(1048576).optional(),
12
- title: zod_1.z.string().min(1).max(255).optional(),
13
- });
14
- });
15
- /**
16
- * The shape of the model mapping from the api schema into the application shape.
17
- * Is equal to application shape if all property names match the api schema
18
- */
19
- exports.webPushResponse = zod_1.z.lazy(() => {
20
- return zod_1.z
21
- .object({
22
- action_url: zod_1.z.string().max(2048).optional().nullable(),
23
- content: zod_1.z.string().max(1048576).optional(),
24
- title: zod_1.z.string().min(1).max(255).optional(),
25
- })
26
- .transform((data) => ({
27
- actionUrl: data['action_url'],
28
- content: data['content'],
29
- title: data['title'],
30
- }));
31
- });
32
- /**
33
- * The shape of the model mapping from the application shape into the api schema.
34
- * Is equal to application shape if all property names match the api schema
35
- */
36
- exports.webPushRequest = zod_1.z.lazy(() => {
37
- return zod_1.z
38
- .object({
39
- actionUrl: zod_1.z.string().max(2048).optional().nullable(),
40
- content: zod_1.z.string().max(1048576).optional(),
41
- title: zod_1.z.string().min(1).max(255).optional(),
42
- })
43
- .transform((data) => ({
44
- action_url: data['actionUrl'],
45
- content: data['content'],
46
- title: data['title'],
47
- }));
48
- });
49
- //# sourceMappingURL=web-push.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"web-push.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/web-push.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,OAAO,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACjC,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWH;;;GAGG;AACU,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACzC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACxC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { JwtService } from './jwt-service.js';
2
- export * from './models/index.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/project-client/services/jwt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,cAAc,mBAAmB,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JwtService = void 0;
4
- const tslib_1 = require("tslib");
5
- var jwt_service_js_1 = require("./jwt-service.js");
6
- Object.defineProperty(exports, "JwtService", { enumerable: true, get: function () { return jwt_service_js_1.JwtService; } });
7
- tslib_1.__exportStar(require("./models/index.js"), exports);
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/project-client/services/jwt/index.ts"],"names":[],"mappings":";;;;AAAA,mDAA8C;AAArC,4GAAA,UAAU,OAAA;AACnB,4DAAkC"}
@@ -1,32 +0,0 @@
1
- import { HttpResponse, RequestConfig } from '../../http/types.js';
2
- import { BaseService } from '../base-service.js';
3
- import { AccessTokenCollection } from './models/access-token-collection.js';
4
- import { CreateProjectTokenRequest } from './models/create-project-token-request.js';
5
- import { CreateTokenResponse } from './models/create-token-response.js';
6
- import { DiscardTokenResponse } from './models/discard-token-response.js';
7
- import { FetchProjectTokensParams } from './request-params.js';
8
- export declare class JwtService extends BaseService {
9
- /**
10
- * Retrieves a list of all active project-level JWT tokens. Returns a paginated list showing token metadata including creation date, last used date, and expiration time. For security reasons, the actual token values are not included in the response.
11
- * @param {number} [params.limit] -
12
- * @param {string} [params.startingAfter] -
13
- * @param {string} [params.endingBefore] -
14
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
15
- * @returns {Promise<HttpResponse<AccessTokenCollection>>} OK
16
- */
17
- fetchProjectTokens(params?: FetchProjectTokensParams, requestConfig?: RequestConfig): Promise<HttpResponse<AccessTokenCollection>>;
18
- /**
19
- * Creates a new project-level JWT token. These tokens provide project-wide access and should be carefully managed. Only administrators can create project tokens. The returned token should be securely stored as it cannot be retrieved again after creation.
20
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
21
- * @returns {Promise<HttpResponse<CreateTokenResponse>>} Created
22
- */
23
- createProjectJwt(body: CreateProjectTokenRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreateTokenResponse>>;
24
- /**
25
- * Immediately revokes a project-level JWT token. Once revoked, any requests using this token will be rejected. This action is immediate and cannot be undone. Active sessions using this token will be terminated.
26
- * @param {string} tokenId -
27
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
28
- * @returns {Promise<HttpResponse<DiscardTokenResponse>>} OK
29
- */
30
- discardProjectJwt(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardTokenResponse>>;
31
- }
32
- //# sourceMappingURL=jwt-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jwt-service.d.ts","sourceRoot":"","sources":["../../../../../src/project-client/services/jwt/jwt-service.ts"],"names":[],"mappings":"AAMA,OAAO,EAAe,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAiC,MAAM,qCAAqC,CAAC;AAC3G,OAAO,EAAE,yBAAyB,EAAoC,MAAM,0CAA0C,CAAC;AACvH,OAAO,EAAE,mBAAmB,EAA+B,MAAM,mCAAmC,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAgC,MAAM,oCAAoC,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACG,kBAAkB,CACtB,MAAM,CAAC,EAAE,wBAAwB,EACjC,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAiC/C;;;;OAIG;IACG,gBAAgB,CACpB,IAAI,EAAE,yBAAyB,EAC/B,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IAuB7C;;;;;OAKG;IACG,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAwBrH"}