hcloud-sdk 22.50.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.50.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.49.0...v22.50.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 renameDomain method to allow renaming of existing domains ([3e2775c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3e2775c42363d739b8568fd3828c5dd551ecd7bb))
5
+ * add missing storageId parameter to create space endpoint ([8991813](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8991813e74d767775efb9b541ede7f6f8cb15268))
@@ -4,6 +4,14 @@ export interface OIDCProvider {
4
4
  tokenEndpoint?: string;
5
5
  discoveryEndpoint?: string;
6
6
  }
7
- export type OIDCProviderCreateDto = OIDCProvider & {
7
+ export type OIDCProviderCreateDto = Pick<OIDCProvider, "clientId"> & {
8
8
  clientSecret: string;
9
- };
9
+ } & ({
10
+ discoveryEndpoint: string;
11
+ authorizationEndpoint?: never;
12
+ tokenEndpoint?: never;
13
+ } | {
14
+ authorizationEndpoint: string;
15
+ tokenEndpoint: string;
16
+ discoveryEndpoint?: never;
17
+ });
@@ -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
  });
@@ -1,5 +1,6 @@
1
1
  import Base, { MaybeRaw } from "../../../../../Base";
2
2
  import { Domain, SSOProvider } from "../../../../../interfaces/idp/organization/settings/domain";
3
+ import { IdpOIDCProvider } from "./oidc";
3
4
  import { IdpSAMLProvider } from "./saml";
4
5
  export declare class IdpDomain extends Base {
5
6
  /**
@@ -7,6 +8,11 @@ export declare class IdpDomain extends Base {
7
8
  */
8
9
  get samlProvider(): IdpSAMLProvider;
9
10
  private _samlProvider?;
11
+ /**
12
+ * Handles everything around an OIDC provider of a domain.
13
+ */
14
+ get oidcProvider(): IdpOIDCProvider;
15
+ private _oidcProvider?;
10
16
  /**
11
17
  * Retrieves all the Domains associated with a given Organization.
12
18
  * @param orgName Name of Organization
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.IdpDomain = void 0;
16
16
  const Base_1 = __importDefault(require("../../../../../Base"));
17
+ const oidc_1 = require("./oidc");
17
18
  const saml_1 = require("./saml");
18
19
  class IdpDomain extends Base_1.default {
19
20
  /**
@@ -25,6 +26,15 @@ class IdpDomain extends Base_1.default {
25
26
  }
26
27
  return this._samlProvider;
27
28
  }
29
+ /**
30
+ * Handles everything around an OIDC provider of a domain.
31
+ */
32
+ get oidcProvider() {
33
+ if (this._oidcProvider === undefined) {
34
+ this._oidcProvider = new oidc_1.IdpOIDCProvider(this.options, this.axios);
35
+ }
36
+ return this._oidcProvider;
37
+ }
28
38
  /**
29
39
  * Retrieves all the Domains associated with a given Organization.
30
40
  * @param orgName Name of Organization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.50.0",
3
+ "version": "22.51.1",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",