hcloud-sdk 17.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 (275) hide show
  1. package/changelog.md +176 -76
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +6 -3
  4. package/lib/Hcloud.js +16 -5
  5. package/lib/helper/ValidationHelper.d.ts +10 -2
  6. package/lib/helper/ValidationHelper.js +55 -7
  7. package/lib/interfaces/auditor/index.d.ts +13 -2
  8. package/lib/interfaces/auditor/index.js +9 -1
  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/namespace/index.d.ts +9 -0
  17. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  18. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  19. package/lib/interfaces/cosmo/permissions.js +58 -0
  20. package/lib/interfaces/cosmo/share/index.d.ts +28 -0
  21. package/lib/interfaces/cosmo/share/index.js +2 -0
  22. package/lib/interfaces/cosmo/space/index.d.ts +25 -0
  23. package/lib/interfaces/cosmo/space/index.js +2 -0
  24. package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
  25. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  26. package/lib/interfaces/global/Products.d.ts +2 -2
  27. package/lib/interfaces/global/Products.js +1 -1
  28. package/lib/interfaces/high5/index.d.ts +7 -7
  29. package/lib/interfaces/high5/index.js +7 -7
  30. package/lib/interfaces/{friday → high5}/space/database/document/index.d.ts +1 -1
  31. package/lib/interfaces/{friday → high5}/space/database/document/index.js +2 -1
  32. package/lib/interfaces/high5/space/database/index.js +2 -0
  33. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
  34. package/lib/interfaces/high5/space/execution/index.d.ts +2 -1
  35. package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
  36. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  37. package/lib/interfaces/high5/space/job/index.d.ts +38 -0
  38. package/lib/interfaces/high5/space/job/index.js +8 -0
  39. package/lib/interfaces/high5/stats.d.ts +21 -0
  40. package/lib/interfaces/high5/stats.js +2 -0
  41. package/lib/interfaces/idp/oauth/index.d.ts +4 -3
  42. package/lib/interfaces/idp/organization/index.d.ts +1 -0
  43. package/lib/interfaces/idp/organization/index.js +1 -0
  44. package/lib/interfaces/idp/organization/license/index.d.ts +13 -11
  45. package/lib/interfaces/idp/organization/member/index.d.ts +1 -0
  46. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  47. package/lib/interfaces/idp/organization/stats.js +2 -0
  48. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  49. package/lib/interfaces/idp/user/Message.d.ts +21 -0
  50. package/lib/interfaces/idp/user/Message.js +14 -0
  51. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  52. package/lib/interfaces/idp/user/Scopes.d.ts +1 -7
  53. package/lib/interfaces/idp/user/Scopes.js +0 -9
  54. package/lib/interfaces/idp/user/index.d.ts +2 -1
  55. package/lib/interfaces/mailer/index.d.ts +30 -1
  56. package/lib/interfaces/mailer/index.js +87 -1
  57. package/lib/interfaces/mothership/index.d.ts +3 -1
  58. package/lib/interfaces/mothership/index.js +15 -0
  59. package/lib/interfaces/mothership/stats.d.ts +4 -0
  60. package/lib/interfaces/mothership/stats.js +2 -0
  61. package/lib/interfaces/nats/index.d.ts +54 -24
  62. package/lib/interfaces/nats/index.js +87 -58
  63. package/lib/interfaces/shorts/index.d.ts +10 -0
  64. package/lib/interfaces/shorts/index.js +2 -0
  65. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  66. package/lib/service/agent/bundle/dev/index.js +12 -10
  67. package/lib/service/agent/bundle/index.d.ts +10 -4
  68. package/lib/service/agent/bundle/index.js +6 -6
  69. package/lib/service/agent/context/index.d.ts +22 -8
  70. package/lib/service/agent/context/index.js +15 -14
  71. package/lib/service/auditor/index.d.ts +8 -4
  72. package/lib/service/auditor/index.js +5 -5
  73. package/lib/service/auditor/internal/index.d.ts +27 -3
  74. package/lib/service/auditor/internal/index.js +34 -5
  75. package/lib/service/bouncer/features/index.d.ts +4 -2
  76. package/lib/service/bouncer/features/index.js +2 -2
  77. package/lib/service/cosmo/asset/index.d.ts +219 -0
  78. package/lib/service/cosmo/asset/index.js +314 -0
  79. package/lib/service/cosmo/comment/index.d.ts +122 -0
  80. package/lib/service/cosmo/comment/index.js +161 -0
  81. package/lib/service/cosmo/event/index.d.ts +23 -0
  82. package/lib/service/cosmo/event/index.js +40 -0
  83. package/lib/service/cosmo/folder/index.d.ts +27 -0
  84. package/lib/service/cosmo/folder/index.js +47 -0
  85. package/lib/service/cosmo/index.d.ts +49 -0
  86. package/lib/service/cosmo/index.js +119 -0
  87. package/lib/service/cosmo/internal/index.d.ts +7 -0
  88. package/lib/service/cosmo/internal/index.js +17 -0
  89. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  90. package/lib/service/cosmo/internal/space/index.js +34 -0
  91. package/lib/service/cosmo/location/index.d.ts +40 -0
  92. package/lib/service/cosmo/location/index.js +63 -0
  93. package/lib/service/cosmo/namespace/index.d.ts +42 -0
  94. package/lib/service/cosmo/namespace/index.js +65 -0
  95. package/lib/service/cosmo/organization/index.d.ts +47 -0
  96. package/lib/service/cosmo/organization/index.js +64 -0
  97. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  98. package/lib/service/cosmo/permissions/index.js +181 -0
  99. package/lib/service/cosmo/production/index.d.ts +26 -0
  100. package/lib/service/cosmo/production/index.js +45 -0
  101. package/lib/service/cosmo/share/index.d.ts +161 -0
  102. package/lib/service/cosmo/share/index.js +215 -0
  103. package/lib/service/cosmo/space/index.d.ts +104 -0
  104. package/lib/service/cosmo/space/index.js +146 -0
  105. package/lib/service/cosmo/tag/index.d.ts +67 -0
  106. package/lib/service/cosmo/tag/index.js +93 -0
  107. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +10 -4
  108. package/lib/service/dali/avatar/DaliCosmoSpace.js +8 -7
  109. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
  110. package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
  111. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
  112. package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
  113. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
  114. package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
  115. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
  116. package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
  117. package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
  118. package/lib/service/dali/avatar/DaliOrganization.js +7 -6
  119. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +10 -4
  120. package/lib/service/dali/avatar/DaliServiceAccount.js +7 -6
  121. package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
  122. package/lib/service/dali/avatar/DaliTeam.js +7 -6
  123. package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
  124. package/lib/service/dali/avatar/DaliUser.js +7 -6
  125. package/lib/service/dali/index.d.ts +4 -5
  126. package/lib/service/dali/index.js +2 -5
  127. package/lib/service/fuse/index.d.ts +4 -2
  128. package/lib/service/fuse/index.js +2 -2
  129. package/lib/service/fuse/internal/index.d.ts +4 -2
  130. package/lib/service/fuse/internal/index.js +3 -2
  131. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
  132. package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
  133. package/lib/service/fuse/internal/space/index.d.ts +7 -3
  134. package/lib/service/fuse/internal/space/index.js +6 -4
  135. package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
  136. package/lib/service/fuse/space/cronjob/index.js +48 -50
  137. package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
  138. package/lib/service/fuse/space/cronjob/log/index.js +5 -5
  139. package/lib/service/fuse/space/index.d.ts +27 -11
  140. package/lib/service/fuse/space/index.js +19 -18
  141. package/lib/service/high5/execution/index.d.ts +4 -2
  142. package/lib/service/high5/execution/index.js +3 -2
  143. package/lib/service/high5/execution/status/index.d.ts +5 -3
  144. package/lib/service/high5/execution/status/index.js +3 -3
  145. package/lib/service/high5/index.d.ts +7 -2
  146. package/lib/service/high5/index.js +9 -2
  147. package/lib/service/high5/internal/index.d.ts +4 -2
  148. package/lib/service/high5/internal/index.js +3 -2
  149. package/lib/service/high5/internal/space/index.d.ts +10 -3
  150. package/lib/service/high5/internal/space/index.js +13 -4
  151. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  152. package/lib/service/high5/internal/space/job/index.js +17 -0
  153. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  154. package/lib/service/high5/internal/space/job/log/index.js +34 -0
  155. package/lib/service/high5/joinToken/index.d.ts +14 -6
  156. package/lib/service/high5/joinToken/index.js +10 -9
  157. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  158. package/lib/service/high5/space/database/document/array/index.js +102 -0
  159. package/lib/service/{friday → high5}/space/database/document/index.d.ts +26 -10
  160. package/lib/service/{friday → high5}/space/database/document/index.js +31 -16
  161. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  162. package/lib/service/high5/space/database/document/number/index.js +77 -0
  163. package/lib/service/{friday → high5}/space/database/index.d.ts +22 -12
  164. package/lib/service/{friday → high5}/space/database/index.js +18 -17
  165. package/lib/service/high5/space/event/index.d.ts +17 -7
  166. package/lib/service/high5/space/event/index.js +12 -11
  167. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  168. package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -2
  169. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  170. package/lib/service/high5/space/event/stream/design/index.js +7 -6
  171. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  172. package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
  173. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  174. package/lib/service/high5/space/event/stream/index.js +22 -21
  175. package/lib/service/high5/space/execution/index.d.ts +19 -7
  176. package/lib/service/high5/space/execution/index.js +17 -12
  177. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  178. package/lib/service/high5/space/execution/log/index.js +5 -5
  179. package/lib/service/high5/space/execution/status/index.d.ts +7 -3
  180. package/lib/service/high5/space/execution/status/index.js +4 -4
  181. package/lib/service/high5/space/index.d.ts +43 -14
  182. package/lib/service/high5/space/index.js +45 -23
  183. package/lib/service/high5/space/job/index.d.ts +145 -0
  184. package/lib/service/high5/space/job/index.js +201 -0
  185. package/lib/service/high5/space/job/log/index.d.ts +35 -0
  186. package/lib/service/high5/space/job/log/index.js +58 -0
  187. package/lib/service/high5/space/node/index.d.ts +20 -8
  188. package/lib/service/high5/space/node/index.js +14 -13
  189. package/lib/service/high5/space/pool/index.d.ts +27 -11
  190. package/lib/service/high5/space/pool/index.js +19 -18
  191. package/lib/service/high5/space/secret/index.d.ts +17 -7
  192. package/lib/service/high5/space/secret/index.js +12 -11
  193. package/lib/service/high5/space/stat/index.d.ts +12 -0
  194. package/lib/service/high5/space/stat/index.js +31 -0
  195. package/lib/service/high5/space/wave/index.d.ts +16 -6
  196. package/lib/service/high5/space/wave/index.js +11 -10
  197. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  198. package/lib/service/high5/space/webhook/index.js +25 -21
  199. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  200. package/lib/service/high5/space/webhook/log/index.js +2 -2
  201. package/lib/service/high5/stat/index.d.ts +11 -0
  202. package/lib/service/high5/stat/index.js +30 -0
  203. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  204. package/lib/service/high5/wave/s3/index.js +42 -21
  205. package/lib/service/idp/guest/index.d.ts +42 -0
  206. package/lib/service/idp/guest/index.js +66 -0
  207. package/lib/service/idp/index.d.ts +25 -7
  208. package/lib/service/idp/index.js +23 -12
  209. package/lib/service/idp/internal/index.d.ts +5 -3
  210. package/lib/service/idp/internal/index.js +5 -3
  211. package/lib/service/idp/oauth/index.d.ts +16 -6
  212. package/lib/service/idp/oauth/index.js +15 -15
  213. package/lib/service/idp/organization/index.d.ts +19 -5
  214. package/lib/service/idp/organization/index.js +19 -8
  215. package/lib/service/idp/organization/license/index.d.ts +7 -3
  216. package/lib/service/idp/organization/license/index.js +4 -4
  217. package/lib/service/idp/organization/member/index.d.ts +20 -8
  218. package/lib/service/idp/organization/member/index.js +15 -13
  219. package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
  220. package/lib/service/idp/organization/member/invitations/index.js +72 -59
  221. package/lib/service/idp/organization/service-accounts/index.d.ts +20 -8
  222. package/lib/service/idp/organization/service-accounts/index.js +13 -12
  223. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  224. package/lib/service/idp/organization/settings/domain/index.js +9 -8
  225. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  226. package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
  227. package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
  228. package/lib/service/idp/organization/settings/oauth/index.js +16 -15
  229. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  230. package/lib/service/idp/organization/stat/index.js +30 -0
  231. package/lib/service/idp/organization/team/index.d.ts +22 -10
  232. package/lib/service/idp/organization/team/index.js +14 -13
  233. package/lib/service/idp/registration/index.d.ts +10 -4
  234. package/lib/service/idp/registration/index.js +15 -9
  235. package/lib/service/idp/user/index.d.ts +33 -11
  236. package/lib/service/idp/user/index.js +29 -16
  237. package/lib/service/idp/user/license/index.d.ts +7 -3
  238. package/lib/service/idp/user/license/index.js +4 -4
  239. package/lib/service/idp/user/message/index.d.ts +61 -0
  240. package/lib/service/idp/user/message/index.js +92 -0
  241. package/lib/service/idp/user/password/index.d.ts +4 -2
  242. package/lib/service/idp/user/password/index.js +2 -2
  243. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  244. package/lib/service/idp/user/settings/connections/index.js +2 -2
  245. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  246. package/lib/service/idp/user/settings/general/index.js +6 -6
  247. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  248. package/lib/service/idp/user/settings/notifications/index.js +4 -4
  249. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  250. package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
  251. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  252. package/lib/service/idp/user/settings/pats/index.js +17 -15
  253. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  254. package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
  255. package/lib/service/mailer/index.d.ts +4 -2
  256. package/lib/service/mailer/index.js +2 -2
  257. package/lib/service/mailer/internal/index.d.ts +13 -5
  258. package/lib/service/mailer/internal/index.js +8 -8
  259. package/lib/service/mothership/index.d.ts +35 -13
  260. package/lib/service/mothership/index.js +32 -17
  261. package/lib/service/nats/index.js +58 -43
  262. package/lib/service/shorts/index.d.ts +18 -0
  263. package/lib/service/{friday → shorts}/index.js +13 -10
  264. package/lib/service/shorts/internal/index.d.ts +72 -0
  265. package/lib/service/shorts/internal/index.js +104 -0
  266. package/package.json +1 -1
  267. package/lib/interfaces/friday/index.d.ts +0 -3
  268. package/lib/interfaces/friday/index.js +0 -19
  269. package/lib/interfaces/friday/space/index.d.ts +0 -21
  270. package/lib/interfaces/friday/space/index.js +0 -11
  271. package/lib/service/friday/index.d.ts +0 -13
  272. package/lib/service/friday/space/index.d.ts +0 -81
  273. package/lib/service/friday/space/index.js +0 -150
  274. /package/lib/interfaces/{friday/space/database → cosmo/location}/index.js +0 -0
  275. /package/lib/interfaces/{friday → high5}/space/database/index.d.ts +0 -0
