hcloud-sdk 15.0.0 → 17.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 +78 -33
- package/lib/Hcloud.d.ts +3 -0
- package/lib/Hcloud.js +7 -0
- package/lib/helper/ValidationHelper.d.ts +66 -0
- package/lib/helper/ValidationHelper.js +312 -0
- package/lib/interfaces/auditor/index.d.ts +10 -4
- package/lib/interfaces/auditor/index.js +4 -0
- package/lib/interfaces/friday/index.d.ts +3 -0
- package/lib/interfaces/friday/index.js +19 -0
- package/lib/interfaces/friday/space/database/document/index.d.ts +34 -0
- package/lib/interfaces/friday/space/database/document/index.js +13 -0
- package/lib/interfaces/friday/space/database/index.d.ts +12 -0
- package/lib/interfaces/friday/space/database/index.js +2 -0
- package/lib/interfaces/friday/space/index.d.ts +21 -0
- package/lib/interfaces/friday/space/index.js +11 -0
- package/lib/interfaces/frontend/config/index.d.ts +1 -0
- package/lib/interfaces/fuse/space/index.d.ts +1 -0
- package/lib/interfaces/global/Products.d.ts +3 -1
- package/lib/interfaces/global/Products.js +2 -0
- package/lib/interfaces/global/Views.d.ts +2 -1
- package/lib/interfaces/global/Views.js +1 -0
- package/lib/interfaces/high5/execution/index.d.ts +43 -0
- package/lib/interfaces/high5/execution/index.js +12 -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 +22 -1
- package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +57 -1
- package/lib/interfaces/high5/space/execution/index.js +8 -0
- package/lib/interfaces/high5/space/index.d.ts +2 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +28 -0
- package/lib/interfaces/high5/space/pool/index.js +2 -0
- package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
- package/lib/interfaces/high5/wave/index.d.ts +26 -4
- package/lib/interfaces/high5/wave/index.js +4 -0
- package/lib/interfaces/idp/index.d.ts +1 -0
- package/lib/interfaces/idp/index.js +1 -0
- package/lib/interfaces/idp/organization/license/index.d.ts +11 -0
- package/lib/interfaces/idp/organization/member/index.d.ts +3 -0
- package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
- package/lib/interfaces/idp/organization/service-accounts.js +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/GeneralSettings.js +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +15 -2
- package/lib/interfaces/idp/user/Scopes.js +39 -1
- package/lib/interfaces/idp/user/Totp.d.ts +4 -2
- package/lib/interfaces/idp/user/index.d.ts +1 -0
- package/lib/interfaces/nats/index.d.ts +92 -5
- package/lib/interfaces/nats/index.js +155 -11
- package/lib/service/agent/bundle/dev/index.d.ts +3 -0
- package/lib/service/agent/bundle/dev/index.js +16 -0
- package/lib/service/agent/context/index.d.ts +5 -0
- package/lib/service/agent/context/index.js +14 -0
- package/lib/service/dali/DaliAvatar.d.ts +22 -4
- package/lib/service/dali/DaliAvatar.js +32 -2
- package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +26 -0
- package/lib/service/dali/avatar/DaliCosmoSpace.js +58 -0
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +1 -1
- package/lib/service/dali/avatar/DaliFuseSpace.js +3 -3
- 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 +1 -1
- package/lib/service/dali/avatar/DaliHigh5Space.js +3 -3
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +26 -0
- package/lib/service/dali/avatar/DaliServiceAccount.js +58 -0
- package/lib/service/friday/index.d.ts +13 -0
- package/lib/service/friday/index.js +35 -0
- package/lib/service/friday/space/database/document/index.d.ts +58 -0
- package/lib/service/friday/space/database/document/index.js +97 -0
- package/lib/service/friday/space/database/index.d.ts +55 -0
- package/lib/service/friday/space/database/index.js +101 -0
- package/lib/service/friday/space/index.d.ts +81 -0
- package/lib/service/friday/space/index.js +150 -0
- package/lib/service/high5/execution/index.d.ts +8 -0
- package/lib/service/high5/execution/index.js +21 -0
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -1
- package/lib/service/high5/space/execution/index.d.ts +31 -1
- package/lib/service/high5/space/execution/index.js +47 -2
- package/lib/service/high5/space/execution/status/index.d.ts +13 -6
- package/lib/service/high5/space/execution/status/index.js +20 -8
- package/lib/service/high5/space/index.d.ts +18 -6
- package/lib/service/high5/space/index.js +30 -7
- 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/wave/s3/index.d.ts +8 -1
- package/lib/service/high5/wave/s3/index.js +29 -8
- package/lib/service/idp/oauth/index.d.ts +2 -2
- package/lib/service/idp/oauth/index.js +12 -13
- package/lib/service/idp/organization/index.d.ts +6 -0
- package/lib/service/idp/organization/index.js +10 -0
- package/lib/service/idp/organization/member/index.d.ts +2 -1
- package/lib/service/idp/organization/member/index.js +2 -1
- package/lib/service/idp/organization/service-accounts/index.d.ts +64 -0
- package/lib/service/idp/organization/service-accounts/index.js +108 -0
- package/lib/service/idp/registration/index.d.ts +1 -1
- package/lib/service/idp/registration/index.js +2 -2
- package/lib/service/idp/user/index.d.ts +4 -0
- package/lib/service/idp/user/index.js +9 -0
- package/lib/service/idp/user/password/index.js +1 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +1 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +1 -1
- package/lib/service/mothership/index.js +0 -1
- package/lib/service/nats/index.js +2 -3
- package/lib/utils/bouncer/features/Provider.js +0 -3
- package/package.json +22 -24
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReducedSpace } from "../../../../global";
|
|
2
|
+
import { ReducedOrganization } from "../../../../idp/organization";
|
|
3
|
+
import { ReducedUser } from "../../../../idp/user";
|
|
4
|
+
declare enum DocumentType {
|
|
5
|
+
STRING = "STRING",
|
|
6
|
+
NUMBER = "NUMBER",
|
|
7
|
+
BOOLEAN = "BOOLEAN",
|
|
8
|
+
STRING_LIST = "STRING_LIST",
|
|
9
|
+
NUMBER_LIST = "NUMBER_LIST",
|
|
10
|
+
BOOLEAN_LIST = "BOOLEAN_LIST",
|
|
11
|
+
OBJECT = "OBJECT",
|
|
12
|
+
ARRAY = "ARRAY"
|
|
13
|
+
}
|
|
14
|
+
interface Document {
|
|
15
|
+
_id: string;
|
|
16
|
+
key: string;
|
|
17
|
+
database: string;
|
|
18
|
+
space: ReducedSpace;
|
|
19
|
+
organization: ReducedOrganization;
|
|
20
|
+
creator: ReducedUser;
|
|
21
|
+
type: DocumentType;
|
|
22
|
+
value: any;
|
|
23
|
+
createDate: number;
|
|
24
|
+
modifyDate: number;
|
|
25
|
+
}
|
|
26
|
+
interface DocumentCreateDto {
|
|
27
|
+
key: string;
|
|
28
|
+
type: DocumentType;
|
|
29
|
+
value: any;
|
|
30
|
+
}
|
|
31
|
+
interface DocumentPatchDto {
|
|
32
|
+
value: any;
|
|
33
|
+
}
|
|
34
|
+
export { Document, DocumentCreateDto, DocumentPatchDto };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DocumentType;
|
|
4
|
+
(function (DocumentType) {
|
|
5
|
+
DocumentType["STRING"] = "STRING";
|
|
6
|
+
DocumentType["NUMBER"] = "NUMBER";
|
|
7
|
+
DocumentType["BOOLEAN"] = "BOOLEAN";
|
|
8
|
+
DocumentType["STRING_LIST"] = "STRING_LIST";
|
|
9
|
+
DocumentType["NUMBER_LIST"] = "NUMBER_LIST";
|
|
10
|
+
DocumentType["BOOLEAN_LIST"] = "BOOLEAN_LIST";
|
|
11
|
+
DocumentType["OBJECT"] = "OBJECT";
|
|
12
|
+
DocumentType["ARRAY"] = "ARRAY";
|
|
13
|
+
})(DocumentType || (DocumentType = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReducedSpace } from "../../../global";
|
|
2
|
+
import { ReducedOrganization } from "../../../idp/organization";
|
|
3
|
+
import { ReducedUser } from "../../../idp/user";
|
|
4
|
+
interface Database {
|
|
5
|
+
_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
space: ReducedSpace;
|
|
8
|
+
organization: ReducedOrganization;
|
|
9
|
+
creator: ReducedUser;
|
|
10
|
+
createDate: number;
|
|
11
|
+
}
|
|
12
|
+
export { Database };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReducedSpace, Space, SpaceEntity } from "../../global";
|
|
2
|
+
import { ReducedOrganization } from "../../idp";
|
|
3
|
+
export interface FridaySpace extends Space {
|
|
4
|
+
highestPermissionOfUser: FridaySpacePermission;
|
|
5
|
+
}
|
|
6
|
+
export interface FridaySpaceEntityPermission {
|
|
7
|
+
organization: ReducedOrganization;
|
|
8
|
+
space: ReducedSpace;
|
|
9
|
+
entityId: string;
|
|
10
|
+
entityName: string;
|
|
11
|
+
type: SpaceEntity;
|
|
12
|
+
permission: FridaySpacePermission;
|
|
13
|
+
avatarUrl: string;
|
|
14
|
+
}
|
|
15
|
+
export declare enum FridaySpacePermission {
|
|
16
|
+
NONE = "NONE",
|
|
17
|
+
READ = "READ",
|
|
18
|
+
WRITE = "WRITE",
|
|
19
|
+
MANAGE = "MANAGE",
|
|
20
|
+
OWNER = "OWNER"
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FridaySpacePermission = void 0;
|
|
4
|
+
var FridaySpacePermission;
|
|
5
|
+
(function (FridaySpacePermission) {
|
|
6
|
+
FridaySpacePermission["NONE"] = "NONE";
|
|
7
|
+
FridaySpacePermission["READ"] = "READ";
|
|
8
|
+
FridaySpacePermission["WRITE"] = "WRITE";
|
|
9
|
+
FridaySpacePermission["MANAGE"] = "MANAGE";
|
|
10
|
+
FridaySpacePermission["OWNER"] = "OWNER";
|
|
11
|
+
})(FridaySpacePermission || (exports.FridaySpacePermission = FridaySpacePermission = {}));
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DesignerNode } from "../space/event/stream/design/StreamDesign";
|
|
2
|
+
import { StreamNode } from "../space/execution";
|
|
3
|
+
export type DebugCommand = ContinueDebugCommand | StepBackDebugCommand | StepForwardDebugCommand | SetValueDebugCommand | ReplaceNodeDebugCommand | RestartDebugCommand;
|
|
4
|
+
export declare enum CommandType {
|
|
5
|
+
CONTINUE = "CONTINUE",
|
|
6
|
+
STEP_BACK = "STEP_BACK",
|
|
7
|
+
STEP_FORWARD = "STEP_FORWARD",
|
|
8
|
+
SET_VALUE = "SET_VALUE",
|
|
9
|
+
REPLACE_NODE = "REPLACE_NODE",
|
|
10
|
+
RESTART = "RESTART"
|
|
11
|
+
}
|
|
12
|
+
export type ContinueDebugCommand = {
|
|
13
|
+
type: CommandType.CONTINUE;
|
|
14
|
+
};
|
|
15
|
+
export type StepBackDebugCommand = {
|
|
16
|
+
type: CommandType.STEP_BACK;
|
|
17
|
+
};
|
|
18
|
+
export type StepForwardDebugCommand = {
|
|
19
|
+
type: CommandType.STEP_FORWARD;
|
|
20
|
+
};
|
|
21
|
+
export type SetValueDebugCommand = {
|
|
22
|
+
type: CommandType.SET_VALUE;
|
|
23
|
+
uuid: string;
|
|
24
|
+
key: string;
|
|
25
|
+
value: unknown;
|
|
26
|
+
};
|
|
27
|
+
export type ReplaceNodeDebugCommand = {
|
|
28
|
+
type: CommandType.REPLACE_NODE;
|
|
29
|
+
node: DesignerNode;
|
|
30
|
+
};
|
|
31
|
+
export type RestartDebugCommand = {
|
|
32
|
+
type: CommandType.RESTART;
|
|
33
|
+
};
|
|
34
|
+
export type IssuedDebugCommand = IssuedContinueDebugCommand | IssuedStepBackDebugCommand | IssuedStepForwardDebugCommand | IssuedSetValueDebugCommand | IssuedReplaceNodeDebugCommand | IssuedRestartDebugCommand;
|
|
35
|
+
export type IssuedContinueDebugCommand = ContinueDebugCommand;
|
|
36
|
+
export type IssuedStepBackDebugCommand = StepBackDebugCommand;
|
|
37
|
+
export type IssuedStepForwardDebugCommand = StepForwardDebugCommand;
|
|
38
|
+
export type IssuedSetValueDebugCommand = SetValueDebugCommand;
|
|
39
|
+
export type IssuedReplaceNodeDebugCommand = {
|
|
40
|
+
type: CommandType.REPLACE_NODE;
|
|
41
|
+
node: StreamNode;
|
|
42
|
+
};
|
|
43
|
+
export type IssuedRestartDebugCommand = RestartDebugCommand;
|
|
@@ -0,0 +1,12 @@
|
|
|
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["REPLACE_NODE"] = "REPLACE_NODE";
|
|
11
|
+
CommandType["RESTART"] = "RESTART";
|
|
12
|
+
})(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);
|
|
@@ -4,6 +4,10 @@ import { StreamNodeSpecificationInputType, StreamNodeSpecificationOutputType } f
|
|
|
4
4
|
export declare enum NodeCategory {
|
|
5
5
|
CUSTOM = "CUSTOM"
|
|
6
6
|
}
|
|
7
|
+
export declare enum NodeType {
|
|
8
|
+
CUSTOM = "CUSTOM",
|
|
9
|
+
CATALOG = "CATALOG"
|
|
10
|
+
}
|
|
7
11
|
export interface Node {
|
|
8
12
|
_id: string;
|
|
9
13
|
secret: string;
|
|
@@ -22,6 +26,8 @@ export interface Node {
|
|
|
22
26
|
*/
|
|
23
27
|
createDate: number;
|
|
24
28
|
modifyDate: number;
|
|
29
|
+
color: string;
|
|
30
|
+
nodeType: NodeType;
|
|
25
31
|
}
|
|
26
32
|
export interface StreamNodeResolvedInputs {
|
|
27
33
|
name: string;
|
|
@@ -47,16 +53,31 @@ export interface StreamSingleNodeResult {
|
|
|
47
53
|
nodeUuid: string;
|
|
48
54
|
failed: boolean;
|
|
49
55
|
startTimestamp: number;
|
|
50
|
-
endTimestamp
|
|
56
|
+
endTimestamp?: number;
|
|
51
57
|
name: string;
|
|
52
58
|
inputs?: StreamNodeResolvedInputs[];
|
|
53
59
|
outputs?: StreamNodeOutput[];
|
|
54
60
|
error?: StreamNodeResultError;
|
|
61
|
+
logs?: string[];
|
|
55
62
|
duration?: number;
|
|
56
63
|
bypassed?: boolean;
|
|
57
64
|
nodeResults?: StreamSingleNodeResult[];
|
|
65
|
+
info?: NodeInfo;
|
|
66
|
+
waiting?: boolean;
|
|
67
|
+
additionalConnectorRoot?: string;
|
|
58
68
|
}
|
|
69
|
+
type NodeInfo = {
|
|
70
|
+
runTime: number;
|
|
71
|
+
catalog?: {
|
|
72
|
+
name?: string;
|
|
73
|
+
url: string;
|
|
74
|
+
version: string;
|
|
75
|
+
};
|
|
76
|
+
color?: string;
|
|
77
|
+
nodeType?: NodeType;
|
|
78
|
+
};
|
|
59
79
|
export interface StreamNodeAdditionalConnector {
|
|
60
80
|
name: string;
|
|
61
81
|
targetUuid: string;
|
|
62
82
|
}
|
|
83
|
+
export {};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeCategory = void 0;
|
|
3
|
+
exports.NodeType = exports.NodeCategory = void 0;
|
|
4
4
|
var NodeCategory;
|
|
5
5
|
(function (NodeCategory) {
|
|
6
6
|
NodeCategory["CUSTOM"] = "CUSTOM";
|
|
7
7
|
})(NodeCategory || (exports.NodeCategory = NodeCategory = {}));
|
|
8
|
+
var NodeType;
|
|
9
|
+
(function (NodeType) {
|
|
10
|
+
NodeType["CUSTOM"] = "CUSTOM";
|
|
11
|
+
NodeType["CATALOG"] = "CATALOG";
|
|
12
|
+
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
@@ -4,7 +4,7 @@ import { ReducedOrganization, ReducedUser } from "../../../idp";
|
|
|
4
4
|
import { WaveCatalog, WaveEngine } from "../../wave";
|
|
5
5
|
import { ReducedEvent } from "../event";
|
|
6
6
|
import { DesignBuild } from "../event/stream";
|
|
7
|
-
import { StreamNodeAdditionalConnector, StreamNodeOutput, StreamNodeResolvedInputs, StreamSingleNodeResult } from "../event/stream/node";
|
|
7
|
+
import { NodeType, StreamNodeAdditionalConnector, StreamNodeOutput, StreamNodeResolvedInputs, StreamSingleNodeResult } from "../event/stream/node";
|
|
8
8
|
export declare enum High5ExecutionPayloadType {
|
|
9
9
|
JSON = "JSON",
|
|
10
10
|
GENERIC = "GENERIC"
|
|
@@ -17,6 +17,7 @@ export interface High5ExecutionRequest {
|
|
|
17
17
|
payload: High5ExecutionPayload;
|
|
18
18
|
target: string;
|
|
19
19
|
dry?: boolean;
|
|
20
|
+
parentExecutionSecret?: string;
|
|
20
21
|
}
|
|
21
22
|
export interface High5ExecuteAgentResponse {
|
|
22
23
|
failed: boolean;
|
|
@@ -25,6 +26,7 @@ export interface High5ExecuteAgentResponse {
|
|
|
25
26
|
export declare enum High5ExecutionState {
|
|
26
27
|
QUEUED = "QUEUED",
|
|
27
28
|
RUNNING = "RUNNING",
|
|
29
|
+
WAITING = "WAITING",
|
|
28
30
|
COMPLETED = "COMPLETED"
|
|
29
31
|
}
|
|
30
32
|
export declare enum High5ExecutionOutcome {
|
|
@@ -53,24 +55,41 @@ export interface High5ExecutionPackage {
|
|
|
53
55
|
waveEngine: WaveEngine;
|
|
54
56
|
dry: boolean;
|
|
55
57
|
info: StreamInfo;
|
|
58
|
+
debug: boolean;
|
|
59
|
+
executionId: string;
|
|
56
60
|
}
|
|
57
61
|
type StreamInfo = {
|
|
58
62
|
target: string;
|
|
59
63
|
webhook?: WebhookInfo;
|
|
64
|
+
triggerDetails?: TriggerDetails;
|
|
60
65
|
};
|
|
61
66
|
type WebhookInfo = {
|
|
62
67
|
callbackUrl: string;
|
|
63
68
|
};
|
|
69
|
+
type TriggerDetails = {
|
|
70
|
+
source: TriggerSource;
|
|
71
|
+
ip: string;
|
|
72
|
+
country: string;
|
|
73
|
+
};
|
|
74
|
+
declare enum TriggerSource {
|
|
75
|
+
webhook = "webhook",
|
|
76
|
+
api = "api",
|
|
77
|
+
sdk = "sdk",
|
|
78
|
+
stream = "stream"
|
|
79
|
+
}
|
|
64
80
|
export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
|
|
65
81
|
hcl: HCloud;
|
|
66
82
|
orgName: string;
|
|
67
83
|
spaceName: string;
|
|
68
84
|
streamId: string;
|
|
69
85
|
secret: string;
|
|
86
|
+
targetEmail: string;
|
|
87
|
+
poolName?: string;
|
|
70
88
|
}
|
|
71
89
|
export interface High5ExecutionPatchLog {
|
|
72
90
|
streamId: string;
|
|
73
91
|
nodeResults: StreamSingleNodeResult[];
|
|
92
|
+
nodeResultsToRemove?: string[];
|
|
74
93
|
}
|
|
75
94
|
export interface StreamRunningNodePatch {
|
|
76
95
|
uuid: string;
|
|
@@ -78,6 +97,14 @@ export interface StreamRunningNodePatch {
|
|
|
78
97
|
progress: number;
|
|
79
98
|
message: string;
|
|
80
99
|
}
|
|
100
|
+
interface ReducedAgentInfo {
|
|
101
|
+
bundleVersion?: string;
|
|
102
|
+
osRelease?: string;
|
|
103
|
+
osVersion?: string;
|
|
104
|
+
cpu?: string;
|
|
105
|
+
cpuArchitecture?: string;
|
|
106
|
+
ip?: string;
|
|
107
|
+
}
|
|
81
108
|
export interface High5ExecutionPatchStatus {
|
|
82
109
|
streamId: string;
|
|
83
110
|
state?: High5ExecutionState;
|
|
@@ -86,6 +113,7 @@ export interface High5ExecutionPatchStatus {
|
|
|
86
113
|
message?: string;
|
|
87
114
|
startDate: number;
|
|
88
115
|
endDate?: number;
|
|
116
|
+
agentInfo?: ReducedAgentInfo;
|
|
89
117
|
}
|
|
90
118
|
export interface High5ExecutionPatch {
|
|
91
119
|
high5ExecutionPatchStatus: High5ExecutionPatchStatus;
|
|
@@ -105,10 +133,15 @@ export interface High5ExecutionStatus {
|
|
|
105
133
|
message: string;
|
|
106
134
|
runningNodes: StreamRunningNode[];
|
|
107
135
|
target: string;
|
|
136
|
+
triggerSource?: TriggerSource;
|
|
108
137
|
dry: boolean;
|
|
109
138
|
createDate: number;
|
|
110
139
|
startDate: number;
|
|
111
140
|
endDate: number;
|
|
141
|
+
debug?: boolean;
|
|
142
|
+
agentInfo?: ReducedAgentInfo;
|
|
143
|
+
waveEngineVersion?: string;
|
|
144
|
+
isPoolExecution?: boolean;
|
|
112
145
|
}
|
|
113
146
|
export interface High5ExecutionLog {
|
|
114
147
|
_id: string;
|
|
@@ -134,6 +167,9 @@ export interface StreamNode {
|
|
|
134
167
|
inputs?: StreamNodeResolvedInputs[];
|
|
135
168
|
outputs?: StreamNodeOutput[];
|
|
136
169
|
additionalConnectors?: StreamNodeAdditionalConnector[];
|
|
170
|
+
breakpoint?: boolean;
|
|
171
|
+
color?: string;
|
|
172
|
+
nodeType?: NodeType;
|
|
137
173
|
}
|
|
138
174
|
export interface High5ExecuteOnAgentRequest {
|
|
139
175
|
organizationName: string;
|
|
@@ -145,4 +181,24 @@ export interface High5ExecuteOnAgentRequest {
|
|
|
145
181
|
export interface High5ExecutionCancelRequest {
|
|
146
182
|
secret: string;
|
|
147
183
|
}
|
|
184
|
+
export interface ExecutionTreeNode {
|
|
185
|
+
executionStatusId: string;
|
|
186
|
+
orgName: string;
|
|
187
|
+
spaceName: string;
|
|
188
|
+
eventName: string;
|
|
189
|
+
streamName: string;
|
|
190
|
+
streamId: string;
|
|
191
|
+
state: High5ExecutionState;
|
|
192
|
+
outcome: High5ExecutionOutcome;
|
|
193
|
+
message?: string;
|
|
194
|
+
runningNodes: StreamRunningNode[];
|
|
195
|
+
target: string;
|
|
196
|
+
triggerSource: TriggerSource;
|
|
197
|
+
startDate: number;
|
|
198
|
+
endDate: number;
|
|
199
|
+
children: ExecutionTreeNode[];
|
|
200
|
+
}
|
|
201
|
+
export interface ExecutionTree {
|
|
202
|
+
root: ExecutionTreeNode;
|
|
203
|
+
}
|
|
148
204
|
export {};
|
|
@@ -10,6 +10,7 @@ var High5ExecutionState;
|
|
|
10
10
|
(function (High5ExecutionState) {
|
|
11
11
|
High5ExecutionState["QUEUED"] = "QUEUED";
|
|
12
12
|
High5ExecutionState["RUNNING"] = "RUNNING";
|
|
13
|
+
High5ExecutionState["WAITING"] = "WAITING";
|
|
13
14
|
High5ExecutionState["COMPLETED"] = "COMPLETED";
|
|
14
15
|
})(High5ExecutionState || (exports.High5ExecutionState = High5ExecutionState = {}));
|
|
15
16
|
var High5ExecutionOutcome;
|
|
@@ -19,3 +20,10 @@ var High5ExecutionOutcome;
|
|
|
19
20
|
High5ExecutionOutcome["FAILED"] = "FAILED";
|
|
20
21
|
High5ExecutionOutcome["CANCELED"] = "CANCELED";
|
|
21
22
|
})(High5ExecutionOutcome || (exports.High5ExecutionOutcome = High5ExecutionOutcome = {}));
|
|
23
|
+
var TriggerSource;
|
|
24
|
+
(function (TriggerSource) {
|
|
25
|
+
TriggerSource["webhook"] = "webhook";
|
|
26
|
+
TriggerSource["api"] = "api";
|
|
27
|
+
TriggerSource["sdk"] = "sdk";
|
|
28
|
+
TriggerSource["stream"] = "stream";
|
|
29
|
+
})(TriggerSource || (TriggerSource = {}));
|
|
@@ -3,6 +3,7 @@ import { ReducedOrganization } from "../../idp";
|
|
|
3
3
|
export interface High5Space extends Space {
|
|
4
4
|
highestPermissionOfUser: High5SpacePermission;
|
|
5
5
|
waveEngine: string;
|
|
6
|
+
enableDev?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface High5SpaceEntityPermission {
|
|
8
9
|
organization: ReducedOrganization;
|
|
@@ -12,6 +13,7 @@ export interface High5SpaceEntityPermission {
|
|
|
12
13
|
type: SpaceEntity;
|
|
13
14
|
permission: High5SpacePermission;
|
|
14
15
|
avatarUrl: string;
|
|
16
|
+
serviceAccount?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export declare enum High5SpacePermission {
|
|
17
19
|
NONE = "NONE",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReducedSpace } from "../../../global";
|
|
2
|
+
import { ReducedOrganization, ReducedUser, TeamUsersPatchOperation } 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
|
+
createDate: number;
|
|
13
|
+
modifyDate: number;
|
|
14
|
+
};
|
|
15
|
+
export type PoolChange = Pool & {
|
|
16
|
+
targets: ReducedUser[];
|
|
17
|
+
invalidTargets: {
|
|
18
|
+
notMember: string[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type PoolTargetPatch = {
|
|
22
|
+
identifiers: string[];
|
|
23
|
+
operation: TeamUsersPatchOperation;
|
|
24
|
+
};
|
|
25
|
+
export type PoolQueryOptions = {
|
|
26
|
+
getTargetsSample?: number;
|
|
27
|
+
getTotalTargetCount?: boolean;
|
|
28
|
+
};
|
|
@@ -51,11 +51,13 @@ export interface Webhook {
|
|
|
51
51
|
statusCode: number;
|
|
52
52
|
error?: string;
|
|
53
53
|
};
|
|
54
|
+
callbackEnabled: boolean;
|
|
54
55
|
}
|
|
55
|
-
export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings">;
|
|
56
|
+
export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings" | "callbackEnabled">;
|
|
56
57
|
export type WebhookUpdate = Partial<WebhookCreate> & {
|
|
57
58
|
deleteWebhookEncryptionSettings?: boolean;
|
|
58
59
|
deleteSecurityHeaders?: boolean;
|
|
60
|
+
callbackEnabled?: boolean;
|
|
59
61
|
};
|
|
60
62
|
export interface WebhookLog {
|
|
61
63
|
_id: string;
|
|
@@ -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;
|
|
@@ -64,7 +76,7 @@ export interface StreamNodeSpecificationWrappedWithEngineVersion {
|
|
|
64
76
|
export interface StreamNodeSpecification {
|
|
65
77
|
specVersion: number;
|
|
66
78
|
}
|
|
67
|
-
export type StreamNodeSpecifications = StreamNodeSpecificationV1 | StreamNodeSpecificationV2;
|
|
79
|
+
export type StreamNodeSpecifications = StreamNodeSpecificationV1 | StreamNodeSpecificationV2 | StreamNodeSpecificationV3;
|
|
68
80
|
export interface StreamNodeSpecificationV1 extends StreamNodeSpecification {
|
|
69
81
|
specVersion: 1;
|
|
70
82
|
name: string;
|
|
@@ -95,6 +107,10 @@ export interface StreamNodeSpecificationV2 extends StreamNodeSpecification {
|
|
|
95
107
|
path?: string;
|
|
96
108
|
customNode?: StreamCustomNodeSpecification;
|
|
97
109
|
}
|
|
110
|
+
export type StreamNodeSpecificationV3 = Omit<StreamNodeSpecificationV2, "specVersion"> & {
|
|
111
|
+
specVersion: 3;
|
|
112
|
+
deprecated: boolean;
|
|
113
|
+
};
|
|
98
114
|
/**
|
|
99
115
|
* This functions will return true when the specVersion is undefined to account for older catalogs/nodes
|
|
100
116
|
* that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
|
|
@@ -102,6 +118,7 @@ export interface StreamNodeSpecificationV2 extends StreamNodeSpecification {
|
|
|
102
118
|
*/
|
|
103
119
|
export declare function isStreamNodeSpecificationV1(s: StreamNodeSpecification): s is StreamNodeSpecificationV1;
|
|
104
120
|
export declare function isStreamNodeSpecificationV2(s: StreamNodeSpecification): s is StreamNodeSpecificationV2;
|
|
121
|
+
export declare function isStreamNodeSpecificationV3(s: StreamNodeSpecification): s is StreamNodeSpecificationV3;
|
|
105
122
|
export interface StreamCustomNodeSpecification {
|
|
106
123
|
_id: string;
|
|
107
124
|
color?: string;
|
|
@@ -131,15 +148,20 @@ export interface StreamNodeSpecificationAdditionalConnector {
|
|
|
131
148
|
export type StreamNodeSpecificationInput = {
|
|
132
149
|
name: string;
|
|
133
150
|
description: string;
|
|
134
|
-
defaultValue?: any;
|
|
135
151
|
example: any;
|
|
136
152
|
advanced?: boolean;
|
|
137
|
-
mandatory?: boolean;
|
|
138
153
|
} & ({
|
|
139
|
-
type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT>;
|
|
154
|
+
type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT | StreamNodeSpecificationInputType.BOOLEAN>;
|
|
155
|
+
defaultValue?: any;
|
|
156
|
+
mandatory?: boolean;
|
|
140
157
|
} | {
|
|
141
158
|
type: StreamNodeSpecificationInputType.STRING_SELECT;
|
|
142
159
|
options: Record<string, string | number>;
|
|
160
|
+
defaultValue?: string;
|
|
161
|
+
mandatory?: boolean;
|
|
162
|
+
} | {
|
|
163
|
+
type: StreamNodeSpecificationInputType.BOOLEAN;
|
|
164
|
+
defaultValue: boolean;
|
|
143
165
|
});
|
|
144
166
|
export interface StreamNodeSpecificationOutput {
|
|
145
167
|
name: string;
|
|
@@ -3,6 +3,7 @@ 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
5
|
exports.isStreamNodeSpecificationV2 = isStreamNodeSpecificationV2;
|
|
6
|
+
exports.isStreamNodeSpecificationV3 = isStreamNodeSpecificationV3;
|
|
6
7
|
/**
|
|
7
8
|
* This functions will return true when the specVersion is undefined to account for older catalogs/nodes
|
|
8
9
|
* that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
|
|
@@ -14,6 +15,9 @@ function isStreamNodeSpecificationV1(s) {
|
|
|
14
15
|
function isStreamNodeSpecificationV2(s) {
|
|
15
16
|
return s.specVersion === 2;
|
|
16
17
|
}
|
|
18
|
+
function isStreamNodeSpecificationV3(s) {
|
|
19
|
+
return s.specVersion === 3;
|
|
20
|
+
}
|
|
17
21
|
var StreamNodeSpecificationInputType;
|
|
18
22
|
(function (StreamNodeSpecificationInputType) {
|
|
19
23
|
StreamNodeSpecificationInputType["STRING"] = "STRING";
|
|
@@ -6,6 +6,7 @@ export * from "./organization/team";
|
|
|
6
6
|
export * from "./organization/settings/domain";
|
|
7
7
|
export * from "./organization/settings/domain/saml";
|
|
8
8
|
export * from "./organization/settings/oauthApp";
|
|
9
|
+
export * from "./organization/service-accounts";
|
|
9
10
|
export * from "./user/GeneralSettings";
|
|
10
11
|
export * from "./user/Pat";
|
|
11
12
|
export * from "./user/Scopes";
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./organization/team"), exports);
|
|
|
23
23
|
__exportStar(require("./organization/settings/domain"), exports);
|
|
24
24
|
__exportStar(require("./organization/settings/domain/saml"), exports);
|
|
25
25
|
__exportStar(require("./organization/settings/oauthApp"), exports);
|
|
26
|
+
__exportStar(require("./organization/service-accounts"), exports);
|
|
26
27
|
__exportStar(require("./user/GeneralSettings"), exports);
|
|
27
28
|
__exportStar(require("./user/Pat"), exports);
|
|
28
29
|
__exportStar(require("./user/Scopes"), exports);
|
|
@@ -71,6 +71,17 @@ export type LicenseQuota = {
|
|
|
71
71
|
};
|
|
72
72
|
secondBaseExecutions: boolean;
|
|
73
73
|
};
|
|
74
|
+
friday: {
|
|
75
|
+
spaces: {
|
|
76
|
+
quota: number;
|
|
77
|
+
databases: {
|
|
78
|
+
quota: number;
|
|
79
|
+
documents: {
|
|
80
|
+
quota: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
74
85
|
};
|
|
75
86
|
export declare enum LicenseTier {
|
|
76
87
|
FREE = "FREE",
|