hcloud-sdk 0.0.16 → 15.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 (310) hide show
  1. package/README.md +1 -0
  2. package/changelog.md +45 -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 +90 -0
  8. package/lib/Hcloud.js +184 -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 +7 -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/frontend/featureflags/index.d.ts +7 -0
  32. package/lib/interfaces/frontend/featureflags/index.js +2 -0
  33. package/lib/interfaces/fuse/index.d.ts +3 -0
  34. package/lib/interfaces/fuse/index.js +19 -0
  35. package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +38 -0
  36. package/lib/interfaces/fuse/space/cronjob/Cronjob.js +8 -0
  37. package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +16 -0
  38. package/lib/interfaces/fuse/space/cronjob/CronjobLog.js +2 -0
  39. package/lib/interfaces/fuse/space/index.d.ts +21 -0
  40. package/lib/interfaces/fuse/space/index.js +11 -0
  41. package/lib/interfaces/global/HCloudError.d.ts +8 -0
  42. package/lib/interfaces/global/HCloudError.js +13 -0
  43. package/lib/interfaces/global/Header.d.ts +4 -0
  44. package/lib/interfaces/global/Header.js +2 -0
  45. package/lib/interfaces/global/HttpMethod.d.ts +7 -0
  46. package/lib/interfaces/global/HttpMethod.js +11 -0
  47. package/lib/interfaces/global/PaginatedResponse.d.ts +4 -0
  48. package/lib/interfaces/global/PaginatedResponse.js +2 -0
  49. package/lib/interfaces/global/Products.d.ts +11 -0
  50. package/lib/interfaces/global/Products.js +15 -0
  51. package/lib/interfaces/global/SearchFilters.d.ts +86 -0
  52. package/lib/interfaces/global/SearchFilters.js +49 -0
  53. package/lib/interfaces/global/Space.d.ts +20 -0
  54. package/lib/interfaces/global/Space.js +8 -0
  55. package/lib/interfaces/global/Version.d.ts +3 -0
  56. package/lib/interfaces/global/Version.js +2 -0
  57. package/lib/interfaces/global/Views.d.ts +8 -0
  58. package/lib/interfaces/global/Views.js +12 -0
  59. package/lib/interfaces/global/index.d.ts +9 -0
  60. package/lib/interfaces/global/index.js +25 -0
  61. package/lib/interfaces/high5/index.d.ts +16 -0
  62. package/lib/interfaces/high5/index.js +32 -0
  63. package/lib/interfaces/high5/joinToken/index.d.ts +10 -0
  64. package/lib/interfaces/high5/joinToken/index.js +2 -0
  65. package/lib/interfaces/high5/space/event/index.d.ts +15 -0
  66. package/lib/interfaces/high5/space/event/index.js +2 -0
  67. package/lib/interfaces/high5/space/event/stream/design/DesignOperation.d.ts +68 -0
  68. package/lib/interfaces/high5/space/event/stream/design/DesignOperation.js +20 -0
  69. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +92 -0
  70. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.js +20 -0
  71. package/lib/interfaces/high5/space/event/stream/design/index.d.ts +22 -0
  72. package/lib/interfaces/high5/space/event/stream/design/index.js +2 -0
  73. package/lib/interfaces/high5/space/event/stream/design/snapshot/index.d.ts +30 -0
  74. package/lib/interfaces/high5/space/event/stream/design/snapshot/index.js +8 -0
  75. package/lib/interfaces/high5/space/event/stream/index.d.ts +77 -0
  76. package/lib/interfaces/high5/space/event/stream/index.js +13 -0
  77. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +62 -0
  78. package/lib/interfaces/high5/space/event/stream/node/index.js +7 -0
  79. package/lib/interfaces/high5/space/execution/index.d.ts +148 -0
  80. package/lib/interfaces/high5/space/execution/index.js +21 -0
  81. package/lib/interfaces/high5/space/index.d.ts +23 -0
  82. package/lib/interfaces/high5/space/index.js +12 -0
  83. package/lib/interfaces/high5/space/secret/index.d.ts +12 -0
  84. package/lib/interfaces/high5/space/secret/index.js +2 -0
  85. package/lib/interfaces/high5/space/webhook/index.d.ts +75 -0
  86. package/lib/interfaces/high5/space/webhook/index.js +9 -0
  87. package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
  88. package/lib/interfaces/high5/wave/changelog.js +18 -0
  89. package/lib/interfaces/high5/wave/index.d.ts +201 -0
  90. package/lib/interfaces/high5/wave/index.js +61 -0
  91. package/lib/interfaces/idp/index.d.ts +26 -0
  92. package/lib/interfaces/idp/index.js +38 -0
  93. package/lib/interfaces/idp/oauth/index.d.ts +19 -0
  94. package/lib/interfaces/idp/oauth/index.js +8 -0
  95. package/lib/interfaces/idp/organization/index.d.ts +32 -0
  96. package/lib/interfaces/idp/organization/index.js +25 -0
  97. package/lib/interfaces/idp/organization/license/index.d.ts +84 -0
  98. package/lib/interfaces/idp/organization/license/index.js +15 -0
  99. package/lib/interfaces/idp/organization/member/index.d.ts +15 -0
  100. package/lib/interfaces/idp/organization/member/index.js +2 -0
  101. package/lib/interfaces/idp/organization/member/invitations/index.d.ts +26 -0
  102. package/lib/interfaces/idp/organization/member/invitations/index.js +18 -0
  103. package/lib/interfaces/idp/organization/settings/domain/index.d.ts +19 -0
  104. package/lib/interfaces/idp/organization/settings/domain/index.js +8 -0
  105. package/lib/interfaces/idp/organization/settings/domain/saml/index.d.ts +10 -0
  106. package/lib/interfaces/idp/organization/settings/domain/saml/index.js +2 -0
  107. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +37 -0
  108. package/lib/interfaces/idp/organization/settings/oauthApp/index.js +2 -0
  109. package/lib/interfaces/idp/organization/team/index.d.ts +24 -0
  110. package/lib/interfaces/idp/organization/team/index.js +9 -0
  111. package/lib/interfaces/idp/user/ConnectionSettings.d.ts +6 -0
  112. package/lib/interfaces/idp/user/ConnectionSettings.js +2 -0
  113. package/lib/interfaces/idp/user/GeneralSettings.d.ts +45 -0
  114. package/lib/interfaces/idp/user/GeneralSettings.js +38 -0
  115. package/lib/interfaces/idp/user/NotificationSettings.d.ts +8 -0
  116. package/lib/interfaces/idp/user/NotificationSettings.js +2 -0
  117. package/lib/interfaces/idp/user/Pat.d.ts +19 -0
  118. package/lib/interfaces/idp/user/Pat.js +2 -0
  119. package/lib/interfaces/idp/user/Scopes.d.ts +40 -0
  120. package/lib/interfaces/idp/user/Scopes.js +50 -0
  121. package/lib/interfaces/idp/user/SuccessfulAuth.d.ts +5 -0
  122. package/lib/interfaces/idp/user/SuccessfulAuth.js +2 -0
  123. package/lib/interfaces/idp/user/Totp.d.ts +20 -0
  124. package/lib/interfaces/idp/user/Totp.js +2 -0
  125. package/lib/interfaces/idp/user/index.d.ts +23 -0
  126. package/lib/interfaces/idp/user/index.js +2 -0
  127. package/lib/interfaces/mailer/index.d.ts +66 -0
  128. package/lib/interfaces/mailer/index.js +81 -0
  129. package/lib/interfaces/mothership/index.d.ts +28 -0
  130. package/lib/interfaces/mothership/index.js +8 -0
  131. package/lib/interfaces/nats/index.d.ts +239 -0
  132. package/lib/interfaces/nats/index.js +316 -0
  133. package/lib/service/agent/bundle/dev/index.d.ts +17 -0
  134. package/lib/service/agent/bundle/dev/index.js +44 -0
  135. package/lib/service/agent/bundle/index.d.ts +11 -0
  136. package/lib/service/agent/bundle/index.js +55 -0
  137. package/lib/service/agent/context/index.d.ts +35 -0
  138. package/lib/service/agent/context/index.js +90 -0
  139. package/lib/service/agent/index.d.ts +16 -0
  140. package/lib/service/agent/index.js +37 -0
  141. package/lib/service/agent/installer/index.d.ts +15 -0
  142. package/lib/service/agent/installer/index.js +97 -0
  143. package/lib/service/auditor/index.d.ts +25 -0
  144. package/lib/service/auditor/index.js +55 -0
  145. package/lib/service/auditor/internal/index.d.ts +27 -0
  146. package/lib/service/auditor/internal/index.js +65 -0
  147. package/lib/service/bouncer/features/index.d.ts +8 -0
  148. package/lib/service/bouncer/features/index.js +27 -0
  149. package/lib/service/bouncer/index.d.ts +7 -0
  150. package/lib/service/bouncer/index.js +16 -0
  151. package/lib/service/dali/DaliAvatar.d.ts +40 -0
  152. package/lib/service/dali/DaliAvatar.js +70 -0
  153. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +26 -0
  154. package/lib/service/dali/avatar/DaliFuseSpace.js +58 -0
  155. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +26 -0
  156. package/lib/service/dali/avatar/DaliHigh5Space.js +58 -0
  157. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +26 -0
  158. package/lib/service/dali/avatar/DaliOAuthApp.js +58 -0
  159. package/lib/service/dali/avatar/DaliOrganization.d.ts +23 -0
  160. package/lib/service/dali/avatar/DaliOrganization.js +55 -0
  161. package/lib/service/dali/avatar/DaliTeam.d.ts +26 -0
  162. package/lib/service/dali/avatar/DaliTeam.js +58 -0
  163. package/lib/service/dali/avatar/DaliUser.d.ts +20 -0
  164. package/lib/service/dali/avatar/DaliUser.js +52 -0
  165. package/lib/service/dali/index.d.ts +15 -0
  166. package/lib/service/dali/index.js +37 -0
  167. package/lib/service/fuse/index.d.ts +18 -0
  168. package/lib/service/fuse/index.js +48 -0
  169. package/lib/service/fuse/internal/index.d.ts +8 -0
  170. package/lib/service/fuse/internal/index.js +31 -0
  171. package/lib/service/fuse/internal/space/cronjob/index.d.ts +7 -0
  172. package/lib/service/fuse/internal/space/cronjob/index.js +17 -0
  173. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +15 -0
  174. package/lib/service/fuse/internal/space/cronjob/log/index.js +34 -0
  175. package/lib/service/fuse/internal/space/index.d.ts +22 -0
  176. package/lib/service/fuse/internal/space/index.js +49 -0
  177. package/lib/service/fuse/space/cronjob/index.d.ts +123 -0
  178. package/lib/service/fuse/space/cronjob/index.js +203 -0
  179. package/lib/service/fuse/space/cronjob/log/index.d.ts +31 -0
  180. package/lib/service/fuse/space/cronjob/log/index.js +58 -0
  181. package/lib/service/fuse/space/index.d.ts +81 -0
  182. package/lib/service/fuse/space/index.js +152 -0
  183. package/lib/service/high5/execution/index.d.ts +10 -0
  184. package/lib/service/high5/execution/index.js +24 -0
  185. package/lib/service/high5/execution/log/index.d.ts +19 -0
  186. package/lib/service/high5/execution/log/index.js +40 -0
  187. package/lib/service/high5/execution/status/index.d.ts +18 -0
  188. package/lib/service/high5/execution/status/index.js +40 -0
  189. package/lib/service/high5/index.d.ts +25 -0
  190. package/lib/service/high5/index.js +63 -0
  191. package/lib/service/high5/internal/index.d.ts +8 -0
  192. package/lib/service/high5/internal/index.js +31 -0
  193. package/lib/service/high5/internal/space/index.d.ts +21 -0
  194. package/lib/service/high5/internal/space/index.js +45 -0
  195. package/lib/service/high5/joinToken/index.d.ts +40 -0
  196. package/lib/service/high5/joinToken/index.js +72 -0
  197. package/lib/service/high5/space/event/index.d.ts +55 -0
  198. package/lib/service/high5/space/event/index.js +101 -0
  199. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +31 -0
  200. package/lib/service/high5/space/event/stream/design/DesignOperations.js +117 -0
  201. package/lib/service/high5/space/event/stream/design/index.d.ts +53 -0
  202. package/lib/service/high5/space/event/stream/design/index.js +91 -0
  203. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +62 -0
  204. package/lib/service/high5/space/event/stream/design/snapshot/index.js +107 -0
  205. package/lib/service/high5/space/event/stream/index.d.ts +113 -0
  206. package/lib/service/high5/space/event/stream/index.js +186 -0
  207. package/lib/service/high5/space/execution/index.d.ts +48 -0
  208. package/lib/service/high5/space/execution/index.js +89 -0
  209. package/lib/service/high5/space/execution/log/index.d.ts +29 -0
  210. package/lib/service/high5/space/execution/log/index.js +58 -0
  211. package/lib/service/high5/space/execution/status/index.d.ts +16 -0
  212. package/lib/service/high5/space/execution/status/index.js +36 -0
  213. package/lib/service/high5/space/index.d.ts +111 -0
  214. package/lib/service/high5/space/index.js +205 -0
  215. package/lib/service/high5/space/node/index.d.ts +58 -0
  216. package/lib/service/high5/space/node/index.js +116 -0
  217. package/lib/service/high5/space/secret/index.d.ts +60 -0
  218. package/lib/service/high5/space/secret/index.js +102 -0
  219. package/lib/service/high5/space/wave/index.d.ts +36 -0
  220. package/lib/service/high5/space/wave/index.js +73 -0
  221. package/lib/service/high5/space/webhook/index.d.ts +90 -0
  222. package/lib/service/high5/space/webhook/index.js +165 -0
  223. package/lib/service/high5/space/webhook/log/index.d.ts +16 -0
  224. package/lib/service/high5/space/webhook/log/index.js +37 -0
  225. package/lib/service/high5/wave/index.d.ts +8 -0
  226. package/lib/service/high5/wave/index.js +15 -0
  227. package/lib/service/high5/wave/s3/index.d.ts +48 -0
  228. package/lib/service/high5/wave/s3/index.js +100 -0
  229. package/lib/service/idp/index.d.ts +84 -0
  230. package/lib/service/idp/index.js +185 -0
  231. package/lib/service/idp/internal/index.d.ts +17 -0
  232. package/lib/service/idp/internal/index.js +33 -0
  233. package/lib/service/idp/oauth/index.d.ts +49 -0
  234. package/lib/service/idp/oauth/index.js +117 -0
  235. package/lib/service/idp/organization/index.d.ts +56 -0
  236. package/lib/service/idp/organization/index.js +114 -0
  237. package/lib/service/idp/organization/license/index.d.ts +7 -0
  238. package/lib/service/idp/organization/license/index.js +31 -0
  239. package/lib/service/idp/organization/member/index.d.ts +57 -0
  240. package/lib/service/idp/organization/member/index.js +110 -0
  241. package/lib/service/idp/organization/member/invitations/index.d.ts +79 -0
  242. package/lib/service/idp/organization/member/invitations/index.js +122 -0
  243. package/lib/service/idp/organization/settings/domain/index.d.ts +37 -0
  244. package/lib/service/idp/organization/settings/domain/index.js +76 -0
  245. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +43 -0
  246. package/lib/service/idp/organization/settings/domain/saml/index.js +98 -0
  247. package/lib/service/idp/organization/settings/index.d.ts +16 -0
  248. package/lib/service/idp/organization/settings/index.js +29 -0
  249. package/lib/service/idp/organization/settings/oauth/index.d.ts +62 -0
  250. package/lib/service/idp/organization/settings/oauth/index.js +117 -0
  251. package/lib/service/idp/organization/team/index.d.ts +72 -0
  252. package/lib/service/idp/organization/team/index.js +124 -0
  253. package/lib/service/idp/registration/index.d.ts +37 -0
  254. package/lib/service/idp/registration/index.js +87 -0
  255. package/lib/service/idp/user/index.d.ts +83 -0
  256. package/lib/service/idp/user/index.js +160 -0
  257. package/lib/service/idp/user/license/index.d.ts +7 -0
  258. package/lib/service/idp/user/license/index.js +31 -0
  259. package/lib/service/idp/user/password/index.d.ts +19 -0
  260. package/lib/service/idp/user/password/index.js +51 -0
  261. package/lib/service/idp/user/settings/connections/index.d.ts +13 -0
  262. package/lib/service/idp/user/settings/connections/index.js +32 -0
  263. package/lib/service/idp/user/settings/general/index.d.ts +22 -0
  264. package/lib/service/idp/user/settings/general/index.js +51 -0
  265. package/lib/service/idp/user/settings/index.d.ts +40 -0
  266. package/lib/service/idp/user/settings/index.js +70 -0
  267. package/lib/service/idp/user/settings/notifications/index.d.ts +16 -0
  268. package/lib/service/idp/user/settings/notifications/index.js +40 -0
  269. package/lib/service/idp/user/settings/oauthApps/index.d.ts +20 -0
  270. package/lib/service/idp/user/settings/oauthApps/index.js +55 -0
  271. package/lib/service/idp/user/settings/pats/index.d.ts +48 -0
  272. package/lib/service/idp/user/settings/pats/index.js +104 -0
  273. package/lib/service/idp/user/settings/twoFactor/index.d.ts +10 -0
  274. package/lib/service/idp/user/settings/twoFactor/index.js +20 -0
  275. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +32 -0
  276. package/lib/service/idp/user/settings/twoFactor/totp/index.js +72 -0
  277. package/lib/service/mailer/index.d.ts +13 -0
  278. package/lib/service/{Mailer.js → mailer/index.js} +17 -16
  279. package/lib/service/mailer/internal/index.d.ts +36 -0
  280. package/lib/service/mailer/internal/index.js +69 -0
  281. package/lib/service/mothership/index.d.ts +97 -0
  282. package/lib/service/mothership/index.js +149 -0
  283. package/lib/service/nats/index.d.ts +49 -0
  284. package/lib/service/nats/index.js +138 -0
  285. package/lib/utils/Types.d.ts +1 -0
  286. package/lib/utils/Types.js +2 -0
  287. package/lib/utils/bouncer/features/Provider.d.ts +19 -0
  288. package/lib/utils/bouncer/features/Provider.js +101 -0
  289. package/package.json +37 -29
  290. package/lib/base.d.ts +0 -12
  291. package/lib/base.js +0 -8
  292. package/lib/hcloud.d.ts +0 -13
  293. package/lib/hcloud.js +0 -29
  294. package/lib/interfaces/Global.d.ts +0 -8
  295. package/lib/interfaces/IDP.d.ts +0 -9
  296. package/lib/interfaces/Mail.d.ts +0 -29
  297. package/lib/interfaces/Mail.js +0 -8
  298. package/lib/service/Auditor.d.ts +0 -22
  299. package/lib/service/Auditor.js +0 -61
  300. package/lib/service/AuditorInternal.d.ts +0 -28
  301. package/lib/service/AuditorInternal.js +0 -65
  302. package/lib/service/High5.d.ts +0 -4
  303. package/lib/service/High5.js +0 -9
  304. package/lib/service/IDP.d.ts +0 -39
  305. package/lib/service/IDP.js +0 -84
  306. package/lib/service/Mailer.d.ts +0 -13
  307. package/lib/service/MailerInternal.d.ts +0 -32
  308. package/lib/service/MailerInternal.js +0 -64
  309. /package/lib/interfaces/{Global.js → agent/bundle/dev/index.js} +0 -0
  310. /package/lib/interfaces/{IDP.js → agent/context/index.js} +0 -0
