hcloud-sdk 14.13.2 → 15.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.
Files changed (161) hide show
  1. package/changelog.md +36 -800
  2. package/lib/Hcloud.d.ts +20 -10
  3. package/lib/Hcloud.js +60 -10
  4. package/lib/interfaces/bouncer/features/index.d.ts +3 -6
  5. package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
  6. package/lib/interfaces/frontend/featureflags/index.js +2 -0
  7. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +2 -0
  8. package/lib/interfaces/high5/space/execution/index.d.ts +11 -0
  9. package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
  10. package/lib/interfaces/high5/wave/changelog.js +18 -0
  11. package/lib/interfaces/high5/wave/index.d.ts +31 -1
  12. package/lib/interfaces/high5/wave/index.js +10 -1
  13. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  14. package/lib/interfaces/mothership/index.d.ts +1 -0
  15. package/lib/interfaces/nats/index.d.ts +8 -21
  16. package/lib/interfaces/nats/index.js +72 -90
  17. package/lib/service/agent/bundle/dev/index.d.ts +2 -2
  18. package/lib/service/agent/bundle/dev/index.js +14 -10
  19. package/lib/service/agent/context/index.d.ts +7 -9
  20. package/lib/service/agent/context/index.js +41 -32
  21. package/lib/service/agent/index.d.ts +9 -7
  22. package/lib/service/agent/index.js +23 -6
  23. package/lib/service/auditor/index.d.ts +6 -7
  24. package/lib/service/auditor/index.js +23 -17
  25. package/lib/service/auditor/internal/index.d.ts +2 -2
  26. package/lib/service/auditor/internal/index.js +24 -20
  27. package/lib/service/bouncer/features/index.d.ts +1 -1
  28. package/lib/service/bouncer/features/index.js +5 -3
  29. package/lib/service/bouncer/index.d.ts +3 -10
  30. package/lib/service/bouncer/index.js +6 -21
  31. package/lib/service/dali/DaliAvatar.d.ts +13 -9
  32. package/lib/service/dali/DaliAvatar.js +53 -8
  33. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +4 -6
  34. package/lib/service/dali/avatar/DaliFuseSpace.js +26 -23
  35. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +4 -6
  36. package/lib/service/dali/avatar/DaliHigh5Space.js +26 -23
  37. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
  38. package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
  39. package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
  40. package/lib/service/dali/avatar/DaliOrganization.js +23 -20
  41. package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
  42. package/lib/service/dali/avatar/DaliTeam.js +26 -23
  43. package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
  44. package/lib/service/dali/avatar/DaliUser.js +20 -17
  45. package/lib/service/dali/index.d.ts +4 -5
  46. package/lib/service/dali/index.js +14 -7
  47. package/lib/service/fuse/index.d.ts +8 -7
  48. package/lib/service/fuse/index.js +23 -9
  49. package/lib/service/fuse/internal/index.d.ts +3 -4
  50. package/lib/service/fuse/internal/index.js +5 -3
  51. package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
  52. package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
  53. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
  54. package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
  55. package/lib/service/fuse/internal/space/index.d.ts +5 -6
  56. package/lib/service/fuse/internal/space/index.js +24 -18
  57. package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
  58. package/lib/service/fuse/space/cronjob/index.js +133 -105
  59. package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
  60. package/lib/service/fuse/space/cronjob/log/index.js +24 -23
  61. package/lib/service/fuse/space/index.d.ts +13 -14
  62. package/lib/service/fuse/space/index.js +88 -70
  63. package/lib/service/high5/execution/index.d.ts +5 -5
  64. package/lib/service/high5/execution/index.js +11 -4
  65. package/lib/service/high5/execution/log/index.d.ts +2 -2
  66. package/lib/service/high5/execution/log/index.js +11 -12
  67. package/lib/service/high5/execution/status/index.d.ts +2 -2
  68. package/lib/service/high5/execution/status/index.js +11 -12
  69. package/lib/service/high5/index.d.ts +12 -9
  70. package/lib/service/high5/index.js +36 -12
  71. package/lib/service/high5/internal/index.d.ts +3 -4
  72. package/lib/service/high5/internal/index.js +5 -3
  73. package/lib/service/high5/internal/space/index.d.ts +2 -2
  74. package/lib/service/high5/internal/space/index.js +19 -15
  75. package/lib/service/high5/joinToken/index.d.ts +4 -4
  76. package/lib/service/high5/joinToken/index.js +36 -28
  77. package/lib/service/high5/space/event/index.d.ts +9 -10
  78. package/lib/service/high5/space/event/index.js +58 -46
  79. package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
  80. package/lib/service/high5/space/event/stream/design/index.js +60 -25
  81. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
  82. package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
  83. package/lib/service/high5/space/event/stream/index.d.ts +14 -15
  84. package/lib/service/high5/space/event/stream/index.js +125 -103
  85. package/lib/service/high5/space/execution/index.d.ts +9 -9
  86. package/lib/service/high5/space/execution/index.js +57 -42
  87. package/lib/service/high5/space/execution/log/index.d.ts +4 -6
  88. package/lib/service/high5/space/execution/log/index.js +22 -21
  89. package/lib/service/high5/space/execution/status/index.d.ts +1 -1
  90. package/lib/service/high5/space/execution/status/index.js +10 -8
  91. package/lib/service/high5/space/index.d.ts +25 -21
  92. package/lib/service/high5/space/index.js +131 -86
  93. package/lib/service/high5/space/secret/index.d.ts +6 -6
  94. package/lib/service/high5/space/secret/index.js +59 -49
  95. package/lib/service/high5/space/wave/index.d.ts +7 -9
  96. package/lib/service/high5/space/wave/index.js +40 -33
  97. package/lib/service/high5/space/webhook/index.d.ts +21 -14
  98. package/lib/service/high5/space/webhook/index.js +106 -73
  99. package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
  100. package/lib/service/high5/space/webhook/log/index.js +11 -12
  101. package/lib/service/high5/wave/s3/index.d.ts +6 -6
  102. package/lib/service/high5/wave/s3/index.js +50 -38
  103. package/lib/service/idp/index.d.ts +17 -15
  104. package/lib/service/idp/index.js +104 -56
  105. package/lib/service/idp/internal/index.d.ts +2 -4
  106. package/lib/service/idp/internal/index.js +10 -11
  107. package/lib/service/idp/oauth/index.d.ts +16 -12
  108. package/lib/service/idp/oauth/index.js +55 -43
  109. package/lib/service/idp/organization/index.d.ts +12 -10
  110. package/lib/service/idp/organization/index.js +63 -28
  111. package/lib/service/idp/organization/license/index.d.ts +2 -2
  112. package/lib/service/idp/organization/license/index.js +5 -4
  113. package/lib/service/idp/organization/member/index.d.ts +10 -11
  114. package/lib/service/idp/organization/member/index.js +62 -48
  115. package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
  116. package/lib/service/idp/organization/member/invitations/index.js +47 -43
  117. package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
  118. package/lib/service/idp/organization/settings/domain/index.js +42 -29
  119. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
  120. package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
  121. package/lib/service/idp/organization/settings/index.d.ts +5 -5
  122. package/lib/service/idp/organization/settings/index.js +17 -4
  123. package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
  124. package/lib/service/idp/organization/settings/oauth/index.js +67 -56
  125. package/lib/service/idp/organization/team/index.d.ts +8 -8
  126. package/lib/service/idp/organization/team/index.js +64 -55
  127. package/lib/service/idp/registration/index.d.ts +4 -6
  128. package/lib/service/idp/registration/index.js +37 -34
  129. package/lib/service/idp/user/index.d.ts +16 -15
  130. package/lib/service/idp/user/index.js +86 -51
  131. package/lib/service/idp/user/license/index.d.ts +2 -2
  132. package/lib/service/idp/user/license/index.js +5 -4
  133. package/lib/service/idp/user/password/index.d.ts +1 -1
  134. package/lib/service/idp/user/password/index.js +10 -11
  135. package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
  136. package/lib/service/idp/user/settings/connections/index.js +9 -10
  137. package/lib/service/idp/user/settings/general/index.d.ts +10 -6
  138. package/lib/service/idp/user/settings/general/index.js +25 -13
  139. package/lib/service/idp/user/settings/index.d.ts +13 -9
  140. package/lib/service/idp/user/settings/index.js +53 -8
  141. package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
  142. package/lib/service/idp/user/settings/notifications/index.js +14 -13
  143. package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
  144. package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
  145. package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
  146. package/lib/service/idp/user/settings/pats/index.js +55 -44
  147. package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
  148. package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
  149. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +6 -8
  150. package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
  151. package/lib/service/mailer/index.d.ts +4 -5
  152. package/lib/service/mailer/index.js +12 -8
  153. package/lib/service/mailer/internal/index.d.ts +4 -4
  154. package/lib/service/mailer/internal/index.js +38 -33
  155. package/lib/service/mothership/index.d.ts +12 -12
  156. package/lib/service/mothership/index.js +92 -79
  157. package/lib/service/nats/index.d.ts +1 -3
  158. package/lib/service/nats/index.js +2 -2
  159. package/lib/utils/bouncer/features/Provider.d.ts +3 -0
  160. package/lib/utils/bouncer/features/Provider.js +20 -2
  161. package/package.json +1 -1
