hcloud-sdk 17.0.0 → 18.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 (275) hide show
  1. package/changelog.md +176 -76
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +6 -3
  4. package/lib/Hcloud.js +16 -5
  5. package/lib/helper/ValidationHelper.d.ts +10 -2
  6. package/lib/helper/ValidationHelper.js +55 -7
  7. package/lib/interfaces/auditor/index.d.ts +13 -2
  8. package/lib/interfaces/auditor/index.js +9 -1
  9. package/lib/interfaces/cosmo/asset/index.d.ts +185 -0
  10. package/lib/interfaces/cosmo/asset/index.js +82 -0
  11. package/lib/interfaces/cosmo/comment/index.d.ts +38 -0
  12. package/lib/interfaces/cosmo/comment/index.js +8 -0
  13. package/lib/interfaces/cosmo/event/index.d.ts +31 -0
  14. package/lib/interfaces/cosmo/event/index.js +17 -0
  15. package/lib/interfaces/cosmo/location/index.d.ts +4 -0
  16. package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
  17. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  18. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  19. package/lib/interfaces/cosmo/permissions.js +58 -0
  20. package/lib/interfaces/cosmo/share/index.d.ts +28 -0
  21. package/lib/interfaces/cosmo/share/index.js +2 -0
  22. package/lib/interfaces/cosmo/space/index.d.ts +25 -0
  23. package/lib/interfaces/cosmo/space/index.js +2 -0
  24. package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
  25. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  26. package/lib/interfaces/global/Products.d.ts +2 -2
  27. package/lib/interfaces/global/Products.js +1 -1
  28. package/lib/interfaces/high5/index.d.ts +7 -7
  29. package/lib/interfaces/high5/index.js +7 -7
  30. package/lib/interfaces/{friday → high5}/space/database/document/index.d.ts +1 -1
  31. package/lib/interfaces/{friday → high5}/space/database/document/index.js +2 -1
  32. package/lib/interfaces/high5/space/database/index.js +2 -0
  33. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
  34. package/lib/interfaces/high5/space/execution/index.d.ts +2 -1
  35. package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
  36. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  37. package/lib/interfaces/high5/space/job/index.d.ts +38 -0
  38. package/lib/interfaces/high5/space/job/index.js +8 -0
  39. package/lib/interfaces/high5/stats.d.ts +21 -0
  40. package/lib/interfaces/high5/stats.js +2 -0
  41. package/lib/interfaces/idp/oauth/index.d.ts +4 -3
  42. package/lib/interfaces/idp/organization/index.d.ts +1 -0
  43. package/lib/interfaces/idp/organization/index.js +1 -0
  44. package/lib/interfaces/idp/organization/license/index.d.ts +13 -11
  45. package/lib/interfaces/idp/organization/member/index.d.ts +1 -0
  46. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  47. package/lib/interfaces/idp/organization/stats.js +2 -0
  48. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  49. package/lib/interfaces/idp/user/Message.d.ts +21 -0
  50. package/lib/interfaces/idp/user/Message.js +14 -0
  51. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  52. package/lib/interfaces/idp/user/Scopes.d.ts +1 -7
  53. package/lib/interfaces/idp/user/Scopes.js +0 -9
  54. package/lib/interfaces/idp/user/index.d.ts +2 -1
  55. package/lib/interfaces/mailer/index.d.ts +30 -1
  56. package/lib/interfaces/mailer/index.js +87 -1
  57. package/lib/interfaces/mothership/index.d.ts +3 -1
  58. package/lib/interfaces/mothership/index.js +15 -0
  59. package/lib/interfaces/mothership/stats.d.ts +4 -0
  60. package/lib/interfaces/mothership/stats.js +2 -0
  61. package/lib/interfaces/nats/index.d.ts +54 -24
  62. package/lib/interfaces/nats/index.js +87 -58
  63. package/lib/interfaces/shorts/index.d.ts +10 -0
  64. package/lib/interfaces/shorts/index.js +2 -0
  65. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  66. package/lib/service/agent/bundle/dev/index.js +12 -10
  67. package/lib/service/agent/bundle/index.d.ts +10 -4
  68. package/lib/service/agent/bundle/index.js +6 -6
  69. package/lib/service/agent/context/index.d.ts +22 -8
  70. package/lib/service/agent/context/index.js +15 -14
  71. package/lib/service/auditor/index.d.ts +8 -4
  72. package/lib/service/auditor/index.js +5 -5
  73. package/lib/service/auditor/internal/index.d.ts +27 -3
  74. package/lib/service/auditor/internal/index.js +34 -5
  75. package/lib/service/bouncer/features/index.d.ts +4 -2
  76. package/lib/service/bouncer/features/index.js +2 -2
  77. package/lib/service/cosmo/asset/index.d.ts +219 -0
  78. package/lib/service/cosmo/asset/index.js +314 -0
  79. package/lib/service/cosmo/comment/index.d.ts +122 -0
  80. package/lib/service/cosmo/comment/index.js +161 -0
  81. package/lib/service/cosmo/event/index.d.ts +23 -0
  82. package/lib/service/cosmo/event/index.js +40 -0
  83. package/lib/service/cosmo/folder/index.d.ts +27 -0
  84. package/lib/service/cosmo/folder/index.js +47 -0
  85. package/lib/service/cosmo/index.d.ts +49 -0
  86. package/lib/service/cosmo/index.js +119 -0
  87. package/lib/service/cosmo/internal/index.d.ts +7 -0
  88. package/lib/service/cosmo/internal/index.js +17 -0
  89. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  90. package/lib/service/cosmo/internal/space/index.js +34 -0
  91. package/lib/service/cosmo/location/index.d.ts +40 -0
  92. package/lib/service/cosmo/location/index.js +63 -0
  93. package/lib/service/cosmo/namespace/index.d.ts +42 -0
  94. package/lib/service/cosmo/namespace/index.js +65 -0
  95. package/lib/service/cosmo/organization/index.d.ts +47 -0
  96. package/lib/service/cosmo/organization/index.js +64 -0
  97. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  98. package/lib/service/cosmo/permissions/index.js +181 -0
  99. package/lib/service/cosmo/production/index.d.ts +26 -0
  100. package/lib/service/cosmo/production/index.js +45 -0
  101. package/lib/service/cosmo/share/index.d.ts +161 -0
  102. package/lib/service/cosmo/share/index.js +215 -0
  103. package/lib/service/cosmo/space/index.d.ts +104 -0
  104. package/lib/service/cosmo/space/index.js +146 -0
  105. package/lib/service/cosmo/tag/index.d.ts +67 -0
  106. package/lib/service/cosmo/tag/index.js +93 -0
  107. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +10 -4
  108. package/lib/service/dali/avatar/DaliCosmoSpace.js +8 -7
  109. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
  110. package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
  111. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
  112. package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
  113. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
  114. package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
  115. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
  116. package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
  117. package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
  118. package/lib/service/dali/avatar/DaliOrganization.js +7 -6
  119. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +10 -4
  120. package/lib/service/dali/avatar/DaliServiceAccount.js +7 -6
  121. package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
  122. package/lib/service/dali/avatar/DaliTeam.js +7 -6
  123. package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
  124. package/lib/service/dali/avatar/DaliUser.js +7 -6
  125. package/lib/service/dali/index.d.ts +4 -5
  126. package/lib/service/dali/index.js +2 -5
  127. package/lib/service/fuse/index.d.ts +4 -2
  128. package/lib/service/fuse/index.js +2 -2
  129. package/lib/service/fuse/internal/index.d.ts +4 -2
  130. package/lib/service/fuse/internal/index.js +3 -2
  131. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
  132. package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
  133. package/lib/service/fuse/internal/space/index.d.ts +7 -3
  134. package/lib/service/fuse/internal/space/index.js +6 -4
  135. package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
  136. package/lib/service/fuse/space/cronjob/index.js +48 -50
  137. package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
  138. package/lib/service/fuse/space/cronjob/log/index.js +5 -5
  139. package/lib/service/fuse/space/index.d.ts +27 -11
  140. package/lib/service/fuse/space/index.js +19 -18
  141. package/lib/service/high5/execution/index.d.ts +4 -2
  142. package/lib/service/high5/execution/index.js +3 -2
  143. package/lib/service/high5/execution/status/index.d.ts +5 -3
  144. package/lib/service/high5/execution/status/index.js +3 -3
  145. package/lib/service/high5/index.d.ts +7 -2
  146. package/lib/service/high5/index.js +9 -2
  147. package/lib/service/high5/internal/index.d.ts +4 -2
  148. package/lib/service/high5/internal/index.js +3 -2
  149. package/lib/service/high5/internal/space/index.d.ts +10 -3
  150. package/lib/service/high5/internal/space/index.js +13 -4
  151. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  152. package/lib/service/high5/internal/space/job/index.js +17 -0
  153. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  154. package/lib/service/high5/internal/space/job/log/index.js +34 -0
  155. package/lib/service/high5/joinToken/index.d.ts +14 -6
  156. package/lib/service/high5/joinToken/index.js +10 -9
  157. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  158. package/lib/service/high5/space/database/document/array/index.js +102 -0
  159. package/lib/service/{friday → high5}/space/database/document/index.d.ts +26 -10
  160. package/lib/service/{friday → high5}/space/database/document/index.js +31 -16
  161. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  162. package/lib/service/high5/space/database/document/number/index.js +77 -0
  163. package/lib/service/{friday → high5}/space/database/index.d.ts +22 -12
  164. package/lib/service/{friday → high5}/space/database/index.js +18 -17
  165. package/lib/service/high5/space/event/index.d.ts +17 -7
  166. package/lib/service/high5/space/event/index.js +12 -11
  167. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  168. package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -2
  169. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  170. package/lib/service/high5/space/event/stream/design/index.js +7 -6
  171. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  172. package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
  173. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  174. package/lib/service/high5/space/event/stream/index.js +22 -21
  175. package/lib/service/high5/space/execution/index.d.ts +19 -7
  176. package/lib/service/high5/space/execution/index.js +17 -12
  177. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  178. package/lib/service/high5/space/execution/log/index.js +5 -5
  179. package/lib/service/high5/space/execution/status/index.d.ts +7 -3
  180. package/lib/service/high5/space/execution/status/index.js +4 -4
  181. package/lib/service/high5/space/index.d.ts +43 -14
  182. package/lib/service/high5/space/index.js +45 -23
  183. package/lib/service/high5/space/job/index.d.ts +145 -0
  184. package/lib/service/high5/space/job/index.js +201 -0
  185. package/lib/service/high5/space/job/log/index.d.ts +35 -0
  186. package/lib/service/high5/space/job/log/index.js +58 -0
  187. package/lib/service/high5/space/node/index.d.ts +20 -8
  188. package/lib/service/high5/space/node/index.js +14 -13
  189. package/lib/service/high5/space/pool/index.d.ts +27 -11
  190. package/lib/service/high5/space/pool/index.js +19 -18
  191. package/lib/service/high5/space/secret/index.d.ts +17 -7
  192. package/lib/service/high5/space/secret/index.js +12 -11
  193. package/lib/service/high5/space/stat/index.d.ts +12 -0
  194. package/lib/service/high5/space/stat/index.js +31 -0
  195. package/lib/service/high5/space/wave/index.d.ts +16 -6
  196. package/lib/service/high5/space/wave/index.js +11 -10
  197. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  198. package/lib/service/high5/space/webhook/index.js +25 -21
  199. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  200. package/lib/service/high5/space/webhook/log/index.js +2 -2
  201. package/lib/service/high5/stat/index.d.ts +11 -0
  202. package/lib/service/high5/stat/index.js +30 -0
  203. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  204. package/lib/service/high5/wave/s3/index.js +42 -21
  205. package/lib/service/idp/guest/index.d.ts +42 -0
  206. package/lib/service/idp/guest/index.js +66 -0
  207. package/lib/service/idp/index.d.ts +25 -7
  208. package/lib/service/idp/index.js +23 -12
  209. package/lib/service/idp/internal/index.d.ts +5 -3
  210. package/lib/service/idp/internal/index.js +5 -3
  211. package/lib/service/idp/oauth/index.d.ts +16 -6
  212. package/lib/service/idp/oauth/index.js +15 -15
  213. package/lib/service/idp/organization/index.d.ts +19 -5
  214. package/lib/service/idp/organization/index.js +19 -8
  215. package/lib/service/idp/organization/license/index.d.ts +7 -3
  216. package/lib/service/idp/organization/license/index.js +4 -4
  217. package/lib/service/idp/organization/member/index.d.ts +20 -8
  218. package/lib/service/idp/organization/member/index.js +15 -13
  219. package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
  220. package/lib/service/idp/organization/member/invitations/index.js +72 -59
  221. package/lib/service/idp/organization/service-accounts/index.d.ts +20 -8
  222. package/lib/service/idp/organization/service-accounts/index.js +13 -12
  223. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  224. package/lib/service/idp/organization/settings/domain/index.js +9 -8
  225. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  226. package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
  227. package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
  228. package/lib/service/idp/organization/settings/oauth/index.js +16 -15
  229. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  230. package/lib/service/idp/organization/stat/index.js +30 -0
  231. package/lib/service/idp/organization/team/index.d.ts +22 -10
  232. package/lib/service/idp/organization/team/index.js +14 -13
  233. package/lib/service/idp/registration/index.d.ts +10 -4
  234. package/lib/service/idp/registration/index.js +15 -9
  235. package/lib/service/idp/user/index.d.ts +33 -11
  236. package/lib/service/idp/user/index.js +29 -16
  237. package/lib/service/idp/user/license/index.d.ts +7 -3
  238. package/lib/service/idp/user/license/index.js +4 -4
  239. package/lib/service/idp/user/message/index.d.ts +61 -0
  240. package/lib/service/idp/user/message/index.js +92 -0
  241. package/lib/service/idp/user/password/index.d.ts +4 -2
  242. package/lib/service/idp/user/password/index.js +2 -2
  243. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  244. package/lib/service/idp/user/settings/connections/index.js +2 -2
  245. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  246. package/lib/service/idp/user/settings/general/index.js +6 -6
  247. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  248. package/lib/service/idp/user/settings/notifications/index.js +4 -4
  249. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  250. package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
  251. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  252. package/lib/service/idp/user/settings/pats/index.js +17 -15
  253. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  254. package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
  255. package/lib/service/mailer/index.d.ts +4 -2
  256. package/lib/service/mailer/index.js +2 -2
  257. package/lib/service/mailer/internal/index.d.ts +13 -5
  258. package/lib/service/mailer/internal/index.js +8 -8
  259. package/lib/service/mothership/index.d.ts +35 -13
  260. package/lib/service/mothership/index.js +32 -17
  261. package/lib/service/nats/index.js +58 -43
  262. package/lib/service/shorts/index.d.ts +18 -0
  263. package/lib/service/{friday → shorts}/index.js +13 -10
  264. package/lib/service/shorts/internal/index.d.ts +72 -0
  265. package/lib/service/shorts/internal/index.js +104 -0
  266. package/package.json +1 -1
  267. package/lib/interfaces/friday/index.d.ts +0 -3
  268. package/lib/interfaces/friday/index.js +0 -19
  269. package/lib/interfaces/friday/space/index.d.ts +0 -21
  270. package/lib/interfaces/friday/space/index.js +0 -11
  271. package/lib/service/friday/index.d.ts +0 -13
  272. package/lib/service/friday/space/index.d.ts +0 -81
  273. package/lib/service/friday/space/index.js +0 -150
  274. /package/lib/interfaces/{friday/space/database → cosmo/location}/index.js +0 -0
  275. /package/lib/interfaces/{friday → high5}/space/database/index.d.ts +0 -0
