hcloud-sdk 14.13.2 → 16.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 (181) hide show
  1. package/changelog.md +60 -806
  2. package/lib/Hcloud.d.ts +20 -10
  3. package/lib/Hcloud.js +60 -10
  4. package/lib/interfaces/auditor/index.d.ts +4 -2
  5. package/lib/interfaces/bouncer/features/index.d.ts +3 -6
  6. package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
  7. package/lib/interfaces/frontend/featureflags/index.js +2 -0
  8. package/lib/interfaces/high5/execution/index.d.ts +22 -0
  9. package/lib/interfaces/high5/execution/index.js +10 -0
  10. package/lib/interfaces/high5/index.d.ts +2 -2
  11. package/lib/interfaces/high5/index.js +2 -2
  12. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
  13. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +16 -1
  14. package/lib/interfaces/high5/space/execution/index.d.ts +14 -0
  15. package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
  16. package/lib/interfaces/high5/space/pool/index.js +9 -0
  17. package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
  18. package/lib/interfaces/high5/wave/changelog.js +18 -0
  19. package/lib/interfaces/high5/wave/index.d.ts +48 -1
  20. package/lib/interfaces/high5/wave/index.js +14 -1
  21. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  22. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
  23. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  24. package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
  25. package/lib/interfaces/idp/user/Scopes.js +21 -1
  26. package/lib/interfaces/idp/user/Totp.d.ts +4 -2
  27. package/lib/interfaces/idp/user/index.d.ts +1 -0
  28. package/lib/interfaces/mothership/index.d.ts +1 -0
  29. package/lib/interfaces/nats/index.d.ts +35 -20
  30. package/lib/interfaces/nats/index.js +132 -94
  31. package/lib/service/agent/bundle/dev/index.d.ts +5 -2
  32. package/lib/service/agent/bundle/dev/index.js +30 -10
  33. package/lib/service/agent/context/index.d.ts +7 -9
  34. package/lib/service/agent/context/index.js +41 -32
  35. package/lib/service/agent/index.d.ts +9 -7
  36. package/lib/service/agent/index.js +23 -6
  37. package/lib/service/auditor/index.d.ts +6 -7
  38. package/lib/service/auditor/index.js +23 -17
  39. package/lib/service/auditor/internal/index.d.ts +2 -2
  40. package/lib/service/auditor/internal/index.js +24 -20
  41. package/lib/service/bouncer/features/index.d.ts +1 -1
  42. package/lib/service/bouncer/features/index.js +5 -3
  43. package/lib/service/bouncer/index.d.ts +3 -10
  44. package/lib/service/bouncer/index.js +6 -21
  45. package/lib/service/dali/DaliAvatar.d.ts +21 -11
  46. package/lib/service/dali/DaliAvatar.js +63 -8
  47. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +5 -7
  48. package/lib/service/dali/avatar/DaliFuseSpace.js +29 -26
  49. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
  50. package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
  51. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +5 -7
  52. package/lib/service/dali/avatar/DaliHigh5Space.js +29 -26
  53. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
  54. package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
  55. package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
  56. package/lib/service/dali/avatar/DaliOrganization.js +23 -20
  57. package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
  58. package/lib/service/dali/avatar/DaliTeam.js +26 -23
  59. package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
  60. package/lib/service/dali/avatar/DaliUser.js +20 -17
  61. package/lib/service/dali/index.d.ts +4 -5
  62. package/lib/service/dali/index.js +14 -7
  63. package/lib/service/fuse/index.d.ts +8 -7
  64. package/lib/service/fuse/index.js +23 -9
  65. package/lib/service/fuse/internal/index.d.ts +3 -4
  66. package/lib/service/fuse/internal/index.js +5 -3
  67. package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
  68. package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
  69. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
  70. package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
  71. package/lib/service/fuse/internal/space/index.d.ts +5 -6
  72. package/lib/service/fuse/internal/space/index.js +24 -18
  73. package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
  74. package/lib/service/fuse/space/cronjob/index.js +133 -105
  75. package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
  76. package/lib/service/fuse/space/cronjob/log/index.js +24 -23
  77. package/lib/service/fuse/space/index.d.ts +13 -14
  78. package/lib/service/fuse/space/index.js +88 -70
  79. package/lib/service/high5/execution/index.d.ts +13 -5
  80. package/lib/service/high5/execution/index.js +32 -4
  81. package/lib/service/high5/execution/log/index.d.ts +2 -2
  82. package/lib/service/high5/execution/log/index.js +11 -12
  83. package/lib/service/high5/execution/status/index.d.ts +2 -2
  84. package/lib/service/high5/execution/status/index.js +11 -12
  85. package/lib/service/high5/index.d.ts +12 -9
  86. package/lib/service/high5/index.js +36 -12
  87. package/lib/service/high5/internal/index.d.ts +3 -4
  88. package/lib/service/high5/internal/index.js +5 -3
  89. package/lib/service/high5/internal/space/index.d.ts +2 -2
  90. package/lib/service/high5/internal/space/index.js +19 -15
  91. package/lib/service/high5/joinToken/index.d.ts +4 -4
  92. package/lib/service/high5/joinToken/index.js +36 -28
  93. package/lib/service/high5/space/event/index.d.ts +9 -10
  94. package/lib/service/high5/space/event/index.js +58 -46
  95. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
  96. package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
  97. package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
  98. package/lib/service/high5/space/event/stream/design/index.js +60 -25
  99. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
  100. package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
  101. package/lib/service/high5/space/event/stream/index.d.ts +14 -15
  102. package/lib/service/high5/space/event/stream/index.js +125 -103
  103. package/lib/service/high5/space/execution/index.d.ts +36 -9
  104. package/lib/service/high5/space/execution/index.js +96 -42
  105. package/lib/service/high5/space/execution/log/index.d.ts +4 -6
  106. package/lib/service/high5/space/execution/log/index.js +22 -21
  107. package/lib/service/high5/space/execution/status/index.d.ts +1 -1
  108. package/lib/service/high5/space/execution/status/index.js +10 -8
  109. package/lib/service/high5/space/index.d.ts +28 -21
  110. package/lib/service/high5/space/index.js +138 -86
  111. package/lib/service/high5/space/pool/index.d.ts +97 -0
  112. package/lib/service/high5/space/pool/index.js +171 -0
  113. package/lib/service/high5/space/secret/index.d.ts +6 -6
  114. package/lib/service/high5/space/secret/index.js +59 -49
  115. package/lib/service/high5/space/wave/index.d.ts +7 -9
  116. package/lib/service/high5/space/wave/index.js +40 -33
  117. package/lib/service/high5/space/webhook/index.d.ts +21 -14
  118. package/lib/service/high5/space/webhook/index.js +106 -73
  119. package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
  120. package/lib/service/high5/space/webhook/log/index.js +11 -12
  121. package/lib/service/high5/wave/s3/index.d.ts +14 -7
  122. package/lib/service/high5/wave/s3/index.js +64 -38
  123. package/lib/service/idp/index.d.ts +17 -15
  124. package/lib/service/idp/index.js +104 -56
  125. package/lib/service/idp/internal/index.d.ts +2 -4
  126. package/lib/service/idp/internal/index.js +10 -11
  127. package/lib/service/idp/oauth/index.d.ts +16 -12
  128. package/lib/service/idp/oauth/index.js +56 -45
  129. package/lib/service/idp/organization/index.d.ts +12 -10
  130. package/lib/service/idp/organization/index.js +63 -28
  131. package/lib/service/idp/organization/license/index.d.ts +2 -2
  132. package/lib/service/idp/organization/license/index.js +5 -4
  133. package/lib/service/idp/organization/member/index.d.ts +10 -11
  134. package/lib/service/idp/organization/member/index.js +62 -48
  135. package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
  136. package/lib/service/idp/organization/member/invitations/index.js +47 -43
  137. package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
  138. package/lib/service/idp/organization/settings/domain/index.js +42 -29
  139. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
  140. package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
  141. package/lib/service/idp/organization/settings/index.d.ts +5 -5
  142. package/lib/service/idp/organization/settings/index.js +17 -4
  143. package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
  144. package/lib/service/idp/organization/settings/oauth/index.js +67 -56
  145. package/lib/service/idp/organization/team/index.d.ts +8 -8
  146. package/lib/service/idp/organization/team/index.js +64 -55
  147. package/lib/service/idp/registration/index.d.ts +4 -6
  148. package/lib/service/idp/registration/index.js +38 -35
  149. package/lib/service/idp/user/index.d.ts +20 -15
  150. package/lib/service/idp/user/index.js +94 -51
  151. package/lib/service/idp/user/license/index.d.ts +2 -2
  152. package/lib/service/idp/user/license/index.js +5 -4
  153. package/lib/service/idp/user/password/index.d.ts +1 -1
  154. package/lib/service/idp/user/password/index.js +10 -11
  155. package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
  156. package/lib/service/idp/user/settings/connections/index.js +9 -10
  157. package/lib/service/idp/user/settings/general/index.d.ts +10 -6
  158. package/lib/service/idp/user/settings/general/index.js +25 -13
  159. package/lib/service/idp/user/settings/index.d.ts +13 -9
  160. package/lib/service/idp/user/settings/index.js +53 -8
  161. package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
  162. package/lib/service/idp/user/settings/notifications/index.js +14 -13
  163. package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
  164. package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
  165. package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
  166. package/lib/service/idp/user/settings/pats/index.js +55 -44
  167. package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
  168. package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
  169. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +7 -9
  170. package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
  171. package/lib/service/mailer/index.d.ts +4 -5
  172. package/lib/service/mailer/index.js +12 -8
  173. package/lib/service/mailer/internal/index.d.ts +4 -4
  174. package/lib/service/mailer/internal/index.js +38 -33
  175. package/lib/service/mothership/index.d.ts +12 -12
  176. package/lib/service/mothership/index.js +92 -79
  177. package/lib/service/nats/index.d.ts +1 -3
  178. package/lib/service/nats/index.js +2 -2
  179. package/lib/utils/bouncer/features/Provider.d.ts +3 -0
  180. package/lib/utils/bouncer/features/Provider.js +20 -2
  181. package/package.json +1 -1
