hcloud-sdk 18.0.0 → 19.0.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 +86 -175
- package/lib/Hcloud.d.ts +18 -3
- package/lib/Hcloud.js +113 -21
- package/lib/helper/ErrorHelper.js +5 -2
- package/lib/helper/ValidationHelper.d.ts +6 -4
- package/lib/helper/ValidationHelper.js +30 -18
- package/lib/interfaces/agent/logging/cloudwatch.d.ts +23 -0
- package/lib/interfaces/agent/logging/index.d.ts +2 -0
- package/lib/interfaces/{fuse → agent/logging}/index.js +2 -3
- package/lib/interfaces/agent/logging/log-collector.d.ts +35 -0
- package/lib/interfaces/agent/logging/log-collector.js +2 -0
- package/lib/interfaces/agent/module/index.d.ts +7 -0
- package/lib/interfaces/agent/module/index.js +2 -0
- package/lib/interfaces/auditor/index.d.ts +0 -1
- package/lib/interfaces/auditor/index.js +0 -1
- package/lib/interfaces/axios/index.d.ts +5 -0
- package/lib/interfaces/cosmo/asset/index.d.ts +40 -9
- package/lib/interfaces/cosmo/asset/index.js +9 -1
- package/lib/interfaces/cosmo/comment/index.d.ts +4 -1
- package/lib/interfaces/cosmo/event/index.d.ts +34 -5
- package/lib/interfaces/cosmo/event/index.js +16 -2
- package/lib/interfaces/cosmo/share/index.d.ts +89 -7
- package/lib/interfaces/cosmo/share/index.js +21 -0
- package/lib/interfaces/cosmo/space/index.d.ts +6 -0
- package/lib/interfaces/cosmo/stats/index.d.ts +11 -0
- package/lib/interfaces/cosmo/stats/index.js +2 -0
- package/lib/interfaces/cosmo/tag/tag.d.ts +2 -1
- package/lib/interfaces/global/Products.d.ts +0 -1
- package/lib/interfaces/global/Products.js +0 -1
- package/lib/interfaces/global/Views.d.ts +0 -1
- package/lib/interfaces/global/Views.js +0 -1
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +1 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +1 -0
- package/lib/interfaces/high5/space/job/index.d.ts +64 -19
- package/lib/interfaces/high5/space/job/index.js +9 -6
- package/lib/interfaces/high5/wave/dependentInputs.d.ts +42 -0
- package/lib/interfaces/high5/wave/dependentInputs.js +144 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.d.ts +22 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.js +220 -0
- package/lib/interfaces/idp/index.d.ts +3 -3
- package/lib/interfaces/idp/index.js +3 -3
- package/lib/interfaces/idp/oauth/device.d.ts +18 -0
- package/lib/interfaces/idp/oauth/device.js +2 -0
- package/lib/interfaces/idp/oauth/index.d.ts +17 -4
- package/lib/interfaces/idp/organization/index.d.ts +1 -0
- package/lib/interfaces/idp/organization/index.js +1 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +4 -0
- package/lib/interfaces/idp/user/Message.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -9
- package/lib/interfaces/idp/user/Scopes.js +0 -12
- package/lib/interfaces/idp/user/index.d.ts +3 -0
- package/lib/interfaces/mailer/index.d.ts +20 -1
- package/lib/interfaces/mailer/index.js +14 -2
- package/lib/interfaces/nats/index.d.ts +30 -32
- package/lib/interfaces/nats/index.js +103 -117
- package/lib/interfaces/shorts/index.d.ts +7 -0
- package/lib/interfaces/shorts/index.js +6 -0
- package/lib/service/agent/bundle/dev/index.js +4 -1
- package/lib/service/agent/bundle/index.js +4 -1
- package/lib/service/agent/context/index.js +4 -1
- package/lib/service/agent/index.d.ts +6 -0
- package/lib/service/agent/index.js +18 -1
- package/lib/service/agent/installer/index.js +4 -1
- package/lib/service/agent/logging/index.d.ts +69 -0
- package/lib/service/agent/logging/index.js +117 -0
- package/lib/service/agent/module/index.d.ts +36 -0
- package/lib/service/agent/module/index.js +65 -0
- package/lib/service/auditor/index.js +4 -1
- package/lib/service/auditor/internal/index.js +4 -1
- package/lib/service/bouncer/features/index.js +4 -1
- package/lib/service/bouncer/index.js +5 -2
- package/lib/service/cosmo/asset/index.d.ts +49 -3
- package/lib/service/cosmo/asset/index.js +111 -5
- package/lib/service/cosmo/comment/index.d.ts +7 -36
- package/lib/service/cosmo/comment/index.js +18 -43
- package/lib/service/cosmo/event/index.js +4 -1
- package/lib/service/cosmo/folder/index.js +4 -1
- package/lib/service/cosmo/index.d.ts +3 -0
- package/lib/service/cosmo/index.js +11 -1
- package/lib/service/cosmo/internal/index.js +4 -1
- package/lib/service/cosmo/internal/space/index.js +4 -1
- package/lib/service/cosmo/location/index.js +4 -1
- package/lib/service/cosmo/namespace/index.d.ts +15 -1
- package/lib/service/cosmo/namespace/index.js +21 -1
- package/lib/service/cosmo/organization/index.js +4 -1
- package/lib/service/cosmo/permissions/index.js +4 -1
- package/lib/service/cosmo/production/index.js +4 -1
- package/lib/service/cosmo/share/index.d.ts +37 -29
- package/lib/service/cosmo/share/index.js +47 -35
- package/lib/service/cosmo/space/index.d.ts +28 -1
- package/lib/service/cosmo/space/index.js +45 -1
- package/lib/service/cosmo/stats/index.d.ts +35 -0
- package/lib/service/cosmo/stats/index.js +58 -0
- package/lib/service/cosmo/tag/index.js +4 -1
- package/lib/service/dali/DaliAvatar.d.ts +0 -6
- package/lib/service/dali/DaliAvatar.js +4 -11
- package/lib/service/dali/avatar/DaliCosmoSpace.js +4 -1
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +2 -1
- package/lib/service/dali/avatar/DaliHigh5Pool.js +5 -2
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +2 -1
- package/lib/service/dali/avatar/DaliHigh5Space.js +5 -2
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +2 -1
- package/lib/service/dali/avatar/DaliOAuthApp.js +5 -2
- package/lib/service/dali/avatar/DaliOrganization.d.ts +2 -1
- package/lib/service/dali/avatar/DaliOrganization.js +5 -2
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +1 -1
- package/lib/service/dali/avatar/DaliServiceAccount.js +6 -3
- package/lib/service/dali/avatar/DaliTeam.d.ts +2 -1
- package/lib/service/dali/avatar/DaliTeam.js +5 -2
- package/lib/service/dali/avatar/DaliUser.d.ts +2 -1
- package/lib/service/dali/avatar/DaliUser.js +5 -2
- package/lib/service/dali/index.js +4 -1
- package/lib/service/high5/execution/index.js +4 -1
- package/lib/service/high5/execution/log/index.js +4 -1
- package/lib/service/high5/execution/status/index.js +4 -1
- package/lib/service/high5/index.js +4 -1
- package/lib/service/high5/internal/index.js +4 -1
- package/lib/service/high5/internal/space/index.js +4 -1
- package/lib/service/high5/internal/space/job/index.js +4 -1
- package/lib/service/high5/internal/space/job/log/index.js +4 -1
- package/lib/service/high5/joinToken/index.js +4 -1
- package/lib/service/high5/space/database/document/array/index.js +4 -1
- package/lib/service/high5/space/database/document/index.js +4 -1
- package/lib/service/high5/space/database/document/number/index.js +4 -1
- package/lib/service/high5/space/database/index.js +4 -1
- package/lib/service/high5/space/event/index.js +4 -1
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +4 -1
- package/lib/service/high5/space/event/stream/design/index.js +6 -3
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +4 -1
- package/lib/service/high5/space/event/stream/index.js +4 -1
- package/lib/service/high5/space/execution/index.js +4 -1
- package/lib/service/high5/space/execution/log/index.js +4 -1
- package/lib/service/high5/space/execution/status/index.js +4 -1
- package/lib/service/high5/space/index.d.ts +10 -0
- package/lib/service/high5/space/index.js +25 -5
- package/lib/service/high5/space/job/index.js +4 -1
- package/lib/service/high5/space/job/log/index.js +4 -1
- package/lib/service/high5/space/node/index.js +4 -1
- package/lib/service/high5/space/pool/index.d.ts +11 -0
- package/lib/service/high5/space/pool/index.js +22 -1
- package/lib/service/high5/space/secret/index.js +4 -1
- package/lib/service/high5/space/stat/index.js +4 -1
- package/lib/service/high5/space/wave/index.js +4 -1
- package/lib/service/high5/space/webhook/index.js +4 -1
- package/lib/service/high5/space/webhook/log/index.js +4 -1
- package/lib/service/high5/stat/index.js +4 -1
- package/lib/service/high5/wave/index.js +4 -1
- package/lib/service/high5/wave/s3/index.js +5 -2
- package/lib/service/idp/guest/index.js +4 -1
- package/lib/service/idp/index.js +4 -1
- package/lib/service/idp/internal/index.js +4 -1
- package/lib/service/idp/oauth/device.d.ts +131 -0
- package/lib/service/idp/oauth/device.js +177 -0
- package/lib/service/idp/oauth/index.d.ts +3 -0
- package/lib/service/idp/oauth/index.js +11 -1
- package/lib/service/idp/organization/index.d.ts +9 -0
- package/lib/service/idp/organization/index.js +22 -3
- package/lib/service/idp/organization/license/index.js +4 -1
- package/lib/service/idp/organization/member/index.js +5 -2
- package/lib/service/idp/organization/member/invitations/index.d.ts +19 -0
- package/lib/service/idp/organization/member/invitations/index.js +23 -1
- package/lib/service/idp/organization/service-accounts/index.d.ts +11 -1
- package/lib/service/idp/organization/service-accounts/index.js +22 -2
- package/lib/service/idp/organization/settings/domain/index.js +4 -1
- package/lib/service/idp/organization/settings/domain/saml/index.js +4 -1
- package/lib/service/idp/organization/settings/index.js +4 -1
- package/lib/service/idp/organization/settings/oauth/index.d.ts +10 -0
- package/lib/service/idp/organization/settings/oauth/index.js +21 -1
- package/lib/service/idp/organization/stat/index.js +4 -1
- package/lib/service/idp/organization/team/index.d.ts +10 -0
- package/lib/service/idp/organization/team/index.js +21 -1
- package/lib/service/idp/registration/index.js +4 -1
- package/lib/service/idp/user/index.d.ts +8 -0
- package/lib/service/idp/user/index.js +20 -3
- package/lib/service/idp/user/license/index.js +4 -1
- package/lib/service/idp/user/message/index.d.ts +1 -0
- package/lib/service/idp/user/message/index.js +4 -1
- package/lib/service/idp/user/password/index.js +4 -1
- package/lib/service/idp/user/settings/connections/index.js +4 -1
- package/lib/service/idp/user/settings/general/index.js +4 -1
- package/lib/service/idp/user/settings/index.js +4 -1
- package/lib/service/idp/user/settings/notifications/index.js +4 -1
- package/lib/service/idp/user/settings/oauthApps/index.js +4 -1
- package/lib/service/idp/user/settings/pats/index.js +4 -1
- package/lib/service/idp/user/settings/twoFactor/index.js +4 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +4 -1
- package/lib/service/mailer/index.js +5 -2
- package/lib/service/mailer/internal/index.d.ts +2 -2
- package/lib/service/mailer/internal/index.js +5 -2
- package/lib/service/mothership/index.js +4 -1
- package/lib/service/nats/index.d.ts +7 -0
- package/lib/service/nats/index.js +19 -1
- package/lib/service/shorts/index.js +4 -1
- package/lib/service/shorts/internal/index.d.ts +6 -3
- package/lib/service/shorts/internal/index.js +20 -6
- package/lib/utils/bouncer/features/Provider.js +0 -1
- package/package.json +2 -2
- package/lib/interfaces/fuse/index.d.ts +0 -3
- package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +0 -38
- package/lib/interfaces/fuse/space/cronjob/Cronjob.js +0 -8
- package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +0 -16
- package/lib/interfaces/fuse/space/index.d.ts +0 -22
- package/lib/interfaces/fuse/space/index.js +0 -11
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +0 -32
- package/lib/service/dali/avatar/DaliFuseSpace.js +0 -59
- package/lib/service/fuse/index.d.ts +0 -20
- package/lib/service/fuse/index.js +0 -48
- package/lib/service/fuse/internal/index.d.ts +0 -10
- package/lib/service/fuse/internal/index.js +0 -32
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +0 -7
- package/lib/service/fuse/internal/space/cronjob/index.js +0 -17
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +0 -17
- package/lib/service/fuse/internal/space/cronjob/log/index.js +0 -34
- package/lib/service/fuse/internal/space/index.d.ts +0 -26
- package/lib/service/fuse/internal/space/index.js +0 -51
- package/lib/service/fuse/space/cronjob/index.d.ts +0 -145
- package/lib/service/fuse/space/cronjob/index.js +0 -201
- package/lib/service/fuse/space/cronjob/log/index.d.ts +0 -35
- package/lib/service/fuse/space/cronjob/log/index.js +0 -58
- package/lib/service/fuse/space/index.d.ts +0 -97
- package/lib/service/fuse/space/index.js +0 -153
- /package/lib/interfaces/{fuse/space/cronjob/CronjobLog.js → agent/logging/cloudwatch.js} +0 -0
package/changelog.md
CHANGED
|
@@ -1,190 +1,101 @@
|
|
|
1
|
-
## [
|
|
1
|
+
## [19.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v18.0.0...v19.0.0) (2026-04-10)
|
|
2
2
|
|
|
3
3
|
### ⚠ BREAKING CHANGES
|
|
4
4
|
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* move fetchShareAssets to /shareId/assets
|
|
5
|
+
* always clone with history
|
|
6
|
+
* **dali:** drop legacy Fuse backend support
|
|
7
|
+
* update Cronjob interfaces to match High5 API
|
|
8
|
+
* add backend-specific avatar upload methods
|
|
9
|
+
* remove deprecated fetchSharedAssets endpoint
|
|
11
10
|
|
|
12
11
|
### Features
|
|
13
12
|
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* add
|
|
17
|
-
* add
|
|
18
|
-
* add
|
|
19
|
-
* add
|
|
20
|
-
* add
|
|
21
|
-
* add
|
|
22
|
-
* add
|
|
23
|
-
* add
|
|
24
|
-
* add
|
|
25
|
-
* add
|
|
26
|
-
* add
|
|
27
|
-
* add
|
|
28
|
-
* add
|
|
29
|
-
* add
|
|
30
|
-
* add
|
|
31
|
-
* add
|
|
32
|
-
* add
|
|
33
|
-
* add
|
|
34
|
-
* add
|
|
35
|
-
* add
|
|
36
|
-
* add
|
|
37
|
-
* add
|
|
38
|
-
* add
|
|
39
|
-
* add
|
|
40
|
-
* add
|
|
41
|
-
* add
|
|
42
|
-
* add
|
|
43
|
-
* add
|
|
44
|
-
* add
|
|
45
|
-
* add
|
|
46
|
-
* add
|
|
47
|
-
* add
|
|
48
|
-
* add
|
|
49
|
-
* add
|
|
50
|
-
* add
|
|
51
|
-
* add
|
|
52
|
-
* add
|
|
53
|
-
* add
|
|
54
|
-
* add
|
|
55
|
-
* add
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* add
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* add
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* change operator to comparator in AssetFilter ([87bba65](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/87bba655f96597376a7f1846d1c9254767733a56))
|
|
77
|
-
* consolidate share and trash search into org search endpoint ([88b3fe5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/88b3fe50978a17baa7d70958ca9addc8e6665c26))
|
|
78
|
-
* **cosmo:** add optional permissions to space ([3f2372a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3f2372ad4262d4fbaa83dfeabdf9f2deebaeda0d))
|
|
79
|
-
* decrease nats getconnect delay to 1000 ([92c1050](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/92c10507f327aa18d4389180f0dc758a49317366))
|
|
80
|
-
* decrease sub time to 500ms ([debaac3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/debaac397ec658702e1bcfe1ace8449383661138))
|
|
81
|
-
* define available status values for asset namespaces ([bbad9cc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/bbad9cc27326ce09f8133f00401ec62386a5e27c))
|
|
82
|
-
* delte endpoints take id arrays instead of single ids ([ed91f11](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ed91f112edad9443db6075c7648aa06d8a6cd4b6))
|
|
83
|
-
* extend email interface by COSMO_USER_ADDED_TO_SPACE action ([26eb00d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/26eb00d0ca61990e7d48c5a63913b6900a1a818e))
|
|
84
|
-
* extend email interface by COSMO_USER_REMOVED_FROM_SPACE action ([9cdec42](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9cdec420c89acd8b8dc9f9d0d436b43f61b22cd3))
|
|
85
|
-
* extend NatsObjectType ([a9f3a53](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a9f3a53827049cfee3e7b14b1f917f17d17eecae))
|
|
86
|
-
* implement cosmo comment related endpoints ([a52a1dc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a52a1dcc6c2de5bb2ec1ea540049de29a2039087))
|
|
87
|
-
* implement cosmo folder related endpoints ([c212ba2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c212ba2a2f3c358a619940d30b128cb373816fcb))
|
|
88
|
-
* implement cosmo location related endpoints ([ec9d997](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ec9d997273ab1bac620b59bad5b08ced94934bb3))
|
|
89
|
-
* implement cosmo namespace related endpoints ([5b46e1e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5b46e1e7a5f4a9bfad7605a87e85bf971200f678))
|
|
90
|
-
* implement cosmo org related endpoints ([22d4894](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/22d48942febc6ac4640c803ff7d111a8599d872a))
|
|
91
|
-
* implement cosmo production related endpoints ([1f5cd2f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1f5cd2fc270e0c52c5a8d112db002052771ac55e))
|
|
92
|
-
* implement cosmo share related endpoints ([9c739bd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9c739bda175b4a3c284ccb6b9f54d1af67f3e357))
|
|
93
|
-
* implement cosmo space related endpoints ([e2445e5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e2445e5c1e80cc086b35df7e587b11f1f135d1c0))
|
|
94
|
-
* initialize CosmoService and add all asset related endpoints ([345e12a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/345e12a52d0e6bee7a68ac3129c3fa302c44fbed))
|
|
95
|
-
* introduce a new endpoint to grep all users allowed to be mentioned for one asset asset ([6b2384e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6b2384e0f017fb1aeac358736fbec0a66faba6ba))
|
|
96
|
-
* introduce assetId property for audit log ([e689e97](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e689e979eee55be2a922980f213928228796b315))
|
|
97
|
-
* introduce cosmo event endpoint and interface ([8f4901b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8f4901bf4725e60e1d4eeeb2b1c00522c0d0cb85))
|
|
98
|
-
* make permissions enum have a string value ([b8eba94](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b8eba94e3b845aca55678d2853797e6d7b6f8d34))
|
|
99
|
-
* make recursive optional and make assetFilter an array in searchAssets ([c9d4292](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c9d42923f14bcb78215736972069838e127ded49))
|
|
100
|
-
* new version ([fa15df2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fa15df2640ec4f0cde619b7109d629bf35e2ef6f))
|
|
101
|
-
* reflect the changes on the bulk-move endpoint to support copy ([312072e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/312072eec861be146dc820cec0bc3e320c2d3096))
|
|
102
|
-
* remove asset tags and categories ([a4622d6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a4622d62dab42d258704149328f183c427dbf23f))
|
|
103
|
-
* remove bulk add cosmo events endpoint ([e6bbf0c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e6bbf0c4bffd8b5d6f17307aee7e9f7f3fe1da41))
|
|
104
|
-
* remove share search endpoint ([876ae9c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/876ae9ccfd73453c4a59d59e9b4c0a2fd354589e))
|
|
105
|
-
* remove trash search endpoint ([b5c7375](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b5c737559f80c94659c946a7be95e95a3b15d013))
|
|
106
|
-
* revert last change ([13ba2cb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/13ba2cba8d06cdda46abc26df1f1cf4f70f1a2d9))
|
|
107
|
-
* rework asset interfaces ([5901d2f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5901d2f9fc542bcdacf0e843063cbefc4b27de64))
|
|
108
|
-
* rework cosmo search to accept an object as param ([ffa0059](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ffa0059e610db04d13a2da4d330b5abf233f3fcc))
|
|
109
|
-
* rework every method to return MaybeRaw if raw is true ([68278ba](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/68278bac2ed318b50eb036fd020233951e5ab469))
|
|
110
|
-
* rework params of searchAssetsInTrashOfSpace ([88b3839](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/88b3839d7c2c58c8057c4c91c3b9252bbf1d0098))
|
|
111
|
-
* searchRoles returns DetailedRole[] ([2f087c2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2f087c2c5d85a4e2be399ba5fe7729e9d7bc9a7d))
|
|
112
|
-
* trigger new version build ([a12fcc6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a12fcc646f71d50d5189215141cd5844472493a6))
|
|
113
|
-
* unify Fuse backend into High5 ([6d73104](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6d73104376c58cbb2a41ac94816690e5ee311c5a))
|
|
13
|
+
* add asset clone method ([5ece50d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5ece50ddbed7be615a1d2d411f859c1cbac5e99d))
|
|
14
|
+
* add asset subscribe endpoints ([a36cecc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a36cecc1eebf39f4bc7849e576187568abc5e7eb))
|
|
15
|
+
* add backend-specific avatar upload methods ([4ceeef9](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ceeef9dae844d6a679725c9c39e91483855ffcb))
|
|
16
|
+
* add BASE namespace permission group ([b6ef88e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b6ef88eae404f5de475288130f5f1f8b183b1783))
|
|
17
|
+
* add cross-space asset search subject to nats ([cc110f6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cc110f69a3d67ae5c83f5886efe1a798ac8c05ec))
|
|
18
|
+
* add deferred shares ([4b6703c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4b6703cb2f1e7e59059002dd8fb23c4adc446d3c))
|
|
19
|
+
* add endpoints to resend share emails ([2d55e8f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2d55e8f1602f4e670a078a129b438a3188df5eaf))
|
|
20
|
+
* add expiry date and type to shorts interface and short create endpoint ([7597b6b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7597b6b45d4c4fa76a0737c6c2c0b262f58bc94f))
|
|
21
|
+
* add external logging collector management methods ([3be9b29](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3be9b2912d7326fd38107ed76ddf442b70100cfc))
|
|
22
|
+
* add flags to toggle OAuth flows in OAuth apps ([dd98180](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/dd9818014a373f07d4a450f30e95b9fabbac6b7f))
|
|
23
|
+
* add groups ([8fb439b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8fb439b1248de03ec08adfc94528efadbeed4a38))
|
|
24
|
+
* add helper to validate mongo-style query ([3423109](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/342310962a1bc850879a61ef61740719a46b1e25))
|
|
25
|
+
* add IDP_ACCOUNT_APPROVED template and corresponding mail DTO ([2785432](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/27854324188277879486329f0716309f8dbc00e5))
|
|
26
|
+
* add info about origin stream to stream nodes ([54611b1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/54611b137a20287ba8fb5c827708147b19eb2d5f))
|
|
27
|
+
* add linked status to reduced user interface and create a new one for invited non linked users ([9ba46de](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9ba46de8bf8c89ca71e55ee8d6d2ae2e9f41d806))
|
|
28
|
+
* add long url slug validation ([831df1d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/831df1dd1d756c79903d541d2d0170fdc716f9e7))
|
|
29
|
+
* add MAYBE_GUEST role to OrgnaizationRoles ([25ea3dc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/25ea3dcb0a230b329a8bf311bf6d4f4cd65c5f13))
|
|
30
|
+
* add mentions teams ([7ab4246](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7ab4246f68e00d99bb20253a2073db5a44374822))
|
|
31
|
+
* add metadata to namespace references ([f6678f2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f6678f23c8fdd2461a5146f0185662fc4dbbbd1b))
|
|
32
|
+
* add missing emptyTrash endpoint ([48b838e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/48b838eec59c56f1623a1b081f348cb1440a171b))
|
|
33
|
+
* add mongo-style query to check node input dependencies ([e72322a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e72322ae3f0636a41ebf48a6ace53c5a2972d38a))
|
|
34
|
+
* add name and company to the registration email ([95b33fd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/95b33fdf2f837298aa934fb3bc466b729798928c))
|
|
35
|
+
* add namespaces to share objects ([4886049](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4886049a670a30bad91e957a004990fe5253c2d9))
|
|
36
|
+
* add optional auto refresh logic to SDK if a refreshToken is set ([1451208](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1451208d8625f7cbe004a9f51e2bd86329f96f5d))
|
|
37
|
+
* add optional custom metadata to namespaces ([fbfa0d9](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fbfa0d9c572cc04312da78ae9e28606cf5b42da6))
|
|
38
|
+
* add optional parent to nats asset object ([3db614c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3db614ca973ebadbdb28e1f488708c99bb8353fa))
|
|
39
|
+
* add parentId to cloneAsset ([b407771](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b407771b5a45313b8ba19db95442e4f3417d6bf6))
|
|
40
|
+
* add permission groups to the share obj ([cd420e7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cd420e79a089bbcab7bdfd4d0726ea9243279588))
|
|
41
|
+
* add PKCE support to OAuth ([31957e9](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/31957e93f13f500d425f7fd7ba59b93de61b89e8))
|
|
42
|
+
* add POST_PROCESSING status to UploadStatus enum ([fe41516](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fe415161125d835ff79e81b5dc1e4f8e8b6e1e04))
|
|
43
|
+
* add stats related endpoints + interface ([43fb797](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/43fb797f6290fdf06b3b7c7eebd3babe91ab7396))
|
|
44
|
+
* add support for mentions in editComment method ([886c403](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/886c403fb04191beb02dca9220a2b41b8042e24b))
|
|
45
|
+
* add support for OAuth 2.0 Device Flow ([293fde5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/293fde5bdb71890e669d027c93aa4475a28547eb))
|
|
46
|
+
* add target to JobCreate ([ff3662a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ff3662a4091b125272e5df1ecbabfddf8643324a))
|
|
47
|
+
* add updateTrashbinPolicy ([afce986](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/afce9867284d12a3755023a58fee6dd20833f4ca))
|
|
48
|
+
* add validation rule for agent module name ([623759e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/623759e68d2a58fc0dc569893275ca7f3371d990))
|
|
49
|
+
* add validation rules for oauth secret name ([97c81b9](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/97c81b93e28e6e3d3a001505fa91e3ce2c16ded2))
|
|
50
|
+
* add validation rules for user password ([68cb6a4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/68cb6a43c198ad1586c7b6c398883b436d30605b))
|
|
51
|
+
* add vtt field and type ([072dce8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/072dce84084717bd972613fbaeb572f3c9a06563))
|
|
52
|
+
* add vtt thumbnail request helper ([616ed60](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/616ed602f103433d45644f95ca9ab052db15d284))
|
|
53
|
+
* **agent:** add Amazon CloudWatch logging management methods ([b7c0ba0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b7c0ba06c18bad87fda8d1c753b41b7148dd1953))
|
|
54
|
+
* **agent:** add method for ext logging collector state management ([4ec2789](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ec27891eb657f2a15e918d2b65ece8c31946b68))
|
|
55
|
+
* **agent:** implement methods for module management ([25deb42](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/25deb421f11b278592b39f38f1c7abf3604b358b))
|
|
56
|
+
* allow tag name to be patched ([85536d2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/85536d2cf7d08683c423f4c59cd57b74885c5d02))
|
|
57
|
+
* always clone with history ([44616b6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/44616b6747e0533fff862e93c068a2aacf642e7a))
|
|
58
|
+
* export type Mentionable ([77b3a4f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/77b3a4f987b0ff8b161e11564743f9315f3ea0b4))
|
|
59
|
+
* extend create and patch share interfaces by users array ([a2c72dc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a2c72dc01c8a081bf080482ba3b45d5c647a6f3e))
|
|
60
|
+
* extend nats asset object by multiple missing fields ([1366748](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1366748e1abdce786916fb76d0aba624373d0843))
|
|
61
|
+
* extend share and share create interfaces ([9803689](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/98036890a4e8d1eb965c09dfb707f9e6e1409859))
|
|
62
|
+
* forward the mailjet API response ([5e5db28](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5e5db282fb61b1231beaae48496eaec6c2eebc9c))
|
|
63
|
+
* implement filters for asset and space subscriptions ([34c3f57](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/34c3f572df90acc9943b0e223f445d8defd386dc))
|
|
64
|
+
* implement video timecode offset ([313d8c3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/313d8c34e5975a8056bd057ed6b032c91742abcb))
|
|
65
|
+
* introduce optional link field to message ([cf45f95](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cf45f95b9d5fdc623da4e59c9688150ea4583676))
|
|
66
|
+
* **job:** add target field to Job entity ([6cc2812](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6cc281256a90f332ac365af8329f242bce8f35b4))
|
|
67
|
+
* **nats:** implement graceful close with connection draining ([1887252](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/18872528bc793d8a551654b75620e2f2c97ead03))
|
|
68
|
+
* new version ([4f2dc46](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4f2dc4682315304ccf8f39e3ea9378f46c7b270e))
|
|
69
|
+
* remove endpoint for linking users to shares ([b710053](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b710053ae2ca3957e20f399d7de3968392291310))
|
|
70
|
+
* rework Asset interface to apply BaseAsset globally ([f0ce45f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f0ce45fbf3b321ea608c6a23783ddcf0ed981756))
|
|
71
|
+
* **sds:** add optional expression property do DesignerNodeInput ([15f9f4a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/15f9f4a4bace97cde51c945ade64ef43b93307a6))
|
|
72
|
+
* update listComments endpoint & extend complexity warning threshold ([70f278a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/70f278a6f9ce0cbf44520352c07898a00e3f0ed3))
|
|
73
|
+
* update share objects to fullfil user updates ([2582134](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2582134bce6b0b18409882d29239ed14d5f18ef7))
|
|
74
|
+
* **validation:** include logging collector names in entity validation list ([7f70a25](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7f70a2507ed2f64392ab956faedad9ad97db0b8d))
|
|
114
75
|
|
|
115
76
|
### Bug Fixes
|
|
116
77
|
|
|
117
|
-
* add
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* add satus 'none' to asset rush status ([4201e23](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4201e23768dd363ba01ecdd37f480c2c483e827e))
|
|
129
|
-
* add sorted string map to designer node input values ([a63e5d6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a63e5d6fa54c4c7d08594457a0d8e6197411547b))
|
|
130
|
-
* add sorted string map to designer node input values ([585366c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/585366cdca53d6a18a556899f924f2e78856ea56))
|
|
131
|
-
* adjust response of status change endpoint to be of type Asset ([dc3f233](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/dc3f233b7924af737e305a9366db08ac3b050a19))
|
|
132
|
-
* apply /name to space rename url ([4c0e85d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4c0e85d93eb7070f6c9d8a276dc41fbbf9ea55bf))
|
|
133
|
-
* asset status definition ([12da3a0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/12da3a072b2b00c96b58594e1c160f8e651fa786))
|
|
134
|
-
* audit log queue helper ([b74960d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b74960dcf9a9b16ff3d2a73f080545280d9b08bd))
|
|
135
|
-
* change breadcrumb type to be Asset or CosmoSpace over Space ([7e7e1a4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7e7e1a460ac11cb7fab3b38fe459d059b0c3b148))
|
|
136
|
-
* change cosmo nats update object to type array ([73ba1ff](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/73ba1ffd22243c4499bcf10c1b8d2535d4af8b4e))
|
|
137
|
-
* change index signature type to record for shares ([458da0a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/458da0a54de0c5a0017e6b5241c12a9f5a213ba8))
|
|
138
|
-
* change return type of fetchSHaredAssets to (Asset | Folder)[] ([3a7b3ee](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3a7b3ee6150f7f30bc30578cfb54f48d475ba1b8))
|
|
139
|
-
* changed map to index signature for shares ([45f01f3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/45f01f3a1f9331ed2e8961867f312bddb2915c20))
|
|
140
|
-
* check for given window object ([39a391c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/39a391ce0eba9a511b828a8b0c79bd679498e35c))
|
|
141
|
-
* check for given window object ([4fc5ec1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4fc5ec192f90543c92d525eda0f1f2d8d9caed21))
|
|
142
|
-
* check for given window object ([1340c82](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1340c829c285669dab7c726046d8ebbc0a587dcb))
|
|
143
|
-
* check for given window object ([4ae3dcf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ae3dcf4b9f2edd01239105aea71513cd0af080b))
|
|
144
|
-
* check for given window object ([5fc1930](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5fc19301402b8f3b79465f96812cab32ff6d8335))
|
|
145
|
-
* createFolder request object ([034ceee](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/034ceeebed49b69c7932d510c29470a1e090d8a3))
|
|
146
|
-
* default value for undefined filters ([4a67115](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4a671157e931438a2a6076715efb658b576f37b4))
|
|
147
|
-
* endpoint for trash and restore ([af0bfe7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/af0bfe77659547383321504d5be872be57ec860f))
|
|
148
|
-
* enhance Media to filter by name ([4e61b4e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4e61b4e5fa7e7f8fefb77bf50f9f0535809facd6))
|
|
149
|
-
* entity of DetailedRole.permissions ([9893849](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/98938496f614d36ac4ff9852eab8d9550f71fbee))
|
|
150
|
-
* export DocumentTyp ([d14fb60](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d14fb60e6949bece2ccf0a94b188d204d51b999b))
|
|
151
|
-
* make asset.id asset._id ([8de0cca](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8de0cca27026d68467270bb00ddb827dd3ff8143))
|
|
152
|
-
* make asset.type to be any of ItemType ([14563e6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/14563e60bcd6e7a5c8bc703da4e5c645132b8c1c))
|
|
153
|
-
* make assetFilter for searchInTrash mandatory ([b8fbb2e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b8fbb2e68f6282a5bbf8843983690b6cd9e9adc3))
|
|
154
|
-
* make comment timestamp/annotaitons optional ([46753ae](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/46753ae24090c370db555329f77901386fba1c08))
|
|
155
|
-
* make folder extend item ([f10aa31](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f10aa31ef8c7ceb9f4691a3f599ffef429d781f5))
|
|
156
|
-
* make grantType camel case ([371c99c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/371c99c014f9433ddd26e087cf5753d8cb6d02e8))
|
|
157
|
-
* make VideoMetadata a single object only ([159f3c8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/159f3c8850ca89c8b302e6a8c82a7794c2034ef8))
|
|
158
|
-
* move fileSize from VideoMetadata to Media ([02cede3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/02cede304d982fd8f44f7927ae90e627db1f2381))
|
|
159
|
-
* move grant_type to interface for oauth code exchange ([f391c51](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f391c519a29bd2739fe70eb43ddf9d986db66e28))
|
|
160
|
-
* omit _id in createShare interface ([d68b218](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d68b218d0f1b1423b69adf1520192a3fa9e0b744))
|
|
161
|
-
* redefine asset interface as discriminated union ([44671e6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/44671e66462c763c7e6f9b6759294586ce6899a2))
|
|
162
|
-
* redefine asset interface as discriminated union ([598710d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/598710d77543a5446d5d151ac1d7326692103873))
|
|
163
|
-
* remove shareId from searchRoles and prepend getEndpoint to all methods ([2f690ee](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2f690ee7b5a771474c4cc33bdd8c7fc2bccce766))
|
|
164
|
-
* remove unused single asset move endpoint ([e8917ed](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e8917edbb2ae8fbc683001d79190249d97e3e90a))
|
|
165
|
-
* remove users property of teams as it's not defined in the TeamDto of idp ([4d01acb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4d01acbba4c22d9501a6177a352f94f59b503be4))
|
|
166
|
-
* rename mentionedUsers to mentions ([e8d8301](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e8d8301be8f39466073e12d019f43a70c21ca103))
|
|
167
|
-
* rename mentionedUsers to mentions in Comment and change type to ReducedUser[] ([f0f5908](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f0f5908503cc7e381bb4a98b36cb998d4926ba70))
|
|
168
|
-
* rename mentions to mentionedUsers in Comment ([02ff72a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/02ff72a5eba2dd99f46a45c475379edf2fc21e17))
|
|
169
|
-
* revert last change as asset and folder are two different interfaces ([d487fbf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d487fbf4c668749364892737e8a9267b7c2a6e64))
|
|
170
|
-
* revert the cosmo avatar update process ([e82262f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e82262f67469f49b4f484d77203032118de30991))
|
|
171
|
-
* space name regex ([64a6dba](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/64a6dba660f9c6e2dc373a097931ef6ffe1ee95e))
|
|
172
|
-
* type mismatch ([7e0d2fa](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7e0d2fa03f91de23a5f0412e29d1ba272fde04a6))
|
|
173
|
-
* wrong interface assignment for cosmo space ([cb4165d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cb4165db2ba85125c7ce0aad760b61d4cba42ffe))
|
|
78
|
+
* add missing progress to assets of type MEDIA_ASSET ([cb95586](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cb955867ff36706b6ec1168430daadd713c06fe1))
|
|
79
|
+
* correct OAuth token endpoint request object ([b62521e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b62521e69a084c90227c47fd38b3592c73b239a2))
|
|
80
|
+
* correct returntype of listUsersAllowedToMention to a mentionable type ([7cc57e2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7cc57e23c52a116cb75c6dc94d6f3d99fafc0bd7))
|
|
81
|
+
* **cosmo:** skip metadata property and Record only ([f8f9199](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f8f919957a1fa8cadeed43b02be4567d6fd82d59))
|
|
82
|
+
* remove authorization header when fetching an assets VTT ([7ea5165](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7ea5165e0e6e2861e8e3ecb47b8b0ec174ff9727))
|
|
83
|
+
* rename assetPermissionGroups to permissionsGroups ([a7c824c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a7c824ce96d3575ba99d98a32b92561a0f2bd320))
|
|
84
|
+
* rename mentionsTeams to mentionedTeams ([8be98d7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8be98d709f4031924cfda6f07683dd9ff65c58fb))
|
|
85
|
+
* rework status and tags subjects ([87e79b2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/87e79b2096c8d8417ad68ee270595db3e54be88b))
|
|
86
|
+
* shorts url ([11357d9](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/11357d9615f5d7f4999f3e702384ac75c8def213))
|
|
87
|
+
* update cosmo events ([e4c57ee](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e4c57ee94d430621072034a7f791d91d62ef4f69))
|
|
88
|
+
* use assetPermissionsGroups over permissionGroups ([d4155d5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d4155d5700d221a1bd88ea6573563f78e6cb33fb))
|
|
174
89
|
|
|
175
90
|
### Performance Improvements
|
|
176
91
|
|
|
177
|
-
* add
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
* add methods to retrieve statistics ([3eaeaf6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3eaeaf6531616492dcc931e5743aa77a2c0f6883))
|
|
182
|
-
* add Nats subject for system messages ([2e35f56](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2e35f564e998406135f6615ad9a3af308774b78b))
|
|
183
|
-
* add target field with ReducedUser to execution log and status ([51c4e23](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/51c4e233c04c0ea6653eca702795c2a1c78c8bda))
|
|
184
|
-
* close existing NATS connection before reconnecting ([09e4561](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/09e45618243d00357c23b8314ac0f42327c12ffd))
|
|
185
|
-
* migrate Friday features to High5 ([3cec4da](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3cec4da7ff7f47be647c589a9e82e672a6c4bba5))
|
|
186
|
-
* update TargetAgent.target object in Mothership ([80447e2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/80447e23018ed39724928ae41da48ba266d28eac))
|
|
92
|
+
* add bulk invitation method ([e8e198a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e8e198aed018817f5046508558a337cb945862d5))
|
|
93
|
+
* Dali methods restored for avatar update integration ([c355521](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c355521c7d4d169fd1dd2505fbf1ed2a2ed7d790))
|
|
94
|
+
* **high5:** use target event name instead of _id for job ([521d35e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/521d35ec7c6757f673bee341ba6fbeb8179f21cd))
|
|
95
|
+
* update axios ([4fa933b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4fa933bb0da15624bde586e9b81c7ead15059f3c))
|
|
187
96
|
|
|
188
97
|
### Code Refactoring
|
|
189
98
|
|
|
190
|
-
*
|
|
99
|
+
* **dali:** drop legacy Fuse backend support ([56f40bd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/56f40bdd30d52e97fbd570c620621ffaacd5a034))
|
|
100
|
+
* remove deprecated fetchSharedAssets endpoint ([178ed9d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/178ed9d0381e95d3c6f3f5fb75400dcc44456d1d))
|
|
101
|
+
* update Cronjob interfaces to match High5 API ([8896112](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/88961120a90e4e203ffc40e62f660a75a26d43ad))
|
package/lib/Hcloud.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
2
|
import { HcloudLogger, Options } from "./Base";
|
|
3
|
+
import { RefreshToken } from "./interfaces/axios";
|
|
3
4
|
import AgentService from "./service/agent";
|
|
4
5
|
import AuditorService from "./service/auditor";
|
|
5
6
|
import BouncerService from "./service/bouncer";
|
|
6
7
|
import CosmoService from "./service/cosmo";
|
|
7
8
|
import DaliService from "./service/dali";
|
|
8
|
-
import FuseService from "./service/fuse";
|
|
9
9
|
import High5Service from "./service/high5";
|
|
10
10
|
import IdpService from "./service/idp";
|
|
11
11
|
import MailerService from "./service/mailer";
|
|
@@ -25,8 +25,6 @@ export declare class HCloud {
|
|
|
25
25
|
private _High5?;
|
|
26
26
|
get Idp(): IdpService;
|
|
27
27
|
private _Idp?;
|
|
28
|
-
get Fuse(): FuseService;
|
|
29
|
-
private _Fuse?;
|
|
30
28
|
get Dali(): DaliService;
|
|
31
29
|
private _Dali?;
|
|
32
30
|
get Mailer(): MailerService;
|
|
@@ -39,6 +37,8 @@ export declare class HCloud {
|
|
|
39
37
|
private _Nats?;
|
|
40
38
|
private options;
|
|
41
39
|
private axios;
|
|
40
|
+
private refreshToken;
|
|
41
|
+
private refreshPromise;
|
|
42
42
|
constructor(options: Options);
|
|
43
43
|
/**
|
|
44
44
|
* Sets the server url that the SDK shall do a request to.
|
|
@@ -60,6 +60,14 @@ export declare class HCloud {
|
|
|
60
60
|
* Returns the currently set auth token.
|
|
61
61
|
*/
|
|
62
62
|
getAuthToken(): string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the refresh token and enables auto-fresh
|
|
65
|
+
*/
|
|
66
|
+
setRefreshToken(refreshToken: RefreshToken): HCloud;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the currently set refresh token.
|
|
69
|
+
*/
|
|
70
|
+
getRefreshToken(): RefreshToken | null;
|
|
63
71
|
/**
|
|
64
72
|
* Sets the correlationID which will be sent to hcloud with each request and appears in all
|
|
65
73
|
* logs that are made on behalf of this request, making it easier to debug the application.
|
|
@@ -93,4 +101,11 @@ export declare class HCloud {
|
|
|
93
101
|
* @returns {AxiosInstance} The new AxiosInstance
|
|
94
102
|
*/
|
|
95
103
|
setAxios(axios: AxiosInstance): AxiosInstance;
|
|
104
|
+
/**
|
|
105
|
+
* refreshAccessToken will refresh the access_token using a given refresh_token and set the new access_token and refresh_token in the SDK.
|
|
106
|
+
* If multiple requests trigger a token refresh at the same time, only one request will actually call the token endpoint, while the others will wait for the result of that request and use the same new token.
|
|
107
|
+
*
|
|
108
|
+
* This method will trigger a callback? to enable the returned values to be persisted
|
|
109
|
+
*/
|
|
110
|
+
private refreshAccessToken;
|
|
96
111
|
}
|
package/lib/Hcloud.js
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
2
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
15
|
exports.HCloud = void 0;
|
|
4
|
-
const axios_1 = require("axios");
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
5
17
|
const package_json_1 = require("../package.json");
|
|
6
|
-
const ErrorHelper_1 = require("./helper/ErrorHelper");
|
|
18
|
+
const ErrorHelper_1 = __importDefault(require("./helper/ErrorHelper"));
|
|
7
19
|
const axios_2 = require("./interfaces/axios");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const high5_1 = require("./service/high5");
|
|
15
|
-
const
|
|
16
|
-
const mailer_1 = require("./service/mailer");
|
|
17
|
-
const mothership_1 = require("./service/mothership");
|
|
18
|
-
const nats_1 = require("./service/nats");
|
|
19
|
-
const shorts_1 = require("./service/shorts");
|
|
20
|
+
const idp_1 = require("./interfaces/idp");
|
|
21
|
+
const agent_1 = __importDefault(require("./service/agent"));
|
|
22
|
+
const auditor_1 = __importDefault(require("./service/auditor"));
|
|
23
|
+
const bouncer_1 = __importDefault(require("./service/bouncer"));
|
|
24
|
+
const cosmo_1 = __importDefault(require("./service/cosmo"));
|
|
25
|
+
const dali_1 = __importDefault(require("./service/dali"));
|
|
26
|
+
const high5_1 = __importDefault(require("./service/high5"));
|
|
27
|
+
const idp_2 = __importDefault(require("./service/idp"));
|
|
28
|
+
const mailer_1 = __importDefault(require("./service/mailer"));
|
|
29
|
+
const mothership_1 = __importDefault(require("./service/mothership"));
|
|
30
|
+
const nats_1 = __importDefault(require("./service/nats"));
|
|
31
|
+
const shorts_1 = __importDefault(require("./service/shorts"));
|
|
20
32
|
// tslint:disable-next-line
|
|
21
33
|
class HCloud {
|
|
22
34
|
get Agent() {
|
|
@@ -51,16 +63,10 @@ class HCloud {
|
|
|
51
63
|
}
|
|
52
64
|
get Idp() {
|
|
53
65
|
if (this._Idp === undefined) {
|
|
54
|
-
this._Idp = new
|
|
66
|
+
this._Idp = new idp_2.default(this.options, this.axios);
|
|
55
67
|
}
|
|
56
68
|
return this._Idp;
|
|
57
69
|
}
|
|
58
|
-
get Fuse() {
|
|
59
|
-
if (this._Fuse === undefined) {
|
|
60
|
-
this._Fuse = new fuse_1.default(this.options, this.axios);
|
|
61
|
-
}
|
|
62
|
-
return this._Fuse;
|
|
63
|
-
}
|
|
64
70
|
get Dali() {
|
|
65
71
|
if (this._Dali === undefined) {
|
|
66
72
|
this._Dali = new dali_1.default(this.options, this.axios);
|
|
@@ -92,6 +98,8 @@ class HCloud {
|
|
|
92
98
|
return this._Nats;
|
|
93
99
|
}
|
|
94
100
|
constructor(options) {
|
|
101
|
+
this.refreshToken = null;
|
|
102
|
+
this.refreshPromise = null;
|
|
95
103
|
this.options = options;
|
|
96
104
|
this.axios = axios_1.default.create({
|
|
97
105
|
transformRequest: axios_1.default.defaults.transformRequest,
|
|
@@ -112,6 +120,35 @@ class HCloud {
|
|
|
112
120
|
(_a = this.options.logger) === null || _a === void 0 ? void 0 : _a.error(String(error), error);
|
|
113
121
|
return Promise.reject((0, ErrorHelper_1.default)(error));
|
|
114
122
|
});
|
|
123
|
+
// add request interceptor to handle auto token refresh if set
|
|
124
|
+
this.axios.interceptors.request.use((config) => __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
if (!this.refreshToken)
|
|
126
|
+
return config;
|
|
127
|
+
const isExpired = Date.now() >= this.refreshToken.expiresAt - 120 * 1000; // consider token expired if it will expire in the next 120 seconds
|
|
128
|
+
if (isExpired) {
|
|
129
|
+
yield this.refreshAccessToken();
|
|
130
|
+
}
|
|
131
|
+
else if (this.refreshPromise) {
|
|
132
|
+
yield this.refreshPromise;
|
|
133
|
+
}
|
|
134
|
+
return config;
|
|
135
|
+
}));
|
|
136
|
+
// trigger refresh logic in case of 401 has been received and a refresh token is set
|
|
137
|
+
this.axios.interceptors.response.use(res => res, (error) => __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
var _a;
|
|
139
|
+
const originalRequest = error.config;
|
|
140
|
+
if (this.refreshToken) {
|
|
141
|
+
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 401 && !originalRequest._retry) {
|
|
142
|
+
originalRequest._retry = true;
|
|
143
|
+
const newToken = yield this.refreshAccessToken();
|
|
144
|
+
if (newToken) {
|
|
145
|
+
originalRequest.headers.Authorization = `Bearer ${newToken.access_token}`;
|
|
146
|
+
}
|
|
147
|
+
return this.axios(originalRequest);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return Promise.reject(error);
|
|
151
|
+
}));
|
|
115
152
|
}
|
|
116
153
|
/**
|
|
117
154
|
* Sets the server url that the SDK shall do a request to.
|
|
@@ -147,6 +184,19 @@ class HCloud {
|
|
|
147
184
|
var _a;
|
|
148
185
|
return (_a = this.axios.defaults.headers.common["authorization"]) === null || _a === void 0 ? void 0 : _a.toString();
|
|
149
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Sets the refresh token and enables auto-fresh
|
|
189
|
+
*/
|
|
190
|
+
setRefreshToken(refreshToken) {
|
|
191
|
+
this.refreshToken = refreshToken;
|
|
192
|
+
return this;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Returns the currently set refresh token.
|
|
196
|
+
*/
|
|
197
|
+
getRefreshToken() {
|
|
198
|
+
return this.refreshToken;
|
|
199
|
+
}
|
|
150
200
|
/**
|
|
151
201
|
* Sets the correlationID which will be sent to hcloud with each request and appears in all
|
|
152
202
|
* logs that are made on behalf of this request, making it easier to debug the application.
|
|
@@ -198,5 +248,47 @@ class HCloud {
|
|
|
198
248
|
setAxios(axios) {
|
|
199
249
|
return (this.axios = axios);
|
|
200
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* refreshAccessToken will refresh the access_token using a given refresh_token and set the new access_token and refresh_token in the SDK.
|
|
253
|
+
* If multiple requests trigger a token refresh at the same time, only one request will actually call the token endpoint, while the others will wait for the result of that request and use the same new token.
|
|
254
|
+
*
|
|
255
|
+
* This method will trigger a callback? to enable the returned values to be persisted
|
|
256
|
+
*/
|
|
257
|
+
refreshAccessToken() {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
if (!this.refreshToken)
|
|
260
|
+
throw new Error("no refresh token set");
|
|
261
|
+
if (!this.refreshPromise) {
|
|
262
|
+
this.refreshPromise = this.Idp.oAuth
|
|
263
|
+
.exchangeCodeForToken({
|
|
264
|
+
// eslint-disable-next-line camelcase
|
|
265
|
+
grant_type: idp_1.GrantType.REFRESH_TOKEN,
|
|
266
|
+
// eslint-disable-next-line camelcase
|
|
267
|
+
refresh_token: this.refreshToken.token,
|
|
268
|
+
})
|
|
269
|
+
.then(res => {
|
|
270
|
+
var _a, _b, _c, _d;
|
|
271
|
+
this.refreshPromise = null;
|
|
272
|
+
if (res.access_token) {
|
|
273
|
+
this.setAuthToken(`Bearer ${res.access_token}`);
|
|
274
|
+
const newRefreshToken = {
|
|
275
|
+
token: res.refresh_token,
|
|
276
|
+
expiresAt: Date.now() + ((_a = res.expires_in) !== null && _a !== void 0 ? _a : 0) * 1000,
|
|
277
|
+
callback: (_b = this.refreshToken) === null || _b === void 0 ? void 0 : _b.callback,
|
|
278
|
+
};
|
|
279
|
+
this.setRefreshToken(newRefreshToken);
|
|
280
|
+
(_d = (_c = this.refreshToken) === null || _c === void 0 ? void 0 : _c.callback) === null || _d === void 0 ? void 0 : _d.call(_c, res.access_token, newRefreshToken); // call callback to hydrate localStorage with the new refresh token for example
|
|
281
|
+
}
|
|
282
|
+
return res;
|
|
283
|
+
})
|
|
284
|
+
.catch(err => {
|
|
285
|
+
this.refreshPromise = null;
|
|
286
|
+
this.refreshToken = null;
|
|
287
|
+
throw err;
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
return this.refreshPromise;
|
|
291
|
+
});
|
|
292
|
+
}
|
|
201
293
|
}
|
|
202
294
|
exports.HCloud = HCloud;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.default = wrapError;
|
|
4
7
|
exports.isHCloudError = isHCloudError;
|
|
5
|
-
const axios_1 = require("axios");
|
|
6
|
-
const HCloudError_1 = require("../interfaces/global/HCloudError");
|
|
8
|
+
const axios_1 = __importDefault(require("axios"));
|
|
9
|
+
const HCloudError_1 = __importDefault(require("../interfaces/global/HCloudError"));
|
|
7
10
|
function wrapError(error) {
|
|
8
11
|
if (axios_1.default.isAxiosError(error) && error.response) {
|
|
9
12
|
return new HCloudError_1.default(error.response.status, error.response.statusText, error.response.data.code, error.response.data.error, error.response.data.message);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare enum Entity {
|
|
2
2
|
USER_NAME = "USER_NAME",
|
|
3
|
+
USER_PASSWORD = "USER_PASSWORD",
|
|
4
|
+
OAUTH_SECRET_NAME = "OAUTH_SECRET_NAME",
|
|
3
5
|
ORGANIZATION_NAME = "ORGANIZATION_NAME",
|
|
4
6
|
USER_ORGANIZATION_NAME = "USER_ORGANIZATION_NAME",
|
|
5
7
|
TEAM_NAME = "TEAM_NAME",
|
|
@@ -38,15 +40,15 @@ declare enum Entity {
|
|
|
38
40
|
JOB = "JOB",
|
|
39
41
|
JOB_ID = "JOB_ID",
|
|
40
42
|
JOB_LOG_ID = "JOB_LOG_ID",
|
|
41
|
-
FUSE_JOB = "FUSE_JOB",
|
|
42
|
-
CRONJOB_ID = "CRONJOB_ID",
|
|
43
|
-
CRONJOB_LOG_ID = "CRONJOB_LOG_ID",
|
|
44
43
|
NAMESPACE_NAME = "NAMESPACE_NAME",
|
|
45
44
|
MESSAGE_ID = "MESSAGE_ID",
|
|
46
45
|
ARRAY_INDEX = "ARRAY_INDEX",
|
|
47
46
|
URL_SLUG = "URL_SLUG",
|
|
47
|
+
LONG_URL_SLUG = "LONG_URL_SLUG",
|
|
48
48
|
TAG_NAME = "TAG_NAME",
|
|
49
|
-
TAG_COLOR = "TAG_COLOR"
|
|
49
|
+
TAG_COLOR = "TAG_COLOR",
|
|
50
|
+
MODULE_NAME = "MODULE_NAME",
|
|
51
|
+
LOG_COLLECTOR_NAME = "LOG_COLLECTOR_NAME"
|
|
50
52
|
}
|
|
51
53
|
declare class EntityDetails {
|
|
52
54
|
private entity;
|