hcloud-sdk 17.0.0 → 19.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/changelog.md +87 -76
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +24 -6
  4. package/lib/Hcloud.js +127 -24
  5. package/lib/helper/ErrorHelper.js +5 -2
  6. package/lib/helper/ValidationHelper.d.ts +14 -4
  7. package/lib/helper/ValidationHelper.js +71 -11
  8. package/lib/interfaces/agent/logging/cloudwatch.d.ts +23 -0
  9. package/lib/interfaces/agent/logging/index.d.ts +2 -0
  10. package/lib/interfaces/{friday → agent/logging}/index.js +2 -3
  11. package/lib/interfaces/agent/logging/log-collector.d.ts +35 -0
  12. package/lib/interfaces/agent/module/index.d.ts +7 -0
  13. package/lib/interfaces/agent/module/index.js +2 -0
  14. package/lib/interfaces/auditor/index.d.ts +13 -3
  15. package/lib/interfaces/auditor/index.js +9 -2
  16. package/lib/interfaces/axios/index.d.ts +5 -0
  17. package/lib/interfaces/cosmo/asset/index.d.ts +216 -0
  18. package/lib/interfaces/cosmo/asset/index.js +90 -0
  19. package/lib/interfaces/cosmo/comment/index.d.ts +41 -0
  20. package/lib/interfaces/cosmo/comment/index.js +8 -0
  21. package/lib/interfaces/cosmo/event/index.d.ts +60 -0
  22. package/lib/interfaces/cosmo/event/index.js +31 -0
  23. package/lib/interfaces/cosmo/location/index.d.ts +4 -0
  24. package/lib/interfaces/cosmo/location/index.js +2 -0
  25. package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
  26. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  27. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  28. package/lib/interfaces/cosmo/permissions.js +58 -0
  29. package/lib/interfaces/cosmo/share/index.d.ts +110 -0
  30. package/lib/interfaces/cosmo/share/index.js +23 -0
  31. package/lib/interfaces/cosmo/space/index.d.ts +31 -0
  32. package/lib/interfaces/cosmo/space/index.js +2 -0
  33. package/lib/interfaces/cosmo/stats/index.d.ts +11 -0
  34. package/lib/interfaces/cosmo/stats/index.js +2 -0
  35. package/lib/interfaces/cosmo/tag/tag.d.ts +13 -0
  36. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  37. package/lib/interfaces/global/Products.d.ts +2 -3
  38. package/lib/interfaces/global/Products.js +1 -2
  39. package/lib/interfaces/global/Views.d.ts +0 -1
  40. package/lib/interfaces/global/Views.js +0 -1
  41. package/lib/interfaces/high5/index.d.ts +7 -7
  42. package/lib/interfaces/high5/index.js +7 -7
  43. package/lib/interfaces/{friday → high5}/space/database/document/index.d.ts +1 -1
  44. package/lib/interfaces/{friday → high5}/space/database/document/index.js +2 -1
  45. package/lib/interfaces/high5/space/database/index.js +2 -0
  46. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +10 -2
  47. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +1 -0
  48. package/lib/interfaces/high5/space/execution/index.d.ts +3 -1
  49. package/lib/interfaces/{fuse/space/cronjob/CronjobLog.d.ts → high5/space/job/JobLog.d.ts} +3 -3
  50. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  51. package/lib/interfaces/high5/space/job/index.d.ts +83 -0
  52. package/lib/interfaces/high5/space/job/index.js +11 -0
  53. package/lib/interfaces/high5/stats.d.ts +21 -0
  54. package/lib/interfaces/high5/stats.js +2 -0
  55. package/lib/interfaces/high5/wave/dependentInputs.d.ts +42 -0
  56. package/lib/interfaces/high5/wave/dependentInputs.js +144 -0
  57. package/lib/interfaces/high5/wave/dependentInputsValidation.d.ts +22 -0
  58. package/lib/interfaces/high5/wave/dependentInputsValidation.js +220 -0
  59. package/lib/interfaces/idp/index.d.ts +3 -3
  60. package/lib/interfaces/idp/index.js +3 -3
  61. package/lib/interfaces/idp/oauth/device.d.ts +18 -0
  62. package/lib/interfaces/idp/oauth/device.js +2 -0
  63. package/lib/interfaces/idp/oauth/index.d.ts +19 -5
  64. package/lib/interfaces/idp/organization/index.d.ts +2 -0
  65. package/lib/interfaces/idp/organization/index.js +2 -0
  66. package/lib/interfaces/idp/organization/license/index.d.ts +13 -11
  67. package/lib/interfaces/idp/organization/member/index.d.ts +1 -0
  68. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +4 -0
  69. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  70. package/lib/interfaces/idp/organization/stats.js +2 -0
  71. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  72. package/lib/interfaces/idp/user/Message.d.ts +22 -0
  73. package/lib/interfaces/idp/user/Message.js +14 -0
  74. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  75. package/lib/interfaces/idp/user/Scopes.d.ts +1 -15
  76. package/lib/interfaces/idp/user/Scopes.js +0 -21
  77. package/lib/interfaces/idp/user/index.d.ts +5 -1
  78. package/lib/interfaces/mailer/index.d.ts +50 -2
  79. package/lib/interfaces/mailer/index.js +100 -2
  80. package/lib/interfaces/mothership/index.d.ts +3 -1
  81. package/lib/interfaces/mothership/index.js +15 -0
  82. package/lib/interfaces/mothership/stats.d.ts +4 -0
  83. package/lib/interfaces/mothership/stats.js +2 -0
  84. package/lib/interfaces/nats/index.d.ts +79 -51
  85. package/lib/interfaces/nats/index.js +140 -125
  86. package/lib/interfaces/shorts/index.d.ts +17 -0
  87. package/lib/interfaces/shorts/index.js +8 -0
  88. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  89. package/lib/service/agent/bundle/dev/index.js +16 -11
  90. package/lib/service/agent/bundle/index.d.ts +10 -4
  91. package/lib/service/agent/bundle/index.js +10 -7
  92. package/lib/service/agent/context/index.d.ts +22 -8
  93. package/lib/service/agent/context/index.js +19 -15
  94. package/lib/service/agent/index.d.ts +6 -0
  95. package/lib/service/agent/index.js +18 -1
  96. package/lib/service/agent/installer/index.js +4 -1
  97. package/lib/service/agent/logging/index.d.ts +69 -0
  98. package/lib/service/agent/logging/index.js +117 -0
  99. package/lib/service/agent/module/index.d.ts +36 -0
  100. package/lib/service/agent/module/index.js +65 -0
  101. package/lib/service/auditor/index.d.ts +8 -4
  102. package/lib/service/auditor/index.js +9 -6
  103. package/lib/service/auditor/internal/index.d.ts +27 -3
  104. package/lib/service/auditor/internal/index.js +38 -6
  105. package/lib/service/bouncer/features/index.d.ts +4 -2
  106. package/lib/service/bouncer/features/index.js +6 -3
  107. package/lib/service/bouncer/index.js +5 -2
  108. package/lib/service/cosmo/asset/index.d.ts +265 -0
  109. package/lib/service/cosmo/asset/index.js +420 -0
  110. package/lib/service/cosmo/comment/index.d.ts +93 -0
  111. package/lib/service/cosmo/comment/index.js +136 -0
  112. package/lib/service/cosmo/event/index.d.ts +23 -0
  113. package/lib/service/cosmo/event/index.js +43 -0
  114. package/lib/service/cosmo/folder/index.d.ts +27 -0
  115. package/lib/service/cosmo/folder/index.js +50 -0
  116. package/lib/service/cosmo/index.d.ts +52 -0
  117. package/lib/service/cosmo/index.js +129 -0
  118. package/lib/service/cosmo/internal/index.d.ts +7 -0
  119. package/lib/service/cosmo/internal/index.js +20 -0
  120. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  121. package/lib/service/cosmo/internal/space/index.js +37 -0
  122. package/lib/service/cosmo/location/index.d.ts +40 -0
  123. package/lib/service/cosmo/location/index.js +66 -0
  124. package/lib/service/cosmo/namespace/index.d.ts +56 -0
  125. package/lib/service/cosmo/namespace/index.js +85 -0
  126. package/lib/service/cosmo/organization/index.d.ts +47 -0
  127. package/lib/service/cosmo/organization/index.js +67 -0
  128. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  129. package/lib/service/cosmo/permissions/index.js +184 -0
  130. package/lib/service/cosmo/production/index.d.ts +26 -0
  131. package/lib/service/cosmo/production/index.js +48 -0
  132. package/lib/service/cosmo/share/index.d.ts +169 -0
  133. package/lib/service/cosmo/share/index.js +227 -0
  134. package/lib/service/cosmo/space/index.d.ts +131 -0
  135. package/lib/service/cosmo/space/index.js +190 -0
  136. package/lib/service/cosmo/stats/index.d.ts +35 -0
  137. package/lib/service/cosmo/stats/index.js +58 -0
  138. package/lib/service/cosmo/tag/index.d.ts +67 -0
  139. package/lib/service/cosmo/tag/index.js +96 -0
  140. package/lib/service/dali/DaliAvatar.d.ts +0 -6
  141. package/lib/service/dali/DaliAvatar.js +4 -11
  142. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +10 -4
  143. package/lib/service/dali/avatar/DaliCosmoSpace.js +12 -8
  144. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +11 -4
  145. package/lib/service/dali/avatar/DaliHigh5Pool.js +12 -8
  146. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +11 -4
  147. package/lib/service/dali/avatar/DaliHigh5Space.js +12 -8
  148. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +11 -4
  149. package/lib/service/dali/avatar/DaliOAuthApp.js +12 -8
  150. package/lib/service/dali/avatar/DaliOrganization.d.ts +11 -4
  151. package/lib/service/dali/avatar/DaliOrganization.js +12 -8
  152. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +10 -4
  153. package/lib/service/dali/avatar/DaliServiceAccount.js +12 -8
  154. package/lib/service/dali/avatar/DaliTeam.d.ts +11 -4
  155. package/lib/service/dali/avatar/DaliTeam.js +12 -8
  156. package/lib/service/dali/avatar/DaliUser.d.ts +11 -4
  157. package/lib/service/dali/avatar/DaliUser.js +12 -8
  158. package/lib/service/dali/index.d.ts +4 -5
  159. package/lib/service/dali/index.js +6 -6
  160. package/lib/service/high5/execution/index.d.ts +4 -2
  161. package/lib/service/high5/execution/index.js +7 -3
  162. package/lib/service/high5/execution/log/index.js +4 -1
  163. package/lib/service/high5/execution/status/index.d.ts +5 -3
  164. package/lib/service/high5/execution/status/index.js +7 -4
  165. package/lib/service/high5/index.d.ts +7 -2
  166. package/lib/service/high5/index.js +13 -3
  167. package/lib/service/high5/internal/index.d.ts +4 -2
  168. package/lib/service/high5/internal/index.js +7 -3
  169. package/lib/service/high5/internal/space/index.d.ts +10 -3
  170. package/lib/service/high5/internal/space/index.js +17 -5
  171. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  172. package/lib/service/high5/internal/space/job/index.js +20 -0
  173. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  174. package/lib/service/{fuse/internal/space/cronjob → high5/internal/space/job}/log/index.js +13 -10
  175. package/lib/service/high5/joinToken/index.d.ts +14 -6
  176. package/lib/service/high5/joinToken/index.js +14 -10
  177. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  178. package/lib/service/high5/space/database/document/array/index.js +105 -0
  179. package/lib/service/{friday → high5}/space/database/document/index.d.ts +26 -10
  180. package/lib/service/{friday → high5}/space/database/document/index.js +35 -17
  181. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  182. package/lib/service/high5/space/database/document/number/index.js +80 -0
  183. package/lib/service/{friday → high5}/space/database/index.d.ts +22 -12
  184. package/lib/service/{friday → high5}/space/database/index.js +22 -18
  185. package/lib/service/high5/space/event/index.d.ts +17 -7
  186. package/lib/service/high5/space/event/index.js +16 -12
  187. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  188. package/lib/service/high5/space/event/stream/design/DesignOperations.js +6 -3
  189. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  190. package/lib/service/high5/space/event/stream/design/index.js +13 -9
  191. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  192. package/lib/service/high5/space/event/stream/design/snapshot/index.js +16 -11
  193. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  194. package/lib/service/high5/space/event/stream/index.js +26 -22
  195. package/lib/service/high5/space/execution/index.d.ts +19 -7
  196. package/lib/service/high5/space/execution/index.js +21 -13
  197. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  198. package/lib/service/high5/space/execution/log/index.js +9 -6
  199. package/lib/service/high5/space/execution/status/index.d.ts +7 -3
  200. package/lib/service/high5/space/execution/status/index.js +8 -5
  201. package/lib/service/high5/space/index.d.ts +53 -14
  202. package/lib/service/high5/space/index.js +70 -28
  203. package/lib/service/{fuse/space/cronjob → high5/space/job}/index.d.ts +57 -35
  204. package/lib/service/{fuse/space/cronjob → high5/space/job}/index.js +88 -87
  205. package/lib/service/{fuse/space/cronjob → high5/space/job}/log/index.d.ts +15 -11
  206. package/lib/service/{fuse/space/cronjob → high5/space/job}/log/index.js +19 -16
  207. package/lib/service/high5/space/node/index.d.ts +20 -8
  208. package/lib/service/high5/space/node/index.js +18 -14
  209. package/lib/service/high5/space/pool/index.d.ts +38 -11
  210. package/lib/service/high5/space/pool/index.js +41 -19
  211. package/lib/service/high5/space/secret/index.d.ts +17 -7
  212. package/lib/service/high5/space/secret/index.js +16 -12
  213. package/lib/service/high5/space/stat/index.d.ts +12 -0
  214. package/lib/service/high5/space/stat/index.js +34 -0
  215. package/lib/service/high5/space/wave/index.d.ts +16 -6
  216. package/lib/service/high5/space/wave/index.js +15 -11
  217. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  218. package/lib/service/high5/space/webhook/index.js +29 -22
  219. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  220. package/lib/service/high5/space/webhook/log/index.js +6 -3
  221. package/lib/service/high5/stat/index.d.ts +11 -0
  222. package/lib/service/{fuse/internal → high5/stat}/index.js +16 -14
  223. package/lib/service/high5/wave/index.js +4 -1
  224. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  225. package/lib/service/high5/wave/s3/index.js +47 -23
  226. package/lib/service/idp/guest/index.d.ts +42 -0
  227. package/lib/service/idp/guest/index.js +69 -0
  228. package/lib/service/idp/index.d.ts +25 -7
  229. package/lib/service/idp/index.js +27 -13
  230. package/lib/service/idp/internal/index.d.ts +5 -3
  231. package/lib/service/idp/internal/index.js +9 -4
  232. package/lib/service/idp/oauth/device.d.ts +131 -0
  233. package/lib/service/idp/oauth/device.js +177 -0
  234. package/lib/service/idp/oauth/index.d.ts +19 -6
  235. package/lib/service/idp/oauth/index.js +26 -16
  236. package/lib/service/idp/organization/index.d.ts +28 -5
  237. package/lib/service/idp/organization/index.js +41 -11
  238. package/lib/service/idp/organization/license/index.d.ts +7 -3
  239. package/lib/service/idp/organization/license/index.js +8 -5
  240. package/lib/service/idp/organization/member/index.d.ts +20 -8
  241. package/lib/service/idp/organization/member/index.js +20 -15
  242. package/lib/service/idp/organization/member/invitations/index.d.ts +42 -9
  243. package/lib/service/idp/organization/member/invitations/index.js +94 -59
  244. package/lib/service/idp/organization/service-accounts/index.d.ts +31 -9
  245. package/lib/service/idp/organization/service-accounts/index.js +35 -14
  246. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  247. package/lib/service/idp/organization/settings/domain/index.js +13 -9
  248. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  249. package/lib/service/idp/organization/settings/domain/saml/index.js +23 -19
  250. package/lib/service/idp/organization/settings/index.js +4 -1
  251. package/lib/service/idp/organization/settings/oauth/index.d.ts +33 -9
  252. package/lib/service/idp/organization/settings/oauth/index.js +37 -16
  253. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  254. package/lib/service/idp/organization/stat/index.js +33 -0
  255. package/lib/service/idp/organization/team/index.d.ts +32 -10
  256. package/lib/service/idp/organization/team/index.js +35 -14
  257. package/lib/service/idp/registration/index.d.ts +10 -4
  258. package/lib/service/idp/registration/index.js +19 -10
  259. package/lib/service/idp/user/index.d.ts +41 -11
  260. package/lib/service/idp/user/index.js +49 -19
  261. package/lib/service/idp/user/license/index.d.ts +7 -3
  262. package/lib/service/idp/user/license/index.js +8 -5
  263. package/lib/service/idp/user/message/index.d.ts +62 -0
  264. package/lib/service/idp/user/message/index.js +95 -0
  265. package/lib/service/idp/user/password/index.d.ts +4 -2
  266. package/lib/service/idp/user/password/index.js +6 -3
  267. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  268. package/lib/service/idp/user/settings/connections/index.js +6 -3
  269. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  270. package/lib/service/idp/user/settings/general/index.js +10 -7
  271. package/lib/service/idp/user/settings/index.js +4 -1
  272. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  273. package/lib/service/idp/user/settings/notifications/index.js +8 -5
  274. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  275. package/lib/service/idp/user/settings/oauthApps/index.js +10 -6
  276. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  277. package/lib/service/idp/user/settings/pats/index.js +21 -16
  278. package/lib/service/idp/user/settings/twoFactor/index.js +4 -1
  279. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  280. package/lib/service/idp/user/settings/twoFactor/totp/index.js +17 -11
  281. package/lib/service/mailer/index.d.ts +4 -2
  282. package/lib/service/mailer/index.js +7 -4
  283. package/lib/service/mailer/internal/index.d.ts +14 -6
  284. package/lib/service/mailer/internal/index.js +12 -9
  285. package/lib/service/mothership/index.d.ts +35 -13
  286. package/lib/service/mothership/index.js +36 -18
  287. package/lib/service/nats/index.d.ts +7 -0
  288. package/lib/service/nats/index.js +77 -44
  289. package/lib/service/shorts/index.d.ts +18 -0
  290. package/lib/service/{friday → shorts}/index.js +17 -11
  291. package/lib/service/shorts/internal/index.d.ts +75 -0
  292. package/lib/service/shorts/internal/index.js +118 -0
  293. package/lib/utils/bouncer/features/Provider.js +0 -1
  294. package/package.json +2 -2
  295. package/lib/interfaces/friday/index.d.ts +0 -3
  296. package/lib/interfaces/friday/space/index.d.ts +0 -21
  297. package/lib/interfaces/friday/space/index.js +0 -11
  298. package/lib/interfaces/fuse/index.d.ts +0 -3
  299. package/lib/interfaces/fuse/index.js +0 -19
  300. package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +0 -38
  301. package/lib/interfaces/fuse/space/cronjob/Cronjob.js +0 -8
  302. package/lib/interfaces/fuse/space/index.d.ts +0 -22
  303. package/lib/interfaces/fuse/space/index.js +0 -11
  304. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +0 -26
  305. package/lib/service/dali/avatar/DaliFuseSpace.js +0 -58
  306. package/lib/service/friday/index.d.ts +0 -13
  307. package/lib/service/friday/space/index.d.ts +0 -81
  308. package/lib/service/friday/space/index.js +0 -150
  309. package/lib/service/fuse/index.d.ts +0 -18
  310. package/lib/service/fuse/index.js +0 -48
  311. package/lib/service/fuse/internal/index.d.ts +0 -8
  312. package/lib/service/fuse/internal/space/cronjob/index.d.ts +0 -7
  313. package/lib/service/fuse/internal/space/cronjob/index.js +0 -17
  314. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +0 -15
  315. package/lib/service/fuse/internal/space/index.d.ts +0 -22
  316. package/lib/service/fuse/internal/space/index.js +0 -49
  317. package/lib/service/fuse/space/index.d.ts +0 -81
  318. package/lib/service/fuse/space/index.js +0 -152
  319. /package/lib/interfaces/{friday/space/database/index.js → agent/logging/cloudwatch.js} +0 -0
  320. /package/lib/interfaces/{fuse/space/cronjob/CronjobLog.js → agent/logging/log-collector.js} +0 -0
  321. /package/lib/interfaces/{friday → high5}/space/database/index.d.ts +0 -0
