hcloud-sdk 18.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 -184
- 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/index.d.ts +1 -0
- 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 +45 -9
- package/lib/interfaces/cosmo/asset/index.js +9 -1
- package/lib/interfaces/cosmo/comment/index.d.ts +18 -1
- package/lib/interfaces/cosmo/comment/index.js +13 -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 +100 -8
- 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 +3 -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 +5 -1
- package/lib/interfaces/high5/space/job/JobLog.d.ts +10 -6
- package/lib/interfaces/high5/space/job/index.d.ts +65 -20
- 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/high5/wave/index.d.ts +9 -0
- package/lib/interfaces/high5/wave/index.js +4 -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 +10 -37
- package/lib/service/cosmo/comment/index.js +20 -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 +55 -29
- package/lib/service/cosmo/share/index.js +71 -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.d.ts +13 -0
- package/lib/service/cosmo/tag/index.js +22 -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.d.ts +2 -1
- package/lib/service/high5/space/execution/index.js +7 -3
- 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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface AddCloudWatchDto {
|
|
2
|
+
logGroupName?: string;
|
|
3
|
+
logStreamName?: string;
|
|
4
|
+
awsRegion?: string;
|
|
5
|
+
retentionInDays?: number;
|
|
6
|
+
uploadRate: number;
|
|
7
|
+
level?: string;
|
|
8
|
+
jsonMessage: boolean;
|
|
9
|
+
awsOptions?: {
|
|
10
|
+
region?: string;
|
|
11
|
+
credentials?: {
|
|
12
|
+
accessKeyId: string;
|
|
13
|
+
secretAccessKey: string;
|
|
14
|
+
sessionToken?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface CloudWatchDto {
|
|
19
|
+
name: string;
|
|
20
|
+
logGroupName?: string;
|
|
21
|
+
logStreamName?: string;
|
|
22
|
+
level: string;
|
|
23
|
+
}
|
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./space/cronjob/CronjobLog"), exports);
|
|
17
|
+
__exportStar(require("./cloudwatch"), exports);
|
|
18
|
+
__exportStar(require("./log-collector"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface AddLogCollectorDto {
|
|
2
|
+
name: string;
|
|
3
|
+
host: string;
|
|
4
|
+
port?: number;
|
|
5
|
+
path: string;
|
|
6
|
+
ssl: boolean;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
auth?: {
|
|
9
|
+
username: string;
|
|
10
|
+
password: string;
|
|
11
|
+
};
|
|
12
|
+
headers?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
batch?: boolean;
|
|
16
|
+
batchInterval?: number;
|
|
17
|
+
batchCount?: number;
|
|
18
|
+
level?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface LogCollectorDto {
|
|
21
|
+
name: string;
|
|
22
|
+
url: string;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
auth?: {
|
|
25
|
+
username: string;
|
|
26
|
+
password: string;
|
|
27
|
+
};
|
|
28
|
+
headers?: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
batch?: boolean;
|
|
32
|
+
batchInterval?: number;
|
|
33
|
+
batchCount?: number;
|
|
34
|
+
level?: string;
|
|
35
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReducedSpace } from "../../global";
|
|
2
2
|
import { SearchFilterComparatorString, SearchFilterType } from "../../global/SearchFilters";
|
|
3
|
+
import { ReducedTeam } from "../../idp";
|
|
3
4
|
import { ReducedOrganization } from "../../idp/organization";
|
|
4
5
|
import { ReducedUser } from "../../idp/user";
|
|
5
6
|
import { CosmoSpace } from "../space";
|
|
@@ -16,31 +17,39 @@ export interface BaseAsset {
|
|
|
16
17
|
permissions?: string[];
|
|
17
18
|
breadcrumb?: (Asset | CosmoSpace)[];
|
|
18
19
|
}
|
|
19
|
-
export type Asset =
|
|
20
|
+
export type Asset = BaseAsset & ({
|
|
20
21
|
type: ItemType.MEDIA_ASSET;
|
|
21
22
|
extension: string;
|
|
22
23
|
assetType: AssetType;
|
|
23
24
|
path: string;
|
|
24
25
|
status: UploadStatus;
|
|
26
|
+
progress: number;
|
|
25
27
|
tag?: Tag;
|
|
26
28
|
previewUrl?: string;
|
|
29
|
+
tilePreviewVttUrl?: string;
|
|
27
30
|
duration?: number;
|
|
28
31
|
frameRate?: number;
|
|
29
32
|
media?: Media[];
|
|
30
33
|
thumbnailUrl?: string;
|
|
34
|
+
posterUrl?: string;
|
|
31
35
|
namespaces?: Record<string, {
|
|
32
36
|
status: string;
|
|
37
|
+
statusAuthor?: ReducedUser;
|
|
38
|
+
canWriteStatus?: boolean;
|
|
33
39
|
tag?: Tag;
|
|
40
|
+
metadata?: NamespaceMetadata;
|
|
34
41
|
}>;
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
queuePosition?: number;
|
|
43
|
+
queueTotal?: number;
|
|
44
|
+
} | Production | Folder | AssetReference);
|
|
45
|
+
export type Production = {
|
|
37
46
|
type: ItemType.PRODUCTION;
|
|
38
47
|
};
|
|
39
|
-
export type Folder =
|
|
48
|
+
export type Folder = {
|
|
40
49
|
type: ItemType.FOLDER;
|
|
41
50
|
children?: Asset[];
|
|
42
51
|
};
|
|
43
|
-
export type AssetReference =
|
|
52
|
+
export type AssetReference = {
|
|
44
53
|
type: ItemType.REFERENCE;
|
|
45
54
|
reference: {
|
|
46
55
|
status: string;
|
|
@@ -70,7 +79,8 @@ export declare enum UploadStatus {
|
|
|
70
79
|
UPLOADED = "UPLOADED",
|
|
71
80
|
PROCESSING = "PROCESSING",
|
|
72
81
|
FINISHED = "FINISHED",
|
|
73
|
-
FAILED = "FAILED"
|
|
82
|
+
FAILED = "FAILED",
|
|
83
|
+
POST_PROCESSING = "POST_PROCESSING"
|
|
74
84
|
}
|
|
75
85
|
export type NamespaceRushStatus = "approved" | "rejected" | "none";
|
|
76
86
|
export interface Upload {
|
|
@@ -89,6 +99,11 @@ export declare enum AssetPermission {
|
|
|
89
99
|
type BaseMedia = {
|
|
90
100
|
url?: string;
|
|
91
101
|
};
|
|
102
|
+
export type Mentionable = (ReducedUser & {
|
|
103
|
+
type: "user";
|
|
104
|
+
}) | (ReducedTeam & {
|
|
105
|
+
type: "team";
|
|
106
|
+
});
|
|
92
107
|
export type Media = (BaseMedia & {
|
|
93
108
|
type: MediaType.VIDEO;
|
|
94
109
|
name: "original" | string;
|
|
@@ -101,6 +116,9 @@ export type Media = (BaseMedia & {
|
|
|
101
116
|
}) | (BaseMedia & {
|
|
102
117
|
type: MediaType.IMAGE;
|
|
103
118
|
name: string;
|
|
119
|
+
}) | (BaseMedia & {
|
|
120
|
+
type: MediaType.VTT;
|
|
121
|
+
name: string;
|
|
104
122
|
}) | (BaseMedia & {
|
|
105
123
|
type: MediaType.UNKNOWN;
|
|
106
124
|
name: string;
|
|
@@ -109,7 +127,8 @@ export declare enum MediaType {
|
|
|
109
127
|
VIDEO = "VIDEO",
|
|
110
128
|
AUDIO = "AUDIO",
|
|
111
129
|
IMAGE = "IMAGE",
|
|
112
|
-
UNKNOWN = "UNKNOWN"
|
|
130
|
+
UNKNOWN = "UNKNOWN",
|
|
131
|
+
VTT = "VTT"
|
|
113
132
|
}
|
|
114
133
|
export declare enum MetadataType {
|
|
115
134
|
VIDEO = "VIDEO",
|
|
@@ -127,8 +146,8 @@ export interface VideoMetadata {
|
|
|
127
146
|
height: number;
|
|
128
147
|
fieldOrder: string;
|
|
129
148
|
duration: number;
|
|
130
|
-
tcIn:
|
|
131
|
-
tcOut:
|
|
149
|
+
tcIn: number;
|
|
150
|
+
tcOut: number;
|
|
132
151
|
noOfFrames: number;
|
|
133
152
|
formatLongName: string;
|
|
134
153
|
}
|
|
@@ -182,4 +201,21 @@ export declare enum AssetSearchContext {
|
|
|
182
201
|
TRASH = "TRASH",
|
|
183
202
|
SHARE = "SHARE"
|
|
184
203
|
}
|
|
204
|
+
export declare enum SubscriptionFilter {
|
|
205
|
+
STATUS = "status",
|
|
206
|
+
TAGS = "tags",
|
|
207
|
+
COMMENTS = "comments"
|
|
208
|
+
}
|
|
209
|
+
export type NamespaceMetadata = Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
210
|
+
export type VTTThumbnail = {
|
|
211
|
+
start: number;
|
|
212
|
+
end: number;
|
|
213
|
+
url: string;
|
|
214
|
+
xywh?: {
|
|
215
|
+
x: number;
|
|
216
|
+
y: number;
|
|
217
|
+
w: number;
|
|
218
|
+
h: number;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
185
221
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AssetSearchContext = exports.searchParams = exports.supportedFormats = exports.Resolution = exports.MetadataType = exports.MediaType = exports.AssetPermission = exports.UploadStatus = exports.ItemType = exports.AssetType = void 0;
|
|
3
|
+
exports.SubscriptionFilter = exports.AssetSearchContext = exports.searchParams = exports.supportedFormats = exports.Resolution = exports.MetadataType = exports.MediaType = exports.AssetPermission = exports.UploadStatus = exports.ItemType = exports.AssetType = void 0;
|
|
4
4
|
const SearchFilters_1 = require("../../global/SearchFilters");
|
|
5
5
|
var AssetType;
|
|
6
6
|
(function (AssetType) {
|
|
@@ -31,6 +31,7 @@ var UploadStatus;
|
|
|
31
31
|
UploadStatus["PROCESSING"] = "PROCESSING";
|
|
32
32
|
UploadStatus["FINISHED"] = "FINISHED";
|
|
33
33
|
UploadStatus["FAILED"] = "FAILED";
|
|
34
|
+
UploadStatus["POST_PROCESSING"] = "POST_PROCESSING";
|
|
34
35
|
})(UploadStatus || (exports.UploadStatus = UploadStatus = {}));
|
|
35
36
|
var AssetPermission;
|
|
36
37
|
(function (AssetPermission) {
|
|
@@ -45,6 +46,7 @@ var MediaType;
|
|
|
45
46
|
MediaType["AUDIO"] = "AUDIO";
|
|
46
47
|
MediaType["IMAGE"] = "IMAGE";
|
|
47
48
|
MediaType["UNKNOWN"] = "UNKNOWN";
|
|
49
|
+
MediaType["VTT"] = "VTT";
|
|
48
50
|
})(MediaType || (exports.MediaType = MediaType = {}));
|
|
49
51
|
var MetadataType;
|
|
50
52
|
(function (MetadataType) {
|
|
@@ -80,3 +82,9 @@ var AssetSearchContext;
|
|
|
80
82
|
AssetSearchContext["TRASH"] = "TRASH";
|
|
81
83
|
AssetSearchContext["SHARE"] = "SHARE";
|
|
82
84
|
})(AssetSearchContext || (exports.AssetSearchContext = AssetSearchContext = {}));
|
|
85
|
+
var SubscriptionFilter;
|
|
86
|
+
(function (SubscriptionFilter) {
|
|
87
|
+
SubscriptionFilter["STATUS"] = "status";
|
|
88
|
+
SubscriptionFilter["TAGS"] = "tags";
|
|
89
|
+
SubscriptionFilter["COMMENTS"] = "comments";
|
|
90
|
+
})(SubscriptionFilter || (exports.SubscriptionFilter = SubscriptionFilter = {}));
|
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
import { ReducedUser } from "../../idp";
|
|
1
|
+
import { ReducedTeam, ReducedUser } from "../../idp";
|
|
2
2
|
export interface CreateComment {
|
|
3
3
|
refId: string;
|
|
4
4
|
text: string;
|
|
5
5
|
timestamp?: Timestamp;
|
|
6
6
|
annotation?: string;
|
|
7
7
|
mentions?: string[];
|
|
8
|
+
mentionsTeams?: string[];
|
|
8
9
|
}
|
|
9
10
|
export interface EditComment {
|
|
10
11
|
text: string;
|
|
11
12
|
timestamp?: Timestamp;
|
|
12
13
|
annotation?: string;
|
|
13
14
|
mentions?: string[];
|
|
15
|
+
mentionsTeams?: string[];
|
|
16
|
+
completed?: boolean;
|
|
14
17
|
}
|
|
15
18
|
export declare enum CommentType {
|
|
16
19
|
COMMENT = "COMMENT",
|
|
17
20
|
REPLY = "REPLY"
|
|
18
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
|
+
}
|
|
19
32
|
export interface Comment {
|
|
20
33
|
_id: string;
|
|
21
34
|
text: string;
|
|
@@ -26,7 +39,11 @@ export interface Comment {
|
|
|
26
39
|
commentType: CommentType;
|
|
27
40
|
annotation?: string;
|
|
28
41
|
mentions?: ReducedUser[];
|
|
42
|
+
mentionedTeams?: ReducedTeam[];
|
|
29
43
|
replies?: Reply[];
|
|
44
|
+
completed: boolean;
|
|
45
|
+
completedBy?: ReducedUser;
|
|
46
|
+
completedAt?: number;
|
|
30
47
|
}
|
|
31
48
|
export interface Reply extends Omit<Comment, "timestamp" | "replies"> {
|
|
32
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,31 +1,60 @@
|
|
|
1
1
|
export declare enum CosmoEventName {
|
|
2
|
-
HCLOUD_COSMO_SPACE_ADD = "hcloud.cosmo.space.add",
|
|
3
2
|
HCLOUD_COSMO_SPACE_RENAME = "hcloud.cosmo.space.rename",
|
|
4
|
-
HCLOUD_COSMO_SPACE_UPDATE = "hcloud.cosmo.space.update",
|
|
5
3
|
HCLOUD_COSMO_SPACE_DELETE = "hcloud.cosmo.space.delete",
|
|
4
|
+
HCLOUD_COSMO_SPACE_MEMBER_ADD = "hcloud.cosmo.space.member.add",
|
|
5
|
+
HCLOUD_COSMO_SPACE_MEMBER_REMOVE = "hcloud.cosmo.space.member.remove",
|
|
6
|
+
HCLOUD_COSMO_SPACE_MEMBER_UPDATE = "hcloud.cosmo.space.member.update",
|
|
6
7
|
HCLOUD_COSMO_SPACE_ASSET_ADD = "hcloud.cosmo.space.asset.add",
|
|
8
|
+
HCLOUD_COSMO_SPACE_ASSET_UPLOAD_STARTED = "hcloud.cosmo.space.asset.upload.started",
|
|
9
|
+
HCLOUD_COSMO_SPACE_ASSET_READY = "hcloud.cosmo.space.asset.ready",
|
|
7
10
|
HCLOUD_COSMO_SPACE_ASSET_UPDATE = "hcloud.cosmo.space.asset.update",
|
|
11
|
+
HCLOUD_COSMO_SPACE_ASSET_RENAME = "hcloud.cosmo.space.asset.rename",
|
|
12
|
+
HCLOUD_COSMO_SPACE_ASSET_UPDATE_TAG = "hcloud.cosmo.space.asset.update.tag",
|
|
13
|
+
HCLOUD_COSMO_SPACE_ASSET_REMOVE_TAG = "hcloud.cosmo.space.asset.remove.tag",
|
|
14
|
+
HCLOUD_COSMO_SPACE_ASSET_UPDATE_STATUS = "hcloud.cosmo.space.asset.update.status",
|
|
15
|
+
HCLOUD_COSMO_SPACE_ASSET_UPDATE_METADATA = "hcloud.cosmo.space.asset.update.metadata",
|
|
16
|
+
HCLOUD_COSMO_SPACE_ASSET_TRASHED = "hcloud.cosmo.space.asset.trashed",
|
|
17
|
+
HCLOUD_COSMO_SPACE_ASSET_RECOVERED = "hcloud.cosmo.space.asset.recovered",
|
|
8
18
|
HCLOUD_COSMO_SPACE_ASSET_MOVE = "hcloud.cosmo.space.asset.move",
|
|
19
|
+
HCLOUD_COSMO_SPACE_ASSET_COPY = "hcloud.cosmo.space.asset.copy",
|
|
9
20
|
HCLOUD_COSMO_SPACE_ASSET_DELETE = "hcloud.cosmo.space.asset.delete",
|
|
10
21
|
HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD = "hcloud.cosmo.space.asset.comment.add",
|
|
11
22
|
HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE = "hcloud.cosmo.space.asset.comment.update",
|
|
12
|
-
HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE = "hcloud.cosmo.space.asset.comment.delete"
|
|
23
|
+
HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE = "hcloud.cosmo.space.asset.comment.delete",
|
|
24
|
+
HCLOUD_COSMO_SPACE_TAG_ADD = "hcloud.cosmo.space.tag.add",
|
|
25
|
+
HCLOUD_COSMO_SPACE_TAG_UPDATE = "hcloud.cosmo.space.tag.update",
|
|
26
|
+
HCLOUD_COSMO_SPACE_TAG_DELETE = "hcloud.cosmo.space.tag.delete"
|
|
13
27
|
}
|
|
14
28
|
export interface CosmoEvents {
|
|
15
29
|
Space: {
|
|
16
30
|
"Space rename": CosmoEventName.HCLOUD_COSMO_SPACE_RENAME;
|
|
17
|
-
"Space update": CosmoEventName.HCLOUD_COSMO_SPACE_UPDATE;
|
|
18
31
|
"Space delete": CosmoEventName.HCLOUD_COSMO_SPACE_DELETE;
|
|
32
|
+
"Space member add": CosmoEventName.HCLOUD_COSMO_SPACE_MEMBER_ADD;
|
|
33
|
+
"Space member remove": CosmoEventName.HCLOUD_COSMO_SPACE_MEMBER_REMOVE;
|
|
34
|
+
"Space member update": CosmoEventName.HCLOUD_COSMO_SPACE_MEMBER_UPDATE;
|
|
19
35
|
};
|
|
20
36
|
Asset: {
|
|
21
37
|
"Asset create": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_ADD;
|
|
22
|
-
"Asset
|
|
38
|
+
"Asset upload started": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_UPLOAD_STARTED;
|
|
39
|
+
"Asset ready": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_READY;
|
|
40
|
+
"Asset rename": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_RENAME;
|
|
41
|
+
"Asset update tag": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_UPDATE_TAG;
|
|
42
|
+
"Asset update status": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_UPDATE_STATUS;
|
|
43
|
+
"Asset trashed": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_TRASHED;
|
|
44
|
+
"Asset recovered": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_RECOVERED;
|
|
23
45
|
"Asset Move": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_MOVE;
|
|
46
|
+
"Asset Copy": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COPY;
|
|
24
47
|
"Asset Delete": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_DELETE;
|
|
48
|
+
"Asset remove tag": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_REMOVE_TAG;
|
|
25
49
|
};
|
|
26
50
|
Comment: {
|
|
27
51
|
"Comment create": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD;
|
|
28
52
|
"Comment update": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE;
|
|
29
53
|
"Comment delete": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE;
|
|
30
54
|
};
|
|
55
|
+
Tag: {
|
|
56
|
+
"Tag create": CosmoEventName.HCLOUD_COSMO_SPACE_TAG_ADD;
|
|
57
|
+
"Tag update": CosmoEventName.HCLOUD_COSMO_SPACE_TAG_UPDATE;
|
|
58
|
+
"Tag delete": CosmoEventName.HCLOUD_COSMO_SPACE_TAG_DELETE;
|
|
59
|
+
};
|
|
31
60
|
}
|
|
@@ -3,15 +3,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CosmoEventName = void 0;
|
|
4
4
|
var CosmoEventName;
|
|
5
5
|
(function (CosmoEventName) {
|
|
6
|
-
CosmoEventName["HCLOUD_COSMO_SPACE_ADD"] = "hcloud.cosmo.space.add";
|
|
7
6
|
CosmoEventName["HCLOUD_COSMO_SPACE_RENAME"] = "hcloud.cosmo.space.rename";
|
|
8
|
-
CosmoEventName["HCLOUD_COSMO_SPACE_UPDATE"] = "hcloud.cosmo.space.update";
|
|
9
7
|
CosmoEventName["HCLOUD_COSMO_SPACE_DELETE"] = "hcloud.cosmo.space.delete";
|
|
8
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_MEMBER_ADD"] = "hcloud.cosmo.space.member.add";
|
|
9
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_MEMBER_REMOVE"] = "hcloud.cosmo.space.member.remove";
|
|
10
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_MEMBER_UPDATE"] = "hcloud.cosmo.space.member.update";
|
|
10
11
|
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_ADD"] = "hcloud.cosmo.space.asset.add";
|
|
12
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPLOAD_STARTED"] = "hcloud.cosmo.space.asset.upload.started";
|
|
13
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_READY"] = "hcloud.cosmo.space.asset.ready";
|
|
11
14
|
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE"] = "hcloud.cosmo.space.asset.update";
|
|
15
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_RENAME"] = "hcloud.cosmo.space.asset.rename";
|
|
16
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE_TAG"] = "hcloud.cosmo.space.asset.update.tag";
|
|
17
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_REMOVE_TAG"] = "hcloud.cosmo.space.asset.remove.tag";
|
|
18
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE_STATUS"] = "hcloud.cosmo.space.asset.update.status";
|
|
19
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE_METADATA"] = "hcloud.cosmo.space.asset.update.metadata";
|
|
20
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_TRASHED"] = "hcloud.cosmo.space.asset.trashed";
|
|
21
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_RECOVERED"] = "hcloud.cosmo.space.asset.recovered";
|
|
12
22
|
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_MOVE"] = "hcloud.cosmo.space.asset.move";
|
|
23
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COPY"] = "hcloud.cosmo.space.asset.copy";
|
|
13
24
|
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_DELETE"] = "hcloud.cosmo.space.asset.delete";
|
|
14
25
|
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD"] = "hcloud.cosmo.space.asset.comment.add";
|
|
15
26
|
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE"] = "hcloud.cosmo.space.asset.comment.update";
|
|
16
27
|
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE"] = "hcloud.cosmo.space.asset.comment.delete";
|
|
28
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_TAG_ADD"] = "hcloud.cosmo.space.tag.add";
|
|
29
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_TAG_UPDATE"] = "hcloud.cosmo.space.tag.update";
|
|
30
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_TAG_DELETE"] = "hcloud.cosmo.space.tag.delete";
|
|
17
31
|
})(CosmoEventName || (exports.CosmoEventName = CosmoEventName = {}));
|
|
@@ -1,28 +1,120 @@
|
|
|
1
|
-
import { ReducedUser } from "../../idp";
|
|
1
|
+
import { ReducedUser, ShareReducedUnlinkedUser, User } from "../../idp";
|
|
2
|
+
import { ItemType } from "../asset";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a public link for sharing.
|
|
5
|
+
* @property link - The URL of the public link.
|
|
6
|
+
* @property visitsLimit - (Optional) The maximum number of allowed visits for the link.
|
|
7
|
+
*/
|
|
8
|
+
export interface PublicLink {
|
|
9
|
+
link: string;
|
|
10
|
+
visitsLimit?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Represents a share entity containing shared items and permissions.
|
|
14
|
+
* @property _id - Unique identifier for the share.
|
|
15
|
+
* @property name - Name of the share.
|
|
16
|
+
* @property creator - The user who created the share.
|
|
17
|
+
* @property createDate - Timestamp of when the share was created (in milliseconds since epoch).
|
|
18
|
+
* @property items - Array of item IDs included in the share.
|
|
19
|
+
* @property permissions - (Optional) Array of permission strings for the share.
|
|
20
|
+
* @property permissionGroups - (Optional) Array of asset permission groups applied to the share.
|
|
21
|
+
* @property namespaces - (Optional) Mapping of namespace names to arrays of item IDs.
|
|
22
|
+
* @property namespaceGroups - (Optional) Mapping of namespace names to arrays of namespace permission groups.
|
|
23
|
+
* @property expires - (Optional) Expiration timestamp for the share (in milliseconds since epoch).
|
|
24
|
+
* @property password - (Optional) Password required to access the share.
|
|
25
|
+
* @property publicLink - (Optional) Public link information for the share.
|
|
26
|
+
*/
|
|
2
27
|
export interface Share {
|
|
3
28
|
_id: string;
|
|
4
29
|
name: string;
|
|
5
30
|
creator: ReducedUser;
|
|
6
31
|
createDate: number;
|
|
7
|
-
items
|
|
8
|
-
|
|
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
|
+
})[];
|
|
42
|
+
permissions?: string[];
|
|
43
|
+
permissionGroups?: ShareAssetPermissionGroup[];
|
|
44
|
+
namespaces?: Record<string, string[]>;
|
|
45
|
+
namespaceGroups?: Record<string, ShareNamespacePermissionGroup[]>;
|
|
9
46
|
expires?: number;
|
|
10
47
|
password?: string;
|
|
48
|
+
publicLink?: PublicLink;
|
|
49
|
+
users?: (User | ReducedUser | ShareReducedUnlinkedUser)[];
|
|
50
|
+
waiting: boolean;
|
|
11
51
|
}
|
|
12
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Represents the payload for creating a new share.
|
|
54
|
+
* Omits _id, createDate, and creator from Share.
|
|
55
|
+
* @property password - (Optional) Password for the share.
|
|
56
|
+
* @property expires - (Optional) Expiration timestamp for the share (in milliseconds since epoch).
|
|
57
|
+
* @property namespaces - (Optional) Mapping of namespace names to arrays of item IDs.
|
|
58
|
+
* @property users - (Optional) Array of user emails to share with.
|
|
59
|
+
* @property public - (Optional) Whether the share is public.
|
|
60
|
+
* @property visitsLimit - (Optional) Maximum number of allowed visits for the share (only applicable for public shares).
|
|
61
|
+
*/
|
|
62
|
+
export interface ShareCreate extends Omit<Share, "_id" | "createDate" | "creator" | "permissionGroups" | "users"> {
|
|
13
63
|
password?: string;
|
|
14
64
|
expires?: number;
|
|
15
65
|
namespaces?: Record<string, string[]>;
|
|
66
|
+
assetPermissionGroups?: ShareAssetPermissionGroup[];
|
|
16
67
|
/**
|
|
17
68
|
* Array of emails
|
|
18
69
|
*/
|
|
19
70
|
users?: string[];
|
|
71
|
+
public?: boolean;
|
|
72
|
+
visitsLimit?: number;
|
|
73
|
+
deferred?: boolean;
|
|
20
74
|
}
|
|
21
75
|
export type ShareWithUsers = Share & {
|
|
22
|
-
users: ReducedUser
|
|
76
|
+
users: ((ReducedUser | Pick<ReducedUser, "email">) & {
|
|
77
|
+
linkedToShare: boolean;
|
|
78
|
+
})[];
|
|
23
79
|
};
|
|
24
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Represents a patch (partial update) for a share.
|
|
82
|
+
* @property name - (Optional) New name for the share.
|
|
83
|
+
* @property expires - (Optional) New expiration timestamp.
|
|
84
|
+
* @property password - (Optional) New password for the share.
|
|
85
|
+
* @property items - (Optional) New array of item IDs.
|
|
86
|
+
* @property permissions - (Optional) New array of permission strings.
|
|
87
|
+
* @property assetPermissionGroups - (Optional) New array of asset permission groups.
|
|
88
|
+
* @property namespaces - (Optional) New mapping of namespace names to arrays of item IDs or null.
|
|
89
|
+
* @property namespaceGroups - (Optional) New mapping of namespace names to arrays of namespace permission groups or null.
|
|
90
|
+
* @property public - (Optional) Whether the share is public.
|
|
91
|
+
* @property visitsLimit - (Optional) New maximum number of allowed visits (only applicable for public shares).
|
|
92
|
+
*/
|
|
93
|
+
export type SharePatch = Partial<Pick<ShareCreate, "name" | "expires" | "password" | "users"> & {
|
|
25
94
|
items: string[];
|
|
26
|
-
permissions
|
|
27
|
-
|
|
95
|
+
permissions?: string[];
|
|
96
|
+
assetPermissionGroups?: ShareAssetPermissionGroup[];
|
|
97
|
+
namespaces?: Record<string, string[] | null>;
|
|
98
|
+
namespaceGroups?: Record<string, ShareNamespacePermissionGroup[] | null>;
|
|
99
|
+
public?: boolean;
|
|
100
|
+
visitsLimit?: number;
|
|
101
|
+
users?: string[];
|
|
28
102
|
}>;
|
|
103
|
+
export declare enum ShareAssetPermissionGroup {
|
|
104
|
+
VIEW_ASSETS_ONLY = "VIEW_ASSETS_ONLY",
|
|
105
|
+
BASE = "BASE",
|
|
106
|
+
ENABLE_DOWNLOAD = "ENABLE_DOWNLOAD",
|
|
107
|
+
ENABLE_CONTRIBUTION = "ENABLE_CONTRIBUTION",
|
|
108
|
+
ENABLE_ACTIVITY = "ENABLE_ACTIVITY",
|
|
109
|
+
ENABLE_DELETION = "ENABLE_DELETION"
|
|
110
|
+
}
|
|
111
|
+
export declare enum ShareNamespacePermissionGroup {
|
|
112
|
+
BASE = "BASE",
|
|
113
|
+
ENABLE_COMMENTS = "ENABLE_COMMENTS",
|
|
114
|
+
ENABLE_COMMENT_DELETION = "ENABLE_COMMENT_DELETION",
|
|
115
|
+
ENABLE_APPROVAL = "ENABLE_APPROVAL",
|
|
116
|
+
ENABLE_APPROVAL_OVERWRITE = "ENABLE_APPROVAL_OVERWRITE",
|
|
117
|
+
ENABLE_METADATA_EDITING = "ENABLE_METADATA_EDITING",
|
|
118
|
+
ENABLE_TAGS = "ENABLE_TAGS",
|
|
119
|
+
VIEW_ASSET_METADATA = "VIEW_ASSET_METADATA"
|
|
120
|
+
}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShareNamespacePermissionGroup = exports.ShareAssetPermissionGroup = void 0;
|
|
4
|
+
var ShareAssetPermissionGroup;
|
|
5
|
+
(function (ShareAssetPermissionGroup) {
|
|
6
|
+
ShareAssetPermissionGroup["VIEW_ASSETS_ONLY"] = "VIEW_ASSETS_ONLY";
|
|
7
|
+
ShareAssetPermissionGroup["BASE"] = "BASE";
|
|
8
|
+
ShareAssetPermissionGroup["ENABLE_DOWNLOAD"] = "ENABLE_DOWNLOAD";
|
|
9
|
+
ShareAssetPermissionGroup["ENABLE_CONTRIBUTION"] = "ENABLE_CONTRIBUTION";
|
|
10
|
+
ShareAssetPermissionGroup["ENABLE_ACTIVITY"] = "ENABLE_ACTIVITY";
|
|
11
|
+
ShareAssetPermissionGroup["ENABLE_DELETION"] = "ENABLE_DELETION";
|
|
12
|
+
})(ShareAssetPermissionGroup || (exports.ShareAssetPermissionGroup = ShareAssetPermissionGroup = {}));
|
|
13
|
+
var ShareNamespacePermissionGroup;
|
|
14
|
+
(function (ShareNamespacePermissionGroup) {
|
|
15
|
+
ShareNamespacePermissionGroup["BASE"] = "BASE";
|
|
16
|
+
ShareNamespacePermissionGroup["ENABLE_COMMENTS"] = "ENABLE_COMMENTS";
|
|
17
|
+
ShareNamespacePermissionGroup["ENABLE_COMMENT_DELETION"] = "ENABLE_COMMENT_DELETION";
|
|
18
|
+
ShareNamespacePermissionGroup["ENABLE_APPROVAL"] = "ENABLE_APPROVAL";
|
|
19
|
+
ShareNamespacePermissionGroup["ENABLE_APPROVAL_OVERWRITE"] = "ENABLE_APPROVAL_OVERWRITE";
|
|
20
|
+
ShareNamespacePermissionGroup["ENABLE_METADATA_EDITING"] = "ENABLE_METADATA_EDITING";
|
|
21
|
+
ShareNamespacePermissionGroup["ENABLE_TAGS"] = "ENABLE_TAGS";
|
|
22
|
+
ShareNamespacePermissionGroup["VIEW_ASSET_METADATA"] = "VIEW_ASSET_METADATA";
|
|
23
|
+
})(ShareNamespacePermissionGroup || (exports.ShareNamespacePermissionGroup = ShareNamespacePermissionGroup = {}));
|
|
@@ -7,6 +7,8 @@ export interface CosmoSpace {
|
|
|
7
7
|
avatarUrl: string;
|
|
8
8
|
creator: ReducedUser;
|
|
9
9
|
type: ItemType.SPACE;
|
|
10
|
+
trashAutoDelete: boolean;
|
|
11
|
+
trashAutoDeleteTTL: number | null;
|
|
10
12
|
high5_spaceName?: string;
|
|
11
13
|
high5_executionTarget?: string;
|
|
12
14
|
permissions?: string[];
|
|
@@ -23,3 +25,7 @@ export type SpaceUser = (ReducedUser | ReducedTeam) & {
|
|
|
23
25
|
}[];
|
|
24
26
|
type: "user" | "team";
|
|
25
27
|
};
|
|
28
|
+
export interface TrashPolicy {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
ttlDays?: number;
|
|
31
|
+
}
|
|
@@ -2,11 +2,13 @@ export interface Tag {
|
|
|
2
2
|
_id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
color: string;
|
|
5
|
+
position: number;
|
|
5
6
|
}
|
|
6
7
|
export interface CreateTag {
|
|
7
8
|
name: string;
|
|
8
9
|
color?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface PatchTag {
|
|
11
|
-
|
|
12
|
+
name?: string;
|
|
13
|
+
color?: string;
|
|
12
14
|
}
|