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
package/lib/Hcloud.d.ts
CHANGED
|
@@ -11,16 +11,26 @@ import MailerService from "./service/mailer";
|
|
|
11
11
|
import MothershipService from "./service/mothership";
|
|
12
12
|
import NatsService from "./service/nats";
|
|
13
13
|
export declare class HCloud {
|
|
14
|
-
Agent: AgentService;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
get Agent(): AgentService;
|
|
15
|
+
private _Agent?;
|
|
16
|
+
get Auditor(): AuditorService;
|
|
17
|
+
private _Auditor?;
|
|
18
|
+
get Bouncer(): BouncerService;
|
|
19
|
+
private _Bouncer?;
|
|
20
|
+
get High5(): High5Service;
|
|
21
|
+
private _High5?;
|
|
22
|
+
get Idp(): IdpService;
|
|
23
|
+
private _Idp?;
|
|
24
|
+
get Fuse(): FuseService;
|
|
25
|
+
private _Fuse?;
|
|
26
|
+
get Dali(): DaliService;
|
|
27
|
+
private _Dali?;
|
|
28
|
+
get Mailer(): MailerService;
|
|
29
|
+
private _Mailer?;
|
|
30
|
+
get Mothership(): MothershipService;
|
|
31
|
+
private _Mothership?;
|
|
32
|
+
get Nats(): NatsService;
|
|
33
|
+
private _Nats?;
|
|
24
34
|
private options;
|
|
25
35
|
private axios;
|
|
26
36
|
constructor(options: Options);
|
package/lib/Hcloud.js
CHANGED
|
@@ -17,6 +17,66 @@ const mothership_1 = require("./service/mothership");
|
|
|
17
17
|
const nats_1 = require("./service/nats");
|
|
18
18
|
// tslint:disable-next-line
|
|
19
19
|
class HCloud {
|
|
20
|
+
get Agent() {
|
|
21
|
+
if (this._Agent === undefined) {
|
|
22
|
+
this._Agent = new agent_1.default(this.options, this.axios);
|
|
23
|
+
}
|
|
24
|
+
return this._Agent;
|
|
25
|
+
}
|
|
26
|
+
get Auditor() {
|
|
27
|
+
if (this._Auditor === undefined) {
|
|
28
|
+
this._Auditor = new auditor_1.default(this.options, this.axios);
|
|
29
|
+
}
|
|
30
|
+
return this._Auditor;
|
|
31
|
+
}
|
|
32
|
+
get Bouncer() {
|
|
33
|
+
if (this._Bouncer === undefined) {
|
|
34
|
+
this._Bouncer = new bouncer_1.default(this.options, this.axios);
|
|
35
|
+
}
|
|
36
|
+
return this._Bouncer;
|
|
37
|
+
}
|
|
38
|
+
get High5() {
|
|
39
|
+
if (this._High5 === undefined) {
|
|
40
|
+
this._High5 = new high5_1.default(this.options, this.axios);
|
|
41
|
+
}
|
|
42
|
+
return this._High5;
|
|
43
|
+
}
|
|
44
|
+
get Idp() {
|
|
45
|
+
if (this._Idp === undefined) {
|
|
46
|
+
this._Idp = new idp_1.default(this.options, this.axios);
|
|
47
|
+
}
|
|
48
|
+
return this._Idp;
|
|
49
|
+
}
|
|
50
|
+
get Fuse() {
|
|
51
|
+
if (this._Fuse === undefined) {
|
|
52
|
+
this._Fuse = new fuse_1.default(this.options, this.axios);
|
|
53
|
+
}
|
|
54
|
+
return this._Fuse;
|
|
55
|
+
}
|
|
56
|
+
get Dali() {
|
|
57
|
+
if (this._Dali === undefined) {
|
|
58
|
+
this._Dali = new dali_1.default(this.options, this.axios);
|
|
59
|
+
}
|
|
60
|
+
return this._Dali;
|
|
61
|
+
}
|
|
62
|
+
get Mailer() {
|
|
63
|
+
if (this._Mailer === undefined) {
|
|
64
|
+
this._Mailer = new mailer_1.default(this.options, this.axios);
|
|
65
|
+
}
|
|
66
|
+
return this._Mailer;
|
|
67
|
+
}
|
|
68
|
+
get Mothership() {
|
|
69
|
+
if (this._Mothership === undefined) {
|
|
70
|
+
this._Mothership = new mothership_1.default(this.options, this.axios);
|
|
71
|
+
}
|
|
72
|
+
return this._Mothership;
|
|
73
|
+
}
|
|
74
|
+
get Nats() {
|
|
75
|
+
if (this._Nats === undefined) {
|
|
76
|
+
this._Nats = new nats_1.default(this.options, this.axios);
|
|
77
|
+
}
|
|
78
|
+
return this._Nats;
|
|
79
|
+
}
|
|
20
80
|
constructor(options) {
|
|
21
81
|
this.options = options;
|
|
22
82
|
this.axios = axios_1.default.create({
|
|
@@ -34,16 +94,6 @@ class HCloud {
|
|
|
34
94
|
(_a = this.options.logger) === null || _a === void 0 ? void 0 : _a.error(String(error), error);
|
|
35
95
|
return Promise.reject((0, ErrorHelper_1.default)(error));
|
|
36
96
|
});
|
|
37
|
-
this.Agent = new agent_1.default(this.options, this.axios);
|
|
38
|
-
this.Auditor = new auditor_1.default(this.options, this.axios);
|
|
39
|
-
this.Bouncer = new bouncer_1.default(this.options, this.axios);
|
|
40
|
-
this.High5 = new high5_1.default(this.options, this.axios);
|
|
41
|
-
this.Idp = new idp_1.default(this.options, this.axios);
|
|
42
|
-
this.Fuse = new fuse_1.default(this.options, this.axios);
|
|
43
|
-
this.Dali = new dali_1.default(this.options, this.axios);
|
|
44
|
-
this.Mailer = new mailer_1.default(this.options, this.axios);
|
|
45
|
-
this.Mothership = new mothership_1.default(this.options, this.axios);
|
|
46
|
-
this.Nats = new nats_1.default(this.options, this.axios);
|
|
47
97
|
}
|
|
48
98
|
/**
|
|
49
99
|
* Sets the server url that the SDK shall do a request to.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Organization } from "../idp";
|
|
1
|
+
import { LicenseTier, Organization } from "../idp";
|
|
2
2
|
export declare enum Level {
|
|
3
3
|
INFO = "info",
|
|
4
4
|
WARN = "warn",
|
|
@@ -63,7 +63,9 @@ export interface AuditLog {
|
|
|
63
63
|
export interface AuditLogCreate {
|
|
64
64
|
level: Level;
|
|
65
65
|
origin: Origin;
|
|
66
|
-
organization: Pick<Organization, "_id" | "name"
|
|
66
|
+
organization: Pick<Organization, "_id" | "name"> & {
|
|
67
|
+
license?: LicenseTier;
|
|
68
|
+
};
|
|
67
69
|
event: Event;
|
|
68
70
|
space?: string;
|
|
69
71
|
type?: Type;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type DebugCommand = ContinueDebugCommand | StepBackDebugCommand | StepForwardDebugCommand | SetValueDebugCommand;
|
|
2
|
+
export declare enum CommandType {
|
|
3
|
+
CONTINUE = "CONTINUE",
|
|
4
|
+
STEP_BACK = "STEP_BACK",
|
|
5
|
+
STEP_FORWARD = "STEP_FORWARD",
|
|
6
|
+
SET_VALUE = "SET_VALUE"
|
|
7
|
+
}
|
|
8
|
+
export type ContinueDebugCommand = {
|
|
9
|
+
type: CommandType.CONTINUE;
|
|
10
|
+
};
|
|
11
|
+
export type StepBackDebugCommand = {
|
|
12
|
+
type: CommandType.STEP_BACK;
|
|
13
|
+
};
|
|
14
|
+
export type StepForwardDebugCommand = {
|
|
15
|
+
type: CommandType.STEP_FORWARD;
|
|
16
|
+
};
|
|
17
|
+
export type SetValueDebugCommand = {
|
|
18
|
+
type: CommandType.SET_VALUE;
|
|
19
|
+
uuid: string;
|
|
20
|
+
key: string;
|
|
21
|
+
value: unknown;
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommandType = void 0;
|
|
4
|
+
var CommandType;
|
|
5
|
+
(function (CommandType) {
|
|
6
|
+
CommandType["CONTINUE"] = "CONTINUE";
|
|
7
|
+
CommandType["STEP_BACK"] = "STEP_BACK";
|
|
8
|
+
CommandType["STEP_FORWARD"] = "STEP_FORWARD";
|
|
9
|
+
CommandType["SET_VALUE"] = "SET_VALUE";
|
|
10
|
+
})(CommandType || (exports.CommandType = CommandType = {}));
|
|
@@ -5,12 +5,12 @@ export * from "./space/webhook";
|
|
|
5
5
|
export * from "./space/secret";
|
|
6
6
|
export * from "./space/event/stream";
|
|
7
7
|
export * from "./space/event/stream/design";
|
|
8
|
-
export * from "./space";
|
|
9
8
|
export * from "./space/event";
|
|
10
9
|
export * from "./space/event/stream";
|
|
11
10
|
export * from "./space/event/stream/design";
|
|
12
11
|
export * from "./space/event/stream/node";
|
|
13
12
|
export * from "./space/webhook";
|
|
14
13
|
export * from "./space/secret";
|
|
15
|
-
export * from "./wave";
|
|
16
14
|
export * from "./joinToken";
|
|
15
|
+
export * from "./space/pool";
|
|
16
|
+
export * from "./execution/";
|
|
@@ -21,12 +21,12 @@ __exportStar(require("./space/webhook"), exports);
|
|
|
21
21
|
__exportStar(require("./space/secret"), exports);
|
|
22
22
|
__exportStar(require("./space/event/stream"), exports);
|
|
23
23
|
__exportStar(require("./space/event/stream/design"), exports);
|
|
24
|
-
__exportStar(require("./space"), exports);
|
|
25
24
|
__exportStar(require("./space/event"), exports);
|
|
26
25
|
__exportStar(require("./space/event/stream"), exports);
|
|
27
26
|
__exportStar(require("./space/event/stream/design"), exports);
|
|
28
27
|
__exportStar(require("./space/event/stream/node"), exports);
|
|
29
28
|
__exportStar(require("./space/webhook"), exports);
|
|
30
29
|
__exportStar(require("./space/secret"), exports);
|
|
31
|
-
__exportStar(require("./wave"), exports);
|
|
32
30
|
__exportStar(require("./joinToken"), exports);
|
|
31
|
+
__exportStar(require("./space/pool"), exports);
|
|
32
|
+
__exportStar(require("./execution/"), exports);
|
|
@@ -28,6 +28,8 @@ export interface StreamNodeResolvedInputs {
|
|
|
28
28
|
originalValue: unknown;
|
|
29
29
|
value: unknown;
|
|
30
30
|
type: StreamNodeSpecificationInputType;
|
|
31
|
+
error: boolean;
|
|
32
|
+
errorMessage: string;
|
|
31
33
|
}
|
|
32
34
|
export interface StreamNodeOutput {
|
|
33
35
|
name: string | undefined;
|
|
@@ -45,16 +47,29 @@ export interface StreamSingleNodeResult {
|
|
|
45
47
|
nodeUuid: string;
|
|
46
48
|
failed: boolean;
|
|
47
49
|
startTimestamp: number;
|
|
48
|
-
endTimestamp
|
|
50
|
+
endTimestamp?: number;
|
|
49
51
|
name: string;
|
|
50
52
|
inputs?: StreamNodeResolvedInputs[];
|
|
51
53
|
outputs?: StreamNodeOutput[];
|
|
52
54
|
error?: StreamNodeResultError;
|
|
55
|
+
logs?: string[];
|
|
53
56
|
duration?: number;
|
|
54
57
|
bypassed?: boolean;
|
|
55
58
|
nodeResults?: StreamSingleNodeResult[];
|
|
59
|
+
info?: NodeInfo;
|
|
60
|
+
waiting?: boolean;
|
|
56
61
|
}
|
|
62
|
+
type NodeInfo = {
|
|
63
|
+
runTime: number;
|
|
64
|
+
catalog: {
|
|
65
|
+
name?: string;
|
|
66
|
+
_id?: string;
|
|
67
|
+
url: string;
|
|
68
|
+
version: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
57
71
|
export interface StreamNodeAdditionalConnector {
|
|
58
72
|
name: string;
|
|
59
73
|
targetUuid: string;
|
|
60
74
|
}
|
|
75
|
+
export {};
|
|
@@ -52,7 +52,16 @@ export interface High5ExecutionPackage {
|
|
|
52
52
|
waveCatalogs: WaveCatalog[];
|
|
53
53
|
waveEngine: WaveEngine;
|
|
54
54
|
dry: boolean;
|
|
55
|
+
info: StreamInfo;
|
|
56
|
+
debug: boolean;
|
|
55
57
|
}
|
|
58
|
+
type StreamInfo = {
|
|
59
|
+
target: string;
|
|
60
|
+
webhook?: WebhookInfo;
|
|
61
|
+
};
|
|
62
|
+
type WebhookInfo = {
|
|
63
|
+
callbackUrl: string;
|
|
64
|
+
};
|
|
56
65
|
export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
|
|
57
66
|
hcl: HCloud;
|
|
58
67
|
orgName: string;
|
|
@@ -63,6 +72,7 @@ export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
|
|
|
63
72
|
export interface High5ExecutionPatchLog {
|
|
64
73
|
streamId: string;
|
|
65
74
|
nodeResults: StreamSingleNodeResult[];
|
|
75
|
+
nodeResultsToRemove?: string[];
|
|
66
76
|
}
|
|
67
77
|
export interface StreamRunningNodePatch {
|
|
68
78
|
uuid: string;
|
|
@@ -76,6 +86,8 @@ export interface High5ExecutionPatchStatus {
|
|
|
76
86
|
outcome?: High5ExecutionOutcome;
|
|
77
87
|
runningNodes?: StreamRunningNodePatch[];
|
|
78
88
|
message?: string;
|
|
89
|
+
startDate: number;
|
|
90
|
+
endDate?: number;
|
|
79
91
|
}
|
|
80
92
|
export interface High5ExecutionPatch {
|
|
81
93
|
high5ExecutionPatchStatus: High5ExecutionPatchStatus;
|
|
@@ -124,6 +136,7 @@ export interface StreamNode {
|
|
|
124
136
|
inputs?: StreamNodeResolvedInputs[];
|
|
125
137
|
outputs?: StreamNodeOutput[];
|
|
126
138
|
additionalConnectors?: StreamNodeAdditionalConnector[];
|
|
139
|
+
breakpoint?: boolean;
|
|
127
140
|
}
|
|
128
141
|
export interface High5ExecuteOnAgentRequest {
|
|
129
142
|
organizationName: string;
|
|
@@ -135,3 +148,4 @@ export interface High5ExecuteOnAgentRequest {
|
|
|
135
148
|
export interface High5ExecutionCancelRequest {
|
|
136
149
|
secret: string;
|
|
137
150
|
}
|
|
151
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReducedSpace } from "../../../global";
|
|
2
|
+
import { ReducedOrganization, ReducedUser } from "../../../idp";
|
|
3
|
+
export type Pool = {
|
|
4
|
+
_id: string;
|
|
5
|
+
organization: ReducedOrganization;
|
|
6
|
+
space: ReducedSpace;
|
|
7
|
+
creator: ReducedUser;
|
|
8
|
+
name: string;
|
|
9
|
+
avatarUrl: string;
|
|
10
|
+
numberOfTargets?: number;
|
|
11
|
+
targetSample?: ReducedUser[];
|
|
12
|
+
};
|
|
13
|
+
export type PoolChange = Pool & {
|
|
14
|
+
invalidTargets: {
|
|
15
|
+
notMember: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type PoolTargetPatch = {
|
|
19
|
+
identifiers: string[];
|
|
20
|
+
operation: ArrayOperation;
|
|
21
|
+
};
|
|
22
|
+
export declare enum ArrayOperation {
|
|
23
|
+
ADD = "ADD",
|
|
24
|
+
REPLACE = "REPLACE",
|
|
25
|
+
REMOVE = "REMOVE"
|
|
26
|
+
}
|
|
27
|
+
export type PoolQueryOptions = {
|
|
28
|
+
getTargetsSample?: number;
|
|
29
|
+
getTotalTargetCount?: boolean;
|
|
30
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrayOperation = void 0;
|
|
4
|
+
var ArrayOperation;
|
|
5
|
+
(function (ArrayOperation) {
|
|
6
|
+
ArrayOperation["ADD"] = "ADD";
|
|
7
|
+
ArrayOperation["REPLACE"] = "REPLACE";
|
|
8
|
+
ArrayOperation["REMOVE"] = "REMOVE";
|
|
9
|
+
})(ArrayOperation || (exports.ArrayOperation = ArrayOperation = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface Release {
|
|
2
|
+
version: string;
|
|
3
|
+
link: string;
|
|
4
|
+
date: string;
|
|
5
|
+
commitGroups: CommitGroup[];
|
|
6
|
+
}
|
|
7
|
+
export declare enum CommitType {
|
|
8
|
+
feat = "Features",
|
|
9
|
+
fix = "Bug Fixes",
|
|
10
|
+
perf = "Performance Improvements",
|
|
11
|
+
refactor = "Refactorings",
|
|
12
|
+
docs = "Documentation",
|
|
13
|
+
style = "Style",
|
|
14
|
+
test = "Tests",
|
|
15
|
+
build = "Build",
|
|
16
|
+
ci = "CI",
|
|
17
|
+
chore = "Chore",
|
|
18
|
+
revert = "Reverts",
|
|
19
|
+
breaking = "BREAKING CHANGES"
|
|
20
|
+
}
|
|
21
|
+
export interface CommitGroup {
|
|
22
|
+
title: string;
|
|
23
|
+
type: CommitType;
|
|
24
|
+
commits: Commit[];
|
|
25
|
+
}
|
|
26
|
+
export interface Commit {
|
|
27
|
+
message: string;
|
|
28
|
+
hash: string;
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommitType = void 0;
|
|
4
|
+
var CommitType;
|
|
5
|
+
(function (CommitType) {
|
|
6
|
+
CommitType["feat"] = "Features";
|
|
7
|
+
CommitType["fix"] = "Bug Fixes";
|
|
8
|
+
CommitType["perf"] = "Performance Improvements";
|
|
9
|
+
CommitType["refactor"] = "Refactorings";
|
|
10
|
+
CommitType["docs"] = "Documentation";
|
|
11
|
+
CommitType["style"] = "Style";
|
|
12
|
+
CommitType["test"] = "Tests";
|
|
13
|
+
CommitType["build"] = "Build";
|
|
14
|
+
CommitType["ci"] = "CI";
|
|
15
|
+
CommitType["chore"] = "Chore";
|
|
16
|
+
CommitType["revert"] = "Reverts";
|
|
17
|
+
CommitType["breaking"] = "BREAKING CHANGES";
|
|
18
|
+
})(CommitType || (exports.CommitType = CommitType = {}));
|
|
@@ -15,6 +15,18 @@ export interface EngineRegistry {
|
|
|
15
15
|
url: string;
|
|
16
16
|
}[];
|
|
17
17
|
}
|
|
18
|
+
export interface Wildcard {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
pattern: string;
|
|
22
|
+
output: string;
|
|
23
|
+
}
|
|
24
|
+
export interface WildcardRegistry {
|
|
25
|
+
Agent: Wildcard[];
|
|
26
|
+
Stream: Wildcard[];
|
|
27
|
+
Node: Wildcard[];
|
|
28
|
+
General: Wildcard[];
|
|
29
|
+
}
|
|
18
30
|
export interface WaveEngine {
|
|
19
31
|
_id: string;
|
|
20
32
|
version: string;
|
|
@@ -22,6 +34,7 @@ export interface WaveEngine {
|
|
|
22
34
|
changeLog: string[];
|
|
23
35
|
md5: string;
|
|
24
36
|
dev?: boolean;
|
|
37
|
+
latest?: boolean;
|
|
25
38
|
}
|
|
26
39
|
export interface WaveCatalog {
|
|
27
40
|
_id: string;
|
|
@@ -29,6 +42,7 @@ export interface WaveCatalog {
|
|
|
29
42
|
url: string;
|
|
30
43
|
changeLog: string[];
|
|
31
44
|
dev?: boolean;
|
|
45
|
+
minimumEngineVersion?: string;
|
|
32
46
|
}
|
|
33
47
|
export interface Engine {
|
|
34
48
|
name: string;
|
|
@@ -45,10 +59,12 @@ export interface Catalog {
|
|
|
45
59
|
export interface SpacePatchWaveEngine {
|
|
46
60
|
version: string;
|
|
47
61
|
url: string;
|
|
62
|
+
latest?: boolean;
|
|
48
63
|
}
|
|
49
64
|
export interface SpacePatchWaveCatalog {
|
|
50
65
|
version: string;
|
|
51
66
|
url: string;
|
|
67
|
+
minimumEngineVersion?: string;
|
|
52
68
|
}
|
|
53
69
|
export interface Specification {
|
|
54
70
|
nodes: StreamNodeSpecification[];
|
|
@@ -60,7 +76,7 @@ export interface StreamNodeSpecificationWrappedWithEngineVersion {
|
|
|
60
76
|
export interface StreamNodeSpecification {
|
|
61
77
|
specVersion: number;
|
|
62
78
|
}
|
|
63
|
-
export type StreamNodeSpecifications = StreamNodeSpecificationV1;
|
|
79
|
+
export type StreamNodeSpecifications = StreamNodeSpecificationV1 | StreamNodeSpecificationV2 | StreamNodeSpecificationV3;
|
|
64
80
|
export interface StreamNodeSpecificationV1 extends StreamNodeSpecification {
|
|
65
81
|
specVersion: 1;
|
|
66
82
|
name: string;
|
|
@@ -77,7 +93,32 @@ export interface StreamNodeSpecificationV1 extends StreamNodeSpecification {
|
|
|
77
93
|
path?: string;
|
|
78
94
|
customNode?: StreamCustomNodeSpecification;
|
|
79
95
|
}
|
|
96
|
+
export interface StreamNodeSpecificationV2 extends StreamNodeSpecification {
|
|
97
|
+
specVersion: 2;
|
|
98
|
+
name: string;
|
|
99
|
+
description: string;
|
|
100
|
+
category: string;
|
|
101
|
+
version: StreamSemanticVersion;
|
|
102
|
+
author: StreamNodeSpecificationAuthor;
|
|
103
|
+
tag?: StreamNodeSpecificationTag[];
|
|
104
|
+
inputs?: StreamNodeSpecificationInput[];
|
|
105
|
+
outputs?: StreamNodeSpecificationOutputV2[];
|
|
106
|
+
additionalConnectors?: StreamNodeSpecificationAdditionalConnector[];
|
|
107
|
+
path?: string;
|
|
108
|
+
customNode?: StreamCustomNodeSpecification;
|
|
109
|
+
}
|
|
110
|
+
export type StreamNodeSpecificationV3 = Omit<StreamNodeSpecificationV2, "specVersion"> & {
|
|
111
|
+
specVersion: 3;
|
|
112
|
+
deprecated: boolean;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* This functions will return true when the specVersion is undefined to account for older catalogs/nodes
|
|
116
|
+
* that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
|
|
117
|
+
* has a spec that matches version 1.
|
|
118
|
+
*/
|
|
80
119
|
export declare function isStreamNodeSpecificationV1(s: StreamNodeSpecification): s is StreamNodeSpecificationV1;
|
|
120
|
+
export declare function isStreamNodeSpecificationV2(s: StreamNodeSpecification): s is StreamNodeSpecificationV2;
|
|
121
|
+
export declare function isStreamNodeSpecificationV3(s: StreamNodeSpecification): s is StreamNodeSpecificationV3;
|
|
81
122
|
export interface StreamCustomNodeSpecification {
|
|
82
123
|
_id: string;
|
|
83
124
|
color?: string;
|
|
@@ -124,6 +165,12 @@ export interface StreamNodeSpecificationOutput {
|
|
|
124
165
|
example: unknown;
|
|
125
166
|
howToAccess: string[];
|
|
126
167
|
}
|
|
168
|
+
export interface StreamNodeSpecificationOutputV2 {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
type: StreamNodeSpecificationOutputType;
|
|
172
|
+
example: unknown;
|
|
173
|
+
}
|
|
127
174
|
export declare enum StreamNodeSpecificationInputType {
|
|
128
175
|
STRING = "STRING",
|
|
129
176
|
STRING_LONG = "STRING_LONG",
|
|
@@ -2,8 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StreamNodeSpecificationPackage = exports.StreamNodeSpecificationTag = exports.StreamNodeSpecificationType = exports.StreamNodeSpecificationOutputType = exports.StreamNodeSpecificationInputType = void 0;
|
|
4
4
|
exports.isStreamNodeSpecificationV1 = isStreamNodeSpecificationV1;
|
|
5
|
+
exports.isStreamNodeSpecificationV2 = isStreamNodeSpecificationV2;
|
|
6
|
+
exports.isStreamNodeSpecificationV3 = isStreamNodeSpecificationV3;
|
|
7
|
+
/**
|
|
8
|
+
* This functions will return true when the specVersion is undefined to account for older catalogs/nodes
|
|
9
|
+
* that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
|
|
10
|
+
* has a spec that matches version 1.
|
|
11
|
+
*/
|
|
5
12
|
function isStreamNodeSpecificationV1(s) {
|
|
6
|
-
return s.specVersion === 1;
|
|
13
|
+
return s.specVersion === undefined || s.specVersion === 1;
|
|
14
|
+
}
|
|
15
|
+
function isStreamNodeSpecificationV2(s) {
|
|
16
|
+
return s.specVersion === 2;
|
|
17
|
+
}
|
|
18
|
+
function isStreamNodeSpecificationV3(s) {
|
|
19
|
+
return s.specVersion === 3;
|
|
7
20
|
}
|
|
8
21
|
var StreamNodeSpecificationInputType;
|
|
9
22
|
(function (StreamNodeSpecificationInputType) {
|
|
@@ -29,6 +29,7 @@ export interface OAuthApp {
|
|
|
29
29
|
export type OAuthAppWithConsent = OAuthApp & Omit<OAuthApp, "hcloudClientId" | "clientSecrets" | "callback"> & {
|
|
30
30
|
scopes: Record<Scope, number>;
|
|
31
31
|
};
|
|
32
|
+
export type OAuthAppPublicInfo = Omit<OAuthApp, "clientSecrets" | "callback" | "patId">;
|
|
32
33
|
export interface OAuthAppCreate {
|
|
33
34
|
name: string;
|
|
34
35
|
description?: string;
|
|
@@ -18,6 +18,7 @@ export declare enum Scope {
|
|
|
18
18
|
FUSE_SPACE_WRITE = "fuse:space:write",
|
|
19
19
|
FUSE_SPACE_DELETE = "fuse:space:delete"
|
|
20
20
|
}
|
|
21
|
+
export declare const ScopeDescriptions: Map<string, string>;
|
|
21
22
|
export declare const ScopeDependencies: {
|
|
22
23
|
"hcloud:full": (Scope.IDP_EMAIL_READ | Scope.IDP_USER_READ | Scope.IDP_USER_WRITE | Scope.IDP_USER_DELETE | Scope.IDP_USER_OPEN_ID | Scope.IDP_ORGANIZATION_READ | Scope.IDP_ORGANIZATION_WRITE | Scope.IDP_ORGANIZATION_DELETE | Scope.IDP_ORGANIZATION_ADMIN | Scope.HIGH5_SPACE_READ | Scope.HIGH5_SPACE_EXECUTE | Scope.HIGH5_SPACE_WRITE | Scope.HIGH5_SPACE_DELETE | Scope.FUSE_SPACE_READ | Scope.FUSE_SPACE_EXECUTE | Scope.FUSE_SPACE_WRITE | Scope.FUSE_SPACE_DELETE)[];
|
|
23
24
|
"idp:email:read": never[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScopeDependencies = exports.Scope = void 0;
|
|
3
|
+
exports.ScopeDependencies = exports.ScopeDescriptions = exports.Scope = void 0;
|
|
4
4
|
var Scope;
|
|
5
5
|
(function (Scope) {
|
|
6
6
|
Scope["HCLOUD_FULL"] = "hcloud:full";
|
|
@@ -22,6 +22,26 @@ var Scope;
|
|
|
22
22
|
Scope["FUSE_SPACE_WRITE"] = "fuse:space:write";
|
|
23
23
|
Scope["FUSE_SPACE_DELETE"] = "fuse:space:delete";
|
|
24
24
|
})(Scope || (exports.Scope = Scope = {}));
|
|
25
|
+
exports.ScopeDescriptions = new Map([
|
|
26
|
+
[Scope.HCLOUD_FULL, "Full access to helmut.cloud."],
|
|
27
|
+
[Scope.IDP_EMAIL_READ, "Read user's email address."],
|
|
28
|
+
[Scope.IDP_USER_READ, "Read user details."],
|
|
29
|
+
[Scope.IDP_USER_WRITE, "Create or update users."],
|
|
30
|
+
[Scope.IDP_USER_DELETE, "Delete users."],
|
|
31
|
+
[Scope.IDP_USER_OPEN_ID, "OpenID Connect access."],
|
|
32
|
+
[Scope.IDP_ORGANIZATION_READ, "Read organization info."],
|
|
33
|
+
[Scope.IDP_ORGANIZATION_WRITE, "Create or update organization."],
|
|
34
|
+
[Scope.IDP_ORGANIZATION_DELETE, "Delete organization info."],
|
|
35
|
+
[Scope.IDP_ORGANIZATION_ADMIN, "Full organization admin access."],
|
|
36
|
+
[Scope.HIGH5_SPACE_READ, "Read High5 space data."],
|
|
37
|
+
[Scope.HIGH5_SPACE_EXECUTE, "Execute tasks in High5."],
|
|
38
|
+
[Scope.HIGH5_SPACE_WRITE, "Create or update High5 data."],
|
|
39
|
+
[Scope.HIGH5_SPACE_DELETE, "Delete High5 data."],
|
|
40
|
+
[Scope.FUSE_SPACE_READ, "Read Fuse space data."],
|
|
41
|
+
[Scope.FUSE_SPACE_EXECUTE, "Execute tasks in Fuse."],
|
|
42
|
+
[Scope.FUSE_SPACE_WRITE, "Create or update Fuse data."],
|
|
43
|
+
[Scope.FUSE_SPACE_DELETE, "Delete Fuse data."],
|
|
44
|
+
]);
|
|
25
45
|
exports.ScopeDependencies = {
|
|
26
46
|
[Scope.HCLOUD_FULL]: [...Object.values(Scope).filter(s => s !== Scope.HCLOUD_FULL)],
|
|
27
47
|
[Scope.IDP_EMAIL_READ]: [],
|
|
@@ -5,9 +5,11 @@ interface Totp {
|
|
|
5
5
|
}
|
|
6
6
|
export interface DeactivatedTotp extends Totp {
|
|
7
7
|
activated: false;
|
|
8
|
-
otpAuthUrl: string;
|
|
9
|
-
qrcode: string;
|
|
10
8
|
secret: string;
|
|
9
|
+
algorithm: string;
|
|
10
|
+
digits: number;
|
|
11
|
+
period: number;
|
|
12
|
+
issuer: string;
|
|
11
13
|
}
|
|
12
14
|
export interface ActivatedTotp extends Totp {
|
|
13
15
|
activated: true;
|