hcloud-sdk 22.20.0 → 22.21.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,9 +1,5 @@
1
- ## [22.20.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.19.0...v22.20.0) (2026-08-11)
1
+ ## [22.21.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.20.1...v22.21.0) (2026-08-25)
2
2
 
3
3
  ### Features
4
4
 
5
- * add ai to products ([e196da8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e196da8c8df549f12cc14ca85a527ad01c7c59f0))
6
-
7
- ### Bug Fixes
8
-
9
- * passthrough sse events from ai ([bdbff63](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/bdbff63b8200750d201a4ab05b3230a4008d060a))
5
+ * add name connection param to NATS ([fef427a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fef427a6da3691c14eb7bd9229a1bfe0ff49b5d5))
@@ -15,7 +15,7 @@ export type AIHigh5StreamEvent = {
15
15
  message: string;
16
16
  } | {
17
17
  type: "done";
18
- response: Omit<AIHigh5StreamResponse, "message">;
18
+ response: AIHigh5StreamResponse;
19
19
  } | {
20
20
  type: "error";
21
21
  message: string;
@@ -10,6 +10,7 @@ import { NatsCallback, NatsMessageType, NatsObject, NatsObjectType, RawMsg } fro
10
10
  * Object.assign(global, { WebSocket: WebSocket });
11
11
  */
12
12
  type ConnectParamsJwt = {
13
+ name?: string;
13
14
  email: string;
14
15
  jwt: string;
15
16
  servers?: string[];
@@ -26,6 +27,7 @@ type ConnectParamsJwt = {
26
27
  * Object.assign(global, { WebSocket: WebSocket });
27
28
  */
28
29
  type ConnectParamsPassword = {
30
+ name?: string;
29
31
  username: string;
30
32
  password: string;
31
33
  servers?: string[];
@@ -48,6 +48,7 @@ class Nats extends Base_1.default {
48
48
  }
49
49
  }
50
50
  this.natsConnection = yield this.connection({
51
+ name: params.name,
51
52
  debug: params.debug,
52
53
  maxReconnectAttempts: -1,
53
54
  servers: params.servers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.20.0",
3
+ "version": "22.21.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",