@@ -12,6 +12,6 @@ var Products;
12
12
  Products["client"] = "client";
13
13
  Products["all"] = "all";
14
14
  Products["mothership"] = "mothership";
15
+ Products["shorts"] = "shorts";
15
16
  Products["cosmo"] = "cosmo";
16
- Products["friday"] = "friday";
17
17
  })(Products || (exports.Products = Products = {}));
@@ -1,16 +1,16 @@
1
1
  export * from "./space";
2
2
  export * from "./wave";
3
3
  export * from "./space/event";
4
- export * from "./space/webhook";
5
- export * from "./space/secret";
6
- export * from "./space/event/stream";
7
- export * from "./space/event/stream/design";
8
- export * from "./space/event";
9
4
  export * from "./space/event/stream";
10
5
  export * from "./space/event/stream/design";
11
6
  export * from "./space/event/stream/node";
12
7
  export * from "./space/webhook";
13
8
  export * from "./space/secret";
14
- export * from "./joinToken";
15
9
  export * from "./space/pool";
16
- export * from "./execution/";
10
+ export * from "./space/database";
11
+ export * from "./space/database/document";
12
+ export * from "./execution";
13
+ export * from "./joinToken";
14
+ export * from "./space/job";
15
+ export * from "./space/job/JobLog";
16
+ export * from "./stats";
@@ -17,16 +17,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./space"), exports);
18
18
  __exportStar(require("./wave"), exports);
