hcloud-sdk 16.0.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/changelog.md +178 -51
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +6 -0
  4. package/lib/Hcloud.js +18 -0
  5. package/lib/helper/ValidationHelper.d.ts +74 -0
  6. package/lib/helper/ValidationHelper.js +360 -0
  7. package/lib/interfaces/auditor/index.d.ts +17 -2
  8. package/lib/interfaces/auditor/index.js +12 -0
  9. package/lib/interfaces/cosmo/asset/index.d.ts +185 -0
  10. package/lib/interfaces/cosmo/asset/index.js +82 -0
  11. package/lib/interfaces/cosmo/comment/index.d.ts +38 -0
  12. package/lib/interfaces/cosmo/comment/index.js +8 -0
  13. package/lib/interfaces/cosmo/event/index.d.ts +31 -0
  14. package/lib/interfaces/cosmo/event/index.js +17 -0
  15. package/lib/interfaces/cosmo/location/index.d.ts +4 -0
  16. package/lib/interfaces/cosmo/location/index.js +2 -0
  17. package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
  18. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  19. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  20. package/lib/interfaces/cosmo/permissions.js +58 -0
  21. package/lib/interfaces/cosmo/share/index.d.ts +28 -0
  22. package/lib/interfaces/cosmo/share/index.js +2 -0
  23. package/lib/interfaces/cosmo/space/index.d.ts +25 -0
  24. package/lib/interfaces/cosmo/space/index.js +2 -0
  25. package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
  26. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  27. package/lib/interfaces/frontend/config/index.d.ts +1 -0
  28. package/lib/interfaces/fuse/space/index.d.ts +1 -0
  29. package/lib/interfaces/global/Products.d.ts +3 -1
  30. package/lib/interfaces/global/Products.js +2 -0
  31. package/lib/interfaces/global/Views.d.ts +2 -1
  32. package/lib/interfaces/global/Views.js +1 -0
  33. package/lib/interfaces/high5/execution/index.d.ts +23 -2
  34. package/lib/interfaces/high5/execution/index.js +2 -0
  35. package/lib/interfaces/high5/index.d.ts +7 -7
  36. package/lib/interfaces/high5/index.js +7 -7
  37. package/lib/interfaces/high5/space/database/document/index.d.ts +34 -0
  38. package/lib/interfaces/high5/space/database/document/index.js +14 -0
  39. package/lib/interfaces/high5/space/database/index.d.ts +12 -0
  40. package/lib/interfaces/high5/space/database/index.js +2 -0
  41. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
  42. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +10 -2
  43. package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
  44. package/lib/interfaces/high5/space/execution/index.d.ts +56 -2
  45. package/lib/interfaces/high5/space/execution/index.js +8 -0
  46. package/lib/interfaces/high5/space/index.d.ts +2 -0
  47. package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
  48. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  49. package/lib/interfaces/high5/space/job/index.d.ts +38 -0
  50. package/lib/interfaces/high5/space/job/index.js +8 -0
  51. package/lib/interfaces/high5/space/pool/index.d.ts +5 -7
  52. package/lib/interfaces/high5/space/pool/index.js +0 -7
  53. package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
  54. package/lib/interfaces/high5/stats.d.ts +21 -0
  55. package/lib/interfaces/high5/stats.js +2 -0
  56. package/lib/interfaces/high5/wave/index.d.ts +8 -3
  57. package/lib/interfaces/idp/index.d.ts +1 -0
  58. package/lib/interfaces/idp/index.js +1 -0
  59. package/lib/interfaces/idp/oauth/index.d.ts +4 -3
  60. package/lib/interfaces/idp/organization/index.d.ts +1 -0
  61. package/lib/interfaces/idp/organization/index.js +1 -0
  62. package/lib/interfaces/idp/organization/license/index.d.ts +13 -0
  63. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  64. package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
  65. package/lib/interfaces/idp/organization/service-accounts.js +2 -0
  66. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  67. package/lib/interfaces/idp/organization/stats.js +2 -0
  68. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  69. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  70. package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
  71. package/lib/interfaces/idp/user/Message.d.ts +21 -0
  72. package/lib/interfaces/idp/user/Message.js +14 -0
  73. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  74. package/lib/interfaces/idp/user/Scopes.d.ts +8 -2
  75. package/lib/interfaces/idp/user/Scopes.js +9 -0
  76. package/lib/interfaces/idp/user/index.d.ts +2 -1
  77. package/lib/interfaces/mailer/index.d.ts +30 -1
  78. package/lib/interfaces/mailer/index.js +87 -1
  79. package/lib/interfaces/mothership/index.d.ts +3 -1
  80. package/lib/interfaces/mothership/index.js +15 -0
  81. package/lib/interfaces/mothership/stats.d.ts +4 -0
  82. package/lib/interfaces/mothership/stats.js +2 -0
  83. package/lib/interfaces/nats/index.d.ts +98 -9
  84. package/lib/interfaces/nats/index.js +136 -19
  85. package/lib/interfaces/shorts/index.d.ts +10 -0
  86. package/lib/interfaces/shorts/index.js +2 -0
  87. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  88. package/lib/service/agent/bundle/dev/index.js +12 -10
  89. package/lib/service/agent/bundle/index.d.ts +10 -4
  90. package/lib/service/agent/bundle/index.js +6 -6
  91. package/lib/service/agent/context/index.d.ts +26 -7
  92. package/lib/service/agent/context/index.js +27 -12
  93. package/lib/service/auditor/index.d.ts +8 -4
  94. package/lib/service/auditor/index.js +5 -5
  95. package/lib/service/auditor/internal/index.d.ts +27 -3
  96. package/lib/service/auditor/internal/index.js +34 -5
  97. package/lib/service/bouncer/features/index.d.ts +4 -2
  98. package/lib/service/bouncer/features/index.js +2 -2
  99. package/lib/service/cosmo/asset/index.d.ts +219 -0
  100. package/lib/service/cosmo/asset/index.js +314 -0
  101. package/lib/service/cosmo/comment/index.d.ts +122 -0
  102. package/lib/service/cosmo/comment/index.js +161 -0
  103. package/lib/service/cosmo/event/index.d.ts +23 -0
  104. package/lib/service/cosmo/event/index.js +40 -0
  105. package/lib/service/cosmo/folder/index.d.ts +27 -0
  106. package/lib/service/cosmo/folder/index.js +47 -0
  107. package/lib/service/cosmo/index.d.ts +49 -0
  108. package/lib/service/cosmo/index.js +119 -0
  109. package/lib/service/cosmo/internal/index.d.ts +7 -0
  110. package/lib/service/cosmo/internal/index.js +17 -0
  111. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  112. package/lib/service/cosmo/internal/space/index.js +34 -0
  113. package/lib/service/cosmo/location/index.d.ts +40 -0
  114. package/lib/service/cosmo/location/index.js +63 -0
  115. package/lib/service/cosmo/namespace/index.d.ts +42 -0
  116. package/lib/service/cosmo/namespace/index.js +65 -0
  117. package/lib/service/cosmo/organization/index.d.ts +47 -0
  118. package/lib/service/cosmo/organization/index.js +64 -0
  119. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  120. package/lib/service/cosmo/permissions/index.js +181 -0
  121. package/lib/service/cosmo/production/index.d.ts +26 -0
  122. package/lib/service/cosmo/production/index.js +45 -0
  123. package/lib/service/cosmo/share/index.d.ts +161 -0
  124. package/lib/service/cosmo/share/index.js +215 -0
  125. package/lib/service/cosmo/space/index.d.ts +104 -0
  126. package/lib/service/cosmo/space/index.js +146 -0
  127. package/lib/service/cosmo/tag/index.d.ts +67 -0
  128. package/lib/service/cosmo/tag/index.js +93 -0
  129. package/lib/service/dali/DaliAvatar.d.ts +12 -0
  130. package/lib/service/dali/DaliAvatar.js +20 -0
  131. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +32 -0
  132. package/lib/service/dali/avatar/DaliCosmoSpace.js +59 -0
  133. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
  134. package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
  135. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
  136. package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
  137. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
  138. package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
  139. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
  140. package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
  141. package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
  142. package/lib/service/dali/avatar/DaliOrganization.js +7 -6
  143. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +32 -0
  144. package/lib/service/dali/avatar/DaliServiceAccount.js +59 -0
  145. package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
  146. package/lib/service/dali/avatar/DaliTeam.js +7 -6
  147. package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
  148. package/lib/service/dali/avatar/DaliUser.js +7 -6
  149. package/lib/service/dali/index.d.ts +4 -5
  150. package/lib/service/dali/index.js +2 -5
  151. package/lib/service/fuse/index.d.ts +4 -2
  152. package/lib/service/fuse/index.js +2 -2
  153. package/lib/service/fuse/internal/index.d.ts +4 -2
  154. package/lib/service/fuse/internal/index.js +3 -2
  155. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
  156. package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
  157. package/lib/service/fuse/internal/space/index.d.ts +7 -3
  158. package/lib/service/fuse/internal/space/index.js +6 -4
  159. package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
  160. package/lib/service/fuse/space/cronjob/index.js +48 -50
  161. package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
  162. package/lib/service/fuse/space/cronjob/log/index.js +5 -5
  163. package/lib/service/fuse/space/index.d.ts +27 -11
  164. package/lib/service/fuse/space/index.js +19 -18
  165. package/lib/service/high5/execution/index.d.ts +4 -2
  166. package/lib/service/high5/execution/index.js +3 -2
  167. package/lib/service/high5/execution/status/index.d.ts +5 -3
  168. package/lib/service/high5/execution/status/index.js +3 -3
  169. package/lib/service/high5/index.d.ts +7 -2
  170. package/lib/service/high5/index.js +9 -2
  171. package/lib/service/high5/internal/index.d.ts +4 -2
  172. package/lib/service/high5/internal/index.js +3 -2
  173. package/lib/service/high5/internal/space/index.d.ts +10 -3
  174. package/lib/service/high5/internal/space/index.js +13 -4
  175. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  176. package/lib/service/high5/internal/space/job/index.js +17 -0
  177. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  178. package/lib/service/high5/internal/space/job/log/index.js +34 -0
  179. package/lib/service/high5/joinToken/index.d.ts +14 -6
  180. package/lib/service/high5/joinToken/index.js +10 -9
  181. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  182. package/lib/service/high5/space/database/document/array/index.js +102 -0
  183. package/lib/service/high5/space/database/document/index.d.ts +74 -0
  184. package/lib/service/high5/space/database/document/index.js +112 -0
  185. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  186. package/lib/service/high5/space/database/document/number/index.js +77 -0
  187. package/lib/service/high5/space/database/index.d.ts +65 -0
  188. package/lib/service/high5/space/database/index.js +102 -0
  189. package/lib/service/high5/space/event/index.d.ts +17 -7
  190. package/lib/service/high5/space/event/index.js +12 -11
  191. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  192. package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -3
  193. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  194. package/lib/service/high5/space/event/stream/design/index.js +7 -6
  195. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  196. package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
  197. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  198. package/lib/service/high5/space/event/stream/index.js +22 -21
  199. package/lib/service/high5/space/execution/index.d.ts +22 -7
  200. package/lib/service/high5/space/execution/index.js +23 -12
  201. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  202. package/lib/service/high5/space/execution/log/index.js +5 -5
  203. package/lib/service/high5/space/execution/status/index.d.ts +18 -7
  204. package/lib/service/high5/space/execution/status/index.js +20 -8
  205. package/lib/service/high5/space/index.d.ts +56 -18
  206. package/lib/service/high5/space/index.js +65 -27
  207. package/lib/service/high5/space/job/index.d.ts +145 -0
  208. package/lib/service/high5/space/job/index.js +201 -0
  209. package/lib/service/high5/space/job/log/index.d.ts +35 -0
  210. package/lib/service/high5/space/job/log/index.js +58 -0
  211. package/lib/service/high5/space/node/index.d.ts +20 -8
  212. package/lib/service/high5/space/node/index.js +14 -13
  213. package/lib/service/high5/space/pool/index.d.ts +27 -11
  214. package/lib/service/high5/space/pool/index.js +19 -18
  215. package/lib/service/high5/space/secret/index.d.ts +17 -7
  216. package/lib/service/high5/space/secret/index.js +12 -11
  217. package/lib/service/high5/space/stat/index.d.ts +12 -0
  218. package/lib/service/high5/space/stat/index.js +31 -0
  219. package/lib/service/high5/space/wave/index.d.ts +16 -6
  220. package/lib/service/high5/space/wave/index.js +11 -10
  221. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  222. package/lib/service/high5/space/webhook/index.js +25 -21
  223. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  224. package/lib/service/high5/space/webhook/log/index.js +2 -2
  225. package/lib/service/high5/stat/index.d.ts +11 -0
  226. package/lib/service/high5/stat/index.js +30 -0
  227. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  228. package/lib/service/high5/wave/s3/index.js +52 -24
  229. package/lib/service/idp/guest/index.d.ts +42 -0
  230. package/lib/service/idp/guest/index.js +66 -0
  231. package/lib/service/idp/index.d.ts +25 -7
  232. package/lib/service/idp/index.js +23 -12
  233. package/lib/service/idp/internal/index.d.ts +5 -3
  234. package/lib/service/idp/internal/index.js +5 -3
  235. package/lib/service/idp/oauth/index.d.ts +16 -6
  236. package/lib/service/idp/oauth/index.js +15 -15
  237. package/lib/service/idp/organization/index.d.ts +25 -5
  238. package/lib/service/idp/organization/index.js +29 -8
  239. package/lib/service/idp/organization/license/index.d.ts +7 -3
  240. package/lib/service/idp/organization/license/index.js +4 -4
  241. package/lib/service/idp/organization/member/index.d.ts +21 -8
  242. package/lib/service/idp/organization/member/index.js +16 -13
  243. package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
  244. package/lib/service/idp/organization/member/invitations/index.js +72 -59
  245. package/lib/service/idp/organization/service-accounts/index.d.ts +76 -0
  246. package/lib/service/idp/organization/service-accounts/index.js +109 -0
  247. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  248. package/lib/service/idp/organization/settings/domain/index.js +9 -8
  249. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  250. package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
  251. package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
  252. package/lib/service/idp/organization/settings/oauth/index.js +16 -15
  253. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  254. package/lib/service/idp/organization/stat/index.js +30 -0
  255. package/lib/service/idp/organization/team/index.d.ts +22 -10
  256. package/lib/service/idp/organization/team/index.js +14 -13
  257. package/lib/service/idp/registration/index.d.ts +10 -4
  258. package/lib/service/idp/registration/index.js +15 -9
  259. package/lib/service/idp/user/index.d.ts +33 -11
  260. package/lib/service/idp/user/index.js +30 -16
  261. package/lib/service/idp/user/license/index.d.ts +7 -3
  262. package/lib/service/idp/user/license/index.js +4 -4
  263. package/lib/service/idp/user/message/index.d.ts +61 -0
  264. package/lib/service/idp/user/message/index.js +92 -0
  265. package/lib/service/idp/user/password/index.d.ts +4 -2
  266. package/lib/service/idp/user/password/index.js +3 -3
  267. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  268. package/lib/service/idp/user/settings/connections/index.js +2 -2
  269. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  270. package/lib/service/idp/user/settings/general/index.js +6 -6
  271. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  272. package/lib/service/idp/user/settings/notifications/index.js +4 -4
  273. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  274. package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
  275. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  276. package/lib/service/idp/user/settings/pats/index.js +17 -15
  277. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  278. package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
  279. package/lib/service/mailer/index.d.ts +4 -2
  280. package/lib/service/mailer/index.js +2 -2
  281. package/lib/service/mailer/internal/index.d.ts +13 -5
  282. package/lib/service/mailer/internal/index.js +8 -8
  283. package/lib/service/mothership/index.d.ts +35 -13
  284. package/lib/service/mothership/index.js +32 -18
  285. package/lib/service/nats/index.js +58 -44
  286. package/lib/service/shorts/index.d.ts +18 -0
  287. package/lib/service/shorts/index.js +38 -0
  288. package/lib/service/shorts/internal/index.d.ts +72 -0
  289. package/lib/service/shorts/internal/index.js +104 -0
  290. package/lib/utils/bouncer/features/Provider.js +0 -3
  291. package/package.json +22 -24
@@ -27,7 +27,7 @@ class High5DesignSnapshots extends Base_1.default {
27
27
  * @returns Object containing an array of snapshots of the stream design and the total number of results found in the database (independent of limit and page)
28
28
  */
29
29
  search(orgName_1, spaceName_1, eventName_1, streamId_1) {
30
- return __awaiter(this, arguments, void 0, function* (orgName, spaceName, eventName, streamId, content = false, { filters, sorting, limit = 25, page = 0 }) {
30
+ return __awaiter(this, arguments, void 0, function* (orgName, spaceName, eventName, streamId, content = false, { filters, sorting, limit = 25, page = 0 }, raw) {
31
31
  const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => {
32
32
  return new searchFilter_1.SearchFilterDTO(f);
33
33
  });
@@ -37,7 +37,7 @@ class High5DesignSnapshots extends Base_1.default {
37
37
  }, {
38
38
  params: { content, limit, page },
39
39
  });
40
- return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
40
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
41
41
  });
42
42
  }
43
43
  /**
@@ -49,10 +49,10 @@ class High5DesignSnapshots extends Base_1.default {
49
49
  * @param name Name of the snapshot
50
50
  * @returns The snapshot
51
51
  */
52
- create(orgName, spaceName, eventName, streamId, name) {
52
+ create(orgName, spaceName, eventName, streamId, name, raw) {
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
54
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots`), { name });
55
- return resp.data;
55
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
56
56
  });
57
57
  }
58
58
  /**
@@ -65,10 +65,10 @@ class High5DesignSnapshots extends Base_1.default {
65
65
  * @param name Name of the snapshot
66
66
  * @returns The snapshot
67
67
  */
68
- update(orgName, spaceName, eventName, streamId, snapshotId, name) {
68
+ update(orgName, spaceName, eventName, streamId, snapshotId, name, raw) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}`), { name });
71
- return resp.data;
71
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
72
72
  });
73
73
  }
74
74
  /**
@@ -79,9 +79,10 @@ class High5DesignSnapshots extends Base_1.default {
79
79
  * @param streamId ID of the stream
80
80
  * @param snapshotId ID of the snapshot
81
81
  */
82
- delete(orgName, spaceName, eventName, streamId, snapshotId) {
82
+ delete(orgName, spaceName, eventName, streamId, snapshotId, raw) {
83
83
  return __awaiter(this, void 0, void 0, function* () {
84
- yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}`));
84
+ const resp = yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}`));
85
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
85
86
  });
86
87
  }
87
88
  /**
@@ -95,9 +96,10 @@ class High5DesignSnapshots extends Base_1.default {
95
96
  * @param streamId ID of the stream
96
97
  * @param snapshotId ID of the snapshot
97
98
  */
98
- restore(orgName, spaceName, eventName, streamId, snapshotId) {
99
+ restore(orgName, spaceName, eventName, streamId, snapshotId, raw) {
99
100
  return __awaiter(this, void 0, void 0, function* () {
100
- yield this.axios.put(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}/restore`));
101
+ const resp = yield this.axios.put(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}/restore`));
102
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
101
103
  });
102
104
  }
103
105
  getEndpoint(endpoint) {
@@ -1,4 +1,4 @@
1
- import Base from "../../../../../Base";
1
+ import Base, { MaybeRaw } from "../../../../../Base";
2
2
  import { PaginatedResponse, SearchParams } from "../../../../../interfaces/global";
3
3
  import { SingleStreamPatchOrder, Stream, StreamPatchActive, StreamPatchOrder } from "../../../../../interfaces/high5/space/event/stream";
4
4
  import { High5Design } from "./design";
@@ -16,11 +16,13 @@ export declare class High5Stream extends Base {
16
16
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
17
17
  * @returns Object containing an array of streams as well as the total number of results found in the database (independent of limit and page)
18
18
  */
19
- searchStreams({ orgName, spaceName, eventName, filters, sorting, limit, page, }: SearchParams & {
19
+ searchStreams<R extends boolean = false>({ orgName, spaceName, eventName, filters, sorting, limit, page, }: SearchParams & {
20
20
  orgName: string;
21
21
  spaceName: string;
22
22
  eventName: string;
23
- }): Promise<PaginatedResponse<Stream>>;
23
+ }, raw?: {
24
+ raw: R;
25
+ }): Promise<MaybeRaw<R, PaginatedResponse<Stream>>>;
24
26
  /**
25
27
  * Retrieves a Stream by its ID.
26
28
  * @param orgName Name of the organization
@@ -29,7 +31,9 @@ export declare class High5Stream extends Base {
29
31
  * @param streamId ID of the stream
30
32
  * @returns The requested stream
31
33
  */
32
- getStream(orgName: string, spaceName: string, eventName: string, streamId: string): Promise<Stream>;
34
+ getStream<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, streamId: string, raw?: {
35
+ raw: R;
36
+ }): Promise<MaybeRaw<R, Stream>>;
33
37
  /**
34
38
  * Creates a new Stream for the specified Event.
35
39
  * @param orgName Name of the organization
@@ -38,7 +42,9 @@ export declare class High5Stream extends Base {
38
42
  * @param name Name for the new stream
39
43
  * @returns The created stream
40
44
  */
41
- createStream(orgName: string, spaceName: string, eventName: string, name: string): Promise<Stream>;
45
+ createStream<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, name: string, raw?: {
46
+ raw: R;
47
+ }): Promise<MaybeRaw<R, Stream>>;
42
48
  /**
43
49
  * Duplicate a Stream for the specified Event.
44
50
  * @param orgName Name of the organization
@@ -48,7 +54,9 @@ export declare class High5Stream extends Base {
48
54
  * @param sourceStreamId ID for the stream to duplicate
49
55
  * @returns The created stream
50
56
  */
