hcloud-sdk 22.55.0 → 22.56.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,6 @@
1
- ## [22.55.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.54.0...v22.55.0) (2026-10-12)
1
+ ## [22.56.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.56.0...v22.56.1) (2026-10-14)
2
2
 
3
- ### Features
3
+ ### Bug Fixes
4
4
 
5
- * configure SSO through the domain instead of separate OIDC/SAML providers ([dad6fcc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/dad6fcc21490df6e1ae1e18fc184a2510678db0b))
5
+ * trigger new build ([c420626](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c42062638a606b3e849fad493707fcb488e10c0b))
6
+ * trigger new build ([2e1f5a3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2e1f5a3d765c715f7e2cbd49fa855847e1ad4c79))
@@ -9,7 +9,7 @@ const axios_1 = __importDefault(require("axios"));
9
9
  const HCloudError_1 = __importDefault(require("../interfaces/global/HCloudError"));
10
10
  function wrapError(error) {
11
11
  if (axios_1.default.isAxiosError(error) && error.response) {
12
- return new HCloudError_1.default(error.response.status, error.response.statusText, error.response.data.code, error.response.data.error, error.response.data.message);
12
+ return new HCloudError_1.default(error.response.status, error.response.statusText, error.response.data.code, error.response.data.error, error.response.data.message, error.response.data.shortMessage);
13
13
  }
14
14
  return error;
15
15
  }
@@ -4,5 +4,6 @@ export default class HCloudError extends Error {
4
4
  code: string;
5
5
  error: string;
6
6
  message: string;
7
- constructor(status: number, statusText: string, code: string, error: string, message: string);
7
+ shortMessage?: string;
8
+ constructor(status: number, statusText: string, code: string, error: string, message: string, shortMessage?: string);
8
9
  }
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class HCloudError extends Error {
4
- constructor(status, statusText, code, error, message) {
4
+ constructor(status, statusText, code, error, message, shortMessage) {
5
5
  super(message);
6
6
  this.status = status;
7
7
  this.statusText = statusText;
8
8
  this.code = code;
9
9
  this.error = error;
10
10
  this.message = message;
11
+ this.shortMessage = shortMessage;
11
12
  }
12
13
  }
13
14
  exports.default = HCloudError;
@@ -25,6 +25,7 @@ declare enum NatsSubject {
25
25
  IDP_ORGANIZATION_SETTINGS_OAUTHAPP = "hcloud.idp.organization.${base64orgName}.settings.oauthapp.${oAuthAppId}",
26
26
  IDP_ORGANIZATION_SERVICE_ACCOUNTS = "hcloud.idp.organization.${base64orgName}.serviceAccounts",
27
27
  IDP_ORGANIZATION_STORAGE = "hcloud.idp.organization.${base64orgName}.storage",
28
+ IDP_ORGANIZATION_DOMAINS = "hcloud.idp.organization.${base64orgName}.domains",
28
29
  HIGH5_SPACES = "hcloud.high5.organization.${base64orgName}.spaces",
29
30
  HIGH5_SPACE_PERMISSIONS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
30
31
  HIGH5_STREAM_EXECUTE = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",
@@ -94,6 +95,7 @@ declare enum NatsObjectType {
94
95
  NOTIFICATIONS = "NOTIFICATIONS",
95
96
  GENERAL_SETTINGS = "GENERAL_SETTINGS",
96
97
  STORAGE = "STORAGE",
98
+ DOMAIN = "DOMAIN",
97
99
  SPACE = "SPACE",
98
100
  SPACE_PERMISSION = "SPACE_PERMISSION",
99
101
  DESIGN = "DESIGN",
@@ -152,6 +154,7 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
152
154
  [NatsSubject.IDP_ORGANIZATION_TEAM_MEMBERS]: NatsIdObject;
153
155
  [NatsSubject.IDP_ORGANIZATION_LICENSE]: NatsLicenseObject;
154
156
  [NatsSubject.IDP_ORGANIZATION_STORAGE]: NatsIdObject;
157
+ [NatsSubject.IDP_ORGANIZATION_DOMAINS]: NatsIdObject;
155
158
  [NatsSubject.HIGH5_SPACES]: NatsNameObject;
156
159
  [NatsSubject.HIGH5_SPACE_PERMISSIONS]: NatsIdObject;
157
160
  [NatsSubject.HIGH5_STREAM_EXECUTE]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
@@ -285,6 +288,7 @@ declare class NatsSubjects {
285
288
  Organization: {
286
289
  new (): {};
287
290
  STORAGE: (organizationName: string) => string;
291
+ DOMAINS: (organizationName: string) => string;
288
292
  INVITATIONS: (organizationName: string) => string;
289
293
  MEMBERS: (organizationName: string) => string & {
290
294
  EXECUTION_TARGET: (email: string) => string;
@@ -28,6 +28,7 @@ var NatsSubject;
28
28
  NatsSubject["IDP_ORGANIZATION_SETTINGS_OAUTHAPP"] = "hcloud.idp.organization.${base64orgName}.settings.oauthapp.${oAuthAppId}";
29
29
  NatsSubject["IDP_ORGANIZATION_SERVICE_ACCOUNTS"] = "hcloud.idp.organization.${base64orgName}.serviceAccounts";
30
30
  NatsSubject["IDP_ORGANIZATION_STORAGE"] = "hcloud.idp.organization.${base64orgName}.storage";
31
+ NatsSubject["IDP_ORGANIZATION_DOMAINS"] = "hcloud.idp.organization.${base64orgName}.domains";
31
32
  NatsSubject["HIGH5_SPACES"] = "hcloud.high5.organization.${base64orgName}.spaces";
32
33
  NatsSubject["HIGH5_SPACE_PERMISSIONS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions";
33
34
  NatsSubject["HIGH5_STREAM_EXECUTE"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}";
@@ -99,6 +100,7 @@ var NatsObjectType;
99
100
  NatsObjectType["NOTIFICATIONS"] = "NOTIFICATIONS";
100
101
  NatsObjectType["GENERAL_SETTINGS"] = "GENERAL_SETTINGS";
101
102
  NatsObjectType["STORAGE"] = "STORAGE";
103
+ NatsObjectType["DOMAIN"] = "DOMAIN";
102
104
  NatsObjectType["SPACE"] = "SPACE";
103
105
  NatsObjectType["SPACE_PERMISSION"] = "SPACE_PERMISSION";
104
106
  NatsObjectType["DESIGN"] = "DESIGN";
@@ -199,6 +201,9 @@ NatsSubjects.IDP = (_a = class {
199
201
  _d.STORAGE = (organizationName) => {
200
202
  return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_STORAGE, { organizationName });
201
203
  },
204
+ _d.DOMAINS = (organizationName) => {
205
+ return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_DOMAINS, { organizationName });
206
+ },
202
207
  _d.INVITATIONS = (organizationName) => {
203
208
  return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_INVITATIONS, { organizationName });
204
209
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.55.0",
3
+ "version": "22.56.1",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",