@@ -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";
@@ -19,7 +19,9 @@ export declare class High5SpaceExecute extends Base {
19
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
20
20
  * @returns the stream result
21
21
  */
22
- executeHigh5Stream(orgName: string, spaceName: string, streamId: string, high5ExecutionRequest: High5ExecutionRequest, design?: boolean, debug?: boolean, overrideUserAgent?: 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>>;
23
25
  /**
24
26
  * Executes all streams within an event.
25
27
  * @param orgName Name of the Organization
@@ -28,7 +30,9 @@ export declare class High5SpaceExecute extends Base {
28
30
  * @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
29
31
  * @returns Array of stream results
30
32
  */
31
- 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[]>>;
32
36
  /**
33
37
  * Requests the StreamExecutionPackage for the provided Stream, which will hold all informations required to execute the Stream.
34
38
  * @param orgName Name of the Organization
@@ -37,7 +41,9 @@ export declare class High5SpaceExecute extends Base {
37
41
  * @param secret Secret of the Stream execution object
38
42
  * @returns StreamExecutionPackage
39
43
  */
40
- 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>>;
41
47
  /**
42
48
  * Publishes the stream status and logs to high5
43
49
  * @param orgName the organizations's name
@@ -47,7 +53,9 @@ export declare class High5SpaceExecute extends Base {
47
53
  * @param streamResult the result of the stream
48
54
  * @returns StreamLog
49
55
  */
50
- 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>>;
51
59
  /**
52
60
  * Issue debug command to a stopped execution running in debug mode.
53
61
  * If the agent that is handling this execution does not acknowledge
@@ -61,7 +69,9 @@ export declare class High5SpaceExecute extends Base {
61
69
  * @param executionId ID of the execution. Obtained from High5ExecutionResponse
62
70
  * @param command DebugCommand to send
63
71
  */
64
- 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>>;
65
75
  /**
66
76
  * Log an execution crash to High5
67
77
  *
@@ -73,6 +83,8 @@ export declare class High5SpaceExecute extends Base {
73
83
  * @param secret the secret of the stream execution object
74
84
  * @param message crash log
75
85
  */
76
- 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>>;
77
89
  protected getEndpoint(endpoint: string): string;
78
90
  }
@@ -38,7 +38,7 @@ class High5SpaceExecute extends Base_1.default {
38
38
  * @returns the stream result
39
39
  */
40
40
  executeHigh5Stream(orgName_1, spaceName_1, streamId_1, high5ExecutionRequest_1) {
41
- return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamId, high5ExecutionRequest, design = false, debug = false, overrideUserAgent = false) {
41
+ return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamId, high5ExecutionRequest, design = false, debug = false, overrideUserAgent = false, raw) {
42
42
  if (overrideUserAgent) {
43
43
  this.axios.defaults.headers.common["User-Agent"] = "hcloud-stream";
44
44
  }
@@ -48,7 +48,7 @@ class High5SpaceExecute extends Base_1.default {
48
48
  debug,
49
49
  },
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
  /**
@@ -59,10 +59,10 @@ class High5SpaceExecute extends Base_1.default {
59
59
  * @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
60
60
  * @returns Array of stream results
61
61
  */
62
- executeHigh5Event(orgName, spaceName, eventName, high5EventExecutionRequest) {
62
+ executeHigh5Event(orgName, spaceName, eventName, high5EventExecutionRequest, raw) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
64
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/event/name/${eventName}`), high5EventExecutionRequest);
65
- return resp.data;
65
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
66
66
  });
67
67
  }
68
68
  /**
@@ -73,10 +73,10 @@ class High5SpaceExecute extends Base_1.default {
73
73
  * @param secret Secret of the Stream execution object
74
74
  * @returns StreamExecutionPackage
75
75
  */
76
- getStreamExecutionPackage(orgName, spaceName, streamId, secret) {
76
+ getStreamExecutionPackage(orgName, spaceName, streamId, secret, raw) {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}/package/${secret}`));
79
- return resp.data;
79
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
80
80
  });