51
- duplicateStream(orgName: string, spaceName: string, eventName: string, name: string, sourceStreamId: string): Promise<Stream>;
57
+ duplicateStream<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, name: string, sourceStreamId: string, raw?: {
58
+ raw: R;
59
+ }): Promise<MaybeRaw<R, Stream>>;
52
60
  /**
53
61
  * Patches the order of Streams for an Event.
54
62
  * @param orgName Name of the organization
@@ -57,7 +65,9 @@ export declare class High5Stream extends Base {
57
65
  * @param StreamPatchOrder List of all event streams with their new order
58
66
  * @returns Array of updated Streams
59
67
  */
60
- patchStreamOrderMulti(orgName: string, spaceName: string, eventName: string, streamList: StreamPatchOrder[]): Promise<Stream[]>;
68
+ patchStreamOrderMulti<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, streamList: StreamPatchOrder[], raw?: {
69
+ raw: R;
70
+ }): Promise<MaybeRaw<R, Stream[]>>;
61
71
  /**
62
72
  * Activate or deactivate a stream
63
73
  * @param orgName Name of the organization
@@ -67,7 +77,9 @@ export declare class High5Stream extends Base {
67
77
  * @param StreamPatchActive Object defining if stream should be active or inactive
68
78
  * @returns Details of the updated stream
69
79
  */
70
- patchStreamState(orgName: string, spaceName: string, eventName: string, streamId: string, streamPatchActive: StreamPatchActive): Promise<Stream>;
80
+ patchStreamState<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, streamId: string, streamPatchActive: StreamPatchActive, raw?: {
81
+ raw: R;
82
+ }): Promise<MaybeRaw<R, Stream>>;
71
83
  /**
72
84
  * Moves a Stream up or down in the existing Streams order.
73
85
  * @param orgName Name of the organization
@@ -77,7 +89,9 @@ export declare class High5Stream extends Base {
77
89
  * @param SingleStreamPatchOrder Object defining if stream should move up or down
78
90
  * @returns Array of updated Streams
79
91
  */
80
- patchStreamOrder(orgName: string, spaceName: string, eventName: string, streamId: string, singleStreamPatchOrder: SingleStreamPatchOrder): Promise<Stream[]>;
92
+ patchStreamOrder<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, streamId: string, singleStreamPatchOrder: SingleStreamPatchOrder, raw?: {
93
+ raw: R;
94
+ }): Promise<MaybeRaw<R, Stream[]>>;
81
95
  /**
82
96
  * Rename a stream
83
97
  * @param orgName Name of the organization
@@ -87,7 +101,9 @@ export declare class High5Stream extends Base {
87
101
  * @param name New name of the stream
88
102
  * @returns Updated stream
89
103
  */