@@ -1,10 +1,24 @@
1
1
  import { Scope } from "../user/Scopes";
2
- export interface OAuthTokenRequest {
2
+ export type OAuthTokenRequest = ({
3
3
  code: string;
4
- clientId: string;
5
- clientSecret: string;
6
- redirectUri: string;
7
- }
4
+ client_id: string;
5
+ redirect_uri: string;
6
+ grant_type: GrantType.AUTHORIZATION_CODE;
7
+ } & ({
8
+ client_secret: string;
9
+ /**
10
+ * @see https://datatracker.ietf.org/doc/html/rfc7636#section-4.5
11
+ */
12
+ code_verifier?: string;
13
+ } | {
14
+ /**
15
+ * @see https://datatracker.ietf.org/doc/html/rfc7636#section-4.5
16
+ */
17
+ code_verifier: string;
18
+ })) | {
19
+ grant_type: GrantType.REFRESH_TOKEN;
20
+ refresh_token: string;
21
+ };
8
22
  export interface OAuthToken {
9
23
  id_token?: string;
10
24
  access_token?: string;
@@ -2,7 +2,9 @@ import { ReducedUser } from "../user";
2
2
  import { License } from "./license";
3
3
  import { ReducedTeam } from "./team";
4
4
  export * from "./license";
5
+ export * from "./stats";
5
6
  export declare enum OrganizationRole {
7
+ MAYBE_GUEST = "MAYBE_GUEST",// Role used for guests that have actually (or maybe) no access to an org
6
8
  MEMBER = "MEMBER",// Part of org, but cannot change anything
7
9
  MANAGER = "MANAGER",// Can update members
8
10
  ADMIN = "ADMIN",// Can update org and members
@@ -16,8 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.OrganizationRole = void 0;
18
18
  __exportStar(require("./license"), exports);
19
+ __exportStar(require("./stats"), exports);
19
20
  var OrganizationRole;
20
21
  (function (OrganizationRole) {
22
+ OrganizationRole["MAYBE_GUEST"] = "MAYBE_GUEST";
21
23
  OrganizationRole["MEMBER"] = "MEMBER";
22
24
  OrganizationRole["MANAGER"] = "MANAGER";
23
25
  OrganizationRole["ADMIN"] = "ADMIN";
@@ -54,14 +54,12 @@ export type LicenseQuota = {
54
54
  quota: number;
55
55
  };
56
56
  };
57
- };
58
- executionsPerMonth: {
59
- quota: number;
60
- };
61
- };
62
- fuse: {
63
- spaces: {
64
- quota: number;
57
+ databases: {
58
+ quota: number;
59
+ documents: {
60
+ quota: number;
61
+ };
62
+ };
65
63
  jobs: {
66
64
  quota: number;
67
65
  logs: {
@@ -69,18 +67,22 @@ export type LicenseQuota = {
69
67
  };
70
68
  };
71
69
  };
70
+ executionsPerMonth: {
71
+ quota: number;
72
+ };
72
73
  secondBaseExecutions: boolean;
73
74
  };
74
- friday: {
75
+ fuse: {
75
76
  spaces: {
76
77
  quota: number;
77
- databases: {
78
+ jobs: {
78
79
  quota: number;
79
- documents: {
80
+ logs: {
80
81
  quota: number;
81
82
  };
82
83
  };
83
84
  };
85
+ secondBaseExecutions: boolean;
84
86
  };
85
87
  };
86
88
  export declare enum LicenseTier {
@@ -8,6 +8,7 @@ export interface OrganizationMember {
8
8
  executionTarget: boolean;
9
9
  lastActive: number;
10
10
  serviceAccount?: boolean;
11
+ isGuest?: boolean;
11
12
  }
12
13
  export interface OrgMemberCreate {
13
14
  email: string;
@@ -25,6 +25,8 @@ export interface OAuthApp {
25
25
  patId?: string;
26
26
  createDate: number;
27
27
  modifyDate: number;
28
+ allowAuthoizationCodeFlow: boolean;
29
+ allowDeviceFlow: boolean;
28
30
  }
29
31
  export type OAuthAppWithConsent = OAuthApp & Omit<OAuthApp, "hcloudClientId" | "clientSecrets" | "callback"> & {
30
32
  scopes: Record<Scope, number>;
@@ -35,4 +37,6 @@ export interface OAuthAppCreate {
35
37
  description?: string;
36
38
  homepage?: string;
37
39
  callback: string[];
40
+ allowAuthoizationCodeFlow?: boolean;
41
+ allowDeviceFlow?: boolean;
38
42
  }
@@ -0,0 +1,7 @@
1
+ export type Stats = {
2
+ orgName: string;
3
+ usersTotal: number;
4
+ usersOnline: number;
5
+ teams: number;
6
+ serviceAccounts: number;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,6 @@ export interface Team {
4
4
  _id: string;
5
5
  name: string;
6
6
  organization: ReducedOrganization;
7
- users: ReducedUser[];
8
7
  avatarUrl: string;
9
8
  createDate: number;
10
9
  modifyDate: number;
@@ -0,0 +1,22 @@
1
+ import { ReducedUser } from ".";
2
+ export declare enum MessageType {
3
+ SYSTEM = "SYSTEM",
4
+ USER = "USER"
5
+ }
6
+ export declare enum RecipientType {
7
+ USER = "USER",
8
+ TEAM = "TEAM",
9
+ ORGANIZATION = "ORGANIZATION"
10
+ }
11
+ export interface Message {
12
+ _id: string;
13
+ from: ReducedUser;
14
+ to: ReducedUser;
15
+ title?: string;
16
+ subject?: string;
17
+ message: string;
18
+ read: boolean;
19
+ type: MessageType;
20
+ createDate: number;
21
+ link?: string;
22
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecipientType = exports.MessageType = void 0;
4
+ var MessageType;
5
+ (function (MessageType) {
6
+ MessageType["SYSTEM"] = "SYSTEM";
7
+ MessageType["USER"] = "USER";
8
+ })(MessageType || (exports.MessageType = MessageType = {}));
9
+ var RecipientType;
10
+ (function (RecipientType) {
11
+ RecipientType["USER"] = "USER";
12
+ RecipientType["TEAM"] = "TEAM";
13
+ RecipientType["ORGANIZATION"] = "ORGANIZATION";
14
+ })(RecipientType || (exports.RecipientType = RecipientType = {}));
@@ -4,5 +4,6 @@ export interface NotificationSettings {
4
4
  user: ReducedUser;
5
5
  organizationInvitationEmail: boolean;
6
6
  systemNotifications: boolean;
7
+ cosmoNotifications: boolean;
7
8
  }
8
9
  export type NotificationSettingsPatch = Partial<Omit<NotificationSettings, "_id" | "user">>;
@@ -13,20 +13,13 @@ export declare enum Scope {
13
13
  HIGH5_SPACE_EXECUTE = "high5:space:execute",
14
14
  HIGH5_SPACE_WRITE = "high5:space:write",
15
15
  HIGH5_SPACE_DELETE = "high5:space:delete",
16
- FUSE_SPACE_READ = "fuse:space:read",
17
- FUSE_SPACE_EXECUTE = "fuse:space:execute",
18
- FUSE_SPACE_WRITE = "fuse:space:write",
19
- FUSE_SPACE_DELETE = "fuse:space:delete",
20
- FRIDAY_SPACE_READ = "friday:space:read",
21
- FRIDAY_SPACE_WRITE = "friday:space:write",
22
- FRIDAY_SPACE_DELETE = "friday:space:delete",
23
16
  COSMO_SPACE_READ = "cosmo:space:read",
24
17
  COSMO_SPACE_WRITE = "cosmo:space:write",
25
18
  COSMO_SPACE_DELETE = "cosmo:space:delete"
26
19
  }
27
20
  export declare const ScopeDescriptions: Map<string, string>;
28
21
  export declare const ScopeDependencies: {
29
- "hcloud:full": (Scope.IDP_EMAIL_READ | Scope.IDP_USER_READ | Scope.IDP_USER_WRITE | Scope.IDP_USER_DELETE | Scope.IDP_USER_OPEN_ID | Scope.IDP_ORGANIZATION_READ | Scope.IDP_ORGANIZATION_WRITE | Scope.IDP_ORGANIZATION_DELETE | Scope.IDP_ORGANIZATION_ADMIN | Scope.HIGH5_SPACE_READ | Scope.HIGH5_SPACE_EXECUTE | Scope.HIGH5_SPACE_WRITE | Scope.HIGH5_SPACE_DELETE | Scope.FUSE_SPACE_READ | Scope.FUSE_SPACE_EXECUTE | Scope.FUSE_SPACE_WRITE | Scope.FUSE_SPACE_DELETE | Scope.FRIDAY_SPACE_READ | Scope.FRIDAY_SPACE_WRITE | Scope.FRIDAY_SPACE_DELETE | Scope.COSMO_SPACE_READ | Scope.COSMO_SPACE_WRITE | Scope.COSMO_SPACE_DELETE)[];
22
+ "hcloud:full": (Scope.IDP_EMAIL_READ | Scope.IDP_USER_READ | Scope.IDP_USER_WRITE | Scope.IDP_USER_DELETE | Scope.IDP_USER_OPEN_ID | Scope.IDP_ORGANIZATION_READ | Scope.IDP_ORGANIZATION_WRITE | Scope.IDP_ORGANIZATION_DELETE | Scope.IDP_ORGANIZATION_ADMIN | Scope.HIGH5_SPACE_READ | Scope.HIGH5_SPACE_EXECUTE | Scope.HIGH5_SPACE_WRITE | Scope.HIGH5_SPACE_DELETE | Scope.COSMO_SPACE_READ | Scope.COSMO_SPACE_WRITE | Scope.COSMO_SPACE_DELETE)[];
30
23
  "idp:email:read": never[];
31
24
  "idp:user:read": never[];
32
25
  "idp:user:write": Scope[];
@@ -40,13 +33,6 @@ export declare const ScopeDependencies: {
40
33
  "high5:space:execute": Scope[];
41
34
  "high5:space:write": Scope[];
42
35
  "high5:space:delete": Scope[];
43
- "fuse:space:read": Scope[];
44
- "fuse:space:execute": never[];
45
- "fuse:space:write": Scope[];
46
- "fuse:space:delete": Scope[];
47
- "friday:space:read": Scope[];
48
- "friday:space:write": Scope[];
49
- "friday:space:delete": Scope[];
50
36
  "cosmo:space:read": Scope[];
51
37
  "cosmo:space:write": Scope[];
52
38
  "cosmo:space:delete": Scope[];
@@ -17,13 +17,6 @@ var Scope;
17
17
  Scope["HIGH5_SPACE_EXECUTE"] = "high5:space:execute";
18
18
  Scope["HIGH5_SPACE_WRITE"] = "high5:space:write";
19
19
  Scope["HIGH5_SPACE_DELETE"] = "high5:space:delete";
20
- Scope["FUSE_SPACE_READ"] = "fuse:space:read";
21
- Scope["FUSE_SPACE_EXECUTE"] = "fuse:space:execute";
22
- Scope["FUSE_SPACE_WRITE"] = "fuse:space:write";
23
- Scope["FUSE_SPACE_DELETE"] = "fuse:space:delete";
24
- Scope["FRIDAY_SPACE_READ"] = "friday:space:read";
25
- Scope["FRIDAY_SPACE_WRITE"] = "friday:space:write";
26
- Scope["FRIDAY_SPACE_DELETE"] = "friday:space:delete";
27
20
  Scope["COSMO_SPACE_READ"] = "cosmo:space:read";
28
21
  Scope["COSMO_SPACE_WRITE"] = "cosmo:space:write";
29
22
  Scope["COSMO_SPACE_DELETE"] = "cosmo:space:delete";
@@ -43,13 +36,6 @@ exports.ScopeDescriptions = new Map([
43
36
  [Scope.HIGH5_SPACE_EXECUTE, "Execute tasks in High5."],
44
37
  [Scope.HIGH5_SPACE_WRITE, "Create or update High5 data."],
45
38
  [Scope.HIGH5_SPACE_DELETE, "Delete High5 data."],
46
- [Scope.FUSE_SPACE_READ, "Read Fuse space data."],
47
- [Scope.FUSE_SPACE_EXECUTE, "Execute tasks in Fuse."],
48
- [Scope.FUSE_SPACE_WRITE, "Create or update Fuse data."],
49
- [Scope.FUSE_SPACE_DELETE, "Delete Fuse data."],
50
- [Scope.FRIDAY_SPACE_READ, "Read Friday space data."],
51
- [Scope.FRIDAY_SPACE_WRITE, "Create or update Friday data."],
52
- [Scope.FRIDAY_SPACE_DELETE, "Delete Friday data."],
53
39
  [Scope.COSMO_SPACE_READ, "Read Cosmo space data."],
54
40
  [Scope.COSMO_SPACE_WRITE, "Create or update Cosmo data."],
55
41
  [Scope.COSMO_SPACE_DELETE, "Delete Cosmo data."],
@@ -75,13 +61,6 @@ exports.ScopeDependencies = {
75
61
  Scope.HIGH5_SPACE_EXECUTE,
76
62
  Scope.HIGH5_SPACE_WRITE,
77
63
  ],
78
- [Scope.FUSE_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
79
- [Scope.FUSE_SPACE_EXECUTE]: [],
80
- [Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
81
- [Scope.FUSE_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ, Scope.FUSE_SPACE_WRITE],
82
- [Scope.FRIDAY_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
83
- [Scope.FRIDAY_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FRIDAY_SPACE_READ],
84
- [Scope.FRIDAY_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FRIDAY_SPACE_READ, Scope.FRIDAY_SPACE_WRITE],
85
64
  [Scope.COSMO_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
86
65
  [Scope.COSMO_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ],
87
66
  [Scope.COSMO_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ, Scope.COSMO_SPACE_WRITE],
@@ -14,8 +14,12 @@ export interface User {
14
14
  activeScopes: Scope[];
15
15
  isAgent?: boolean;
16
16
  lastActive: number;
17
+ isGuest?: boolean;
17
18
  }
18
- export type ReducedUser = Pick<User, "_id" | "name" | "avatarUrl">;
19
+ export type ReducedUser = Pick<User, "_id" | "name" | "email" | "avatarUrl" | "isGuest" | "isAgent">;
20
+ export type ShareReducedUnlinkedUser = Pick<ReducedUser, "email"> & {
21
+ linkedToShare?: boolean;
22
+ };
19
23
  export interface UserPatch {
20
24
  name?: string;
21
25
  email?: string;
@@ -34,11 +34,35 @@ declare enum MailjetTemplate {
34
34
  IDP_INVITE_TO_ORGANIZATION = "IDP_INVITE_TO_ORGANIZATION",
35
35
  IDP_RESET_PASSWORD = "IDP_RESET_PASSWORD",
36
36
  IDP_REGISTRATION_AND_INVITATION = "IDP_REGISTRATION_AND_INVITATION",
37
- IDP_USER_LEFT_ORGANIZATION = "IDP_USER_LEFT_ORGANIZATION"
37
+ IDP_USER_LEFT_ORGANIZATION = "IDP_USER_LEFT_ORGANIZATION",
38
+ IDP_ACCOUNT_APPROVED = "IDP_ACCOUNT_APPROVED",
39
+ COSMO_NEW_SHARE = "COSMO_NEW_SHARE",
40
+ COSMO_USER_ADDED_TO_SPACE = "COSMO_USER_ADDED_TO_SPACE",
41
+ COSMO_USER_REMOVED_FROM_SPACE = "COSMO_USER_REMOVED_FROM_SPACE",
42
+ COSMO_COMMENT_ADDED = "COSMO_COMMENT_ADDED",
43
+ COSMO_REPLIED_TO_COMMENT = "COSMO_REPLIED_TO_COMMENT",
44
+ COSMO_ASSET_STATUS_CHANGED = "COSMO_ASSET_STATUS_CHANGED",
45
+ COSMO_ASSET_UPLOADED_TO_SHARE = "COSMO_ASSET_UPLOADED_TO_SHARE",
46
+ COSMO_SHARE_PASSWORD_CHANGED = "COSMO_SHARE_PASSWORD_CHANGED"
38
47
  }
39
48
  interface MailjetTemplateField {
40
49
  [key: string]: string;
41
50
  }
51
+ export type MailjetResponse = {
52
+ Messages: [
53
+ {
54
+ Status: string;
55
+ To: [
56
+ {
57
+ Email: string;
58
+ MessageUUID: string;
59
+ MessageID: string | number;
60
+ MessageHref: string;
61
+ }
62
+ ];
63
+ }
64
+ ];
65
+ };
42
66
  export declare abstract class MailjetMailDTO {
43
67
  recipients: string[];
44
68
  template: MailjetTemplate;
@@ -46,7 +70,7 @@ export declare abstract class MailjetMailDTO {
46
70
  constructor(recipients: string[], template: MailjetTemplate, fields: MailjetTemplateField);
47
71
  }
48
72
  export declare class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
49
- constructor(recipients: string[], verifyLink: string, hcloudOriginalEmail: string);
73
+ constructor(recipients: string[], verifyLink: string, hcloudOriginalEmail: string, name: string, company: string);
50
74
  }
51
75
  export declare class IdpNewRegistrationMailjetMailToCustomerDTO extends MailjetMailDTO {
52
76
  constructor(recipients: string[], username: string);
@@ -63,4 +87,28 @@ export declare class IdpRegisterAndInviteToOrganizationMailjetMailDto extends Ma
63
87
  export declare class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
64
88
  constructor(recipients: string[], userName: string, userEmail: string, organizationName: string);
65
89
  }
90
+ export declare class IdpAccountApprovedMailjetMailDTO extends MailjetMailDTO {
91
+ constructor(recipients: string[], username: string, signInLink: string);
92
+ }
93
+ export declare class CosmoNewShareMailjetMailDTO extends MailjetMailDTO {
94
+ constructor(recipients: string[], shareLink: string);
95
+ }
96
+ export declare class CosmoUserAddedToSpaceMailjetMailDTO extends MailjetMailDTO {
97
+ constructor(recipients: string[], actorName: string, recipientName: string, spaceName: string, link: string);
98
+ }
99
+ export declare class CosmoUserRemovedFromSpaceMailjetMailDTO extends MailjetMailDTO {
100
+ constructor(recipients: string[], actorName: string, recipientName: string, spaceName: string);
101
+ }
102
+ export declare class CosmoCommentOrAnnotationAddedMailjetMailDTO extends MailjetMailDTO {
103
+ constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
104
+ }
105
+ export declare class CosmoRepliedToCommentMailjetMailDTO extends MailjetMailDTO {
106
+ constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
107
+ }
108
+ export declare class CosmoAssetStatusChangedMailjetMailDTO extends MailjetMailDTO {
109
+ constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, newStatus: string, spaceName: string, link: string);
110
+ }
111
+ export declare class CosmoSharePasswordChangedMailjetMailDTO extends MailjetMailDTO {
112
+ constructor(recipients: string[], recipientName: string, shareName: string, shareLink: string);
113
+ }
66
114
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdpUserLeftOrganizationMailjetMailDTO = exports.IdpRegisterAndInviteToOrganizationMailjetMailDto = exports.IdpInviteToOrganizationMailjetMailDto = exports.IdpResetPasswordMailjetMailDTO = exports.IdpNewRegistrationMailjetMailToCustomerDTO = exports.IdpNewRegistrationMailjetMailDTO = exports.MailjetMailDTO = exports.Template = void 0;
3
+ exports.CosmoSharePasswordChangedMailjetMailDTO = exports.CosmoAssetStatusChangedMailjetMailDTO = exports.CosmoRepliedToCommentMailjetMailDTO = exports.CosmoCommentOrAnnotationAddedMailjetMailDTO = exports.CosmoUserRemovedFromSpaceMailjetMailDTO = exports.CosmoUserAddedToSpaceMailjetMailDTO = exports.CosmoNewShareMailjetMailDTO = exports.IdpAccountApprovedMailjetMailDTO = exports.IdpUserLeftOrganizationMailjetMailDTO = exports.IdpRegisterAndInviteToOrganizationMailjetMailDto = exports.IdpInviteToOrganizationMailjetMailDto = exports.IdpResetPasswordMailjetMailDTO = exports.IdpNewRegistrationMailjetMailToCustomerDTO = exports.IdpNewRegistrationMailjetMailDTO = exports.MailjetMailDTO = exports.Template = void 0;
4
4
  var Template;
5
5
  (function (Template) {
6
6
  Template["REGISTER"] = "register";
@@ -15,6 +15,15 @@ var MailjetTemplate;
15
15
  MailjetTemplate["IDP_RESET_PASSWORD"] = "IDP_RESET_PASSWORD";
16
16
  MailjetTemplate["IDP_REGISTRATION_AND_INVITATION"] = "IDP_REGISTRATION_AND_INVITATION";
17
17
  MailjetTemplate["IDP_USER_LEFT_ORGANIZATION"] = "IDP_USER_LEFT_ORGANIZATION";
18
+ MailjetTemplate["IDP_ACCOUNT_APPROVED"] = "IDP_ACCOUNT_APPROVED";
19
+ MailjetTemplate["COSMO_NEW_SHARE"] = "COSMO_NEW_SHARE";
20
+ MailjetTemplate["COSMO_USER_ADDED_TO_SPACE"] = "COSMO_USER_ADDED_TO_SPACE";
21
+ MailjetTemplate["COSMO_USER_REMOVED_FROM_SPACE"] = "COSMO_USER_REMOVED_FROM_SPACE";
22
+ MailjetTemplate["COSMO_COMMENT_ADDED"] = "COSMO_COMMENT_ADDED";
23
+ MailjetTemplate["COSMO_REPLIED_TO_COMMENT"] = "COSMO_REPLIED_TO_COMMENT";
24
+ MailjetTemplate["COSMO_ASSET_STATUS_CHANGED"] = "COSMO_ASSET_STATUS_CHANGED";
25
+ MailjetTemplate["COSMO_ASSET_UPLOADED_TO_SHARE"] = "COSMO_ASSET_UPLOADED_TO_SHARE";
26
+ MailjetTemplate["COSMO_SHARE_PASSWORD_CHANGED"] = "COSMO_SHARE_PASSWORD_CHANGED";
18
27
  })(MailjetTemplate || (MailjetTemplate = {}));
19
28
  class MailjetMailDTO {
20
29
  constructor(recipients, template, fields) {
@@ -25,10 +34,12 @@ class MailjetMailDTO {
25
34
  }
26
35
  exports.MailjetMailDTO = MailjetMailDTO;
27
36
  class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
28
- constructor(recipients, verifyLink, hcloudOriginalEmail) {
37
+ constructor(recipients, verifyLink, hcloudOriginalEmail, name, company) {
29
38
  super(recipients, MailjetTemplate.IDP_NEW_REGISTRATION, {
30
39
  HCLOUD_VERIFY_LINK: verifyLink,
31
40
  HCLOUD_ORIGINAL_EMAIL: hcloudOriginalEmail,
41
+ HCLOUD_NAME: name,
42
+ HCLOUD_COMPANY: company,
32
43
  });
33
44
  }
34
45
  }
@@ -79,3 +90,90 @@ class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
79
90
  }
80
91
  }
81
92
  exports.IdpUserLeftOrganizationMailjetMailDTO = IdpUserLeftOrganizationMailjetMailDTO;
93
+ class IdpAccountApprovedMailjetMailDTO extends MailjetMailDTO {
94
+ constructor(recipients, username, signInLink) {
95
+ super(recipients, MailjetTemplate.IDP_ACCOUNT_APPROVED, {
96
+ USERNAME: username,
97
+ HCLOUD_SIGN_IN_LINK: signInLink,
98
+ });
99
+ }
100
+ }
101
+ exports.IdpAccountApprovedMailjetMailDTO = IdpAccountApprovedMailjetMailDTO;
102
+ class CosmoNewShareMailjetMailDTO extends MailjetMailDTO {
103
+ constructor(recipients, shareLink) {
104
+ super(recipients, MailjetTemplate.COSMO_NEW_SHARE, {
105
+ HCLOUD_SHARE_LINK: shareLink,
106
+ });
107
+ }
108
+ }
109
+ exports.CosmoNewShareMailjetMailDTO = CosmoNewShareMailjetMailDTO;
110
+ class CosmoUserAddedToSpaceMailjetMailDTO extends MailjetMailDTO {
111
+ constructor(recipients, actorName, recipientName, spaceName, link) {
112
+ super(recipients, MailjetTemplate.COSMO_USER_ADDED_TO_SPACE, {
113
+ ACTOR_NAME: actorName,
114
+ RECIPIENT_NAME: recipientName,
115
+ SPACE_NAME: spaceName,
116
+ LINK: link,
117
+ });
118
+ }
119
+ }
120
+ exports.CosmoUserAddedToSpaceMailjetMailDTO = CosmoUserAddedToSpaceMailjetMailDTO;
121
+ class CosmoUserRemovedFromSpaceMailjetMailDTO extends MailjetMailDTO {
122
+ constructor(recipients, actorName, recipientName, spaceName) {
123
+ super(recipients, MailjetTemplate.COSMO_USER_REMOVED_FROM_SPACE, {
124
+ ACTOR_NAME: actorName,
125
+ RECIPIENT_NAME: recipientName,
126
+ SPACE_NAME: spaceName,
127
+ });
128
+ }
129
+ }
130
+ exports.CosmoUserRemovedFromSpaceMailjetMailDTO = CosmoUserRemovedFromSpaceMailjetMailDTO;
131
+ class CosmoCommentOrAnnotationAddedMailjetMailDTO extends MailjetMailDTO {
132
+ constructor(recipients, assetName, recipientName, actorName, commentSnippet, spaceName, link) {
133
+ super(recipients, MailjetTemplate.COSMO_COMMENT_ADDED, {
134
+ ASSET_NAME: assetName,
135
+ RECIPIENT_NAME: recipientName,
136
+ ACTOR_NAME: actorName,
137
+ COMMENT_SNIPPET: commentSnippet,
138
+ SPACE_NAME: spaceName,
139
+ LINK: link,
140
+ });
141
+ }
142
+ }
143
+ exports.CosmoCommentOrAnnotationAddedMailjetMailDTO = CosmoCommentOrAnnotationAddedMailjetMailDTO;
144
+ class CosmoRepliedToCommentMailjetMailDTO extends MailjetMailDTO {
145
+ constructor(recipients, assetName, recipientName, actorName, commentSnippet, spaceName, link) {
146
+ super(recipients, MailjetTemplate.COSMO_REPLIED_TO_COMMENT, {
147
+ ASSET_NAME: assetName,
148
+ RECIPIENT_NAME: recipientName,
149
+ ACTOR_NAME: actorName,
150
+ COMMENT_SNIPPET: commentSnippet,
151
+ SPACE_NAME: spaceName,
152
+ LINK: link,
153
+ });
154
+ }
155
+ }
156
+ exports.CosmoRepliedToCommentMailjetMailDTO = CosmoRepliedToCommentMailjetMailDTO;
157
+ class CosmoAssetStatusChangedMailjetMailDTO extends MailjetMailDTO {
158
+ constructor(recipients, assetName, recipientName, actorName, newStatus, spaceName, link) {
159
+ super(recipients, MailjetTemplate.COSMO_ASSET_STATUS_CHANGED, {
160
+ ASSET_NAME: assetName,
161
+ RECIPIENT_NAME: recipientName,
162
+ ACTOR_NAME: actorName,
163
+ NEW_STATUS: newStatus,
164
+ SPACE_NAME: spaceName,
165
+ LINK: link,
166
+ });
167
+ }
168
+ }
169
+ exports.CosmoAssetStatusChangedMailjetMailDTO = CosmoAssetStatusChangedMailjetMailDTO;
170
+ class CosmoSharePasswordChangedMailjetMailDTO extends MailjetMailDTO {
171
+ constructor(recipients, recipientName, shareName, shareLink) {
172
+ super(recipients, MailjetTemplate.COSMO_SHARE_PASSWORD_CHANGED, {
173
+ RECIPIENT_NAME: recipientName,
174
+ SHARE_NAME: shareName,
175
+ HCLOUD_SHARE_LINK: shareLink,
176
+ });
177
+ }
178
+ }
179
+ exports.CosmoSharePasswordChangedMailjetMailDTO = CosmoSharePasswordChangedMailjetMailDTO;
@@ -1,3 +1,4 @@
1
+ import { ReducedUser } from "../idp";
1
2
  export declare enum AgentStatus {
2
3
  BUSY = "BUSY",
3
4
  IDLE = "IDLE"
@@ -24,5 +25,6 @@ export type Agent = {
24
25
  };
25
26
  export type TargetAgent = Pick<Agent, Exclude<keyof Agent, "uptime">> & {
26
27
  connectionUptime: number;
27
- targetEmail: string;
28
+ target: ReducedUser;
28
29
  };
30
+ export * from "./stats";
@@ -1,4 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.AgentStatus = void 0;
4
18
  var AgentStatus;
@@ -6,3 +20,4 @@ var AgentStatus;
6
20
  AgentStatus["BUSY"] = "BUSY";
7
21
  AgentStatus["IDLE"] = "IDLE";
8
22
  })(AgentStatus || (exports.AgentStatus = AgentStatus = {}));
23
+ __exportStar(require("./stats"), exports);
@@ -0,0 +1,4 @@
1
+ export type Stats = {
2
+ orgName: string;
3
+ connectedAgents: number;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });