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
|
@@ -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";
|
|
@@ -2,17 +2,17 @@ export * from "./oauth";
|
|
|
2
2
|
export * from "./organization";
|
|
3
3
|
export * from "./organization/member";
|
|
4
4
|
export * from "./organization/member/invitations";
|
|
5
|
-
export * from "./organization/
|
|
5
|
+
export * from "./organization/service-accounts";
|
|
6
6
|
export * from "./organization/settings/domain";
|
|
7
7
|
export * from "./organization/settings/domain/saml";
|
|
8
8
|
export * from "./organization/settings/oauthApp";
|
|
9
|
-
export * from "./organization/
|
|
9
|
+
export * from "./organization/team";
|
|
10
|
+
export * from "./user";
|
|
10
11
|
export * from "./user/GeneralSettings";
|
|
11
12
|
export * from "./user/Pat";
|
|
12
13
|
export * from "./user/Scopes";
|
|
13
14
|
export * from "./user/SuccessfulAuth";
|
|
14
15
|
export * from "./user/Totp";
|
|
15
|
-
export * from "./user";
|
|
16
16
|
export declare enum PreLoginPath {
|
|
17
17
|
LOGIN = "LOGIN",
|
|
18
18
|
REGISTER = "REGISTER",
|
|
@@ -19,17 +19,17 @@ __exportStar(require("./oauth"), exports);
|
|
|
19
19
|
__exportStar(require("./organization"), exports);
|
|
20
20
|
__exportStar(require("./organization/member"), exports);
|
|
21
21
|
__exportStar(require("./organization/member/invitations"), exports);
|
|
22
|
-
__exportStar(require("./organization/
|
|
22
|
+
__exportStar(require("./organization/service-accounts"), exports);
|
|
23
23
|
__exportStar(require("./organization/settings/domain"), exports);
|
|
24
24
|
__exportStar(require("./organization/settings/domain/saml"), exports);
|
|
25
25
|
__exportStar(require("./organization/settings/oauthApp"), exports);
|
|
26
|
-
__exportStar(require("./organization/
|
|
26
|
+
__exportStar(require("./organization/team"), exports);
|
|
27
|
+
__exportStar(require("./user"), exports);
|
|
27
28
|
__exportStar(require("./user/GeneralSettings"), exports);
|
|
28
29
|
__exportStar(require("./user/Pat"), exports);
|
|
29
30
|
__exportStar(require("./user/Scopes"), exports);
|
|
30
31
|
__exportStar(require("./user/SuccessfulAuth"), exports);
|
|
31
32
|
__exportStar(require("./user/Totp"), exports);
|
|
32
|
-
__exportStar(require("./user"), exports);
|
|
33
33
|
var PreLoginPath;
|
|
34
34
|
(function (PreLoginPath) {
|
|
35
35
|
PreLoginPath["LOGIN"] = "LOGIN";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type OAuthDeviceAuthorizationResponse = {
|
|
2
|
+
device_code: string;
|
|
3
|
+
user_code: string;
|
|
4
|
+
verification_uri: string;
|
|
5
|
+
verification_uri_complete: string;
|
|
6
|
+
expires_in: number;
|
|
7
|
+
interval: number;
|
|
8
|
+
};
|
|
9
|
+
export type OAuthDeviceTokenResponse = {
|
|
10
|
+
access_token: string;
|
|
11
|
+
token_type: string;
|
|
12
|
+
expires_in: number;
|
|
13
|
+
refresh_token: string;
|
|
14
|
+
scope: string;
|
|
15
|
+
id_token: string;
|
|
16
|
+
} | {
|
|
17
|
+
error: "invalid_request" | "invalid_client" | "invalid_grant" | "unauthorized_client" | "unsupported_grant_type" | "invalid_scope" | "authorization_pending" | "slow_down" | "access_denied" | "expired_token";
|
|
18
|
+
};
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import { Scope } from "../user/Scopes";
|
|
2
|
-
export
|
|
2
|
+
export type OAuthTokenRequest = ({
|
|
3
3
|
code: string;
|
|
4
4
|
client_id: string;
|
|
5
|
-
client_secret: string;
|
|
6
5
|
redirect_uri: string;
|
|
7
|
-
grant_type: GrantType;
|
|
8
|
-
}
|
|
6
|
+
grant_type: GrantType.AUTHORIZATION_CODE;
|
|
7
|
+
} & ({
|
|
8
|
+
client_secret: string;
|
|
9
|
+
/**
|
|
10
|
+
* @see https://datatracker.ietf.org/doc/html/rfc7636#section-4.5
|
|
11
|
+
*/
|
|
12
|
+
code_verifier?: string;
|
|
13
|
+
} | {
|
|
14
|
+
/**
|
|
15
|
+
* @see https://datatracker.ietf.org/doc/html/rfc7636#section-4.5
|
|
16
|
+
*/
|
|
17
|
+
code_verifier: string;
|
|
18
|
+
})) | {
|
|
19
|
+
grant_type: GrantType.REFRESH_TOKEN;
|
|
20
|
+
refresh_token: string;
|
|
21
|
+
};
|
|
9
22
|
export interface OAuthToken {
|
|
10
23
|
id_token?: string;
|
|
11
24
|
access_token?: string;
|
|
@@ -4,6 +4,7 @@ import { ReducedTeam } from "./team";
|
|
|
4
4
|
export * from "./license";
|
|
5
5
|
export * from "./stats";
|
|
6
6
|
export declare enum OrganizationRole {
|
|
7
|
+
MAYBE_GUEST = "MAYBE_GUEST",// Role used for guests that have actually (or maybe) no access to an org
|
|
7
8
|
MEMBER = "MEMBER",// Part of org, but cannot change anything
|
|
8
9
|
MANAGER = "MANAGER",// Can update members
|
|
9
10
|
ADMIN = "ADMIN",// Can update org and members
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./license"), exports);
|
|
|
19
19
|
__exportStar(require("./stats"), exports);
|
|
20
20
|
var OrganizationRole;
|
|
21
21
|
(function (OrganizationRole) {
|
|
22
|
+
OrganizationRole["MAYBE_GUEST"] = "MAYBE_GUEST";
|
|
22
23
|
OrganizationRole["MEMBER"] = "MEMBER";
|
|
23
24
|
OrganizationRole["MANAGER"] = "MANAGER";
|
|
24
25
|
OrganizationRole["ADMIN"] = "ADMIN";
|
|
@@ -25,6 +25,8 @@ export interface OAuthApp {
|
|
|
25
25
|
patId?: string;
|
|
26
26
|
createDate: number;
|
|
27
27
|
modifyDate: number;
|
|
28
|
+
allowAuthoizationCodeFlow: boolean;
|
|
29
|
+
allowDeviceFlow: boolean;
|
|
28
30
|
}
|
|
29
31
|
export type OAuthAppWithConsent = OAuthApp & Omit<OAuthApp, "hcloudClientId" | "clientSecrets" | "callback"> & {
|
|
30
32
|
scopes: Record<Scope, number>;
|
|
@@ -35,4 +37,6 @@ export interface OAuthAppCreate {
|
|
|
35
37
|
description?: string;
|
|
36
38
|
homepage?: string;
|
|
37
39
|
callback: string[];
|
|
40
|
+
allowAuthoizationCodeFlow?: boolean;
|
|
41
|
+
allowDeviceFlow?: boolean;
|
|
38
42
|
}
|
|
@@ -13,17 +13,13 @@ export declare enum Scope {
|
|
|
13
13
|
HIGH5_SPACE_EXECUTE = "high5:space:execute",
|
|
14
14
|
HIGH5_SPACE_WRITE = "high5:space:write",
|
|
15
15
|
HIGH5_SPACE_DELETE = "high5:space:delete",
|
|
16
|
-
FUSE_SPACE_READ = "fuse:space:read",
|
|
17
|
-
FUSE_SPACE_EXECUTE = "fuse:space:execute",
|
|
18
|
-
FUSE_SPACE_WRITE = "fuse:space:write",
|
|
19
|
-
FUSE_SPACE_DELETE = "fuse:space:delete",
|
|
20
16
|
COSMO_SPACE_READ = "cosmo:space:read",
|
|
21
17
|
COSMO_SPACE_WRITE = "cosmo:space:write",
|
|
22
18
|
COSMO_SPACE_DELETE = "cosmo:space:delete"
|
|
23
19
|
}
|
|
24
20
|
export declare const ScopeDescriptions: Map<string, string>;
|
|
25
21
|
export declare const ScopeDependencies: {
|
|
26
|
-
"hcloud:full": (Scope.IDP_EMAIL_READ | Scope.IDP_USER_READ | Scope.IDP_USER_WRITE | Scope.IDP_USER_DELETE | Scope.IDP_USER_OPEN_ID | Scope.IDP_ORGANIZATION_READ | Scope.IDP_ORGANIZATION_WRITE | Scope.IDP_ORGANIZATION_DELETE | Scope.IDP_ORGANIZATION_ADMIN | Scope.HIGH5_SPACE_READ | Scope.HIGH5_SPACE_EXECUTE | Scope.HIGH5_SPACE_WRITE | Scope.HIGH5_SPACE_DELETE | Scope.
|
|
22
|
+
"hcloud:full": (Scope.IDP_EMAIL_READ | Scope.IDP_USER_READ | Scope.IDP_USER_WRITE | Scope.IDP_USER_DELETE | Scope.IDP_USER_OPEN_ID | Scope.IDP_ORGANIZATION_READ | Scope.IDP_ORGANIZATION_WRITE | Scope.IDP_ORGANIZATION_DELETE | Scope.IDP_ORGANIZATION_ADMIN | Scope.HIGH5_SPACE_READ | Scope.HIGH5_SPACE_EXECUTE | Scope.HIGH5_SPACE_WRITE | Scope.HIGH5_SPACE_DELETE | Scope.COSMO_SPACE_READ | Scope.COSMO_SPACE_WRITE | Scope.COSMO_SPACE_DELETE)[];
|
|
27
23
|
"idp:email:read": never[];
|
|
28
24
|
"idp:user:read": never[];
|
|
29
25
|
"idp:user:write": Scope[];
|
|
@@ -37,10 +33,6 @@ export declare const ScopeDependencies: {
|
|
|
37
33
|
"high5:space:execute": Scope[];
|
|
38
34
|
"high5:space:write": Scope[];
|
|
39
35
|
"high5:space:delete": Scope[];
|
|
40
|
-
"fuse:space:read": Scope[];
|
|
41
|
-
"fuse:space:execute": never[];
|
|
42
|
-
"fuse:space:write": Scope[];
|
|
43
|
-
"fuse:space:delete": Scope[];
|
|
44
36
|
"cosmo:space:read": Scope[];
|
|
45
37
|
"cosmo:space:write": Scope[];
|
|
46
38
|
"cosmo:space:delete": Scope[];
|
|
@@ -17,10 +17,6 @@ var Scope;
|
|
|
17
17
|
Scope["HIGH5_SPACE_EXECUTE"] = "high5:space:execute";
|
|
18
18
|
Scope["HIGH5_SPACE_WRITE"] = "high5:space:write";
|
|
19
19
|
Scope["HIGH5_SPACE_DELETE"] = "high5:space:delete";
|
|
20
|
-
Scope["FUSE_SPACE_READ"] = "fuse:space:read";
|
|
21
|
-
Scope["FUSE_SPACE_EXECUTE"] = "fuse:space:execute";
|
|
22
|
-
Scope["FUSE_SPACE_WRITE"] = "fuse:space:write";
|
|
23
|
-
Scope["FUSE_SPACE_DELETE"] = "fuse:space:delete";
|
|
24
20
|
Scope["COSMO_SPACE_READ"] = "cosmo:space:read";
|
|
25
21
|
Scope["COSMO_SPACE_WRITE"] = "cosmo:space:write";
|
|
26
22
|
Scope["COSMO_SPACE_DELETE"] = "cosmo:space:delete";
|
|
@@ -40,10 +36,6 @@ exports.ScopeDescriptions = new Map([
|
|
|
40
36
|
[Scope.HIGH5_SPACE_EXECUTE, "Execute tasks in High5."],
|
|
41
37
|
[Scope.HIGH5_SPACE_WRITE, "Create or update High5 data."],
|
|
42
38
|
[Scope.HIGH5_SPACE_DELETE, "Delete High5 data."],
|
|
43
|
-
[Scope.FUSE_SPACE_READ, "Read Fuse space data."],
|
|
44
|
-
[Scope.FUSE_SPACE_EXECUTE, "Execute tasks in Fuse."],
|
|
45
|
-
[Scope.FUSE_SPACE_WRITE, "Create or update Fuse data."],
|
|
46
|
-
[Scope.FUSE_SPACE_DELETE, "Delete Fuse data."],
|
|
47
39
|
[Scope.COSMO_SPACE_READ, "Read Cosmo space data."],
|
|
48
40
|
[Scope.COSMO_SPACE_WRITE, "Create or update Cosmo data."],
|
|
49
41
|
[Scope.COSMO_SPACE_DELETE, "Delete Cosmo data."],
|
|
@@ -69,10 +61,6 @@ exports.ScopeDependencies = {
|
|
|
69
61
|
Scope.HIGH5_SPACE_EXECUTE,
|
|
70
62
|
Scope.HIGH5_SPACE_WRITE,
|
|
71
63
|
],
|
|
72
|
-
[Scope.FUSE_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
|
|
73
|
-
[Scope.FUSE_SPACE_EXECUTE]: [],
|
|
74
|
-
[Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
|
|
75
|
-
[Scope.FUSE_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ, Scope.FUSE_SPACE_WRITE],
|
|
76
64
|
[Scope.COSMO_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
|
|
77
65
|
[Scope.COSMO_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ],
|
|
78
66
|
[Scope.COSMO_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ, Scope.COSMO_SPACE_WRITE],
|
|
@@ -17,6 +17,9 @@ export interface User {
|
|
|
17
17
|
isGuest?: boolean;
|
|
18
18
|
}
|
|
19
19
|
export type ReducedUser = Pick<User, "_id" | "name" | "email" | "avatarUrl" | "isGuest" | "isAgent">;
|
|
20
|
+
export type ShareReducedUnlinkedUser = Pick<ReducedUser, "email"> & {
|
|
21
|
+
linkedToShare?: boolean;
|
|
22
|
+
};
|
|
20
23
|
export interface UserPatch {
|
|
21
24
|
name?: string;
|
|
22
25
|
email?: string;
|
|
@@ -35,6 +35,7 @@ declare enum MailjetTemplate {
|
|
|
35
35
|
IDP_RESET_PASSWORD = "IDP_RESET_PASSWORD",
|
|
36
36
|
IDP_REGISTRATION_AND_INVITATION = "IDP_REGISTRATION_AND_INVITATION",
|
|
37
37
|
IDP_USER_LEFT_ORGANIZATION = "IDP_USER_LEFT_ORGANIZATION",
|
|
38
|
+
IDP_ACCOUNT_APPROVED = "IDP_ACCOUNT_APPROVED",
|
|
38
39
|
COSMO_NEW_SHARE = "COSMO_NEW_SHARE",
|
|
39
40
|
COSMO_USER_ADDED_TO_SPACE = "COSMO_USER_ADDED_TO_SPACE",
|
|
40
41
|
COSMO_USER_REMOVED_FROM_SPACE = "COSMO_USER_REMOVED_FROM_SPACE",
|
|
@@ -47,6 +48,21 @@ declare enum MailjetTemplate {
|
|
|
47
48
|
interface MailjetTemplateField {
|
|
48
49
|
[key: string]: string;
|
|
49
50
|
}
|
|
51
|
+
export type MailjetResponse = {
|
|
52
|
+
Messages: [
|
|
53
|
+
{
|
|
54
|
+
Status: string;
|
|
55
|
+
To: [
|
|
56
|
+
{
|
|
57
|
+
Email: string;
|
|
58
|
+
MessageUUID: string;
|
|
59
|
+
MessageID: string | number;
|
|
60
|
+
MessageHref: string;
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
};
|
|
50
66
|
export declare abstract class MailjetMailDTO {
|
|
51
67
|
recipients: string[];
|
|
52
68
|
template: MailjetTemplate;
|
|
@@ -54,7 +70,7 @@ export declare abstract class MailjetMailDTO {
|
|
|
54
70
|
constructor(recipients: string[], template: MailjetTemplate, fields: MailjetTemplateField);
|
|
55
71
|
}
|
|
56
72
|
export declare class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
|
|
57
|
-
constructor(recipients: string[], verifyLink: string, hcloudOriginalEmail: string);
|
|
73
|
+
constructor(recipients: string[], verifyLink: string, hcloudOriginalEmail: string, name: string, company: string);
|
|
58
74
|
}
|
|
59
75
|
export declare class IdpNewRegistrationMailjetMailToCustomerDTO extends MailjetMailDTO {
|
|
60
76
|
constructor(recipients: string[], username: string);
|
|
@@ -71,6 +87,9 @@ export declare class IdpRegisterAndInviteToOrganizationMailjetMailDto extends Ma
|
|
|
71
87
|
export declare class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
|
|
72
88
|
constructor(recipients: string[], userName: string, userEmail: string, organizationName: string);
|
|
73
89
|
}
|
|
90
|
+
export declare class IdpAccountApprovedMailjetMailDTO extends MailjetMailDTO {
|
|
91
|
+
constructor(recipients: string[], username: string, signInLink: string);
|
|
92
|
+
}
|
|
74
93
|
export declare class CosmoNewShareMailjetMailDTO extends MailjetMailDTO {
|
|
75
94
|
constructor(recipients: string[], shareLink: string);
|
|
76
95
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CosmoSharePasswordChangedMailjetMailDTO = exports.CosmoAssetStatusChangedMailjetMailDTO = exports.CosmoRepliedToCommentMailjetMailDTO = exports.CosmoCommentOrAnnotationAddedMailjetMailDTO = exports.CosmoUserRemovedFromSpaceMailjetMailDTO = exports.CosmoUserAddedToSpaceMailjetMailDTO = exports.CosmoNewShareMailjetMailDTO = exports.IdpUserLeftOrganizationMailjetMailDTO = exports.IdpRegisterAndInviteToOrganizationMailjetMailDto = exports.IdpInviteToOrganizationMailjetMailDto = exports.IdpResetPasswordMailjetMailDTO = exports.IdpNewRegistrationMailjetMailToCustomerDTO = exports.IdpNewRegistrationMailjetMailDTO = exports.MailjetMailDTO = exports.Template = void 0;
|
|
3
|
+
exports.CosmoSharePasswordChangedMailjetMailDTO = exports.CosmoAssetStatusChangedMailjetMailDTO = exports.CosmoRepliedToCommentMailjetMailDTO = exports.CosmoCommentOrAnnotationAddedMailjetMailDTO = exports.CosmoUserRemovedFromSpaceMailjetMailDTO = exports.CosmoUserAddedToSpaceMailjetMailDTO = exports.CosmoNewShareMailjetMailDTO = exports.IdpAccountApprovedMailjetMailDTO = exports.IdpUserLeftOrganizationMailjetMailDTO = exports.IdpRegisterAndInviteToOrganizationMailjetMailDto = exports.IdpInviteToOrganizationMailjetMailDto = exports.IdpResetPasswordMailjetMailDTO = exports.IdpNewRegistrationMailjetMailToCustomerDTO = exports.IdpNewRegistrationMailjetMailDTO = exports.MailjetMailDTO = exports.Template = void 0;
|
|
4
4
|
var Template;
|
|
5
5
|
(function (Template) {
|
|
6
6
|
Template["REGISTER"] = "register";
|
|
@@ -15,6 +15,7 @@ var MailjetTemplate;
|
|
|
15
15
|
MailjetTemplate["IDP_RESET_PASSWORD"] = "IDP_RESET_PASSWORD";
|
|
16
16
|
MailjetTemplate["IDP_REGISTRATION_AND_INVITATION"] = "IDP_REGISTRATION_AND_INVITATION";
|
|
17
17
|
MailjetTemplate["IDP_USER_LEFT_ORGANIZATION"] = "IDP_USER_LEFT_ORGANIZATION";
|
|
18
|
+
MailjetTemplate["IDP_ACCOUNT_APPROVED"] = "IDP_ACCOUNT_APPROVED";
|
|
18
19
|
MailjetTemplate["COSMO_NEW_SHARE"] = "COSMO_NEW_SHARE";
|
|
19
20
|
MailjetTemplate["COSMO_USER_ADDED_TO_SPACE"] = "COSMO_USER_ADDED_TO_SPACE";
|
|
20
21
|
MailjetTemplate["COSMO_USER_REMOVED_FROM_SPACE"] = "COSMO_USER_REMOVED_FROM_SPACE";
|
|
@@ -33,10 +34,12 @@ class MailjetMailDTO {
|
|
|
33
34
|
}
|
|
34
35
|
exports.MailjetMailDTO = MailjetMailDTO;
|
|
35
36
|
class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
|
|
36
|
-
constructor(recipients, verifyLink, hcloudOriginalEmail) {
|
|
37
|
+
constructor(recipients, verifyLink, hcloudOriginalEmail, name, company) {
|
|
37
38
|
super(recipients, MailjetTemplate.IDP_NEW_REGISTRATION, {
|
|
38
39
|
HCLOUD_VERIFY_LINK: verifyLink,
|
|
39
40
|
HCLOUD_ORIGINAL_EMAIL: hcloudOriginalEmail,
|
|
41
|
+
HCLOUD_NAME: name,
|
|
42
|
+
HCLOUD_COMPANY: company,
|
|
40
43
|
});
|
|
41
44
|
}
|
|
42
45
|
}
|
|
@@ -87,6 +90,15 @@ class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
|
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
exports.IdpUserLeftOrganizationMailjetMailDTO = IdpUserLeftOrganizationMailjetMailDTO;
|
|
93
|
+
class IdpAccountApprovedMailjetMailDTO extends MailjetMailDTO {
|
|
94
|
+
constructor(recipients, username, signInLink) {
|
|
95
|
+
super(recipients, MailjetTemplate.IDP_ACCOUNT_APPROVED, {
|
|
96
|
+
USERNAME: username,
|
|
97
|
+
HCLOUD_SIGN_IN_LINK: signInLink,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.IdpAccountApprovedMailjetMailDTO = IdpAccountApprovedMailjetMailDTO;
|
|
90
102
|
class CosmoNewShareMailjetMailDTO extends MailjetMailDTO {
|
|
91
103
|
constructor(recipients, shareLink) {
|
|
92
104
|
super(recipients, MailjetTemplate.COSMO_NEW_SHARE, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Msg } from "nats";
|
|
2
|
-
import {
|
|
2
|
+
import { Asset, UploadStatus } from "../cosmo/asset";
|
|
3
|
+
import { Products, Space } from "../global";
|
|
3
4
|
import { High5ExecuteOnAgentRequest, High5ExecutionCancelRequest } from "../high5/space/execution";
|
|
4
5
|
import { LicenseTier } from "../idp";
|
|
5
6
|
declare enum NatsSubject {
|
|
@@ -47,18 +48,17 @@ declare enum NatsSubject {
|
|
|
47
48
|
HIGH5_DOCUMENTS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.databases.${base64databaseName}.documents",
|
|
48
49
|
HIGH5_JOBS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.jobs",
|
|
49
50
|
HIGH5_JOB_LOGS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.jobs.${jobId}.logs",
|
|
50
|
-
FUSE_SPACES = "hcloud.fuse.organization.${base64orgName}.spaces",
|
|
51
|
-
FUSE_SPACE_PERMISSIONS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
|
|
52
|
-
FUSE_JOBS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs",
|
|
53
|
-
FUSE_JOB_LOGS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.${jobId}.logs",
|
|
54
51
|
COSMO_SPACES = "hcloud.cosmo.organization.${base64orgName}.spaces",
|
|
55
52
|
COSMO_NAMESPACES = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces",
|
|
56
53
|
COSMO_ASSETS = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.assets",
|
|
54
|
+
COSMO_CROSS_SPACES_ASSETS = "hcloud.cosmo.organization.${base64orgName}.spaces.*.assets",
|
|
57
55
|
COSMO_COMMENTS = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.assets.${assetId}.comments",
|
|
58
56
|
COSMO_SHARE = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.share",
|
|
59
|
-
|
|
57
|
+
COSMO_TAGS_NAMESPACE = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.tags",
|
|
58
|
+
COSMO_TAGS_ASSET = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.assets.${assetId}.tags",
|
|
60
59
|
COSMO_ROLES = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.roles",
|
|
61
|
-
COSMO_STATUS = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.status",
|
|
60
|
+
COSMO_STATUS = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.assets.${assetId}.status",
|
|
61
|
+
COSMO_METADATA = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.metadata",
|
|
62
62
|
MOTHERSHIP_AGENT_CONNECTION = "hcloud.mothership.organization.${base64orgName}.agent.connection",
|
|
63
63
|
AUDITOR_LOGS = "hcloud.auditor.organization.${base64orgName}.logs",
|
|
64
64
|
DEBUG_NAMESPACE = "hcloud.debug.namespace.${product}"
|
|
@@ -100,9 +100,6 @@ declare enum NatsObjectType {
|
|
|
100
100
|
JOB = "JOB",
|
|
101
101
|
JOB_ID = "JOB_ID",
|
|
102
102
|
JOB_LOG = "JOB_LOG",
|
|
103
|
-
CRONJOB = "CRONJOB",
|
|
104
|
-
CRONJOB_ID = "CRONJOB_ID",
|
|
105
|
-
CRONJOB_LOG = "CRONJOB_LOG",
|
|
106
103
|
DATABASE = "DATABASE",
|
|
107
104
|
DOCUMENT = "DOCUMENT",
|
|
108
105
|
AGENT = "AGENT",
|
|
@@ -115,7 +112,8 @@ declare enum NatsObjectType {
|
|
|
115
112
|
LOCATION = "LOCATION",
|
|
116
113
|
FOLDER = "FOLDER",
|
|
117
114
|
ROLE = "ROLE",
|
|
118
|
-
STATUS = "STATUS"
|
|
115
|
+
STATUS = "STATUS",
|
|
116
|
+
REFERENCE = "REFERENCE"
|
|
119
117
|
}
|
|
120
118
|
interface NatsMessage {
|
|
121
119
|
type: NatsMessageType;
|
|
@@ -157,14 +155,11 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
|
|
|
157
155
|
[NatsSubject.HIGH5_DOCUMENTS]: NatsNameObject;
|
|
158
156
|
[NatsSubject.HIGH5_JOBS]: NatsIdObject;
|
|
159
157
|
[NatsSubject.HIGH5_JOB_LOGS]: NatsIdObject;
|
|
160
|
-
[NatsSubject.FUSE_SPACES]: NatsNameObject;
|
|
161
|
-
[NatsSubject.FUSE_SPACE_PERMISSIONS]: NatsIdObject;
|
|
162
|
-
[NatsSubject.FUSE_JOBS]: NatsIdObject;
|
|
163
|
-
[NatsSubject.FUSE_JOB_LOGS]: NatsIdObject;
|
|
164
158
|
[NatsSubject.COSMO_ASSETS]: NatsAssetObject[];
|
|
165
159
|
[NatsSubject.COSMO_SHARE]: NatsIdObject;
|
|
166
160
|
[NatsSubject.COSMO_ROLES]: NatsIdObject;
|
|
167
161
|
[NatsSubject.COSMO_STATUS]: NatsCosmoStatusObject;
|
|
162
|
+
[NatsSubject.COSMO_METADATA]: NatsCosmoReferenceObject;
|
|
168
163
|
[NatsSubject.MOTHERSHIP_AGENT_CONNECTION]: NatsTargetObject;
|
|
169
164
|
[NatsSubject.AUDITOR_LOGS]: NatsIdObject;
|
|
170
165
|
[NatsSubject.DEBUG_NAMESPACE]: string;
|
|
@@ -181,7 +176,15 @@ interface NatsIdNoUnderscoreObject {
|
|
|
181
176
|
}
|
|
182
177
|
interface NatsAssetObject {
|
|
183
178
|
_id: string;
|
|
184
|
-
|
|
179
|
+
parent?: {
|
|
180
|
+
_id: string;
|
|
181
|
+
name: string;
|
|
182
|
+
type: "ASSET" | "SPACE" | "PRODUCTION" | "PROJECT" | "FOLDER";
|
|
183
|
+
};
|
|
184
|
+
type?: "ASSET" | "SPACE" | "PRODUCTION" | "PROJECT" | "FOLDER";
|
|
185
|
+
progress?: number;
|
|
186
|
+
uploadStatus?: UploadStatus;
|
|
187
|
+
breadcrumb?: (Asset | Space)[] | undefined;
|
|
185
188
|
}
|
|
186
189
|
interface NatsMemberObject {
|
|
187
190
|
userId: string;
|
|
@@ -205,8 +208,10 @@ interface NatsPoolObject extends NatsIdObject {
|
|
|
205
208
|
interface NatsTargetObject {
|
|
206
209
|
target: string;
|
|
207
210
|
}
|
|
208
|
-
interface
|
|
211
|
+
interface NatsCosmoReferenceObject {
|
|
209
212
|
refId: string;
|
|
213
|
+
}
|
|
214
|
+
interface NatsCosmoStatusObject extends NatsCosmoReferenceObject {
|
|
210
215
|
status: "approved" | "rejected" | "none";
|
|
211
216
|
}
|
|
212
217
|
type NatsCallback = (err: Error | null, msg?: NatsMessage, rawMsg?: Msg) => void;
|
|
@@ -255,19 +260,6 @@ declare class NatsSubjects {
|
|
|
255
260
|
ServiceAccounts: (organizationName: string) => string;
|
|
256
261
|
};
|
|
257
262
|
};
|
|
258
|
-
static Fuse: {
|
|
259
|
-
new (): {};
|
|
260
|
-
SPACES: (organizationName: string) => string;
|
|
261
|
-
Space: {
|
|
262
|
-
new (): {};
|
|
263
|
-
PERMISSIONS: (organizationName: string, spaceName: string) => string;
|
|
264
|
-
Jobs: {
|
|
265
|
-
new (): {};
|
|
266
|
-
JOBS: (organizationName: string, spaceName: string) => string;
|
|
267
|
-
JOB_LOGS: (organizationName: string, spaceName: string, jobId: string) => string;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
263
|
static High5: {
|
|
272
264
|
new (): {};
|
|
273
265
|
Execution: {
|
|
@@ -342,14 +334,20 @@ declare class NatsSubjects {
|
|
|
342
334
|
NAMESPACES: (organizationName: string, spaceName: string) => string;
|
|
343
335
|
Namespace: {
|
|
344
336
|
new (): {};
|
|
345
|
-
COMMENTS: (organizationName: string, spaceName: string, namespaceName: string, assetId: string) => string;
|
|
346
337
|
TAGS: (organizationName: string, spaceName: string, namespaceName: string) => string;
|
|
347
|
-
|
|
338
|
+
METADATA: (organizationName: string, spaceName: string, namespaceName: string) => string;
|
|
348
339
|
};
|
|
349
340
|
ASSETS: (organizationName: string, spaceName: string) => string;
|
|
350
341
|
SHARES: (organizationName: string, spaceName: string) => string;
|
|
351
342
|
ROLES: (organizationName: string, spaceName: string) => string;
|
|
343
|
+
Asset: {
|
|
344
|
+
new (): {};
|
|
345
|
+
COMMENTS: (organizationName: string, spaceName: string, namespaceName: string, assetId: string) => string;
|
|
346
|
+
TAGS: (organizationName: string, spaceName: string, namespaceName: string, assetId: string) => string;
|
|
347
|
+
STATUS: (organizationName: string, spaceName: string, namespaceName: string, assetId: string) => string;
|
|
348
|
+
};
|
|
352
349
|
};
|
|
350
|
+
ASSETS: (organizationName: string) => string;
|
|
353
351
|
};
|
|
354
352
|
private static replace;
|
|
355
353
|
}
|