hcloud-sdk 22.24.0 → 22.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,8 +1,5 @@
1
- ## [22.24.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.23.1...v22.24.0) (2026-08-31)
1
+ ## [22.27.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.26.0...v22.27.0) (2026-08-31)
2
2
 
3
3
  ### Features
4
4
 
5
- * add pollQueue to High5 execute ([1143441](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1143441ed33dd36897cfbeee4051f3c0d0a48ddc))
6
- * add queued execution and disconnect NATS types ([0fab4e6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0fab4e63f485e0bf257f2e2439eae5aeea35f37b))
7
- * add queued execution fields to High5ExecutionStatus ([754cbd1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/754cbd179741125f306feaf8d8f47bb95978598b))
8
- * update pollQueue to global endpoint ([d845634](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d84563475b520f4faf4ca0d8046539ca3192518d))
5
+ * introduce a new nats subject for standard user information ([ae9c76c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ae9c76c44af9694b1846ae05a7faacc31b6f0407))
@@ -1,4 +1,5 @@
1
1
  import { StreamCustomNodeSpecification, StreamNodeSpecificationInputType, StreamSemanticVersion } from "../../../../wave";
2
+ import { Query } from "../../../../wave/dependentInputs";
2
3
  export interface CanvasDimensions {
3
4
  width: number;
4
5
  height: number;
@@ -47,6 +48,7 @@ export interface DesignerNodeInput {
47
48
  type: StreamNodeSpecificationInputType;
48
49
  selectedLanguage?: StringMap;
49
50
  expression?: boolean;
51
+ if?: Query;
50
52
  example: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
51
53
  value?: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
52
54
  mandatory?: boolean;
@@ -5,6 +5,7 @@ import { High5ExecuteOnAgentRequest, High5ExecutionCancelRequest } from "../high
5
5
  import { CapturedRequest } from "../high5/space/request";
6
6
  import { LicenseTier } from "../idp";
7
7
  declare enum NatsSubject {
8
+ IDP_USER = "hcloud.idp.user.${userId}",
8
9
  IDP_USER_GENERAL = "hcloud.idp.user.${userId}.general",
9
10
  IDP_USER_PROFILE = "hcloud.idp.user.${userId}.profile",
10
11
  IDP_USER_NOTIFICATIONS = "hcloud.idp.user.${userId}.notifications",
@@ -132,8 +133,9 @@ interface NatsMessage {
132
133
  object: NatsObject;
133
134
  objectType: NatsObjectType;
134
135
  }
135
- interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, NatsSecretObject, NatsExecTargetObject, High5ExecuteOnAgentRequest, High5ExecutionCancelRequest, CapturedRequest, NatsLicenseObject, NatsCustomNodeObject, NatsAssetObject, NatsIdNoUnderscoreObject, NatsTargetObject, NatsAgentConnectionObject, NatsCosmoStatusObject {
136
+ interface NatsObject extends NatsNameObject, NatsIdObject, NatsUserInformObject, NatsMemberObject, NatsSecretObject, NatsExecTargetObject, High5ExecuteOnAgentRequest, High5ExecutionCancelRequest, CapturedRequest, NatsLicenseObject, NatsCustomNodeObject, NatsAssetObject, NatsIdNoUnderscoreObject, NatsTargetObject, NatsAgentConnectionObject, NatsCosmoStatusObject {
136
137
  [NatsSubject.IDP_USER_GENERAL]: NatsIdObject;
138
+ [NatsSubject.IDP_USER]: NatsUserInformObject;
137
139
  [NatsSubject.IDP_USER_PROFILE]: NatsIdObject;
138
140
  [NatsSubject.IDP_USER_SECURITY_PATS]: NatsIdObject;
139
141
  [NatsSubject.IDP_USER_SECURITY_GENERAL]: unknown;
@@ -193,6 +195,9 @@ interface NatsIdObject {
193
195
  interface NatsIdNoUnderscoreObject {
194
196
  id: string;
195
197
  }
198
+ interface NatsUserInformObject extends NatsIdObject {
199
+ msg: string;
200
+ }
196
201
  interface NatsAssetObject {
197
202
  _id: string;
198
203
  parent?: {
@@ -250,6 +255,7 @@ type NatsCallback = (err: Error | null, msg?: NatsMessage, rawMsg?: Msg) => void
250
255
  declare class NatsSubjects {
251
256
  static IDP: {
252
257
  new (): {};
258
+ USER: (userId: string, msg: string) => string;
253
259
  User: {
254
260
  new (): {};
255
261
  GENERAL: (userId: string) => string;
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.NatsSubjects = exports.NatsSubject = exports.NatsObjectType = exports.NatsMessageType = void 0;
9
9
  var NatsSubject;
10
10
  (function (NatsSubject) {
11
+ NatsSubject["IDP_USER"] = "hcloud.idp.user.${userId}";
11
12
  NatsSubject["IDP_USER_GENERAL"] = "hcloud.idp.user.${userId}.general";
12
13
  NatsSubject["IDP_USER_PROFILE"] = "hcloud.idp.user.${userId}.profile";
13
14
  NatsSubject["IDP_USER_NOTIFICATIONS"] = "hcloud.idp.user.${userId}.notifications";
@@ -141,6 +142,9 @@ exports.NatsSubjects = NatsSubjects;
141
142
  NatsSubjects.IDP = (_a = class {
142
143
  },
143
144
  __setFunctionName(_a, "IDP"),
145
+ _a.USER = (userId, msg) => {
146
+ return NatsSubjects.replace(NatsSubject.IDP_USER, { userId, msg });
147
+ },
144
148
  _a.User = (_b = class {
145
149
  },
146
150
  __setFunctionName(_b, "User"),
@@ -504,6 +508,7 @@ NatsSubjects.replace = (subject, replacements) => {
504
508
  subject = subject.replace("${base64watchFolderName}", replacements.watchFolderName ? (replacements.watchFolderName === "*" ? "*" : base64Encode(replacements.watchFolderName)) : "null");
505
509
  subject = subject.replace("${watchFolderId}", replacements.watchFolderId || "null");
506
510
  subject = subject.replace("${agentUuid}", replacements.agentUuid || "null");
511
+ subject = subject.replace("${msg}", replacements.msg || "null");
507
512
  return subject;
508
513
  };
509
514
  const base64Encode = (str) => {
@@ -131,7 +131,9 @@ class S3 extends Base_1.default {
131
131
  getChangelog(catalogUrl, raw) {
132
132
  return __awaiter(this, void 0, void 0, function* () {
133
133
  const resp = yield axios_1.default
134
- .get(catalogUrl + "changelog.json", { headers: Object.assign(Object.assign({}, axios_2.disableCacheHeaders), { "x-hcloud-user-agent": sdkVersion, Authorization: undefined }) })
134
+ .get(catalogUrl + "changelog.json", {
135
+ headers: Object.assign(Object.assign({}, axios_2.disableCacheHeaders), { "x-hcloud-user-agent": sdkVersion, Authorization: undefined }),
136
+ })
135
137
  .catch(err => {
136
138
  throw new Error(`Node documentation not found: ${err}`);
137
139
  });
@@ -51,6 +51,7 @@ class Nats extends Base_1.default {
51
51
  name: params.name,
52
52
  debug: params.debug,
53
53
  maxReconnectAttempts: -1,
54
+ ignoreAuthErrorAbort: true,
54
55
  servers: params.servers,
55
56
  pingInterval: 55 * 1000, //ping every 55 seconds
56
57
  user: params.email !== undefined ? params.email : params.username,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.24.0",
3
+ "version": "22.27.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -30,23 +30,23 @@
30
30
  "@amanda-mitchell/semantic-release-npm-multiple": "^3.17.0",
31
31
  "@commitlint/cli": "^19.8.1",
32
32
  "@commitlint/config-conventional": "^19.8.1",
33
- "@eslint/compat": "^1.2.9",
34
- "@eslint/eslintrc": "^3.3.1",
35
- "@eslint/js": "^9.27.0",
36
- "@semantic-release/changelog": "^6.0.3",
33
+ "@eslint/compat": "^2.1.0",
34
+ "@eslint/eslintrc": "^3.3.6",
35
+ "@eslint/js": "^10.0.1",
36
+ "@semantic-release/changelog": "^7.0.0",
37
37
  "@semantic-release/exec": "^7.1.0",
38
- "@semantic-release/git": "^10.0.1",
38
+ "@semantic-release/git": "^11.0.1",
39
39
  "@trivago/prettier-plugin-sort-imports": "^5.2.2",
40
40
  "@types/node": "^22.15.19",
41
- "@typescript-eslint/eslint-plugin": "^8.32.1",
42
- "@typescript-eslint/parser": "^8.32.1",
41
+ "@typescript-eslint/eslint-plugin": "^8.68.0",
42
+ "@typescript-eslint/parser": "^8.68.0",
43
43
  "conventional-changelog-conventionalcommits": "^8.0.0",
44
- "eslint": "^9.27.0",
45
- "eslint-config-prettier": "^10.1.5",
46
- "eslint-plugin-import": "^2.31.0",
47
- "globals": "^16.1.0",
48
- "prettier": "^3.5.3",
49
- "semantic-release": "^25.0.5",
44
+ "eslint": "^10.9.1",
45
+ "eslint-config-prettier": "^10.1.8",
46
+ "eslint-plugin-import": "^2.32.0",
47
+ "globals": "^17.11.0",
48
+ "prettier": "^3.9.6",
49
+ "semantic-release": "^25.0.9",
50
50
  "semantic-release-telegram": "^1.6.2",
51
51
  "ts-node": "^10.9.2",
52
52
  "typescript": "^5.8.3"