90
- renameStream(orgName: string, spaceName: string, eventName: string, streamId: string, name: string): Promise<Stream>;
104
+ renameStream<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, streamId: string, name: string, raw?: {
105
+ raw: R;
106
+ }): Promise<MaybeRaw<R, Stream>>;
91
107
  /**
92
108
  * Moves a Stream to another event.
93
109
  *
@@ -100,7 +116,9 @@ export declare class High5Stream extends Base {
100
116
  * @param [order] (optional) Order the stream should have in the new event
101
117
  * @returns Updated Stream
102
118
  */
103
- moveStream(orgName: string, spaceName: string, eventName: string, streamId: string, newEventName: string, name?: string, order?: number): Promise<Stream>;
119
+ moveStream<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, streamId: string, newEventName: string, name?: string, order?: number, raw?: {
120
+ raw: R;
121
+ }): Promise<MaybeRaw<R, Stream>>;
104
122
  /**
105
123
  * Deletes a Stream by its ID.
106
124
  * @param orgName Name of the organization
@@ -108,6 +126,8 @@ export declare class High5Stream extends Base {
108
126
  * @param eventName Name of the event
109
127
  * @param streamId ID of the stream
110
128
  */
111
- deleteStream(orgName: string, spaceName: string, eventName: string, streamId: string): Promise<void>;
129
+ deleteStream<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, streamId: string, raw?: {
130
+ raw: R;
131
+ }): Promise<MaybeRaw<R, void>>;
112
132
  protected getEndpoint(endpoint: string): string;
113
133
  }
@@ -32,14 +32,14 @@ class High5Stream extends Base_1.default {
32
32
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
33
33
  * @returns Object containing an array of streams as well as the total number of results found in the database (independent of limit and page)
34
34
  */
35
- searchStreams(_a) {
36
- return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, eventName, filters, sorting, limit = 25, page = 0, }) {
35
+ searchStreams(_a, raw_1) {
36
+ return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, eventName, filters, sorting, limit = 25, page = 0, }, raw) {
37
37
  const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
38
38
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/search?page=${page}&limit=${limit}`), {
39
39
  filters: filtersDTO,
40
40
  sorting: sorting,
41
41
  });
42
- return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
42
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
43
43
  });
44
44
  }
45
45
  /**
@@ -50,10 +50,10 @@ class High5Stream extends Base_1.default {
50
50
  * @param streamId ID of the stream
51
51
  * @returns The requested stream
52
52
  */
53
- getStream(orgName, spaceName, eventName, streamId) {
53
+ getStream(orgName, spaceName, eventName, streamId, raw) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
55
55
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}`));
56
- return resp.data;
56
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
57
57
  });
58
58
  }
59
59
  /**
@@ -64,12 +64,12 @@ class High5Stream extends Base_1.default {
64
64
  * @param name Name for the new stream
65
65
  * @returns The created stream
66
66
  */
67
- createStream(orgName, spaceName, eventName, name) {
67
+ createStream(orgName, spaceName, eventName, name, raw) {
68
68
  return __awaiter(this, void 0, void 0, function* () {
69
69
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams`), {
70
70
  name: name,
71
71
  });
72
- return resp.data;
72
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
73
73
  });
74
74
  }
75
75
  /**
@@ -81,13 +81,13 @@ class High5Stream extends Base_1.default {
81
81
  * @param sourceStreamId ID for the stream to duplicate
82
82
  * @returns The created stream
83
83
  */
84
- duplicateStream(orgName, spaceName, eventName, name, sourceStreamId) {
84
+ duplicateStream(orgName, spaceName, eventName, name, sourceStreamId, raw) {
85
85
  return __awaiter(this, void 0, void 0, function* () {
86
86
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams`), {
87
87
  name: name,
88
88
  streamId: sourceStreamId,
89
89
  });
90
- return resp.data;
90
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
91
91
  });
92
92
  }
93
93
  /**
@@ -98,10 +98,10 @@ class High5Stream extends Base_1.default {
98
98
  * @param StreamPatchOrder List of all event streams with their new order
99
99
  * @returns Array of updated Streams
100
100
  */
101
- patchStreamOrderMulti(orgName, spaceName, eventName, streamList) {
101
+ patchStreamOrderMulti(orgName, spaceName, eventName, streamList, raw) {
102
102
  return __awaiter(this, void 0, void 0, function* () {
103
103
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/order`), streamList);
104
- return resp.data;
104
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
105
105
  });
106
106
  }
107
107
  /**
@@ -113,10 +113,10 @@ class High5Stream extends Base_1.default {
113
113
  * @param StreamPatchActive Object defining if stream should be active or inactive
114
114
  * @returns Details of the updated stream
115
115
  */
116
- patchStreamState(orgName, spaceName, eventName, streamId, streamPatchActive) {
116
+ patchStreamState(orgName, spaceName, eventName, streamId, streamPatchActive, raw) {
117
117
  return __awaiter(this, void 0, void 0, function* () {
118
118
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/active`), streamPatchActive);
119
- return resp.data;
119
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
120
120
  });
121
121
  }
122
122
  /**
@@ -128,10 +128,10 @@ class High5Stream extends Base_1.default {
128
128
  * @param SingleStreamPatchOrder Object defining if stream should move up or down
129
129
  * @returns Array of updated Streams
130
130
  */
131
- patchStreamOrder(orgName, spaceName, eventName, streamId, singleStreamPatchOrder) {
131
+ patchStreamOrder(orgName, spaceName, eventName, streamId, singleStreamPatchOrder, raw) {
132
132
  return __awaiter(this, void 0, void 0, function* () {
133
133
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/order`), singleStreamPatchOrder);
134
- return resp.data;
134
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
135
135
  });
136
136
  }
137
137
  /**
@@ -143,10 +143,10 @@ class High5Stream extends Base_1.default {
143
143
  * @param name New name of the stream
144
144
  * @returns Updated stream
145
145
  */
146
- renameStream(orgName, spaceName, eventName, streamId, name) {
146
+ renameStream(orgName, spaceName, eventName, streamId, name, raw) {
147
147
  return __awaiter(this, void 0, void 0, function* () {
148
148
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/name`), { name });
149
- return resp.data;
149
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
150
150
  });
