hcloud-sdk 14.13.2 → 16.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 +60 -806
- package/lib/Hcloud.d.ts +20 -10
- package/lib/Hcloud.js +60 -10
- package/lib/interfaces/auditor/index.d.ts +4 -2
- package/lib/interfaces/bouncer/features/index.d.ts +3 -6
- package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
- package/lib/interfaces/frontend/featureflags/index.js +2 -0
- package/lib/interfaces/high5/execution/index.d.ts +22 -0
- package/lib/interfaces/high5/execution/index.js +10 -0
- package/lib/interfaces/high5/index.d.ts +2 -2
- package/lib/interfaces/high5/index.js +2 -2
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +16 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +14 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
- package/lib/interfaces/high5/space/pool/index.js +9 -0
- package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
- package/lib/interfaces/high5/wave/changelog.js +18 -0
- package/lib/interfaces/high5/wave/index.d.ts +48 -1
- package/lib/interfaces/high5/wave/index.js +14 -1
- package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.js +21 -1
- package/lib/interfaces/idp/user/Totp.d.ts +4 -2
- package/lib/interfaces/idp/user/index.d.ts +1 -0
- package/lib/interfaces/mothership/index.d.ts +1 -0
- package/lib/interfaces/nats/index.d.ts +35 -20
- package/lib/interfaces/nats/index.js +132 -94
- package/lib/service/agent/bundle/dev/index.d.ts +5 -2
- package/lib/service/agent/bundle/dev/index.js +30 -10
- package/lib/service/agent/context/index.d.ts +7 -9
- package/lib/service/agent/context/index.js +41 -32
- package/lib/service/agent/index.d.ts +9 -7
- package/lib/service/agent/index.js +23 -6
- package/lib/service/auditor/index.d.ts +6 -7
- package/lib/service/auditor/index.js +23 -17
- package/lib/service/auditor/internal/index.d.ts +2 -2
- package/lib/service/auditor/internal/index.js +24 -20
- package/lib/service/bouncer/features/index.d.ts +1 -1
- package/lib/service/bouncer/features/index.js +5 -3
- package/lib/service/bouncer/index.d.ts +3 -10
- package/lib/service/bouncer/index.js +6 -21
- package/lib/service/dali/DaliAvatar.d.ts +21 -11
- package/lib/service/dali/DaliAvatar.js +63 -8
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +5 -7
- package/lib/service/dali/avatar/DaliFuseSpace.js +29 -26
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
- package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +5 -7
- package/lib/service/dali/avatar/DaliHigh5Space.js +29 -26
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
- package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOrganization.js +23 -20
- package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
- package/lib/service/dali/avatar/DaliTeam.js +26 -23
- package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
- package/lib/service/dali/avatar/DaliUser.js +20 -17
- package/lib/service/dali/index.d.ts +4 -5
- package/lib/service/dali/index.js +14 -7
- package/lib/service/fuse/index.d.ts +8 -7
- package/lib/service/fuse/index.js +23 -9
- package/lib/service/fuse/internal/index.d.ts +3 -4
- package/lib/service/fuse/internal/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
- package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
- package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
- package/lib/service/fuse/internal/space/index.d.ts +5 -6
- package/lib/service/fuse/internal/space/index.js +24 -18
- package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
- package/lib/service/fuse/space/cronjob/index.js +133 -105
- package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
- package/lib/service/fuse/space/cronjob/log/index.js +24 -23
- package/lib/service/fuse/space/index.d.ts +13 -14
- package/lib/service/fuse/space/index.js +88 -70
- package/lib/service/high5/execution/index.d.ts +13 -5
- package/lib/service/high5/execution/index.js +32 -4
- package/lib/service/high5/execution/log/index.d.ts +2 -2
- package/lib/service/high5/execution/log/index.js +11 -12
- package/lib/service/high5/execution/status/index.d.ts +2 -2
- package/lib/service/high5/execution/status/index.js +11 -12
- package/lib/service/high5/index.d.ts +12 -9
- package/lib/service/high5/index.js +36 -12
- package/lib/service/high5/internal/index.d.ts +3 -4
- package/lib/service/high5/internal/index.js +5 -3
- package/lib/service/high5/internal/space/index.d.ts +2 -2
- package/lib/service/high5/internal/space/index.js +19 -15
- package/lib/service/high5/joinToken/index.d.ts +4 -4
- package/lib/service/high5/joinToken/index.js +36 -28
- package/lib/service/high5/space/event/index.d.ts +9 -10
- package/lib/service/high5/space/event/index.js +58 -46
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
- package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
- package/lib/service/high5/space/event/stream/design/index.js +60 -25
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
- package/lib/service/high5/space/event/stream/index.d.ts +14 -15
- package/lib/service/high5/space/event/stream/index.js +125 -103
- package/lib/service/high5/space/execution/index.d.ts +36 -9
- package/lib/service/high5/space/execution/index.js +96 -42
- package/lib/service/high5/space/execution/log/index.d.ts +4 -6
- package/lib/service/high5/space/execution/log/index.js +22 -21
- package/lib/service/high5/space/execution/status/index.d.ts +1 -1
- package/lib/service/high5/space/execution/status/index.js +10 -8
- package/lib/service/high5/space/index.d.ts +28 -21
- package/lib/service/high5/space/index.js +138 -86
- package/lib/service/high5/space/pool/index.d.ts +97 -0
- package/lib/service/high5/space/pool/index.js +171 -0
- package/lib/service/high5/space/secret/index.d.ts +6 -6
- package/lib/service/high5/space/secret/index.js +59 -49
- package/lib/service/high5/space/wave/index.d.ts +7 -9
- package/lib/service/high5/space/wave/index.js +40 -33
- package/lib/service/high5/space/webhook/index.d.ts +21 -14
- package/lib/service/high5/space/webhook/index.js +106 -73
- package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
- package/lib/service/high5/space/webhook/log/index.js +11 -12
- package/lib/service/high5/wave/s3/index.d.ts +14 -7
- package/lib/service/high5/wave/s3/index.js +64 -38
- package/lib/service/idp/index.d.ts +17 -15
- package/lib/service/idp/index.js +104 -56
- package/lib/service/idp/internal/index.d.ts +2 -4
- package/lib/service/idp/internal/index.js +10 -11
- package/lib/service/idp/oauth/index.d.ts +16 -12
- package/lib/service/idp/oauth/index.js +56 -45
- package/lib/service/idp/organization/index.d.ts +12 -10
- package/lib/service/idp/organization/index.js +63 -28
- package/lib/service/idp/organization/license/index.d.ts +2 -2
- package/lib/service/idp/organization/license/index.js +5 -4
- package/lib/service/idp/organization/member/index.d.ts +10 -11
- package/lib/service/idp/organization/member/index.js +62 -48
- package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
- package/lib/service/idp/organization/member/invitations/index.js +47 -43
- package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
- package/lib/service/idp/organization/settings/domain/index.js +42 -29
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
- package/lib/service/idp/organization/settings/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/index.js +17 -4
- package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
- package/lib/service/idp/organization/settings/oauth/index.js +67 -56
- package/lib/service/idp/organization/team/index.d.ts +8 -8
- package/lib/service/idp/organization/team/index.js +64 -55
- package/lib/service/idp/registration/index.d.ts +4 -6
- package/lib/service/idp/registration/index.js +38 -35
- package/lib/service/idp/user/index.d.ts +20 -15
- package/lib/service/idp/user/index.js +94 -51
- package/lib/service/idp/user/license/index.d.ts +2 -2
- package/lib/service/idp/user/license/index.js +5 -4
- package/lib/service/idp/user/password/index.d.ts +1 -1
- package/lib/service/idp/user/password/index.js +10 -11
- package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
- package/lib/service/idp/user/settings/connections/index.js +9 -10
- package/lib/service/idp/user/settings/general/index.d.ts +10 -6
- package/lib/service/idp/user/settings/general/index.js +25 -13
- package/lib/service/idp/user/settings/index.d.ts +13 -9
- package/lib/service/idp/user/settings/index.js +53 -8
- package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
- package/lib/service/idp/user/settings/notifications/index.js +14 -13
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
- package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
- package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
- package/lib/service/idp/user/settings/pats/index.js +55 -44
- package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
- package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +7 -9
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
- package/lib/service/mailer/index.d.ts +4 -5
- package/lib/service/mailer/index.js +12 -8
- package/lib/service/mailer/internal/index.d.ts +4 -4
- package/lib/service/mailer/internal/index.js +38 -33
- package/lib/service/mothership/index.d.ts +12 -12
- package/lib/service/mothership/index.js +92 -79
- package/lib/service/nats/index.d.ts +1 -3
- package/lib/service/nats/index.js +2 -2
- package/lib/utils/bouncer/features/Provider.d.ts +3 -0
- package/lib/utils/bouncer/features/Provider.js +20 -2
- package/package.json +1 -1
|
@@ -5,26 +5,27 @@ import { LicenseTier } from "../idp";
|
|
|
5
5
|
declare enum NatsSubject {
|
|
6
6
|
IDP_USER_GENERAL = "hcloud.idp.user.${userId}.general",
|
|
7
7
|
IDP_USER_PROFILE = "hcloud.idp.user.${userId}.profile",
|
|
8
|
-
IDP_USER_MESSAGES = "hcloud.idp.user.${userId}.messages",
|
|
9
|
-
IDP_USER_SETTINGS_OAUTH = "hcloud.idp.user.${userId}.settings.oauth",
|
|
10
8
|
IDP_USER_NOTIFICATIONS = "hcloud.idp.user.${userId}.notifications",
|
|
11
9
|
IDP_USER_ORGS = "hcloud.idp.user.${userId}.orgs",
|
|
12
10
|
IDP_USER_INVITATIONS = "hcloud.idp.user.${userId}.invitations",
|
|
13
11
|
IDP_USER_SECURITY_PATS = "hcloud.idp.user.${userId}.security.pats",
|
|
14
12
|
IDP_USER_SECURITY_GENERAL = "hcloud.idp.user.${userId}.security.general",
|
|
15
13
|
IDP_USER_LICENSE = "hcloud.idp.user.${userId}.license",
|
|
16
|
-
|
|
14
|
+
IDP_USER_SETTINGS_OAUTH_REVOKE = "hcloud.idp.user.${userId}.settings.oauth.${oAuthAppId}.revoke",
|
|
15
|
+
IDP_ORGANIZATION = "hcloud.idp.organization.${base64orgName}",
|
|
17
16
|
IDP_ORGANIZATION_INVITATIONS = "hcloud.idp.organization.${base64orgName}.invitations",
|
|
18
17
|
IDP_ORGANIZATION_MEMBERS = "hcloud.idp.organization.${base64orgName}.members",
|
|
19
18
|
IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET = "hcloud.idp.organization.${base64orgName}.members.${base64email}.executionTarget",
|
|
20
19
|
IDP_ORGANIZATION_TEAMS = "hcloud.idp.organization.${base64orgName}.teams",
|
|
21
20
|
IDP_ORGANIZATION_TEAM_MEMBERS = "hcloud.idp.organization.${base64orgName}.teams.${base64teamName}.members",
|
|
22
21
|
IDP_ORGANIZATION_LICENSE = "hcloud.idp.organization.${base64orgName}.license",
|
|
22
|
+
IDP_ORGANIZATION_SETTINGS_OAUTHAPP = "hcloud.idp.organization.${base64orgName}.settings.oauthapp.${oAuthAppId}",
|
|
23
23
|
HIGH5_SPACES = "hcloud.high5.organization.${base64orgName}.spaces",
|
|
24
|
-
HIGH5_SPACE = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.>",
|
|
25
24
|
HIGH5_SPACE_PERMISSIONS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
|
|
26
25
|
HIGH5_STREAM_EXECUTE = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",
|
|
27
26
|
HIGH5_STREAM_CANCEL = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
|
|
27
|
+
HIGH5_STREAM_DEBUG_STOPPED = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionId}.stopped",
|
|
28
|
+
HIGH5_STREAM_DEBUG_COMMAND = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionSecret}.command",
|
|
28
29
|
HIGH5_EVENTS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events",
|
|
29
30
|
HIGH5_STREAMS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.streams",
|
|
30
31
|
HIGH5_EVENT_STREAMS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams",
|
|
@@ -36,12 +37,13 @@ declare enum NatsSubject {
|
|
|
36
37
|
HIGH5_NODES = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.node",
|
|
37
38
|
High5_DESIGN = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.design",
|
|
38
39
|
HIGH5_SNAPSHOTS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.snapshots",
|
|
40
|
+
HIGH5_WAVE_ENGINE_LATEST = "hcloud.high5.wave.engine.latest",
|
|
41
|
+
HIGH5_SPACES_POOLS = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.pools.>",
|
|
42
|
+
HIGH5_SPACES_POOL = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.pools.${poolId}",
|
|
39
43
|
FUSE_SPACES = "hcloud.fuse.organization.${base64orgName}.spaces",
|
|
40
|
-
FUSE_SPACE = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.>",
|
|
41
44
|
FUSE_SPACE_PERMISSIONS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
|
|
42
45
|
FUSE_JOBS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs",
|
|
43
46
|
FUSE_JOB_LOGS = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.${jobId}.logs",
|
|
44
|
-
FUSE_JOBS_TRIGGER = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.trigger",
|
|
45
47
|
AUDITOR_LOGS = "hcloud.auditor.organization.${base64orgName}.logs",
|
|
46
48
|
DEBUG_NAMESPACE = "hcloud.debug.namespace.${product}"
|
|
47
49
|
}
|
|
@@ -76,6 +78,7 @@ declare enum NatsObjectType {
|
|
|
76
78
|
WEBHOOK_LOG = "WEBHOOK_LOG",
|
|
77
79
|
SECRET = "SECRET",
|
|
78
80
|
CATALOG = "CATALOG",
|
|
81
|
+
POOL = "POOL",
|
|
79
82
|
AUDIT_LOG = "AUDIT_LOG",
|
|
80
83
|
MAIL = "MAIL",
|
|
81
84
|
CRONJOB = "CRONJOB",
|
|
@@ -90,14 +93,11 @@ interface NatsMessage {
|
|
|
90
93
|
interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, NatsSecretObject, NatsExecTargetObject, High5ExecuteOnAgentRequest, High5ExecutionCancelRequest, NatsLicenseObject, NatsCustomNodeObject {
|
|
91
94
|
[NatsSubject.IDP_USER_GENERAL]: NatsIdObject;
|
|
92
95
|
[NatsSubject.IDP_USER_PROFILE]: NatsIdObject;
|
|
93
|
-
[NatsSubject.IDP_USER_MESSAGES]: unknown;
|
|
94
96
|
[NatsSubject.IDP_USER_SECURITY_PATS]: NatsIdObject;
|
|
95
97
|
[NatsSubject.IDP_USER_SECURITY_GENERAL]: unknown;
|
|
96
|
-
[NatsSubject.IDP_USER_SETTINGS_OAUTH]: unknown;
|
|
97
98
|
[NatsSubject.IDP_USER_NOTIFICATIONS]: NatsIdObject;
|
|
98
99
|
[NatsSubject.IDP_USER_INVITATIONS]: NatsIdObject;
|
|
99
100
|
[NatsSubject.IDP_USER_LICENSE]: NatsIdObject;
|
|
100
|
-
[NatsSubject.IDP_ORGANIZATION_GENERAL]: NatsNameObject;
|
|
101
101
|
[NatsSubject.IDP_ORGANIZATION_INVITATIONS]: NatsIdObject;
|
|
102
102
|
[NatsSubject.IDP_ORGANIZATION_MEMBERS]: NatsMemberObject;
|
|
103
103
|
[NatsSubject.IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET]: NatsExecTargetObject;
|
|
@@ -105,7 +105,6 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
|
|
|
105
105
|
[NatsSubject.IDP_ORGANIZATION_TEAM_MEMBERS]: NatsIdObject;
|
|
106
106
|
[NatsSubject.IDP_ORGANIZATION_LICENSE]: NatsLicenseObject;
|
|
107
107
|
[NatsSubject.HIGH5_SPACES]: NatsNameObject;
|
|
108
|
-
[NatsSubject.HIGH5_SPACE]: NatsNameObject;
|
|
109
108
|
[NatsSubject.HIGH5_SPACE_PERMISSIONS]: NatsIdObject;
|
|
110
109
|
[NatsSubject.HIGH5_STREAM_EXECUTE]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
|
|
111
110
|
[NatsSubject.HIGH5_STREAM_CANCEL]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
|
|
@@ -118,14 +117,13 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
|
|
|
118
117
|
[NatsSubject.HIGH5_SECRETS]: NatsSecretObject;
|
|
119
118
|
[NatsSubject.HIGH5_SETTINGS]: unknown;
|
|
120
119
|
[NatsSubject.HIGH5_WEBHOOKS]: NatsIdObject;
|
|
120
|
+
[NatsSubject.HIGH5_SPACES_POOLS]: NatsPoolObject;
|
|
121
121
|
[NatsSubject.HIGH5_WEBHOOK_LOGS]: NatsIdObject;
|
|
122
122
|
[NatsSubject.HIGH5_CATALOGS]: NatsIdObject;
|
|
123
123
|
[NatsSubject.FUSE_SPACES]: NatsNameObject;
|
|
124
|
-
[NatsSubject.FUSE_SPACE]: NatsNameObject;
|
|
125
124
|
[NatsSubject.FUSE_SPACE_PERMISSIONS]: NatsIdObject;
|
|
126
125
|
[NatsSubject.FUSE_JOBS]: NatsIdObject;
|
|
127
126
|
[NatsSubject.FUSE_JOB_LOGS]: NatsIdObject;
|
|
128
|
-
[NatsSubject.FUSE_JOBS_TRIGGER]: unknown;
|
|
129
127
|
[NatsSubject.AUDITOR_LOGS]: NatsIdObject;
|
|
130
128
|
[NatsSubject.DEBUG_NAMESPACE]: string;
|
|
131
129
|
}
|
|
@@ -152,6 +150,10 @@ interface NatsCustomNodeObject {
|
|
|
152
150
|
_id: string;
|
|
153
151
|
updatedNodeId?: string;
|
|
154
152
|
}
|
|
153
|
+
interface NatsPoolObject extends NatsIdObject {
|
|
154
|
+
name: string;
|
|
155
|
+
targets: string[];
|
|
156
|
+
}
|
|
155
157
|
type NatsCallback = (err: Error | null, msg?: NatsMessage, rawMsg?: Msg) => void;
|
|
156
158
|
/**
|
|
157
159
|
* This helper class creates subject strings to be used with nats.subscribe and nats.publish
|
|
@@ -163,7 +165,6 @@ declare class NatsSubjects {
|
|
|
163
165
|
new (): {};
|
|
164
166
|
GENERAL: (userId: string) => string;
|
|
165
167
|
PROFILE: (userId: string) => string;
|
|
166
|
-
MESSAGES: (userId: string) => string;
|
|
167
168
|
ORGS: (userId: string) => string;
|
|
168
169
|
INVITATIONS: (userId: string) => string;
|
|
169
170
|
NOTIFICATIONS: (userId: string) => string;
|
|
@@ -173,15 +174,15 @@ declare class NatsSubjects {
|
|
|
173
174
|
PATS: (userId: string) => string;
|
|
174
175
|
GENERAL: (userId: string) => string;
|
|
175
176
|
};
|
|
176
|
-
Settings: {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
Settings: (userId: string) => {
|
|
178
|
+
OAuth: {
|
|
179
|
+
REVOKE: (oAuthAppId: string) => string;
|
|
180
|
+
};
|
|
180
181
|
};
|
|
181
182
|
};
|
|
183
|
+
ORGANIZATION: (organizationName: string) => string;
|
|
182
184
|
Organization: {
|
|
183
185
|
new (): {};
|
|
184
|
-
GENERAL: (organizationName: string) => string;
|
|
185
186
|
INVITATIONS: (organizationName: string) => string;
|
|
186
187
|
MEMBERS: (organizationName: string) => string & {
|
|
187
188
|
EXECUTION_TARGET: (email: string) => string;
|
|
@@ -192,6 +193,9 @@ declare class NatsSubjects {
|
|
|
192
193
|
MEMBERS: (organizationName: string, teamName: string) => string;
|
|
193
194
|
};
|
|
194
195
|
LICENSE: (organizationName: string) => string;
|
|
196
|
+
Settings: (organizationName: string) => {
|
|
197
|
+
OAuthApp: (oAuthAppId: string) => string;
|
|
198
|
+
};
|
|
195
199
|
};
|
|
196
200
|
};
|
|
197
201
|
static Fuse: {
|
|
@@ -199,7 +203,6 @@ declare class NatsSubjects {
|
|
|
199
203
|
SPACES: (organizationName: string) => string;
|
|
200
204
|
Space: {
|
|
201
205
|
new (): {};
|
|
202
|
-
SPACE: (organizationName: string, spaceName: string) => string;
|
|
203
206
|
PERMISSIONS: (organizationName: string, spaceName: string) => string;
|
|
204
207
|
Jobs: {
|
|
205
208
|
new (): {};
|
|
@@ -214,11 +217,16 @@ declare class NatsSubjects {
|
|
|
214
217
|
new (): {};
|
|
215
218
|
EXECUTE: (organizationId: string, email: string) => string;
|
|
216
219
|
CANCEL: (organizationId: string, email: string) => string;
|
|
220
|
+
DEBUG: (organizationId: string, email: string) => {
|
|
221
|
+
STOPPED: (executionId: string) => string;
|
|
222
|
+
COMMAND: (executionSecret: string) => string;
|
|
223
|
+
};
|
|
217
224
|
};
|
|
218
225
|
SPACES: (organizationName: string) => string;
|
|
219
226
|
Space: {
|
|
220
227
|
new (): {};
|
|
221
|
-
|
|
228
|
+
POOLS: (organizationId: string, spaceId: string) => string;
|
|
229
|
+
POOL: (organizationId: string, spaceId: string, poolId: string) => string;
|
|
222
230
|
PERMISSIONS: (organizationName: string, spaceName: string) => string;
|
|
223
231
|
EVENTS: (organizationName: string, spaceName: string) => string;
|
|
224
232
|
STREAMS: (organizationName: string, spaceName: string) => string;
|
|
@@ -241,6 +249,13 @@ declare class NatsSubjects {
|
|
|
241
249
|
CATALOGS: (organizationName: string, spaceName: string) => string;
|
|
242
250
|
NODES: (organizationName: string, spaceName: string) => string;
|
|
243
251
|
};
|
|
252
|
+
WAVE: {
|
|
253
|
+
new (): {};
|
|
254
|
+
ENGINE: {
|
|
255
|
+
new (): {};
|
|
256
|
+
LATEST: NatsSubject;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
244
259
|
};
|
|
245
260
|
static Auditor: {
|
|
246
261
|
new (): {};
|
|
@@ -3,33 +3,34 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
3
3
|
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
4
4
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
5
5
|
};
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.NatsSubject = exports.NatsObjectType = exports.NatsMessageType = exports.NatsSubjects = void 0;
|
|
9
9
|
var NatsSubject;
|
|
10
10
|
(function (NatsSubject) {
|
|
11
11
|
NatsSubject["IDP_USER_GENERAL"] = "hcloud.idp.user.${userId}.general";
|
|
12
12
|
NatsSubject["IDP_USER_PROFILE"] = "hcloud.idp.user.${userId}.profile";
|
|
13
|
-
NatsSubject["IDP_USER_MESSAGES"] = "hcloud.idp.user.${userId}.messages";
|
|
14
|
-
NatsSubject["IDP_USER_SETTINGS_OAUTH"] = "hcloud.idp.user.${userId}.settings.oauth";
|
|
15
13
|
NatsSubject["IDP_USER_NOTIFICATIONS"] = "hcloud.idp.user.${userId}.notifications";
|
|
16
14
|
NatsSubject["IDP_USER_ORGS"] = "hcloud.idp.user.${userId}.orgs";
|
|
17
15
|
NatsSubject["IDP_USER_INVITATIONS"] = "hcloud.idp.user.${userId}.invitations";
|
|
18
16
|
NatsSubject["IDP_USER_SECURITY_PATS"] = "hcloud.idp.user.${userId}.security.pats";
|
|
19
17
|
NatsSubject["IDP_USER_SECURITY_GENERAL"] = "hcloud.idp.user.${userId}.security.general";
|
|
20
18
|
NatsSubject["IDP_USER_LICENSE"] = "hcloud.idp.user.${userId}.license";
|
|
21
|
-
NatsSubject["
|
|
19
|
+
NatsSubject["IDP_USER_SETTINGS_OAUTH_REVOKE"] = "hcloud.idp.user.${userId}.settings.oauth.${oAuthAppId}.revoke";
|
|
20
|
+
NatsSubject["IDP_ORGANIZATION"] = "hcloud.idp.organization.${base64orgName}";
|
|
22
21
|
NatsSubject["IDP_ORGANIZATION_INVITATIONS"] = "hcloud.idp.organization.${base64orgName}.invitations";
|
|
23
22
|
NatsSubject["IDP_ORGANIZATION_MEMBERS"] = "hcloud.idp.organization.${base64orgName}.members";
|
|
24
23
|
NatsSubject["IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET"] = "hcloud.idp.organization.${base64orgName}.members.${base64email}.executionTarget";
|
|
25
24
|
NatsSubject["IDP_ORGANIZATION_TEAMS"] = "hcloud.idp.organization.${base64orgName}.teams";
|
|
26
25
|
NatsSubject["IDP_ORGANIZATION_TEAM_MEMBERS"] = "hcloud.idp.organization.${base64orgName}.teams.${base64teamName}.members";
|
|
27
26
|
NatsSubject["IDP_ORGANIZATION_LICENSE"] = "hcloud.idp.organization.${base64orgName}.license";
|
|
27
|
+
NatsSubject["IDP_ORGANIZATION_SETTINGS_OAUTHAPP"] = "hcloud.idp.organization.${base64orgName}.settings.oauthapp.${oAuthAppId}";
|
|
28
28
|
NatsSubject["HIGH5_SPACES"] = "hcloud.high5.organization.${base64orgName}.spaces";
|
|
29
|
-
NatsSubject["HIGH5_SPACE"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.>";
|
|
30
29
|
NatsSubject["HIGH5_SPACE_PERMISSIONS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions";
|
|
31
30
|
NatsSubject["HIGH5_STREAM_EXECUTE"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}";
|
|
32
31
|
NatsSubject["HIGH5_STREAM_CANCEL"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}";
|
|
32
|
+
NatsSubject["HIGH5_STREAM_DEBUG_STOPPED"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionId}.stopped";
|
|
33
|
+
NatsSubject["HIGH5_STREAM_DEBUG_COMMAND"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionSecret}.command";
|
|
33
34
|
NatsSubject["HIGH5_EVENTS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events";
|
|
34
35
|
NatsSubject["HIGH5_STREAMS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.streams";
|
|
35
36
|
NatsSubject["HIGH5_EVENT_STREAMS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams";
|
|
@@ -41,12 +42,13 @@ var NatsSubject;
|
|
|
41
42
|
NatsSubject["HIGH5_NODES"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.node";
|
|
42
43
|
NatsSubject["High5_DESIGN"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.design";
|
|
43
44
|
NatsSubject["HIGH5_SNAPSHOTS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.snapshots";
|
|
45
|
+
NatsSubject["HIGH5_WAVE_ENGINE_LATEST"] = "hcloud.high5.wave.engine.latest";
|
|
46
|
+
NatsSubject["HIGH5_SPACES_POOLS"] = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.pools.>";
|
|
47
|
+
NatsSubject["HIGH5_SPACES_POOL"] = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.pools.${poolId}";
|
|
44
48
|
NatsSubject["FUSE_SPACES"] = "hcloud.fuse.organization.${base64orgName}.spaces";
|
|
45
|
-
NatsSubject["FUSE_SPACE"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.>";
|
|
46
49
|
NatsSubject["FUSE_SPACE_PERMISSIONS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.permissions";
|
|
47
50
|
NatsSubject["FUSE_JOBS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs";
|
|
48
51
|
NatsSubject["FUSE_JOB_LOGS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.${jobId}.logs";
|
|
49
|
-
NatsSubject["FUSE_JOBS_TRIGGER"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.trigger";
|
|
50
52
|
NatsSubject["AUDITOR_LOGS"] = "hcloud.auditor.organization.${base64orgName}.logs";
|
|
51
53
|
NatsSubject["DEBUG_NAMESPACE"] = "hcloud.debug.namespace.${product}";
|
|
52
54
|
})(NatsSubject || (exports.NatsSubject = NatsSubject = {}));
|
|
@@ -83,6 +85,7 @@ var NatsObjectType;
|
|
|
83
85
|
NatsObjectType["WEBHOOK_LOG"] = "WEBHOOK_LOG";
|
|
84
86
|
NatsObjectType["SECRET"] = "SECRET";
|
|
85
87
|
NatsObjectType["CATALOG"] = "CATALOG";
|
|
88
|
+
NatsObjectType["POOL"] = "POOL";
|
|
86
89
|
NatsObjectType["AUDIT_LOG"] = "AUDIT_LOG";
|
|
87
90
|
NatsObjectType["MAIL"] = "MAIL";
|
|
88
91
|
NatsObjectType["CRONJOB"] = "CRONJOB";
|
|
@@ -107,9 +110,6 @@ NatsSubjects.IDP = (_a = class {
|
|
|
107
110
|
_b.PROFILE = (userId) => {
|
|
108
111
|
return NatsSubjects.replace(NatsSubject.IDP_USER_PROFILE, { userId });
|
|
109
112
|
},
|
|
110
|
-
_b.MESSAGES = (userId) => {
|
|
111
|
-
return NatsSubjects.replace(NatsSubject.IDP_USER_MESSAGES, { userId });
|
|
112
|
-
},
|
|
113
113
|
_b.ORGS = (userId) => {
|
|
114
114
|
return NatsSubjects.replace(NatsSubject.IDP_USER_ORGS, { userId });
|
|
115
115
|
},
|
|
@@ -132,27 +132,26 @@ NatsSubjects.IDP = (_a = class {
|
|
|
132
132
|
return NatsSubjects.replace(NatsSubject.IDP_USER_SECURITY_GENERAL, { userId });
|
|
133
133
|
},
|
|
134
134
|
_c),
|
|
135
|
-
_b.Settings = (
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
_d),
|
|
145
|
-
_b),
|
|
146
|
-
_a.Organization = (_e = class {
|
|
135
|
+
_b.Settings = (userId) => {
|
|
136
|
+
return {
|
|
137
|
+
OAuth: {
|
|
138
|
+
REVOKE: (oAuthAppId) => {
|
|
139
|
+
return NatsSubjects.replace(NatsSubject.IDP_USER_SETTINGS_OAUTH_REVOKE, { userId, oAuthAppId });
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
};
|
|
147
143
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
_b),
|
|
145
|
+
_a.ORGANIZATION = (organizationName) => {
|
|
146
|
+
return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION, { organizationName });
|
|
147
|
+
},
|
|
148
|
+
_a.Organization = (_d = class {
|
|
151
149
|
},
|
|
152
|
-
|
|
150
|
+
__setFunctionName(_d, "Organization"),
|
|
151
|
+
_d.INVITATIONS = (organizationName) => {
|
|
153
152
|
return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_INVITATIONS, { organizationName });
|
|
154
153
|
},
|
|
155
|
-
|
|
154
|
+
_d.MEMBERS = (organizationName) => {
|
|
156
155
|
return Object.defineProperty(Object(NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_MEMBERS, { organizationName })), "EXECUTION_TARGET", {
|
|
157
156
|
value: function (memberEmail) {
|
|
158
157
|
return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET, {
|
|
@@ -165,93 +164,118 @@ NatsSubjects.IDP = (_a = class {
|
|
|
165
164
|
configurable: true,
|
|
166
165
|
});
|
|
167
166
|
},
|
|
168
|
-
|
|
167
|
+
_d.TEAMS = (organizationName) => {
|
|
169
168
|
return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_TEAMS, { organizationName });
|
|
170
169
|
},
|
|
171
|
-
|
|
170
|
+
_d.Teams = (_e = class {
|
|
172
171
|
},
|
|
173
|
-
__setFunctionName(
|
|
174
|
-
|
|
172
|
+
__setFunctionName(_e, "Teams"),
|
|
173
|
+
_e.MEMBERS = (organizationName, teamName) => {
|
|
175
174
|
return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_TEAM_MEMBERS, { organizationName, teamName });
|
|
176
175
|
},
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
_e),
|
|
177
|
+
_d.LICENSE = (organizationName) => {
|
|
179
178
|
return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_LICENSE, { organizationName });
|
|
180
179
|
},
|
|
181
|
-
|
|
180
|
+
_d.Settings = (organizationName) => {
|
|
181
|
+
return {
|
|
182
|
+
OAuthApp: (oAuthAppId) => {
|
|
183
|
+
return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_SETTINGS_OAUTHAPP, { organizationName, oAuthAppId });
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
_d),
|
|
182
188
|
_a);
|
|
183
|
-
NatsSubjects.Fuse = (
|
|
189
|
+
NatsSubjects.Fuse = (_f = class {
|
|
184
190
|
},
|
|
185
|
-
__setFunctionName(
|
|
186
|
-
|
|
191
|
+
__setFunctionName(_f, "Fuse"),
|
|
192
|
+
_f.SPACES = (organizationName) => {
|
|
187
193
|
return NatsSubjects.replace(NatsSubject.FUSE_SPACES, { organizationName });
|
|
188
194
|
},
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
__setFunctionName(_h, "Space"),
|
|
192
|
-
_h.SPACE = (organizationName, spaceName) => {
|
|
193
|
-
return NatsSubjects.replace(NatsSubject.FUSE_SPACE, { organizationName, spaceName });
|
|
195
|
+
_f.Space = (_g = class {
|
|
194
196
|
},
|
|
195
|
-
|
|
197
|
+
__setFunctionName(_g, "Space"),
|
|
198
|
+
_g.PERMISSIONS = (organizationName, spaceName) => {
|
|
196
199
|
return NatsSubjects.replace(NatsSubject.FUSE_SPACE_PERMISSIONS, { organizationName, spaceName });
|
|
197
200
|
},
|
|
198
|
-
|
|
201
|
+
_g.Jobs = (_h = class {
|
|
199
202
|
},
|
|
200
|
-
__setFunctionName(
|
|
201
|
-
|
|
203
|
+
__setFunctionName(_h, "Jobs"),
|
|
204
|
+
_h.JOBS = (organizationName, spaceName) => {
|
|
202
205
|
return NatsSubjects.replace(NatsSubject.FUSE_JOBS, { organizationName, spaceName });
|
|
203
206
|
},
|
|
204
|
-
|
|
207
|
+
_h.JOB_LOGS = (organizationName, spaceName, jobId) => {
|
|
205
208
|
return NatsSubjects.replace(NatsSubject.FUSE_JOB_LOGS, { organizationName, spaceName, jobId });
|
|
206
209
|
},
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
NatsSubjects.High5 = (
|
|
210
|
+
_h),
|
|
211
|
+
_g),
|
|
212
|
+
_f);
|
|
213
|
+
NatsSubjects.High5 = (_j = class {
|
|
211
214
|
},
|
|
212
|
-
__setFunctionName(
|
|
213
|
-
|
|
215
|
+
__setFunctionName(_j, "High5"),
|
|
216
|
+
_j.Execution = (_k = class {
|
|
214
217
|
},
|
|
215
|
-
__setFunctionName(
|
|
216
|
-
|
|
218
|
+
__setFunctionName(_k, "Execution"),
|
|
219
|
+
_k.EXECUTE = (organizationId, email) => {
|
|
217
220
|
return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_EXECUTE, { organizationId, email });
|
|
218
221
|
},
|
|
219
|
-
|
|
222
|
+
_k.CANCEL = (organizationId, email) => {
|
|
220
223
|
return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_CANCEL, { organizationId, email });
|
|
221
224
|
},
|
|
222
|
-
|
|
223
|
-
|
|
225
|
+
_k.DEBUG = (organizationId, email) => {
|
|
226
|
+
return {
|
|
227
|
+
STOPPED: function (executionId) {
|
|
228
|
+
return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_DEBUG_STOPPED, {
|
|
229
|
+
organizationId,
|
|
230
|
+
email,
|
|
231
|
+
executionId,
|
|
232
|
+
});
|
|
233
|
+
},
|
|
234
|
+
COMMAND: function (executionSecret) {
|
|
235
|
+
return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_DEBUG_COMMAND, {
|
|
236
|
+
organizationId,
|
|
237
|
+
email,
|
|
238
|
+
executionSecret,
|
|
239
|
+
});
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
},
|
|
243
|
+
_k),
|
|
244
|
+
_j.SPACES = (organizationName) => {
|
|
224
245
|
return NatsSubjects.replace(NatsSubject.HIGH5_SPACES, { organizationName });
|
|
225
246
|
},
|
|
226
|
-
|
|
247
|
+
_j.Space = (_l = class {
|
|
248
|
+
},
|
|
249
|
+
__setFunctionName(_l, "Space"),
|
|
250
|
+
_l.POOLS = (organizationId, spaceId) => {
|
|
251
|
+
return NatsSubjects.replace(NatsSubject.HIGH5_SPACES_POOLS, { organizationId, spaceId });
|
|
227
252
|
},
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
return NatsSubjects.replace(NatsSubject.HIGH5_SPACE, { organizationName, spaceName });
|
|
253
|
+
_l.POOL = (organizationId, spaceId, poolId) => {
|
|
254
|
+
return NatsSubjects.replace(NatsSubject.HIGH5_SPACES_POOL, { organizationId, spaceId, poolId });
|
|
231
255
|
},
|
|
232
|
-
|
|
256
|
+
_l.PERMISSIONS = (organizationName, spaceName) => {
|
|
233
257
|
return NatsSubjects.replace(NatsSubject.HIGH5_SPACE_PERMISSIONS, { organizationName, spaceName });
|
|
234
258
|
},
|
|
235
|
-
|
|
259
|
+
_l.EVENTS = (organizationName, spaceName) => {
|
|
236
260
|
return NatsSubjects.replace(NatsSubject.HIGH5_EVENTS, { organizationName, spaceName });
|
|
237
261
|
},
|
|
238
|
-
|
|
262
|
+
_l.STREAMS = (organizationName, spaceName) => {
|
|
239
263
|
return NatsSubjects.replace(NatsSubject.HIGH5_STREAMS, { organizationName, spaceName });
|
|
240
264
|
},
|
|
241
|
-
|
|
265
|
+
_l.Event = (_m = class {
|
|
242
266
|
},
|
|
243
|
-
__setFunctionName(
|
|
244
|
-
|
|
267
|
+
__setFunctionName(_m, "Event"),
|
|
268
|
+
_m.STREAMS = (organizationName, spaceName, eventName) => {
|
|
245
269
|
return NatsSubjects.replace(NatsSubject.HIGH5_EVENT_STREAMS, {
|
|
246
270
|
organizationName,
|
|
247
271
|
spaceName,
|
|
248
272
|
eventName,
|
|
249
273
|
});
|
|
250
274
|
},
|
|
251
|
-
|
|
275
|
+
_m.Stream = (_o = class {
|
|
252
276
|
},
|
|
253
|
-
__setFunctionName(
|
|
254
|
-
|
|
277
|
+
__setFunctionName(_o, "Stream"),
|
|
278
|
+
_o.DESIGN = (organizationName, spaceName, eventName, streamId) => {
|
|
255
279
|
return NatsSubjects.replace(NatsSubject.High5_DESIGN, {
|
|
256
280
|
organizationName,
|
|
257
281
|
spaceName,
|
|
@@ -259,7 +283,7 @@ NatsSubjects.High5 = (_k = class {
|
|
|
259
283
|
streamId,
|
|
260
284
|
});
|
|
261
285
|
},
|
|
262
|
-
|
|
286
|
+
_o.SNAPSHOTS = (organizationName, spaceName, eventName, streamId) => {
|
|
263
287
|
return NatsSubjects.replace(NatsSubject.HIGH5_SNAPSHOTS, {
|
|
264
288
|
organizationName,
|
|
265
289
|
spaceName,
|
|
@@ -267,61 +291,75 @@ NatsSubjects.High5 = (_k = class {
|
|
|
267
291
|
streamId,
|
|
268
292
|
});
|
|
269
293
|
},
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
294
|
+
_o),
|
|
295
|
+
_m),
|
|
296
|
+
_l.SECRETS = (organizationName, spaceName) => {
|
|
273
297
|
return NatsSubjects.replace(NatsSubject.HIGH5_SECRETS, { organizationName, spaceName });
|
|
274
298
|
},
|
|
275
|
-
|
|
299
|
+
_l.WEBHOOKS = (organizationName, spaceName) => {
|
|
276
300
|
return NatsSubjects.replace(NatsSubject.HIGH5_WEBHOOKS, { organizationName, spaceName });
|
|
277
301
|
},
|
|
278
|
-
|
|
302
|
+
_l.Webhook = (_p = class {
|
|
279
303
|
},
|
|
280
|
-
__setFunctionName(
|
|
281
|
-
|
|
304
|
+
__setFunctionName(_p, "Webhook"),
|
|
305
|
+
_p.LOGS = (organizationName, spaceName, webhookId) => {
|
|
282
306
|
return NatsSubjects.replace(NatsSubject.HIGH5_WEBHOOK_LOGS, {
|
|
283
307
|
organizationName,
|
|
284
308
|
spaceName,
|
|
285
309
|
webhookId,
|
|
286
310
|
});
|
|
287
311
|
},
|
|
288
|
-
|
|
289
|
-
|
|
312
|
+
_p),
|
|
313
|
+
_l.SETTINGS = (organizationName, spaceName) => {
|
|
290
314
|
return NatsSubjects.replace(NatsSubject.HIGH5_SETTINGS, { organizationName, spaceName });
|
|
291
315
|
},
|
|
292
|
-
|
|
316
|
+
_l.CATALOGS = (organizationName, spaceName) => {
|
|
293
317
|
return NatsSubjects.replace(NatsSubject.HIGH5_CATALOGS, { organizationName, spaceName });
|
|
294
318
|
},
|
|
295
|
-
|
|
319
|
+
_l.NODES = (organizationName, spaceName) => {
|
|
296
320
|
return NatsSubjects.replace(NatsSubject.HIGH5_NODES, { organizationName, spaceName });
|
|
297
321
|
},
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
322
|
+
_l),
|
|
323
|
+
_j.WAVE = (_q = class {
|
|
324
|
+
},
|
|
325
|
+
__setFunctionName(_q, "WAVE"),
|
|
326
|
+
_q.ENGINE = (_r = class {
|
|
327
|
+
},
|
|
328
|
+
__setFunctionName(_r, "ENGINE"),
|
|
329
|
+
_r.LATEST = NatsSubject.HIGH5_WAVE_ENGINE_LATEST,
|
|
330
|
+
_r),
|
|
331
|
+
_q),
|
|
332
|
+
_j);
|
|
333
|
+
NatsSubjects.Auditor = (_s = class {
|
|
301
334
|
},
|
|
302
|
-
__setFunctionName(
|
|
303
|
-
|
|
335
|
+
__setFunctionName(_s, "Auditor"),
|
|
336
|
+
_s.LOGS = (organizationName) => {
|
|
304
337
|
return NatsSubjects.replace(NatsSubject.AUDITOR_LOGS, { organizationName });
|
|
305
338
|
},
|
|
306
|
-
|
|
339
|
+
_s);
|
|
307
340
|
NatsSubjects.Logging = (product) => {
|
|
308
341
|
return NatsSubjects.replace(NatsSubject.DEBUG_NAMESPACE, { product });
|
|
309
342
|
};
|
|
310
343
|
// eslint-disable-next-line complexity
|
|
311
344
|
NatsSubjects.replace = (subject, replacements) => {
|
|
312
345
|
subject = subject.replace("${userId}", replacements.userId || "null");
|
|
313
|
-
subject = subject.replace("${base64orgName}", replacements.organizationName ? base64Encode(replacements.organizationName) : "null");
|
|
346
|
+
subject = subject.replace("${base64orgName}", replacements.organizationName ? (replacements.organizationName === "*" ? "*" : base64Encode(replacements.organizationName)) : "null");
|
|
314
347
|
subject = subject.replace("${organizationId}", replacements.organizationId || "null");
|
|
315
|
-
subject = subject.replace("${base64spaceName}", replacements.spaceName ? base64Encode(replacements.spaceName) : "null");
|
|
316
|
-
subject = subject.replace("${
|
|
348
|
+
subject = subject.replace("${base64spaceName}", replacements.spaceName ? (replacements.spaceName === "*" ? "*" : base64Encode(replacements.spaceName)) : "null");
|
|
349
|
+
subject = subject.replace("${spaceId}", replacements.spaceId || "null");
|
|
350
|
+
subject = subject.replace("${base64eventName}", replacements.eventName ? (replacements.eventName === "*" ? "*" : base64Encode(replacements.eventName)) : "null");
|
|
317
351
|
subject = subject.replace("${streamId}", replacements.streamId || "null");
|
|
318
352
|
subject = subject.replace("${designId}", replacements.designId || "null");
|
|
319
353
|
subject = subject.replace("${nodeId}", replacements.nodeId || "null");
|
|
320
354
|
subject = subject.replace("${product}", replacements.product || "null");
|
|
321
|
-
subject = subject.replace("${base64email}", replacements.email ? base64Encode(replacements.email) : "null");
|
|
355
|
+
subject = subject.replace("${base64email}", replacements.email ? (replacements.email === "*" ? "*" : base64Encode(replacements.email)) : "null");
|
|
322
356
|
subject = subject.replace("${webhookId}", replacements.webhookId || "null");
|
|
323
357
|
subject = subject.replace("${jobId}", replacements.jobId || "null");
|
|
324
|
-
subject = subject.replace("${base64teamName}", replacements.teamName ? base64Encode(replacements.teamName) : "null");
|
|
358
|
+
subject = subject.replace("${base64teamName}", replacements.teamName ? (replacements.teamName === "*" ? "*" : base64Encode(replacements.teamName)) : "null");
|
|
359
|
+
subject = subject.replace("${base64poolName}", replacements.poolName ? (replacements.poolName === "*" ? "*" : base64Encode(replacements.poolName)) : "null");
|
|
360
|
+
subject = subject.replace("${poolId}", replacements.poolId || "null");
|
|
361
|
+
subject = subject.replace("${executionId}", replacements.executionId || "null");
|
|
362
|
+
subject = subject.replace("${executionSecret}", replacements.executionSecret || "null");
|
|
325
363
|
return subject;
|
|
326
364
|
};
|
|
327
365
|
const base64Encode = (str) => {
|
|
@@ -7,11 +7,14 @@ export declare class DevBundle extends Base {
|
|
|
7
7
|
* Retrieves the current dev bundle state.
|
|
8
8
|
* @returns The current dev bundle state
|
|
9
9
|
*/
|
|
10
|
-
getDevBundleState
|
|
10
|
+
getDevBundleState(): Promise<ToggleDevBundle>;
|
|
11
11
|
/**
|
|
12
12
|
* Update the dev bundle state.
|
|
13
13
|
* @returns 204 - No content
|
|
14
14
|
*/
|
|
15
|
-
updateDevBundleState
|
|
15
|
+
updateDevBundleState(allowDev: boolean): Promise<void>;
|
|
16
|
+
getCurrentVersion(): Promise<string>;
|
|
17
|
+
setCurrentVersion(version: string): Promise<void>;
|
|
18
|
+
restart(): Promise<void>;
|
|
16
19
|
protected getEndpoint(endpoint: string): string;
|
|
17
20
|
}
|
|
@@ -14,25 +14,45 @@ const Base_1 = require("../../../../Base");
|
|
|
14
14
|
class DevBundle extends Base_1.default {
|
|
15
15
|
constructor(options, axios) {
|
|
16
16
|
super(options, axios);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves the current dev bundle state.
|
|
20
|
+
* @returns The current dev bundle state
|
|
21
|
+
*/
|
|
22
|
+
getDevBundleState() {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
24
|
const resp = yield this.axios.get(this.getEndpoint(`/v1/bundle/dev`));
|
|
23
25
|
return resp.data;
|
|
24
26
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Update the dev bundle state.
|
|
30
|
+
* @returns 204 - No content
|
|
31
|
+
*/
|
|
32
|
+
updateDevBundleState(allowDev) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
34
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/bundle/dev`), {
|
|
31
35
|
allowDev,
|
|
32
36
|
});
|
|
33
37
|
return resp.data;
|
|
34
38
|
});
|
|
35
39
|
}
|
|
40
|
+
getCurrentVersion() {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
const resp = yield this.axios.get(this.getEndpoint("/v1/bundle/version"));
|
|
43
|
+
return resp.data;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
setCurrentVersion(version) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
yield this.axios.put(this.getEndpoint("/v1/bundle/version"), { version }, { headers: { "Content-Type": "application/x-www-form-urlencoded" } });
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
restart() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
yield this.axios.post(this.getEndpoint("/v1/bundle/restart"));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
36
56
|
getEndpoint(endpoint) {
|
|
37
57
|
return `${this.options.server}/api/agent${endpoint}`;
|
|
38
58
|
}
|