@@ -14,58 +14,112 @@ const Base_1 = require("../../../../Base");
14
14
  const index_1 = require("./log/index");
15
15
  const index_2 = require("./status/index");
16
16
  class High5SpaceExecute extends Base_1.default {
17
- constructor(options, axios) {
18
- super(options, axios);
19
- /**
20
- * executeStream executes a single stream by its ID and an execution request
21
- * @param orgName the organizations's name
22
- * @param spaceName the spaces's name
23
- * @param streamId to identify the stream
24
- * @param high5ExecutionRequest the stream execution request, containing the data, target, wait boolean and timeout
25
- * @returns the stream result
26
- */
27
- this.executeHigh5Stream = (orgName, spaceName, streamId, high5ExecutionRequest) => __awaiter(this, void 0, void 0, function* () {
28
- const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}`), high5ExecutionRequest);
17
+ get high5ExecutionLogs() {
18
+ if (this._high5ExecutionLogs === undefined) {
19
+ this._high5ExecutionLogs = new index_1.High5SpaceExecutionLogs(this.options, this.axios);
20
+ }
21
+ return this._high5ExecutionLogs;
22
+ }
23
+ get high5ExecutionStates() {
24
+ if (this._high5ExecutionStates === undefined) {
25
+ this._high5ExecutionStates = new index_2.High5SpaceExecutionStates(this.options, this.axios);
26
+ }
27
+ return this._high5ExecutionStates;
28
+ }
29
+ /**
30
+ * executeStream executes a single stream by its ID and an execution request
31
+ * @param orgName the organizations's name
32
+ * @param spaceName the spaces's name
33
+ * @param streamId to identify the stream
34
+ * @param high5ExecutionRequest the stream execution request, containing the data, target, wait boolean and timeout
35
+ * @returns the stream result
36
+ */
37
+ 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) {
39
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}`), high5ExecutionRequest, {
40
+ params: {
41
+ design,
42
+ debug,
43
+ },
44
+ });
29
45
  return resp.data;
30
46
  });