151
151
  }
152
152
  /**
@@ -161,10 +161,10 @@ class High5Stream extends Base_1.default {
161
161
  * @param [order] (optional) Order the stream should have in the new event
162
162
  * @returns Updated Stream
163
163
  */
164
- moveStream(orgName, spaceName, eventName, streamId, newEventName, name, order) {
164
+ moveStream(orgName, spaceName, eventName, streamId, newEventName, name, order, raw) {
165
165
  return __awaiter(this, void 0, void 0, function* () {
166
166
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/event`), { eventName: newEventName, name, order });
167
- return resp.data;
167
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
168
168
  });
169
169
  }
170
170
  /**
@@ -174,9 +174,10 @@ class High5Stream extends Base_1.default {
174
174
  * @param eventName Name of the event
175
175
  * @param streamId ID of the stream
176
176
  */
177
- deleteStream(orgName, spaceName, eventName, streamId) {
177
+ deleteStream(orgName, spaceName, eventName, streamId, raw) {
178
178
  return __awaiter(this, void 0, void 0, function* () {
179
- yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}`));
179
+ const resp = yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}`));
180
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
180
181
  });
181
182
  }
182
183
  getEndpoint(endpoint) {
@@ -1,4 +1,4 @@
1
- import Base from "../../../../Base";
1
+ import Base, { MaybeRaw } from "../../../../Base";
2
2
  import { DebugCommand } from "../../../../interfaces/high5";
3
3
  import { High5ExecutionPackage, High5ExecutionPatch, High5ExecutionRequest, High5ExecutionResponse } from "../../../../interfaces/high5/space/execution";
4
4
  import { High5SpaceExecutionLogs } from "./log/index";
@@ -14,9 +14,14 @@ export declare class High5SpaceExecute extends Base {
14
14
  * @param spaceName the spaces's name
15
15
  * @param streamId to identify the stream
16
16
  * @param high5ExecutionRequest the stream execution request, containing the data, target, wait boolean and timeout
17
+ * @param design if true the stream will execute the current design rather than the published design build
18
+ * @param debug if true the stream will execute in debug mode and consider breakpoints
19
+ * @param overrideUserAgent if true the User-Agent header will be overwritten with "hcloud-stream" to identify this execution got triggered from within a stream with the TriggerStreamAction node
17
20
  * @returns the stream result
18
21
  */
19
- executeHigh5Stream(orgName: string, spaceName: string, streamId: string, high5ExecutionRequest: High5ExecutionRequest, design?: boolean, debug?: boolean): Promise<High5ExecutionResponse>;
22
+ executeHigh5Stream<R extends boolean = false>(orgName: string, spaceName: string, streamId: string, high5ExecutionRequest: High5ExecutionRequest, design?: boolean, debug?: boolean, overrideUserAgent?: boolean, raw?: {
23
+ raw: R;
24
+ }): Promise<MaybeRaw<R, High5ExecutionResponse>>;
20
25
  /**
21
26
  * Executes all streams within an event.
22
27
  * @param orgName Name of the Organization
@@ -25,7 +30,9 @@ export declare class High5SpaceExecute extends Base {
25
30
  * @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
26
31
  * @returns Array of stream results
27
32
  */
28
- executeHigh5Event(orgName: string, spaceName: string, eventName: string, high5EventExecutionRequest: High5ExecutionRequest): Promise<High5ExecutionResponse[]>;
33
+ executeHigh5Event<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, high5EventExecutionRequest: High5ExecutionRequest, raw?: {
34
+ raw: R;
35
+ }): Promise<MaybeRaw<R, High5ExecutionResponse[]>>;
29
36
  /**
30
37
  * Requests the StreamExecutionPackage for the provided Stream, which will hold all informations required to execute the Stream.
31
38
  * @param orgName Name of the Organization
@@ -34,7 +41,9 @@ export declare class High5SpaceExecute extends Base {
34
41
  * @param secret Secret of the Stream execution object
35
42
  * @returns StreamExecutionPackage
36
43
  */
37
- getStreamExecutionPackage(orgName: string, spaceName: string, streamId: string, secret: string): Promise<High5ExecutionPackage>;
44
+ getStreamExecutionPackage<R extends boolean = false>(orgName: string, spaceName: string, streamId: string, secret: string, raw?: {
45
+ raw: R;
46
+ }): Promise<MaybeRaw<R, High5ExecutionPackage>>;
38
47
  /**
39
48
  * Publishes the stream status and logs to high5
40
49
  * @param orgName the organizations's name
@@ -44,7 +53,9 @@ export declare class High5SpaceExecute extends Base {
44
53
  * @param streamResult the result of the stream
45
54
  * @returns StreamLog
46
55
  */
47
- high5ExecutionStatusAndLogResponse(orgName: string, spaceName: string, secret: string, high5ExecutionResponse: High5ExecutionPatch): Promise<void>;
56
+ high5ExecutionStatusAndLogResponse<R extends boolean = false>(orgName: string, spaceName: string, secret: string, high5ExecutionResponse: High5ExecutionPatch, raw?: {
57
+ raw: R;
58
+ }): Promise<MaybeRaw<R, void>>;
48
59
  /**
49
60
  * Issue debug command to a stopped execution running in debug mode.
50
61
  * If the agent that is handling this execution does not acknowledge
@@ -58,7 +69,9 @@ export declare class High5SpaceExecute extends Base {
58
69
  * @param executionId ID of the execution. Obtained from High5ExecutionResponse
59
70
  * @param command DebugCommand to send
60
71
  */
61
- issueDebugCommand(orgName: string, spaceName: string, executionId: string, command: DebugCommand): Promise<void>;
72
+ issueDebugCommand<R extends boolean = false>(orgName: string, spaceName: string, executionId: string, command: DebugCommand, raw?: {
73
+ raw: R;
74
+ }): Promise<MaybeRaw<R, void>>;
62
75
  /**
63
76
  * Log an execution crash to High5
64
77
  *
@@ -70,6 +83,8 @@ export declare class High5SpaceExecute extends Base {
70
83
  * @param secret the secret of the stream execution object
71
84
  * @param message crash log
72
85
  */
73
- logExecutionCrash(orgName: string, spaceName: string, secret: string, message?: string): Promise<void>;
86
+ logExecutionCrash<R extends boolean = false>(orgName: string, spaceName: string, secret: string, message?: string, raw?: {
87
+ raw: R;
88
+ }): Promise<MaybeRaw<R, void>>;
74
89
  protected getEndpoint(endpoint: string): string;
75
90
  }
@@ -32,17 +32,23 @@ class High5SpaceExecute extends Base_1.default {
32
32
  * @param spaceName the spaces's name
33
33
  * @param streamId to identify the stream
34
34
  * @param high5ExecutionRequest the stream execution request, containing the data, target, wait boolean and timeout
35
+ * @param design if true the stream will execute the current design rather than the published design build
36
+ * @param debug if true the stream will execute in debug mode and consider breakpoints
37
+ * @param overrideUserAgent if true the User-Agent header will be overwritten with "hcloud-stream" to identify this execution got triggered from within a stream with the TriggerStreamAction node
35
38
  * @returns the stream result
36
39
  */
37
40
  executeHigh5Stream(orgName_1, spaceName_1, streamId_1, high5ExecutionRequest_1) {
38
- return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamId, high5ExecutionRequest, design = false, debug = false) {
41
+ return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamId, high5ExecutionRequest, design = false, debug = false, overrideUserAgent = false, raw) {
42
+ if (overrideUserAgent) {
43
+ this.axios.defaults.headers.common["User-Agent"] = "hcloud-stream";
44
+ }
39
45
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}`), high5ExecutionRequest, {
40
46
  params: {
41
47
  design,
42
48
  debug,
43
49
  },
44
50
  });