81
81
  }
82
82
  /**
@@ -88,9 +88,10 @@ class High5SpaceExecute extends Base_1.default {
88
88
  * @param streamResult the result of the stream
89
89
  * @returns StreamLog
90
90
  */
91
- high5ExecutionStatusAndLogResponse(orgName, spaceName, secret, high5ExecutionResponse) {
91
+ high5ExecutionStatusAndLogResponse(orgName, spaceName, secret, high5ExecutionResponse, raw) {
92
92
  return __awaiter(this, void 0, void 0, function* () {
93
- 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);
94
95
  });
95
96
  }
96
97
  /**
@@ -106,9 +107,10 @@ class High5SpaceExecute extends Base_1.default {
106
107
  * @param executionId ID of the execution. Obtained from High5ExecutionResponse
107
108
  * @param command DebugCommand to send
108
109
  */
109
- issueDebugCommand(orgName, spaceName, executionId, command) {
110
+ issueDebugCommand(orgName, spaceName, executionId, command, raw) {
110
111
  return __awaiter(this, void 0, void 0, function* () {
111
- yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/${executionId}/debug`), 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);
112
114
  });
113
115
  }
114
116
  /**
@@ -122,9 +124,12 @@ class High5SpaceExecute extends Base_1.default {
122
124
  * @param secret the secret of the stream execution object
123
125
  * @param message crash log
124
126
  */
125
- logExecutionCrash(orgName, spaceName, secret, message) {
127
+ logExecutionCrash(orgName, spaceName, secret, message, raw) {
126
128
  return __awaiter(this, void 0, void 0, function* () {
127
- 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);
128
133
  });
129
134
  }
130
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,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../../../Base";
2
+ import Base, { MaybeRaw, Options } from "../../../../../Base";
3
3
  import { ExecutionTree, High5ExecutionStatus } from "../../../../../interfaces/high5/space/execution";
4
4
  export declare class High5SpaceExecutionStates extends Base {
5
5
  constructor(options: Options, axios: AxiosInstance);
@@ -10,7 +10,9 @@ export declare class High5SpaceExecutionStates extends Base {
10
10
  * @param executionStatusId ID of the execution status
11
11
  * @returns High5ExecutionStatus
12
12
  */
13
- getStreamExecutionStatus(orgName: string, spaceName: string, executionStatusId: string): Promise<High5ExecutionStatus>;
13
+ getStreamExecutionStatus<R extends boolean = false>(orgName: string, spaceName: string, executionStatusId: string, raw?: {
14
+ raw: R;
15
+ }): Promise<MaybeRaw<R, High5ExecutionStatus>>;
14
16
  /**
15
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.
16
18
  * @param orgName Name of the Organization
@@ -18,6 +20,8 @@ export declare class High5SpaceExecutionStates extends Base {
18
20
  * @param executionStatusId ID of the execution status
19
21
  * @returns ExecutionTree
20
22
  */
21
- getExecutionTree(orgName: string, spaceName: string, executionStatusId: string): Promise<ExecutionTree>;
23
+ getExecutionTree<R extends boolean = false>(orgName: string, spaceName: string, executionStatusId: string, raw?: {
24
+ raw: R;
25
+ }): Promise<MaybeRaw<R, ExecutionTree>>;
22
26
  protected getEndpoint(endpoint: string): string;
23
27
  }
@@ -22,10 +22,10 @@ class High5SpaceExecutionStates extends Base_1.default {
22
22
  * @param executionStatusId ID of the execution status
23
23
  * @returns High5ExecutionStatus
24
24
  */
25
- getStreamExecutionStatus(orgName, spaceName, executionStatusId) {
25
+ getStreamExecutionStatus(orgName, spaceName, executionStatusId, raw) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
27
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/status/${executionStatusId}`));
28
- return resp.data;
28
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
29
29
  });