@@ -3,22 +3,19 @@ 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["IDP_ORGANIZATION_GENERAL"] = "hcloud.idp.organization.${base64orgName}.general";
22
19
  NatsSubject["IDP_ORGANIZATION_INVITATIONS"] = "hcloud.idp.organization.${base64orgName}.invitations";
23
20
  NatsSubject["IDP_ORGANIZATION_MEMBERS"] = "hcloud.idp.organization.${base64orgName}.members";
24
21
  NatsSubject["IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET"] = "hcloud.idp.organization.${base64orgName}.members.${base64email}.executionTarget";
@@ -26,7 +23,6 @@ var NatsSubject;
26
23
  NatsSubject["IDP_ORGANIZATION_TEAM_MEMBERS"] = "hcloud.idp.organization.${base64orgName}.teams.${base64teamName}.members";
27
24
  NatsSubject["IDP_ORGANIZATION_LICENSE"] = "hcloud.idp.organization.${base64orgName}.license";
28
25
  NatsSubject["HIGH5_SPACES"] = "hcloud.high5.organization.${base64orgName}.spaces";
29
- NatsSubject["HIGH5_SPACE"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.>";
30
26
  NatsSubject["HIGH5_SPACE_PERMISSIONS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions";
31
27
  NatsSubject["HIGH5_STREAM_EXECUTE"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}";
32
28
  NatsSubject["HIGH5_STREAM_CANCEL"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}";
@@ -41,12 +37,11 @@ var NatsSubject;
41
37
  NatsSubject["HIGH5_NODES"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.node";
42
38
  NatsSubject["High5_DESIGN"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.design";
43
39
  NatsSubject["HIGH5_SNAPSHOTS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.events.${base64eventName}.streams.${streamId}.snapshots";
40
+ NatsSubject["HIGH5_WAVE_ENGINE_LATEST"] = "hcloud.high5.wave.engine.latest";
44
41
  NatsSubject["FUSE_SPACES"] = "hcloud.fuse.organization.${base64orgName}.spaces";
45
- NatsSubject["FUSE_SPACE"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.>";
46
42
  NatsSubject["FUSE_SPACE_PERMISSIONS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.permissions";
47
43
  NatsSubject["FUSE_JOBS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs";
48
44
  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
45
  NatsSubject["AUDITOR_LOGS"] = "hcloud.auditor.organization.${base64orgName}.logs";
51
46
  NatsSubject["DEBUG_NAMESPACE"] = "hcloud.debug.namespace.${product}";
52
47
  })(NatsSubject || (exports.NatsSubject = NatsSubject = {}));
@@ -107,9 +102,6 @@ NatsSubjects.IDP = (_a = class {
107
102
  _b.PROFILE = (userId) => {
108
103
  return NatsSubjects.replace(NatsSubject.IDP_USER_PROFILE, { userId });
109
104
  },
110
- _b.MESSAGES = (userId) => {
111
- return NatsSubjects.replace(NatsSubject.IDP_USER_MESSAGES, { userId });
112
- },
113
105
  _b.ORGS = (userId) => {
114
106
  return NatsSubjects.replace(NatsSubject.IDP_USER_ORGS, { userId });
115
107
  },
@@ -132,27 +124,14 @@ NatsSubjects.IDP = (_a = class {
132
124
  return NatsSubjects.replace(NatsSubject.IDP_USER_SECURITY_GENERAL, { userId });
133
125
  },
134
126
  _c),
135
- _b.Settings = (_d = class {
136
- },
137
- __setFunctionName(_d, "Settings"),
138
- _d.OAUTH = (userId) => {
139
- return NatsSubjects.replace(NatsSubject.IDP_USER_SETTINGS_OAUTH, { userId });
140
- },
141
- _d.GENERAL_SETTINGS = (userId) => {
142
- return NatsSubjects.replace(NatsSubject.IDP_USER_GENERAL, { userId });
143
- },
144
- _d),
145
127
  _b),
146
- _a.Organization = (_e = class {
147
- },
148
- __setFunctionName(_e, "Organization"),
149
- _e.GENERAL = (organizationName) => {
150
- return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_GENERAL, { organizationName });
128
+ _a.Organization = (_d = class {
151
129
  },
152
- _e.INVITATIONS = (organizationName) => {
130
+ __setFunctionName(_d, "Organization"),
131
+ _d.INVITATIONS = (organizationName) => {
153
132
  return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_INVITATIONS, { organizationName });
154
133
  },
155
- _e.MEMBERS = (organizationName) => {
134
+ _d.MEMBERS = (organizationName) => {
156
135
  return Object.defineProperty(Object(NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_MEMBERS, { organizationName })), "EXECUTION_TARGET", {
157
136
  value: function (memberEmail) {
158
137
  return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_MEMBERS_EXECUTION_TARGET, {
@@ -165,93 +144,87 @@ NatsSubjects.IDP = (_a = class {
165
144
  configurable: true,
166
145
  });
167
146
  },
168
- _e.TEAMS = (organizationName) => {
147
+ _d.TEAMS = (organizationName) => {
169
148
  return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_TEAMS, { organizationName });
170
149
  },
171
- _e.Teams = (_f = class {
150
+ _d.Teams = (_e = class {
172
151
  },
173
- __setFunctionName(_f, "Teams"),
174
- _f.MEMBERS = (organizationName, teamName) => {
152
+ __setFunctionName(_e, "Teams"),
153
+ _e.MEMBERS = (organizationName, teamName) => {
175
154
  return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_TEAM_MEMBERS, { organizationName, teamName });
176
155
  },
177
- _f),
178
- _e.LICENSE = (organizationName) => {
156
+ _e),
157
+ _d.LICENSE = (organizationName) => {
179
158
  return NatsSubjects.replace(NatsSubject.IDP_ORGANIZATION_LICENSE, { organizationName });
180
159
  },
181
- _e),
160
+ _d),
182
161
  _a);
183
- NatsSubjects.Fuse = (_g = class {
162
+ NatsSubjects.Fuse = (_f = class {
184
163
  },
185
- __setFunctionName(_g, "Fuse"),
186
- _g.SPACES = (organizationName) => {
164
+ __setFunctionName(_f, "Fuse"),
165
+ _f.SPACES = (organizationName) => {
187
166
  return NatsSubjects.replace(NatsSubject.FUSE_SPACES, { organizationName });
188
167
  },
189
- _g.Space = (_h = class {
190
- },
191
- __setFunctionName(_h, "Space"),
192
- _h.SPACE = (organizationName, spaceName) => {
193
- return NatsSubjects.replace(NatsSubject.FUSE_SPACE, { organizationName, spaceName });
168
+ _f.Space = (_g = class {
194
169
  },
195
- _h.PERMISSIONS = (organizationName, spaceName) => {
170
+ __setFunctionName(_g, "Space"),
171
+ _g.PERMISSIONS = (organizationName, spaceName) => {
196
172
  return NatsSubjects.replace(NatsSubject.FUSE_SPACE_PERMISSIONS, { organizationName, spaceName });
197
173
  },
198
- _h.Jobs = (_j = class {
174
+ _g.Jobs = (_h = class {
199
175
  },
200
- __setFunctionName(_j, "Jobs"),
201
- _j.JOBS = (organizationName, spaceName) => {
176
+ __setFunctionName(_h, "Jobs"),
177
+ _h.JOBS = (organizationName, spaceName) => {
202
178
  return NatsSubjects.replace(NatsSubject.FUSE_JOBS, { organizationName, spaceName });
203
179
  },
204
- _j.JOB_LOGS = (organizationName, spaceName, jobId) => {
180
+ _h.JOB_LOGS = (organizationName, spaceName, jobId) => {
205
181
  return NatsSubjects.replace(NatsSubject.FUSE_JOB_LOGS, { organizationName, spaceName, jobId });
206
182
  },
207
- _j),
208
- _h),
209
- _g);
210
- NatsSubjects.High5 = (_k = class {
183
+ _h),
184
+ _g),
185
+ _f);
186
+ NatsSubjects.High5 = (_j = class {
211
187
  },
212
- __setFunctionName(_k, "High5"),
213
- _k.Execution = (_l = class {
188
+ __setFunctionName(_j, "High5"),
189
+ _j.Execution = (_k = class {
214
190
  },
215
- __setFunctionName(_l, "Execution"),
216
- _l.EXECUTE = (organizationId, email) => {
191
+ __setFunctionName(_k, "Execution"),
192
+ _k.EXECUTE = (organizationId, email) => {
217
193
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_EXECUTE, { organizationId, email });
218
194
  },
219
- _l.CANCEL = (organizationId, email) => {
195
+ _k.CANCEL = (organizationId, email) => {
220
196
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_CANCEL, { organizationId, email });
221
197
  },
222
- _l),
223
- _k.SPACES = (organizationName) => {
198
+ _k),
199
+ _j.SPACES = (organizationName) => {
224
200
  return NatsSubjects.replace(NatsSubject.HIGH5_SPACES, { organizationName });
225
201
  },
226
- _k.Space = (_m = class {
227
- },
228
- __setFunctionName(_m, "Space"),
229
- _m.SPACE = (organizationName, spaceName) => {
230
- return NatsSubjects.replace(NatsSubject.HIGH5_SPACE, { organizationName, spaceName });
202
+ _j.Space = (_l = class {
231
203
  },
232
- _m.PERMISSIONS = (organizationName, spaceName) => {
204
+ __setFunctionName(_l, "Space"),
205
+ _l.PERMISSIONS = (organizationName, spaceName) => {
233
206
  return NatsSubjects.replace(NatsSubject.HIGH5_SPACE_PERMISSIONS, { organizationName, spaceName });
234
207
  },
235
- _m.EVENTS = (organizationName, spaceName) => {
208
+ _l.EVENTS = (organizationName, spaceName) => {
236
209
  return NatsSubjects.replace(NatsSubject.HIGH5_EVENTS, { organizationName, spaceName });
237
210
  },
238
- _m.STREAMS = (organizationName, spaceName) => {
211
+ _l.STREAMS = (organizationName, spaceName) => {
239
212
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAMS, { organizationName, spaceName });
240
213
  },
241
- _m.Event = (_o = class {
214
+ _l.Event = (_m = class {
242
215
  },
243
- __setFunctionName(_o, "Event"),
244
- _o.STREAMS = (organizationName, spaceName, eventName) => {
216
+ __setFunctionName(_m, "Event"),
217
+ _m.STREAMS = (organizationName, spaceName, eventName) => {
245
218
  return NatsSubjects.replace(NatsSubject.HIGH5_EVENT_STREAMS, {
246
219
  organizationName,
247
220
  spaceName,
248
221
  eventName,
249
222
  });
250
223
  },
251
- _o.Stream = (_p = class {
224
+ _m.Stream = (_o = class {
252
225
  },
253
- __setFunctionName(_p, "Stream"),
254
- _p.DESIGN = (organizationName, spaceName, eventName, streamId) => {
226
+ __setFunctionName(_o, "Stream"),
227
+ _o.DESIGN = (organizationName, spaceName, eventName, streamId) => {
255
228
  return NatsSubjects.replace(NatsSubject.High5_DESIGN, {
256
229
  organizationName,
257
230
  spaceName,
@@ -259,7 +232,7 @@ NatsSubjects.High5 = (_k = class {
259
232
  streamId,
260
233
  });
261
234
  },
262
- _p.SNAPSHOTS = (organizationName, spaceName, eventName, streamId) => {
235
+ _o.SNAPSHOTS = (organizationName, spaceName, eventName, streamId) => {
263
236
  return NatsSubjects.replace(NatsSubject.HIGH5_SNAPSHOTS, {
264
237
  organizationName,
265
238
  spaceName,
@@ -267,43 +240,52 @@ NatsSubjects.High5 = (_k = class {
267
240
  streamId,
268
241
  });
269
242
  },
270
- _p),
271
- _o),
272
- _m.SECRETS = (organizationName, spaceName) => {
243
+ _o),
244
+ _m),
245
+ _l.SECRETS = (organizationName, spaceName) => {
273
246
  return NatsSubjects.replace(NatsSubject.HIGH5_SECRETS, { organizationName, spaceName });
274
247
  },
275
- _m.WEBHOOKS = (organizationName, spaceName) => {
248
+ _l.WEBHOOKS = (organizationName, spaceName) => {
276
249
  return NatsSubjects.replace(NatsSubject.HIGH5_WEBHOOKS, { organizationName, spaceName });
277
250
  },
278
- _m.Webhook = (_q = class {
251
+ _l.Webhook = (_p = class {
279
252
  },
280
- __setFunctionName(_q, "Webhook"),
281
- _q.LOGS = (organizationName, spaceName, webhookId) => {
253
+ __setFunctionName(_p, "Webhook"),
254
+ _p.LOGS = (organizationName, spaceName, webhookId) => {
282
255
  return NatsSubjects.replace(NatsSubject.HIGH5_WEBHOOK_LOGS, {
283
256
  organizationName,
284
257
  spaceName,
285
258
  webhookId,
286
259
  });
287
260
  },
288
- _q),
289
- _m.SETTINGS = (organizationName, spaceName) => {
261
+ _p),
262
+ _l.SETTINGS = (organizationName, spaceName) => {
290
263
  return NatsSubjects.replace(NatsSubject.HIGH5_SETTINGS, { organizationName, spaceName });
291
264
  },
292
- _m.CATALOGS = (organizationName, spaceName) => {
265
+ _l.CATALOGS = (organizationName, spaceName) => {
293
266
  return NatsSubjects.replace(NatsSubject.HIGH5_CATALOGS, { organizationName, spaceName });
294
267
  },
295
- _m.NODES = (organizationName, spaceName) => {
268
+ _l.NODES = (organizationName, spaceName) => {
296
269
  return NatsSubjects.replace(NatsSubject.HIGH5_NODES, { organizationName, spaceName });
297
270
  },
298
- _m),
299
- _k);
300
- NatsSubjects.Auditor = (_r = class {
271
+ _l),
272
+ _j.WAVE = (_q = class {
273
+ },
274
+ __setFunctionName(_q, "WAVE"),
275
+ _q.ENGINE = (_r = class {
276
+ },
277
+ __setFunctionName(_r, "ENGINE"),
278
+ _r.LATEST = NatsSubject.HIGH5_WAVE_ENGINE_LATEST,
279
+ _r),
280
+ _q),
281
+ _j);
282
+ NatsSubjects.Auditor = (_s = class {
301
283
  },
302
- __setFunctionName(_r, "Auditor"),
303
- _r.LOGS = (organizationName) => {
284
+ __setFunctionName(_s, "Auditor"),
285
+ _s.LOGS = (organizationName) => {
304
286
  return NatsSubjects.replace(NatsSubject.AUDITOR_LOGS, { organizationName });
305
287
  },
306
- _r);
288
+ _s);
307
289
  NatsSubjects.Logging = (product) => {
308
290
  return NatsSubjects.replace(NatsSubject.DEBUG_NAMESPACE, { product });
309
291
  };
@@ -7,11 +7,11 @@ 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: () => Promise<ToggleDevBundle>;
10
+ getDevBundleState(): Promise<ToggleDevBundle>;
11
11
  /**
12
12
  * Update the dev bundle state.
13
13
  * @returns 204 - No content
14
14
  */
15
- updateDevBundleState: (allowDev: boolean) => Promise<void>;
15
+ updateDevBundleState(allowDev: boolean): Promise<void>;
16
16
  protected getEndpoint(endpoint: string): string;
17
17
  }
@@ -14,19 +14,23 @@ 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
- * Retrieves the current dev bundle state.
19
- * @returns The current dev bundle state
20
- */
21
- this.getDevBundleState = () => __awaiter(this, void 0, void 0, function* () {
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
- * Update the dev bundle state.
27
- * @returns 204 - No content
28
- */
29
- this.updateDevBundleState = (allowDev) => __awaiter(this, void 0, void 0, function* () {
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
  });
@@ -1,37 +1,35 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../Base";
1
+ import Base from "../../../Base";
3
2
  import { Context } from "../../../interfaces/agent/context";
4
3
  export declare class AgentContext extends Base {
5
- constructor(options: Options, axios: AxiosInstance);
6
4
  /**
7
5
  * Retrieves all contexts.
8
6
  * @returns The requested contexts
9
7
  */
10
- getContexts: () => Promise<Context[]>;
8
+ getContexts(): Promise<Context[]>;
11
9
  /**
12
10
  * Add a new context.
13
11
  * @returns The newly created context
14
12
  */
15
- addContext: (server: string, email: string, token: string, enabled: boolean) => Promise<Context>;
13
+ addContext(server: string, email: string, token: string, enabled: boolean): Promise<Context>;
16
14
  /**
17
15
  * Update an existing context.
18
16
  * @returns The updated context
19
17
  */
20
- updateContext: (uuid: string, server: string, email: string, token: string, enabled: boolean) => Promise<Context>;
18
+ updateContext(uuid: string, server: string, email: string, token: string, enabled: boolean): Promise<Context>;
21
19
  /**
22
20
  * Get an existing context.
23
21
  * @returns The requested context
24
22
  */
25
- getContext: (uuid: string) => Promise<Context>;
23
+ getContext(uuid: string): Promise<Context>;
26
24
  /**
27
25
  * Delete a context.
28
26
  * @returns void
29
27
  */
30
- deleteContext: (uuid: string) => Promise<void>;
28
+ deleteContext(uuid: string): Promise<void>;
31
29
  /**
32
30
  * Patch the enabled property of a Context.
33
31
  * @returns Updated Context
34
32
  */
35
- patchContextEnabled: (uuid: string, enabled: boolean) => Promise<Context>;
33
+ patchContextEnabled(uuid: string, enabled: boolean): Promise<Context>;
36
34
  protected getEndpoint(endpoint: string): string;
37
35
  }
@@ -12,21 +12,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AgentContext = void 0;
13
13
  const Base_1 = require("../../../Base");
14
14
  class AgentContext extends Base_1.default {
15
- constructor(options, axios) {
16
- super(options, axios);
17
- /**
18
- * Retrieves all contexts.
19
- * @returns The requested contexts
20
- */
21
- this.getContexts = () => __awaiter(this, void 0, void 0, function* () {
15
+ /**
16
+ * Retrieves all contexts.
17
+ * @returns The requested contexts
18
+ */
19
+ getContexts() {
20
+ return __awaiter(this, void 0, void 0, function* () {
22
21
  const resp = yield this.axios.get(this.getEndpoint(`/v1/context`));
23
22
  return resp.data;
24
23
  });
25
- /**
26
- * Add a new context.
27
- * @returns The newly created context
28
- */
29
- this.addContext = (server, email, token, enabled) => __awaiter(this, void 0, void 0, function* () {
24
+ }
25
+ /**
26
+ * Add a new context.
27
+ * @returns The newly created context
28
+ */
29
+ addContext(server, email, token, enabled) {
30
+ return __awaiter(this, void 0, void 0, function* () {
30
31
  const resp = yield this.axios.post(this.getEndpoint(`/v1/context`), {
31
32
  server,
32
33
  email,
@@ -35,11 +36,13 @@ class AgentContext extends Base_1.default {
35
36
  });
36
37
  return resp.data;
37
38
  });
38
- /**
39
- * Update an existing context.
40
- * @returns The updated context
41
- */
42
- this.updateContext = (uuid, server, email, token, enabled) => __awaiter(this, void 0, void 0, function* () {
39
+ }
40
+ /**
41
+ * Update an existing context.
42
+ * @returns The updated context
43
+ */
44
+ updateContext(uuid, server, email, token, enabled) {
45
+ return __awaiter(this, void 0, void 0, function* () {
43
46
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/context/${uuid}`), {
44
47
  server,
45
48
  email,
@@ -48,26 +51,32 @@ class AgentContext extends Base_1.default {
48
51
  });
49
52
  return resp.data;
50
53
  });
51
- /**
52
- * Get an existing context.
53
- * @returns The requested context
54
- */
55
- this.getContext = (uuid) => __awaiter(this, void 0, void 0, function* () {
54
+ }
55
+ /**
56
+ * Get an existing context.
57
+ * @returns The requested context
58
+ */
59
+ getContext(uuid) {
60
+ return __awaiter(this, void 0, void 0, function* () {
56
61
  const resp = yield this.axios.get(this.getEndpoint(`/v1/context/${uuid}`));
57
62
  return resp.data;
58
63
  });
59
- /**
60
- * Delete a context.
61
- * @returns void
62
- */
63
- this.deleteContext = (uuid) => __awaiter(this, void 0, void 0, function* () {
64
+ }
65
+ /**
66
+ * Delete a context.
67
+ * @returns void
68
+ */
69
+ deleteContext(uuid) {
70
+ return __awaiter(this, void 0, void 0, function* () {
64
71
  yield this.axios.delete(this.getEndpoint(`/v1/context/${uuid}`));
65
72
  });
66
- /**
67
- * Patch the enabled property of a Context.
68
- * @returns Updated Context
69
- */
70
- this.patchContextEnabled = (uuid, enabled) => __awaiter(this, void 0, void 0, function* () {
73
+ }
74
+ /**
75
+ * Patch the enabled property of a Context.
76
+ * @returns Updated Context
77
+ */
78
+ patchContextEnabled(uuid, enabled) {
79
+ return __awaiter(this, void 0, void 0, function* () {
71
80
  const res = yield this.axios.patch(this.getEndpoint(`/v1/context/${uuid}/enabled`), {
72
81
  enabled,
73
82
  });
@@ -1,14 +1,16 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../Base";
1
+ import Base from "../../Base";
3
2
  import { AgentBundle } from "./bundle";
4
3
  import { DevBundle } from "./bundle/dev";
5
4
  import { AgentContext } from "./context";
6
5
  import { AgentInstaller } from "./installer";
7
6
  export default class Agent extends Base {
8
- context: AgentContext;
9
- bundle: AgentBundle;
10
- devBundle: DevBundle;
11
- installer: AgentInstaller;
12
- constructor(options: Options, axios: AxiosInstance);
7
+ get context(): AgentContext;
8
+ private _context?;
9
+ get bundle(): AgentBundle;
10
+ private _bundle?;
11
+ get devBundle(): DevBundle;
12
+ private _devBundle?;
13
+ get installer(): AgentInstaller;
14
+ private _installer?;
13
15
  protected getEndpoint(endpoint: string): string;
14
16
  }
@@ -6,12 +6,29 @@ const dev_1 = require("./bundle/dev");
6
6
  const context_1 = require("./context");
7
7
  const installer_1 = require("./installer");
8
8
  class Agent extends Base_1.default {
9
- constructor(options, axios) {
10
- super(options, axios);
11
- this.context = new context_1.AgentContext(this.options, this.axios);
12
- this.bundle = new bundle_1.AgentBundle(this.options, this.axios);
13
- this.devBundle = new dev_1.DevBundle(this.options, this.axios);
14
- this.installer = new installer_1.AgentInstaller(this.options, this.axios);
9
+ get context() {
10
+ if (this._context === undefined) {
11
+ this._context = new context_1.AgentContext(this.options, this.axios);
12
+ }
13
+ return this._context;
14
+ }
15
+ get bundle() {
16
+ if (this._bundle === undefined) {
17
+ this._bundle = new bundle_1.AgentBundle(this.options, this.axios);
18
+ }
19
+ return this._bundle;
20
+ }
21
+ get devBundle() {
22
+ if (this._devBundle === undefined) {
23
+ this._devBundle = new dev_1.DevBundle(this.options, this.axios);
24
+ }
25
+ return this._devBundle;
26
+ }
27
+ get installer() {
28
+ if (this._installer === undefined) {
29
+ this._installer = new installer_1.AgentInstaller(this.options, this.axios);
30
+ }
31
+ return this._installer;
15
32
  }
16
33
  getEndpoint(endpoint) {
17
34
  return `${this.options.server}/api/agent${endpoint}`;
@@ -1,15 +1,14 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../Base";
1
+ import Base from "../../Base";
3
2
  import { AuditLog } from "../../interfaces/auditor";
4
3
  import { PaginatedResponse, SearchParams, Version } from "../../interfaces/global";
5
4
  import { AuditorInternal } from "./internal";
6
5
  export default class Auditor extends Base {
7
- internal: AuditorInternal;
8
- constructor(options: Options, axios: AxiosInstance);
6
+ get internal(): AuditorInternal;
7
+ private _internal?;
9
8
  /**
10
9
  * @returns An object containing the endpoint version as a string
11
10
  */
12
- version: () => Promise<Version>;
11
+ version(): Promise<Version>;
13
12
  /**
14
13
  * Returns all audit logs for an organization which match the search filter
15
14
  * @param organizationName Name of the organization
@@ -19,8 +18,8 @@ export default class Auditor extends Base {
19
18
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
20
19
  * @returns Object containing an array of audit logs and the total number of results found in the database (independent of limit and page)
21
20
  */
22
- searchAuditLogs: ({ organizationName, filters, sorting, limit, page, }: SearchParams & {
21
+ searchAuditLogs({ organizationName, filters, sorting, limit, page, }: SearchParams & {
23
22
  organizationName: string;
24
- }) => Promise<PaginatedResponse<AuditLog>>;
23
+ }): Promise<PaginatedResponse<AuditLog>>;
25
24
  protected getEndpoint(endpoint: string): string;
26
25
  }
@@ -14,25 +14,32 @@ const paginatedResponseHelper_1 = require("../../helper/paginatedResponseHelper"
14
14
  const searchFilter_1 = require("../../helper/searchFilter");
15
15
  const internal_1 = require("./internal");
16
16
  class Auditor extends Base_1.default {
17
- constructor(options, axios) {
18
- super(options, axios);
19
- /**
20
- * @returns An object containing the endpoint version as a string
21
- */
22
- this.version = () => __awaiter(this, void 0, void 0, function* () {
17
+ get internal() {
18
+ if (this._internal === undefined) {
19
+ this._internal = new internal_1.AuditorInternal(this.options, this.axios);
20
+ }
21
+ return this._internal;
22
+ }
23
+ /**
24
+ * @returns An object containing the endpoint version as a string
25
+ */
26
+ version() {
27
+ return __awaiter(this, void 0, void 0, function* () {
23
28
  const resp = yield this.axios.get(this.getEndpoint("/v1/version"), {});
24
29
  return resp.data;
25
30
  });
26
- /**
27
- * Returns all audit logs for an organization which match the search filter
28
- * @param organizationName Name of the organization
29
- * @param filters (optional) Array of search filters
30
- * @param sorting (optional) Sorting object
31
- * @param limit (optional) Max number of results (1-100; defaults to 25)
32
- * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
33
- * @returns Object containing an array of audit logs and the total number of results found in the database (independent of limit and page)
34
- */
35
- this.searchAuditLogs = (_a) => __awaiter(this, [_a], void 0, function* ({ organizationName, filters, sorting, limit = 25, page = 0, }) {
31
+ }
32
+ /**
33
+ * Returns all audit logs for an organization which match the search filter
34
+ * @param organizationName Name of the organization
35
+ * @param filters (optional) Array of search filters
36
+ * @param sorting (optional) Sorting object
37
+ * @param limit (optional) Max number of results (1-100; defaults to 25)
38
+ * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
39
+ * @returns Object containing an array of audit logs and the total number of results found in the database (independent of limit and page)
40
+ */
41
+ searchAuditLogs(_a) {
42
+ return __awaiter(this, arguments, void 0, function* ({ organizationName, filters, sorting, limit = 25, page = 0, }) {
36
43
  const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
37
44
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${organizationName}/logs/search?page=${page}&limit=${limit}`), {
38
45
  filters: filtersDTO,
@@ -40,7 +47,6 @@ class Auditor extends Base_1.default {
40
47
  });
41
48
  return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
42
49
  });
43
- this.internal = new internal_1.AuditorInternal(this.options, this.axios);
44
50
  }
45
51
  getEndpoint(endpoint) {
46
52
  return `${this.options.server}/api/auditor${endpoint}`;