hcloud-sdk 22.43.0 → 22.44.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.43.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.42.0...v22.43.0) (2026-10-01)
1
+ ## [22.44.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.43.0...v22.44.0) (2026-10-02)
2
2
 
3
3
  ### Features
4
4
 
5
- * allow target client pool selection for webhook execution ([776de17](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/776de177289affb41de4af45319e4351580962c8))
5
+ * add SSO provider retrieval for domains ([e1cc605](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e1cc605f865f7ce53898ca5eea915c5b8a9b70cd))
@@ -1,6 +1,8 @@
1
1
  import { ReducedOrganization } from "../..";
2
2
  import { ReducedUser } from "../../../user";
3
- declare enum VerificationStatus {
3
+ import { OIDCProvider } from "./oidc";
4
+ import { FullSAMLProvider } from "./saml";
5
+ export declare enum VerificationStatus {
4
6
  verified = "verified",
5
7
  waiting = "waiting",
6
8
  error = "error"
@@ -16,4 +18,8 @@ export interface Domain {
16
18
  createDate: number;
17
19
  modifyDate: number;
18
20
  }
19
- export {};
21
+ export type SSOProvider = (FullSAMLProvider & {
22
+ type: "saml";
23
+ }) | (OIDCProvider & {
24
+ type: "oidc";
25
+ });
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationStatus = void 0;
3
4
  var VerificationStatus;
4
5
  (function (VerificationStatus) {
5
6
  VerificationStatus["verified"] = "verified";
6
7
  VerificationStatus["waiting"] = "waiting";
7
8
  VerificationStatus["error"] = "error";
8
- })(VerificationStatus || (VerificationStatus = {}));
9
+ })(VerificationStatus || (exports.VerificationStatus = VerificationStatus = {}));
@@ -1,5 +1,5 @@
1
1
  import Base, { MaybeRaw } from "../../../../../Base";
2
- import { Domain } from "../../../../../interfaces/idp/organization/settings/domain";
2
+ import { Domain, SSOProvider } from "../../../../../interfaces/idp/organization/settings/domain";
3
3
  import { IdpSAMLProvider } from "./saml";
4
4
  export declare class IdpDomain extends Base {
5
5
  /**
@@ -33,6 +33,15 @@ export declare class IdpDomain extends Base {
33
33
  verifyDomain<R extends boolean = false>(orgName: string, domainName: string, raw?: {
34
34
  raw: R;
35
35
  }): Promise<MaybeRaw<R, Domain>>;
36
+ /**
37
+ * Retrieves the SSO provider of a Domain.
38
+ * @param orgName Name of the organization
39
+ * @param domainName Name of the Domain
40
+ * @returns The SAML or OIDC provider of the Domain (check `type`), or null if it has none
41
+ */
42
+ getProvider<R extends boolean = false>(orgName: string, domainName: string, raw?: {
43
+ raw: R;
44
+ }): Promise<MaybeRaw<R, SSOProvider | null>>;
36
45
  /**
37
46
  * Deletes a domain.
38
47
  * @param orgName Name of the organization
@@ -62,6 +62,18 @@ class IdpDomain extends Base_1.default {
62
62
  return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
63
63
  });
64
64
  }
65
+ /**
66
+ * Retrieves the SSO provider of a Domain.
67
+ * @param orgName Name of the organization
68
+ * @param domainName Name of the Domain
69
+ * @returns The SAML or OIDC provider of the Domain (check `type`), or null if it has none
70
+ */
71
+ getProvider(orgName, domainName, raw) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/settings/domains/${domainName}/provider`));
74
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
75
+ });
76
+ }
65
77
  /**
66
78
  * Deletes a domain.
67
79
  * @param orgName Name of the organization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.43.0",
3
+ "version": "22.44.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",