hcloud-sdk 22.42.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 +2 -2
- package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
- package/lib/interfaces/idp/organization/settings/domain/index.d.ts +8 -2
- package/lib/interfaces/idp/organization/settings/domain/index.js +2 -1
- package/lib/service/idp/organization/settings/domain/index.d.ts +10 -1
- package/lib/service/idp/organization/settings/domain/index.js +12 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## [22.
|
|
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
|
-
* add
|
|
5
|
+
* add SSO provider retrieval for domains ([e1cc605](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e1cc605f865f7ce53898ca5eea915c5b8a9b70cd))
|
|
@@ -52,8 +52,10 @@ export interface Webhook {
|
|
|
52
52
|
error?: string;
|
|
53
53
|
};
|
|
54
54
|
callbackEnabled: boolean;
|
|
55
|
+
/** If true, the execution target can be overwritten per request via '?target=<pool name or user email>' */
|
|
56
|
+
targetOverrideEnabled: boolean;
|
|
55
57
|
}
|
|
56
|
-
export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings" | "callbackEnabled"
|
|
58
|
+
export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings" | "callbackEnabled"> & Partial<Pick<Webhook, "targetOverrideEnabled">>;
|
|
57
59
|
export type WebhookUpdate = Partial<WebhookCreate> & {
|
|
58
60
|
deleteWebhookEncryptionSettings?: boolean;
|
|
59
61
|
deleteSecurityHeaders?: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReducedOrganization } from "../..";
|
|
2
2
|
import { ReducedUser } from "../../../user";
|
|
3
|
-
|
|
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
|