31
- /**
32
- * Executes all streams within an event.
33
- * @param orgName Name of the Organization
34
- * @param spaceName Name of the Space
35
- * @param eventName Name of the Event
36
- * @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
37
- * @returns Array of stream results
38
- */
39
- this.executeHigh5Event = (orgName, spaceName, eventName, high5EventExecutionRequest) => __awaiter(this, void 0, void 0, function* () {
47
+ }
48
+ /**
49
+ * Executes all streams within an event.
50
+ * @param orgName Name of the Organization
51
+ * @param spaceName Name of the Space
52
+ * @param eventName Name of the Event
53
+ * @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
54
+ * @returns Array of stream results
55
+ */
56
+ executeHigh5Event(orgName, spaceName, eventName, high5EventExecutionRequest) {
57
+ return __awaiter(this, void 0, void 0, function* () {
40
58
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/event/name/${eventName}`), high5EventExecutionRequest);
41
59
  return resp.data;
42
60
  });
43
- /**
44
- * Requests the StreamExecutionPackage for the provided Stream, which will hold all informations required to execute the Stream.
45
- * @param orgName Name of the Organization
46
- * @param spaceName Name of the Space
47
- * @param streamId ID of the Stream
48
- * @param secret Secret of the Stream execution object
49
- * @returns StreamExecutionPackage
50
- */
51
- this.getStreamExecutionPackage = (orgName, spaceName, streamId, secret) => __awaiter(this, void 0, void 0, function* () {
61
+ }
62
+ /**
63
+ * Requests the StreamExecutionPackage for the provided Stream, which will hold all informations required to execute the Stream.
64
+ * @param orgName Name of the Organization
65
+ * @param spaceName Name of the Space
66
+ * @param streamId ID of the Stream
67
+ * @param secret Secret of the Stream execution object
68
+ * @returns StreamExecutionPackage
69
+ */
70
+ getStreamExecutionPackage(orgName, spaceName, streamId, secret) {
71
+ return __awaiter(this, void 0, void 0, function* () {
52
72
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}/package/${secret}`));
53
73
  return resp.data;
54
74
  });
