hcloud-sdk 16.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 (291) hide show
  1. package/changelog.md +178 -51
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +6 -0
  4. package/lib/Hcloud.js +18 -0
  5. package/lib/helper/ValidationHelper.d.ts +74 -0
  6. package/lib/helper/ValidationHelper.js +360 -0
  7. package/lib/interfaces/auditor/index.d.ts +17 -2
  8. package/lib/interfaces/auditor/index.js +12 -0
  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/location/index.js +2 -0
  17. package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
  18. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  19. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  20. package/lib/interfaces/cosmo/permissions.js +58 -0
  21. package/lib/interfaces/cosmo/share/index.d.ts +28 -0
  22. package/lib/interfaces/cosmo/share/index.js +2 -0
  23. package/lib/interfaces/cosmo/space/index.d.ts +25 -0
  24. package/lib/interfaces/cosmo/space/index.js +2 -0
  25. package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
  26. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  27. package/lib/interfaces/frontend/config/index.d.ts +1 -0
  28. package/lib/interfaces/fuse/space/index.d.ts +1 -0
  29. package/lib/interfaces/global/Products.d.ts +3 -1
  30. package/lib/interfaces/global/Products.js +2 -0
  31. package/lib/interfaces/global/Views.d.ts +2 -1
  32. package/lib/interfaces/global/Views.js +1 -0
  33. package/lib/interfaces/high5/execution/index.d.ts +23 -2
  34. package/lib/interfaces/high5/execution/index.js +2 -0
  35. package/lib/interfaces/high5/index.d.ts +7 -7
  36. package/lib/interfaces/high5/index.js +7 -7
  37. package/lib/interfaces/high5/space/database/document/index.d.ts +34 -0
  38. package/lib/interfaces/high5/space/database/document/index.js +14 -0
  39. package/lib/interfaces/high5/space/database/index.d.ts +12 -0
  40. package/lib/interfaces/high5/space/database/index.js +2 -0
  41. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
  42. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +10 -2
  43. package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
  44. package/lib/interfaces/high5/space/execution/index.d.ts +56 -2
  45. package/lib/interfaces/high5/space/execution/index.js +8 -0
  46. package/lib/interfaces/high5/space/index.d.ts +2 -0
  47. package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
  48. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  49. package/lib/interfaces/high5/space/job/index.d.ts +38 -0
  50. package/lib/interfaces/high5/space/job/index.js +8 -0
  51. package/lib/interfaces/high5/space/pool/index.d.ts +5 -7
  52. package/lib/interfaces/high5/space/pool/index.js +0 -7
  53. package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
  54. package/lib/interfaces/high5/stats.d.ts +21 -0
  55. package/lib/interfaces/high5/stats.js +2 -0
  56. package/lib/interfaces/high5/wave/index.d.ts +8 -3
  57. package/lib/interfaces/idp/index.d.ts +1 -0
  58. package/lib/interfaces/idp/index.js +1 -0
  59. package/lib/interfaces/idp/oauth/index.d.ts +4 -3
  60. package/lib/interfaces/idp/organization/index.d.ts +1 -0
  61. package/lib/interfaces/idp/organization/index.js +1 -0
  62. package/lib/interfaces/idp/organization/license/index.d.ts +13 -0
  63. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  64. package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
  65. package/lib/interfaces/idp/organization/service-accounts.js +2 -0
  66. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  67. package/lib/interfaces/idp/organization/stats.js +2 -0
  68. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  69. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  70. package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
  71. package/lib/interfaces/idp/user/Message.d.ts +21 -0
  72. package/lib/interfaces/idp/user/Message.js +14 -0
  73. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  74. package/lib/interfaces/idp/user/Scopes.d.ts +8 -2
  75. package/lib/interfaces/idp/user/Scopes.js +9 -0
  76. package/lib/interfaces/idp/user/index.d.ts +2 -1
  77. package/lib/interfaces/mailer/index.d.ts +30 -1
  78. package/lib/interfaces/mailer/index.js +87 -1
  79. package/lib/interfaces/mothership/index.d.ts +3 -1
  80. package/lib/interfaces/mothership/index.js +15 -0
  81. package/lib/interfaces/mothership/stats.d.ts +4 -0
  82. package/lib/interfaces/mothership/stats.js +2 -0
  83. package/lib/interfaces/nats/index.d.ts +98 -9
  84. package/lib/interfaces/nats/index.js +136 -19
  85. package/lib/interfaces/shorts/index.d.ts +10 -0
  86. package/lib/interfaces/shorts/index.js +2 -0
  87. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  88. package/lib/service/agent/bundle/dev/index.js +12 -10
  89. package/lib/service/agent/bundle/index.d.ts +10 -4
  90. package/lib/service/agent/bundle/index.js +6 -6
  91. package/lib/service/agent/context/index.d.ts +26 -7
  92. package/lib/service/agent/context/index.js +27 -12
  93. package/lib/service/auditor/index.d.ts +8 -4
  94. package/lib/service/auditor/index.js +5 -5
  95. package/lib/service/auditor/internal/index.d.ts +27 -3
  96. package/lib/service/auditor/internal/index.js +34 -5
  97. package/lib/service/bouncer/features/index.d.ts +4 -2
  98. package/lib/service/bouncer/features/index.js +2 -2
  99. package/lib/service/cosmo/asset/index.d.ts +219 -0
  100. package/lib/service/cosmo/asset/index.js +314 -0
  101. package/lib/service/cosmo/comment/index.d.ts +122 -0
  102. package/lib/service/cosmo/comment/index.js +161 -0
  103. package/lib/service/cosmo/event/index.d.ts +23 -0
  104. package/lib/service/cosmo/event/index.js +40 -0
  105. package/lib/service/cosmo/folder/index.d.ts +27 -0
  106. package/lib/service/cosmo/folder/index.js +47 -0
  107. package/lib/service/cosmo/index.d.ts +49 -0
  108. package/lib/service/cosmo/index.js +119 -0
  109. package/lib/service/cosmo/internal/index.d.ts +7 -0
  110. package/lib/service/cosmo/internal/index.js +17 -0
  111. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  112. package/lib/service/cosmo/internal/space/index.js +34 -0
  113. package/lib/service/cosmo/location/index.d.ts +40 -0
  114. package/lib/service/cosmo/location/index.js +63 -0
  115. package/lib/service/cosmo/namespace/index.d.ts +42 -0
  116. package/lib/service/cosmo/namespace/index.js +65 -0
  117. package/lib/service/cosmo/organization/index.d.ts +47 -0
  118. package/lib/service/cosmo/organization/index.js +64 -0
  119. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  120. package/lib/service/cosmo/permissions/index.js +181 -0
  121. package/lib/service/cosmo/production/index.d.ts +26 -0
  122. package/lib/service/cosmo/production/index.js +45 -0
  123. package/lib/service/cosmo/share/index.d.ts +161 -0
  124. package/lib/service/cosmo/share/index.js +215 -0
  125. package/lib/service/cosmo/space/index.d.ts +104 -0
  126. package/lib/service/cosmo/space/index.js +146 -0
  127. package/lib/service/cosmo/tag/index.d.ts +67 -0
  128. package/lib/service/cosmo/tag/index.js +93 -0
  129. package/lib/service/dali/DaliAvatar.d.ts +12 -0
  130. package/lib/service/dali/DaliAvatar.js +20 -0
  131. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +32 -0
  132. package/lib/service/dali/avatar/DaliCosmoSpace.js +59 -0
  133. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
  134. package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
  135. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
  136. package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
  137. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
  138. package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
  139. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
  140. package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
  141. package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
  142. package/lib/service/dali/avatar/DaliOrganization.js +7 -6
  143. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +32 -0
  144. package/lib/service/dali/avatar/DaliServiceAccount.js +59 -0
  145. package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
  146. package/lib/service/dali/avatar/DaliTeam.js +7 -6
  147. package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
  148. package/lib/service/dali/avatar/DaliUser.js +7 -6
  149. package/lib/service/dali/index.d.ts +4 -5
  150. package/lib/service/dali/index.js +2 -5
  151. package/lib/service/fuse/index.d.ts +4 -2
  152. package/lib/service/fuse/index.js +2 -2
  153. package/lib/service/fuse/internal/index.d.ts +4 -2
  154. package/lib/service/fuse/internal/index.js +3 -2
  155. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
  156. package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
  157. package/lib/service/fuse/internal/space/index.d.ts +7 -3
  158. package/lib/service/fuse/internal/space/index.js +6 -4
  159. package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
  160. package/lib/service/fuse/space/cronjob/index.js +48 -50
  161. package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
  162. package/lib/service/fuse/space/cronjob/log/index.js +5 -5
  163. package/lib/service/fuse/space/index.d.ts +27 -11
  164. package/lib/service/fuse/space/index.js +19 -18
  165. package/lib/service/high5/execution/index.d.ts +4 -2
  166. package/lib/service/high5/execution/index.js +3 -2
  167. package/lib/service/high5/execution/status/index.d.ts +5 -3
  168. package/lib/service/high5/execution/status/index.js +3 -3
  169. package/lib/service/high5/index.d.ts +7 -2
  170. package/lib/service/high5/index.js +9 -2
  171. package/lib/service/high5/internal/index.d.ts +4 -2
  172. package/lib/service/high5/internal/index.js +3 -2
  173. package/lib/service/high5/internal/space/index.d.ts +10 -3
  174. package/lib/service/high5/internal/space/index.js +13 -4
  175. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  176. package/lib/service/high5/internal/space/job/index.js +17 -0
  177. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  178. package/lib/service/high5/internal/space/job/log/index.js +34 -0
  179. package/lib/service/high5/joinToken/index.d.ts +14 -6
  180. package/lib/service/high5/joinToken/index.js +10 -9
  181. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  182. package/lib/service/high5/space/database/document/array/index.js +102 -0
  183. package/lib/service/high5/space/database/document/index.d.ts +74 -0
  184. package/lib/service/high5/space/database/document/index.js +112 -0
  185. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  186. package/lib/service/high5/space/database/document/number/index.js +77 -0
  187. package/lib/service/high5/space/database/index.d.ts +65 -0
  188. package/lib/service/high5/space/database/index.js +102 -0
  189. package/lib/service/high5/space/event/index.d.ts +17 -7
  190. package/lib/service/high5/space/event/index.js +12 -11
  191. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  192. package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -3
  193. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  194. package/lib/service/high5/space/event/stream/design/index.js +7 -6
  195. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  196. package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
  197. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  198. package/lib/service/high5/space/event/stream/index.js +22 -21
  199. package/lib/service/high5/space/execution/index.d.ts +22 -7
  200. package/lib/service/high5/space/execution/index.js +23 -12
  201. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  202. package/lib/service/high5/space/execution/log/index.js +5 -5
  203. package/lib/service/high5/space/execution/status/index.d.ts +18 -7
  204. package/lib/service/high5/space/execution/status/index.js +20 -8
  205. package/lib/service/high5/space/index.d.ts +56 -18
  206. package/lib/service/high5/space/index.js +65 -27
  207. package/lib/service/high5/space/job/index.d.ts +145 -0
  208. package/lib/service/high5/space/job/index.js +201 -0
  209. package/lib/service/high5/space/job/log/index.d.ts +35 -0
  210. package/lib/service/high5/space/job/log/index.js +58 -0
  211. package/lib/service/high5/space/node/index.d.ts +20 -8
  212. package/lib/service/high5/space/node/index.js +14 -13
  213. package/lib/service/high5/space/pool/index.d.ts +27 -11
  214. package/lib/service/high5/space/pool/index.js +19 -18
  215. package/lib/service/high5/space/secret/index.d.ts +17 -7
  216. package/lib/service/high5/space/secret/index.js +12 -11
  217. package/lib/service/high5/space/stat/index.d.ts +12 -0
  218. package/lib/service/high5/space/stat/index.js +31 -0
  219. package/lib/service/high5/space/wave/index.d.ts +16 -6
  220. package/lib/service/high5/space/wave/index.js +11 -10
  221. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  222. package/lib/service/high5/space/webhook/index.js +25 -21
  223. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  224. package/lib/service/high5/space/webhook/log/index.js +2 -2
  225. package/lib/service/high5/stat/index.d.ts +11 -0
  226. package/lib/service/high5/stat/index.js +30 -0
  227. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  228. package/lib/service/high5/wave/s3/index.js +52 -24
  229. package/lib/service/idp/guest/index.d.ts +42 -0
  230. package/lib/service/idp/guest/index.js +66 -0
  231. package/lib/service/idp/index.d.ts +25 -7
  232. package/lib/service/idp/index.js +23 -12
  233. package/lib/service/idp/internal/index.d.ts +5 -3
  234. package/lib/service/idp/internal/index.js +5 -3
  235. package/lib/service/idp/oauth/index.d.ts +16 -6
  236. package/lib/service/idp/oauth/index.js +15 -15
  237. package/lib/service/idp/organization/index.d.ts +25 -5
  238. package/lib/service/idp/organization/index.js +29 -8
  239. package/lib/service/idp/organization/license/index.d.ts +7 -3
  240. package/lib/service/idp/organization/license/index.js +4 -4
  241. package/lib/service/idp/organization/member/index.d.ts +21 -8
  242. package/lib/service/idp/organization/member/index.js +16 -13
  243. package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
  244. package/lib/service/idp/organization/member/invitations/index.js +72 -59
  245. package/lib/service/idp/organization/service-accounts/index.d.ts +76 -0
  246. package/lib/service/idp/organization/service-accounts/index.js +109 -0
  247. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  248. package/lib/service/idp/organization/settings/domain/index.js +9 -8
  249. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  250. package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
  251. package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
  252. package/lib/service/idp/organization/settings/oauth/index.js +16 -15
  253. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  254. package/lib/service/idp/organization/stat/index.js +30 -0
  255. package/lib/service/idp/organization/team/index.d.ts +22 -10
  256. package/lib/service/idp/organization/team/index.js +14 -13
  257. package/lib/service/idp/registration/index.d.ts +10 -4
  258. package/lib/service/idp/registration/index.js +15 -9
  259. package/lib/service/idp/user/index.d.ts +33 -11
  260. package/lib/service/idp/user/index.js +30 -16
  261. package/lib/service/idp/user/license/index.d.ts +7 -3
  262. package/lib/service/idp/user/license/index.js +4 -4
  263. package/lib/service/idp/user/message/index.d.ts +61 -0
  264. package/lib/service/idp/user/message/index.js +92 -0
  265. package/lib/service/idp/user/password/index.d.ts +4 -2
  266. package/lib/service/idp/user/password/index.js +3 -3
  267. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  268. package/lib/service/idp/user/settings/connections/index.js +2 -2
  269. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  270. package/lib/service/idp/user/settings/general/index.js +6 -6
  271. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  272. package/lib/service/idp/user/settings/notifications/index.js +4 -4
  273. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  274. package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
  275. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  276. package/lib/service/idp/user/settings/pats/index.js +17 -15
  277. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  278. package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
  279. package/lib/service/mailer/index.d.ts +4 -2
  280. package/lib/service/mailer/index.js +2 -2
  281. package/lib/service/mailer/internal/index.d.ts +13 -5
  282. package/lib/service/mailer/internal/index.js +8 -8
  283. package/lib/service/mothership/index.d.ts +35 -13
  284. package/lib/service/mothership/index.js +32 -18
  285. package/lib/service/nats/index.js +58 -44
  286. package/lib/service/shorts/index.d.ts +18 -0
  287. package/lib/service/shorts/index.js +38 -0
  288. package/lib/service/shorts/internal/index.d.ts +72 -0
  289. package/lib/service/shorts/internal/index.js +104 -0
  290. package/lib/utils/bouncer/features/Provider.js +0 -3
  291. package/package.json +22 -24
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeCategory = void 0;
3
+ exports.NodeType = exports.NodeCategory = void 0;
4
4
  var NodeCategory;
