hcloud-sdk 21.0.0 → 21.1.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,31 +1,5 @@
1
- ## [21.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v20.4.0...v21.0.0) (2026-06-11)
2
-
3
- ### ⚠ BREAKING CHANGES
4
-
5
- * replace MAYBE_GUEST with GUEST
1
+ ## [21.1.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v21.0.1...v21.1.0) (2026-06-25)
6
2
 
7
3
  ### Features
8
4
 
9
- * add - to be allowed char for tag names ([9666ed4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9666ed4ad1ca1643447aca5495241afdc47afccb))
10
- * add asset versioning and browsing ([4e40635](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4e406351ff9f7e2d1808561460ae2a3b39fbdcab))
11
- * add email status to shares ([b9efb8c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b9efb8c2f40ccb8014bfcdd3740663b9a415807f))
12
- * add EmailCooldown response on 200 status code for share resend emails ([fc7371a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fc7371ab619c2432a7c688caf0eeef4844e41165))
13
- * add endpoins introduced in cosmo ([46b3570](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/46b35704b4a88a97ed544a0816eef0e28ed23192))
14
- * add endpoint to fetch the assets vtt ([b8e00a7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b8e00a7597c10322432c5e06c8abb8c179a11a9b))
15
- * add mailer send resend endpoint; refacor: mail instances ([888414e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/888414e7f458ee9a8de188f23b3a1acf66ae4dea))
16
- * **ci:** move release trigger to main ([c5e6d3f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c5e6d3f8e9ea9f77302dcc47937f6dcae05cc36d))
17
- * **high5-document:** add optional ttl parameter ([1425f75](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1425f75c5b882434df3b19a2805bcc8d77087b8d))
18
- * **high5:** add ANY document type support ([975fb02](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/975fb02c2e6a16f697b2cf0ab9ccabf751306cc7))
19
- * **high5:** add partial update and key deletion for object documents ([de05ff0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/de05ff01a57ed285f06217d1c601273b1256018f))
20
- * **high5:** implement upsert document endpoint ([53a2820](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/53a282060ad3351395d98c1824f96a5345fef025))
21
- * **high5:** update cronjob methods to support schedule presets ([60b06a8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/60b06a8fbcdde69e507e5abbbb2b1d1500f18894))
22
- * implement sendMentionNotification for comment for all users ([1341089](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1341089f53e8fb23469badf53c626823e8fb40e7))
23
- * implements colorcode enum for comment and marker color ([3689405](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/368940591a8cf78c80e55620feef0a30b52a843a))
24
- * implements visibility field in comment to toggle internal and external visibility ([80c43bb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/80c43bb54c6c211ecccf6b5d872f9f69766ae659))
25
- * replace MAYBE_GUEST with GUEST ([1792079](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/17920793ef7fa876262dc0fb5abc98ee866da7a1))
26
-
27
- ### Bug Fixes
28
-
29
- * lint changes ([b1a0712](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b1a0712f8bd7cf056657815d41266395325a5734))
30
- * make timestamp out optional ([673b769](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/673b76982d3756dbd4d8886835c62a73d8ee89ab))
31
- * re-allow whitespace on tag names ([e01c87b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e01c87b0e56cc5bd55af1dcd2a530c11bfe9666e))
5
+ * publish a new major version ([a2d646f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a2d646ff29d9665fad4b8aabc60dc2046674f577))
@@ -229,4 +229,8 @@ export type VTTThumbnail = {
229
229
  h: number;
230
230
  };
231
231
  };
232
+ export type AudioWaveformItem = {
233
+ assetId: string;
234
+ channels: number[][];
235
+ };
232
236
  export {};
@@ -96,7 +96,7 @@ export declare class IdpAccountApprovedMailjetMailDTO extends MailDTO {
96
96
  constructor(recipients: string[], username: string, signInLink: string);
97
97
  }
98
98
  export declare class CosmoNewShareMailjetMailDTO extends MailDTO {
99
- constructor(recipients: string[], shareLink: string);
99
+ constructor(recipients: string[], shareLink: string, shareMessage: string);
100
100
  }
