hcloud-sdk 14.13.2 → 15.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 (161) hide show
  1. package/changelog.md +36 -800
  2. package/lib/Hcloud.d.ts +20 -10
  3. package/lib/Hcloud.js +60 -10
  4. package/lib/interfaces/bouncer/features/index.d.ts +3 -6
  5. package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
  6. package/lib/interfaces/frontend/featureflags/index.js +2 -0
  7. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +2 -0
  8. package/lib/interfaces/high5/space/execution/index.d.ts +11 -0
  9. package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
  10. package/lib/interfaces/high5/wave/changelog.js +18 -0
  11. package/lib/interfaces/high5/wave/index.d.ts +31 -1
  12. package/lib/interfaces/high5/wave/index.js +10 -1
  13. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  14. package/lib/interfaces/mothership/index.d.ts +1 -0
  15. package/lib/interfaces/nats/index.d.ts +8 -21
  16. package/lib/interfaces/nats/index.js +72 -90
  17. package/lib/service/agent/bundle/dev/index.d.ts +2 -2
  18. package/lib/service/agent/bundle/dev/index.js +14 -10
  19. package/lib/service/agent/context/index.d.ts +7 -9
  20. package/lib/service/agent/context/index.js +41 -32
  21. package/lib/service/agent/index.d.ts +9 -7
  22. package/lib/service/agent/index.js +23 -6
  23. package/lib/service/auditor/index.d.ts +6 -7
  24. package/lib/service/auditor/index.js +23 -17
  25. package/lib/service/auditor/internal/index.d.ts +2 -2
  26. package/lib/service/auditor/internal/index.js +24 -20
  27. package/lib/service/bouncer/features/index.d.ts +1 -1
  28. package/lib/service/bouncer/features/index.js +5 -3
  29. package/lib/service/bouncer/index.d.ts +3 -10
  30. package/lib/service/bouncer/index.js +6 -21
  31. package/lib/service/dali/DaliAvatar.d.ts +13 -9
  32. package/lib/service/dali/DaliAvatar.js +53 -8
  33. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +4 -6
  34. package/lib/service/dali/avatar/DaliFuseSpace.js +26 -23
  35. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +4 -6
  36. package/lib/service/dali/avatar/DaliHigh5Space.js +26 -23
  37. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
  38. package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
  39. package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
  40. package/lib/service/dali/avatar/DaliOrganization.js +23 -20
  41. package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
  42. package/lib/service/dali/avatar/DaliTeam.js +26 -23
  43. package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
  44. package/lib/service/dali/avatar/DaliUser.js +20 -17
  45. package/lib/service/dali/index.d.ts +4 -5
  46. package/lib/service/dali/index.js +14 -7
  47. package/lib/service/fuse/index.d.ts +8 -7
  48. package/lib/service/fuse/index.js +23 -9
  49. package/lib/service/fuse/internal/index.d.ts +3 -4
  50. package/lib/service/fuse/internal/index.js +5 -3
  51. package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
  52. package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
  53. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
  54. package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
  55. package/lib/service/fuse/internal/space/index.d.ts +5 -6
  56. package/lib/service/fuse/internal/space/index.js +24 -18
  57. package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
  58. package/lib/service/fuse/space/cronjob/index.js +133 -105
  59. package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
  60. package/lib/service/fuse/space/cronjob/log/index.js +24 -23
  61. package/lib/service/fuse/space/index.d.ts +13 -14
  62. package/lib/service/fuse/space/index.js +88 -70
  63. package/lib/service/high5/execution/index.d.ts +5 -5
  64. package/lib/service/high5/execution/index.js +11 -4
  65. package/lib/service/high5/execution/log/index.d.ts +2 -2
  66. package/lib/service/high5/execution/log/index.js +11 -12
  67. package/lib/service/high5/execution/status/index.d.ts +2 -2
  68. package/lib/service/high5/execution/status/index.js +11 -12
  69. package/lib/service/high5/index.d.ts +12 -9
  70. package/lib/service/high5/index.js +36 -12
  71. package/lib/service/high5/internal/index.d.ts +3 -4
  72. package/lib/service/high5/internal/index.js +5 -3
  73. package/lib/service/high5/internal/space/index.d.ts +2 -2
  74. package/lib/service/high5/internal/space/index.js +19 -15
  75. package/lib/service/high5/joinToken/index.d.ts +4 -4
  76. package/lib/service/high5/joinToken/index.js +36 -28
  77. package/lib/service/high5/space/event/index.d.ts +9 -10
  78. package/lib/service/high5/space/event/index.js +58 -46
  79. package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
  80. package/lib/service/high5/space/event/stream/design/index.js +60 -25
  81. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
  82. package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
  83. package/lib/service/high5/space/event/stream/index.d.ts +14 -15
  84. package/lib/service/high5/space/event/stream/index.js +125 -103
  85. package/lib/service/high5/space/execution/index.d.ts +9 -9
  86. package/lib/service/high5/space/execution/index.js +57 -42
  87. package/lib/service/high5/space/execution/log/index.d.ts +4 -6
  88. package/lib/service/high5/space/execution/log/index.js +22 -21
  89. package/lib/service/high5/space/execution/status/index.d.ts +1 -1
  90. package/lib/service/high5/space/execution/status/index.js +10 -8
  91. package/lib/service/high5/space/index.d.ts +25 -21
  92. package/lib/service/high5/space/index.js +131 -86
  93. package/lib/service/high5/space/secret/index.d.ts +6 -6
  94. package/lib/service/high5/space/secret/index.js +59 -49
  95. package/lib/service/high5/space/wave/index.d.ts +7 -9
  96. package/lib/service/high5/space/wave/index.js +40 -33
  97. package/lib/service/high5/space/webhook/index.d.ts +21 -14
  98. package/lib/service/high5/space/webhook/index.js +106 -73
  99. package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
  100. package/lib/service/high5/space/webhook/log/index.js +11 -12
  101. package/lib/service/high5/wave/s3/index.d.ts +6 -6
  102. package/lib/service/high5/wave/s3/index.js +50 -38
  103. package/lib/service/idp/index.d.ts +17 -15
  104. package/lib/service/idp/index.js +104 -56
  105. package/lib/service/idp/internal/index.d.ts +2 -4
  106. package/lib/service/idp/internal/index.js +10 -11
  107. package/lib/service/idp/oauth/index.d.ts +16 -12
  108. package/lib/service/idp/oauth/index.js +55 -43
  109. package/lib/service/idp/organization/index.d.ts +12 -10
  110. package/lib/service/idp/organization/index.js +63 -28
  111. package/lib/service/idp/organization/license/index.d.ts +2 -2
  112. package/lib/service/idp/organization/license/index.js +5 -4
  113. package/lib/service/idp/organization/member/index.d.ts +10 -11
  114. package/lib/service/idp/organization/member/index.js +62 -48
  115. package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
  116. package/lib/service/idp/organization/member/invitations/index.js +47 -43
  117. package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
  118. package/lib/service/idp/organization/settings/domain/index.js +42 -29
  119. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
  120. package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
  121. package/lib/service/idp/organization/settings/index.d.ts +5 -5
  122. package/lib/service/idp/organization/settings/index.js +17 -4
  123. package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
  124. package/lib/service/idp/organization/settings/oauth/index.js +67 -56
  125. package/lib/service/idp/organization/team/index.d.ts +8 -8
  126. package/lib/service/idp/organization/team/index.js +64 -55
  127. package/lib/service/idp/registration/index.d.ts +4 -6
  128. package/lib/service/idp/registration/index.js +37 -34
  129. package/lib/service/idp/user/index.d.ts +16 -15
  130. package/lib/service/idp/user/index.js +86 -51
  131. package/lib/service/idp/user/license/index.d.ts +2 -2
  132. package/lib/service/idp/user/license/index.js +5 -4
  133. package/lib/service/idp/user/password/index.d.ts +1 -1
  134. package/lib/service/idp/user/password/index.js +10 -11
  135. package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
  136. package/lib/service/idp/user/settings/connections/index.js +9 -10
  137. package/lib/service/idp/user/settings/general/index.d.ts +10 -6
  138. package/lib/service/idp/user/settings/general/index.js +25 -13
  139. package/lib/service/idp/user/settings/index.d.ts +13 -9
  140. package/lib/service/idp/user/settings/index.js +53 -8
  141. package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
  142. package/lib/service/idp/user/settings/notifications/index.js +14 -13
  143. package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
  144. package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
  145. package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
  146. package/lib/service/idp/user/settings/pats/index.js +55 -44
  147. package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
  148. package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
  149. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +6 -8
  150. package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
  151. package/lib/service/mailer/index.d.ts +4 -5
  152. package/lib/service/mailer/index.js +12 -8
  153. package/lib/service/mailer/internal/index.d.ts +4 -4
  154. package/lib/service/mailer/internal/index.js +38 -33
  155. package/lib/service/mothership/index.d.ts +12 -12
  156. package/lib/service/mothership/index.js +92 -79
  157. package/lib/service/nats/index.d.ts +1 -3
  158. package/lib/service/nats/index.js +2 -2
  159. package/lib/utils/bouncer/features/Provider.d.ts +3 -0
  160. package/lib/utils/bouncer/features/Provider.js +20 -2
  161. package/package.json +1 -1
