hcloud-sdk 16.0.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +178 -51
- package/lib/Base.d.ts +2 -1
- package/lib/Hcloud.d.ts +6 -0
- package/lib/Hcloud.js +18 -0
- package/lib/helper/ValidationHelper.d.ts +74 -0
- package/lib/helper/ValidationHelper.js +360 -0
- package/lib/interfaces/auditor/index.d.ts +17 -2
- package/lib/interfaces/auditor/index.js +12 -0
- package/lib/interfaces/cosmo/asset/index.d.ts +185 -0
- package/lib/interfaces/cosmo/asset/index.js +82 -0
- package/lib/interfaces/cosmo/comment/index.d.ts +38 -0
- package/lib/interfaces/cosmo/comment/index.js +8 -0
- package/lib/interfaces/cosmo/event/index.d.ts +31 -0
- package/lib/interfaces/cosmo/event/index.js +17 -0
- package/lib/interfaces/cosmo/location/index.d.ts +4 -0
- package/lib/interfaces/cosmo/location/index.js +2 -0
- package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
- package/lib/interfaces/cosmo/namespace/index.js +9 -0
- package/lib/interfaces/cosmo/permissions.d.ts +96 -0
- package/lib/interfaces/cosmo/permissions.js +58 -0
- package/lib/interfaces/cosmo/share/index.d.ts +28 -0
- package/lib/interfaces/cosmo/share/index.js +2 -0
- package/lib/interfaces/cosmo/space/index.d.ts +25 -0
- package/lib/interfaces/cosmo/space/index.js +2 -0
- package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
- package/lib/interfaces/cosmo/tag/tag.js +2 -0
- package/lib/interfaces/frontend/config/index.d.ts +1 -0
- package/lib/interfaces/fuse/space/index.d.ts +1 -0
- package/lib/interfaces/global/Products.d.ts +3 -1
- package/lib/interfaces/global/Products.js +2 -0
- package/lib/interfaces/global/Views.d.ts +2 -1
- package/lib/interfaces/global/Views.js +1 -0
- package/lib/interfaces/high5/execution/index.d.ts +23 -2
- package/lib/interfaces/high5/execution/index.js +2 -0
- package/lib/interfaces/high5/index.d.ts +7 -7
- package/lib/interfaces/high5/index.js +7 -7
- package/lib/interfaces/high5/space/database/document/index.d.ts +34 -0
- package/lib/interfaces/high5/space/database/document/index.js +14 -0
- package/lib/interfaces/high5/space/database/index.d.ts +12 -0
- package/lib/interfaces/high5/space/database/index.js +2 -0
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +10 -2
- package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +56 -2
- package/lib/interfaces/high5/space/execution/index.js +8 -0
- package/lib/interfaces/high5/space/index.d.ts +2 -0
- package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
- package/lib/interfaces/high5/space/job/JobLog.js +2 -0
- package/lib/interfaces/high5/space/job/index.d.ts +38 -0
- package/lib/interfaces/high5/space/job/index.js +8 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +5 -7
- package/lib/interfaces/high5/space/pool/index.js +0 -7
- package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
- package/lib/interfaces/high5/stats.d.ts +21 -0
- package/lib/interfaces/high5/stats.js +2 -0
- package/lib/interfaces/high5/wave/index.d.ts +8 -3
- package/lib/interfaces/idp/index.d.ts +1 -0
- package/lib/interfaces/idp/index.js +1 -0
- package/lib/interfaces/idp/oauth/index.d.ts +4 -3
- package/lib/interfaces/idp/organization/index.d.ts +1 -0
- package/lib/interfaces/idp/organization/index.js +1 -0
- package/lib/interfaces/idp/organization/license/index.d.ts +13 -0
- package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
- package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
- package/lib/interfaces/idp/organization/service-accounts.js +2 -0
- package/lib/interfaces/idp/organization/stats.d.ts +7 -0
- package/lib/interfaces/idp/organization/stats.js +2 -0
- package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
- package/lib/interfaces/idp/user/Message.d.ts +21 -0
- package/lib/interfaces/idp/user/Message.js +14 -0
- package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +8 -2
- package/lib/interfaces/idp/user/Scopes.js +9 -0
- package/lib/interfaces/idp/user/index.d.ts +2 -1
- package/lib/interfaces/mailer/index.d.ts +30 -1
- package/lib/interfaces/mailer/index.js +87 -1
- package/lib/interfaces/mothership/index.d.ts +3 -1
- package/lib/interfaces/mothership/index.js +15 -0
- package/lib/interfaces/mothership/stats.d.ts +4 -0
- package/lib/interfaces/mothership/stats.js +2 -0
- package/lib/interfaces/nats/index.d.ts +98 -9
- package/lib/interfaces/nats/index.js +136 -19
- package/lib/interfaces/shorts/index.d.ts +10 -0
- package/lib/interfaces/shorts/index.js +2 -0
- package/lib/service/agent/bundle/dev/index.d.ts +16 -6
- package/lib/service/agent/bundle/dev/index.js +12 -10
- package/lib/service/agent/bundle/index.d.ts +10 -4
- package/lib/service/agent/bundle/index.js +6 -6
- package/lib/service/agent/context/index.d.ts +26 -7
- package/lib/service/agent/context/index.js +27 -12
- package/lib/service/auditor/index.d.ts +8 -4
- package/lib/service/auditor/index.js +5 -5
- package/lib/service/auditor/internal/index.d.ts +27 -3
- package/lib/service/auditor/internal/index.js +34 -5
- package/lib/service/bouncer/features/index.d.ts +4 -2
- package/lib/service/bouncer/features/index.js +2 -2
- package/lib/service/cosmo/asset/index.d.ts +219 -0
- package/lib/service/cosmo/asset/index.js +314 -0
- package/lib/service/cosmo/comment/index.d.ts +122 -0
- package/lib/service/cosmo/comment/index.js +161 -0
- package/lib/service/cosmo/event/index.d.ts +23 -0
- package/lib/service/cosmo/event/index.js +40 -0
- package/lib/service/cosmo/folder/index.d.ts +27 -0
- package/lib/service/cosmo/folder/index.js +47 -0
- package/lib/service/cosmo/index.d.ts +49 -0
- package/lib/service/cosmo/index.js +119 -0
- package/lib/service/cosmo/internal/index.d.ts +7 -0
- package/lib/service/cosmo/internal/index.js +17 -0
- package/lib/service/cosmo/internal/space/index.d.ts +15 -0
- package/lib/service/cosmo/internal/space/index.js +34 -0
- package/lib/service/cosmo/location/index.d.ts +40 -0
- package/lib/service/cosmo/location/index.js +63 -0
- package/lib/service/cosmo/namespace/index.d.ts +42 -0
- package/lib/service/cosmo/namespace/index.js +65 -0
- package/lib/service/cosmo/organization/index.d.ts +47 -0
- package/lib/service/cosmo/organization/index.js +64 -0
- package/lib/service/cosmo/permissions/index.d.ts +131 -0
- package/lib/service/cosmo/permissions/index.js +181 -0
- package/lib/service/cosmo/production/index.d.ts +26 -0
- package/lib/service/cosmo/production/index.js +45 -0
- package/lib/service/cosmo/share/index.d.ts +161 -0
- package/lib/service/cosmo/share/index.js +215 -0
- package/lib/service/cosmo/space/index.d.ts +104 -0
- package/lib/service/cosmo/space/index.js +146 -0
- package/lib/service/cosmo/tag/index.d.ts +67 -0
- package/lib/service/cosmo/tag/index.js +93 -0
- package/lib/service/dali/DaliAvatar.d.ts +12 -0
- package/lib/service/dali/DaliAvatar.js +20 -0
- package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +32 -0
- package/lib/service/dali/avatar/DaliCosmoSpace.js +59 -0
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
- package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
- package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
- package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
- package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
- package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
- package/lib/service/dali/avatar/DaliOrganization.js +7 -6
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +32 -0
- package/lib/service/dali/avatar/DaliServiceAccount.js +59 -0
- package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
- package/lib/service/dali/avatar/DaliTeam.js +7 -6
- package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
- package/lib/service/dali/avatar/DaliUser.js +7 -6
- package/lib/service/dali/index.d.ts +4 -5
- package/lib/service/dali/index.js +2 -5
- package/lib/service/fuse/index.d.ts +4 -2
- package/lib/service/fuse/index.js +2 -2
- package/lib/service/fuse/internal/index.d.ts +4 -2
- package/lib/service/fuse/internal/index.js +3 -2
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
- package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
- package/lib/service/fuse/internal/space/index.d.ts +7 -3
- package/lib/service/fuse/internal/space/index.js +6 -4
- package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
- package/lib/service/fuse/space/cronjob/index.js +48 -50
- package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
- package/lib/service/fuse/space/cronjob/log/index.js +5 -5
- package/lib/service/fuse/space/index.d.ts +27 -11
- package/lib/service/fuse/space/index.js +19 -18
- package/lib/service/high5/execution/index.d.ts +4 -2
- package/lib/service/high5/execution/index.js +3 -2
- package/lib/service/high5/execution/status/index.d.ts +5 -3
- package/lib/service/high5/execution/status/index.js +3 -3
- package/lib/service/high5/index.d.ts +7 -2
- package/lib/service/high5/index.js +9 -2
- package/lib/service/high5/internal/index.d.ts +4 -2
- package/lib/service/high5/internal/index.js +3 -2
- package/lib/service/high5/internal/space/index.d.ts +10 -3
- package/lib/service/high5/internal/space/index.js +13 -4
- package/lib/service/high5/internal/space/job/index.d.ts +7 -0
- package/lib/service/high5/internal/space/job/index.js +17 -0
- package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
- package/lib/service/high5/internal/space/job/log/index.js +34 -0
- package/lib/service/high5/joinToken/index.d.ts +14 -6
- package/lib/service/high5/joinToken/index.js +10 -9
- package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
- package/lib/service/high5/space/database/document/array/index.js +102 -0
- package/lib/service/high5/space/database/document/index.d.ts +74 -0
- package/lib/service/high5/space/database/document/index.js +112 -0
- package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
- package/lib/service/high5/space/database/document/number/index.js +77 -0
- package/lib/service/high5/space/database/index.d.ts +65 -0
- package/lib/service/high5/space/database/index.js +102 -0
- package/lib/service/high5/space/event/index.d.ts +17 -7
- package/lib/service/high5/space/event/index.js +12 -11
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -3
- package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
- package/lib/service/high5/space/event/stream/design/index.js +7 -6
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
- package/lib/service/high5/space/event/stream/index.d.ts +32 -12
- package/lib/service/high5/space/event/stream/index.js +22 -21
- package/lib/service/high5/space/execution/index.d.ts +22 -7
- package/lib/service/high5/space/execution/index.js +23 -12
- package/lib/service/high5/space/execution/log/index.d.ts +8 -4
- package/lib/service/high5/space/execution/log/index.js +5 -5
- package/lib/service/high5/space/execution/status/index.d.ts +18 -7
- package/lib/service/high5/space/execution/status/index.js +20 -8
- package/lib/service/high5/space/index.d.ts +56 -18
- package/lib/service/high5/space/index.js +65 -27
- package/lib/service/high5/space/job/index.d.ts +145 -0
- package/lib/service/high5/space/job/index.js +201 -0
- package/lib/service/high5/space/job/log/index.d.ts +35 -0
- package/lib/service/high5/space/job/log/index.js +58 -0
- package/lib/service/high5/space/node/index.d.ts +20 -8
- package/lib/service/high5/space/node/index.js +14 -13
- package/lib/service/high5/space/pool/index.d.ts +27 -11
- package/lib/service/high5/space/pool/index.js +19 -18
- package/lib/service/high5/space/secret/index.d.ts +17 -7
- package/lib/service/high5/space/secret/index.js +12 -11
- package/lib/service/high5/space/stat/index.d.ts +12 -0
- package/lib/service/high5/space/stat/index.js +31 -0
- package/lib/service/high5/space/wave/index.d.ts +16 -6
- package/lib/service/high5/space/wave/index.js +11 -10
- package/lib/service/high5/space/webhook/index.d.ts +32 -12
- package/lib/service/high5/space/webhook/index.js +25 -21
- package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
- package/lib/service/high5/space/webhook/log/index.js +2 -2
- package/lib/service/high5/stat/index.d.ts +11 -0
- package/lib/service/high5/stat/index.js +30 -0
- package/lib/service/high5/wave/s3/index.d.ts +31 -8
- package/lib/service/high5/wave/s3/index.js +52 -24
- package/lib/service/idp/guest/index.d.ts +42 -0
- package/lib/service/idp/guest/index.js +66 -0
- package/lib/service/idp/index.d.ts +25 -7
- package/lib/service/idp/index.js +23 -12
- package/lib/service/idp/internal/index.d.ts +5 -3
- package/lib/service/idp/internal/index.js +5 -3
- package/lib/service/idp/oauth/index.d.ts +16 -6
- package/lib/service/idp/oauth/index.js +15 -15
- package/lib/service/idp/organization/index.d.ts +25 -5
- package/lib/service/idp/organization/index.js +29 -8
- package/lib/service/idp/organization/license/index.d.ts +7 -3
- package/lib/service/idp/organization/license/index.js +4 -4
- package/lib/service/idp/organization/member/index.d.ts +21 -8
- package/lib/service/idp/organization/member/index.js +16 -13
- package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
- package/lib/service/idp/organization/member/invitations/index.js +72 -59
- package/lib/service/idp/organization/service-accounts/index.d.ts +76 -0
- package/lib/service/idp/organization/service-accounts/index.js +109 -0
- package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
- package/lib/service/idp/organization/settings/domain/index.js +9 -8
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
- package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
- package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
- package/lib/service/idp/organization/settings/oauth/index.js +16 -15
- package/lib/service/idp/organization/stat/index.d.ts +11 -0
- package/lib/service/idp/organization/stat/index.js +30 -0
- package/lib/service/idp/organization/team/index.d.ts +22 -10
- package/lib/service/idp/organization/team/index.js +14 -13
- package/lib/service/idp/registration/index.d.ts +10 -4
- package/lib/service/idp/registration/index.js +15 -9
- package/lib/service/idp/user/index.d.ts +33 -11
- package/lib/service/idp/user/index.js +30 -16
- package/lib/service/idp/user/license/index.d.ts +7 -3
- package/lib/service/idp/user/license/index.js +4 -4
- package/lib/service/idp/user/message/index.d.ts +61 -0
- package/lib/service/idp/user/message/index.js +92 -0
- package/lib/service/idp/user/password/index.d.ts +4 -2
- package/lib/service/idp/user/password/index.js +3 -3
- package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
- package/lib/service/idp/user/settings/connections/index.js +2 -2
- package/lib/service/idp/user/settings/general/index.d.ts +10 -4
- package/lib/service/idp/user/settings/general/index.js +6 -6
- package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
- package/lib/service/idp/user/settings/notifications/index.js +4 -4
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
- package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
- package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
- package/lib/service/idp/user/settings/pats/index.js +17 -15
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
- package/lib/service/mailer/index.d.ts +4 -2
- package/lib/service/mailer/index.js +2 -2
- package/lib/service/mailer/internal/index.d.ts +13 -5
- package/lib/service/mailer/internal/index.js +8 -8
- package/lib/service/mothership/index.d.ts +35 -13
- package/lib/service/mothership/index.js +32 -18
- package/lib/service/nats/index.js +58 -44
- package/lib/service/shorts/index.d.ts +18 -0
- package/lib/service/shorts/index.js +38 -0
- package/lib/service/shorts/internal/index.d.ts +72 -0
- package/lib/service/shorts/internal/index.js +104 -0
- package/lib/utils/bouncer/features/Provider.js +0 -3
- package/package.json +22 -24
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeCategory = void 0;
|
|
3
|
+
exports.NodeType = exports.NodeCategory = void 0;
|
|
4
4
|
var NodeCategory;
|
|
5
5
|
(function (NodeCategory) {
|
|
6
6
|
NodeCategory["CUSTOM"] = "CUSTOM";
|
|
7
7
|
})(NodeCategory || (exports.NodeCategory = NodeCategory = {}));
|
|
8
|
+
var NodeType;
|
|
9
|
+
(function (NodeType) {
|
|
10
|
+
NodeType["CUSTOM"] = "CUSTOM";
|
|
11
|
+
NodeType["CATALOG"] = "CATALOG";
|
|
12
|
+
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
@@ -4,7 +4,7 @@ import { ReducedOrganization, ReducedUser } from "../../../idp";
|
|
|
4
4
|
import { WaveCatalog, WaveEngine } from "../../wave";
|
|
5
5
|
import { ReducedEvent } from "../event";
|
|
6
6
|
import { DesignBuild } from "../event/stream";
|
|
7
|
-
import { StreamNodeAdditionalConnector, StreamNodeOutput, StreamNodeResolvedInputs, StreamSingleNodeResult } from "../event/stream/node";
|
|
7
|
+
import { NodeType, StreamNodeAdditionalConnector, StreamNodeOutput, StreamNodeResolvedInputs, StreamSingleNodeResult } from "../event/stream/node";
|
|
8
8
|
export declare enum High5ExecutionPayloadType {
|
|
9
9
|
JSON = "JSON",
|
|
10
10
|
GENERIC = "GENERIC"
|
|
@@ -17,6 +17,7 @@ export interface High5ExecutionRequest {
|
|
|
17
17
|
payload: High5ExecutionPayload;
|
|
18
18
|
target: string;
|
|
19
19
|
dry?: boolean;
|
|
20
|
+
parentExecutionSecret?: string;
|
|
20
21
|
}
|
|
21
22
|
export interface High5ExecuteAgentResponse {
|
|
22
23
|
failed: boolean;
|
|
@@ -25,6 +26,7 @@ export interface High5ExecuteAgentResponse {
|
|
|
25
26
|
export declare enum High5ExecutionState {
|
|
26
27
|
QUEUED = "QUEUED",
|
|
27
28
|
RUNNING = "RUNNING",
|
|
29
|
+
WAITING = "WAITING",
|
|
28
30
|
COMPLETED = "COMPLETED"
|
|
29
31
|
}
|
|
30
32
|
export declare enum High5ExecutionOutcome {
|
|
@@ -54,20 +56,35 @@ export interface High5ExecutionPackage {
|
|
|
54
56
|
dry: boolean;
|
|
55
57
|
info: StreamInfo;
|
|
56
58
|
debug: boolean;
|
|
59
|
+
executionId: string;
|
|
57
60
|
}
|
|
58
61
|
type StreamInfo = {
|
|
59
62
|
target: string;
|
|
60
63
|
webhook?: WebhookInfo;
|
|
64
|
+
triggerDetails?: TriggerDetails;
|
|
61
65
|
};
|
|
62
66
|
type WebhookInfo = {
|
|
63
67
|
callbackUrl: string;
|
|
64
68
|
};
|
|
69
|
+
type TriggerDetails = {
|
|
70
|
+
source: TriggerSource;
|
|
71
|
+
ip: string;
|
|
72
|
+
country: string;
|
|
73
|
+
};
|
|
74
|
+
declare enum TriggerSource {
|
|
75
|
+
webhook = "webhook",
|
|
76
|
+
api = "api",
|
|
77
|
+
sdk = "sdk",
|
|
78
|
+
stream = "stream"
|
|
79
|
+
}
|
|
65
80
|
export interface ExtendedHigh5ExecutionPackage extends High5ExecutionPackage {
|
|
66
81
|
hcl: HCloud;
|
|
67
82
|
orgName: string;
|
|
68
83
|
spaceName: string;
|
|
69
84
|
streamId: string;
|
|
70
85
|
secret: string;
|
|
86
|
+
targetEmail: string;
|
|
87
|
+
poolName?: string;
|
|
71
88
|
}
|
|
72
89
|
export interface High5ExecutionPatchLog {
|
|
73
90
|
streamId: string;
|
|
@@ -80,6 +97,14 @@ export interface StreamRunningNodePatch {
|
|
|
80
97
|
progress: number;
|
|
81
98
|
message: string;
|
|
82
99
|
}
|
|
100
|
+
interface ReducedAgentInfo {
|
|
101
|
+
bundleVersion?: string;
|
|
102
|
+
osRelease?: string;
|
|
103
|
+
osVersion?: string;
|
|
104
|
+
cpu?: string;
|
|
105
|
+
cpuArchitecture?: string;
|
|
106
|
+
ip?: string;
|
|
107
|
+
}
|
|
83
108
|
export interface High5ExecutionPatchStatus {
|
|
84
109
|
streamId: string;
|
|
85
110
|
state?: High5ExecutionState;
|
|
@@ -88,6 +113,7 @@ export interface High5ExecutionPatchStatus {
|
|
|
88
113
|
message?: string;
|
|
89
114
|
startDate: number;
|
|
90
115
|
endDate?: number;
|
|
116
|
+
agentInfo?: ReducedAgentInfo;
|
|
91
117
|
}
|
|
92
118
|
export interface High5ExecutionPatch {
|
|
93
119
|
high5ExecutionPatchStatus: High5ExecutionPatchStatus;
|
|
@@ -106,11 +132,16 @@ export interface High5ExecutionStatus {
|
|
|
106
132
|
outcome: High5ExecutionOutcome;
|
|
107
133
|
message: string;
|
|
108
134
|
runningNodes: StreamRunningNode[];
|
|
109
|
-
target:
|
|
135
|
+
target: ReducedUser;
|
|
136
|
+
triggerSource?: TriggerSource;
|
|
110
137
|
dry: boolean;
|
|
111
138
|
createDate: number;
|
|
112
139
|
startDate: number;
|
|
113
140
|
endDate: number;
|
|
141
|
+
debug?: boolean;
|
|
142
|
+
agentInfo?: ReducedAgentInfo;
|
|
143
|
+
waveEngineVersion?: string;
|
|
144
|
+
isPoolExecution?: boolean;
|
|
114
145
|
}
|
|
115
146
|
export interface High5ExecutionLog {
|
|
116
147
|
_id: string;
|
|
@@ -118,6 +149,7 @@ export interface High5ExecutionLog {
|
|
|
118
149
|
payload?: High5ExecutionPayload;
|
|
119
150
|
high5ExecutionId: string;
|
|
120
151
|
nodeResults: StreamSingleNodeResult[];
|
|
152
|
+
target: ReducedUser;
|
|
121
153
|
createDate: number;
|
|
122
154
|
}
|
|
123
155
|
export interface High5ExecutionResponse {
|
|
@@ -137,6 +169,8 @@ export interface StreamNode {
|
|
|
137
169
|
outputs?: StreamNodeOutput[];
|
|
138
170
|
additionalConnectors?: StreamNodeAdditionalConnector[];
|
|
139
171
|
breakpoint?: boolean;
|
|
172
|
+
color?: string;
|
|
173
|
+
nodeType?: NodeType;
|
|
140
174
|
}
|
|
141
175
|
export interface High5ExecuteOnAgentRequest {
|
|
142
176
|
organizationName: string;
|
|
@@ -148,4 +182,24 @@ export interface High5ExecuteOnAgentRequest {
|
|
|
148
182
|
export interface High5ExecutionCancelRequest {
|
|
149
183
|
secret: string;
|
|
150
184
|
}
|
|
185
|
+
export interface ExecutionTreeNode {
|
|
186
|
+
executionStatusId: string;
|
|
187
|
+
orgName: string;
|
|
188
|
+
spaceName: string;
|
|
189
|
+
eventName: string;
|
|
190
|
+
streamName: string;
|
|
191
|
+
streamId: string;
|
|
192
|
+
state: High5ExecutionState;
|
|
193
|
+
outcome: High5ExecutionOutcome;
|
|
194
|
+
message?: string;
|
|
195
|
+
runningNodes: StreamRunningNode[];
|
|
196
|
+
target: string;
|
|
197
|
+
triggerSource: TriggerSource;
|
|
198
|
+
startDate: number;
|
|
199
|
+
endDate: number;
|
|
200
|
+
children: ExecutionTreeNode[];
|
|
201
|
+
}
|
|
202
|
+
export interface ExecutionTree {
|
|
203
|
+
root: ExecutionTreeNode;
|
|
204
|
+
}
|
|
151
205
|
export {};
|
|
@@ -10,6 +10,7 @@ var High5ExecutionState;
|
|
|
10
10
|
(function (High5ExecutionState) {
|
|
11
11
|
High5ExecutionState["QUEUED"] = "QUEUED";
|
|
12
12
|
High5ExecutionState["RUNNING"] = "RUNNING";
|
|
13
|
+
High5ExecutionState["WAITING"] = "WAITING";
|
|
13
14
|
High5ExecutionState["COMPLETED"] = "COMPLETED";
|
|
14
15
|
})(High5ExecutionState || (exports.High5ExecutionState = High5ExecutionState = {}));
|
|
15
16
|
var High5ExecutionOutcome;
|
|
@@ -19,3 +20,10 @@ var High5ExecutionOutcome;
|
|
|
19
20
|
High5ExecutionOutcome["FAILED"] = "FAILED";
|
|
20
21
|
High5ExecutionOutcome["CANCELED"] = "CANCELED";
|
|
21
22
|
})(High5ExecutionOutcome || (exports.High5ExecutionOutcome = High5ExecutionOutcome = {}));
|
|
23
|
+
var TriggerSource;
|
|
24
|
+
(function (TriggerSource) {
|
|
25
|
+
TriggerSource["webhook"] = "webhook";
|
|
26
|
+
TriggerSource["api"] = "api";
|
|
27
|
+
TriggerSource["sdk"] = "sdk";
|
|
28
|
+
TriggerSource["stream"] = "stream";
|
|
29
|
+
})(TriggerSource || (TriggerSource = {}));
|
|
@@ -3,6 +3,7 @@ import { ReducedOrganization } from "../../idp";
|
|
|
3
3
|
export interface High5Space extends Space {
|
|
4
4
|
highestPermissionOfUser: High5SpacePermission;
|
|
5
5
|
waveEngine: string;
|
|
6
|
+
enableDev?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface High5SpaceEntityPermission {
|
|
8
9
|
organization: ReducedOrganization;
|
|
@@ -12,6 +13,7 @@ export interface High5SpaceEntityPermission {
|
|
|
12
13
|
type: SpaceEntity;
|
|
13
14
|
permission: High5SpacePermission;
|
|
14
15
|
avatarUrl: string;
|
|
16
|
+
serviceAccount?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export declare enum High5SpacePermission {
|
|
17
19
|
NONE = "NONE",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Header, ReducedSpace } from "../../../global";
|
|
2
|
+
import { ReducedOrganization } from "../../../idp/organization";
|
|
3
|
+
import { ReducedUser } from "../../../idp/user";
|
|
4
|
+
export interface JobLogDto {
|
|
5
|
+
_id: string;
|
|
6
|
+
jobId: string;
|
|
7
|
+
statusCode: number;
|
|
8
|
+
organization: ReducedOrganization;
|
|
9
|
+
creator: ReducedUser;
|
|
10
|
+
space: ReducedSpace;
|
|
11
|
+
headers?: Header[];
|
|
12
|
+
body?: string;
|
|
13
|
+
createDate: number;
|
|
14
|
+
modifyDate: number;
|
|
15
|
+
}
|
|
16
|
+
export type JobLogCreate = Pick<JobLogDto, "statusCode" | "headers" | "body">;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Select } from "../../../../utils/Types";
|
|
2
|
+
import { Header, HttpMethod, ReducedSpace } from "../../../global";
|
|
3
|
+
import { ReducedOrganization } from "../../../idp/organization";
|
|
4
|
+
import { ReducedUser } from "../../../idp/user";
|
|
5
|
+
export interface Job {
|
|
6
|
+
_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
expression: string;
|
|
9
|
+
organization: ReducedOrganization;
|
|
10
|
+
creator: ReducedUser;
|
|
11
|
+
space: ReducedSpace;
|
|
12
|
+
targetUrl: string;
|
|
13
|
+
httpMethod: HttpMethod;
|
|
14
|
+
acceptInvalidSSL: boolean;
|
|
15
|
+
timezone: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
headers?: Header[];
|
|
18
|
+
body?: string;
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
createDate: number;
|
|
21
|
+
modifyDate: number;
|
|
22
|
+
nextExecution?: number[];
|
|
23
|
+
lastStatus?: number;
|
|
24
|
+
lastTriggered?: number;
|
|
25
|
+
hmacSettings?: HmacSettings;
|
|
26
|
+
}
|
|
27
|
+
export type HmacSettings = {
|
|
28
|
+
headerName: string;
|
|
29
|
+
secret: string;
|
|
30
|
+
algorithm: HmacHashingAlgo;
|
|
31
|
+
};
|
|
32
|
+
export declare enum HmacHashingAlgo {
|
|
33
|
+
SHA_1 = "SHA-1",
|
|
34
|
+
SHA_256 = "SHA-256"
|
|
35
|
+
}
|
|
36
|
+
export type JobCreate = Pick<Job, "name" | "expression" | "targetUrl" | "httpMethod" | "headers" | "body" | "enabled" | "description" | "lastStatus" | "lastTriggered"> & Partial<Pick<Job, "acceptInvalidSSL" | "timezone">> & {
|
|
37
|
+
hmacSettings: Select<HmacSettings, "headerName" | "algorithm", "secret">;
|
|
38
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HmacHashingAlgo = void 0;
|
|
4
|
+
var HmacHashingAlgo;
|
|
5
|
+
(function (HmacHashingAlgo) {
|
|
6
|
+
HmacHashingAlgo["SHA_1"] = "SHA-1";
|
|
7
|
+
HmacHashingAlgo["SHA_256"] = "SHA-256";
|
|
8
|
+
})(HmacHashingAlgo || (exports.HmacHashingAlgo = HmacHashingAlgo = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReducedSpace } from "../../../global";
|
|
2
|
-
import { ReducedOrganization, ReducedUser } from "../../../idp";
|
|
2
|
+
import { ReducedOrganization, ReducedUser, TeamUsersPatchOperation } from "../../../idp";
|
|
3
3
|
export type Pool = {
|
|
4
4
|
_id: string;
|
|
5
5
|
organization: ReducedOrganization;
|
|
@@ -9,21 +9,19 @@ export type Pool = {
|
|
|
9
9
|
avatarUrl: string;
|
|
10
10
|
numberOfTargets?: number;
|
|
11
11
|
targetSample?: ReducedUser[];
|
|
12
|
+
createDate: number;
|
|
13
|
+
modifyDate: number;
|
|
12
14
|
};
|
|
13
15
|
export type PoolChange = Pool & {
|
|
16
|
+
targets: ReducedUser[];
|
|
14
17
|
invalidTargets: {
|
|
15
18
|
notMember: string[];
|
|
16
19
|
};
|
|
17
20
|
};
|
|
18
21
|
export type PoolTargetPatch = {
|
|
19
22
|
identifiers: string[];
|
|
20
|
-
operation:
|
|
23
|
+
operation: TeamUsersPatchOperation;
|
|
21
24
|
};
|
|
22
|
-
export declare enum ArrayOperation {
|
|
23
|
-
ADD = "ADD",
|
|
24
|
-
REPLACE = "REPLACE",
|
|
25
|
-
REMOVE = "REMOVE"
|
|
26
|
-
}
|
|
27
25
|
export type PoolQueryOptions = {
|
|
28
26
|
getTargetsSample?: number;
|
|
29
27
|
getTotalTargetCount?: boolean;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayOperation = void 0;
|
|
4
|
-
var ArrayOperation;
|
|
5
|
-
(function (ArrayOperation) {
|
|
6
|
-
ArrayOperation["ADD"] = "ADD";
|
|
7
|
-
ArrayOperation["REPLACE"] = "REPLACE";
|
|
8
|
-
ArrayOperation["REMOVE"] = "REMOVE";
|
|
9
|
-
})(ArrayOperation || (exports.ArrayOperation = ArrayOperation = {}));
|
|
@@ -51,11 +51,13 @@ export interface Webhook {
|
|
|
51
51
|
statusCode: number;
|
|
52
52
|
error?: string;
|
|
53
53
|
};
|
|
54
|
+
callbackEnabled: boolean;
|
|
54
55
|
}
|
|
55
|
-
export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings">;
|
|
56
|
+
export type WebhookCreate = Pick<Webhook, "name" | "target" | "type" | "sub" | "webhookEncryptionSettings" | "securityHeaders" | "networkSettings" | "callbackEnabled">;
|
|
56
57
|
export type WebhookUpdate = Partial<WebhookCreate> & {
|
|
57
58
|
deleteWebhookEncryptionSettings?: boolean;
|
|
58
59
|
deleteSecurityHeaders?: boolean;
|
|
60
|
+
callbackEnabled?: boolean;
|
|
59
61
|
};
|
|
60
62
|
export interface WebhookLog {
|
|
61
63
|
_id: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Stats {
|
|
2
|
+
orgName: string;
|
|
3
|
+
spaceName?: string;
|
|
4
|
+
spaces: number;
|
|
5
|
+
events: number;
|
|
6
|
+
streams: number;
|
|
7
|
+
secrets: number;
|
|
8
|
+
webhooks: number;
|
|
9
|
+
jobs: number;
|
|
10
|
+
databases: number;
|
|
11
|
+
documents: number;
|
|
12
|
+
executions: {
|
|
13
|
+
[year: number]: {
|
|
14
|
+
[month: number]: {
|
|
15
|
+
[day: number]: {
|
|
16
|
+
count: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -148,15 +148,20 @@ export interface StreamNodeSpecificationAdditionalConnector {
|
|
|
148
148
|
export type StreamNodeSpecificationInput = {
|
|
149
149
|
name: string;
|
|
150
150
|
description: string;
|
|
151
|
-
defaultValue?: any;
|
|
152
151
|
example: any;
|
|
153
152
|
advanced?: boolean;
|
|
154
|
-
mandatory?: boolean;
|
|
155
153
|
} & ({
|
|
156
|
-
type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT>;
|
|
154
|
+
type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT | StreamNodeSpecificationInputType.BOOLEAN>;
|
|
155
|
+
defaultValue?: any;
|
|
156
|
+
mandatory?: boolean;
|
|
157
157
|
} | {
|
|
158
158
|
type: StreamNodeSpecificationInputType.STRING_SELECT;
|
|
159
159
|
options: Record<string, string | number>;
|
|
160
|
+
defaultValue?: string;
|
|
161
|
+
mandatory?: boolean;
|
|
162
|
+
} | {
|
|
163
|
+
type: StreamNodeSpecificationInputType.BOOLEAN;
|
|
164
|
+
defaultValue: boolean;
|
|
160
165
|
});
|
|
161
166
|
export interface StreamNodeSpecificationOutput {
|
|
162
167
|
name: string;
|
|
@@ -6,6 +6,7 @@ export * from "./organization/team";
|
|
|
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/service-accounts";
|
|
9
10
|
export * from "./user/GeneralSettings";
|
|
10
11
|
export * from "./user/Pat";
|
|
11
12
|
export * from "./user/Scopes";
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./organization/team"), 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/service-accounts"), exports);
|
|
26
27
|
__exportStar(require("./user/GeneralSettings"), exports);
|
|
27
28
|
__exportStar(require("./user/Pat"), exports);
|
|
28
29
|
__exportStar(require("./user/Scopes"), exports);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Scope } from "../user/Scopes";
|
|
2
2
|
export interface OAuthTokenRequest {
|
|
3
3
|
code: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
client_id: string;
|
|
5
|
+
client_secret: string;
|
|
6
|
+
redirect_uri: string;
|
|
7
|
+
grant_type: GrantType;
|
|
7
8
|
}
|
|
8
9
|
export interface OAuthToken {
|
|
9
10
|
id_token?: string;
|
|
@@ -2,6 +2,7 @@ import { ReducedUser } from "../user";
|
|
|
2
2
|
import { License } from "./license";
|
|
3
3
|
import { ReducedTeam } from "./team";
|
|
4
4
|
export * from "./license";
|
|
5
|
+
export * from "./stats";
|
|
5
6
|
export declare enum OrganizationRole {
|
|
6
7
|
MEMBER = "MEMBER",// Part of org, but cannot change anything
|
|
7
8
|
MANAGER = "MANAGER",// Can update members
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.OrganizationRole = void 0;
|
|
18
18
|
__exportStar(require("./license"), exports);
|
|
19
|
+
__exportStar(require("./stats"), exports);
|
|
19
20
|
var OrganizationRole;
|
|
20
21
|
(function (OrganizationRole) {
|
|
21
22
|
OrganizationRole["MEMBER"] = "MEMBER";
|
|
@@ -54,10 +54,23 @@ export type LicenseQuota = {
|
|
|
54
54
|
quota: number;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
+
databases: {
|
|
58
|
+
quota: number;
|
|
59
|
+
documents: {
|
|
60
|
+
quota: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
jobs: {
|
|
64
|
+
quota: number;
|
|
65
|
+
logs: {
|
|
66
|
+
quota: number;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
57
69
|
};
|
|
58
70
|
executionsPerMonth: {
|
|
59
71
|
quota: number;
|
|
60
72
|
};
|
|
73
|
+
secondBaseExecutions: boolean;
|
|
61
74
|
};
|
|
62
75
|
fuse: {
|
|
63
76
|
spaces: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReducedUser } from ".";
|
|
2
|
+
export declare enum MessageType {
|
|
3
|
+
SYSTEM = "SYSTEM",
|
|
4
|
+
USER = "USER"
|
|
5
|
+
}
|
|
6
|
+
export declare enum RecipientType {
|
|
7
|
+
USER = "USER",
|
|
8
|
+
TEAM = "TEAM",
|
|
9
|
+
ORGANIZATION = "ORGANIZATION"
|
|
10
|
+
}
|
|
11
|
+
export interface Message {
|
|
12
|
+
_id: string;
|
|
13
|
+
from: ReducedUser;
|
|
14
|
+
to: ReducedUser;
|
|
15
|
+
title?: string;
|
|
16
|
+
subject?: string;
|
|
17
|
+
message: string;
|
|
18
|
+
read: boolean;
|
|
19
|
+
type: MessageType;
|
|
20
|
+
createDate: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecipientType = exports.MessageType = void 0;
|
|
4
|
+
var MessageType;
|
|
5
|
+
(function (MessageType) {
|
|
6
|
+
MessageType["SYSTEM"] = "SYSTEM";
|
|
7
|
+
MessageType["USER"] = "USER";
|
|
8
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
9
|
+
var RecipientType;
|
|
10
|
+
(function (RecipientType) {
|
|
11
|
+
RecipientType["USER"] = "USER";
|
|
12
|
+
RecipientType["TEAM"] = "TEAM";
|
|
13
|
+
RecipientType["ORGANIZATION"] = "ORGANIZATION";
|
|
14
|
+
})(RecipientType || (exports.RecipientType = RecipientType = {}));
|
|
@@ -16,11 +16,14 @@ export declare enum Scope {
|
|
|
16
16
|
FUSE_SPACE_READ = "fuse:space:read",
|
|
17
17
|
FUSE_SPACE_EXECUTE = "fuse:space:execute",
|
|
18
18
|
FUSE_SPACE_WRITE = "fuse:space:write",
|
|
19
|
-
FUSE_SPACE_DELETE = "fuse:space:delete"
|
|
19
|
+
FUSE_SPACE_DELETE = "fuse:space:delete",
|
|
20
|
+
COSMO_SPACE_READ = "cosmo:space:read",
|
|
21
|
+
COSMO_SPACE_WRITE = "cosmo:space:write",
|
|
22
|
+
COSMO_SPACE_DELETE = "cosmo:space:delete"
|
|
20
23
|
}
|
|
21
24
|
export declare const ScopeDescriptions: Map<string, string>;
|
|
22
25
|
export declare const ScopeDependencies: {
|
|
23
|
-
"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.FUSE_SPACE_READ | Scope.FUSE_SPACE_EXECUTE | Scope.FUSE_SPACE_WRITE | Scope.FUSE_SPACE_DELETE)[];
|
|
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.FUSE_SPACE_READ | Scope.FUSE_SPACE_EXECUTE | Scope.FUSE_SPACE_WRITE | Scope.FUSE_SPACE_DELETE | Scope.COSMO_SPACE_READ | Scope.COSMO_SPACE_WRITE | Scope.COSMO_SPACE_DELETE)[];
|
|
24
27
|
"idp:email:read": never[];
|
|
25
28
|
"idp:user:read": never[];
|
|
26
29
|
"idp:user:write": Scope[];
|
|
@@ -38,4 +41,7 @@ export declare const ScopeDependencies: {
|
|
|
38
41
|
"fuse:space:execute": never[];
|
|
39
42
|
"fuse:space:write": Scope[];
|
|
40
43
|
"fuse:space:delete": Scope[];
|
|
44
|
+
"cosmo:space:read": Scope[];
|
|
45
|
+
"cosmo:space:write": Scope[];
|
|
46
|
+
"cosmo:space:delete": Scope[];
|
|
41
47
|
};
|
|
@@ -21,6 +21,9 @@ var Scope;
|
|
|
21
21
|
Scope["FUSE_SPACE_EXECUTE"] = "fuse:space:execute";
|
|
22
22
|
Scope["FUSE_SPACE_WRITE"] = "fuse:space:write";
|
|
23
23
|
Scope["FUSE_SPACE_DELETE"] = "fuse:space:delete";
|
|
24
|
+
Scope["COSMO_SPACE_READ"] = "cosmo:space:read";
|
|
25
|
+
Scope["COSMO_SPACE_WRITE"] = "cosmo:space:write";
|
|
26
|
+
Scope["COSMO_SPACE_DELETE"] = "cosmo:space:delete";
|
|
24
27
|
})(Scope || (exports.Scope = Scope = {}));
|
|
25
28
|
exports.ScopeDescriptions = new Map([
|
|
26
29
|
[Scope.HCLOUD_FULL, "Full access to helmut.cloud."],
|
|
@@ -41,6 +44,9 @@ exports.ScopeDescriptions = new Map([
|
|
|
41
44
|
[Scope.FUSE_SPACE_EXECUTE, "Execute tasks in Fuse."],
|
|
42
45
|
[Scope.FUSE_SPACE_WRITE, "Create or update Fuse data."],
|
|
43
46
|
[Scope.FUSE_SPACE_DELETE, "Delete Fuse data."],
|
|
47
|
+
[Scope.COSMO_SPACE_READ, "Read Cosmo space data."],
|
|
48
|
+
[Scope.COSMO_SPACE_WRITE, "Create or update Cosmo data."],
|
|
49
|
+
[Scope.COSMO_SPACE_DELETE, "Delete Cosmo data."],
|
|
44
50
|
]);
|
|
45
51
|
exports.ScopeDependencies = {
|
|
46
52
|
[Scope.HCLOUD_FULL]: [...Object.values(Scope).filter(s => s !== Scope.HCLOUD_FULL)],
|
|
@@ -67,4 +73,7 @@ exports.ScopeDependencies = {
|
|
|
67
73
|
[Scope.FUSE_SPACE_EXECUTE]: [],
|
|
68
74
|
[Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
|
|
69
75
|
[Scope.FUSE_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ, Scope.FUSE_SPACE_WRITE],
|
|
76
|
+
[Scope.COSMO_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
|
|
77
|
+
[Scope.COSMO_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ],
|
|
78
|
+
[Scope.COSMO_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.COSMO_SPACE_READ, Scope.COSMO_SPACE_WRITE],
|
|
70
79
|
};
|
|
@@ -14,8 +14,9 @@ export interface User {
|
|
|
14
14
|
activeScopes: Scope[];
|
|
15
15
|
isAgent?: boolean;
|
|
16
16
|
lastActive: number;
|
|
17
|
+
isGuest?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export type ReducedUser = Pick<User, "_id" | "name" | "avatarUrl">;
|
|
19
|
+
export type ReducedUser = Pick<User, "_id" | "name" | "email" | "avatarUrl" | "isGuest" | "isAgent">;
|
|
19
20
|
export interface UserPatch {
|
|
20
21
|
name?: string;
|
|
21
22
|
email?: string;
|