hcloud-sdk 22.49.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,11 +1,5 @@
|
|
|
1
|
-
## [22.
|
|
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
|
|
6
|
-
* add capacityInGB which reflects license quota as max usable capacity ([75a1dea](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/75a1dea437d657eacd967abaad9ae3e5688bd468))
|
|
7
|
-
* reflect new introduced byos license endpoint and interfaces ([efcb701](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/efcb701645e1e0f06800ba8e7c13c117d547c444))
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* default license quota determination and application ([e228077](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e2280774fec9b1a4969743b8c70ded3e307625fd))
|
|
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
|
|
@@ -33,6 +39,16 @@ export declare class IdpDomain extends Base {
|
|
|
33
39
|
verifyDomain<R extends boolean = false>(orgName: string, domainName: string, raw?: {
|
|
34
40
|
raw: R;
|
|
35
41
|
}): Promise<MaybeRaw<R, Domain>>;
|
|
42
|
+
/**
|
|
43
|
+
* Renames a Domain. The renamed Domain is no longer verified and has to be verified again with the same uuid.
|
|
44
|
+
* @param orgName Name of the organization
|
|
45
|
+
* @param domainName Current name of the Domain
|
|
46
|
+
* @param newDomainName New name of the Domain
|
|
47
|
+
* @returns the renamed Domain
|
|
48
|
+
*/
|
|
49
|
+
renameDomain<R extends boolean = false>(orgName: string, domainName: string, newDomainName: string, raw?: {
|
|
50
|
+
raw: R;
|
|
51
|
+
}): Promise<MaybeRaw<R, Domain>>;
|
|
36
52
|
/**
|
|
37
53
|
* Retrieves the SSO provider of a Domain.
|
|
38
54
|
* @param orgName Name of the 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
|
|
@@ -62,6 +72,21 @@ class IdpDomain extends Base_1.default {
|
|
|
62
72
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
63
73
|
});
|
|
64
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Renames a Domain. The renamed Domain is no longer verified and has to be verified again with the same uuid.
|
|
77
|
+
* @param orgName Name of the organization
|
|
78
|
+
* @param domainName Current name of the Domain
|
|
79
|
+
* @param newDomainName New name of the Domain
|
|
80
|
+
* @returns the renamed Domain
|
|
81
|
+
*/
|
|
82
|
+
renameDomain(orgName, domainName, newDomainName, raw) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/settings/domains/${domainName}`), {
|
|
85
|
+
name: newDomainName,
|
|
86
|
+
});
|
|
87
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
65
90
|
/**
|
|
66
91
|
* Retrieves the SSO provider of a Domain.
|
|
67
92
|
* @param orgName Name of the organization
|