package/lib/Hcloud.d.ts CHANGED
@@ -11,16 +11,26 @@ import MailerService from "./service/mailer";
11
11
  import MothershipService from "./service/mothership";
12
12
  import NatsService from "./service/nats";
13
13
  export declare class HCloud {
14
- Agent: AgentService;
15
- Auditor: AuditorService;
16
- Bouncer: BouncerService;
17
- High5: High5Service;
18
- Idp: IdpService;
19
- Fuse: FuseService;
20
- Dali: DaliService;
21
- Mailer: MailerService;
22
- Mothership: MothershipService;
23
- Nats: NatsService;
14
+ get Agent(): AgentService;
15
+ private _Agent?;
16
+ get Auditor(): AuditorService;
17
+ private _Auditor?;
18
+ get Bouncer(): BouncerService;
19
+ private _Bouncer?;
20
+ get High5(): High5Service;
21
+ private _High5?;
22
+ get Idp(): IdpService;
23
+ private _Idp?;
24
+ get Fuse(): FuseService;
25
+ private _Fuse?;
26
+ get Dali(): DaliService;
27
+ private _Dali?;
28
+ get Mailer(): MailerService;
29
+ private _Mailer?;
30
+ get Mothership(): MothershipService;
31
+ private _Mothership?;
32
+ get Nats(): NatsService;
33
+ private _Nats?;
24
34
  private options;
25
35
  private axios;
26
36
  constructor(options: Options);
package/lib/Hcloud.js CHANGED
@@ -17,6 +17,66 @@ const mothership_1 = require("./service/mothership");
17
17
  const nats_1 = require("./service/nats");
18
18
  // tslint:disable-next-line
19
19
  class HCloud {
20
+ get Agent() {
21
+ if (this._Agent === undefined) {
22
+ this._Agent = new agent_1.default(this.options, this.axios);
23
+ }
24
+ return this._Agent;
25
+ }
26
+ get Auditor() {
27
+ if (this._Auditor === undefined) {
28
+ this._Auditor = new auditor_1.default(this.options, this.axios);
29
+ }
30
+ return this._Auditor;
31
+ }
32
+ get Bouncer() {
33
+ if (this._Bouncer === undefined) {
34
+ this._Bouncer = new bouncer_1.default(this.options, this.axios);
35
+ }
36
+ return this._Bouncer;
37
+ }
38
+ get High5() {
39
+ if (this._High5 === undefined) {
40
+ this._High5 = new high5_1.default(this.options, this.axios);
41
+ }
42
+ return this._High5;
43
+ }
44
+ get Idp() {
45
+ if (this._Idp === undefined) {
46
+ this._Idp = new idp_1.default(this.options, this.axios);
47
+ }
48
+ return this._Idp;
49
+ }
50
+ get Fuse() {
51
+ if (this._Fuse === undefined) {
52
+ this._Fuse = new fuse_1.default(this.options, this.axios);
53
+ }
54
+ return this._Fuse;
55
+ }
56
+ get Dali() {
57
+ if (this._Dali === undefined) {
58
+ this._Dali = new dali_1.default(this.options, this.axios);
59
+ }
60
+ return this._Dali;
61
+ }
62
+ get Mailer() {
63
+ if (this._Mailer === undefined) {
64
+ this._Mailer = new mailer_1.default(this.options, this.axios);
65
+ }
66
+ return this._Mailer;
67
+ }
68
+ get Mothership() {
69
+ if (this._Mothership === undefined) {
70
+ this._Mothership = new mothership_1.default(this.options, this.axios);
71
+ }
72
+ return this._Mothership;
73
+ }
74
+ get Nats() {
75
+ if (this._Nats === undefined) {
76
+ this._Nats = new nats_1.default(this.options, this.axios);
77
+ }
78
+ return this._Nats;
79
+ }
20
80
  constructor(options) {
21
81
  this.options = options;
22
82
  this.axios = axios_1.default.create({
@@ -34,16 +94,6 @@ class HCloud {
34
94
  (_a = this.options.logger) === null || _a === void 0 ? void 0 : _a.error(String(error), error);
35
95
  return Promise.reject((0, ErrorHelper_1.default)(error));
36
96
  });
37
- this.Agent = new agent_1.default(this.options, this.axios);
38
- this.Auditor = new auditor_1.default(this.options, this.axios);
39
- this.Bouncer = new bouncer_1.default(this.options, this.axios);
40
- this.High5 = new high5_1.default(this.options, this.axios);
41
- this.Idp = new idp_1.default(this.options, this.axios);
42
- this.Fuse = new fuse_1.default(this.options, this.axios);
43
- this.Dali = new dali_1.default(this.options, this.axios);
44
- this.Mailer = new mailer_1.default(this.options, this.axios);
45
- this.Mothership = new mothership_1.default(this.options, this.axios);
46
- this.Nats = new nats_1.default(this.options, this.axios);
47
97
  }
48
98
  /**
49
99
  * Sets the server url that the SDK shall do a request to.
@@ -1,10 +1,7 @@
1
1
  export interface HcloudFeature {
2
- feature: {
3
- name: string;
4
- enabled: boolean;
5
- };
6
- id?: string;
2
+ name: string;
3
+ enabled: boolean;
7
4
  regions: string[];
8
- users: string[];
9
5
  organizations: string[];
6
+ users: string[];
10
7
  }
@@ -0,0 +1,7 @@
1
+ export interface FeatureFlag {
2
+ name: string;
3
+ enabled: boolean;
4
+ regions: string[];
5
+ organizations: string[];
6
+ users: string[];
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,6 +28,8 @@ export interface StreamNodeResolvedInputs {
28
28
  originalValue: unknown;
29
29
  value: unknown;
30
30
  type: StreamNodeSpecificationInputType;
31
+ error: boolean;
32
+ errorMessage: string;
31
33
  }
32
34
  export interface StreamNodeOutput {
33
35
  name: string | undefined;
@@ -52,7 +52,15 @@ export interface High5ExecutionPackage {
52
52
  waveCatalogs: WaveCatalog[];
53
53
  waveEngine: WaveEngine;
54
54
  dry: boolean;
55
+ info: StreamInfo;
55
56
  }
57
+ type StreamInfo = {
58
+ target: string;
59
+ webhook?: WebhookInfo;
60
+ };
61
+ type WebhookInfo = {
62
+ callbackUrl: string;
63
+ };
56
64
  export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
57
65
  hcl: HCloud;
58
66
  orgName: string;
@@ -76,6 +84,8 @@ export interface High5ExecutionPatchStatus {
76
84
  outcome?: High5ExecutionOutcome;
77
85
  runningNodes?: StreamRunningNodePatch[];
78
86
  message?: string;
87
+ startDate: number;
88
+ endDate?: number;
79
89
  }
80
90
  export interface High5ExecutionPatch {
81
91
  high5ExecutionPatchStatus: High5ExecutionPatchStatus;
@@ -135,3 +145,4 @@ export interface High5ExecuteOnAgentRequest {
135
145
  export interface High5ExecutionCancelRequest {
136
146
  secret: string;
137
147
  }
148
+ export {};
@@ -0,0 +1,30 @@
1
+ export interface Release {
2
+ version: string;
3
+ link: string;
4
+ date: string;
5
+ commitGroups: CommitGroup[];
6
+ }
7
+ export declare enum CommitType {
8
+ feat = "Features",
9
+ fix = "Bug Fixes",
10
+ perf = "Performance Improvements",
11
+ refactor = "Refactorings",
12
+ docs = "Documentation",
13
+ style = "Style",
14
+ test = "Tests",
15
+ build = "Build",
16
+ ci = "CI",
17
+ chore = "Chore",
18
+ revert = "Reverts",
19
+ breaking = "BREAKING CHANGES"
20
+ }
21
+ export interface CommitGroup {
22
+ title: string;
23
+ type: CommitType;
24
+ commits: Commit[];
25
+ }
26
+ export interface Commit {
27
+ message: string;
28
+ hash: string;
29
+ url: string;
30
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommitType = void 0;
4
+ var CommitType;
5
+ (function (CommitType) {
6
+ CommitType["feat"] = "Features";
7
+ CommitType["fix"] = "Bug Fixes";
8
+ CommitType["perf"] = "Performance Improvements";
9
+ CommitType["refactor"] = "Refactorings";
10
+ CommitType["docs"] = "Documentation";
11
+ CommitType["style"] = "Style";
12
+ CommitType["test"] = "Tests";
13
+ CommitType["build"] = "Build";
14
+ CommitType["ci"] = "CI";
15
+ CommitType["chore"] = "Chore";
16
+ CommitType["revert"] = "Reverts";
17
+ CommitType["breaking"] = "BREAKING CHANGES";
18
+ })(CommitType || (exports.CommitType = CommitType = {}));
@@ -22,6 +22,7 @@ export interface WaveEngine {
22
22
  changeLog: string[];
23
23
  md5: string;
24
24
  dev?: boolean;
25
+ latest?: boolean;
25
26
  }
26
27
  export interface WaveCatalog {
27
28
  _id: string;
@@ -29,6 +30,7 @@ export interface WaveCatalog {
29
30
  url: string;
30
31
  changeLog: string[];
31
32
  dev?: boolean;
33
+ minimumEngineVersion?: string;
32
34
  }
33
35
  export interface Engine {
34
36
  name: string;
@@ -45,10 +47,12 @@ export interface Catalog {
45
47
  export interface SpacePatchWaveEngine {
46
48
  version: string;
47
49
  url: string;
50
+ latest?: boolean;
48
51
  }
49
52
  export interface SpacePatchWaveCatalog {
50
53
  version: string;
51
54
  url: string;
55
+ minimumEngineVersion?: string;
52
56
  }
53
57
  export interface Specification {
54
58
  nodes: StreamNodeSpecification[];
@@ -60,7 +64,7 @@ export interface StreamNodeSpecificationWrappedWithEngineVersion {
60
64
  export interface StreamNodeSpecification {
61
65
  specVersion: number;
62
66
  }
63
- export type StreamNodeSpecifications = StreamNodeSpecificationV1;
67
+ export type StreamNodeSpecifications = StreamNodeSpecificationV1 | StreamNodeSpecificationV2;
64
68
  export interface StreamNodeSpecificationV1 extends StreamNodeSpecification {
65
69
  specVersion: 1;
66
70
  name: string;
@@ -77,7 +81,27 @@ export interface StreamNodeSpecificationV1 extends StreamNodeSpecification {
77
81
  path?: string;
78
82
  customNode?: StreamCustomNodeSpecification;
79
83
  }
84
+ export interface StreamNodeSpecificationV2 extends StreamNodeSpecification {
85
+ specVersion: 2;
86
+ name: string;
87
+ description: string;
88
+ category: string;
89
+ version: StreamSemanticVersion;
90
+ author: StreamNodeSpecificationAuthor;
91
+ tag?: StreamNodeSpecificationTag[];
92
+ inputs?: StreamNodeSpecificationInput[];
93
+ outputs?: StreamNodeSpecificationOutputV2[];
94
+ additionalConnectors?: StreamNodeSpecificationAdditionalConnector[];
95
+ path?: string;
96
+ customNode?: StreamCustomNodeSpecification;
97
+ }
98
+ /**
99
+ * This functions will return true when the specVersion is undefined to account for older catalogs/nodes
100
+ * that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
101
+ * has a spec that matches version 1.
102
+ */
80
103
  export declare function isStreamNodeSpecificationV1(s: StreamNodeSpecification): s is StreamNodeSpecificationV1;
104
+ export declare function isStreamNodeSpecificationV2(s: StreamNodeSpecification): s is StreamNodeSpecificationV2;
81
105
  export interface StreamCustomNodeSpecification {
82
106
  _id: string;
83
107
  color?: string;
@@ -124,6 +148,12 @@ export interface StreamNodeSpecificationOutput {
124
148
  example: unknown;
125
149
  howToAccess: string[];
126
150
  }
151
+ export interface StreamNodeSpecificationOutputV2 {
152
+ name: string;
153
+ description: string;
154
+ type: StreamNodeSpecificationOutputType;
155
+ example: unknown;
156
+ }
127
157
  export declare enum StreamNodeSpecificationInputType {
128
158
  STRING = "STRING",
129
159
  STRING_LONG = "STRING_LONG",
@@ -2,8 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StreamNodeSpecificationPackage = exports.StreamNodeSpecificationTag = exports.StreamNodeSpecificationType = exports.StreamNodeSpecificationOutputType = exports.StreamNodeSpecificationInputType = void 0;
4
4
  exports.isStreamNodeSpecificationV1 = isStreamNodeSpecificationV1;
5
+ exports.isStreamNodeSpecificationV2 = isStreamNodeSpecificationV2;
6
+ /**
7
+ * This functions will return true when the specVersion is undefined to account for older catalogs/nodes
8
+ * that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
9
+ * has a spec that matches version 1.
10
+ */
5
11
  function isStreamNodeSpecificationV1(s) {
6
- return s.specVersion === 1;
12
+ return s.specVersion === undefined || s.specVersion === 1;
13
+ }
14
+ function isStreamNodeSpecificationV2(s) {
15
+ return s.specVersion === 2;
7
16
  }
8
17
  var StreamNodeSpecificationInputType;
9
18
  (function (StreamNodeSpecificationInputType) {
@@ -42,3 +42,4 @@ export interface GeneralSettings {
42
42
  entrypoint: Entrypoint;
43
43
  }
44
44
  export type GeneralSettingsPatch = Partial<Omit<GeneralSettings, "_id" | "user">>;
45
+ export type GeneralSettingsLastVisitPatch = Partial<Pick<GeneralSettings, "lastUrl" | "lastView">>;
@@ -20,6 +20,7 @@ export type Agent = {
20
20
  createDate: number;
21
21
  modifyDate: number;
22
22
  bundleVersion?: string;
23
+ installerVersion?: string;
23
24
  };
24
25
  export type TargetAgent = Pick<Agent, Exclude<keyof Agent, "uptime">> & {
25
26
  connectionUptime: number;
@@ -5,15 +5,12 @@ import { LicenseTier } from "../idp";
5
5
  declare enum NatsSubject {
6
6
  IDP_USER_GENERAL = "hcloud.idp.user.${userId}.general",
7
7
  IDP_USER_PROFILE = "hcloud.idp.user.${userId}.profile",
8
- IDP_USER_MESSAGES = "hcloud.idp.user.${userId}.messages",
9
- IDP_USER_SETTINGS_OAUTH = "hcloud.idp.user.${userId}.settings.oauth",
10
8
  IDP_USER_NOTIFICATIONS = "hcloud.idp.user.${userId}.notifications",
11
9
  IDP_USER_ORGS = "hcloud.idp.user.${userId}.orgs",
12
10
  IDP_USER_INVITATIONS = "hcloud.idp.user.${userId}.invitations",
13
11
  IDP_USER_SECURITY_PATS = "hcloud.idp.user.${userId}.security.pats",
14
12
  IDP_USER_SECURITY_GENERAL = "hcloud.idp.user.${userId}.security.general",
15
13
  IDP_USER_LICENSE = "hcloud.idp.user.${userId}.license",
16
- IDP_ORGANIZATION_GENERAL = "hcloud.idp.organization.${base64orgName}.general",
17
14
  IDP_ORGANIZATION_INVITATIONS = "hcloud.idp.organization.${base64orgName}.invitations",
18
15
  IDP_ORGANIZATION_MEMBERS = "hcloud.idp.organization.${base64orgName}.members",
19
16
  IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET = "hcloud.idp.organization.${base64orgName}.members.${base64email}.executionTarget",
@@ -21,7 +18,6 @@ declare enum NatsSubject {
21
18
  IDP_ORGANIZATION_TEAM_MEMBERS = "hcloud.idp.organization.${base64orgName}.teams.${base64teamName}.members",
22
19
  IDP_ORGANIZATION_LICENSE = "hcloud.idp.organization.${base64orgName}.license",
23
20
  HIGH5_SPACES = "hcloud.high5.organization.${base64orgName}.spaces",
24
- HIGH5_SPACE = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.>",
25
21
  HIGH5_SPACE_PERMISSIONS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
26
22
  HIGH5_STREAM_EXECUTE = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",
27
23
  HIGH5_STREAM_CANCEL = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
@@ -36,12 +32,11 @@ declare enum NatsSubject {
36
32
  HIGH5_NODES = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.node",
37
33
  High5_DESIGN = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.design",
38
34
  HIGH5_SNAPSHOTS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.snapshots",
35
+ HIGH5_WAVE_ENGINE_LATEST = "hcloud.high5.wave.engine.latest",
39
36
  FUSE_SPACES = "hcloud.fuse.organization.${base64orgName}.spaces",
40
- FUSE_SPACE = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.>",
41
37
  FUSE_SPACE_PERMISSIONS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
42
38
  FUSE_JOBS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs",
43
39
  FUSE_JOB_LOGS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.${jobId}.logs",
44
- FUSE_JOBS_TRIGGER = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.trigger",
45
40
  AUDITOR_LOGS = "hcloud.auditor.organization.${base64orgName}.logs",
46
41
  DEBUG_NAMESPACE = "hcloud.debug.namespace.${product}"
47
42
  }
@@ -90,14 +85,11 @@ interface NatsMessage {
90
85
  interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, NatsSecretObject, NatsExecTargetObject, High5ExecuteOnAgentRequest, High5ExecutionCancelRequest, NatsLicenseObject, NatsCustomNodeObject {
91
86
  [NatsSubject.IDP_USER_GENERAL]: NatsIdObject;
92
87
  [NatsSubject.IDP_USER_PROFILE]: NatsIdObject;
93
- [NatsSubject.IDP_USER_MESSAGES]: unknown;
94
88
  [NatsSubject.IDP_USER_SECURITY_PATS]: NatsIdObject;
95
89
  [NatsSubject.IDP_USER_SECURITY_GENERAL]: unknown;
96
- [NatsSubject.IDP_USER_SETTINGS_OAUTH]: unknown;
97
90
  [NatsSubject.IDP_USER_NOTIFICATIONS]: NatsIdObject;
98
91
  [NatsSubject.IDP_USER_INVITATIONS]: NatsIdObject;
99
92
  [NatsSubject.IDP_USER_LICENSE]: NatsIdObject;
100
- [NatsSubject.IDP_ORGANIZATION_GENERAL]: NatsNameObject;
101
93
  [NatsSubject.IDP_ORGANIZATION_INVITATIONS]: NatsIdObject;
102
94
  [NatsSubject.IDP_ORGANIZATION_MEMBERS]: NatsMemberObject;
103
95
  [NatsSubject.IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET]: NatsExecTargetObject;
@@ -105,7 +97,6 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
105
97
  [NatsSubject.IDP_ORGANIZATION_TEAM_MEMBERS]: NatsIdObject;
106
98
  [NatsSubject.IDP_ORGANIZATION_LICENSE]: NatsLicenseObject;
107
99
  [NatsSubject.HIGH5_SPACES]: NatsNameObject;
108
- [NatsSubject.HIGH5_SPACE]: NatsNameObject;
109
100
  [NatsSubject.HIGH5_SPACE_PERMISSIONS]: NatsIdObject;
110
101
  [NatsSubject.HIGH5_STREAM_EXECUTE]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
111
102
  [NatsSubject.HIGH5_STREAM_CANCEL]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
@@ -121,11 +112,9 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
121
112
  [NatsSubject.HIGH5_WEBHOOK_LOGS]: NatsIdObject;
122
113
  [NatsSubject.HIGH5_CATALOGS]: NatsIdObject;
123
114
  [NatsSubject.FUSE_SPACES]: NatsNameObject;
124
- [NatsSubject.FUSE_SPACE]: NatsNameObject;
125
115
  [NatsSubject.FUSE_SPACE_PERMISSIONS]: NatsIdObject;
126
116
  [NatsSubject.FUSE_JOBS]: NatsIdObject;
127
117
  [NatsSubject.FUSE_JOB_LOGS]: NatsIdObject;
128
- [NatsSubject.FUSE_JOBS_TRIGGER]: unknown;
129
118
  [NatsSubject.AUDITOR_LOGS]: NatsIdObject;
130
119
  [NatsSubject.DEBUG_NAMESPACE]: string;
131
120
  }
@@ -163,7 +152,6 @@ declare class NatsSubjects {
163
152
  new (): {};
164
153
  GENERAL: (userId: string) => string;
165
154
  PROFILE: (userId: string) => string;
166
- MESSAGES: (userId: string) => string;
167
155
  ORGS: (userId: string) => string;
168
156
  INVITATIONS: (userId: string) => string;
169
157
  NOTIFICATIONS: (userId: string) => string;
@@ -173,15 +161,9 @@ declare class NatsSubjects {
173
161
  PATS: (userId: string) => string;
174
162
  GENERAL: (userId: string) => string;
175
163
  };
176
- Settings: {
177
- new (): {};
178
- OAUTH: (userId: string) => string;
179
- GENERAL_SETTINGS: (userId: string) => string;
180
- };
181
164
  };
182
165
  Organization: {
183
166
  new (): {};
184
- GENERAL: (organizationName: string) => string;
185
167
  INVITATIONS: (organizationName: string) => string;
186
168
  MEMBERS: (organizationName: string) => string & {
187
169
  EXECUTION_TARGET: (email: string) => string;
@@ -199,7 +181,6 @@ declare class NatsSubjects {
199
181
  SPACES: (organizationName: string) => string;
200
182
  Space: {
201
183
  new (): {};
202
- SPACE: (organizationName: string, spaceName: string) => string;
203
184
  PERMISSIONS: (organizationName: string, spaceName: string) => string;
204
185
  Jobs: {
205
186
  new (): {};
@@ -218,7 +199,6 @@ declare class NatsSubjects {
218
199
  SPACES: (organizationName: string) => string;
219
200
  Space: {
220
201
  new (): {};
221
- SPACE: (organizationName: string, spaceName: string) => string;
222
202
  PERMISSIONS: (organizationName: string, spaceName: string) => string;
223
203
  EVENTS: (organizationName: string, spaceName: string) => string;
224
204
  STREAMS: (organizationName: string, spaceName: string) => string;
@@ -241,6 +221,13 @@ declare class NatsSubjects {
241
221
  CATALOGS: (organizationName: string, spaceName: string) => string;
242
222
  NODES: (organizationName: string, spaceName: string) => string;
243
223
  };
224
+ WAVE: {
225
+ new (): {};
226
+ ENGINE: {
227
+ new (): {};
228
+ LATEST: NatsSubject;
229
+ };
230
+ };
244
231
  };
245
232
  static Auditor: {
246
233
  new (): {};