hcloud-sdk 22.9.1 → 22.9.3

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.9.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.9.0...v22.9.1) (2026-07-30)
1
+ ## [22.9.3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.9.2...v22.9.3) (2026-08-03)
2
2
 
3
3
  ### Bug Fixes
4
4
 
5
- * return pat token from agent creation from Authorization header ([0b9d15a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0b9d15a9f22e1ad0c0c29b61ea33da4f9c3c5f61))
5
+ * add ItemType.STACK to share items ([9f4ce42](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9f4ce42253f27e987fa955244284960dc8048b75))
@@ -43,6 +43,12 @@ export interface Share {
43
43
  type: ItemType.MEDIA_ASSET;
44
44
  thumbnailUrl: string;
45
45
  storage: StorageConfiguration;
46
+ } | {
47
+ _id: string;
48
+ name: string;
49
+ type: ItemType.STACK;
50
+ thumbnailUrl: string;
51
+ storage: StorageConfiguration;
46
52
  })[];
47
53
  permissions?: string[];
48
54
  permissionGroups?: ShareAssetPermissionGroup[];
@@ -28,7 +28,7 @@ class IdpInternal extends Base_1.default {
28
28
  var _a, _b;
29
29
  const resp = yield this.axios.post(this.getEndpoint(`/internal/v1/org/${orgName}/agent`));
30
30
  return ((raw === null || raw === void 0 ? void 0 : raw.raw)
31
- ? Object.assign(Object.assign({}, resp), { data: { user: resp.data, pat: (_a = resp.headers["Authorization"]) !== null && _a !== void 0 ? _a : "" } }) : { user: resp.data, pat: (_b = resp.headers["Authorization"]) !== null && _b !== void 0 ? _b : "" });
31
+ ? Object.assign(Object.assign({}, resp), { data: { user: resp.data, pat: (_a = resp.headers["authorization"]) !== null && _a !== void 0 ? _a : "token-not-found" } }) : { user: resp.data, pat: (_b = resp.headers["authorization"]) !== null && _b !== void 0 ? _b : "token-not-found" });
32
32
  });
33
33
  }
34
34
  getEndpoint(endpoint) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.9.1",
3
+ "version": "22.9.3",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",