45
- return resp.data;
51
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
46
52
  });
47
53
  }
48
54
  /**
@@ -53,10 +59,10 @@ class High5SpaceExecute extends Base_1.default {
53
59
  * @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
54
60
  * @returns Array of stream results
55
61
  */
56
- executeHigh5Event(orgName, spaceName, eventName, high5EventExecutionRequest) {
62
+ executeHigh5Event(orgName, spaceName, eventName, high5EventExecutionRequest, raw) {
57
63
  return __awaiter(this, void 0, void 0, function* () {
58
64
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/event/name/${eventName}`), high5EventExecutionRequest);
59
- return resp.data;
65
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
60
66
  });
61
67
  }
62
68
  /**
@@ -67,10 +73,10 @@ class High5SpaceExecute extends Base_1.default {
67
73
  * @param secret Secret of the Stream execution object
68
74
  * @returns StreamExecutionPackage
69
75
  */
70
- getStreamExecutionPackage(orgName, spaceName, streamId, secret) {
76
+ getStreamExecutionPackage(orgName, spaceName, streamId, secret, raw) {
71
77
  return __awaiter(this, void 0, void 0, function* () {
72
78
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}/package/${secret}`));
73
- return resp.data;
79
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
74
80
  });
75
81
  }
76
82
  /**
@@ -82,9 +88,10 @@ class High5SpaceExecute extends Base_1.default {
82
88
  * @param streamResult the result of the stream
83
89
  * @returns StreamLog
84
90
  */
85
- high5ExecutionStatusAndLogResponse(orgName, spaceName, secret, high5ExecutionResponse) {
91
+ high5ExecutionStatusAndLogResponse(orgName, spaceName, secret, high5ExecutionResponse, raw) {
86
92
  return __awaiter(this, void 0, void 0, function* () {
87
- yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/${secret}`), high5ExecutionResponse);
93
+ const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/${secret}`), high5ExecutionResponse);
94
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
88
95
  });
89
96
  }
90
97
  /**
@@ -100,9 +107,10 @@ class High5SpaceExecute extends Base_1.default {
100
107
  * @param executionId ID of the execution. Obtained from High5ExecutionResponse
101
108
  * @param command DebugCommand to send
102
109
  */
103
- issueDebugCommand(orgName, spaceName, executionId, command) {
110
+ issueDebugCommand(orgName, spaceName, executionId, command, raw) {
104
111
  return __awaiter(this, void 0, void 0, function* () {
105
- yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/${executionId}`), command);
112
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/${executionId}/debug`), command);
113
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
106
114
  });
107
115
  }
108
116
  /**
@@ -116,9 +124,12 @@ class High5SpaceExecute extends Base_1.default {
116
124
  * @param secret the secret of the stream execution object
117
125
  * @param message crash log
118
126
  */
119
- logExecutionCrash(orgName, spaceName, secret, message) {
127
+ logExecutionCrash(orgName, spaceName, secret, message, raw) {
120
128
  return __awaiter(this, void 0, void 0, function* () {
121
- yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/${secret}/crash`), { message });
129
+ const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/${secret}/crash`), {
130
+ message,
131
+ });
132
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
122
133
  });
123
134
  }
