hcloud-sdk 22.50.0 → 22.51.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,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.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.50.0...v22.51.0) (2026-10-07)
2
2
 
3
3
  ### Features
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 OIDC support by introducing OIDCProvider and integrating it into IdpDomain ([929b166](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/929b1668d9b2bd466a5a2c1a125b944361f69ed2))
@@ -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
+ });
@@ -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.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",