hcloud-sdk 19.0.0 → 19.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 +17 -95
- package/lib/interfaces/agent/index.d.ts +1 -0
- package/lib/interfaces/cosmo/asset/index.d.ts +5 -0
- package/lib/interfaces/cosmo/comment/index.d.ts +14 -0
- package/lib/interfaces/cosmo/comment/index.js +13 -1
- package/lib/interfaces/cosmo/share/index.d.ts +11 -1
- package/lib/interfaces/cosmo/tag/tag.d.ts +1 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +4 -1
- package/lib/interfaces/high5/space/job/JobLog.d.ts +10 -6
- package/lib/interfaces/high5/space/job/index.d.ts +2 -2
- package/lib/interfaces/high5/wave/index.d.ts +9 -0
- package/lib/interfaces/high5/wave/index.js +4 -0
- package/lib/service/cosmo/comment/index.d.ts +4 -2
- package/lib/service/cosmo/comment/index.js +4 -2
- package/lib/service/cosmo/share/index.d.ts +18 -0
- package/lib/service/cosmo/share/index.js +24 -0
- package/lib/service/cosmo/tag/index.d.ts +13 -0
- package/lib/service/cosmo/tag/index.js +18 -0
- package/lib/service/high5/space/execution/index.d.ts +2 -1
- package/lib/service/high5/space/execution/index.js +3 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,101 +1,23 @@
|
|
|
1
|
-
## [19.
|
|
2
|
-
|
|
3
|
-
### ⚠ BREAKING CHANGES
|
|
4
|
-
|
|
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
|
|
1
|
+
## [19.1.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v19.0.0...v19.1.0) (2026-04-28)
|
|
10
2
|
|
|
11
3
|
### Features
|
|
12
4
|
|
|
13
|
-
* add
|
|
14
|
-
* add
|
|
15
|
-
* add
|
|
16
|
-
* add
|
|
17
|
-
* add
|
|
18
|
-
* add
|
|
19
|
-
* add
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
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))
|
|
5
|
+
* add an endpoint for sending share email after public link get's clicked ([5c1d127](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5c1d127e26706edecba15aec7d06cadece1c3bfd))
|
|
6
|
+
* add arch to installer versions ([7aa7e6c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7aa7e6cf0d2a73f38dae9538e95db910b66a133f))
|
|
7
|
+
* add comment completion ([8f494c4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8f494c40af4f8019ba13b7e15f2b5eb19cdac148))
|
|
8
|
+
* add position to tags ([522891b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/522891ba1ba0daf54a8c6160ce64d9055fd6e9e2))
|
|
9
|
+
* add queuePosition and queueTotal to Asset type ([e25ba33](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e25ba334038fccb876f3f4eb0036567aa7c3083c))
|
|
10
|
+
* add reorderTags method to sort tags in Cosmo ([a1b70d1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a1b70d149b196b19df36c687ecb1c04ddda6c66c))
|
|
11
|
+
* add sorting options for comments by timecode and creator ([b28816c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b28816c678078ce8cf9c3c462458f5a069c3b7a9))
|
|
12
|
+
* change thumbnail resolution and add posterframe ([d34eabf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d34eabffeed7a1f3cddaf742e43040858e894339))
|
|
13
|
+
* extend asset response with permission and author details in namespaces ([5f12f9a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5f12f9a3d89adb8af8b1bdb7c5028ecc51110729))
|
|
14
|
+
* extend input to be optionally be dependent ([14f0e59](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/14f0e590fc0808cee1586397f517f86fb74ad367))
|
|
15
|
+
* extend node input to hold optional if property to use for dependent fields ([8afd90a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8afd90aa38894251adceee8b1e01b80fd6f4b736))
|
|
16
|
+
* **high5:** align getStreamExecutionPackage with design caching changes ([600cf14](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/600cf14d9a0f7d5f120fd05381187031f6f162e7))
|
|
17
|
+
* include org and space IDs in ExtendedExecutionPackage ([4ac0108](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ac0108d9e1f2e70c98cfe14df9f5b3258fe1770))
|
|
18
|
+
* includes thumbnailUrls of first four assets in share object ([738010a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/738010a33ef056a91510e1f117e2b536c43278bd))
|
|
19
|
+
* includes thumbnailUrls of first four assets in share object ([f239f80](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f239f80b651817b83e8099de8ef079731bfc031e))
|
|
75
20
|
|
|
76
21
|
### Bug Fixes
|
|
77
22
|
|
|
78
|
-
*
|
|
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))
|
|
89
|
-
|
|
90
|
-
### Performance Improvements
|
|
91
|
-
|
|
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))
|
|
96
|
-
|
|
97
|
-
### Code Refactoring
|
|
98
|
-
|
|
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))
|
|
23
|
+
* typo in thumbnail property ([3778bdd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3778bdd57c91a00425572af8913433efd1279b7f))
|
|
@@ -31,11 +31,16 @@ export type Asset = BaseAsset & ({
|
|
|
31
31
|
frameRate?: number;
|
|
32
32
|
media?: Media[];
|
|
33
33
|
thumbnailUrl?: string;
|
|
34
|
+
posterUrl?: string;
|
|
34
35
|
namespaces?: Record<string, {
|
|
35
36
|
status: string;
|
|
37
|
+
statusAuthor?: ReducedUser;
|
|
38
|
+
canWriteStatus?: boolean;
|
|
36
39
|
tag?: Tag;
|
|
37
40
|
metadata?: NamespaceMetadata;
|
|
38
41
|
}>;
|
|
42
|
+
queuePosition?: number;
|
|
43
|
+
queueTotal?: number;
|
|
39
44
|
} | Production | Folder | AssetReference);
|
|
40
45
|
export type Production = {
|
|
41
46
|
type: ItemType.PRODUCTION;
|
|
@@ -13,11 +13,22 @@ export interface EditComment {
|
|
|
13
13
|
annotation?: string;
|
|
14
14
|
mentions?: string[];
|
|
15
15
|
mentionsTeams?: string[];
|
|
16
|
+
completed?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare enum CommentType {
|
|
18
19
|
COMMENT = "COMMENT",
|
|
19
20
|
REPLY = "REPLY"
|
|
20
21
|
}
|
|
22
|
+
export declare enum CommentSortField {
|
|
23
|
+
TIMECODE = "TIMECODE",
|
|
24
|
+
CREATOR = "CREATOR",
|
|
25
|
+
NEWEST = "NEWEST",
|
|
26
|
+
OLDEST = "OLDEST"
|
|
27
|
+
}
|
|
28
|
+
export declare enum CommentSortDirection {
|
|
29
|
+
ASC = "ASC",
|
|
30
|
+
DESC = "DESC"
|
|
31
|
+
}
|
|
21
32
|
export interface Comment {
|
|
22
33
|
_id: string;
|
|
23
34
|
text: string;
|
|
@@ -30,6 +41,9 @@ export interface Comment {
|
|
|
30
41
|
mentions?: ReducedUser[];
|
|
31
42
|
mentionedTeams?: ReducedTeam[];
|
|
32
43
|
replies?: Reply[];
|
|
44
|
+
completed: boolean;
|
|
45
|
+
completedBy?: ReducedUser;
|
|
46
|
+
completedAt?: number;
|
|
33
47
|
}
|
|
34
48
|
export interface Reply extends Omit<Comment, "timestamp" | "replies"> {
|
|
35
49
|
commentRef: string;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommentType = void 0;
|
|
3
|
+
exports.CommentSortDirection = exports.CommentSortField = exports.CommentType = void 0;
|
|
4
4
|
var CommentType;
|
|
5
5
|
(function (CommentType) {
|
|
6
6
|
CommentType["COMMENT"] = "COMMENT";
|
|
7
7
|
CommentType["REPLY"] = "REPLY";
|
|
8
8
|
})(CommentType || (exports.CommentType = CommentType = {}));
|
|
9
|
+
var CommentSortField;
|
|
10
|
+
(function (CommentSortField) {
|
|
11
|
+
CommentSortField["TIMECODE"] = "TIMECODE";
|
|
12
|
+
CommentSortField["CREATOR"] = "CREATOR";
|
|
13
|
+
CommentSortField["NEWEST"] = "NEWEST";
|
|
14
|
+
CommentSortField["OLDEST"] = "OLDEST";
|
|
15
|
+
})(CommentSortField || (exports.CommentSortField = CommentSortField = {}));
|
|
16
|
+
var CommentSortDirection;
|
|
17
|
+
(function (CommentSortDirection) {
|
|
18
|
+
CommentSortDirection["ASC"] = "ASC";
|
|
19
|
+
CommentSortDirection["DESC"] = "DESC";
|
|
20
|
+
})(CommentSortDirection || (exports.CommentSortDirection = CommentSortDirection = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReducedUser, ShareReducedUnlinkedUser, User } from "../../idp";
|
|
2
|
+
import { ItemType } from "../asset";
|
|
2
3
|
/**
|
|
3
4
|
* Represents a public link for sharing.
|
|
4
5
|
* @property link - The URL of the public link.
|
|
@@ -28,7 +29,16 @@ export interface Share {
|
|
|
28
29
|
name: string;
|
|
29
30
|
creator: ReducedUser;
|
|
30
31
|
createDate: number;
|
|
31
|
-
items
|
|
32
|
+
items?: ({
|
|
33
|
+
_id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
type: ItemType.FOLDER;
|
|
36
|
+
} | {
|
|
37
|
+
_id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
type: ItemType.MEDIA_ASSET;
|
|
40
|
+
thumbnailUrl: string;
|
|
41
|
+
})[];
|
|
32
42
|
permissions?: string[];
|
|
33
43
|
permissionGroups?: ShareAssetPermissionGroup[];
|
|
34
44
|
namespaces?: Record<string, string[]>;
|
|
@@ -49,7 +49,7 @@ export interface EventExecutionResult {
|
|
|
49
49
|
runningNodes: StreamRunningNode[];
|
|
50
50
|
}
|
|
51
51
|
export interface High5ExecutionPackage {
|
|
52
|
-
design
|
|
52
|
+
design?: DesignBuild;
|
|
53
53
|
payload: High5ExecutionPayload;
|
|
54
54
|
waveCatalogs: WaveCatalog[];
|
|
55
55
|
waveEngine: WaveEngine;
|
|
@@ -80,7 +80,9 @@ declare enum TriggerSource {
|
|
|
80
80
|
export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
|
|
81
81
|
hcl: HCloud;
|
|
82
82
|
orgName: string;
|
|
83
|
+
orgId: string;
|
|
83
84
|
spaceName: string;
|
|
85
|
+
spaceId: string;
|
|
84
86
|
streamId: string;
|
|
85
87
|
secret: string;
|
|
86
88
|
targetEmail: string;
|
|
@@ -176,6 +178,7 @@ export interface StreamNode {
|
|
|
176
178
|
export interface High5ExecuteOnAgentRequest {
|
|
177
179
|
organizationName: string;
|
|
178
180
|
spaceName: string;
|
|
181
|
+
spaceId: string;
|
|
179
182
|
streamId: string;
|
|
180
183
|
secret: string;
|
|
181
184
|
subject: string;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { Header, ReducedSpace } from "../../../global";
|
|
2
2
|
import { ReducedOrganization } from "../../../idp/organization";
|
|
3
3
|
import { ReducedUser } from "../../../idp/user";
|
|
4
|
+
export interface ReducedJob {
|
|
5
|
+
_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
4
8
|
export interface JobLogDto {
|
|
5
9
|
_id: string;
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
job: ReducedJob;
|
|
11
|
+
space: ReducedSpace;
|
|
8
12
|
organization: ReducedOrganization;
|
|
9
13
|
creator: ReducedUser;
|
|
10
|
-
|
|
14
|
+
statusCode: number;
|
|
11
15
|
headers?: Header[];
|
|
12
|
-
|
|
16
|
+
payload?: string;
|
|
17
|
+
errorMessage?: string;
|
|
13
18
|
createDate: number;
|
|
14
|
-
modifyDate: number;
|
|
15
19
|
}
|
|
16
|
-
export type JobLogCreate = Pick<JobLogDto, "statusCode" | "headers" | "
|
|
20
|
+
export type JobLogCreate = Pick<JobLogDto, "statusCode" | "headers" | "payload" | "errorMessage">;
|
|
@@ -61,10 +61,10 @@ export interface Job {
|
|
|
61
61
|
_id: string;
|
|
62
62
|
name: string;
|
|
63
63
|
expression: string;
|
|
64
|
+
targetEvent: ReducedEvent;
|
|
65
|
+
space: ReducedSpace;
|
|
64
66
|
organization: ReducedOrganization;
|
|
65
67
|
creator: ReducedUser;
|
|
66
|
-
space: ReducedSpace;
|
|
67
|
-
targetEvent: ReducedEvent;
|
|
68
68
|
timezone: string;
|
|
69
69
|
description?: string;
|
|
70
70
|
payload?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputObject, Query } from "./dependentInputs";
|
|
1
2
|
export interface RegistryCatalog {
|
|
2
3
|
name: string;
|
|
3
4
|
description: string;
|
|
@@ -111,6 +112,10 @@ export type StreamNodeSpecificationV3 = Omit<StreamNodeSpecificationV2, "specVer
|
|
|
111
112
|
specVersion: 3;
|
|
112
113
|
deprecated: boolean;
|
|
113
114
|
};
|
|
115
|
+
export type StreamNodeSpecificationV4<T extends InputObject = InputObject> = Omit<StreamNodeSpecificationV3, "specVersion" | "inputs"> & {
|
|
116
|
+
specVersion: 4;
|
|
117
|
+
inputs?: StreamNodeSpecificationDependendInput<T>[];
|
|
118
|
+
};
|
|
114
119
|
/**
|
|
115
120
|
* This functions will return true when the specVersion is undefined to account for older catalogs/nodes
|
|
116
121
|
* that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
|
|
@@ -119,6 +124,7 @@ export type StreamNodeSpecificationV3 = Omit<StreamNodeSpecificationV2, "specVer
|
|
|
119
124
|
export declare function isStreamNodeSpecificationV1(s: StreamNodeSpecification): s is StreamNodeSpecificationV1;
|
|
120
125
|
export declare function isStreamNodeSpecificationV2(s: StreamNodeSpecification): s is StreamNodeSpecificationV2;
|
|
121
126
|
export declare function isStreamNodeSpecificationV3(s: StreamNodeSpecification): s is StreamNodeSpecificationV3;
|
|
127
|
+
export declare function isStreamNodeSpecificationV4<T extends InputObject = InputObject>(s: StreamNodeSpecification): s is StreamNodeSpecificationV4<T>;
|
|
122
128
|
export interface StreamCustomNodeSpecification {
|
|
123
129
|
_id: string;
|
|
124
130
|
color?: string;
|
|
@@ -163,6 +169,9 @@ export type StreamNodeSpecificationInput = {
|
|
|
163
169
|
type: StreamNodeSpecificationInputType.BOOLEAN;
|
|
164
170
|
defaultValue: boolean;
|
|
165
171
|
});
|
|
172
|
+
export type StreamNodeSpecificationDependendInput<T extends InputObject = InputObject> = StreamNodeSpecificationInput & {
|
|
173
|
+
if?: Query<T>;
|
|
174
|
+
};
|
|
166
175
|
export interface StreamNodeSpecificationOutput {
|
|
167
176
|
name: string;
|
|
168
177
|
description: string;
|
|
@@ -4,6 +4,7 @@ exports.StreamNodeSpecificationPackage = exports.StreamNodeSpecificationTag = ex
|
|
|
4
4
|
exports.isStreamNodeSpecificationV1 = isStreamNodeSpecificationV1;
|
|
5
5
|
exports.isStreamNodeSpecificationV2 = isStreamNodeSpecificationV2;
|
|
6
6
|
exports.isStreamNodeSpecificationV3 = isStreamNodeSpecificationV3;
|
|
7
|
+
exports.isStreamNodeSpecificationV4 = isStreamNodeSpecificationV4;
|
|
7
8
|
/**
|
|
8
9
|
* This functions will return true when the specVersion is undefined to account for older catalogs/nodes
|
|
9
10
|
* that existed before the specVersion was introduced. It is therefore assumed that any node without a specVersion
|
|
@@ -18,6 +19,9 @@ function isStreamNodeSpecificationV2(s) {
|
|
|
18
19
|
function isStreamNodeSpecificationV3(s) {
|
|
19
20
|
return s.specVersion === 3;
|
|
20
21
|
}
|
|
22
|
+
function isStreamNodeSpecificationV4(s) {
|
|
23
|
+
return s.specVersion === 4;
|
|
24
|
+
}
|
|
21
25
|
var StreamNodeSpecificationInputType;
|
|
22
26
|
(function (StreamNodeSpecificationInputType) {
|
|
23
27
|
StreamNodeSpecificationInputType["STRING"] = "STRING";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Base, { MaybeRaw } from "../../../Base";
|
|
2
|
-
import { Comment, CreateComment, EditComment, Reply } from "../../../interfaces/cosmo/comment";
|
|
2
|
+
import { Comment, CommentSortDirection, CommentSortField, CreateComment, EditComment, Reply } from "../../../interfaces/cosmo/comment";
|
|
3
3
|
/**
|
|
4
4
|
* @class Comment
|
|
5
5
|
* @extends Base
|
|
@@ -36,13 +36,15 @@ export declare class CosmoComment extends Base {
|
|
|
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
|
|
39
|
+
* @param sortField Field to sort comments by
|
|
40
|
+
* @param sortDirection Sort direction for comments
|
|
39
41
|
* @param accept The Accept header value, either "application/json" (comments response as json)
|
|
40
42
|
* or "application/mediacomposer+xml" (comments response as media composer xml as download)
|
|
41
43
|
* or "application/fcp+xml" (comments response as fcp xml as download => i.e. for Adobe Premiere Pro)
|
|
42
44
|
* or "text/edl" (comments response as edl as download => i.e. for Davinci Resolve)
|
|
43
45
|
* @returns A list of Comments
|
|
44
46
|
*/
|
|
45
|
-
listComments<R extends boolean = false, A extends string = "application/json">(orgName: string, spaceName: string, namespaceName: string, refId: string, limit?: number, page?: number, annotation?: boolean, replySample?: number, accept?: A, raw?: {
|
|
47
|
+
listComments<R extends boolean = false, A extends string = "application/json">(orgName: string, spaceName: string, namespaceName: string, refId: string, limit?: number, page?: number, annotation?: boolean, replySample?: number, sortField?: CommentSortField, sortDirection?: CommentSortDirection, accept?: A, raw?: {
|
|
46
48
|
raw: R;
|
|
47
49
|
}): Promise<A extends "application/mediacomposer+xml" | "application/fcp+xml" | "text/edl" ? ArrayBuffer : MaybeRaw<R, Comment[]>>;
|
|
48
50
|
/**
|
|
@@ -55,6 +55,8 @@ class CosmoComment extends Base_1.default {
|
|
|
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
|
|
58
|
+
* @param sortField Field to sort comments by
|
|
59
|
+
* @param sortDirection Sort direction for comments
|
|
58
60
|
* @param accept The Accept header value, either "application/json" (comments response as json)
|
|
59
61
|
* or "application/mediacomposer+xml" (comments response as media composer xml as download)
|
|
60
62
|
* or "application/fcp+xml" (comments response as fcp xml as download => i.e. for Adobe Premiere Pro)
|
|
@@ -62,12 +64,12 @@ class CosmoComment extends Base_1.default {
|
|
|
62
64
|
* @returns A list of Comments
|
|
63
65
|
*/
|
|
64
66
|
listComments(orgName_1, spaceName_1, namespaceName_1, refId_1, limit_1, page_1) {
|
|
65
|
-
return __awaiter(this, arguments, void 0, function* (orgName, spaceName, namespaceName, refId, limit, page, annotation = false, replySample = 0, accept, raw) {
|
|
67
|
+
return __awaiter(this, arguments, void 0, function* (orgName, spaceName, namespaceName, refId, limit, page, annotation = false, replySample = 0, sortField, sortDirection, accept, raw) {
|
|
66
68
|
limit = limit !== null && limit !== void 0 ? limit : 100;
|
|
67
69
|
page = page !== null && page !== void 0 ? page : 0;
|
|
68
70
|
const fileDownloadTypes = new Set(["application/mediacomposer+xml", "application/fcp+xml", "text/edl"]);
|
|
69
71
|
const isFileDownload = accept !== undefined && fileDownloadTypes.has(accept);
|
|
70
|
-
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/namespaces/${namespaceName}/comments?limit=${limit}&page=${page}&annotation=${annotation}&refId=${refId}&replySample=${replySample}`), Object.assign({ headers: {
|
|
72
|
+
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/namespaces/${namespaceName}/comments?limit=${limit}&page=${page}&annotation=${annotation}&refId=${refId}&replySample=${replySample}${sortField !== undefined ? `&sort_field=${sortField}` : ""}${sortDirection !== undefined ? `&sort_direction=${sortDirection}` : ""}`), Object.assign({ headers: {
|
|
71
73
|
Accept: accept !== null && accept !== void 0 ? accept : "application/json",
|
|
72
74
|
} }, (isFileDownload && { responseType: "arraybuffer" })));
|
|
73
75
|
if (isFileDownload) {
|
|
@@ -166,4 +166,22 @@ export declare class CosmoShare extends Base {
|
|
|
166
166
|
resendEmails<R extends boolean = false>(orgName: string, spaceName: string, shareId: string, emails: [string, ...string[]], raw?: {
|
|
167
167
|
raw: R;
|
|
168
168
|
}): Promise<MaybeRaw<R, undefined>>;
|
|
169
|
+
/**
|
|
170
|
+
* Sends a share email to a **specific recipient** after he clicks a public link.
|
|
171
|
+
*
|
|
172
|
+
*
|
|
173
|
+
* @typeParam R - When `true`, the raw Axios response is returned instead of `undefined`
|
|
174
|
+
*
|
|
175
|
+
* @param orgName - The organization identifier
|
|
176
|
+
* @param spaceName - The space identifier within the organization
|
|
177
|
+
* @param shareId - The share ID whose emails should be resent
|
|
178
|
+
* @param email - The email address of the recipient
|
|
179
|
+
* @param shareIdHMAC - The HMAC of the share ID
|
|
180
|
+
* @param raw - Optional flag to return the raw Axios response
|
|
181
|
+
*
|
|
182
|
+
* @returns `undefined` by default, or the raw Axios response when `raw.raw` is `true`
|
|
183
|
+
*/
|
|
184
|
+
sendShareEmailAfterPublicLinkClick<R extends boolean = false>(orgName: string, spaceName: string, shareId: string, email: string, shareIdHMAC: string, raw?: {
|
|
185
|
+
raw: R;
|
|
186
|
+
}): Promise<MaybeRaw<R, undefined>>;
|
|
169
187
|
}
|
|
@@ -223,5 +223,29 @@ class CosmoShare extends Base_1.default {
|
|
|
223
223
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Sends a share email to a **specific recipient** after he clicks a public link.
|
|
228
|
+
*
|
|
229
|
+
*
|
|
230
|
+
* @typeParam R - When `true`, the raw Axios response is returned instead of `undefined`
|
|
231
|
+
*
|
|
232
|
+
* @param orgName - The organization identifier
|
|
233
|
+
* @param spaceName - The space identifier within the organization
|
|
234
|
+
* @param shareId - The share ID whose emails should be resent
|
|
235
|
+
* @param email - The email address of the recipient
|
|
236
|
+
* @param shareIdHMAC - The HMAC of the share ID
|
|
237
|
+
* @param raw - Optional flag to return the raw Axios response
|
|
238
|
+
*
|
|
239
|
+
* @returns `undefined` by default, or the raw Axios response when `raw.raw` is `true`
|
|
240
|
+
*/
|
|
241
|
+
sendShareEmailAfterPublicLinkClick(orgName, spaceName, shareId, email, shareIdHMAC, raw) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/shares/${shareId}/email/publicLink`), {
|
|
244
|
+
email,
|
|
245
|
+
shareIdHMAC,
|
|
246
|
+
});
|
|
247
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
226
250
|
}
|
|
227
251
|
exports.CosmoShare = CosmoShare;
|
|
@@ -51,6 +51,19 @@ export declare class CosmoTag extends Base {
|
|
|
51
51
|
updateTag<R extends boolean = false>(orgName: string, spaceName: string, namespaceName: string, tagName: string, patchTag: PatchTag, raw?: {
|
|
52
52
|
raw: R;
|
|
53
53
|
}): Promise<MaybeRaw<R, Tag>>;
|
|
54
|
+
/**
|
|
55
|
+
* Reorder Tags in Cosmo inside the specified Organization, Space and Namespace.
|
|
56
|
+
* @remarks
|
|
57
|
+
* ** Under development, breaking changes possible**
|
|
58
|
+
* @param orgName Name of the Organization
|
|
59
|
+
* @param spaceName Name of the Space
|
|
60
|
+
* @param namespaceName Name of the Namespace
|
|
61
|
+
* @param tagIds Ordered array of tag IDs representing the desired sort order
|
|
62
|
+
* @returns 204 No Content if successful
|
|
63
|
+
*/
|
|
64
|
+
reorderTags<R extends boolean = false>(orgName: string, spaceName: string, namespaceName: string, tagIds: string[], raw?: {
|
|
65
|
+
raw: R;
|
|
66
|
+
}): Promise<MaybeRaw<R, void>>;
|
|
54
67
|
/**
|
|
55
68
|
* Delete a Tag in Cosmo inside the specified Organization, Space and Namespace.
|
|
56
69
|
* @remarks
|
|
@@ -76,6 +76,24 @@ class CosmoTag extends Base_1.default {
|
|
|
76
76
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Reorder Tags in Cosmo inside the specified Organization, Space and Namespace.
|
|
81
|
+
* @remarks
|
|
82
|
+
* ** Under development, breaking changes possible**
|
|
83
|
+
* @param orgName Name of the Organization
|
|
84
|
+
* @param spaceName Name of the Space
|
|
85
|
+
* @param namespaceName Name of the Namespace
|
|
86
|
+
* @param tagIds Ordered array of tag IDs representing the desired sort order
|
|
87
|
+
* @returns 204 No Content if successful
|
|
88
|
+
*/
|
|
89
|
+
reorderTags(orgName, spaceName, namespaceName, tagIds, raw) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const resp = yield this.axios.put(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/namespaces/${namespaceName}/tags/reorder`), {
|
|
92
|
+
tagIds,
|
|
93
|
+
});
|
|
94
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
79
97
|
/**
|
|
80
98
|
* Delete a Tag in Cosmo inside the specified Organization, Space and Namespace.
|
|
81
99
|
* @remarks
|
|
@@ -39,9 +39,10 @@ export declare class High5SpaceExecute extends Base {
|
|
|
39
39
|
* @param spaceName Name of the Space
|
|
40
40
|
* @param streamId ID of the Stream
|
|
41
41
|
* @param secret Secret of the Stream execution object
|
|
42
|
+
* @param hash (Optional) SHA-256 hash of the cached design to prevent redundant downloads
|
|
42
43
|
* @returns StreamExecutionPackage
|
|
43
44
|
*/
|
|
44
|
-
getStreamExecutionPackage<R extends boolean = false>(orgName: string, spaceName: string, streamId: string, secret: string, raw?: {
|
|
45
|
+
getStreamExecutionPackage<R extends boolean = false>(orgName: string, spaceName: string, streamId: string, secret: string, hash?: string, raw?: {
|
|
45
46
|
raw: R;
|
|
46
47
|
}): Promise<MaybeRaw<R, High5ExecutionPackage>>;
|
|
47
48
|
/**
|
|
@@ -74,11 +74,12 @@ class High5SpaceExecute extends Base_1.default {
|
|
|
74
74
|
* @param spaceName Name of the Space
|
|
75
75
|
* @param streamId ID of the Stream
|
|
76
76
|
* @param secret Secret of the Stream execution object
|
|
77
|
+
* @param hash (Optional) SHA-256 hash of the cached design to prevent redundant downloads
|
|
77
78
|
* @returns StreamExecutionPackage
|
|
78
79
|
*/
|
|
79
|
-
getStreamExecutionPackage(orgName, spaceName, streamId, secret, raw) {
|
|
80
|
+
getStreamExecutionPackage(orgName, spaceName, streamId, secret, hash, raw) {
|
|
80
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}/package/${secret}`));
|
|
82
|
+
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}/package/${secret}`), { params: { hash } });
|
|
82
83
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
83
84
|
});
|
|
84
85
|
}
|