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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/notifications/models/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/notifications/models/index.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- import { HttpResponse, RequestConfig } from '../../http/types.js';
2
- import { BaseService } from '../base-service.js';
3
- import { DeliveryPlanCollection } from './models/delivery-plan-collection.js';
4
- export declare class NotificationsService extends BaseService {
5
- /**
6
- * Get the delivery plan for a notification.
7
- * @param {string} notificationId -
8
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
9
- * @returns {Promise<HttpResponse<DeliveryPlanCollection>>} OK
10
- */
11
- getDeliveryplan(notificationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DeliveryPlanCollection>>;
12
- }
13
- //# sourceMappingURL=notifications-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications-service.d.ts","sourceRoot":"","sources":["../../../../../src/project-client/services/notifications/notifications-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,sBAAsB,EAAkC,MAAM,sCAAsC,CAAC;AAE9G,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;OAKG;IACG,eAAe,CACnB,cAAc,EAAE,MAAM,EACtB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;CAwBjD"}
@@ -1,39 +0,0 @@
1
- import { z } from 'zod';
2
- import { Environment } from '../../http/environment.js';
3
- import { RequestBuilder } from '../../http/transport/request-builder.js';
4
- import { ContentType } from '../../http/types.js';
5
- import { BaseService } from '../base-service.js';
6
- import { deliveryPlanCollectionResponse } from './models/delivery-plan-collection.js';
7
- export class NotificationsService extends BaseService {
8
- /**
9
- * Get the delivery plan for a notification.
10
- * @param {string} notificationId -
11
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
12
- * @returns {Promise<HttpResponse<DeliveryPlanCollection>>} OK
13
- */
14
- async getDeliveryplan(notificationId, requestConfig) {
15
- const request = new RequestBuilder()
16
- .setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
17
- .setConfig(this.config)
18
- .setMethod('GET')
19
- .setPath('/notifications/{notification_id}/deliveryplan')
20
- .setRequestSchema(z.any())
21
- .addAccessTokenAuth(this.config.token, 'Bearer')
22
- .setRequestContentType(ContentType.Json)
23
- .addResponse({
24
- schema: deliveryPlanCollectionResponse,
25
- contentType: ContentType.Json,
26
- status: 200,
27
- })
28
- .setRetryAttempts(this.config, requestConfig)
29
- .setRetryDelayMs(this.config, requestConfig)
30
- .setResponseValidation(this.config, requestConfig)
31
- .addPathParam({
32
- key: 'notification_id',
33
- value: notificationId,
34
- })
35
- .build();
36
- return this.client.call(request);
37
- }
38
- }
39
- //# sourceMappingURL=notifications-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications-service.js","sourceRoot":"","sources":["../../../../../src/project-client/services/notifications/notifications-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC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ACtB,CAAC;aACD,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAyB,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/users/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAaf,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BvB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BtB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/users/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC9B,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC3C,gBAAgB,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACvC,UAAU,EAAE,CAAC,CAAC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QAAQ,EAAE;QAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC1C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAChD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC5C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,CAAC;QAC3C,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC;QAC/B,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC;QAC3B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACxC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;KAC9B,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
@@ -1,57 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const slack = z.lazy(() => {
7
- return z.object({
8
- actionUrl: z.string().max(2048).optional().nullable(),
9
- content: z.string().max(1048576).optional(),
10
- title: z.string().min(1).max(255).optional(),
11
- });
12
- });
13
-
14
- /**
15
- *
16
- * @typedef {Slack} slack
17
- * @property {string}
18
- * @property {string}
19
- * @property {string}
20
- */
21
- export type Slack = z.infer<typeof slack>;
22
-
23
- /**
24
- * The shape of the model mapping from the api schema into the application shape.
25
- * Is equal to application shape if all property names match the api schema
26
- */
27
- export const slackResponse = z.lazy(() => {
28
- return z
29
- .object({
30
- action_url: z.string().max(2048).optional().nullable(),
31
- content: z.string().max(1048576).optional(),
32
- title: z.string().min(1).max(255).optional(),
33
- })
34
- .transform((data) => ({
35
- actionUrl: data['action_url'],
36
- content: data['content'],
37
- title: data['title'],
38
- }));
39
- });
40
-
41
- /**
42
- * The shape of the model mapping from the application shape into the api schema.
43
- * Is equal to application shape if all property names match the api schema
44
- */
45
- export const slackRequest = z.lazy(() => {
46
- return z
47
- .object({
48
- actionUrl: z.string().max(2048).optional().nullable(),
49
- content: z.string().max(1048576).optional(),
50
- title: z.string().min(1).max(255).optional(),
51
- })
52
- .transform((data) => ({
53
- action_url: data['actionUrl'],
54
- content: data['content'],
55
- title: data['title'],
56
- }));
57
- });
@@ -1,57 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const webPush = z.lazy(() => {
7
- return z.object({
8
- actionUrl: z.string().max(2048).optional().nullable(),
9
- content: z.string().max(1048576).optional(),
10
- title: z.string().min(1).max(255).optional(),
11
- });
12
- });
13
-
14
- /**
15
- *
16
- * @typedef {WebPush} webPush
17
- * @property {string}
18
- * @property {string}
19
- * @property {string}
20
- */
21
- export type WebPush = z.infer<typeof webPush>;
22
-
23
- /**
24
- * The shape of the model mapping from the api schema into the application shape.
25
- * Is equal to application shape if all property names match the api schema
26
- */
27
- export const webPushResponse = z.lazy(() => {
28
- return z
29
- .object({
30
- action_url: z.string().max(2048).optional().nullable(),
31
- content: z.string().max(1048576).optional(),
32
- title: z.string().min(1).max(255).optional(),
33
- })
34
- .transform((data) => ({
35
- actionUrl: data['action_url'],
36
- content: data['content'],
37
- title: data['title'],
38
- }));
39
- });
40
-
41
- /**
42
- * The shape of the model mapping from the application shape into the api schema.
43
- * Is equal to application shape if all property names match the api schema
44
- */
45
- export const webPushRequest = z.lazy(() => {
46
- return z
47
- .object({
48
- actionUrl: z.string().max(2048).optional().nullable(),
49
- content: z.string().max(1048576).optional(),
50
- title: z.string().min(1).max(255).optional(),
51
- })
52
- .transform((data) => ({
53
- action_url: data['actionUrl'],
54
- content: data['content'],
55
- title: data['title'],
56
- }));
57
- });
@@ -1,2 +0,0 @@
1
- export { JwtService } from './jwt-service.js';
2
- export * from './models/index.js';
@@ -1,121 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import { Environment } from '../../http/environment.js';
4
- import { ThrowableError } from '../../http/errors/throwable-error.js';
5
- import { SerializationStyle } from '../../http/serialization/base-serializer.js';
6
- import { RequestBuilder } from '../../http/transport/request-builder.js';
7
- import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
8
- import { BaseService } from '../base-service.js';
9
- import { AccessTokenCollection, accessTokenCollectionResponse } from './models/access-token-collection.js';
10
- import { CreateProjectTokenRequest, createProjectTokenRequestRequest } from './models/create-project-token-request.js';
11
- import { CreateTokenResponse, createTokenResponseResponse } from './models/create-token-response.js';
12
- import { DiscardTokenResponse, discardTokenResponseResponse } from './models/discard-token-response.js';
13
- import { FetchProjectTokensParams } from './request-params.js';
14
-
15
- export class JwtService extends BaseService {
16
- /**
17
- * 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.
18
- * @param {number} [params.limit] -
19
- * @param {string} [params.startingAfter] -
20
- * @param {string} [params.endingBefore] -
21
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
22
- * @returns {Promise<HttpResponse<AccessTokenCollection>>} OK
23
- */
24
- async fetchProjectTokens(
25
- params?: FetchProjectTokensParams,
26
- requestConfig?: RequestConfig,
27
- ): Promise<HttpResponse<AccessTokenCollection>> {
28
- const request = new RequestBuilder()
29
- .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
30
- .setConfig(this.config)
31
- .setMethod('GET')
32
- .setPath('/jwt/project')
33
- .setRequestSchema(z.any())
34
- .addAccessTokenAuth(this.config.token, 'Bearer')
35
- .setRequestContentType(ContentType.Json)
36
- .addResponse({
37
- schema: accessTokenCollectionResponse,
38
- contentType: ContentType.Json,
39
- status: 200,
40
- })
41
- .setRetryAttempts(this.config, requestConfig)
42
- .setRetryDelayMs(this.config, requestConfig)
43
- .setResponseValidation(this.config, requestConfig)
44
- .addQueryParam({
45
- key: 'limit',
46
- value: params?.limit,
47
- })
48
- .addQueryParam({
49
- key: 'starting_after',
50
- value: params?.startingAfter,
51
- })
52
- .addQueryParam({
53
- key: 'ending_before',
54
- value: params?.endingBefore,
55
- })
56
- .build();
57
- return this.client.call<AccessTokenCollection>(request);
58
- }
59
-
60
- /**
61
- * 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.
62
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
63
- * @returns {Promise<HttpResponse<CreateTokenResponse>>} Created
64
- */
65
- async createProjectJwt(
66
- body: CreateProjectTokenRequest,
67
- requestConfig?: RequestConfig,
68
- ): Promise<HttpResponse<CreateTokenResponse>> {
69
- const request = new RequestBuilder()
70
- .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
71
- .setConfig(this.config)
72
- .setMethod('POST')
73
- .setPath('/jwt/project')
74
- .setRequestSchema(createProjectTokenRequestRequest)
75
- .addAccessTokenAuth(this.config.token, 'Bearer')
76
- .setRequestContentType(ContentType.Json)
77
- .addResponse({
78
- schema: createTokenResponseResponse,
79
- contentType: ContentType.Json,
80
- status: 201,
81
- })
82
- .setRetryAttempts(this.config, requestConfig)
83
- .setRetryDelayMs(this.config, requestConfig)
84
- .setResponseValidation(this.config, requestConfig)
85
- .addHeaderParam({ key: 'Content-Type', value: 'application/json' })
86
- .addBody(body)
87
- .build();
88
- return this.client.call<CreateTokenResponse>(request);
89
- }
90
-
91
- /**
92
- * 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.
93
- * @param {string} tokenId -
94
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
95
- * @returns {Promise<HttpResponse<DiscardTokenResponse>>} OK
96
- */
97
- async discardProjectJwt(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardTokenResponse>> {
98
- const request = new RequestBuilder()
99
- .setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
100
- .setConfig(this.config)
101
- .setMethod('DELETE')
102
- .setPath('/jwt/project/{token_id}')
103
- .setRequestSchema(z.any())
104
- .addAccessTokenAuth(this.config.token, 'Bearer')
105
- .setRequestContentType(ContentType.Json)
106
- .addResponse({
107
- schema: discardTokenResponseResponse,
108
- contentType: ContentType.Json,
109
- status: 200,
110
- })
111
- .setRetryAttempts(this.config, requestConfig)
112
- .setRetryDelayMs(this.config, requestConfig)
113
- .setResponseValidation(this.config, requestConfig)
114
- .addPathParam({
115
- key: 'token_id',
116
- value: tokenId,
117
- })
118
- .build();
119
- return this.client.call<DiscardTokenResponse>(request);
120
- }
121
- }
@@ -1,54 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import { Links, links, linksRequest, linksResponse } from '../../common/links.js';
4
- import { AccessToken, accessToken, accessTokenRequest, accessTokenResponse } from './access-token.js';
5
-
6
- /**
7
- * The shape of the model inside the application code - what the users use
8
- */
9
- export const accessTokenCollection = z.lazy(() => {
10
- return z.object({
11
- data: z.array(accessToken).optional(),
12
- links: links.optional(),
13
- });
14
- });
15
-
16
- /**
17
- *
18
- * @typedef {AccessTokenCollection} accessTokenCollection
19
- * @property {AccessToken[]}
20
- * @property {Links}
21
- */
22
- export type AccessTokenCollection = z.infer<typeof accessTokenCollection>;
23
-
24
- /**
25
- * The shape of the model mapping from the api schema into the application shape.
26
- * Is equal to application shape if all property names match the api schema
27
- */
28
- export const accessTokenCollectionResponse = z.lazy(() => {
29
- return z
30
- .object({
31
- data: z.array(accessTokenResponse).optional(),
32
- links: linksResponse.optional(),
33
- })
34
- .transform((data) => ({
35
- data: data['data'],
36
- links: data['links'],
37
- }));
38
- });
39
-
40
- /**
41
- * The shape of the model mapping from the application shape into the api schema.
42
- * Is equal to application shape if all property names match the api schema
43
- */
44
- export const accessTokenCollectionRequest = z.lazy(() => {
45
- return z
46
- .object({
47
- data: z.array(accessTokenRequest).optional(),
48
- links: linksRequest.optional(),
49
- })
50
- .transform((data) => ({
51
- data: data['data'],
52
- links: data['links'],
53
- }));
54
- });
@@ -1,69 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const accessToken = z.lazy(() => {
7
- return z.object({
8
- createdAt: z.string(),
9
- discardedAt: z.string().optional().nullable(),
10
- expiresAt: z.string().optional(),
11
- id: z.string().optional(),
12
- name: z.string().optional().nullable(),
13
- });
14
- });
15
-
16
- /**
17
- *
18
- * @typedef {AccessToken} accessToken
19
- * @property {string}
20
- * @property {string}
21
- * @property {string}
22
- * @property {string}
23
- * @property {string}
24
- */
25
- export type AccessToken = z.infer<typeof accessToken>;
26
-
27
- /**
28
- * The shape of the model mapping from the api schema into the application shape.
29
- * Is equal to application shape if all property names match the api schema
30
- */
31
- export const accessTokenResponse = z.lazy(() => {
32
- return z
33
- .object({
34
- created_at: z.string(),
35
- discarded_at: z.string().optional().nullable(),
36
- expires_at: z.string().optional(),
37
- id: z.string().optional(),
38
- name: z.string().optional().nullable(),
39
- })
40
- .transform((data) => ({
41
- createdAt: data['created_at'],
42
- discardedAt: data['discarded_at'],
43
- expiresAt: data['expires_at'],
44
- id: data['id'],
45
- name: data['name'],
46
- }));
47
- });
48
-
49
- /**
50
- * The shape of the model mapping from the application shape into the api schema.
51
- * Is equal to application shape if all property names match the api schema
52
- */
53
- export const accessTokenRequest = z.lazy(() => {
54
- return z
55
- .object({
56
- createdAt: z.string(),
57
- discardedAt: z.string().optional().nullable(),
58
- expiresAt: z.string().optional(),
59
- id: z.string().optional(),
60
- name: z.string().optional().nullable(),
61
- })
62
- .transform((data) => ({
63
- created_at: data['createdAt'],
64
- discarded_at: data['discardedAt'],
65
- expires_at: data['expiresAt'],
66
- id: data['id'],
67
- name: data['name'],
68
- }));
69
- });
@@ -1,51 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const createProjectTokenRequest = z.lazy(() => {
7
- return z.object({
8
- expiry: z.number().gte(1).optional().nullable(),
9
- name: z.string().max(255),
10
- });
11
- });
12
-
13
- /**
14
- *
15
- * @typedef {CreateProjectTokenRequest} createProjectTokenRequest
16
- * @property {number} - The duration for which the token is valid (in seconds)
17
- * @property {string} - The name of the token.
18
- */
19
- export type CreateProjectTokenRequest = z.infer<typeof createProjectTokenRequest>;
20
-
21
- /**
22
- * The shape of the model mapping from the api schema into the application shape.
23
- * Is equal to application shape if all property names match the api schema
24
- */
25
- export const createProjectTokenRequestResponse = z.lazy(() => {
26
- return z
27
- .object({
28
- expiry: z.number().gte(1).optional().nullable(),
29
- name: z.string().max(255),
30
- })
31
- .transform((data) => ({
32
- expiry: data['expiry'],
33
- name: data['name'],
34
- }));
35
- });
36
-
37
- /**
38
- * The shape of the model mapping from the application shape into the api schema.
39
- * Is equal to application shape if all property names match the api schema
40
- */
41
- export const createProjectTokenRequestRequest = z.lazy(() => {
42
- return z
43
- .object({
44
- expiry: z.number().gte(1).optional().nullable(),
45
- name: z.string().max(255),
46
- })
47
- .transform((data) => ({
48
- expiry: data['expiry'],
49
- name: data['name'],
50
- }));
51
- });
@@ -1,63 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const createTokenResponse = z.lazy(() => {
7
- return z.object({
8
- createdAt: z.string(),
9
- expiresAt: z.string().optional().nullable(),
10
- token: z.string(),
11
- tokenId: z.string(),
12
- });
13
- });
14
-
15
- /**
16
- *
17
- * @typedef {CreateTokenResponse} createTokenResponse
18
- * @property {string}
19
- * @property {string}
20
- * @property {string}
21
- * @property {string}
22
- */
23
- export type CreateTokenResponse = z.infer<typeof createTokenResponse>;
24
-
25
- /**
26
- * The shape of the model mapping from the api schema into the application shape.
27
- * Is equal to application shape if all property names match the api schema
28
- */
29
- export const createTokenResponseResponse = z.lazy(() => {
30
- return z
31
- .object({
32
- created_at: z.string(),
33
- expires_at: z.string().optional().nullable(),
34
- token: z.string(),
35
- token_id: z.string(),
36
- })
37
- .transform((data) => ({
38
- createdAt: data['created_at'],
39
- expiresAt: data['expires_at'],
40
- token: data['token'],
41
- tokenId: data['token_id'],
42
- }));
43
- });
44
-
45
- /**
46
- * The shape of the model mapping from the application shape into the api schema.
47
- * Is equal to application shape if all property names match the api schema
48
- */
49
- export const createTokenResponseRequest = z.lazy(() => {
50
- return z
51
- .object({
52
- createdAt: z.string(),
53
- expiresAt: z.string().optional().nullable(),
54
- token: z.string(),
55
- tokenId: z.string(),
56
- })
57
- .transform((data) => ({
58
- created_at: data['createdAt'],
59
- expires_at: data['expiresAt'],
60
- token: data['token'],
61
- token_id: data['tokenId'],
62
- }));
63
- });
@@ -1,51 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const discardTokenResponse = z.lazy(() => {
7
- return z.object({
8
- discardedAt: z.string(),
9
- tokenId: z.string(),
10
- });
11
- });
12
-
13
- /**
14
- *
15
- * @typedef {DiscardTokenResponse} discardTokenResponse
16
- * @property {string}
17
- * @property {string}
18
- */
19
- export type DiscardTokenResponse = z.infer<typeof discardTokenResponse>;
20
-
21
- /**
22
- * The shape of the model mapping from the api schema into the application shape.
23
- * Is equal to application shape if all property names match the api schema
24
- */
25
- export const discardTokenResponseResponse = z.lazy(() => {
26
- return z
27
- .object({
28
- discarded_at: z.string(),
29
- token_id: z.string(),
30
- })
31
- .transform((data) => ({
32
- discardedAt: data['discarded_at'],
33
- tokenId: data['token_id'],
34
- }));
35
- });
36
-
37
- /**
38
- * The shape of the model mapping from the application shape into the api schema.
39
- * Is equal to application shape if all property names match the api schema
40
- */
41
- export const discardTokenResponseRequest = z.lazy(() => {
42
- return z
43
- .object({
44
- discardedAt: z.string(),
45
- tokenId: z.string(),
46
- })
47
- .transform((data) => ({
48
- discarded_at: data['discardedAt'],
49
- token_id: data['tokenId'],
50
- }));
51
- });
@@ -1,5 +0,0 @@
1
- export type { AccessToken } from './access-token.js';
2
- export type { AccessTokenCollection } from './access-token-collection.js';
3
- export type { CreateProjectTokenRequest } from './create-project-token-request.js';
4
- export type { CreateTokenResponse } from './create-token-response.js';
5
- export type { DiscardTokenResponse } from './discard-token-response.js';
@@ -1,5 +0,0 @@
1
- export interface FetchProjectTokensParams {
2
- limit?: number;
3
- startingAfter?: string;
4
- endingBefore?: string;
5
- }
@@ -1,2 +0,0 @@
1
- export * from './models/index.js';
2
- export { NotificationsService } from './notifications-service.js';