@@ -0,0 +1,68 @@
1
+ import { DesignerNode } from "./StreamDesign";
2
+ export type DesignOperation = AddNode | DeleteNode | EditNode | MoveNode | LinkNodes | UnlinkNodes;
3
+ export type AddNode = {
4
+ target: OperationTarget.NODE;
5
+ type: NodeOperation.ADD;
6
+ details: DesignerNode;
7
+ };
8
+ export type DeleteNode = {
9
+ target: OperationTarget.NODE;
10
+ type: NodeOperation.DELETE;
11
+ uuid: string;
12
+ };
13
+ export type EditNode = {
14
+ target: OperationTarget.NODE;
15
+ type: NodeOperation.EDIT;
16
+ uuid: string;
17
+ changes: Partial<{
18
+ customDescription: string;
19
+ customNode: {
20
+ _id: string;
21
+ };
22
+ color: string;
23
+ bypass: boolean;
24
+ }>;
25
+ };
26
+ export type MoveNode = {
27
+ target: OperationTarget.NODE;
28
+ type: NodeOperation.MOVE;
29
+ uuid: string;
30
+ newCoords: {
31
+ x: number;
32
+ y: number;
33
+ };
34
+ };
35
+ export type LinkNodes = {
36
+ target: OperationTarget.LINK;
37
+ type: LinkOperation.LINK;
38
+ details: {
39
+ uuid: string;
40
+ from: {
41
+ nodeUuid: string;
42
+ connectorUuid: string;
43
+ };
44
+ to: {
45
+ nodeUuid: string;
46
+ connectorUuid: string;
47
+ };
48
+ };
49
+ };
50
+ export type UnlinkNodes = {
51
+ target: OperationTarget.LINK;
52
+ type: LinkOperation.UNLINK;
53
+ uuid: string;
54
+ };
55
+ export declare enum OperationTarget {
56
+ NODE = "NODE",
57
+ LINK = "LINK"
58
+ }
59
+ export declare enum NodeOperation {
60
+ ADD = "ADD",
61
+ DELETE = "DELETE",
62
+ MOVE = "MOVE",
63
+ EDIT = "EDIT"
64
+ }
65
+ export declare enum LinkOperation {
66
+ LINK = "LINK",
67
+ UNLINK = "UNLINK"
68
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkOperation = exports.NodeOperation = exports.OperationTarget = void 0;
4
+ var OperationTarget;
5
+ (function (OperationTarget) {
6
+ OperationTarget["NODE"] = "NODE";
7
+ OperationTarget["LINK"] = "LINK";
8
+ })(OperationTarget || (exports.OperationTarget = OperationTarget = {}));
9
+ var NodeOperation;
10
+ (function (NodeOperation) {
11
+ NodeOperation["ADD"] = "ADD";
12
+ NodeOperation["DELETE"] = "DELETE";
13
+ NodeOperation["MOVE"] = "MOVE";
14
+ NodeOperation["EDIT"] = "EDIT";
15
+ })(NodeOperation || (exports.NodeOperation = NodeOperation = {}));
16
+ var LinkOperation;
17
+ (function (LinkOperation) {
18
+ LinkOperation["LINK"] = "LINK";
19
+ LinkOperation["UNLINK"] = "UNLINK";
20
+ })(LinkOperation || (exports.LinkOperation = LinkOperation = {}));
@@ -0,0 +1,92 @@
1
+ import { StreamCustomNodeSpecification, StreamNodeSpecificationInputType, StreamSemanticVersion } from "../../../../wave";
2
+ export interface CanvasDimensions {
3
+ width: number;
4
+ height: number;
5
+ }
6
+ export interface DesignContent {
7
+ nodes: DesignerNode[];
8
+ links: DesignerLink[];
9
+ canvas: CanvasDimensions;
10
+ }
11
+ export interface DesignerNode {
12
+ name: string;
13
+ originalName: string;
14
+ description: string;
15
+ customDescription?: string;
16
+ kind: DesignerNodeKind;
17
+ color: string;
18
+ bypass?: boolean;
19
+ version: StreamSemanticVersion;
20
+ uuid: string;
21
+ connectors: DesignerNodeConnector[];
22
+ inputs: DesignerNodeInput[];
23
+ coords: DesignerNodeCoords;
24
+ path: string;
25
+ catalog: DesignerNodeCatalog;
26
+ customNode?: StreamCustomNodeSpecification;
27
+ }
28
+ export interface DesignerNodeCatalog {
29
+ url: string;
30
+ }
31
+ export type StringMap = {
32
+ [key: string]: string;
33
+ };
34
+ export interface DesignerNodeInput {
35
+ uuid: string;
36
+ name: string;
37
+ description: string;
38
+ advanced?: boolean;
39
+ type: StreamNodeSpecificationInputType;
40
+ selectedLanguage?: StringMap;
41
+ example: string | number | boolean | string[] | StringMap | StringMap[];
42
+ value?: string | number | boolean | string[] | StringMap | StringMap[];
43
+ mandatory?: boolean;
44
+ }
45
+ export interface DesignerNodeConnector {
46
+ name: string;
47
+ description: string;
48
+ uuid: string;
49
+ io: DesignerNodeConnectorIO;
50
+ type: DesignerNodeConnectorType;
51
+ }
52
+ export declare enum DesignerNodeConnectorIO {
53
+ INPUT = "INPUT",
54
+ OUTPUT = "OUTPUT"
55
+ }
56
+ export declare enum DesignerNodeConnectorType {
57
+ TRIGGER = "TRIGGER",
58
+ SUCCESS = "SUCCESS",
59
+ FAIL = "FAIL",
60
+ CUSTOM = "CUSTOM"
61
+ }
62
+ export interface DesignerNodeCoords {
63
+ currentX: number;
64
+ currentY: number;
65
+ initialX: number;
66
+ initialY: number;
67
+ }
68
+ export declare enum DesignerNodeKind {
69
+ NODE = "NODE",
70
+ ANNOTATION = "ANNOTATION"
71
+ }
72
+ export interface DesignerNodeAnnotation extends DesignerNode {
73
+ title: string;
74
+ kind: DesignerNodeKind;
75
+ size: DesignerNodeAnnotationSize;
76
+ color: string;
77
+ background: string;
78
+ contentColor?: string;
79
+ }
80
+ export interface DesignerNodeAnnotationSize {
81
+ width: number;
82
+ height: number;
83
+ }
84
+ export interface DesignerLink {
85
+ uuid: string;
86
+ from: DesignerLinkOrigin;
87
+ to: DesignerLinkOrigin;
88
+ }
89
+ export interface DesignerLinkOrigin {
90
+ nodeUuid: string;
91
+ connectorUuid: string;
92
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DesignerNodeKind = exports.DesignerNodeConnectorType = exports.DesignerNodeConnectorIO = void 0;
4
+ var DesignerNodeConnectorIO;
5
+ (function (DesignerNodeConnectorIO) {
6
+ DesignerNodeConnectorIO["INPUT"] = "INPUT";
7
+ DesignerNodeConnectorIO["OUTPUT"] = "OUTPUT";
8
+ })(DesignerNodeConnectorIO || (exports.DesignerNodeConnectorIO = DesignerNodeConnectorIO = {}));
9
+ var DesignerNodeConnectorType;
10
+ (function (DesignerNodeConnectorType) {
11
+ DesignerNodeConnectorType["TRIGGER"] = "TRIGGER";
12
+ DesignerNodeConnectorType["SUCCESS"] = "SUCCESS";
13
+ DesignerNodeConnectorType["FAIL"] = "FAIL";
14
+ DesignerNodeConnectorType["CUSTOM"] = "CUSTOM";
15
+ })(DesignerNodeConnectorType || (exports.DesignerNodeConnectorType = DesignerNodeConnectorType = {}));
16
+ var DesignerNodeKind;
17
+ (function (DesignerNodeKind) {
18
+ DesignerNodeKind["NODE"] = "NODE";
19
+ DesignerNodeKind["ANNOTATION"] = "ANNOTATION";
20
+ })(DesignerNodeKind || (exports.DesignerNodeKind = DesignerNodeKind = {}));
@@ -0,0 +1,22 @@
1
+ import { DesignBuild } from "..";
2
+ import { ReducedEvent } from "../..";
3
+ import { ReducedSpace } from "../../../../../global";
4
+ import { ReducedOrganization } from "../../../../../idp/organization";
5
+ import { ReducedUser } from "../../../../../idp/user";
6
+ import { DesignContent } from "./StreamDesign";
7
+ export interface Design {
8
+ _id: string;
9
+ name: string;
10
+ content: DesignContent;
11
+ build?: DesignBuild;
12
+ streamId: string;
13
+ event: ReducedEvent;
14
+ space: ReducedSpace;
15
+ organization: ReducedOrganization;
16
+ creator: ReducedUser;
17
+ designHash: string;
18
+ /**
19
+ * UTC+0 unix timestamp
20
+ */
21
+ createDate: number;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ import { DesignBuild } from "../..";
2
+ import { ReducedEvent } from "../../..";
3
+ import { ReducedSpace } from "../../../../../../global";
4
+ import { ReducedOrganization, ReducedUser } from "../../../../../../idp";
5
+ import { DesignContent } from "../StreamDesign";
6
+ export default interface DesignSnapshot {
7
+ _id: string;
8
+ name: string;
9
+ content?: DesignContent;
10
+ build?: DesignBuild;
11
+ streamId: string;
12
+ event: ReducedEvent;
13
+ space: ReducedSpace;
14
+ organization: ReducedOrganization;
15
+ creator: ReducedUser;
16
+ designHash: string;
17
+ type: SnapshotType;
18
+ /**
19
+ * UTC+0 unix timestamp
20
+ */
21
+ createDate: number;
22
+ /**
23
+ * UTC+0 unix timestamp
24
+ */
25
+ modifyDate: number;
26
+ }
27
+ export declare enum SnapshotType {
28
+ MANUAL = "manual",
29
+ PUBLISHED = "published"
30
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SnapshotType = void 0;
4
+ var SnapshotType;
5
+ (function (SnapshotType) {
6
+ SnapshotType["MANUAL"] = "manual";
7
+ SnapshotType["PUBLISHED"] = "published";
8
+ })(SnapshotType || (exports.SnapshotType = SnapshotType = {}));
@@ -0,0 +1,77 @@
1
+ import { ReducedEvent } from "..";
2
+ import { ReducedSpace } from "../../../../global";
3
+ import { ReducedOrganization } from "../../../../idp/organization";
4
+ import { ReducedUser } from "../../../../idp/user";
5
+ import { StreamNode } from "../../execution";
6
+ import { StreamSingleNodeResult } from "./node";
7
+ export interface Stream {
8
+ _id: string;
9
+ name: string;
10
+ event: ReducedEvent;
11
+ space: ReducedSpace;
12
+ order: number;
13
+ active: boolean;
14
+ organization: ReducedOrganization;
15
+ creator: ReducedUser;
16
+ /**
17
+ * UTC+0 unix timestamp
18
+ */
19
+ createDate: number;
20
+ }
21
+ export declare enum MoveDirection {
22
+ UP = "UP",
23
+ DOWN = "DOWN"
24
+ }
25
+ export interface SingleStreamPatchOrder {
26
+ direction: MoveDirection;
27
+ }
28
+ export interface StreamPatchOrder {
29
+ streamId: string;
30
+ order: number;
31
+ }
32
+ export interface StreamPatchActive {
33
+ active: boolean;
34
+ }
35
+ export interface StreamResult {
36
+ host: string;
37
+ failed: boolean;
38
+ nodeResults: StreamSingleNodeResult[];
39
+ endTimestamp: number;
40
+ }
41
+ export interface StreamExecutionNatsResponse {
42
+ failed: boolean;
43
+ message: string;
44
+ }
45
+ export interface StreamLog {
46
+ _id: string;
47
+ streamId: string;
48
+ high5ExecutionId: string;
49
+ nodeResults: StreamSingleNodeResult[];
50
+ }
51
+ export declare enum StreamPayloadType {
52
+ JSON = "JSON",
53
+ GENERIC = "GENERIC"
54
+ }
55
+ export interface StreamExecutionPayload {
56
+ type: StreamPayloadType;
57
+ data: string;
58
+ }
59
+ export interface StreamExecutionRequest {
60
+ payload: StreamExecutionPayload;
61
+ target: string;
62
+ dry: boolean;
63
+ }
64
+ export interface EventExecutionRequest {
65
+ payload: StreamExecutionPayload;
66
+ target: string;
67
+ dry: boolean;
68
+ }
69
+ export interface DesignBuild {
70
+ nodes: StreamNode[];
71
+ startNode: string;
72
+ }
73
+ export interface StreamExecutionPackage {
74
+ design: DesignBuild;
75
+ payload: StreamExecutionPayload;
76
+ waveEngine: string;
77
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamPayloadType = exports.MoveDirection = void 0;
4
+ var MoveDirection;
5
+ (function (MoveDirection) {
6
+ MoveDirection["UP"] = "UP";
7
+ MoveDirection["DOWN"] = "DOWN";
8
+ })(MoveDirection || (exports.MoveDirection = MoveDirection = {}));
9
+ var StreamPayloadType;
10
+ (function (StreamPayloadType) {
11
+ StreamPayloadType["JSON"] = "JSON";
12
+ StreamPayloadType["GENERIC"] = "GENERIC";
13
+ })(StreamPayloadType || (exports.StreamPayloadType = StreamPayloadType = {}));
@@ -0,0 +1,62 @@
1
+ import { ReducedOrganization } from "../../../../../idp/organization";
2
+ import { ReducedUser } from "../../../../../idp/user";
3
+ import { StreamNodeSpecificationInputType, StreamNodeSpecificationOutputType } from "../../../../wave";
4
+ export declare enum NodeCategory {
5
+ CUSTOM = "CUSTOM"
6
+ }
7
+ export interface Node {
8
+ _id: string;
9
+ secret: string;
10
+ category: NodeCategory;
11
+ organization: ReducedOrganization;
12
+ archived: boolean;
13
+ space: string;
14
+ event: string;
15
+ streamId: string;
16
+ creator: ReducedUser;
17
+ specification: string;
18
+ typescript: string;
19
+ javascript: string;
20
+ /**
21
+ * UTC+0 unix timestamp
22
+ */
23
+ createDate: number;
24
+ modifyDate: number;
25
+ }
26
+ export interface StreamNodeResolvedInputs {
27
+ name: string;
28
+ originalValue: unknown;
29
+ value: unknown;
30
+ type: StreamNodeSpecificationInputType;
31
+ error: boolean;
32
+ errorMessage: string;
33
+ }
34
+ export interface StreamNodeOutput {
35
+ name: string | undefined;
36
+ value: unknown;
37
+ type: StreamNodeSpecificationOutputType;
38
+ }
39
+ export interface StreamNodeResultError {
40
+ code: number;
41
+ message: string;
42
+ detail?: string;
43
+ trace: string | undefined;
44
+ }
45
+ export interface StreamSingleNodeResult {
46
+ uuid: string;
47
+ nodeUuid: string;
48
+ failed: boolean;
49
+ startTimestamp: number;
50
+ endTimestamp: number;
51
+ name: string;
52
+ inputs?: StreamNodeResolvedInputs[];
53
+ outputs?: StreamNodeOutput[];
54
+ error?: StreamNodeResultError;
55
+ duration?: number;
56
+ bypassed?: boolean;
57
+ nodeResults?: StreamSingleNodeResult[];
58
+ }
59
+ export interface StreamNodeAdditionalConnector {
60
+ name: string;
61
+ targetUuid: string;
62
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeCategory = void 0;
4
+ var NodeCategory;
5
+ (function (NodeCategory) {
6
+ NodeCategory["CUSTOM"] = "CUSTOM";
7
+ })(NodeCategory || (exports.NodeCategory = NodeCategory = {}));
@@ -0,0 +1,148 @@
1
+ import { HCloud } from "../../../../Hcloud";
2
+ import { ReducedSpace } from "../../../global";
3
+ import { ReducedOrganization, ReducedUser } from "../../../idp";
4
+ import { WaveCatalog, WaveEngine } from "../../wave";
5
+ import { ReducedEvent } from "../event";
6
+ import { DesignBuild } from "../event/stream";
7
+ import { StreamNodeAdditionalConnector, StreamNodeOutput, StreamNodeResolvedInputs, StreamSingleNodeResult } from "../event/stream/node";
8
+ export declare enum High5ExecutionPayloadType {
9
+ JSON = "JSON",
10
+ GENERIC = "GENERIC"
11
+ }
12
+ export interface High5ExecutionPayload {
13
+ type: High5ExecutionPayloadType;
14
+ data: string;
15
+ }
16
+ export interface High5ExecutionRequest {
17
+ payload: High5ExecutionPayload;
18
+ target: string;
19
+ dry?: boolean;
20
+ }
21
+ export interface High5ExecuteAgentResponse {
22
+ failed: boolean;
23
+ message: string;
24
+ }
25
+ export declare enum High5ExecutionState {
26
+ QUEUED = "QUEUED",
27
+ RUNNING = "RUNNING",
28
+ COMPLETED = "COMPLETED"
29
+ }
30
+ export declare enum High5ExecutionOutcome {
31
+ PENDING = "PENDING",
32
+ SUCCESS = "SUCCESS",
33
+ FAILED = "FAILED",
34
+ CANCELED = "CANCELED"
35
+ }
36
+ export interface StreamRunningNode {
37
+ uuid: string;
38
+ name: string;
39
+ progress: number;
40
+ message: string;
41
+ }
42
+ export interface EventExecutionResult {
43
+ high5ExecutionId: string;
44
+ streamId: string;
45
+ state: High5ExecutionState;
46
+ outcome: High5ExecutionOutcome;
47
+ runningNodes: StreamRunningNode[];
48
+ }
49
+ export interface High5ExecutionPackage {
50
+ design: DesignBuild;
51
+ payload: High5ExecutionPayload;
52
+ waveCatalogs: WaveCatalog[];
53
+ waveEngine: WaveEngine;
54
+ dry: boolean;
55
+ info: StreamInfo;
56
+ }
57
+ type StreamInfo = {
58
+ target: string;
59
+ webhook?: WebhookInfo;
60
+ };
61
+ type WebhookInfo = {
62
+ callbackUrl: string;
63
+ };
64
+ export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
65
+ hcl: HCloud;
66
+ orgName: string;
67
+ spaceName: string;
68
+ streamId: string;
69
+ secret: string;
70
+ }
71
+ export interface High5ExecutionPatchLog {
72
+ streamId: string;
73
+ nodeResults: StreamSingleNodeResult[];
74
+ }
75
+ export interface StreamRunningNodePatch {
76
+ uuid: string;
77
+ name: string;
78
+ progress: number;
79
+ message: string;
80
+ }
81
+ export interface High5ExecutionPatchStatus {
82
+ streamId: string;
83
+ state?: High5ExecutionState;
84
+ outcome?: High5ExecutionOutcome;
85
+ runningNodes?: StreamRunningNodePatch[];
86
+ message?: string;
87
+ startDate: number;
88
+ endDate?: number;
89
+ }
90
+ export interface High5ExecutionPatch {
91
+ high5ExecutionPatchStatus: High5ExecutionPatchStatus;
92
+ high5ExecutionPatchLog: High5ExecutionPatchLog;
93
+ }
94
+ export interface High5ExecutionStatus {
95
+ _id: string;
96
+ organization: ReducedOrganization;
97
+ space: ReducedSpace;
98
+ event: ReducedEvent;
99
+ streamId: string;
100
+ streamName: string;
101
+ high5ExecutionId: string;
102
+ creator: ReducedUser;
103
+ state: High5ExecutionState;
104
+ outcome: High5ExecutionOutcome;
105
+ message: string;
106
+ runningNodes: StreamRunningNode[];
107
+ target: string;
108
+ dry: boolean;
109
+ createDate: number;
110
+ startDate: number;
111
+ endDate: number;
112
+ }
113
+ export interface High5ExecutionLog {
114
+ _id: string;
115
+ streamId: string;
116
+ payload?: High5ExecutionPayload;
117
+ high5ExecutionId: string;
118
+ nodeResults: StreamSingleNodeResult[];
119
+ createDate: number;
120
+ }
121
+ export interface High5ExecutionResponse {
122
+ high5ExecutionId: string;
123
+ statusId: string;
124
+ logId: string;
125
+ }
126
+ export interface StreamNode {
127
+ uuid: string;
128
+ name: string;
129
+ catalog: WaveCatalog;
130
+ path: string;
131
+ bypass?: boolean;
132
+ onSuccess?: string;
133
+ onFail?: string;
134
+ inputs?: StreamNodeResolvedInputs[];
135
+ outputs?: StreamNodeOutput[];
136
+ additionalConnectors?: StreamNodeAdditionalConnector[];
137
+ }
138
+ export interface High5ExecuteOnAgentRequest {
139
+ organizationName: string;
140
+ spaceName: string;
141
+ streamId: string;
142
+ secret: string;
143
+ subject: string;
144
+ }
145
+ export interface High5ExecutionCancelRequest {
146
+ secret: string;
147
+ }
148
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.High5ExecutionOutcome = exports.High5ExecutionState = exports.High5ExecutionPayloadType = void 0;
4
+ var High5ExecutionPayloadType;
5
+ (function (High5ExecutionPayloadType) {
6
+ High5ExecutionPayloadType["JSON"] = "JSON";
7
+ High5ExecutionPayloadType["GENERIC"] = "GENERIC";
8
+ })(High5ExecutionPayloadType || (exports.High5ExecutionPayloadType = High5ExecutionPayloadType = {}));
9
+ var High5ExecutionState;
10
+ (function (High5ExecutionState) {
11
+ High5ExecutionState["QUEUED"] = "QUEUED";
12
+ High5ExecutionState["RUNNING"] = "RUNNING";
13
+ High5ExecutionState["COMPLETED"] = "COMPLETED";
14
+ })(High5ExecutionState || (exports.High5ExecutionState = High5ExecutionState = {}));
15
+ var High5ExecutionOutcome;
16
+ (function (High5ExecutionOutcome) {
17
+ High5ExecutionOutcome["PENDING"] = "PENDING";
18
+ High5ExecutionOutcome["SUCCESS"] = "SUCCESS";
19
+ High5ExecutionOutcome["FAILED"] = "FAILED";
20
+ High5ExecutionOutcome["CANCELED"] = "CANCELED";
21
+ })(High5ExecutionOutcome || (exports.High5ExecutionOutcome = High5ExecutionOutcome = {}));
@@ -0,0 +1,23 @@
1
+ import { ReducedSpace, Space, SpaceEntity } from "../../global";
2
+ import { ReducedOrganization } from "../../idp";
3
+ export interface High5Space extends Space {
4
+ highestPermissionOfUser: High5SpacePermission;
5
+ waveEngine: string;
6
+ }
7
+ export interface High5SpaceEntityPermission {
8
+ organization: ReducedOrganization;
9
+ space: ReducedSpace;
10
+ entityId: string;
11
+ entityName: string;
12
+ type: SpaceEntity;
13
+ permission: High5SpacePermission;
14
+ avatarUrl: string;
15
+ }
16
+ export declare enum High5SpacePermission {
17
+ NONE = "NONE",
18
+ READ = "READ",
19
+ EXECUTE = "EXECUTE",
20
+ WRITE = "WRITE",
21
+ MANAGE = "MANAGE",
22
+ OWNER = "OWNER"
23
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.High5SpacePermission = void 0;
4
+ var High5SpacePermission;
5
+ (function (High5SpacePermission) {
6
+ High5SpacePermission["NONE"] = "NONE";
7
+ High5SpacePermission["READ"] = "READ";
8
+ High5SpacePermission["EXECUTE"] = "EXECUTE";
9
+ High5SpacePermission["WRITE"] = "WRITE";
10
+ High5SpacePermission["MANAGE"] = "MANAGE";
11
+ High5SpacePermission["OWNER"] = "OWNER";
12
+ })(High5SpacePermission || (exports.High5SpacePermission = High5SpacePermission = {}));
@@ -0,0 +1,12 @@
1
+ import { ReducedUser } from "../../../idp";
2
+ export interface Secret {
3
+ key: string;
4
+ value?: string;
5
+ encrypted: boolean;
6
+ description?: string;
7
+ creator: ReducedUser;
8
+ createDate: number;
9
+ modifyDate: number;
10
+ }
11
+ export type CreateSecret = Pick<Secret, "key" | "value" | "description" | "encrypted">;
12
+ export type UpdateSecret = Pick<Secret, "value" | "description" | "encrypted">;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });