hcloud-sdk 15.0.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/changelog.md +54 -36
  2. package/lib/interfaces/auditor/index.d.ts +4 -2
  3. package/lib/interfaces/high5/execution/index.d.ts +22 -0
  4. package/lib/interfaces/high5/execution/index.js +10 -0
  5. package/lib/interfaces/high5/index.d.ts +2 -2
  6. package/lib/interfaces/high5/index.js +2 -2
  7. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
  8. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +14 -1
  9. package/lib/interfaces/high5/space/execution/index.d.ts +3 -0
  10. package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
  11. package/lib/interfaces/high5/space/pool/index.js +9 -0
  12. package/lib/interfaces/high5/wave/index.d.ts +18 -1
  13. package/lib/interfaces/high5/wave/index.js +4 -0
  14. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  15. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
  16. package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
  17. package/lib/interfaces/idp/user/Scopes.js +21 -1
  18. package/lib/interfaces/idp/user/Totp.d.ts +4 -2
  19. package/lib/interfaces/idp/user/index.d.ts +1 -0
  20. package/lib/interfaces/nats/index.d.ts +28 -0
  21. package/lib/interfaces/nats/index.js +61 -5
  22. package/lib/service/agent/bundle/dev/index.d.ts +3 -0
  23. package/lib/service/agent/bundle/dev/index.js +16 -0
  24. package/lib/service/dali/DaliAvatar.d.ts +10 -4
  25. package/lib/service/dali/DaliAvatar.js +12 -2
  26. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +1 -1
  27. package/lib/service/dali/avatar/DaliFuseSpace.js +3 -3
  28. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
  29. package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
  30. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +1 -1
  31. package/lib/service/dali/avatar/DaliHigh5Space.js +3 -3
  32. package/lib/service/high5/execution/index.d.ts +8 -0
  33. package/lib/service/high5/execution/index.js +21 -0
  34. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
  35. package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
  36. package/lib/service/high5/space/execution/index.d.ts +28 -1
  37. package/lib/service/high5/space/execution/index.js +41 -2
  38. package/lib/service/high5/space/index.d.ts +3 -0
  39. package/lib/service/high5/space/index.js +7 -0
  40. package/lib/service/high5/space/pool/index.d.ts +97 -0
  41. package/lib/service/high5/space/pool/index.js +171 -0
  42. package/lib/service/high5/wave/s3/index.d.ts +8 -1
  43. package/lib/service/high5/wave/s3/index.js +14 -0
  44. package/lib/service/idp/oauth/index.d.ts +2 -2
  45. package/lib/service/idp/oauth/index.js +12 -13
  46. package/lib/service/idp/registration/index.d.ts +1 -1
  47. package/lib/service/idp/registration/index.js +2 -2
  48. package/lib/service/idp/user/index.d.ts +4 -0
  49. package/lib/service/idp/user/index.js +8 -0
  50. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +1 -1
  51. package/lib/service/idp/user/settings/twoFactor/totp/index.js +1 -1
  52. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,45 +1,63 @@
1
- ## [15.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v14.13.2...v15.0.0) (2024-11-20)
1
+ ## [16.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v15.0.0...v16.0.0) (2025-01-29)
2
2
 
3
3
  ### ⚠ BREAKING CHANGES
4
4
 
5
- * **bouncer:** rework bouncer to use s3 over backend
6
- * consent check no longer sends OAuthApp
5
+ * add target sampling to pool search
6
+ * allow non execution targets in pools
7
+ * return correct type from getOAuthAppInfo
8
+ * Force a new major release
9
+ * update createTotp method to reflect recent backend changes (qr code generation will happen in frontend)
10
+ * node result endTimestamp is optional
7
11
 
8
12
  ### Features
9
13
 
10
- * add boolean flag to execute stream design ([9d80542](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9d80542f21349504e1f011fe332d056ecaa9a1d4))
11
- * add callback-fn support to bouncer ([f6084da](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f6084da2a7baeaade44b4400343f2e87880c9520))
12
- * add dedicated endpoint for separate lastURL, lastView update ([bc56e43](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/bc56e43230d196f8d1566a3a9e7fa4fd8e1e59d0))
13
- * add designPublish method ([41ee277](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/41ee27770ce33ee1bbd463f09b780b0d6568cf98))
14
- * add featureflags (s3) ([e73f207](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e73f20766b991aca34d3526c304173ce99e56317))
15
- * add installerVersion to agents ([bc3bd80](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/bc3bd8009e4f46f6eb73ad5bba11efdf24ae4ff1))
16
- * add method to obtain OAuthApp by clientID ([e96a0ca](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e96a0ca2e0372f028357636a827904a9bb58ae6b))
17
- * add minimumEngineVersion to PatchCatalogDTO ([e248f16](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e248f1656b3e8275ba1d111743441094e483fba0))
18
- * add node input error properties ([ae51b64](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ae51b64e623ae32a778b72bc42a370f5551670c3))
19
- * add optional IP to mothership hello ([e608585](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e608585dc0fafa9bc76ec7ec6fbdac828a5d94ca))
20
- * add optional latest field to wave engine ([24164ac](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/24164ac630ea864142a871a15ed4c9d4690aa145))
21
- * add optional minimumEngineVersion to WaveCatalog ([70759d2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/70759d2443c0813db5a6eef60620ca2eb40e8f1d))
22
- * add start/end date fields to execution patch status interface ([c902e05](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c902e054e1a6a1f141d8bc529212d95893f4929a))
23
- * add StreamNodeSpecificationV2 ([6a09846](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6a098460cce24a9f61c1273d2298dbe50ac473cc))
24
- * add support for lastCorrelationId ([76401d4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/76401d44cc49d84c65da57a33d41b9a801f57114))
25
- * add wave changelog interfaces ([e70ee01](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e70ee0156554bdeae9eca18d35fa7595ba80ad48))
26
- * add WAVE_ENGINE_LATEST nats subject ([d6c93f6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d6c93f64d79471f37ad28fa05cfe0fcd6fcb9893))
27
- * add webhook callback method ([d022f2e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d022f2ee4c06ac5d7b8a7ef4029501823e22f5e3))
28
- * **bouncer:** rework bouncer to use s3 over backend ([9b1757e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9b1757e440342e03475abe023de959e24fb97eb4))
29
- * consider undefined specVersion same as 1 ([3385d27](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3385d274380c3b2b9c1de5e33e2167473b3d7572))
30
- * extend High5ExecutionPackage ([10d71b2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/10d71b293d83e93ed232a394cb37f7ee23aeafbd))
31
- * ignore regionId param on resetPassword ([cec82b7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cec82b77d2644f131b7f5f45d78cfaa8bbbb93ed))
32
- * update StreamNodeSpecifications type ([e1ef726](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e1ef7262298659bd12e2452455a19c58bc834927))
14
+ * add 'logs' property to StreamSingleNodeResult ([6d039cf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6d039cfce92cd635ee4b138df05d38cf42b67483))
15
+ * add /user/ping endpoint ([11dd634](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/11dd634ceddba8cd529741c9e335795b8d9b4c4f))
16
+ * add debug flag to execution ([31d758d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/31d758d31a5cdc588f6ddac3e14dbca01ecf7e18))
17
+ * add endpoint for execution cancellation ([7cbc39b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7cbc39bab081ebbd9ddf8e4e3f88507f8a01bf81))
18
+ * add lastActive to user ([61b08bd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/61b08bdecd9f05a5faa7c3fc0d927f96a98bce4d))
19
+ * add lastActive to user ([cced02c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cced02cd8de73476dad965745632f5f9af679e3c))
20
+ * add method to log execution crash ([d3a6e73](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d3a6e73bcb6ff956ca9e1a91e6a2181a81afe8df))
21
+ * add method to search targets of a pool ([039b334](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/039b3344600e03fa8e9547f2c14051aac733fb8b))
22
+ * add methods for agent pools CRUD operations ([aa8f99d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/aa8f99d9a31b7acb18da685fcc2c9189ec649138))
23
+ * add methods to get & set agent version ([dc94552](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/dc94552a6acebdd870ed98711025229f89f91b3b))
24
+ * add methods to manage High5 pool avatars ([26db4ff](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/26db4fffff5688b85dd955bd904f862f040c7d0b))
25
+ * add NATS subjects for stream debugging ([4ada51d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ada51d507ececa7afc7f86b8d9e9c1f161b5d1b))
26
+ * add NATS subjects needed for agent pools ([8106e20](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8106e20ad81ae8ed05de4650ba7db3b19a4c9dbc))
27
+ * add NATS subjects related to OAuth apps ([377e096](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/377e09603717e6442cb181705ced63536f961fca))
28
+ * add node info to node result ([39ce73c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/39ce73c490428aa4943e797739dbda34d8e9d2f6))
29
+ * add node spec version 3 ([34737ef](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/34737efcf0813af4260829a6842660965461030f))
30
+ * add optional breakpoint to design nodes ([54929a2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/54929a2d5991436fd38433977b9ecfd89abf85cb))
31
+ * add provisionally ScopeDescriptions ([86b66db](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/86b66dbd212507e9aa305b86852d04245d5b05a6))
32
+ * add target sampling to pool search ([f808b17](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f808b171a425938cf52ae06451cc83b1ce90c278))
33
+ * add waiting to node result ([d90e687](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d90e687002746869984c57da55baf67df550db1e))
34
+ * allow * wildcards in NATS subjects ([5b0fd70](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5b0fd702220722fbe6cfac23b4cc5615547903f4))
35
+ * allow non execution targets in pools ([d0f2a16](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d0f2a1607858e51c9808d40cc557a83153fafcfa))
36
+ * create new version final ([28a6a4b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/28a6a4b7e17fdc1b2712e4aaf6be461ac3676116))
37
+ * export design OperationQueue ([8e63c2c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8e63c2c5c3652bd6508c95edd5b64b6bbce2ba81))
38
+ * force new release ([f8fc193](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f8fc1933271b78529f52cf5f2dc56df11e7c676b))
39
+ * force new release ([be6fbea](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/be6fbeac59326f9b45c7c12e0c33a81a89824a02))
40
+ * force new release ([488cb47](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/488cb47dcd8fc89eca0a007f0c33c41f5b677579))
41
+ * introduce s3 endpoint for getting the Wildcard.json file ([2e5f269](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2e5f269a8dccaabcd18bb0121ee9543b8c50a46c))
42
+ * node result endTimestamp is optional ([d719875](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d7198754d11c6b541e968315e76bd505268ba233))
43
+ * remove execution logs by UUID ([a624381](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a62438172186e68f452279a224d6ec75f8381d07))
44
+ * stream debugging ([6ea412d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6ea412de2059662e8f367a34de0652c0aede570f))
45
+ * version bump ([40dfa6b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/40dfa6bb13859b24f17f0605b9c2100c04f7ee37))
46
+
47
+ ### Bug Fixes
48
+
49
+ * add missing to field to OrganizationMember ([0b9f4d7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0b9f4d7cfcd1b638586c33931bfb7e32778f3686))
50
+ * add missing to field to OrganizationMember ([db201eb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/db201eb9f34e483fd440ec3f416380b94fd48e31))
51
+ * design execution malformed query string ([7574026](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/75740267ca87dcdb41c389b5d985b89661d18385))
52
+ * rename searchEvents to searchPools ([2e7a959](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2e7a9598e74082abf8c8f5fddf725e269c3d4b4c))
53
+ * rename Wildcard.example and Wildcard.resolved to Wildcard.pattern and Wildcard.output ([ce2d8c6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ce2d8c6bc0dd76bb8d32994d92a63d884ffddc5f))
54
+ * return correct type from getOAuthAppInfo ([88028f1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/88028f12fbc52a902cba1f15f98a9cec96407c06))
55
+ * throw error instead of returning undefined when requestiong engine wildcards ([ce20adb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ce20adb87070e6be8737337fa63c153d7156f61e))
56
+ * update createTotp method to reflect recent backend changes (qr code generation will happen in frontend) ([9cff536](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9cff536abe52503f5d196b2104acb6617524da53))
33
57
 