124
135
  getEndpoint(endpoint) {
@@ -1,4 +1,4 @@
1
- import Base from "../../../../../Base";
1
+ import Base, { MaybeRaw } from "../../../../../Base";
2
2
  import { PaginatedResponse, SearchParams } from "../../../../../interfaces/global";
3
3
  import { High5ExecutionLog } from "../../../../../interfaces/high5/space/execution";
4
4
  export declare class High5SpaceExecutionLogs extends Base {
@@ -12,11 +12,13 @@ export declare class High5SpaceExecutionLogs extends Base {
12
12
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
13
13
  * @returns Object containing an array of Stream execution logs as well as the total number of results
14
14
  */
15
- searchExecutionLogs({ orgName, spaceName, payload, filters, sorting, limit, page, }: SearchParams & {
15
+ searchExecutionLogs<R extends boolean = false>({ orgName, spaceName, payload, filters, sorting, limit, page, }: SearchParams & {
16
16
  orgName: string;
17
17
  spaceName: string;
18
18
  payload?: boolean;
19
- }): Promise<PaginatedResponse<High5ExecutionLog>>;
19
+ }, raw?: {
20
+ raw: R;
21
+ }): Promise<MaybeRaw<R, PaginatedResponse<High5ExecutionLog>>>;
20
22
  /**
21
23
  * Retrieves the execution log of a stream.
22
24
  * @param orgName Name of the Organization
@@ -24,6 +26,8 @@ export declare class High5SpaceExecutionLogs extends Base {
24
26
  * @param streamLogId ID of the stream log
25
27
  * @returns Stream execution log
26
28
  */
27
- getStreamExecutionLog(orgName: string, spaceName: string, streamLogId: string, payload?: boolean): Promise<High5ExecutionLog>;
29
+ getStreamExecutionLog<R extends boolean = false>(orgName: string, spaceName: string, streamLogId: string, payload?: boolean, raw?: {
30
+ raw: R;
31
+ }): Promise<MaybeRaw<R, High5ExecutionLog>>;
28
32
  protected getEndpoint(endpoint: string): string;
29
33
  }
@@ -24,14 +24,14 @@ class High5SpaceExecutionLogs extends Base_1.default {
24
24
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
25
25
  * @returns Object containing an array of Stream execution logs as well as the total number of results
26
26
  */
27
- searchExecutionLogs(_a) {
28
- return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, payload = false, filters, sorting, limit = 25, page = 0, }) {
27
+ searchExecutionLogs(_a, raw_1) {
28
+ return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, payload = false, filters, sorting, limit = 25, page = 0, }, raw) {
29
29
  const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
30
30
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/logs/search?page=${page}&limit=${limit}&payload=${payload}`), {
31
31
  filters: filtersDTO,
32
32
  sorting: sorting,
33
33
  });
34
- return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
34
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
35
35
  });
36
36
  }
37
37
  /**
@@ -42,13 +42,13 @@ class High5SpaceExecutionLogs extends Base_1.default {
42
42
  * @returns Stream execution log
43
43
  */
44
44
  getStreamExecutionLog(orgName_1, spaceName_1, streamLogId_1) {
45
- return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamLogId, payload = false) {
45
+ return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamLogId, payload = false, raw) {
46
46
  const resp = yield this.axios
47
47
  .get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/logs/${streamLogId}?payload=${payload}`))
48
48
  .catch((err) => {
49
49
  throw err;
50
50
  });
51
- return resp.data;
51
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
52
52
  });
53
53
  }
54
54
  getEndpoint(endpoint) {
@@ -1,16 +1,27 @@
1
1
  import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../../../Base";
3
- import { PaginatedResponse } from "../../../../../interfaces/global";
4
- import { High5ExecutionStatus } from "../../../../../interfaces/high5/space/execution";
2
+ import Base, { MaybeRaw, Options } from "../../../../../Base";
3
+ import { ExecutionTree, High5ExecutionStatus } from "../../../../../interfaces/high5/space/execution";
5
4
  export declare class High5SpaceExecutionStates extends Base {
6
5
  constructor(options: Options, axios: AxiosInstance);
7
6
  /**
8
- * Retrieves all stream execution logs for a given stream.
7
+ * Retrieves an execution status by ID.
9
8
  * @param orgName Name of the Organization
10
9
  * @param spaceName Name of the Space
11
- * @param streamStatusId ID of the stream status
12
- * @returns Object containing an array of Stream execution logs as well as the total number of results
10
+ * @param executionStatusId ID of the execution status
11
+ * @returns High5ExecutionStatus
13
12
  */
14
- getStreamExecutionStatus(orgName: string, spaceName: string, streamStatusId: string, limit?: number, page?: number): Promise<PaginatedResponse<High5ExecutionStatus>>;
13
+ getStreamExecutionStatus<R extends boolean = false>(orgName: string, spaceName: string, executionStatusId: string, raw?: {
14
+ raw: R;
15
+ }): Promise<MaybeRaw<R, High5ExecutionStatus>>;
16
+ /**
17
+ * Retrieves the complete executionTree the stream execution belongs to. An executionTree represents the hierarchical structure of stream executions initiated by a 'Trigger Stream' node.
18
+ * @param orgName Name of the Organization
19
+ * @param spaceName Name of the Space
20
+ * @param executionStatusId ID of the execution status
21
+ * @returns ExecutionTree
22
+ */
23
+ getExecutionTree<R extends boolean = false>(orgName: string, spaceName: string, executionStatusId: string, raw?: {
24
+ raw: R;
25
+ }): Promise<MaybeRaw<R, ExecutionTree>>;
15
26
  protected getEndpoint(endpoint: string): string;
16
27
  }
@@ -11,22 +11,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.High5SpaceExecutionStates = void 0;
13
13
  const Base_1 = require("../../../../../Base");
14
- const paginatedResponseHelper_1 = require("../../../../../helper/paginatedResponseHelper");
15
14
  class High5SpaceExecutionStates extends Base_1.default {
16
15
  constructor(options, axios) {
17
16
  super(options, axios);
18
17
  }
19
18
  /**
20
- * Retrieves all stream execution logs for a given stream.
19
+ * Retrieves an execution status by ID.
21
20
  * @param orgName Name of the Organization
22
21
  * @param spaceName Name of the Space
23
- * @param streamStatusId ID of the stream status
24
- * @returns Object containing an array of Stream execution logs as well as the total number of results
22
+ * @param executionStatusId ID of the execution status
23
+ * @returns High5ExecutionStatus
25
24
  */
26
- getStreamExecutionStatus(orgName_1, spaceName_1, streamStatusId_1) {
27
- return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamStatusId, limit = 25, page = 0) {
28
- const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/status/${streamStatusId}?page=${page}&limit=${limit}`));
29
- return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
25
+ getStreamExecutionStatus(orgName, spaceName, executionStatusId, raw) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/status/${executionStatusId}`));
28
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
29
+ });
30
+ }
31
+ /**
32
+ * Retrieves the complete executionTree the stream execution belongs to. An executionTree represents the hierarchical structure of stream executions initiated by a 'Trigger Stream' node.
33
+ * @param orgName Name of the Organization
34
+ * @param spaceName Name of the Space
35
+ * @param executionStatusId ID of the execution status
36
+ * @returns ExecutionTree
37
+ */
38
+ getExecutionTree(orgName, spaceName, executionStatusId, raw) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/executionTree/${executionStatusId}`));
41
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
30
42
  });
31
43
  }
32
44
  getEndpoint(endpoint) {