101
101
  export declare class CosmoUserAddedToSpaceMailjetMailDTO extends MailDTO {
102
102
  constructor(recipients: string[], actorName: string, recipientName: string, spaceName: string, link: string);
@@ -144,7 +144,7 @@ export declare class IdpAccountApprovedResendMailDTO extends MailDTO {
144
144
  constructor(recipients: string[], username: string, signInLink: string);
145
145
  }
146
146
  export declare class CosmoNewShareResendMailDTO extends MailDTO {
147
- constructor(recipients: string[], recipientEmail: string, shareLink: string);
147
+ constructor(recipients: string[], recipientEmail: string, shareLink: string, shareMessage: string);
148
148
  }
149
149
  export declare class CosmoUserAddedToSpaceResendMailDTO extends MailDTO {
150
150
  constructor(recipients: string[], actorName: string, recipientName: string, recipientEmail: string, spaceName: string, link: string);
@@ -103,9 +103,10 @@ class IdpAccountApprovedMailjetMailDTO extends MailDTO {
103
103
  }
104
104
  exports.IdpAccountApprovedMailjetMailDTO = IdpAccountApprovedMailjetMailDTO;
105
105
  class CosmoNewShareMailjetMailDTO extends MailDTO {
106
- constructor(recipients, shareLink) {
106
+ constructor(recipients, shareLink, shareMessage) {
107
107
  super(recipients, MailTemplate.COSMO_NEW_SHARE, {
108
108
  HCLOUD_SHARE_LINK: shareLink,
109
+ HCLOUD_SHARE_MESSAGE: shareMessage,
109
110
  });
110
111
  }
111
112
  }
@@ -274,10 +275,11 @@ class IdpAccountApprovedResendMailDTO extends MailDTO {
274
275
  }
275
276
  exports.IdpAccountApprovedResendMailDTO = IdpAccountApprovedResendMailDTO;
276
277
  class CosmoNewShareResendMailDTO extends MailDTO {
277
- constructor(recipients, recipientEmail, shareLink) {
278
+ constructor(recipients, recipientEmail, shareLink, shareMessage) {
278
279
  super(recipients, MailTemplate.COSMO_NEW_SHARE, {
279
280
  RECIPIENT_EMAIL: recipientEmail,
280
281
  LINK: shareLink,
282
+ HCLOUD_SHARE_MESSAGE: shareMessage,
281
283
  });
282
284
  }
283
285
  }
@@ -1,6 +1,6 @@
1
1
  import Base, { MaybeRaw } from "../../../Base";
2
2
  import { AuditLog } from "../../../interfaces/auditor";
3
- import { Asset, AssetFilter, AssetPermission, AssetSearchContext, CreateAsset, Mentionable, PatchAsset, Resolution, SubscriptionFilter, Upload, VTTThumbnail } from "../../../interfaces/cosmo/asset";
3
+ import { Asset, AssetFilter, AssetPermission, AssetSearchContext, AudioWaveformItem, CreateAsset, Mentionable, PatchAsset, Resolution, SubscriptionFilter, Upload, VTTThumbnail } from "../../../interfaces/cosmo/asset";
4
4
  import { Sorting } from "../../../interfaces/global";
5
5
  /**
6
6
  * @class Asset
@@ -281,6 +281,17 @@ export declare class CosmoAsset extends Base {
281
281
  cloneAsset<R extends boolean = false>(orgName: string, spaceName: string, assetIds: string[], parentId?: string, raw?: {
282
282
  raw: R;
283
283
  }): Promise<MaybeRaw<R, Asset[]>>;
284
+ /**
285
+ * Get audio waveform of an asset.
286
+ *
287
+ * @param orgName Name of the Organization
288
+ * @param spaceName Name of the Space
289
+ * @param assetId List of Asset IDs to be cloned. If folder IDs are specified, they will be recursively cloned.
290
+ * @returns the waveform array
291
+ */
292
+ getAssetWaveform<R extends boolean = false>(orgName: string, spaceName: string, assetId: string, raw?: {
293
+ raw: R;
294
+ }): Promise<MaybeRaw<R, AudioWaveformItem>>;
284
295
  /**
285
296
  * Subscribe to notifications for a specific asset or all assets in a space.
286
297
  *
@@ -423,6 +423,20 @@ class CosmoAsset extends Base_1.default {
423
423
  return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
424
424
  });
425
425
  }
426
+ /**
427
+ * Get audio waveform of an asset.
428
+ *
429
+ * @param orgName Name of the Organization
430
+ * @param spaceName Name of the Space
431
+ * @param assetId List of Asset IDs to be cloned. If folder IDs are specified, they will be recursively cloned.
432
+ * @returns the waveform array
433
+ */
434
+ getAssetWaveform(orgName, spaceName, assetId, raw) {
435
+ return __awaiter(this, void 0, void 0, function* () {
436
+ const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/assets/${assetId}/waveform`));
437
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
438
+ });
439
+ }
426
440
  /**
427
441
  * Subscribe to notifications for a specific asset or all assets in a space.
428
442
  *
@@ -32,7 +32,7 @@ export declare class CosmoComment extends Base {
32
32
  * @param orgName Name of the Organization
33
33
  * @param spaceName Name of the Space
34
34
  * @param namespaceName Name of the Namespace
35
- * @param limit Maximum number of comments to return, user -1 for no limit
35
+ * @param limit Maximum number of comments to return, use -1 for no limit
36
36
  * @param page Page number for pagination
37
37
  * @param annotation Whether to include annotations in the response
38
38
  * @param replySample Amount of replies to load
@@ -70,7 +70,7 @@ export declare class CosmoComment extends Base {
70
70
  * @param orgName Name of the Organization
71
71
  * @param spaceName Name of the Space
72
72
  * @param namespaceName Name of the Namespace
73
- * @param commentId ID of the Comment to edit
73
+ * @param commentId ID of the Comment to get
74
74
  * @param annotation Whether to include annotations in the response
75
75
  *
76
76
  * @returns The requested Comment
@@ -51,7 +51,7 @@ class CosmoComment extends Base_1.default {
51
51
  * @param orgName Name of the Organization
52
52
  * @param spaceName Name of the Space
53
53
  * @param namespaceName Name of the Namespace
54
- * @param limit Maximum number of comments to return, user -1 for no limit
54
+ * @param limit Maximum number of comments to return, use -1 for no limit
55
55
  * @param page Page number for pagination
56
56
  * @param annotation Whether to include annotations in the response
57
57
  * @param replySample Amount of replies to load
@@ -104,7 +104,7 @@ class CosmoComment extends Base_1.default {
104
104
  * @param orgName Name of the Organization
105
105
  * @param spaceName Name of the Space
106
106
  * @param namespaceName Name of the Namespace
107
- * @param commentId ID of the Comment to edit
107
+ * @param commentId ID of the Comment to get
108
108
  * @param annotation Whether to include annotations in the response
109
109
  *
110
110
  * @returns The requested Comment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "21.0.0",
3
+ "version": "21.1.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,12 +27,14 @@
27
27
  "author": "moovit-sp-gmbh",
28
28
  "homepage": "https://github.com/moovit-sp-gmbh/hcloud-sdk-js#readme",
29
29
  "devDependencies": {
30
+ "@amanda-mitchell/semantic-release-npm-multiple": "^3.17.0",
30
31
  "@commitlint/cli": "^19.8.1",
31
32
  "@commitlint/config-conventional": "^19.8.1",
32
33
  "@eslint/compat": "^1.2.9",
33
34
  "@eslint/eslintrc": "^3.3.1",
34
35
  "@eslint/js": "^9.27.0",
35
36
  "@semantic-release/changelog": "^6.0.3",
37
+ "@semantic-release/exec": "^7.1.0",
36
38
  "@semantic-release/git": "^10.0.1",
37
39
  "@trivago/prettier-plugin-sort-imports": "^5.2.2",
38
40
  "@types/node": "^22.15.19",