hcloud-sdk 0.0.15 → 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 (300) 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/index.d.ts +72 -0
  20. package/lib/interfaces/{Auditor.js → auditor/index.js} +21 -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/auditor/internal/index.js +61 -0
  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/index.js +31 -0
  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 +36 -27
  286. package/lib/base.d.ts +0 -12
  287. package/lib/base.js +0 -8
  288. package/lib/hcloud.d.ts +0 -11
  289. package/lib/hcloud.js +0 -27
  290. package/lib/interfaces/Auditor.d.ts +0 -40
  291. package/lib/interfaces/Global.d.ts +0 -8
  292. package/lib/interfaces/IDP.d.ts +0 -9
  293. package/lib/service/Auditor.d.ts +0 -42
  294. package/lib/service/Auditor.js +0 -101
  295. package/lib/service/High5.d.ts +0 -4
  296. package/lib/service/High5.js +0 -9
  297. package/lib/service/IDP.d.ts +0 -39
  298. package/lib/service/IDP.js +0 -84
  299. /package/lib/interfaces/{Global.js → agent/bundle/dev/index.js} +0 -0
  300. /package/lib/interfaces/{IDP.js → agent/context/index.js} +0 -0
@@ -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,60 @@
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
+ }
32
+ export interface StreamNodeOutput {
33
+ name: string | undefined;
34
+ value: unknown;
35
+ type: StreamNodeSpecificationOutputType;
36
+ }
37
+ export interface StreamNodeResultError {
38
+ code: number;
39
+ message: string;
40
+ detail?: string;
41
+ trace: string | undefined;
42
+ }
43
+ export interface StreamSingleNodeResult {
44
+ uuid: string;
45
+ nodeUuid: string;
46
+ failed: boolean;
47
+ startTimestamp: number;
48
+ endTimestamp: number;
49
+ name: string;
50
+ inputs?: StreamNodeResolvedInputs[];
51
+ outputs?: StreamNodeOutput[];
52
+ error?: StreamNodeResultError;
53
+ duration?: number;
54
+ bypassed?: boolean;
55
+ nodeResults?: StreamSingleNodeResult[];
56
+ }
57
+ export interface StreamNodeAdditionalConnector {
58
+ name: string;
59
+ targetUuid: string;
60
+ }
@@ -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,137 @@
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
+ }
56
+ export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
57
+ hcl: HCloud;
58
+ orgName: string;
59
+ spaceName: string;
60
+ streamId: string;
61
+ secret: string;
62
+ }
63
+ export interface High5ExecutionPatchLog {
64
+ streamId: string;
65
+ nodeResults: StreamSingleNodeResult[];
66
+ }
67
+ export interface StreamRunningNodePatch {
68
+ uuid: string;
69
+ name: string;
70
+ progress: number;
71
+ message: string;
72
+ }
73
+ export interface High5ExecutionPatchStatus {
74
+ streamId: string;
75
+ state?: High5ExecutionState;
76
+ outcome?: High5ExecutionOutcome;
77
+ runningNodes?: StreamRunningNodePatch[];
78
+ message?: string;
79
+ }
80
+ export interface High5ExecutionPatch {
81
+ high5ExecutionPatchStatus: High5ExecutionPatchStatus;
82
+ high5ExecutionPatchLog: High5ExecutionPatchLog;
83
+ }
84
+ export interface High5ExecutionStatus {
85
+ _id: string;
86
+ organization: ReducedOrganization;
87
+ space: ReducedSpace;
88
+ event: ReducedEvent;
89
+ streamId: string;
90
+ streamName: string;
91
+ high5ExecutionId: string;
92
+ creator: ReducedUser;
93
+ state: High5ExecutionState;
94
+ outcome: High5ExecutionOutcome;
95
+ message: string;
96
+ runningNodes: StreamRunningNode[];
97
+ target: string;
98
+ dry: boolean;
99
+ createDate: number;
100
+ startDate: number;
101
+ endDate: number;
102
+ }
103
+ export interface High5ExecutionLog {
104
+ _id: string;
105
+ streamId: string;
106
+ payload?: High5ExecutionPayload;
107
+ high5ExecutionId: string;
108
+ nodeResults: StreamSingleNodeResult[];
109
+ createDate: number;
110
+ }
111
+ export interface High5ExecutionResponse {
112
+ high5ExecutionId: string;
113
+ statusId: string;
114
+ logId: string;
115
+ }
116
+ export interface StreamNode {
117
+ uuid: string;
118
+ name: string;
119
+ catalog: WaveCatalog;
120
+ path: string;
121
+ bypass?: boolean;
122
+ onSuccess?: string;
123
+ onFail?: string;
124
+ inputs?: StreamNodeResolvedInputs[];
125
+ outputs?: StreamNodeOutput[];
126
+ additionalConnectors?: StreamNodeAdditionalConnector[];
127
+ }
128
+ export interface High5ExecuteOnAgentRequest {
129
+ organizationName: string;
130
+ spaceName: string;
131
+ streamId: string;
132
+ secret: string;
133
+ subject: string;
134
+ }
135
+ export interface High5ExecutionCancelRequest {
136
+ secret: string;
137
+ }
@@ -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 });
@@ -0,0 +1,75 @@
1
+ import { ReducedSpace } from "../../../global";
2
+ import { ReducedOrganization } from "../../../idp/organization";
3
+ import { ReducedUser } from "../../../idp/user";
4
+ import { ReducedEvent } from "../event";
5
+ export declare enum WebhookType {
6
+ EVENT = "EVENT",
7
+ SPACE = "SPACE",
8
+ FRAME_IO = "FRAME_IO"
9
+ }
10
+ export interface SecurityHeader {
11
+ key: string;
12
+ value: string;
13
+ }
14
+ export interface EventWebhook {
15
+ eventName: string;
16
+ }
17
+ export interface SpaceWebhook {
18
+ eventPrefix: string;
19
+ jsonPathMapping: string;
20
+ }
21
+ export interface FrameIoWebhook {
22
+ eventName: string;
23
+ secret: string;
24
+ }
25
+ export interface WebhookEncryptionSettings {
26
+ hmacHeaderName: string;
27
+ hmacAlgorithm: string;
28
+ hmacSecret: string;
29
+ }
30
+ export interface NetworkSettings {
31
+ addressWhiteList?: string[];
32
+ addressBlackList?: string[];
33
+ }
34
+ export interface Webhook {
35
+ _id: string;
36
+ name: string;
37
+ relativeUrl: string;
38
+ type: WebhookType;
39
+ sub: EventWebhook | SpaceWebhook | FrameIoWebhook;
40
+ webhookEncryptionSettings?: WebhookEncryptionSettings;
41
+ securityHeaders?: SecurityHeader[];
42
+ space: ReducedSpace;
43
+ target: string;
44
+ networkSettings?: NetworkSettings;
45
+ organization: ReducedOrganization;
46
+ creator: ReducedUser;
47
+ createDate: number;
48
+ modifyDate: number;
49
+ lastTriggered?: {
50
+ timestamp: number;
51
+ statusCode: number;
52
+ error?: string;
53
+ };
54
+ }
55
+ export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings">;
56
+ export type WebhookUpdate = Partial<WebhookCreate> & {
57
+ deleteWebhookEncryptionSettings?: boolean;
58
+ deleteSecurityHeaders?: boolean;
59
+ };
60
+ export interface WebhookLog {
61
+ _id: string;
62
+ webhookId: string;
63
+ space: ReducedSpace;
64
+ organization: ReducedOrganization;
65
+ event: ReducedEvent;
66
+ executeDate: number;
67
+ sourceIp: string;
68
+ completeHeader: KeyValuePair<string>;
69
+ requestBody: unknown;
70
+ responseStatusCode: number;
71
+ responseBody: string;
72
+ }
73
+ export interface KeyValuePair<T> {
74
+ [key: string]: T;
75
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookType = void 0;
4
+ var WebhookType;
5
+ (function (WebhookType) {
6
+ WebhookType["EVENT"] = "EVENT";
7
+ WebhookType["SPACE"] = "SPACE";
8
+ WebhookType["FRAME_IO"] = "FRAME_IO";
9
+ })(WebhookType || (exports.WebhookType = WebhookType = {}));