55
- /**
56
- * Publishes the stream status and logs to high5
57
- * @param orgName the organizations's name
58
- * @param spaceName the spaces's name
59
- * @param streamId the id of the stream
60
- * @param secret the secret of the stream execution object
61
- * @param streamResult the result of the stream
62
- * @returns StreamLog
63
- */
64
- this.high5ExecutionStatusAndLogResponse = (orgName, spaceName, secret, high5ExecutionResponse) => __awaiter(this, void 0, void 0, function* () {
75
+ }
76
+ /**
77
+ * Publishes the stream status and logs to high5
78
+ * @param orgName the organizations's name
79
+ * @param spaceName the spaces's name
80
+ * @param streamId the id of the stream
81
+ * @param secret the secret of the stream execution object
82
+ * @param streamResult the result of the stream
83
+ * @returns StreamLog
84
+ */
85
+ high5ExecutionStatusAndLogResponse(orgName, spaceName, secret, high5ExecutionResponse) {
86
+ return __awaiter(this, void 0, void 0, function* () {
65
87
  yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/${secret}`), high5ExecutionResponse);
66
88
  });
67
- this.high5ExecutionLogs = new index_1.High5SpaceExecutionLogs(options, axios);
68
- this.high5ExecutionStates = new index_2.High5SpaceExecutionStates(options, axios);
89
+ }
90
+ /**
91
+ * Issue debug command to a stopped execution running in debug mode.
92
+ * If the agent that is handling this execution does not acknowledge
93
+ * the debug command after a certain timeframe, a timeout error will
94
+ * be thrown.
95
+ *
96
+ * Only the user that triggered the execution can send debug commands.
97
+ *
98
+ * @param orgName Name of the organization
99
+ * @param spaceName Name of the space
100
+ * @param executionId ID of the execution. Obtained from High5ExecutionResponse
101
+ * @param command DebugCommand to send
102
+ */
103
+ issueDebugCommand(orgName, spaceName, executionId, command) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/${executionId}`), command);
106
+ });
107
+ }
108
+ /**
109
+ * Log an execution crash to High5
110
+ *
111
+ * Useful when regular logging is not possible.
112
+ *
113
+ * @param orgName the organizations's name
114
+ * @param spaceName the spaces's name
115
+ * @param streamId the id of the stream
116
+ * @param secret the secret of the stream execution object
117
+ * @param message crash log
118
+ */
119
+ logExecutionCrash(orgName, spaceName, secret, message) {
120
+ 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 });
122
+ });
69
123
  }