5
5
  (function (NodeCategory) {
6
6
  NodeCategory["CUSTOM"] = "CUSTOM";
7
7
  })(NodeCategory || (exports.NodeCategory = NodeCategory = {}));
8
+ var NodeType;
9
+ (function (NodeType) {
10
+ NodeType["CUSTOM"] = "CUSTOM";
11
+ NodeType["CATALOG"] = "CATALOG";
12
+ })(NodeType || (exports.NodeType = NodeType = {}));
@@ -4,7 +4,7 @@ import { ReducedOrganization, ReducedUser } from "../../../idp";
4
4
  import { WaveCatalog, WaveEngine } from "../../wave";
5
5
  import { ReducedEvent } from "../event";
6
6
  import { DesignBuild } from "../event/stream";
7
- import { StreamNodeAdditionalConnector, StreamNodeOutput, StreamNodeResolvedInputs, StreamSingleNodeResult } from "../event/stream/node";
7
+ import { NodeType, StreamNodeAdditionalConnector, StreamNodeOutput, StreamNodeResolvedInputs, StreamSingleNodeResult } from "../event/stream/node";
8
8
  export declare enum High5ExecutionPayloadType {
9
9
  JSON = "JSON",
10
10
  GENERIC = "GENERIC"
@@ -17,6 +17,7 @@ export interface High5ExecutionRequest {
17
17
  payload: High5ExecutionPayload;
18
18
  target: string;
19
19
  dry?: boolean;
20
+ parentExecutionSecret?: string;
20
21
  }
21
22
  export interface High5ExecuteAgentResponse {
22
23
  failed: boolean;
@@ -25,6 +26,7 @@ export interface High5ExecuteAgentResponse {
25
26
  export declare enum High5ExecutionState {
26
27
  QUEUED = "QUEUED",
27
28
  RUNNING = "RUNNING",
29
+ WAITING = "WAITING",
28
30
  COMPLETED = "COMPLETED"
29
31
  }
30
32
  export declare enum High5ExecutionOutcome {
@@ -54,20 +56,35 @@ export interface High5ExecutionPackage {
54
56
  dry: boolean;
55
57
  info: StreamInfo;
56
58
  debug: boolean;
59
+ executionId: string;
57
60
  }
58
61
  type StreamInfo = {
59
62
  target: string;
60
63
  webhook?: WebhookInfo;
64
+ triggerDetails?: TriggerDetails;
61
65
  };
62
66
  type WebhookInfo = {
63
67
  callbackUrl: string;
64
68
  };
69
+ type TriggerDetails = {
70
+ source: TriggerSource;
71
+ ip: string;
72
+ country: string;
73
+ };
74
+ declare enum TriggerSource {
75
+ webhook = "webhook",
76
+ api = "api",
77
+ sdk = "sdk",
78
+ stream = "stream"
79
+ }
65
80
  export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
66
81
  hcl: HCloud;
67
82
  orgName: string;
68
83
  spaceName: string;
69
84
  streamId: string;
70
85
  secret: string;
86
+ targetEmail: string;
87
+ poolName?: string;
71
88
  }
72
89
  export interface High5ExecutionPatchLog {
73
90
  streamId: string;
@@ -80,6 +97,14 @@ export interface StreamRunningNodePatch {
80
97
  progress: number;
81
98
  message: string;
82
99
  }
100
+ interface ReducedAgentInfo {
101
+ bundleVersion?: string;
102
+ osRelease?: string;
103
+ osVersion?: string;
104
+ cpu?: string;
105
+ cpuArchitecture?: string;
106
+ ip?: string;
107
+ }
83
108
  export interface High5ExecutionPatchStatus {
84
109
  streamId: string;
85
110
  state?: High5ExecutionState;
@@ -88,6 +113,7 @@ export interface High5ExecutionPatchStatus {
88
113
  message?: string;
89
114
  startDate: number;
90
115
  endDate?: number;
116
+ agentInfo?: ReducedAgentInfo;
91
117
  }
92
118
  export interface High5ExecutionPatch {
93
119
  high5ExecutionPatchStatus: High5ExecutionPatchStatus;
@@ -106,11 +132,16 @@ export interface High5ExecutionStatus {
106
132
  outcome: High5ExecutionOutcome;
107
133
  message: string;
108
134
  runningNodes: StreamRunningNode[];
109
- target: string;
135
+ target: ReducedUser;
136
+ triggerSource?: TriggerSource;
110
137
  dry: boolean;
111
138
  createDate: number;
112
139
  startDate: number;
113
140
  endDate: number;
141
+ debug?: boolean;
142
+ agentInfo?: ReducedAgentInfo;
143
+ waveEngineVersion?: string;
144
+ isPoolExecution?: boolean;
114
145
  }
115
146
  export interface High5ExecutionLog {
116
147
  _id: string;
@@ -118,6 +149,7 @@ export interface High5ExecutionLog {
118
149
  payload?: High5ExecutionPayload;
119
150
  high5ExecutionId: string;
120
151
  nodeResults: StreamSingleNodeResult[];
152
+ target: ReducedUser;
121
153
  createDate: number;
122
154
  }
123
155
  export interface High5ExecutionResponse {
@@ -137,6 +169,8 @@ export interface StreamNode {
137
169
  outputs?: StreamNodeOutput[];
138
170
  additionalConnectors?: StreamNodeAdditionalConnector[];
139
171
  breakpoint?: boolean;
172
+ color?: string;
173
+ nodeType?: NodeType;
140
174
  }
141
175
  export interface High5ExecuteOnAgentRequest {
142
176
  organizationName: string;
@@ -148,4 +182,24 @@ export interface High5ExecuteOnAgentRequest {
148
182
  export interface High5ExecutionCancelRequest {
149
183
  secret: string;
150
184
  }
185
+ export interface ExecutionTreeNode {
186
+ executionStatusId: string;
187
+ orgName: string;
188
+ spaceName: string;
189
+ eventName: string;
190
+ streamName: string;
191
+ streamId: string;
192
+ state: High5ExecutionState;
193
+ outcome: High5ExecutionOutcome;
194
+ message?: string;
195
+ runningNodes: StreamRunningNode[];
196
+ target: string;
197
+ triggerSource: TriggerSource;
198
+ startDate: number;
199
+ endDate: number;
200
+ children: ExecutionTreeNode[];
201
+ }
202
+ export interface ExecutionTree {
203
+ root: ExecutionTreeNode;
204
+ }
151
205
  export {};
@@ -10,6 +10,7 @@ var High5ExecutionState;
10
10
  (function (High5ExecutionState) {
11
11
  High5ExecutionState["QUEUED"] = "QUEUED";
12
12
  High5ExecutionState["RUNNING"] = "RUNNING";
13
+ High5ExecutionState["WAITING"] = "WAITING";
13
14
  High5ExecutionState["COMPLETED"] = "COMPLETED";
14
15
  })(High5ExecutionState || (exports.High5ExecutionState = High5ExecutionState = {}));
15
16
  var High5ExecutionOutcome;
@@ -19,3 +20,10 @@ var High5ExecutionOutcome;
19
20
  High5ExecutionOutcome["FAILED"] = "FAILED";
20
21
  High5ExecutionOutcome["CANCELED"] = "CANCELED";
21
22
  })(High5ExecutionOutcome || (exports.High5ExecutionOutcome = High5ExecutionOutcome = {}));
23
+ var TriggerSource;
24
+ (function (TriggerSource) {
25
+ TriggerSource["webhook"] = "webhook";
26
+ TriggerSource["api"] = "api";
27
+ TriggerSource["sdk"] = "sdk";
28
+ TriggerSource["stream"] = "stream";
29
+ })(TriggerSource || (TriggerSource = {}));
@@ -3,6 +3,7 @@ import { ReducedOrganization } from "../../idp";
3
3
  export interface High5Space extends Space {
4
4
  highestPermissionOfUser: High5SpacePermission;
5
5
  waveEngine: string;
6
+ enableDev?: boolean;
6
7
  }
7
8
  export interface High5SpaceEntityPermission {
8
9
  organization: ReducedOrganization;
@@ -12,6 +13,7 @@ export interface High5SpaceEntityPermission {
12
13
  type: SpaceEntity;
13
14
  permission: High5SpacePermission;
14
15
  avatarUrl: string;
16
+ serviceAccount?: boolean;
15
17
  }
16
18
  export declare enum High5SpacePermission {
17
19
  NONE = "NONE",
@@ -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 = {}));
@@ -1,5 +1,5 @@
1
1
  import { ReducedSpace } from "../../../global";
2
- import { ReducedOrganization, ReducedUser } from "../../../idp";
2
+ import { ReducedOrganization, ReducedUser, TeamUsersPatchOperation } from "../../../idp";
3
3
  export type Pool = {
4
4
  _id: string;
5
5
  organization: ReducedOrganization;
@@ -9,21 +9,19 @@ export type Pool = {
9
9
  avatarUrl: string;
10
10
  numberOfTargets?: number;
11
11
  targetSample?: ReducedUser[];
12
+ createDate: number;
13
+ modifyDate: number;
12
14
  };
13
15
  export type PoolChange = Pool & {
16
+ targets: ReducedUser[];
14
17
  invalidTargets: {
15
18
  notMember: string[];
16
19
  };
17
20
  };
18
21
  export type PoolTargetPatch = {
19
22
  identifiers: string[];
20
- operation: ArrayOperation;
23
+ operation: TeamUsersPatchOperation;
21
24
  };
22
- export declare enum ArrayOperation {
23
- ADD = "ADD",
24
- REPLACE = "REPLACE",
25
- REMOVE = "REMOVE"
26
- }
27
25
  export type PoolQueryOptions = {
28
26
  getTargetsSample?: number;
29
27
  getTotalTargetCount?: boolean;
@@ -1,9 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArrayOperation = void 0;
4
- var ArrayOperation;
5
- (function (ArrayOperation) {
6
- ArrayOperation["ADD"] = "ADD";
7
- ArrayOperation["REPLACE"] = "REPLACE";
8
- ArrayOperation["REMOVE"] = "REMOVE";
9
- })(ArrayOperation || (exports.ArrayOperation = ArrayOperation = {}));
@@ -51,11 +51,13 @@ export interface Webhook {
51
51
  statusCode: number;
52
52
  error?: string;
53
53
  };
54
+ callbackEnabled: boolean;
54
55
  }
55
- export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings">;
56
+ export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings" | "callbackEnabled">;
56
57
  export type WebhookUpdate = Partial<WebhookCreate> & {
57
58
  deleteWebhookEncryptionSettings?: boolean;
58
59
  deleteSecurityHeaders?: boolean;
60
+ callbackEnabled?: boolean;
59
61
  };
60
62
  export interface WebhookLog {
61
63
  _id: string;
@@ -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 });
@@ -148,15 +148,20 @@ export interface StreamNodeSpecificationAdditionalConnector {
148
148
  export type StreamNodeSpecificationInput = {
149
149
  name: string;
150
150
  description: string;
151
- defaultValue?: any;
152
151
  example: any;
153
152
  advanced?: boolean;
154
- mandatory?: boolean;
155
153
  } & ({
156
- type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT>;
154
+ type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT | StreamNodeSpecificationInputType.BOOLEAN>;
155
+ defaultValue?: any;
156
+ mandatory?: boolean;
157
157
  } | {
158
158
  type: StreamNodeSpecificationInputType.STRING_SELECT;
159
159
  options: Record<string, string | number>;
160
+ defaultValue?: string;
161
+ mandatory?: boolean;
162
+ } | {
163
+ type: StreamNodeSpecificationInputType.BOOLEAN;
164
+ defaultValue: boolean;
160
165
  });
161
166
  export interface StreamNodeSpecificationOutput {
162
167
  name: string;
@@ -6,6 +6,7 @@ export * from "./organization/team";
6
6
  export * from "./organization/settings/domain";
7
7
  export * from "./organization/settings/domain/saml";
8
8
  export * from "./organization/settings/oauthApp";
9
+ export * from "./organization/service-accounts";
9
10
  export * from "./user/GeneralSettings";
10
11
  export * from "./user/Pat";
11
12
  export * from "./user/Scopes";
@@ -23,6 +23,7 @@ __exportStar(require("./organization/team"), exports);
23
23
  __exportStar(require("./organization/settings/domain"), exports);
24
24
  __exportStar(require("./organization/settings/domain/saml"), exports);
25
25
  __exportStar(require("./organization/settings/oauthApp"), exports);
26
+ __exportStar(require("./organization/service-accounts"), exports);
26
27
  __exportStar(require("./user/GeneralSettings"), exports);
27
28
  __exportStar(require("./user/Pat"), exports);
28
29
  __exportStar(require("./user/Scopes"), exports);
@@ -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,10 +54,23 @@ export type LicenseQuota = {
54
54
  quota: number;
55
55
  };
56
56
  };
57
+ databases: {
58
+ quota: number;
59
+ documents: {
60
+ quota: number;
61
+ };
62
+ };
63
+ jobs: {
64
+ quota: number;
65
+ logs: {
66
+ quota: number;
67
+ };
68
+ };
57
69
  };
58
70
  executionsPerMonth: {
59
71
  quota: number;
60
72
  };
73
+ secondBaseExecutions: boolean;
61
74
  };
62
75
  fuse: {
63
76
  spaces: {
@@ -7,6 +7,8 @@ export interface OrganizationMember {
7
7
  role: OrganizationRole;
8
8
  executionTarget: boolean;
9
9
  lastActive: number;
10
+ serviceAccount?: boolean;
11
+ isGuest?: boolean;
10
12
  }
11
13
  export interface OrgMemberCreate {
12
14
  email: string;
@@ -0,0 +1,8 @@
1
+ export type ServiceAccount = {
2
+ _id: string;
3
+ name: string;
4
+ email: string;
5
+ token: string;
6
+ avatarUrl: string;
7
+ };
8
+ export type ServiceAccountNoToken = Omit<ServiceAccount, "token">;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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;
@@ -28,6 +28,7 @@ export declare enum Entrypoint {
28
28
  DEFAULT = "DEFAULT",
29
29
  HIGH5 = "HIGH5",
30
30
  FUSE = "FUSE",
31
+ COSMO = "COSMO",
31
32
  LAST_VISITED = "LAST_VISITED"
32
33
  }
33
34
  export interface GeneralSettings {
@@ -34,5 +34,6 @@ var Entrypoint;
34
34
  Entrypoint["DEFAULT"] = "DEFAULT";
35
35
  Entrypoint["HIGH5"] = "HIGH5";
36
36
  Entrypoint["FUSE"] = "FUSE";
37
+ Entrypoint["COSMO"] = "COSMO";
37
38
  Entrypoint["LAST_VISITED"] = "LAST_VISITED";
38
39
  })(Entrypoint || (exports.Entrypoint = Entrypoint = {}));
@@ -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">>;
@@ -16,11 +16,14 @@ export declare enum Scope {
16
16
  FUSE_SPACE_READ = "fuse:space:read",
17
17
  FUSE_SPACE_EXECUTE = "fuse:space:execute",
18
18
  FUSE_SPACE_WRITE = "fuse:space:write",
19
- FUSE_SPACE_DELETE = "fuse:space:delete"
19
+ FUSE_SPACE_DELETE = "fuse:space:delete",
20
+ COSMO_SPACE_READ = "cosmo:space:read",
21
+ COSMO_SPACE_WRITE = "cosmo:space:write",
22
+ COSMO_SPACE_DELETE = "cosmo:space:delete"
20
23
  }
21
24
  export declare const ScopeDescriptions: Map<string, string>;
22
25
  export declare const ScopeDependencies: {
23
- "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)[];
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)[];
24
27
  "idp:email:read": never[];
25
28
  "idp:user:read": never[];
26
29
  "idp:user:write": Scope[];
@@ -38,4 +41,7 @@ export declare const ScopeDependencies: {
38
41
  "fuse:space:execute": never[];
39
42
  "fuse:space:write": Scope[];
40
43
  "fuse:space:delete": Scope[];
44
+ "cosmo:space:read": Scope[];
45
+ "cosmo:space:write": Scope[];
46
+ "cosmo:space:delete": Scope[];
41
47
  };
@@ -21,6 +21,9 @@ 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["COSMO_SPACE_READ"] = "cosmo:space:read";
25
+ Scope["COSMO_SPACE_WRITE"] = "cosmo:space:write";
26
+ Scope["COSMO_SPACE_DELETE"] = "cosmo:space:delete";
24
27
  })(Scope || (exports.Scope = Scope = {}));
25
28
  exports.ScopeDescriptions = new Map([
26
29
  [Scope.HCLOUD_FULL, "Full access to helmut.cloud."],
@@ -41,6 +44,9 @@ exports.ScopeDescriptions = new Map([
41
44
  [Scope.FUSE_SPACE_EXECUTE, "Execute tasks in Fuse."],
42
45
  [Scope.FUSE_SPACE_WRITE, "Create or update Fuse data."],
43
46
  [Scope.FUSE_SPACE_DELETE, "Delete Fuse data."],
47
+ [Scope.COSMO_SPACE_READ, "Read Cosmo space data."],
48
+ [Scope.COSMO_SPACE_WRITE, "Create or update Cosmo data."],
49
+ [Scope.COSMO_SPACE_DELETE, "Delete Cosmo data."],
44
50
  ]);
45
51
  exports.ScopeDependencies = {
46
52
  [Scope.HCLOUD_FULL]: [...Object.values(Scope).filter(s => s !== Scope.HCLOUD_FULL)],
@@ -67,4 +73,7 @@ exports.ScopeDependencies = {
67
73
  [Scope.FUSE_SPACE_EXECUTE]: [],
68
74
  [Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
69
75
  [Scope.FUSE_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ, Scope.FUSE_SPACE_WRITE],
76
+ [Scope.COSMO_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
77
+ [Scope.COSMO_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ],
78
+ [Scope.COSMO_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ, Scope.COSMO_SPACE_WRITE],
70
79
  };
@@ -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;