34
58
  ### Performance Improvements
35
59
 
36
- * define methods in proto instead of instance ([ea6e551](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ea6e551235fa1d18d59793f157993f363ef14860))
37
- * lazily initialize services ([495da13](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/495da13edf611a1d9125d2a75a1de9c65ab6d902))
38
-
39
- ### Reverts
40
-
41
- * Revert "feat: add support for lastCorrelationId" ([a23b7f8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a23b7f835079c714f220c51cdff4faec6767ba31))
42
-
43
- ### Code Refactoring
44
-
45
- * consent check no longer sends OAuthApp ([361f3c1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/361f3c13ac330d20c04b26c3b08b5a46c7bcdd17))
60
+ * add avatarUrl field to High5 pool object ([d84e4ba](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d84e4ba0ab83e0fc3899d97eeda155a38b5de0d1))
61
+ * add org license tier to the AuditLogCreate type ([1662c8f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1662c8f5d14b2bfbc0f3b3bde4401fdb4ac629b4))
62
+ * add pool interfaces to high5 index ([cf7de9c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cf7de9c6658e47777863f991ff8a15cb527646f7))
63
+ * update user registration method ([5030da8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5030da8cdbc1f8494496e7591ed9b613a214b831))
@@ -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);
@@ -24,6 +24,7 @@ export interface DesignerNode {
24
24
  path: string;
25
25
  catalog: DesignerNodeCatalog;
26
26
  customNode?: StreamCustomNodeSpecification;
27
+ breakpoint?: boolean;
27
28
  }
28
29
  export interface DesignerNodeCatalog {
29
30
  url: string;
@@ -47,16 +47,29 @@ export interface StreamSingleNodeResult {
47
47
  nodeUuid: string;
48
48
  failed: boolean;
49
49
  startTimestamp: number;
50
- endTimestamp: number;
50
+ endTimestamp?: number;
51
51
  name: string;
52
52
  inputs?: StreamNodeResolvedInputs[];
53
53
  outputs?: StreamNodeOutput[];
54
54
  error?: StreamNodeResultError;
55
+ logs?: string[];
55
56
  duration?: number;
56
57
  bypassed?: boolean;
57
58
  nodeResults?: StreamSingleNodeResult[];
59
+ info?: NodeInfo;
60
+ waiting?: boolean;
58
61
  }
62
+ type NodeInfo = {
63
+ runTime: number;
64
+ catalog: {
65
+ name?: string;
66
+ _id?: string;
67
+ url: string;
68
+ version: string;
69
+ };
70
+ };
59
71
  export interface StreamNodeAdditionalConnector {
60
72
  name: string;
61
73
  targetUuid: string;
62
74
  }
75
+ export {};
@@ -53,6 +53,7 @@ export interface High5ExecutionPackage {
53
53
  waveEngine: WaveEngine;
54
54
  dry: boolean;
55
55
  info: StreamInfo;
56
+ debug: boolean;
56
57
  }
57
58
  type StreamInfo = {
58
59
  target: string;
@@ -71,6 +72,7 @@ export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
71
72
  export interface High5ExecutionPatchLog {
72
73
  streamId: string;
73
74
  nodeResults: StreamSingleNodeResult[];
75
+ nodeResultsToRemove?: string[];
74
76
  }
75
77
  export interface StreamRunningNodePatch {
76
78
  uuid: string;
@@ -134,6 +136,7 @@ export interface StreamNode {
134
136
  inputs?: StreamNodeResolvedInputs[];
135
137
  outputs?: StreamNodeOutput[];
136
138
  additionalConnectors?: StreamNodeAdditionalConnector[];
139
+ breakpoint?: boolean;
137
140
  }
138
141
  export interface High5ExecuteOnAgentRequest {
139
142
  organizationName: string;
@@ -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 = {}));
@@ -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;
@@ -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";
@@ -5,6 +5,8 @@ export interface OrganizationMember {
5
5
  name: string;
6
6
  avatarUrl: string;
7
7
  role: OrganizationRole;
8
+ executionTarget: boolean;
9
+ lastActive: number;
8
10
  }
9
11
  export interface OrgMemberCreate {
10
12
  email: string;
@@ -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;
@@ -13,6 +13,7 @@ export interface User {
13
13
  modifyDate: number;
14
14
  activeScopes: Scope[];
15
15
  isAgent?: boolean;
16
+ lastActive: number;
16
17
  }
17
18
  export type ReducedUser = Pick<User, "_id" | "name" | "avatarUrl">;
18
19
  export interface UserPatch {
@@ -11,16 +11,21 @@ declare enum NatsSubject {
11
11
  IDP_USER_SECURITY_PATS = "hcloud.idp.user.${userId}.security.pats",
12
12
  IDP_USER_SECURITY_GENERAL = "hcloud.idp.user.${userId}.security.general",
13
13
  IDP_USER_LICENSE = "hcloud.idp.user.${userId}.license",
14
+ IDP_USER_SETTINGS_OAUTH_REVOKE = "hcloud.idp.user.${userId}.settings.oauth.${oAuthAppId}.revoke",
15
+ IDP_ORGANIZATION = "hcloud.idp.organization.${base64orgName}",
14
16
  IDP_ORGANIZATION_INVITATIONS = "hcloud.idp.organization.${base64orgName}.invitations",
15
17
  IDP_ORGANIZATION_MEMBERS = "hcloud.idp.organization.${base64orgName}.members",
16
18
  IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET = "hcloud.idp.organization.${base64orgName}.members.${base64email}.executionTarget",
17
19
  IDP_ORGANIZATION_TEAMS = "hcloud.idp.organization.${base64orgName}.teams",
18
20
  IDP_ORGANIZATION_TEAM_MEMBERS = "hcloud.idp.organization.${base64orgName}.teams.${base64teamName}.members",
19
21
  IDP_ORGANIZATION_LICENSE = "hcloud.idp.organization.${base64orgName}.license",
22
+ IDP_ORGANIZATION_SETTINGS_OAUTHAPP = "hcloud.idp.organization.${base64orgName}.settings.oauthapp.${oAuthAppId}",
20
23
  HIGH5_SPACES = "hcloud.high5.organization.${base64orgName}.spaces",
21
24
  HIGH5_SPACE_PERMISSIONS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
22
25
  HIGH5_STREAM_EXECUTE = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",
23
26
  HIGH5_STREAM_CANCEL = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
27
+ HIGH5_STREAM_DEBUG_STOPPED = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionId}.stopped",
28
+ HIGH5_STREAM_DEBUG_COMMAND = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionSecret}.command",
24
29
  HIGH5_EVENTS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events",
25
30
  HIGH5_STREAMS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.streams",
26
31
  HIGH5_EVENT_STREAMS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams",
@@ -33,6 +38,8 @@ declare enum NatsSubject {
33
38
  High5_DESIGN = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.design",
34
39
  HIGH5_SNAPSHOTS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.snapshots",
35
40
  HIGH5_WAVE_ENGINE_LATEST = "hcloud.high5.wave.engine.latest",
41
+ HIGH5_SPACES_POOLS = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.pools.>",
42
+ HIGH5_SPACES_POOL = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.pools.${poolId}",
36
43
  FUSE_SPACES = "hcloud.fuse.organization.${base64orgName}.spaces",
37
44
  FUSE_SPACE_PERMISSIONS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
38
45
  FUSE_JOBS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs",
@@ -71,6 +78,7 @@ declare enum NatsObjectType {
71
78
  WEBHOOK_LOG = "WEBHOOK_LOG",
72
79
  SECRET = "SECRET",
73
80
  CATALOG = "CATALOG",
81
+ POOL = "POOL",
74
82
  AUDIT_LOG = "AUDIT_LOG",
75
83
  MAIL = "MAIL",
76
84
  CRONJOB = "CRONJOB",
@@ -109,6 +117,7 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
109
117
  [NatsSubject.HIGH5_SECRETS]: NatsSecretObject;
110
118
  [NatsSubject.HIGH5_SETTINGS]: unknown;
111
119
  [NatsSubject.HIGH5_WEBHOOKS]: NatsIdObject;
120
+ [NatsSubject.HIGH5_SPACES_POOLS]: NatsPoolObject;
112
121
  [NatsSubject.HIGH5_WEBHOOK_LOGS]: NatsIdObject;
113
122
  [NatsSubject.HIGH5_CATALOGS]: NatsIdObject;
114
123
  [NatsSubject.FUSE_SPACES]: NatsNameObject;
@@ -141,6 +150,10 @@ interface NatsCustomNodeObject {
141
150
  _id: string;
142
151
  updatedNodeId?: string;
143
152
  }
153
+ interface NatsPoolObject extends NatsIdObject {
154
+ name: string;
155
+ targets: string[];
156
+ }
144
157
  type NatsCallback = (err: Error | null, msg?: NatsMessage, rawMsg?: Msg) => void;
145
158
  /**
146
159
  * This helper class creates subject strings to be used with nats.subscribe and nats.publish
@@ -161,7 +174,13 @@ declare class NatsSubjects {
161
174
  PATS: (userId: string) => string;
162
175
  GENERAL: (userId: string) => string;
163
176
  };
177
+ Settings: (userId: string) => {
178
+ OAuth: {
179
+ REVOKE: (oAuthAppId: string) => string;
180
+ };
181
+ };
164
182
  };
183
+ ORGANIZATION: (organizationName: string) => string;
165
184
  Organization: {
166
185
  new (): {};
167
186
  INVITATIONS: (organizationName: string) => string;
@@ -174,6 +193,9 @@ declare class NatsSubjects {
174
193
  MEMBERS: (organizationName: string, teamName: string) => string;
175
194
  };
176
195
  LICENSE: (organizationName: string) => string;
196
+ Settings: (organizationName: string) => {
197
+ OAuthApp: (oAuthAppId: string) => string;
198
+ };
177
199
  };
178
200
  };
179
201
  static Fuse: {
@@ -195,10 +217,16 @@ declare class NatsSubjects {
195
217
  new (): {};
196
218
  EXECUTE: (organizationId: string, email: string) => string;
197
219
  CANCEL: (organizationId: string, email: string) => string;
220
+ DEBUG: (organizationId: string, email: string) => {
221
+ STOPPED: (executionId: string) => string;
222
+ COMMAND: (executionSecret: string) => string;
223
+ };
198
224
  };
199
225
  SPACES: (organizationName: string) => string;
200
226
  Space: {
201
227
  new (): {};
228
+ POOLS: (organizationId: string, spaceId: string) => string;
229
+ POOL: (organizationId: string, spaceId: string, poolId: string) => string;
202
230
  PERMISSIONS: (organizationName: string, spaceName: string) => string;
203
231
  EVENTS: (organizationName: string, spaceName: string) => string;
204
232
  STREAMS: (organizationName: string, spaceName: string) => string;