70
124
  getEndpoint(endpoint) {
71
125
  return `${this.options.server}/api/high5${endpoint}`;
@@ -1,9 +1,7 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../../../Base";
1
+ import Base from "../../../../../Base";
3
2
  import { PaginatedResponse, SearchParams } from "../../../../../interfaces/global";
4
3
  import { High5ExecutionLog } from "../../../../../interfaces/high5/space/execution";
5
4
  export declare class High5SpaceExecutionLogs extends Base {
6
- constructor(options: Options, axios: AxiosInstance);
7
5
  /**
8
6
  * Retrieves all stream execution logs for a given execution inside a space.
9
7
  * @param orgName Name of the Organization
@@ -14,11 +12,11 @@ export declare class High5SpaceExecutionLogs extends Base {
14
12
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
15
13
  * @returns Object containing an array of Stream execution logs as well as the total number of results
16
14
  */
17
- searchExecutionLogs: ({ orgName, spaceName, payload, filters, sorting, limit, page, }: SearchParams & {
15
+ searchExecutionLogs({ orgName, spaceName, payload, filters, sorting, limit, page, }: SearchParams & {
18
16
  orgName: string;
19
17
  spaceName: string;
20
18
  payload?: boolean;
21
- }) => Promise<PaginatedResponse<High5ExecutionLog>>;
19
+ }): Promise<PaginatedResponse<High5ExecutionLog>>;
22
20
  /**
23
21
  * Retrieves the execution log of a stream.
24
22
  * @param orgName Name of the Organization
@@ -26,6 +24,6 @@ export declare class High5SpaceExecutionLogs extends Base {
26
24
  * @param streamLogId ID of the stream log
27
25
  * @returns Stream execution log
28
26
  */
29
- getStreamExecutionLog: (orgName: string, spaceName: string, streamLogId: string, payload?: boolean) => Promise<High5ExecutionLog>;
27
+ getStreamExecutionLog(orgName: string, spaceName: string, streamLogId: string, payload?: boolean): Promise<High5ExecutionLog>;
30
28
  protected getEndpoint(endpoint: string): string;
31
29
  }
@@ -14,19 +14,18 @@ const Base_1 = require("../../../../../Base");
14
14
  const paginatedResponseHelper_1 = require("../../../../../helper/paginatedResponseHelper");
15
15
  const searchFilter_1 = require("../../../../../helper/searchFilter");
16
16
  class High5SpaceExecutionLogs extends Base_1.default {
17
- constructor(options, axios) {
18
- super(options, axios);
19
- /**
20
- * Retrieves all stream execution logs for a given execution inside a space.
21
- * @param orgName Name of the Organization
22
- * @param spaceName Name of the Space
23
- * @param filters (optional) Array of search filters
24
- * @param sorting (optional) Sorting object
25
- * @param limit (optional) Max number of results (1-100; defaults to 25)
26
- * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
27
- * @returns Object containing an array of Stream execution logs as well as the total number of results
28
- */
29
- this.searchExecutionLogs = (_a) => __awaiter(this, [_a], void 0, function* ({ orgName, spaceName, payload = false, filters, sorting, limit = 25, page = 0, }) {
17
+ /**
18
+ * Retrieves all stream execution logs for a given execution inside a space.
19
+ * @param orgName Name of the Organization
20
+ * @param spaceName Name of the Space
21
+ * @param filters (optional) Array of search filters
22
+ * @param sorting (optional) Sorting object
23
+ * @param limit (optional) Max number of results (1-100; defaults to 25)
24
+ * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
25
+ * @returns Object containing an array of Stream execution logs as well as the total number of results
26
+ */
27
+ searchExecutionLogs(_a) {
28
+ return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, payload = false, filters, sorting, limit = 25, page = 0, }) {
30
29
  const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
31
30
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/logs/search?page=${page}&limit=${limit}&payload=${payload}`), {
32
31
  filters: filtersDTO,
@@ -34,14 +33,16 @@ class High5SpaceExecutionLogs extends Base_1.default {
34
33
  });
35
34
  return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
36
35
  });
37
- /**
38
- * Retrieves the execution log of a stream.
39
- * @param orgName Name of the Organization
40
- * @param spaceName Name of the Space
41
- * @param streamLogId ID of the stream log
42
- * @returns Stream execution log
43
- */
44
- this.getStreamExecutionLog = (orgName_1, spaceName_1, streamLogId_1, ...args_1) => __awaiter(this, [orgName_1, spaceName_1, streamLogId_1, ...args_1], void 0, function* (orgName, spaceName, streamLogId, payload = false) {
36
+ }
37
+ /**
38
+ * Retrieves the execution log of a stream.
39
+ * @param orgName Name of the Organization
40
+ * @param spaceName Name of the Space
41
+ * @param streamLogId ID of the stream log
42
+ * @returns Stream execution log
43
+ */
44
+ getStreamExecutionLog(orgName_1, spaceName_1, streamLogId_1) {
45
+ return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamLogId, payload = false) {
45
46
  const resp = yield this.axios
46
47
  .get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/logs/${streamLogId}?payload=${payload}`))
47
48
  .catch((err) => {
@@ -11,6 +11,6 @@ export declare class High5SpaceExecutionStates extends Base {
11
11
  * @param streamStatusId ID of the stream status
12
12
  * @returns Object containing an array of Stream execution logs as well as the total number of results
13
13
  */
14
- getStreamExecutionStatus: (orgName: string, spaceName: string, streamStatusId: string, limit?: number, page?: number) => Promise<PaginatedResponse<High5ExecutionStatus>>;
14
+ getStreamExecutionStatus(orgName: string, spaceName: string, streamStatusId: string, limit?: number, page?: number): Promise<PaginatedResponse<High5ExecutionStatus>>;
15
15
  protected getEndpoint(endpoint: string): string;
16
16
  }
@@ -15,14 +15,16 @@ const paginatedResponseHelper_1 = require("../../../../../helper/paginatedRespon
15
15
  class High5SpaceExecutionStates extends Base_1.default {
16
16
  constructor(options, axios) {
17
17
  super(options, axios);
18
- /**
19
- * Retrieves all stream execution logs for a given stream.
20
- * @param orgName Name of the Organization
21
- * @param spaceName Name of the Space
22
- * @param streamStatusId ID of the stream status
23
- * @returns Object containing an array of Stream execution logs as well as the total number of results
24
- */
25
- this.getStreamExecutionStatus = (orgName_1, spaceName_1, streamStatusId_1, ...args_1) => __awaiter(this, [orgName_1, spaceName_1, streamStatusId_1, ...args_1], void 0, function* (orgName, spaceName, streamStatusId, limit = 25, page = 0) {
18
+ }
19
+ /**
20
+ * Retrieves all stream execution logs for a given stream.
21
+ * @param orgName Name of the Organization
22
+ * @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
25
+ */
26
+ getStreamExecutionStatus(orgName_1, spaceName_1, streamStatusId_1) {
27
+ return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamStatusId, limit = 25, page = 0) {
26
28
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/status/${streamStatusId}?page=${page}&limit=${limit}`));
27
29
  return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
28
30
  });
@@ -1,22 +1,29 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../Base";
1
+ import Base from "../../../Base";
3
2
  import { PaginatedResponse, SearchParams } from "../../../interfaces/global";
4
3
  import { Stream } from "../../../interfaces/high5";
5
4
  import { High5Space as Space, High5SpaceEntityPermission as SpaceEntityPermission, High5SpacePermission as SpacePermission } from "../../../interfaces/high5/space";
6
5
  import { High5Event } from "./event";
7
6
  import { High5SpaceExecute } from "./execution";
8
7
  import High5Node from "./node";
8
+ import High5Pool from "./pool";
9
9
  import High5Secret from "./secret";
10
10
  import High5Wave from "./wave";
11
11
  import { High5Webhook } from "./webhook";
12
12
  export declare class High5Space extends Base {
13
- event: High5Event;
14
- execute: High5SpaceExecute;
15
- webhook: High5Webhook;
16
- secret: High5Secret;
17
- wave: High5Wave;
18
- node: High5Node;
19
- constructor(options: Options, axios: AxiosInstance);
13
+ get event(): High5Event;
14
+ private _event?;
15
+ get execute(): High5SpaceExecute;
16
+ private _execute?;
17
+ get webhook(): High5Webhook;
18
+ private _webhook?;
19
+ get secret(): High5Secret;
20
+ private _secret?;
21
+ get pool(): High5Pool;
22
+ private _pool?;
23
+ get wave(): High5Wave;
24
+ private _wave?;
25
+ get node(): High5Node;
26
+ private _node?;
20
27
  /**
21
28
  * Retrieves all High5 Spaces of the specified Organization matching the search filter(s). Will return all Spaces if no search filter is provided.
22
29
  * @param orgName Name of the organization
@@ -26,9 +33,9 @@ export declare class High5Space extends Base {
26
33
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
27
34
  * @returns Object containing an array of High5 Spaces and the total number of results found in the database (independent of limit and page)
28
35
  */
29
- searchSpaces: ({ orgName, filters, sorting, limit, page, }: SearchParams & {
36
+ searchSpaces({ orgName, filters, sorting, limit, page }: SearchParams & {
30
37
  orgName: string;
31
- }) => Promise<PaginatedResponse<Space>>;
38
+ }): Promise<PaginatedResponse<Space>>;
32
39
  /**
33
40
  * Retrieves permissions of a space matching the search filter(s). Will return all permissions of the space if no search filter is provided.
34
41
  * @param orgName Name of the organization
@@ -39,30 +46,30 @@ export declare class High5Space extends Base {
39
46
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
40
47
  * @returns Object containing an array of High5 Space Permissions and the total number of results found in the database (independent of limit and page)
41
48
  */
42
- searchSpacePermissions: ({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
49
+ searchSpacePermissions({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
43
50
  orgName: string;
44
51
  spaceName: string;
45
- }) => Promise<PaginatedResponse<SpaceEntityPermission>>;
52
+ }): Promise<PaginatedResponse<SpaceEntityPermission>>;
46
53
  /**
47
54
  * Retrieves a High5 Space by its name.
48
55
  * @param orgName Name of the Organization
49
56
  * @param spaceId ID of the High5 Space
50
57
  * @returns The requested Space
51
58
  */
52
- getSpace: (orgName: string, spaceName: string) => Promise<Space>;
59
+ getSpace(orgName: string, spaceName: string): Promise<Space>;
53
60
  /**
54
61
  * Creates a new High5 Space in the specified Organization.
55
62
  * @param orgName Name of the Organization
56
63
  * @param name Name for the new Space
57
64
  * @returns The created Space
58
65
  */
59
- createSpace: (orgName: string, name: string) => Promise<Space>;
66
+ createSpace(orgName: string, name: string): Promise<Space>;
60
67
  /**
61
68
  * Delete a space by its name.
62
69
  * @param orgName Name of the Organization
63
70
  * @param spaceName Name of the Space
64
71
  */
65
- deleteSpace: (orgName: string, spaceName: string) => Promise<void>;
72
+ deleteSpace(orgName: string, spaceName: string): Promise<void>;
66
73
  /**
67
74
  * Adds/Updates/Removes the permission a user has in the specified space.
68
75
  * @param orgName Name of the Organization
@@ -71,7 +78,7 @@ export declare class High5Space extends Base {
71
78
  * @param permission New permission
72
79
  * @returns The Space with updated permissions
73
80
  */
74
- updateUserSpacePermission: (orgName: string, spaceName: string, userId: string, permission: SpacePermission) => Promise<SpaceEntityPermission>;
81
+ updateUserSpacePermission(orgName: string, spaceName: string, userId: string, permission: SpacePermission): Promise<SpaceEntityPermission>;
75
82
  /**
76
83
  * Adds/Updates/Removes the permission a team has in the specified space. Note: A team cannot be an owner of a Space.
77
84
  * @param orgName Name of the Organization
@@ -80,7 +87,7 @@ export declare class High5Space extends Base {
80
87
  * @param permission New permission
81
88
  * @returns The Space with updated permissions
82
89
  */
83
- updateTeamSpacePermission: (orgName: string, spaceName: string, teamName: string, permission: SpacePermission) => Promise<SpaceEntityPermission>;
90
+ updateTeamSpacePermission(orgName: string, spaceName: string, teamName: string, permission: SpacePermission): Promise<SpaceEntityPermission>;
84
91
  /**
85
92
  * Retrieves all streams of a space matching the search filter(s). Will return all streams if no search filter is provided.
86
93
  * @param orgName Name of the organization
@@ -91,10 +98,10 @@ export declare class High5Space extends Base {
91
98
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
92
99
  * @returns Object containing an array of streams and the total number of results found in the database (independent of limit and page)
93
100
  */
94
- searchStreamsOfSpace: ({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
101
+ searchStreamsOfSpace({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
95
102
  orgName: string;
96
103
  spaceName: string;
97
- }) => Promise<PaginatedResponse<Stream>>;
104
+ }): Promise<PaginatedResponse<Stream>>;
98
105
  /**
99
106
  * Updates the name of a space.
100
107
  * @param orgName Name of the organization
@@ -102,6 +109,6 @@ export declare class High5Space extends Base {
102
109
  * @param newName New name for the space
103
110
  * @returns The updated space
104
111
  */
105
- renameSpace: (orgName: string, spaceName: string, newSpaceName: string) => Promise<Space>;
112
+ renameSpace(orgName: string, spaceName: string, newSpaceName: string): Promise<Space>;
106
113
  protected getEndpoint(endpoint: string): string;
107
114
  }