30
30
  }
31
31
  /**
@@ -35,10 +35,10 @@ class High5SpaceExecutionStates extends Base_1.default {
35
35
  * @param executionStatusId ID of the execution status
36
36
  * @returns ExecutionTree
37
37
  */
38
- getExecutionTree(orgName, spaceName, executionStatusId) {
38
+ getExecutionTree(orgName, spaceName, executionStatusId, raw) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/executionTree/${executionStatusId}`));
41
- return resp.data;
41
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
42
42
  });
43
43
  }
44
44
  getEndpoint(endpoint) {
@@ -1,12 +1,15 @@
1
- import Base from "../../../Base";
1
+ import Base, { MaybeRaw } from "../../../Base";
2
2
  import { PaginatedResponse, SearchParams } from "../../../interfaces/global";
3
3
  import { Stream } from "../../../interfaces/high5";
4
4
  import { High5Space as Space, High5SpaceEntityPermission as SpaceEntityPermission, High5SpacePermission as SpacePermission } from "../../../interfaces/high5/space";
5
+ import { High5Database } from "./database";
5
6
  import { High5Event } from "./event";
6
7
  import { High5SpaceExecute } from "./execution";
8
+ import { High5Job } from "./job";
7
9
  import High5Node from "./node";
8
10
  import High5Pool from "./pool";
9
11
  import High5Secret from "./secret";
12
+ import { High5SpaceStat } from "./stat";
10
13
  import High5Wave from "./wave";
11
14
  import { High5Webhook } from "./webhook";
12
15
  export declare class High5Space extends Base {
@@ -24,6 +27,12 @@ export declare class High5Space extends Base {
24
27
  private _wave?;
25
28
  get node(): High5Node;
26
29
  private _node?;
30
+ get database(): High5Database;
31
+ private _database?;
32
+ get job(): High5Job;
33
+ private _job?;
34
+ get stat(): High5SpaceStat;
35
+ private _stat?;
27
36
  /**
28
37
  * Retrieves all High5 Spaces of the specified Organization matching the search filter(s). Will return all Spaces if no search filter is provided.
29
38
  * @param orgName Name of the organization
@@ -33,9 +42,11 @@ export declare class High5Space extends Base {
33
42
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
34
43
  * @returns Object containing an array of High5 Spaces and the total number of results found in the database (independent of limit and page)
35
44
  */
36
- searchSpaces({ orgName, filters, sorting, limit, page }: SearchParams & {
45
+ searchSpaces<R extends boolean = false>({ orgName, filters, sorting, limit, page }: SearchParams & {
37
46
  orgName: string;
38
- }): Promise<PaginatedResponse<Space>>;
47
+ }, raw?: {
48
+ raw: R;
49
+ }): Promise<MaybeRaw<R, PaginatedResponse<Space>>>;
39
50
  /**
40
51
  * Retrieves permissions of a space matching the search filter(s). Will return all permissions of the space if no search filter is provided.
41
52
  * @param orgName Name of the organization
@@ -46,17 +57,21 @@ export declare class High5Space extends Base {
46
57
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
47
58
  * @returns Object containing an array of High5 Space Permissions and the total number of results found in the database (independent of limit and page)
48
59
  */
49
- searchSpacePermissions({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
60
+ searchSpacePermissions<R extends boolean = false>({ orgName, spaceName, filters, sorting, limit, page }: SearchParams & {
50
61
  orgName: string;
51
62
  spaceName: string;
52
- }): Promise<PaginatedResponse<SpaceEntityPermission>>;
63
+ }, raw?: {
64
+ raw: R;
65
+ }): Promise<MaybeRaw<R, PaginatedResponse<SpaceEntityPermission>>>;
53
66
  /**
54
67
  * Retrieves a High5 Space by its name.
55
68
  * @param orgName Name of the Organization
56
69
  * @param spaceName Name of the space
57
70
  * @returns The requested Space
58
71
  */
59
- getSpace(orgName: string, spaceName: string): Promise<Space>;
72
+ getSpace<R extends boolean = false>(orgName: string, spaceName: string, raw?: {
73
+ raw: R;
74
+ }): Promise<MaybeRaw<R, Space>>;
60
75
  /**
61
76
  * Creates a new High5 Space in the specified Organization.
62
77
  * @param orgName Name of the Organization
@@ -64,13 +79,17 @@ export declare class High5Space extends Base {
64
79
  * @param enableDev (optional) Specifies to the front-end whether to display the versions in the development of Wave Engines and Node Catalogs
65
80
  * @returns The created Space
66
81
  */
67
- createSpace(orgName: string, name: string, enableDev?: boolean): Promise<Space>;
82
+ createSpace<R extends boolean = false>(orgName: string, name: string, enableDev?: boolean, raw?: {
83
+ raw: R;
84
+ }): Promise<MaybeRaw<R, Space>>;
68
85
  /**
69
86
  * Delete a space by its name.
70
87
  * @param orgName Name of the Organization
71
88
  * @param spaceName Name of the Space
72
89
  */
73
- deleteSpace(orgName: string, spaceName: string): Promise<void>;
90
+ deleteSpace<R extends boolean = false>(orgName: string, spaceName: string, raw?: {
91
+ raw: R;
92
+ }): Promise<MaybeRaw<R, void>>;
74
93
  /**
75
94
  * Adds/Updates/Removes the permission a user has in the specified space.
76
95
  * @param orgName Name of the Organization
@@ -79,7 +98,9 @@ export declare class High5Space extends Base {
79
98
  * @param permission New permission
80
99
  * @returns The Space with updated permissions
81
100
  */
82
- updateUserSpacePermission(orgName: string, spaceName: string, userId: string, permission: SpacePermission): Promise<SpaceEntityPermission>;
101
+ updateUserSpacePermission<R extends boolean = false>(orgName: string, spaceName: string, userId: string, permission: SpacePermission, raw?: {
102
+ raw: R;
103
+ }): Promise<MaybeRaw<R, SpaceEntityPermission>>;
83
104
  /**
84
105
  * Adds/Updates/Removes the permission a team has in the specified space. Note: A team cannot be an owner of a Space.
85
106
  * @param orgName Name of the Organization
@@ -88,7 +109,9 @@ export declare class High5Space extends Base {
88
109
  * @param permission New permission
89
110
  * @returns The Space with updated permissions
90
111
  */
91
- updateTeamSpacePermission(orgName: string, spaceName: string, teamName: string, permission: SpacePermission): Promise<SpaceEntityPermission>;
112
+ updateTeamSpacePermission<R extends boolean = false>(orgName: string, spaceName: string, teamName: string, permission: SpacePermission, raw?: {
113
+ raw: R;
114
+ }): Promise<MaybeRaw<R, SpaceEntityPermission>>;
92
115
  /**
93
116
  * Retrieves all streams of a space matching the search filter(s). Will return all streams if no search filter is provided.
94
117
  * @param orgName Name of the organization
@@ -99,10 +122,12 @@ export declare class High5Space extends Base {
99
122
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
100
123
  * @returns Object containing an array of streams and the total number of results found in the database (independent of limit and page)
101
124
  */
102
- searchStreamsOfSpace({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
125
+ searchStreamsOfSpace<R extends boolean = false>({ orgName, spaceName, filters, sorting, limit, page }: SearchParams & {
103
126
  orgName: string;
104
127
  spaceName: string;
105
- }): Promise<PaginatedResponse<Stream>>;
128
+ }, raw?: {
129
+ raw: R;
130
+ }): Promise<MaybeRaw<R, PaginatedResponse<Stream>>>;
106
131
  /**
107
132
  * Updates the name of a space.
108
133
  * @param orgName Name of the organization
@@ -110,7 +135,9 @@ export declare class High5Space extends Base {
110
135
  * @param newSpaceName New name for the space
111
136
  * @returns The updated space
112
137
  */
113
- renameSpace(orgName: string, spaceName: string, newSpaceName: string): Promise<Space>;
138
+ renameSpace<R extends boolean = false>(orgName: string, spaceName: string, newSpaceName: string, raw?: {
139
+ raw: R;
140
+ }): Promise<MaybeRaw<R, Space>>;
114
141
  /**
115
142
  * Specifies to the front-end whether to display the versions under development of Wave Engines and Node Catalogs.
116
143
  * @param orgName Name of the organization
@@ -118,6 +145,8 @@ export declare class High5Space extends Base {
118
145
  * @param enableDev Specifies to the front-end whether to display the versions under development of Wave Engines and Node Catalogs
119
146
  * @returns The updated space
120
147
  */
121
- enableDev(orgName: string, spaceName: string, enableDev: boolean): Promise<Space>;
148
+ enableDev<R extends boolean = false>(orgName: string, spaceName: string, enableDev: boolean, raw?: {
149
+ raw: R;
150
+ }): Promise<MaybeRaw<R, Space>>;
122
151
  protected getEndpoint(endpoint: string): string;
123
152
  }