19
19
  __exportStar(require("./space/event"), exports);
20
- __exportStar(require("./space/webhook"), exports);
21
- __exportStar(require("./space/secret"), exports);
22
- __exportStar(require("./space/event/stream"), exports);
23
- __exportStar(require("./space/event/stream/design"), exports);
24
- __exportStar(require("./space/event"), exports);
25
20
  __exportStar(require("./space/event/stream"), exports);
26
21
  __exportStar(require("./space/event/stream/design"), exports);
27
22
  __exportStar(require("./space/event/stream/node"), exports);
28
23
  __exportStar(require("./space/webhook"), exports);
29
24
  __exportStar(require("./space/secret"), exports);
30
- __exportStar(require("./joinToken"), exports);
31
25
  __exportStar(require("./space/pool"), exports);
32
- __exportStar(require("./execution/"), exports);
26
+ __exportStar(require("./space/database"), exports);
27
+ __exportStar(require("./space/database/document"), exports);
28
+ __exportStar(require("./execution"), exports);
29
+ __exportStar(require("./joinToken"), exports);
30
+ __exportStar(require("./space/job"), exports);
31
+ __exportStar(require("./space/job/JobLog"), exports);
32
+ __exportStar(require("./stats"), exports);
@@ -31,4 +31,4 @@ interface DocumentCreateDto {
31
31
  interface DocumentPatchDto {
32
32
  value: any;
33
33
  }
34
- export { Document, DocumentCreateDto, DocumentPatchDto };
34
+ export { Document, DocumentCreateDto, DocumentPatchDto, DocumentType };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentType = void 0;
3
4
  var DocumentType;
4
5
  (function (DocumentType) {
5
6
  DocumentType["STRING"] = "STRING";
@@ -10,4 +11,4 @@ var DocumentType;
10
11
  DocumentType["BOOLEAN_LIST"] = "BOOLEAN_LIST";
11
12
  DocumentType["OBJECT"] = "OBJECT";
12
13
  DocumentType["ARRAY"] = "ARRAY";
13
- })(DocumentType || (DocumentType = {}));
14
+ })(DocumentType || (exports.DocumentType = DocumentType = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -32,6 +32,13 @@ export interface DesignerNodeCatalog {
32
32
  export type StringMap = {
33
33
  [key: string]: string;
34
34
  };
35
+ export type SortedStringMap = {
36
+ id: number;
37
+ value: {
38
+ key: string;
39
+ value: string;
40
+ };
41
+ };
35
42
  export interface DesignerNodeInput {
36
43
  uuid: string;
37
44
  name: string;
@@ -39,8 +46,8 @@ export interface DesignerNodeInput {
39
46
  advanced?: boolean;
40
47
  type: StreamNodeSpecificationInputType;
41
48
  selectedLanguage?: StringMap;
42
- example: string | number | boolean | string[] | StringMap | StringMap[];
43
- value?: string | number | boolean | string[] | StringMap | StringMap[];
49
+ example: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
50
+ value?: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
44
51
  mandatory?: boolean;
45
52
  }
46
53
  export interface DesignerNodeConnector {
@@ -132,7 +132,7 @@ export interface High5ExecutionStatus {
132
132
  outcome: High5ExecutionOutcome;
133
133
  message: string;
134
134
  runningNodes: StreamRunningNode[];
135
- target: string;
135
+ target: ReducedUser;
136
136
  triggerSource?: TriggerSource;
137
137
  dry: boolean;
138
138
  createDate: number;
@@ -149,6 +149,7 @@ export interface High5ExecutionLog {
149
149
  payload?: High5ExecutionPayload;
150
150
  high5ExecutionId: string;
151
151
  nodeResults: StreamSingleNodeResult[];
152
+ target: ReducedUser;
152
153
  createDate: number;
153
154
  }
154
155
  export interface High5ExecutionResponse {
@@ -0,0 +1,16 @@
1
+ import { Header, ReducedSpace } from "../../../global";
2
+ import { ReducedOrganization } from "../../../idp/organization";
3
+ import { ReducedUser } from "../../../idp/user";
4
+ export interface JobLogDto {
5
+ _id: string;
6
+ jobId: string;
7
+ statusCode: number;
8
+ organization: ReducedOrganization;
9
+ creator: ReducedUser;
10
+ space: ReducedSpace;
11
+ headers?: Header[];
12
+ body?: string;
13
+ createDate: number;
14
+ modifyDate: number;
15
+ }
16
+ export type JobLogCreate = Pick<JobLogDto, "statusCode" | "headers" | "body">;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,38 @@
1
+ import { Select } from "../../../../utils/Types";
2
+ import { Header, HttpMethod, ReducedSpace } from "../../../global";
3
+ import { ReducedOrganization } from "../../../idp/organization";
4
+ import { ReducedUser } from "../../../idp/user";
5
+ export interface Job {
6
+ _id: string;
7
+ name: string;
8
+ expression: string;
9
+ organization: ReducedOrganization;
10
+ creator: ReducedUser;
11
+ space: ReducedSpace;
12
+ targetUrl: string;
13
+ httpMethod: HttpMethod;
14
+ acceptInvalidSSL: boolean;
15
+ timezone: string;
16
+ description?: string;
17
+ headers?: Header[];
18
+ body?: string;
19
+ enabled?: boolean;
20
+ createDate: number;
21
+ modifyDate: number;
22
+ nextExecution?: number[];
23
+ lastStatus?: number;
24
+ lastTriggered?: number;
25
+ hmacSettings?: HmacSettings;
26
+ }
27
+ export type HmacSettings = {
28
+ headerName: string;
29
+ secret: string;
30
+ algorithm: HmacHashingAlgo;
31
+ };
32
+ export declare enum HmacHashingAlgo {
33
+ SHA_1 = "SHA-1",
34
+ SHA_256 = "SHA-256"
35
+ }
36
+ export type JobCreate = Pick<Job, "name" | "expression" | "targetUrl" | "httpMethod" | "headers" | "body" | "enabled" | "description" | "lastStatus" | "lastTriggered"> & Partial<Pick<Job, "acceptInvalidSSL" | "timezone">> & {
37
+ hmacSettings: Select<HmacSettings, "headerName" | "algorithm", "secret">;
38
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HmacHashingAlgo = void 0;
4
+ var HmacHashingAlgo;
5
+ (function (HmacHashingAlgo) {
6
+ HmacHashingAlgo["SHA_1"] = "SHA-1";
7
+ HmacHashingAlgo["SHA_256"] = "SHA-256";
8
+ })(HmacHashingAlgo || (exports.HmacHashingAlgo = HmacHashingAlgo = {}));
@@ -0,0 +1,21 @@
1
+ export interface Stats {
2
+ orgName: string;
3
+ spaceName?: string;
4
+ spaces: number;
5
+ events: number;
6
+ streams: number;
7
+ secrets: number;
8
+ webhooks: number;
9
+ jobs: number;
10
+ databases: number;
11
+ documents: number;
12
+ executions: {
13
+ [year: number]: {
14
+ [month: number]: {
15
+ [day: number]: {
16
+ count: number;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,10 @@
1
1
  import { Scope } from "../user/Scopes";
2
2
  export interface OAuthTokenRequest {
3
3
  code: string;
4
- clientId: string;
5
- clientSecret: string;
6
- redirectUri: string;
4
+ client_id: string;
5
+ client_secret: string;
6
+ redirect_uri: string;
7
+ grant_type: GrantType;
7
8
  }
8
9
  export interface OAuthToken {
9
10
  id_token?: string;
@@ -2,6 +2,7 @@ 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 {
6
7
  MEMBER = "MEMBER",// Part of org, but cannot change anything
7
8
  MANAGER = "MANAGER",// Can update members
@@ -16,6 +16,7 @@ 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) {
21
22
  OrganizationRole["MEMBER"] = "MEMBER";
@@ -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;
@@ -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,21 @@
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
+ }
@@ -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">>;
@@ -17,16 +17,13 @@ export declare enum Scope {
17
17
  FUSE_SPACE_EXECUTE = "fuse:space:execute",
18
18
  FUSE_SPACE_WRITE = "fuse:space:write",
19
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
20
  COSMO_SPACE_READ = "cosmo:space:read",
24
21
  COSMO_SPACE_WRITE = "cosmo:space:write",
25
22
  COSMO_SPACE_DELETE = "cosmo:space:delete"
26
23
  }
27
24
  export declare const ScopeDescriptions: Map<string, string>;
28
25
  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)[];
26
+ "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.COSMO_SPACE_READ | Scope.COSMO_SPACE_WRITE | Scope.COSMO_SPACE_DELETE)[];
30
27
  "idp:email:read": never[];
31
28
  "idp:user:read": never[];
32
29
  "idp:user:write": Scope[];
@@ -44,9 +41,6 @@ export declare const ScopeDependencies: {
44
41
  "fuse:space:execute": never[];
45
42
  "fuse:space:write": Scope[];
46
43
  "fuse:space:delete": Scope[];
47
- "friday:space:read": Scope[];
48
- "friday:space:write": Scope[];
49
- "friday:space:delete": Scope[];
50
44
  "cosmo:space:read": Scope[];
51
45
  "cosmo:space:write": Scope[];
52
46
  "cosmo:space:delete": Scope[];
@@ -21,9 +21,6 @@ var Scope;
21
21
  Scope["FUSE_SPACE_EXECUTE"] = "fuse:space:execute";
22
22
  Scope["FUSE_SPACE_WRITE"] = "fuse:space:write";
23
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
24
  Scope["COSMO_SPACE_READ"] = "cosmo:space:read";
28
25
  Scope["COSMO_SPACE_WRITE"] = "cosmo:space:write";
29
26
  Scope["COSMO_SPACE_DELETE"] = "cosmo:space:delete";
@@ -47,9 +44,6 @@ exports.ScopeDescriptions = new Map([
47
44
  [Scope.FUSE_SPACE_EXECUTE, "Execute tasks in Fuse."],
48
45
  [Scope.FUSE_SPACE_WRITE, "Create or update Fuse data."],
49
46
  [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
47
  [Scope.COSMO_SPACE_READ, "Read Cosmo space data."],
54
48
  [Scope.COSMO_SPACE_WRITE, "Create or update Cosmo data."],
55
49
  [Scope.COSMO_SPACE_DELETE, "Delete Cosmo data."],
@@ -79,9 +73,6 @@ exports.ScopeDependencies = {
79
73
  [Scope.FUSE_SPACE_EXECUTE]: [],
80
74
  [Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
81
75
  [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
76
  [Scope.COSMO_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
86
77
  [Scope.COSMO_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ],
87
78
  [Scope.COSMO_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ, Scope.COSMO_SPACE_WRITE],
@@ -14,8 +14,9 @@ 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">;
19
20
  export interface UserPatch {
20
21
  name?: string;
21
22
  email?: string;
@@ -34,7 +34,15 @@ 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
+ COSMO_NEW_SHARE = "COSMO_NEW_SHARE",
39
+ COSMO_USER_ADDED_TO_SPACE = "COSMO_USER_ADDED_TO_SPACE",
40
+ COSMO_USER_REMOVED_FROM_SPACE = "COSMO_USER_REMOVED_FROM_SPACE",
41
+ COSMO_COMMENT_ADDED = "COSMO_COMMENT_ADDED",
42
+ COSMO_REPLIED_TO_COMMENT = "COSMO_REPLIED_TO_COMMENT",
43
+ COSMO_ASSET_STATUS_CHANGED = "COSMO_ASSET_STATUS_CHANGED",
44
+ COSMO_ASSET_UPLOADED_TO_SHARE = "COSMO_ASSET_UPLOADED_TO_SHARE",
45
+ COSMO_SHARE_PASSWORD_CHANGED = "COSMO_SHARE_PASSWORD_CHANGED"
38
46
  }
39
47
  interface MailjetTemplateField {
40
48
  [key: string]: string;
@@ -63,4 +71,25 @@ export declare class IdpRegisterAndInviteToOrganizationMailjetMailDto extends Ma
63
71
  export declare class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
64
72
  constructor(recipients: string[], userName: string, userEmail: string, organizationName: string);
65
73
  }
74
+ export declare class CosmoNewShareMailjetMailDTO extends MailjetMailDTO {
75
+ constructor(recipients: string[], shareLink: string);
76
+ }
77
+ export declare class CosmoUserAddedToSpaceMailjetMailDTO extends MailjetMailDTO {
78
+ constructor(recipients: string[], actorName: string, recipientName: string, spaceName: string, link: string);
79
+ }
80
+ export declare class CosmoUserRemovedFromSpaceMailjetMailDTO extends MailjetMailDTO {
81
+ constructor(recipients: string[], actorName: string, recipientName: string, spaceName: string);
82
+ }
83
+ export declare class CosmoCommentOrAnnotationAddedMailjetMailDTO extends MailjetMailDTO {
84
+ constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
85
+ }
86
+ export declare class CosmoRepliedToCommentMailjetMailDTO extends MailjetMailDTO {
87
+ constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
88
+ }
89
+ export declare class CosmoAssetStatusChangedMailjetMailDTO extends MailjetMailDTO {
90
+ constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, newStatus: string, spaceName: string, link: string);
91
+ }
92
+ export declare class CosmoSharePasswordChangedMailjetMailDTO extends MailjetMailDTO {
93
+ constructor(recipients: string[], recipientName: string, shareName: string, shareLink: string);
94
+ }
66
95
  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.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,14 @@ 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["COSMO_NEW_SHARE"] = "COSMO_NEW_SHARE";
19
+ MailjetTemplate["COSMO_USER_ADDED_TO_SPACE"] = "COSMO_USER_ADDED_TO_SPACE";
20
+ MailjetTemplate["COSMO_USER_REMOVED_FROM_SPACE"] = "COSMO_USER_REMOVED_FROM_SPACE";
21
+ MailjetTemplate["COSMO_COMMENT_ADDED"] = "COSMO_COMMENT_ADDED";
22
+ MailjetTemplate["COSMO_REPLIED_TO_COMMENT"] = "COSMO_REPLIED_TO_COMMENT";
23
+ MailjetTemplate["COSMO_ASSET_STATUS_CHANGED"] = "COSMO_ASSET_STATUS_CHANGED";
24
+ MailjetTemplate["COSMO_ASSET_UPLOADED_TO_SHARE"] = "COSMO_ASSET_UPLOADED_TO_SHARE";
25
+ MailjetTemplate["COSMO_SHARE_PASSWORD_CHANGED"] = "COSMO_SHARE_PASSWORD_CHANGED";
18
26
  })(MailjetTemplate || (MailjetTemplate = {}));
19
27
  class MailjetMailDTO {
20
28
  constructor(recipients, template, fields) {
@@ -79,3 +87,81 @@ class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
79
87
  }
80
88
  }
81
89
  exports.IdpUserLeftOrganizationMailjetMailDTO = IdpUserLeftOrganizationMailjetMailDTO;
90
+ class CosmoNewShareMailjetMailDTO extends MailjetMailDTO {
91
+ constructor(recipients, shareLink) {
92
+ super(recipients, MailjetTemplate.COSMO_NEW_SHARE, {
93
+ HCLOUD_SHARE_LINK: shareLink,
94
+ });
95
+ }
96
+ }
97
+ exports.CosmoNewShareMailjetMailDTO = CosmoNewShareMailjetMailDTO;
98
+ class CosmoUserAddedToSpaceMailjetMailDTO extends MailjetMailDTO {
99
+ constructor(recipients, actorName, recipientName, spaceName, link) {
100
+ super(recipients, MailjetTemplate.COSMO_USER_ADDED_TO_SPACE, {
101
+ ACTOR_NAME: actorName,
102
+ RECIPIENT_NAME: recipientName,
103
+ SPACE_NAME: spaceName,
104
+ LINK: link,
105
+ });
106
+ }
107
+ }
108
+ exports.CosmoUserAddedToSpaceMailjetMailDTO = CosmoUserAddedToSpaceMailjetMailDTO;
109
+ class CosmoUserRemovedFromSpaceMailjetMailDTO extends MailjetMailDTO {
110
+ constructor(recipients, actorName, recipientName, spaceName) {
111
+ super(recipients, MailjetTemplate.COSMO_USER_REMOVED_FROM_SPACE, {
112
+ ACTOR_NAME: actorName,
113
+ RECIPIENT_NAME: recipientName,
114
+ SPACE_NAME: spaceName,
115
+ });
116
+ }
117
+ }
118
+ exports.CosmoUserRemovedFromSpaceMailjetMailDTO = CosmoUserRemovedFromSpaceMailjetMailDTO;
119
+ class CosmoCommentOrAnnotationAddedMailjetMailDTO extends MailjetMailDTO {
120
+ constructor(recipients, assetName, recipientName, actorName, commentSnippet, spaceName, link) {
121
+ super(recipients, MailjetTemplate.COSMO_COMMENT_ADDED, {
122
+ ASSET_NAME: assetName,
123
+ RECIPIENT_NAME: recipientName,
124
+ ACTOR_NAME: actorName,
125
+ COMMENT_SNIPPET: commentSnippet,
126
+ SPACE_NAME: spaceName,
127
+ LINK: link,
128
+ });
129
+ }
130
+ }
131
+ exports.CosmoCommentOrAnnotationAddedMailjetMailDTO = CosmoCommentOrAnnotationAddedMailjetMailDTO;
132
+ class CosmoRepliedToCommentMailjetMailDTO extends MailjetMailDTO {
133
+ constructor(recipients, assetName, recipientName, actorName, commentSnippet, spaceName, link) {
134
+ super(recipients, MailjetTemplate.COSMO_REPLIED_TO_COMMENT, {
135
+ ASSET_NAME: assetName,
136
+ RECIPIENT_NAME: recipientName,
137
+ ACTOR_NAME: actorName,
138
+ COMMENT_SNIPPET: commentSnippet,
139
+ SPACE_NAME: spaceName,
140
+ LINK: link,
141
+ });
142
+ }
143
+ }
144
+ exports.CosmoRepliedToCommentMailjetMailDTO = CosmoRepliedToCommentMailjetMailDTO;
145
+ class CosmoAssetStatusChangedMailjetMailDTO extends MailjetMailDTO {
146
+ constructor(recipients, assetName, recipientName, actorName, newStatus, spaceName, link) {
147
+ super(recipients, MailjetTemplate.COSMO_ASSET_STATUS_CHANGED, {
148
+ ASSET_NAME: assetName,
149
+ RECIPIENT_NAME: recipientName,
150
+ ACTOR_NAME: actorName,
151
+ NEW_STATUS: newStatus,
152
+ SPACE_NAME: spaceName,
153
+ LINK: link,
154
+ });
155
+ }
156
+ }
157
+ exports.CosmoAssetStatusChangedMailjetMailDTO = CosmoAssetStatusChangedMailjetMailDTO;
158
+ class CosmoSharePasswordChangedMailjetMailDTO extends MailjetMailDTO {
159
+ constructor(recipients, recipientName, shareName, shareLink) {
160
+ super(recipients, MailjetTemplate.COSMO_SHARE_PASSWORD_CHANGED, {
161
+ RECIPIENT_NAME: recipientName,
162
+ SHARE_NAME: shareName,
163
+ HCLOUD_SHARE_LINK: shareLink,
164
+ });
165
+ }
166
+ }
167
+ 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 });