hcloud-sdk 0.0.16 → 14.13.2

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 (305) hide show
  1. package/README.md +1 -0
  2. package/changelog.md +809 -0
  3. package/index.d.ts +3 -2
  4. package/index.js +5 -2
  5. package/lib/Base.d.ts +26 -0
  6. package/lib/Base.js +12 -0
  7. package/lib/Hcloud.d.ts +80 -0
  8. package/lib/Hcloud.js +134 -0
  9. package/lib/helper/ErrorHelper.d.ts +7 -0
  10. package/lib/helper/ErrorHelper.js +19 -0
  11. package/lib/helper/paginatedResponseHelper.d.ts +3 -0
  12. package/lib/helper/paginatedResponseHelper.js +9 -0
  13. package/lib/helper/searchFilter.d.ts +9 -0
  14. package/lib/helper/searchFilter.js +12 -0
  15. package/lib/interfaces/agent/bundle/dev/index.d.ts +3 -0
  16. package/lib/interfaces/agent/context/index.d.ts +19 -0
  17. package/lib/interfaces/agent/index.d.ts +21 -0
  18. package/lib/interfaces/agent/index.js +2 -0
  19. package/lib/interfaces/{Auditor.d.ts → auditor/index.d.ts} +31 -5
  20. package/lib/interfaces/{Auditor.js → auditor/index.js} +15 -5
  21. package/lib/interfaces/axios/index.d.ts +5 -0
  22. package/lib/interfaces/axios/index.js +8 -0
  23. package/lib/interfaces/bouncer/features/index.d.ts +10 -0
  24. package/lib/interfaces/bouncer/features/index.js +2 -0
  25. package/lib/interfaces/bouncer/index.d.ts +6 -0
  26. package/lib/interfaces/bouncer/index.js +17 -0
  27. package/lib/interfaces/dali/index.d.ts +3 -0
  28. package/lib/interfaces/dali/index.js +2 -0
  29. package/lib/interfaces/frontend/config/index.d.ts +33 -0
  30. package/lib/interfaces/frontend/config/index.js +10 -0
  31. package/lib/interfaces/fuse/index.d.ts +3 -0
  32. package/lib/interfaces/fuse/index.js +19 -0
  33. package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +38 -0
  34. package/lib/interfaces/fuse/space/cronjob/Cronjob.js +8 -0
  35. package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +16 -0
  36. package/lib/interfaces/fuse/space/cronjob/CronjobLog.js +2 -0
  37. package/lib/interfaces/fuse/space/index.d.ts +21 -0
  38. package/lib/interfaces/fuse/space/index.js +11 -0
  39. package/lib/interfaces/global/HCloudError.d.ts +8 -0
  40. package/lib/interfaces/global/HCloudError.js +13 -0
  41. package/lib/interfaces/global/Header.d.ts +4 -0
  42. package/lib/interfaces/global/Header.js +2 -0
  43. package/lib/interfaces/global/HttpMethod.d.ts +7 -0
  44. package/lib/interfaces/global/HttpMethod.js +11 -0
  45. package/lib/interfaces/global/PaginatedResponse.d.ts +4 -0
  46. package/lib/interfaces/global/PaginatedResponse.js +2 -0
  47. package/lib/interfaces/global/Products.d.ts +11 -0
  48. package/lib/interfaces/global/Products.js +15 -0
  49. package/lib/interfaces/global/SearchFilters.d.ts +86 -0
  50. package/lib/interfaces/global/SearchFilters.js +49 -0
  51. package/lib/interfaces/global/Space.d.ts +20 -0
  52. package/lib/interfaces/global/Space.js +8 -0
  53. package/lib/interfaces/global/Version.d.ts +3 -0
  54. package/lib/interfaces/global/Version.js +2 -0
  55. package/lib/interfaces/global/Views.d.ts +8 -0
  56. package/lib/interfaces/global/Views.js +12 -0
  57. package/lib/interfaces/global/index.d.ts +9 -0
  58. package/lib/interfaces/global/index.js +25 -0
  59. package/lib/interfaces/high5/index.d.ts +16 -0
  60. package/lib/interfaces/high5/index.js +32 -0
  61. package/lib/interfaces/high5/joinToken/index.d.ts +10 -0
  62. package/lib/interfaces/high5/joinToken/index.js +2 -0
  63. package/lib/interfaces/high5/space/event/index.d.ts +15 -0
  64. package/lib/interfaces/high5/space/event/index.js +2 -0
  65. package/lib/interfaces/high5/space/event/stream/design/DesignOperation.d.ts +68 -0
  66. package/lib/interfaces/high5/space/event/stream/design/DesignOperation.js +20 -0
  67. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +92 -0
  68. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.js +20 -0
  69. package/lib/interfaces/high5/space/event/stream/design/index.d.ts +22 -0
  70. package/lib/interfaces/high5/space/event/stream/design/index.js +2 -0
  71. package/lib/interfaces/high5/space/event/stream/design/snapshot/index.d.ts +30 -0
  72. package/lib/interfaces/high5/space/event/stream/design/snapshot/index.js +8 -0
  73. package/lib/interfaces/high5/space/event/stream/index.d.ts +77 -0
  74. package/lib/interfaces/high5/space/event/stream/index.js +13 -0
  75. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +60 -0
  76. package/lib/interfaces/high5/space/event/stream/node/index.js +7 -0
  77. package/lib/interfaces/high5/space/execution/index.d.ts +137 -0
  78. package/lib/interfaces/high5/space/execution/index.js +21 -0
  79. package/lib/interfaces/high5/space/index.d.ts +23 -0
  80. package/lib/interfaces/high5/space/index.js +12 -0
  81. package/lib/interfaces/high5/space/secret/index.d.ts +12 -0
  82. package/lib/interfaces/high5/space/secret/index.js +2 -0
  83. package/lib/interfaces/high5/space/webhook/index.d.ts +75 -0
  84. package/lib/interfaces/high5/space/webhook/index.js +9 -0
  85. package/lib/interfaces/high5/wave/index.d.ts +171 -0
  86. package/lib/interfaces/high5/wave/index.js +52 -0
  87. package/lib/interfaces/idp/index.d.ts +26 -0
  88. package/lib/interfaces/idp/index.js +38 -0
  89. package/lib/interfaces/idp/oauth/index.d.ts +19 -0
  90. package/lib/interfaces/idp/oauth/index.js +8 -0
  91. package/lib/interfaces/idp/organization/index.d.ts +32 -0
  92. package/lib/interfaces/idp/organization/index.js +25 -0
  93. package/lib/interfaces/idp/organization/license/index.d.ts +84 -0
  94. package/lib/interfaces/idp/organization/license/index.js +15 -0
  95. package/lib/interfaces/idp/organization/member/index.d.ts +15 -0
  96. package/lib/interfaces/idp/organization/member/index.js +2 -0
  97. package/lib/interfaces/idp/organization/member/invitations/index.d.ts +26 -0
  98. package/lib/interfaces/idp/organization/member/invitations/index.js +18 -0
  99. package/lib/interfaces/idp/organization/settings/domain/index.d.ts +19 -0
  100. package/lib/interfaces/idp/organization/settings/domain/index.js +8 -0
  101. package/lib/interfaces/idp/organization/settings/domain/saml/index.d.ts +10 -0
  102. package/lib/interfaces/idp/organization/settings/domain/saml/index.js +2 -0
  103. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +37 -0
  104. package/lib/interfaces/idp/organization/settings/oauthApp/index.js +2 -0
  105. package/lib/interfaces/idp/organization/team/index.d.ts +24 -0
  106. package/lib/interfaces/idp/organization/team/index.js +9 -0
  107. package/lib/interfaces/idp/user/ConnectionSettings.d.ts +6 -0
  108. package/lib/interfaces/idp/user/ConnectionSettings.js +2 -0
  109. package/lib/interfaces/idp/user/GeneralSettings.d.ts +44 -0
  110. package/lib/interfaces/idp/user/GeneralSettings.js +38 -0
  111. package/lib/interfaces/idp/user/NotificationSettings.d.ts +8 -0
  112. package/lib/interfaces/idp/user/NotificationSettings.js +2 -0
  113. package/lib/interfaces/idp/user/Pat.d.ts +19 -0
  114. package/lib/interfaces/idp/user/Pat.js +2 -0
  115. package/lib/interfaces/idp/user/Scopes.d.ts +40 -0
  116. package/lib/interfaces/idp/user/Scopes.js +50 -0
  117. package/lib/interfaces/idp/user/SuccessfulAuth.d.ts +5 -0
  118. package/lib/interfaces/idp/user/SuccessfulAuth.js +2 -0
  119. package/lib/interfaces/idp/user/Totp.d.ts +20 -0
  120. package/lib/interfaces/idp/user/Totp.js +2 -0
  121. package/lib/interfaces/idp/user/index.d.ts +23 -0
  122. package/lib/interfaces/idp/user/index.js +2 -0
  123. package/lib/interfaces/mailer/index.d.ts +66 -0
  124. package/lib/interfaces/mailer/index.js +81 -0
  125. package/lib/interfaces/mothership/index.d.ts +27 -0
  126. package/lib/interfaces/mothership/index.js +8 -0
  127. package/lib/interfaces/nats/index.d.ts +252 -0
  128. package/lib/interfaces/nats/index.js +334 -0
  129. package/lib/service/agent/bundle/dev/index.d.ts +17 -0
  130. package/lib/service/agent/bundle/dev/index.js +40 -0
  131. package/lib/service/agent/bundle/index.d.ts +11 -0
  132. package/lib/service/agent/bundle/index.js +55 -0
  133. package/lib/service/agent/context/index.d.ts +37 -0
  134. package/lib/service/agent/context/index.js +81 -0
  135. package/lib/service/agent/index.d.ts +14 -0
  136. package/lib/service/agent/index.js +20 -0
  137. package/lib/service/agent/installer/index.d.ts +15 -0
  138. package/lib/service/agent/installer/index.js +97 -0
  139. package/lib/service/auditor/index.d.ts +26 -0
  140. package/lib/service/auditor/index.js +49 -0
  141. package/lib/service/auditor/internal/index.d.ts +27 -0
  142. package/lib/service/{AuditorInternal.js → auditor/internal/index.js} +20 -24
  143. package/lib/service/bouncer/features/index.d.ts +8 -0
  144. package/lib/service/bouncer/features/index.js +25 -0
  145. package/lib/service/bouncer/index.d.ts +14 -0
  146. package/lib/service/bouncer/index.js +31 -0
  147. package/lib/service/dali/DaliAvatar.d.ts +36 -0
  148. package/lib/service/dali/DaliAvatar.js +25 -0
  149. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +28 -0
  150. package/lib/service/dali/avatar/DaliFuseSpace.js +55 -0
  151. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +28 -0
  152. package/lib/service/dali/avatar/DaliHigh5Space.js +55 -0
  153. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +28 -0
  154. package/lib/service/dali/avatar/DaliOAuthApp.js +55 -0
  155. package/lib/service/dali/avatar/DaliOrganization.d.ts +25 -0
  156. package/lib/service/dali/avatar/DaliOrganization.js +52 -0
  157. package/lib/service/dali/avatar/DaliTeam.d.ts +28 -0
  158. package/lib/service/dali/avatar/DaliTeam.js +55 -0
  159. package/lib/service/dali/avatar/DaliUser.d.ts +22 -0
  160. package/lib/service/dali/avatar/DaliUser.js +49 -0
  161. package/lib/service/dali/index.d.ts +16 -0
  162. package/lib/service/dali/index.js +30 -0
  163. package/lib/service/fuse/index.d.ts +17 -0
  164. package/lib/service/fuse/index.js +34 -0
  165. package/lib/service/fuse/internal/index.d.ts +9 -0
  166. package/lib/service/fuse/internal/index.js +29 -0
  167. package/lib/service/fuse/internal/space/cronjob/index.d.ts +8 -0
  168. package/lib/service/fuse/internal/space/cronjob/index.js +15 -0
  169. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +17 -0
  170. package/lib/service/fuse/internal/space/cronjob/log/index.js +35 -0
  171. package/lib/service/fuse/internal/space/index.d.ts +23 -0
  172. package/lib/service/fuse/internal/space/index.js +43 -0
  173. package/lib/service/fuse/space/cronjob/index.d.ts +123 -0
  174. package/lib/service/fuse/space/cronjob/index.js +175 -0
  175. package/lib/service/fuse/space/cronjob/log/index.d.ts +31 -0
  176. package/lib/service/fuse/space/cronjob/log/index.js +57 -0
  177. package/lib/service/fuse/space/index.d.ts +82 -0
  178. package/lib/service/fuse/space/index.js +134 -0
  179. package/lib/service/high5/execution/index.d.ts +10 -0
  180. package/lib/service/high5/execution/index.js +17 -0
  181. package/lib/service/high5/execution/log/index.d.ts +19 -0
  182. package/lib/service/high5/execution/log/index.js +41 -0
  183. package/lib/service/high5/execution/status/index.d.ts +18 -0
  184. package/lib/service/high5/execution/status/index.js +41 -0
  185. package/lib/service/high5/index.d.ts +22 -0
  186. package/lib/service/high5/index.js +39 -0
  187. package/lib/service/high5/internal/index.d.ts +9 -0
  188. package/lib/service/high5/internal/index.js +29 -0
  189. package/lib/service/high5/internal/space/index.d.ts +21 -0
  190. package/lib/service/high5/internal/space/index.js +41 -0
  191. package/lib/service/high5/joinToken/index.d.ts +40 -0
  192. package/lib/service/high5/joinToken/index.js +64 -0
  193. package/lib/service/high5/space/event/index.d.ts +56 -0
  194. package/lib/service/high5/space/event/index.js +89 -0
  195. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +31 -0
  196. package/lib/service/high5/space/event/stream/design/DesignOperations.js +117 -0
  197. package/lib/service/high5/space/event/stream/design/index.d.ts +38 -0
  198. package/lib/service/high5/space/event/stream/design/index.js +56 -0
  199. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +62 -0
  200. package/lib/service/high5/space/event/stream/design/snapshot/index.js +100 -0
  201. package/lib/service/high5/space/event/stream/index.d.ts +114 -0
  202. package/lib/service/high5/space/event/stream/index.js +164 -0
  203. package/lib/service/high5/space/execution/index.d.ts +48 -0
  204. package/lib/service/high5/space/execution/index.js +74 -0
  205. package/lib/service/high5/space/execution/log/index.d.ts +31 -0
  206. package/lib/service/high5/space/execution/log/index.js +57 -0
  207. package/lib/service/high5/space/execution/status/index.d.ts +16 -0
  208. package/lib/service/high5/space/execution/status/index.js +34 -0
  209. package/lib/service/high5/space/index.d.ts +107 -0
  210. package/lib/service/high5/space/index.js +160 -0
  211. package/lib/service/high5/space/node/index.d.ts +58 -0
  212. package/lib/service/high5/space/node/index.js +116 -0
  213. package/lib/service/high5/space/secret/index.d.ts +60 -0
  214. package/lib/service/high5/space/secret/index.js +92 -0
  215. package/lib/service/high5/space/wave/index.d.ts +38 -0
  216. package/lib/service/high5/space/wave/index.js +66 -0
  217. package/lib/service/high5/space/webhook/index.d.ts +83 -0
  218. package/lib/service/high5/space/webhook/index.js +132 -0
  219. package/lib/service/high5/space/webhook/log/index.d.ts +18 -0
  220. package/lib/service/high5/space/webhook/log/index.js +38 -0
  221. package/lib/service/high5/wave/index.d.ts +8 -0
  222. package/lib/service/high5/wave/index.js +15 -0
  223. package/lib/service/high5/wave/s3/index.d.ts +48 -0
  224. package/lib/service/high5/wave/s3/index.js +88 -0
  225. package/lib/service/idp/index.d.ts +82 -0
  226. package/lib/service/idp/index.js +137 -0
  227. package/lib/service/idp/internal/index.d.ts +19 -0
  228. package/lib/service/idp/internal/index.js +34 -0
  229. package/lib/service/idp/oauth/index.d.ts +45 -0
  230. package/lib/service/idp/oauth/index.js +105 -0
  231. package/lib/service/idp/organization/index.d.ts +54 -0
  232. package/lib/service/idp/organization/index.js +79 -0
  233. package/lib/service/idp/organization/license/index.d.ts +7 -0
  234. package/lib/service/idp/organization/license/index.js +30 -0
  235. package/lib/service/idp/organization/member/index.d.ts +58 -0
  236. package/lib/service/idp/organization/member/index.js +96 -0
  237. package/lib/service/idp/organization/member/invitations/index.d.ts +79 -0
  238. package/lib/service/idp/organization/member/invitations/index.js +118 -0
  239. package/lib/service/idp/organization/settings/domain/index.d.ts +38 -0
  240. package/lib/service/idp/organization/settings/domain/index.js +63 -0
  241. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +43 -0
  242. package/lib/service/idp/organization/settings/domain/saml/index.js +88 -0
  243. package/lib/service/idp/organization/settings/index.d.ts +16 -0
  244. package/lib/service/idp/organization/settings/index.js +16 -0
  245. package/lib/service/idp/organization/settings/oauth/index.d.ts +64 -0
  246. package/lib/service/idp/organization/settings/oauth/index.js +106 -0
  247. package/lib/service/idp/organization/team/index.d.ts +72 -0
  248. package/lib/service/idp/organization/team/index.js +115 -0
  249. package/lib/service/idp/registration/index.d.ts +39 -0
  250. package/lib/service/idp/registration/index.js +84 -0
  251. package/lib/service/idp/user/index.d.ts +82 -0
  252. package/lib/service/idp/user/index.js +125 -0
  253. package/lib/service/idp/user/license/index.d.ts +7 -0
  254. package/lib/service/idp/user/license/index.js +30 -0
  255. package/lib/service/idp/user/password/index.d.ts +19 -0
  256. package/lib/service/idp/user/password/index.js +52 -0
  257. package/lib/service/idp/user/settings/connections/index.d.ts +15 -0
  258. package/lib/service/idp/user/settings/connections/index.js +33 -0
  259. package/lib/service/idp/user/settings/general/index.d.ts +18 -0
  260. package/lib/service/idp/user/settings/general/index.js +39 -0
  261. package/lib/service/idp/user/settings/index.d.ts +36 -0
  262. package/lib/service/idp/user/settings/index.js +25 -0
  263. package/lib/service/idp/user/settings/notifications/index.d.ts +18 -0
  264. package/lib/service/idp/user/settings/notifications/index.js +39 -0
  265. package/lib/service/idp/user/settings/oauthApps/index.d.ts +22 -0
  266. package/lib/service/idp/user/settings/oauthApps/index.js +54 -0
  267. package/lib/service/idp/user/settings/pats/index.d.ts +50 -0
  268. package/lib/service/idp/user/settings/pats/index.js +93 -0
  269. package/lib/service/idp/user/settings/twoFactor/index.d.ts +11 -0
  270. package/lib/service/idp/user/settings/twoFactor/index.js +15 -0
  271. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +34 -0
  272. package/lib/service/idp/user/settings/twoFactor/totp/index.js +65 -0
  273. package/lib/service/mailer/index.d.ts +14 -0
  274. package/lib/service/{Mailer.js → mailer/index.js} +9 -12
  275. package/lib/service/mailer/internal/index.d.ts +36 -0
  276. package/lib/service/mailer/internal/index.js +64 -0
  277. package/lib/service/mothership/index.d.ts +97 -0
  278. package/lib/service/mothership/index.js +136 -0
  279. package/lib/service/nats/index.d.ts +51 -0
  280. package/lib/service/nats/index.js +138 -0
  281. package/lib/utils/Types.d.ts +1 -0
  282. package/lib/utils/Types.js +2 -0
  283. package/lib/utils/bouncer/features/Provider.d.ts +16 -0
  284. package/lib/utils/bouncer/features/Provider.js +83 -0
  285. package/package.json +37 -29
  286. package/lib/base.d.ts +0 -12
  287. package/lib/base.js +0 -8
  288. package/lib/hcloud.d.ts +0 -13
  289. package/lib/hcloud.js +0 -29
  290. package/lib/interfaces/Global.d.ts +0 -8
  291. package/lib/interfaces/IDP.d.ts +0 -9
  292. package/lib/interfaces/Mail.d.ts +0 -29
  293. package/lib/interfaces/Mail.js +0 -8
  294. package/lib/service/Auditor.d.ts +0 -22
  295. package/lib/service/Auditor.js +0 -61
  296. package/lib/service/AuditorInternal.d.ts +0 -28
  297. package/lib/service/High5.d.ts +0 -4
  298. package/lib/service/High5.js +0 -9
  299. package/lib/service/IDP.d.ts +0 -39
  300. package/lib/service/IDP.js +0 -84
  301. package/lib/service/Mailer.d.ts +0 -13
  302. package/lib/service/MailerInternal.d.ts +0 -32
  303. package/lib/service/MailerInternal.js +0 -64
  304. /package/lib/interfaces/{Global.js → agent/bundle/dev/index.js} +0 -0
  305. /package/lib/interfaces/{IDP.js → agent/context/index.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import { ReducedOrganization } from "../organization";
2
+ export interface ConnectionSettings {
3
+ connections: (ReducedOrganization & {
4
+ connect: boolean;
5
+ })[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,44 @@
1
+ import { ReducedUser } from ".";
2
+ import { Views } from "../../global/Views";
3
+ export declare enum Language {
4
+ ENGLISH = "en",
5
+ GERMAN = "de"
6
+ }
7
+ export declare enum DateFormat {
8
+ ISO_8601_24 = "YYYY-MM-DDTHH:mm:ss",
9
+ ISO_8601_12 = "YYYY-MM-DD hh:mm:ss a",
10
+ US_12 = "MM/DD/YYYY hh:mm:ss a",
11
+ EU_24 = "DD/MM/YYYY HH:mm:ss",
12
+ GERMAN_24 = "DD.MM.YYYY HH:mm:ss"
13
+ }
14
+ export declare enum DateFormatWithoutTime {
15
+ ISO_8601_24 = "YYYY-MM-DD",
16
+ ISO_8601_12 = "YYYY-MM-DD",// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
17
+ US_12 = "MM/DD/YYYY",
18
+ EU_24 = "DD/MM/YYYY",
19
+ GERMAN_24 = "DD.MM.YYYY"
20
+ }
21
+ export declare enum Theme {
22
+ DARK = "DARK",
23
+ LIGHT = "LIGHT",
24
+ SYSTEM_DEFAULT = "SYSTEM_DEFAULT",
25
+ HIGH_CONTRAST = "HIGH_CONTRAST"
26
+ }
27
+ export declare enum Entrypoint {
28
+ DEFAULT = "DEFAULT",
29
+ HIGH5 = "HIGH5",
30
+ FUSE = "FUSE",
31
+ LAST_VISITED = "LAST_VISITED"
32
+ }
33
+ export interface GeneralSettings {
34
+ _id: string;
35
+ user: ReducedUser;
36
+ lastUrl: string;
37
+ lastView: Views;
38
+ timezone: string;
39
+ language: Language;
40
+ dateFormat: DateFormat;
41
+ theme: Theme;
42
+ entrypoint: Entrypoint;
43
+ }
44
+ export type GeneralSettingsPatch = Partial<Omit<GeneralSettings, "_id" | "user">>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Entrypoint = exports.Theme = exports.DateFormatWithoutTime = exports.DateFormat = exports.Language = void 0;
4
+ var Language;
5
+ (function (Language) {
6
+ Language["ENGLISH"] = "en";
7
+ Language["GERMAN"] = "de";
8
+ })(Language || (exports.Language = Language = {}));
9
+ var DateFormat;
10
+ (function (DateFormat) {
11
+ DateFormat["ISO_8601_24"] = "YYYY-MM-DDTHH:mm:ss";
12
+ DateFormat["ISO_8601_12"] = "YYYY-MM-DD hh:mm:ss a";
13
+ DateFormat["US_12"] = "MM/DD/YYYY hh:mm:ss a";
14
+ DateFormat["EU_24"] = "DD/MM/YYYY HH:mm:ss";
15
+ DateFormat["GERMAN_24"] = "DD.MM.YYYY HH:mm:ss";
16
+ })(DateFormat || (exports.DateFormat = DateFormat = {}));
17
+ var DateFormatWithoutTime;
18
+ (function (DateFormatWithoutTime) {
19
+ DateFormatWithoutTime["ISO_8601_24"] = "YYYY-MM-DD";
20
+ DateFormatWithoutTime["ISO_8601_12"] = "YYYY-MM-DD";
21
+ DateFormatWithoutTime["US_12"] = "MM/DD/YYYY";
22
+ DateFormatWithoutTime["EU_24"] = "DD/MM/YYYY";
23
+ DateFormatWithoutTime["GERMAN_24"] = "DD.MM.YYYY";
24
+ })(DateFormatWithoutTime || (exports.DateFormatWithoutTime = DateFormatWithoutTime = {}));
25
+ var Theme;
26
+ (function (Theme) {
27
+ Theme["DARK"] = "DARK";
28
+ Theme["LIGHT"] = "LIGHT";
29
+ Theme["SYSTEM_DEFAULT"] = "SYSTEM_DEFAULT";
30
+ Theme["HIGH_CONTRAST"] = "HIGH_CONTRAST";
31
+ })(Theme || (exports.Theme = Theme = {}));
32
+ var Entrypoint;
33
+ (function (Entrypoint) {
34
+ Entrypoint["DEFAULT"] = "DEFAULT";
35
+ Entrypoint["HIGH5"] = "HIGH5";
36
+ Entrypoint["FUSE"] = "FUSE";
37
+ Entrypoint["LAST_VISITED"] = "LAST_VISITED";
38
+ })(Entrypoint || (exports.Entrypoint = Entrypoint = {}));
@@ -0,0 +1,8 @@
1
+ import { ReducedUser } from ".";
2
+ export interface NotificationSettings {
3
+ _id: string;
4
+ user: ReducedUser;
5
+ organizationInvitationEmail: boolean;
6
+ systemNotifications: boolean;
7
+ }
8
+ export type NotificationSettingsPatch = Partial<Omit<NotificationSettings, "_id" | "user">>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { ReducedUser } from ".";
2
+ import { Scope } from "./Scopes";
3
+ export interface Pat {
4
+ _id: string;
5
+ name: string;
6
+ expiration?: number;
7
+ scopes: Scope[];
8
+ user: ReducedUser;
9
+ token: string;
10
+ jwt: string;
11
+ modifyDate: number;
12
+ }
13
+ export interface PatCreate {
14
+ name: string;
15
+ expiration?: number;
16
+ scopes: Scope[];
17
+ token?: string;
18
+ }
19
+ export type PatUpdate = Partial<PatCreate>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
1
+ export declare enum Scope {
2
+ HCLOUD_FULL = "hcloud:full",
3
+ IDP_EMAIL_READ = "idp:email:read",
4
+ IDP_USER_READ = "idp:user:read",
5
+ IDP_USER_WRITE = "idp:user:write",
6
+ IDP_USER_DELETE = "idp:user:delete",
7
+ IDP_USER_OPEN_ID = "openid",// This is a special scope for OpenID Connect in the OAuth flow
8
+ IDP_ORGANIZATION_READ = "idp:organization:read",
9
+ IDP_ORGANIZATION_WRITE = "idp:organization:write",
10
+ IDP_ORGANIZATION_DELETE = "idp:organization:delete",
11
+ IDP_ORGANIZATION_ADMIN = "idp:organization:admin",
12
+ HIGH5_SPACE_READ = "high5:space:read",
13
+ HIGH5_SPACE_EXECUTE = "high5:space:execute",
14
+ HIGH5_SPACE_WRITE = "high5:space:write",
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
+ }
21
+ export declare const ScopeDependencies: {
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.FUSE_SPACE_READ | Scope.FUSE_SPACE_EXECUTE | Scope.FUSE_SPACE_WRITE | Scope.FUSE_SPACE_DELETE)[];
23
+ "idp:email:read": never[];
24
+ "idp:user:read": never[];
25
+ "idp:user:write": Scope[];
26
+ "idp:user:delete": Scope[];
27
+ openid: Scope[];
28
+ "idp:organization:read": Scope[];
29
+ "idp:organization:write": Scope[];
30
+ "idp:organization:delete": Scope[];
31
+ "idp:organization:admin": Scope[];
32
+ "high5:space:read": Scope[];
33
+ "high5:space:execute": Scope[];
34
+ "high5:space:write": Scope[];
35
+ "high5:space:delete": Scope[];
36
+ "fuse:space:read": Scope[];
37
+ "fuse:space:execute": never[];
38
+ "fuse:space:write": Scope[];
39
+ "fuse:space:delete": Scope[];
40
+ };
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScopeDependencies = exports.Scope = void 0;
4
+ var Scope;
5
+ (function (Scope) {
6
+ Scope["HCLOUD_FULL"] = "hcloud:full";
7
+ Scope["IDP_EMAIL_READ"] = "idp:email:read";
8
+ Scope["IDP_USER_READ"] = "idp:user:read";
9
+ Scope["IDP_USER_WRITE"] = "idp:user:write";
10
+ Scope["IDP_USER_DELETE"] = "idp:user:delete";
11
+ Scope["IDP_USER_OPEN_ID"] = "openid";
12
+ Scope["IDP_ORGANIZATION_READ"] = "idp:organization:read";
13
+ Scope["IDP_ORGANIZATION_WRITE"] = "idp:organization:write";
14
+ Scope["IDP_ORGANIZATION_DELETE"] = "idp:organization:delete";
15
+ Scope["IDP_ORGANIZATION_ADMIN"] = "idp:organization:admin";
16
+ Scope["HIGH5_SPACE_READ"] = "high5:space:read";
17
+ Scope["HIGH5_SPACE_EXECUTE"] = "high5:space:execute";
18
+ Scope["HIGH5_SPACE_WRITE"] = "high5:space:write";
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 || (exports.Scope = Scope = {}));
25
+ exports.ScopeDependencies = {
26
+ [Scope.HCLOUD_FULL]: [...Object.values(Scope).filter(s => s !== Scope.HCLOUD_FULL)],
27
+ [Scope.IDP_EMAIL_READ]: [],
28
+ [Scope.IDP_USER_READ]: [],
29
+ [Scope.IDP_USER_WRITE]: [Scope.IDP_USER_READ],
30
+ [Scope.IDP_USER_DELETE]: [Scope.IDP_USER_READ, Scope.IDP_USER_WRITE],
31
+ [Scope.IDP_USER_OPEN_ID]: [Scope.IDP_EMAIL_READ],
32
+ [Scope.IDP_ORGANIZATION_READ]: [Scope.IDP_USER_READ],
33
+ [Scope.IDP_ORGANIZATION_WRITE]: [Scope.IDP_USER_READ, Scope.IDP_ORGANIZATION_READ],
34
+ [Scope.IDP_ORGANIZATION_DELETE]: [Scope.IDP_USER_READ, Scope.IDP_ORGANIZATION_READ, Scope.IDP_ORGANIZATION_WRITE],
35
+ [Scope.IDP_ORGANIZATION_ADMIN]: [Scope.IDP_USER_READ, Scope.IDP_ORGANIZATION_READ, Scope.IDP_ORGANIZATION_WRITE, Scope.IDP_ORGANIZATION_DELETE],
36
+ [Scope.HIGH5_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
37
+ [Scope.HIGH5_SPACE_EXECUTE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.HIGH5_SPACE_READ],
38
+ [Scope.HIGH5_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.HIGH5_SPACE_READ, Scope.HIGH5_SPACE_EXECUTE],
39
+ [Scope.HIGH5_SPACE_DELETE]: [
40
+ Scope.IDP_ORGANIZATION_READ,
41
+ Scope.IDP_USER_READ,
42
+ Scope.HIGH5_SPACE_READ,
43
+ Scope.HIGH5_SPACE_EXECUTE,
44
+ Scope.HIGH5_SPACE_WRITE,
45
+ ],
46
+ [Scope.FUSE_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
47
+ [Scope.FUSE_SPACE_EXECUTE]: [],
48
+ [Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
49
+ [Scope.FUSE_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ, Scope.FUSE_SPACE_WRITE],
50
+ };
@@ -0,0 +1,5 @@
1
+ import { User } from ".";
2
+ export interface SuccessfulAuth {
3
+ user: User;
4
+ token: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ interface Totp {
2
+ activated: boolean;
3
+ createDate: number;
4
+ modifyDate: number;
5
+ }
6
+ export interface DeactivatedTotp extends Totp {
7
+ activated: false;
8
+ otpAuthUrl: string;
9
+ qrcode: string;
10
+ secret: string;
11
+ }
12
+ export interface ActivatedTotp extends Totp {
13
+ activated: true;
14
+ recoverCodes: string[];
15
+ }
16
+ export interface UserTotp {
17
+ email: string;
18
+ token: string;
19
+ }
20
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { Scope } from "./Scopes";
2
+ export interface User {
3
+ _id: string;
4
+ name: string;
5
+ email: string;
6
+ company?: string;
7
+ avatarUrl: string;
8
+ activeOrganization: string;
9
+ twoFactor?: {
10
+ totp: boolean;
11
+ };
12
+ createDate: number;
13
+ modifyDate: number;
14
+ activeScopes: Scope[];
15
+ isAgent?: boolean;
16
+ }
17
+ export type ReducedUser = Pick<User, "_id" | "name" | "avatarUrl">;
18
+ export interface UserPatch {
19
+ name?: string;
20
+ email?: string;
21
+ company?: string;
22
+ activeOrganization?: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,66 @@
1
+ export declare enum Template {
2
+ REGISTER = "register",
3
+ RESET_PASSWORD = "reset_password",
4
+ INVITE_TO_ORG = "invite_to_org"
5
+ }
6
+ export interface Mail {
7
+ recipients: string[];
8
+ subject: string;
9
+ }
10
+ export interface MailReplacement {
11
+ key: string;
12
+ value: string;
13
+ }
14
+ export interface TemplateMail extends Mail {
15
+ template: Template;
16
+ replacements: MailReplacement[];
17
+ }
18
+ /**
19
+ * @param html base64 encoded html string
20
+ */
21
+ export interface HtmlMail extends Mail {
22
+ html: string;
23
+ }
24
+ /**
25
+ * @param html base64 encoded html string
26
+ */
27
+ export interface MustacheMail extends Mail {
28
+ html: string;
29
+ replacements: MailReplacement[];
30
+ }
31
+ declare enum MailjetTemplate {
32
+ IDP_NEW_REGISTRATION = "IDP_NEW_REGISTRATION",
33
+ IDP_NEW_REGISTRATION_CUSTOMER = "IDP_NEW_REGISTRATION_CUSTOMER",
34
+ IDP_INVITE_TO_ORGANIZATION = "IDP_INVITE_TO_ORGANIZATION",
35
+ IDP_RESET_PASSWORD = "IDP_RESET_PASSWORD",
36
+ IDP_REGISTRATION_AND_INVITATION = "IDP_REGISTRATION_AND_INVITATION",
37
+ IDP_USER_LEFT_ORGANIZATION = "IDP_USER_LEFT_ORGANIZATION"
38
+ }
39
+ interface MailjetTemplateField {
40
+ [key: string]: string;
41
+ }
42
+ export declare abstract class MailjetMailDTO {
43
+ recipients: string[];
44
+ template: MailjetTemplate;
45
+ fields: MailjetTemplateField;
46
+ constructor(recipients: string[], template: MailjetTemplate, fields: MailjetTemplateField);
47
+ }
48
+ export declare class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
49
+ constructor(recipients: string[], verifyLink: string, hcloudOriginalEmail: string);
50
+ }
51
+ export declare class IdpNewRegistrationMailjetMailToCustomerDTO extends MailjetMailDTO {
52
+ constructor(recipients: string[], username: string);
53
+ }
54
+ export declare class IdpResetPasswordMailjetMailDTO extends MailjetMailDTO {
55
+ constructor(recipients: string[], resetPasswordLink: string);
56
+ }
57
+ export declare class IdpInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
58
+ constructor(recipients: string[], approvalLink: string, inviteFromPerson: string, inviteToOrganization: string);
59
+ }
60
+ export declare class IdpRegisterAndInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
61
+ constructor(recipients: string[], registerLink: string, inviteFromPerson: string, inviteToOrganization: string);
62
+ }
63
+ export declare class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
64
+ constructor(recipients: string[], userName: string, userEmail: string, organizationName: string);
65
+ }
66
+ export {};
@@ -0,0 +1,81 @@
1
+ "use strict";
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;
4
+ var Template;
5
+ (function (Template) {
6
+ Template["REGISTER"] = "register";
7
+ Template["RESET_PASSWORD"] = "reset_password";
8
+ Template["INVITE_TO_ORG"] = "invite_to_org";
9
+ })(Template || (exports.Template = Template = {}));
10
+ var MailjetTemplate;
11
+ (function (MailjetTemplate) {
12
+ MailjetTemplate["IDP_NEW_REGISTRATION"] = "IDP_NEW_REGISTRATION";
13
+ MailjetTemplate["IDP_NEW_REGISTRATION_CUSTOMER"] = "IDP_NEW_REGISTRATION_CUSTOMER";
14
+ MailjetTemplate["IDP_INVITE_TO_ORGANIZATION"] = "IDP_INVITE_TO_ORGANIZATION";
15
+ MailjetTemplate["IDP_RESET_PASSWORD"] = "IDP_RESET_PASSWORD";
16
+ MailjetTemplate["IDP_REGISTRATION_AND_INVITATION"] = "IDP_REGISTRATION_AND_INVITATION";
17
+ MailjetTemplate["IDP_USER_LEFT_ORGANIZATION"] = "IDP_USER_LEFT_ORGANIZATION";
18
+ })(MailjetTemplate || (MailjetTemplate = {}));
19
+ class MailjetMailDTO {
20
+ constructor(recipients, template, fields) {
21
+ this.recipients = recipients;
22
+ this.template = template;
23
+ this.fields = fields;
24
+ }
25
+ }
26
+ exports.MailjetMailDTO = MailjetMailDTO;
27
+ class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
28
+ constructor(recipients, verifyLink, hcloudOriginalEmail) {
29
+ super(recipients, MailjetTemplate.IDP_NEW_REGISTRATION, {
30
+ HCLOUD_VERIFY_LINK: verifyLink,
31
+ HCLOUD_ORIGINAL_EMAIL: hcloudOriginalEmail,
32
+ });
33
+ }
34
+ }
35
+ exports.IdpNewRegistrationMailjetMailDTO = IdpNewRegistrationMailjetMailDTO;
36
+ class IdpNewRegistrationMailjetMailToCustomerDTO extends MailjetMailDTO {
37
+ constructor(recipients, username) {
38
+ super(recipients, MailjetTemplate.IDP_NEW_REGISTRATION_CUSTOMER, {
39
+ USERNAME: username,
40
+ });
41
+ }
42
+ }
43
+ exports.IdpNewRegistrationMailjetMailToCustomerDTO = IdpNewRegistrationMailjetMailToCustomerDTO;
44
+ class IdpResetPasswordMailjetMailDTO extends MailjetMailDTO {
45
+ constructor(recipients, resetPasswordLink) {
46
+ super(recipients, MailjetTemplate.IDP_RESET_PASSWORD, {
47
+ HCLOUD_RESET_PASSWORD_LINK: resetPasswordLink,
48
+ });
49
+ }
50
+ }
51
+ exports.IdpResetPasswordMailjetMailDTO = IdpResetPasswordMailjetMailDTO;
52
+ class IdpInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
53
+ constructor(recipients, approvalLink, inviteFromPerson, inviteToOrganization) {
54
+ super(recipients, MailjetTemplate.IDP_INVITE_TO_ORGANIZATION, {
55
+ HCLOUD_INVITE_FROM: inviteFromPerson,
56
+ HCLOUD_INVITE_ORGANIZATION: inviteToOrganization,
57
+ HCLOUD_APPROVAL_LINK: approvalLink,
58
+ });
59
+ }
60
+ }
61
+ exports.IdpInviteToOrganizationMailjetMailDto = IdpInviteToOrganizationMailjetMailDto;
62
+ class IdpRegisterAndInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
63
+ constructor(recipients, registerLink, inviteFromPerson, inviteToOrganization) {
64
+ super(recipients, MailjetTemplate.IDP_REGISTRATION_AND_INVITATION, {
65
+ HCLOUD_INVITE_FROM: inviteFromPerson,
66
+ HCLOUD_INVITE_ORGANIZATION: inviteToOrganization,
67
+ HCLOUD_REGISTER_LINK: registerLink,
68
+ });
69
+ }
70
+ }
71
+ exports.IdpRegisterAndInviteToOrganizationMailjetMailDto = IdpRegisterAndInviteToOrganizationMailjetMailDto;
72
+ class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
73
+ constructor(recipients, userName, userEmail, organizationName) {
74
+ super(recipients, MailjetTemplate.IDP_USER_LEFT_ORGANIZATION, {
75
+ USER_NAME: userName,
76
+ USER_EMAIL: userEmail,
77
+ ORGANIZATION_NAME: organizationName,
78
+ });
79
+ }
80
+ }
81
+ exports.IdpUserLeftOrganizationMailjetMailDTO = IdpUserLeftOrganizationMailjetMailDTO;
@@ -0,0 +1,27 @@
1
+ export declare enum AgentStatus {
2
+ BUSY = "BUSY",
3
+ IDLE = "IDLE"
4
+ }
5
+ export type Agent = {
6
+ _id: string;
7
+ uuid: string;
8
+ ip?: string;
9
+ cpu: string;
10
+ cpuUtilization: number;
11
+ memoryTotal: number;
12
+ memoryUsed: number;
13
+ hostname: string;
14
+ nickname: string;
15
+ osPlatform: string;
16
+ osRelease: string;
17
+ osVersion: string;
18
+ uptime: number;
19
+ status: AgentStatus;
20
+ createDate: number;
21
+ modifyDate: number;
22
+ bundleVersion?: string;
23
+ };
24
+ export type TargetAgent = Pick<Agent, Exclude<keyof Agent, "uptime">> & {
25
+ connectionUptime: number;
26
+ targetEmail: string;
27
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentStatus = void 0;
4
+ var AgentStatus;
5
+ (function (AgentStatus) {
6
+ AgentStatus["BUSY"] = "BUSY";
7
+ AgentStatus["IDLE"] = "IDLE";
8
+ })(AgentStatus || (exports.AgentStatus = AgentStatus = {}));