hcloud-sdk 22.51.0 → 22.51.1

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,5 +1,5 @@
1
- ## [22.51.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.50.0...v22.51.0) (2026-10-07)
1
+ ## [22.51.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.51.0...v22.51.1) (2026-10-08)
2
2
 
3
- ### Features
3
+ ### Bug Fixes
4
4
 
5
- * add OIDC support by introducing OIDCProvider and integrating it into IdpDomain ([929b166](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/929b1668d9b2bd466a5a2c1a125b944361f69ed2))
5
+ * add missing storageId parameter to create space endpoint ([8991813](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8991813e74d767775efb9b541ede7f6f8cb15268))
@@ -16,10 +16,12 @@ export declare class CosmoSpace extends Base {
16
16
  * @remarks
17
17
  * ** Under development, breaking changes possible**
18
18
  * @param orgName Name of the Organization
19
+ * @param spaceName Name of the Space to create
20
+ * @param storageId ID of the Storage to associate with the Space
19
21
  * @param noAvatar Optional flag to create the Space without an avatar
20
22
  * @returns The created Space
21
23
  */
22
- createSpace<R extends boolean = false>(orgName: string, spaceName: string, noAvatar?: boolean, raw?: {
24
+ createSpace<R extends boolean = false>(orgName: string, spaceName: string, noAvatar?: boolean, storageId?: string, raw?: {
23
25
  raw: R;
24
26
  }): Promise<MaybeRaw<R, ICosmoSpace>>;
25
27
  /**
@@ -32,13 +32,16 @@ class CosmoSpace extends Base_1.default {
32
32
  * @remarks
33
33
  * ** Under development, breaking changes possible**
34
34
  * @param orgName Name of the Organization
35
+ * @param spaceName Name of the Space to create
36
+ * @param storageId ID of the Storage to associate with the Space
35
37
  * @param noAvatar Optional flag to create the Space without an avatar
36
38
  * @returns The created Space
37
39
  */
38
- createSpace(orgName, spaceName, noAvatar, raw) {
40
+ createSpace(orgName, spaceName, noAvatar, storageId, raw) {
39
41
  return __awaiter(this, void 0, void 0, function* () {
40
42
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces?noAvatar=${noAvatar ? "true" : "false"}`), {
41
43
  name: spaceName,
44
+ storageId,
42
45
  });
43
46
  return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
44
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.51.0",
3
+ "version": "22.51.1",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",