hcloud-sdk 16.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.
Files changed (80) hide show
  1. package/changelog.md +78 -51
  2. package/lib/Hcloud.d.ts +3 -0
  3. package/lib/Hcloud.js +7 -0
  4. package/lib/helper/ValidationHelper.d.ts +66 -0
  5. package/lib/helper/ValidationHelper.js +312 -0
  6. package/lib/interfaces/auditor/index.d.ts +6 -2
  7. package/lib/interfaces/auditor/index.js +4 -0
  8. package/lib/interfaces/friday/index.d.ts +3 -0
  9. package/lib/interfaces/friday/index.js +19 -0
  10. package/lib/interfaces/friday/space/database/document/index.d.ts +34 -0
  11. package/lib/interfaces/friday/space/database/document/index.js +13 -0
  12. package/lib/interfaces/friday/space/database/index.d.ts +12 -0
  13. package/lib/interfaces/friday/space/database/index.js +2 -0
  14. package/lib/interfaces/friday/space/index.d.ts +21 -0
  15. package/lib/interfaces/friday/space/index.js +11 -0
  16. package/lib/interfaces/frontend/config/index.d.ts +1 -0
  17. package/lib/interfaces/fuse/space/index.d.ts +1 -0
  18. package/lib/interfaces/global/Products.d.ts +3 -1
  19. package/lib/interfaces/global/Products.js +2 -0
  20. package/lib/interfaces/global/Views.d.ts +2 -1
  21. package/lib/interfaces/global/Views.js +1 -0
  22. package/lib/interfaces/high5/execution/index.d.ts +23 -2
  23. package/lib/interfaces/high5/execution/index.js +2 -0
  24. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +10 -2
  25. package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
  26. package/lib/interfaces/high5/space/execution/index.d.ts +54 -1
  27. package/lib/interfaces/high5/space/execution/index.js +8 -0
  28. package/lib/interfaces/high5/space/index.d.ts +2 -0
  29. package/lib/interfaces/high5/space/pool/index.d.ts +5 -7
  30. package/lib/interfaces/high5/space/pool/index.js +0 -7
  31. package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
  32. package/lib/interfaces/high5/wave/index.d.ts +8 -3
  33. package/lib/interfaces/idp/index.d.ts +1 -0
  34. package/lib/interfaces/idp/index.js +1 -0
  35. package/lib/interfaces/idp/organization/license/index.d.ts +11 -0
  36. package/lib/interfaces/idp/organization/member/index.d.ts +1 -0
  37. package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
  38. package/lib/interfaces/idp/organization/service-accounts.js +2 -0
  39. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  40. package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
  41. package/lib/interfaces/idp/user/Scopes.d.ts +14 -2
  42. package/lib/interfaces/idp/user/Scopes.js +18 -0
  43. package/lib/interfaces/nats/index.d.ts +68 -9
  44. package/lib/interfaces/nats/index.js +100 -12
  45. package/lib/service/agent/context/index.d.ts +5 -0
  46. package/lib/service/agent/context/index.js +14 -0
  47. package/lib/service/dali/DaliAvatar.d.ts +12 -0
  48. package/lib/service/dali/DaliAvatar.js +20 -0
  49. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +26 -0
  50. package/lib/service/dali/avatar/DaliCosmoSpace.js +58 -0
  51. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +26 -0
  52. package/lib/service/dali/avatar/DaliServiceAccount.js +58 -0
  53. package/lib/service/friday/index.d.ts +13 -0
  54. package/lib/service/friday/index.js +35 -0
  55. package/lib/service/friday/space/database/document/index.d.ts +58 -0
  56. package/lib/service/friday/space/database/document/index.js +97 -0
  57. package/lib/service/friday/space/database/index.d.ts +55 -0
  58. package/lib/service/friday/space/database/index.js +101 -0
  59. package/lib/service/friday/space/index.d.ts +81 -0
  60. package/lib/service/friday/space/index.js +150 -0
  61. package/lib/service/high5/space/event/stream/design/DesignOperations.js +3 -1
  62. package/lib/service/high5/space/execution/index.d.ts +4 -1
  63. package/lib/service/high5/space/execution/index.js +8 -2
  64. package/lib/service/high5/space/execution/status/index.d.ts +13 -6
  65. package/lib/service/high5/space/execution/status/index.js +20 -8
  66. package/lib/service/high5/space/index.d.ts +15 -6
  67. package/lib/service/high5/space/index.js +23 -7
  68. package/lib/service/high5/wave/s3/index.js +17 -10
  69. package/lib/service/idp/organization/index.d.ts +6 -0
  70. package/lib/service/idp/organization/index.js +10 -0
  71. package/lib/service/idp/organization/member/index.d.ts +2 -1
  72. package/lib/service/idp/organization/member/index.js +2 -1
  73. package/lib/service/idp/organization/service-accounts/index.d.ts +64 -0
  74. package/lib/service/idp/organization/service-accounts/index.js +108 -0
  75. package/lib/service/idp/user/index.js +1 -0
  76. package/lib/service/idp/user/password/index.js +1 -1
  77. package/lib/service/mothership/index.js +0 -1
  78. package/lib/service/nats/index.js +2 -3
  79. package/lib/utils/bouncer/features/Provider.js +0 -3
  80. 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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 = {}));
@@ -30,4 +30,5 @@ export interface Config {
30
30
  reCAPTCHA: string;
31
31
  regions: Region[];
32
32
  oidc: OIDCProvider[];
33
+ prefer?: string;
33
34
  }
@@ -11,6 +11,7 @@ export interface FuseSpaceEntityPermission {
11
11
  type: SpaceEntity;
12
12
  permission: FuseSpacePermission;
13
13
  avatarUrl: string;
14
+ serviceAccount?: boolean;
14
15
  }
15
16
  export declare enum FuseSpacePermission {
16
17
  NONE = "NONE",
@@ -7,5 +7,7 @@ export declare enum Products {
7
7
  dali = "dali",
8
8
  client = "client",
9
9
  all = "all",
10
- mothership = "mothership"
10
+ mothership = "mothership",
11
+ cosmo = "cosmo",
12
+ friday = "friday"
11
13
  }
@@ -12,4 +12,6 @@ var Products;
12
12
  Products["client"] = "client";
13
13
  Products["all"] = "all";
14
14
  Products["mothership"] = "mothership";
15
+ Products["cosmo"] = "cosmo";
16
+ Products["friday"] = "friday";
15
17
  })(Products || (exports.Products = Products = {}));
@@ -4,5 +4,6 @@ export declare enum Views {
4
4
  high5 = "/high5",
5
5
  auditor = "/auditor",
6
6
  mailer = "/mailer",
7
- fuse = "/fuse"
7
+ fuse = "/fuse",
8
+ cosmo = "/cosmo"
8
9
  }
@@ -9,4 +9,5 @@ var Views;
9
9
  Views["auditor"] = "/auditor";
10
10
  Views["mailer"] = "/mailer";
11
11
  Views["fuse"] = "/fuse";
12
+ Views["cosmo"] = "/cosmo";
12
13
  })(Views || (exports.Views = Views = {}));
@@ -1,9 +1,13 @@
1
- export type DebugCommand = ContinueDebugCommand | StepBackDebugCommand | StepForwardDebugCommand | SetValueDebugCommand;
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;
2
4
  export declare enum CommandType {
3
5
  CONTINUE = "CONTINUE",
4
6
  STEP_BACK = "STEP_BACK",
5
7
  STEP_FORWARD = "STEP_FORWARD",
6
- SET_VALUE = "SET_VALUE"
8
+ SET_VALUE = "SET_VALUE",
9
+ REPLACE_NODE = "REPLACE_NODE",
10
+ RESTART = "RESTART"
7
11
  }
8
12
  export type ContinueDebugCommand = {
9
13
  type: CommandType.CONTINUE;
@@ -20,3 +24,20 @@ export type SetValueDebugCommand = {
20
24
  key: string;
21
25
  value: unknown;
22
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;
@@ -7,4 +7,6 @@ var CommandType;
7
7
  CommandType["STEP_BACK"] = "STEP_BACK";
8
8
  CommandType["STEP_FORWARD"] = "STEP_FORWARD";
9
9
  CommandType["SET_VALUE"] = "SET_VALUE";
10
+ CommandType["REPLACE_NODE"] = "REPLACE_NODE";
11
+ CommandType["RESTART"] = "RESTART";
10
12
  })(CommandType || (exports.CommandType = CommandType = {}));
