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.
- package/changelog.md +60 -806
- package/lib/Hcloud.d.ts +20 -10
- package/lib/Hcloud.js +60 -10
- package/lib/interfaces/auditor/index.d.ts +4 -2
- package/lib/interfaces/bouncer/features/index.d.ts +3 -6
- package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
- package/lib/interfaces/frontend/featureflags/index.js +2 -0
- package/lib/interfaces/high5/execution/index.d.ts +22 -0
- package/lib/interfaces/high5/execution/index.js +10 -0
- package/lib/interfaces/high5/index.d.ts +2 -2
- package/lib/interfaces/high5/index.js +2 -2
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +16 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +14 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
- package/lib/interfaces/high5/space/pool/index.js +9 -0
- package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
- package/lib/interfaces/high5/wave/changelog.js +18 -0
- package/lib/interfaces/high5/wave/index.d.ts +48 -1
- package/lib/interfaces/high5/wave/index.js +14 -1
- package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.js +21 -1
- package/lib/interfaces/idp/user/Totp.d.ts +4 -2
- package/lib/interfaces/idp/user/index.d.ts +1 -0
- package/lib/interfaces/mothership/index.d.ts +1 -0
- package/lib/interfaces/nats/index.d.ts +35 -20
- package/lib/interfaces/nats/index.js +132 -94
- package/lib/service/agent/bundle/dev/index.d.ts +5 -2
- package/lib/service/agent/bundle/dev/index.js +30 -10
- package/lib/service/agent/context/index.d.ts +7 -9
- package/lib/service/agent/context/index.js +41 -32
- package/lib/service/agent/index.d.ts +9 -7
- package/lib/service/agent/index.js +23 -6
- package/lib/service/auditor/index.d.ts +6 -7
- package/lib/service/auditor/index.js +23 -17
- package/lib/service/auditor/internal/index.d.ts +2 -2
- package/lib/service/auditor/internal/index.js +24 -20
- package/lib/service/bouncer/features/index.d.ts +1 -1
- package/lib/service/bouncer/features/index.js +5 -3
- package/lib/service/bouncer/index.d.ts +3 -10
- package/lib/service/bouncer/index.js +6 -21
- package/lib/service/dali/DaliAvatar.d.ts +21 -11
- package/lib/service/dali/DaliAvatar.js +63 -8
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +5 -7
- package/lib/service/dali/avatar/DaliFuseSpace.js +29 -26
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
- package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +5 -7
- package/lib/service/dali/avatar/DaliHigh5Space.js +29 -26
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
- package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOrganization.js +23 -20
- package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
- package/lib/service/dali/avatar/DaliTeam.js +26 -23
- package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
- package/lib/service/dali/avatar/DaliUser.js +20 -17
- package/lib/service/dali/index.d.ts +4 -5
- package/lib/service/dali/index.js +14 -7
- package/lib/service/fuse/index.d.ts +8 -7
- package/lib/service/fuse/index.js +23 -9
- package/lib/service/fuse/internal/index.d.ts +3 -4
- package/lib/service/fuse/internal/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
- package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
- package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
- package/lib/service/fuse/internal/space/index.d.ts +5 -6
- package/lib/service/fuse/internal/space/index.js +24 -18
- package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
- package/lib/service/fuse/space/cronjob/index.js +133 -105
- package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
- package/lib/service/fuse/space/cronjob/log/index.js +24 -23
- package/lib/service/fuse/space/index.d.ts +13 -14
- package/lib/service/fuse/space/index.js +88 -70
- package/lib/service/high5/execution/index.d.ts +13 -5
- package/lib/service/high5/execution/index.js +32 -4
- package/lib/service/high5/execution/log/index.d.ts +2 -2
- package/lib/service/high5/execution/log/index.js +11 -12
- package/lib/service/high5/execution/status/index.d.ts +2 -2
- package/lib/service/high5/execution/status/index.js +11 -12
- package/lib/service/high5/index.d.ts +12 -9
- package/lib/service/high5/index.js +36 -12
- package/lib/service/high5/internal/index.d.ts +3 -4
- package/lib/service/high5/internal/index.js +5 -3
- package/lib/service/high5/internal/space/index.d.ts +2 -2
- package/lib/service/high5/internal/space/index.js +19 -15
- package/lib/service/high5/joinToken/index.d.ts +4 -4
- package/lib/service/high5/joinToken/index.js +36 -28
- package/lib/service/high5/space/event/index.d.ts +9 -10
- package/lib/service/high5/space/event/index.js +58 -46
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
- package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
- package/lib/service/high5/space/event/stream/design/index.js +60 -25
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
- package/lib/service/high5/space/event/stream/index.d.ts +14 -15
- package/lib/service/high5/space/event/stream/index.js +125 -103
- package/lib/service/high5/space/execution/index.d.ts +36 -9
- package/lib/service/high5/space/execution/index.js +96 -42
- package/lib/service/high5/space/execution/log/index.d.ts +4 -6
- package/lib/service/high5/space/execution/log/index.js +22 -21
- package/lib/service/high5/space/execution/status/index.d.ts +1 -1
- package/lib/service/high5/space/execution/status/index.js +10 -8
- package/lib/service/high5/space/index.d.ts +28 -21
- package/lib/service/high5/space/index.js +138 -86
- package/lib/service/high5/space/pool/index.d.ts +97 -0
- package/lib/service/high5/space/pool/index.js +171 -0
- package/lib/service/high5/space/secret/index.d.ts +6 -6
- package/lib/service/high5/space/secret/index.js +59 -49
- package/lib/service/high5/space/wave/index.d.ts +7 -9
- package/lib/service/high5/space/wave/index.js +40 -33
- package/lib/service/high5/space/webhook/index.d.ts +21 -14
- package/lib/service/high5/space/webhook/index.js +106 -73
- package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
- package/lib/service/high5/space/webhook/log/index.js +11 -12
- package/lib/service/high5/wave/s3/index.d.ts +14 -7
- package/lib/service/high5/wave/s3/index.js +64 -38
- package/lib/service/idp/index.d.ts +17 -15
- package/lib/service/idp/index.js +104 -56
- package/lib/service/idp/internal/index.d.ts +2 -4
- package/lib/service/idp/internal/index.js +10 -11
- package/lib/service/idp/oauth/index.d.ts +16 -12
- package/lib/service/idp/oauth/index.js +56 -45
- package/lib/service/idp/organization/index.d.ts +12 -10
- package/lib/service/idp/organization/index.js +63 -28
- package/lib/service/idp/organization/license/index.d.ts +2 -2
- package/lib/service/idp/organization/license/index.js +5 -4
- package/lib/service/idp/organization/member/index.d.ts +10 -11
- package/lib/service/idp/organization/member/index.js +62 -48
- package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
- package/lib/service/idp/organization/member/invitations/index.js +47 -43
- package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
- package/lib/service/idp/organization/settings/domain/index.js +42 -29
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
- package/lib/service/idp/organization/settings/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/index.js +17 -4
- package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
- package/lib/service/idp/organization/settings/oauth/index.js +67 -56
- package/lib/service/idp/organization/team/index.d.ts +8 -8
- package/lib/service/idp/organization/team/index.js +64 -55
- package/lib/service/idp/registration/index.d.ts +4 -6
- package/lib/service/idp/registration/index.js +38 -35
- package/lib/service/idp/user/index.d.ts +20 -15
- package/lib/service/idp/user/index.js +94 -51
- package/lib/service/idp/user/license/index.d.ts +2 -2
- package/lib/service/idp/user/license/index.js +5 -4
- package/lib/service/idp/user/password/index.d.ts +1 -1
- package/lib/service/idp/user/password/index.js +10 -11
- package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
- package/lib/service/idp/user/settings/connections/index.js +9 -10
- package/lib/service/idp/user/settings/general/index.d.ts +10 -6
- package/lib/service/idp/user/settings/general/index.js +25 -13
- package/lib/service/idp/user/settings/index.d.ts +13 -9
- package/lib/service/idp/user/settings/index.js +53 -8
- package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
- package/lib/service/idp/user/settings/notifications/index.js +14 -13
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
- package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
- package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
- package/lib/service/idp/user/settings/pats/index.js +55 -44
- package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
- package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +7 -9
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
- package/lib/service/mailer/index.d.ts +4 -5
- package/lib/service/mailer/index.js +12 -8
- package/lib/service/mailer/internal/index.d.ts +4 -4
- package/lib/service/mailer/internal/index.js +38 -33
- package/lib/service/mothership/index.d.ts +12 -12
- package/lib/service/mothership/index.js +92 -79
- package/lib/service/nats/index.d.ts +1 -3
- package/lib/service/nats/index.js +2 -2
- package/lib/utils/bouncer/features/Provider.d.ts +3 -0
- package/lib/utils/bouncer/features/Provider.js +20 -2
- 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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.
|
|
28
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
68
|
-
|
|
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
|
|
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
|
|
15
|
+
searchExecutionLogs({ orgName, spaceName, payload, filters, sorting, limit, page, }: SearchParams & {
|
|
18
16
|
orgName: string;
|
|
19
17
|
spaceName: string;
|
|
20
18
|
payload?: boolean;
|
|
21
|
-
})
|
|
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
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
36
|
+
searchSpaces({ orgName, filters, sorting, limit, page }: SearchParams & {
|
|
30
37
|
orgName: string;
|
|
31
|
-
})
|
|
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
|
|
49
|
+
searchSpacePermissions({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
|
|
43
50
|
orgName: string;
|
|
44
51
|
spaceName: string;
|
|
45
|
-
})
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
101
|
+
searchStreamsOfSpace({ orgName, spaceName, filters, sorting, limit, page, }: SearchParams & {
|
|
95
102
|
orgName: string;
|
|
96
103
|
spaceName: string;
|
|
97
|
-
})
|
|
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
|
|
112
|
+
renameSpace(orgName: string, spaceName: string, newSpaceName: string): Promise<Space>;
|
|
106
113
|
protected getEndpoint(endpoint: string): string;
|
|
107
114
|
}
|