@@ -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;
@@ -58,15 +64,17 @@ export interface StreamSingleNodeResult {
58
64
  nodeResults?: StreamSingleNodeResult[];
59
65
  info?: NodeInfo;
60
66
  waiting?: boolean;
67
+ additionalConnectorRoot?: string;
61
68
  }
62
69
  type NodeInfo = {
63
70
  runTime: number;
64
- catalog: {
71
+ catalog?: {
65
72
  name?: string;
66
- _id?: string;
67
73
  url: string;
68
74
  version: string;
69
75
  };
76
+ color?: string;
77
+ nodeType?: NodeType;
70
78
  };
71
79
  export interface StreamNodeAdditionalConnector {
72
80
  name: string;
@@ -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 {
@@ -54,20 +56,35 @@ export interface High5ExecutionPackage {
54
56
  dry: boolean;
55
57
  info: StreamInfo;
56
58
  debug: boolean;
59
+ executionId: string;
57
60
  }
58
61
  type StreamInfo = {
59
62
  target: string;
60
63
  webhook?: WebhookInfo;
64
+ triggerDetails?: TriggerDetails;
61
65
  };
62
66
  type WebhookInfo = {
63
67
  callbackUrl: string;
64
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
+ }
65
80
  export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
66
81
  hcl: HCloud;
67
82
  orgName: string;
68
83
  spaceName: string;
69
84
  streamId: string;
70
85
  secret: string;
86
+ targetEmail: string;
87
+ poolName?: string;
71
88
  }
72
89
  export interface High5ExecutionPatchLog {
73
90
  streamId: string;
@@ -80,6 +97,14 @@ export interface StreamRunningNodePatch {
80
97
  progress: number;
81
98
  message: string;
82
99
  }
100
+ interface ReducedAgentInfo {
101
+ bundleVersion?: string;
102
+ osRelease?: string;
103
+ osVersion?: string;
104
+ cpu?: string;
105
+ cpuArchitecture?: string;
106
+ ip?: string;
107
+ }
83
108
  export interface High5ExecutionPatchStatus {
84
109
  streamId: string;
85
110
  state?: High5ExecutionState;
@@ -88,6 +113,7 @@ export interface High5ExecutionPatchStatus {
88
113
  message?: string;
89
114
  startDate: number;
90
115
  endDate?: number;
116
+ agentInfo?: ReducedAgentInfo;
91
117
  }
92
118
  export interface High5ExecutionPatch {
93
119
  high5ExecutionPatchStatus: High5ExecutionPatchStatus;
@@ -107,10 +133,15 @@ export interface High5ExecutionStatus {
107
133
  message: string;
108
134
  runningNodes: StreamRunningNode[];
109
135
  target: string;
136
+ triggerSource?: TriggerSource;
110
137
  dry: boolean;
111
138
  createDate: number;
112
139
  startDate: number;
113
140
  endDate: number;
141
+ debug?: boolean;
142
+ agentInfo?: ReducedAgentInfo;
143
+ waveEngineVersion?: string;
144
+ isPoolExecution?: boolean;
114
145
  }
115
146
  export interface High5ExecutionLog {
116
147
  _id: string;
@@ -137,6 +168,8 @@ export interface StreamNode {
137
168
  outputs?: StreamNodeOutput[];
138
169
  additionalConnectors?: StreamNodeAdditionalConnector[];
139
170
  breakpoint?: boolean;
171
+ color?: string;
172
+ nodeType?: NodeType;
140
173
  }
141
174
  export interface High5ExecuteOnAgentRequest {
142
175
  organizationName: string;
@@ -148,4 +181,24 @@ export interface High5ExecuteOnAgentRequest {
148
181
  export interface High5ExecutionCancelRequest {
149
182
  secret: string;
150
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
+ }
151
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",
@@ -1,5 +1,5 @@
1
1
  import { ReducedSpace } from "../../../global";
2
- import { ReducedOrganization, ReducedUser } from "../../../idp";
2
+ import { ReducedOrganization, ReducedUser, TeamUsersPatchOperation } from "../../../idp";
3
3
  export type Pool = {
4
4
  _id: string;
5
5
  organization: ReducedOrganization;
@@ -9,21 +9,19 @@ export type Pool = {
9
9
  avatarUrl: string;
10
10
  numberOfTargets?: number;
11
11
  targetSample?: ReducedUser[];
12
+ createDate: number;
13
+ modifyDate: number;
12
14
  };
13
15
  export type PoolChange = Pool & {
16
+ targets: ReducedUser[];
14
17
  invalidTargets: {
15
18
  notMember: string[];
16
19
  };
17
20
  };
18
21
  export type PoolTargetPatch = {
19
22
  identifiers: string[];
20
- operation: ArrayOperation;
23
+ operation: TeamUsersPatchOperation;
21
24
  };
22
- export declare enum ArrayOperation {
23
- ADD = "ADD",
24
- REPLACE = "REPLACE",
25
- REMOVE = "REMOVE"
26
- }
27
25
  export type PoolQueryOptions = {
28
26
  getTargetsSample?: number;
29
27
  getTotalTargetCount?: boolean;
@@ -1,9 +1,2 @@
1
1
  "use strict";
2
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 = {}));
@@ -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;
@@ -148,15 +148,20 @@ export interface StreamNodeSpecificationAdditionalConnector {
148
148
  export type StreamNodeSpecificationInput = {
149
149
  name: string;
150
150
  description: string;
151
- defaultValue?: any;
152
151
  example: any;
153
152
  advanced?: boolean;
154
- mandatory?: boolean;
155
153
  } & ({
156
- type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT>;
154
+ type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT | StreamNodeSpecificationInputType.BOOLEAN>;
155
+ defaultValue?: any;
156
+ mandatory?: boolean;
157
157
  } | {
158
158
  type: StreamNodeSpecificationInputType.STRING_SELECT;
159
159
  options: Record<string, string | number>;
160
+ defaultValue?: string;
161
+ mandatory?: boolean;
162
+ } | {
163
+ type: StreamNodeSpecificationInputType.BOOLEAN;
164
+ defaultValue: boolean;
160
165
  });
161
166
  export interface StreamNodeSpecificationOutput {
162
167
  name: 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",
@@ -7,6 +7,7 @@ export interface OrganizationMember {
7
7
  role: OrganizationRole;
8
8
  executionTarget: boolean;
9
9
  lastActive: number;
10
+ serviceAccount?: boolean;
10
11
  }
11
12
  export interface OrgMemberCreate {
12
13
  email: string;
@@ -0,0 +1,8 @@
1
+ export type ServiceAccount = {
2
+ _id: string;
3
+ name: string;
4
+ email: string;
5
+ token: string;
6
+ avatarUrl: string;
7
+ };
8
+ export type ServiceAccountNoToken = Omit<ServiceAccount, "token">;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,6 +28,7 @@ export declare enum Entrypoint {
28
28
  DEFAULT = "DEFAULT",
29
29
  HIGH5 = "HIGH5",
30
30
  FUSE = "FUSE",
31
+ COSMO = "COSMO",
31
32
  LAST_VISITED = "LAST_VISITED"
32
33
  }
33
34
  export interface GeneralSettings {
@@ -34,5 +34,6 @@ var Entrypoint;
34
34
  Entrypoint["DEFAULT"] = "DEFAULT";
35
35
  Entrypoint["HIGH5"] = "HIGH5";
36
36
  Entrypoint["FUSE"] = "FUSE";
37
+ Entrypoint["COSMO"] = "COSMO";
37
38
  Entrypoint["LAST_VISITED"] = "LAST_VISITED";
38
39
  })(Entrypoint || (exports.Entrypoint = Entrypoint = {}));
@@ -16,11 +16,17 @@ export declare enum Scope {
16
16
  FUSE_SPACE_READ = "fuse:space:read",
17
17
  FUSE_SPACE_EXECUTE = "fuse:space:execute",
18
18
  FUSE_SPACE_WRITE = "fuse:space:write",
19
- FUSE_SPACE_DELETE = "fuse:space:delete"
19
+ FUSE_SPACE_DELETE = "fuse:space:delete",
20
+ FRIDAY_SPACE_READ = "friday:space:read",
21
+ FRIDAY_SPACE_WRITE = "friday:space:write",
22
+ FRIDAY_SPACE_DELETE = "friday:space:delete",
23
+ COSMO_SPACE_READ = "cosmo:space:read",
24
+ COSMO_SPACE_WRITE = "cosmo:space:write",
25
+ COSMO_SPACE_DELETE = "cosmo:space:delete"
20
26
  }
21
27
  export declare const ScopeDescriptions: Map<string, string>;
22
28
  export declare const ScopeDependencies: {
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)[];
29
+ "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 | Scope.FRIDAY_SPACE_READ | Scope.FRIDAY_SPACE_WRITE | Scope.FRIDAY_SPACE_DELETE | Scope.COSMO_SPACE_READ | Scope.COSMO_SPACE_WRITE | Scope.COSMO_SPACE_DELETE)[];
24
30
  "idp:email:read": never[];
25
31
  "idp:user:read": never[];
26
32
  "idp:user:write": Scope[];
@@ -38,4 +44,10 @@ export declare const ScopeDependencies: {
38
44
  "fuse:space:execute": never[];
39
45
  "fuse:space:write": Scope[];
40
46
  "fuse:space:delete": Scope[];
47
+ "friday:space:read": Scope[];
48
+ "friday:space:write": Scope[];
49
+ "friday:space:delete": Scope[];
50
+ "cosmo:space:read": Scope[];
51
+ "cosmo:space:write": Scope[];
52
+ "cosmo:space:delete": Scope[];
41
53
  };
@@ -21,6 +21,12 @@ var Scope;
21
21
  Scope["FUSE_SPACE_EXECUTE"] = "fuse:space:execute";
22
22
  Scope["FUSE_SPACE_WRITE"] = "fuse:space:write";
23
23
  Scope["FUSE_SPACE_DELETE"] = "fuse:space:delete";
24
+ Scope["FRIDAY_SPACE_READ"] = "friday:space:read";
25
+ Scope["FRIDAY_SPACE_WRITE"] = "friday:space:write";
26
+ Scope["FRIDAY_SPACE_DELETE"] = "friday:space:delete";
27
+ Scope["COSMO_SPACE_READ"] = "cosmo:space:read";
28
+ Scope["COSMO_SPACE_WRITE"] = "cosmo:space:write";
29
+ Scope["COSMO_SPACE_DELETE"] = "cosmo:space:delete";
24
30
  })(Scope || (exports.Scope = Scope = {}));
25
31
  exports.ScopeDescriptions = new Map([
26
32
  [Scope.HCLOUD_FULL, "Full access to helmut.cloud."],
@@ -41,6 +47,12 @@ exports.ScopeDescriptions = new Map([
41
47
  [Scope.FUSE_SPACE_EXECUTE, "Execute tasks in Fuse."],
42
48
  [Scope.FUSE_SPACE_WRITE, "Create or update Fuse data."],
43
49
  [Scope.FUSE_SPACE_DELETE, "Delete Fuse data."],
50
+ [Scope.FRIDAY_SPACE_READ, "Read Friday space data."],
51
+ [Scope.FRIDAY_SPACE_WRITE, "Create or update Friday data."],
52
+ [Scope.FRIDAY_SPACE_DELETE, "Delete Friday data."],
53
+ [Scope.COSMO_SPACE_READ, "Read Cosmo space data."],
54
+ [Scope.COSMO_SPACE_WRITE, "Create or update Cosmo data."],
55
+ [Scope.COSMO_SPACE_DELETE, "Delete Cosmo data."],
44
56
  ]);
45
57
  exports.ScopeDependencies = {
46
58
  [Scope.HCLOUD_FULL]: [...Object.values(Scope).filter(s => s !== Scope.HCLOUD_FULL)],
@@ -67,4 +79,10 @@ exports.ScopeDependencies = {
67
79
  [Scope.FUSE_SPACE_EXECUTE]: [],
68
80
  [Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
69
81
  [Scope.FUSE_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ, Scope.FUSE_SPACE_WRITE],
82
+ [Scope.FRIDAY_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
83
+ [Scope.FRIDAY_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FRIDAY_SPACE_READ],
84
+ [Scope.FRIDAY_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FRIDAY_SPACE_READ, Scope.FRIDAY_SPACE_WRITE],
85
+ [Scope.COSMO_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
86
+ [Scope.COSMO_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ],
87
+ [Scope.COSMO_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ, Scope.COSMO_SPACE_WRITE],
70
88
  };