hcloud-sdk 18.0.0 → 19.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 (223) hide show
  1. package/changelog.md +86 -175
  2. package/lib/Hcloud.d.ts +18 -3
  3. package/lib/Hcloud.js +113 -21
  4. package/lib/helper/ErrorHelper.js +5 -2
  5. package/lib/helper/ValidationHelper.d.ts +6 -4
  6. package/lib/helper/ValidationHelper.js +30 -18
  7. package/lib/interfaces/agent/logging/cloudwatch.d.ts +23 -0
  8. package/lib/interfaces/agent/logging/index.d.ts +2 -0
  9. package/lib/interfaces/{fuse → agent/logging}/index.js +2 -3
  10. package/lib/interfaces/agent/logging/log-collector.d.ts +35 -0
  11. package/lib/interfaces/agent/logging/log-collector.js +2 -0
  12. package/lib/interfaces/agent/module/index.d.ts +7 -0
  13. package/lib/interfaces/agent/module/index.js +2 -0
  14. package/lib/interfaces/auditor/index.d.ts +0 -1
  15. package/lib/interfaces/auditor/index.js +0 -1
  16. package/lib/interfaces/axios/index.d.ts +5 -0
  17. package/lib/interfaces/cosmo/asset/index.d.ts +40 -9
  18. package/lib/interfaces/cosmo/asset/index.js +9 -1
  19. package/lib/interfaces/cosmo/comment/index.d.ts +4 -1
  20. package/lib/interfaces/cosmo/event/index.d.ts +34 -5
  21. package/lib/interfaces/cosmo/event/index.js +16 -2
  22. package/lib/interfaces/cosmo/share/index.d.ts +89 -7
  23. package/lib/interfaces/cosmo/share/index.js +21 -0
  24. package/lib/interfaces/cosmo/space/index.d.ts +6 -0
  25. package/lib/interfaces/cosmo/stats/index.d.ts +11 -0
  26. package/lib/interfaces/cosmo/stats/index.js +2 -0
  27. package/lib/interfaces/cosmo/tag/tag.d.ts +2 -1
  28. package/lib/interfaces/global/Products.d.ts +0 -1
  29. package/lib/interfaces/global/Products.js +0 -1
  30. package/lib/interfaces/global/Views.d.ts +0 -1
  31. package/lib/interfaces/global/Views.js +0 -1
  32. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
  33. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +1 -0
  34. package/lib/interfaces/high5/space/execution/index.d.ts +1 -0
  35. package/lib/interfaces/high5/space/job/index.d.ts +64 -19
  36. package/lib/interfaces/high5/space/job/index.js +9 -6
  37. package/lib/interfaces/high5/wave/dependentInputs.d.ts +42 -0
  38. package/lib/interfaces/high5/wave/dependentInputs.js +144 -0
  39. package/lib/interfaces/high5/wave/dependentInputsValidation.d.ts +22 -0
  40. package/lib/interfaces/high5/wave/dependentInputsValidation.js +220 -0
  41. package/lib/interfaces/idp/index.d.ts +3 -3
  42. package/lib/interfaces/idp/index.js +3 -3
  43. package/lib/interfaces/idp/oauth/device.d.ts +18 -0
  44. package/lib/interfaces/idp/oauth/device.js +2 -0
  45. package/lib/interfaces/idp/oauth/index.d.ts +17 -4
  46. package/lib/interfaces/idp/organization/index.d.ts +1 -0
  47. package/lib/interfaces/idp/organization/index.js +1 -0
  48. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +4 -0
  49. package/lib/interfaces/idp/user/Message.d.ts +1 -0
  50. package/lib/interfaces/idp/user/Scopes.d.ts +1 -9
  51. package/lib/interfaces/idp/user/Scopes.js +0 -12
  52. package/lib/interfaces/idp/user/index.d.ts +3 -0
  53. package/lib/interfaces/mailer/index.d.ts +20 -1
  54. package/lib/interfaces/mailer/index.js +14 -2
  55. package/lib/interfaces/nats/index.d.ts +30 -32
  56. package/lib/interfaces/nats/index.js +103 -117
  57. package/lib/interfaces/shorts/index.d.ts +7 -0
  58. package/lib/interfaces/shorts/index.js +6 -0
  59. package/lib/service/agent/bundle/dev/index.js +4 -1
  60. package/lib/service/agent/bundle/index.js +4 -1
  61. package/lib/service/agent/context/index.js +4 -1
  62. package/lib/service/agent/index.d.ts +6 -0
  63. package/lib/service/agent/index.js +18 -1
  64. package/lib/service/agent/installer/index.js +4 -1
  65. package/lib/service/agent/logging/index.d.ts +69 -0
  66. package/lib/service/agent/logging/index.js +117 -0
  67. package/lib/service/agent/module/index.d.ts +36 -0
  68. package/lib/service/agent/module/index.js +65 -0
  69. package/lib/service/auditor/index.js +4 -1
  70. package/lib/service/auditor/internal/index.js +4 -1
  71. package/lib/service/bouncer/features/index.js +4 -1
  72. package/lib/service/bouncer/index.js +5 -2
  73. package/lib/service/cosmo/asset/index.d.ts +49 -3
  74. package/lib/service/cosmo/asset/index.js +111 -5
  75. package/lib/service/cosmo/comment/index.d.ts +7 -36
  76. package/lib/service/cosmo/comment/index.js +18 -43
  77. package/lib/service/cosmo/event/index.js +4 -1
  78. package/lib/service/cosmo/folder/index.js +4 -1
  79. package/lib/service/cosmo/index.d.ts +3 -0
  80. package/lib/service/cosmo/index.js +11 -1
  81. package/lib/service/cosmo/internal/index.js +4 -1
  82. package/lib/service/cosmo/internal/space/index.js +4 -1
  83. package/lib/service/cosmo/location/index.js +4 -1
  84. package/lib/service/cosmo/namespace/index.d.ts +15 -1
  85. package/lib/service/cosmo/namespace/index.js +21 -1
  86. package/lib/service/cosmo/organization/index.js +4 -1
  87. package/lib/service/cosmo/permissions/index.js +4 -1
  88. package/lib/service/cosmo/production/index.js +4 -1
  89. package/lib/service/cosmo/share/index.d.ts +37 -29
  90. package/lib/service/cosmo/share/index.js +47 -35
  91. package/lib/service/cosmo/space/index.d.ts +28 -1
  92. package/lib/service/cosmo/space/index.js +45 -1
  93. package/lib/service/cosmo/stats/index.d.ts +35 -0
  94. package/lib/service/cosmo/stats/index.js +58 -0
  95. package/lib/service/cosmo/tag/index.js +4 -1
  96. package/lib/service/dali/DaliAvatar.d.ts +0 -6
  97. package/lib/service/dali/DaliAvatar.js +4 -11
  98. package/lib/service/dali/avatar/DaliCosmoSpace.js +4 -1
  99. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +2 -1
  100. package/lib/service/dali/avatar/DaliHigh5Pool.js +5 -2
  101. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +2 -1
  102. package/lib/service/dali/avatar/DaliHigh5Space.js +5 -2
  103. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +2 -1
  104. package/lib/service/dali/avatar/DaliOAuthApp.js +5 -2
  105. package/lib/service/dali/avatar/DaliOrganization.d.ts +2 -1
  106. package/lib/service/dali/avatar/DaliOrganization.js +5 -2
  107. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +1 -1
  108. package/lib/service/dali/avatar/DaliServiceAccount.js +6 -3
  109. package/lib/service/dali/avatar/DaliTeam.d.ts +2 -1
  110. package/lib/service/dali/avatar/DaliTeam.js +5 -2
  111. package/lib/service/dali/avatar/DaliUser.d.ts +2 -1
  112. package/lib/service/dali/avatar/DaliUser.js +5 -2
  113. package/lib/service/dali/index.js +4 -1
  114. package/lib/service/high5/execution/index.js +4 -1
  115. package/lib/service/high5/execution/log/index.js +4 -1
  116. package/lib/service/high5/execution/status/index.js +4 -1
  117. package/lib/service/high5/index.js +4 -1
  118. package/lib/service/high5/internal/index.js +4 -1
  119. package/lib/service/high5/internal/space/index.js +4 -1
  120. package/lib/service/high5/internal/space/job/index.js +4 -1
  121. package/lib/service/high5/internal/space/job/log/index.js +4 -1
  122. package/lib/service/high5/joinToken/index.js +4 -1
  123. package/lib/service/high5/space/database/document/array/index.js +4 -1
  124. package/lib/service/high5/space/database/document/index.js +4 -1
  125. package/lib/service/high5/space/database/document/number/index.js +4 -1
  126. package/lib/service/high5/space/database/index.js +4 -1
  127. package/lib/service/high5/space/event/index.js +4 -1
  128. package/lib/service/high5/space/event/stream/design/DesignOperations.js +4 -1
  129. package/lib/service/high5/space/event/stream/design/index.js +6 -3
  130. package/lib/service/high5/space/event/stream/design/snapshot/index.js +4 -1
  131. package/lib/service/high5/space/event/stream/index.js +4 -1
  132. package/lib/service/high5/space/execution/index.js +4 -1
  133. package/lib/service/high5/space/execution/log/index.js +4 -1
  134. package/lib/service/high5/space/execution/status/index.js +4 -1
  135. package/lib/service/high5/space/index.d.ts +10 -0
  136. package/lib/service/high5/space/index.js +25 -5
  137. package/lib/service/high5/space/job/index.js +4 -1
  138. package/lib/service/high5/space/job/log/index.js +4 -1
  139. package/lib/service/high5/space/node/index.js +4 -1
  140. package/lib/service/high5/space/pool/index.d.ts +11 -0
  141. package/lib/service/high5/space/pool/index.js +22 -1
  142. package/lib/service/high5/space/secret/index.js +4 -1
  143. package/lib/service/high5/space/stat/index.js +4 -1
  144. package/lib/service/high5/space/wave/index.js +4 -1
  145. package/lib/service/high5/space/webhook/index.js +4 -1
  146. package/lib/service/high5/space/webhook/log/index.js +4 -1
  147. package/lib/service/high5/stat/index.js +4 -1
  148. package/lib/service/high5/wave/index.js +4 -1
  149. package/lib/service/high5/wave/s3/index.js +5 -2
  150. package/lib/service/idp/guest/index.js +4 -1
  151. package/lib/service/idp/index.js +4 -1
  152. package/lib/service/idp/internal/index.js +4 -1
  153. package/lib/service/idp/oauth/device.d.ts +131 -0
  154. package/lib/service/idp/oauth/device.js +177 -0
  155. package/lib/service/idp/oauth/index.d.ts +3 -0
  156. package/lib/service/idp/oauth/index.js +11 -1
  157. package/lib/service/idp/organization/index.d.ts +9 -0
  158. package/lib/service/idp/organization/index.js +22 -3
  159. package/lib/service/idp/organization/license/index.js +4 -1
  160. package/lib/service/idp/organization/member/index.js +5 -2
  161. package/lib/service/idp/organization/member/invitations/index.d.ts +19 -0
  162. package/lib/service/idp/organization/member/invitations/index.js +23 -1
  163. package/lib/service/idp/organization/service-accounts/index.d.ts +11 -1
  164. package/lib/service/idp/organization/service-accounts/index.js +22 -2
  165. package/lib/service/idp/organization/settings/domain/index.js +4 -1
  166. package/lib/service/idp/organization/settings/domain/saml/index.js +4 -1
  167. package/lib/service/idp/organization/settings/index.js +4 -1
  168. package/lib/service/idp/organization/settings/oauth/index.d.ts +10 -0
  169. package/lib/service/idp/organization/settings/oauth/index.js +21 -1
  170. package/lib/service/idp/organization/stat/index.js +4 -1
  171. package/lib/service/idp/organization/team/index.d.ts +10 -0
  172. package/lib/service/idp/organization/team/index.js +21 -1
  173. package/lib/service/idp/registration/index.js +4 -1
  174. package/lib/service/idp/user/index.d.ts +8 -0
  175. package/lib/service/idp/user/index.js +20 -3
  176. package/lib/service/idp/user/license/index.js +4 -1
  177. package/lib/service/idp/user/message/index.d.ts +1 -0
  178. package/lib/service/idp/user/message/index.js +4 -1
  179. package/lib/service/idp/user/password/index.js +4 -1
  180. package/lib/service/idp/user/settings/connections/index.js +4 -1
  181. package/lib/service/idp/user/settings/general/index.js +4 -1
  182. package/lib/service/idp/user/settings/index.js +4 -1
  183. package/lib/service/idp/user/settings/notifications/index.js +4 -1
  184. package/lib/service/idp/user/settings/oauthApps/index.js +4 -1
  185. package/lib/service/idp/user/settings/pats/index.js +4 -1
  186. package/lib/service/idp/user/settings/twoFactor/index.js +4 -1
  187. package/lib/service/idp/user/settings/twoFactor/totp/index.js +4 -1
  188. package/lib/service/mailer/index.js +5 -2
  189. package/lib/service/mailer/internal/index.d.ts +2 -2
  190. package/lib/service/mailer/internal/index.js +5 -2
  191. package/lib/service/mothership/index.js +4 -1
  192. package/lib/service/nats/index.d.ts +7 -0
  193. package/lib/service/nats/index.js +19 -1
  194. package/lib/service/shorts/index.js +4 -1
  195. package/lib/service/shorts/internal/index.d.ts +6 -3
  196. package/lib/service/shorts/internal/index.js +20 -6
  197. package/lib/utils/bouncer/features/Provider.js +0 -1
  198. package/package.json +2 -2
  199. package/lib/interfaces/fuse/index.d.ts +0 -3
  200. package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +0 -38
  201. package/lib/interfaces/fuse/space/cronjob/Cronjob.js +0 -8
  202. package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +0 -16
  203. package/lib/interfaces/fuse/space/index.d.ts +0 -22
  204. package/lib/interfaces/fuse/space/index.js +0 -11
  205. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +0 -32
  206. package/lib/service/dali/avatar/DaliFuseSpace.js +0 -59
  207. package/lib/service/fuse/index.d.ts +0 -20
  208. package/lib/service/fuse/index.js +0 -48
  209. package/lib/service/fuse/internal/index.d.ts +0 -10
  210. package/lib/service/fuse/internal/index.js +0 -32
  211. package/lib/service/fuse/internal/space/cronjob/index.d.ts +0 -7
  212. package/lib/service/fuse/internal/space/cronjob/index.js +0 -17
  213. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +0 -17
  214. package/lib/service/fuse/internal/space/cronjob/log/index.js +0 -34
  215. package/lib/service/fuse/internal/space/index.d.ts +0 -26
  216. package/lib/service/fuse/internal/space/index.js +0 -51
  217. package/lib/service/fuse/space/cronjob/index.d.ts +0 -145
  218. package/lib/service/fuse/space/cronjob/index.js +0 -201
  219. package/lib/service/fuse/space/cronjob/log/index.d.ts +0 -35
  220. package/lib/service/fuse/space/cronjob/log/index.js +0 -58
  221. package/lib/service/fuse/space/index.d.ts +0 -97
  222. package/lib/service/fuse/space/index.js +0 -153
  223. /package/lib/interfaces/{fuse/space/cronjob/CronjobLog.js → agent/logging/cloudwatch.js} +0 -0
@@ -3,7 +3,7 @@ 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, _s, _t, _u, _v, _w, _x, _y;
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.NatsSubjects = exports.NatsSubject = exports.NatsObjectType = exports.NatsMessageType = void 0;
9
9
  var NatsSubject;
@@ -52,18 +52,17 @@ var NatsSubject;
52
52
  NatsSubject["HIGH5_DOCUMENTS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.databases.${base64databaseName}.documents";
53
53
  NatsSubject["HIGH5_JOBS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.jobs";
54
54
  NatsSubject["HIGH5_JOB_LOGS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.jobs.${jobId}.logs";
55
- NatsSubject["FUSE_SPACES"] = "hcloud.fuse.organization.${base64orgName}.spaces";
56
- NatsSubject["FUSE_SPACE_PERMISSIONS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.permissions";
57
- NatsSubject["FUSE_JOBS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs";
58
- NatsSubject["FUSE_JOB_LOGS"] = "hcloud.fuse.organization.${base64orgName}.spaces.${base64spaceName}.jobs.${jobId}.logs";
59
55
  NatsSubject["COSMO_SPACES"] = "hcloud.cosmo.organization.${base64orgName}.spaces";
60
56
  NatsSubject["COSMO_NAMESPACES"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces";
61
57
  NatsSubject["COSMO_ASSETS"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.assets";
58
+ NatsSubject["COSMO_CROSS_SPACES_ASSETS"] = "hcloud.cosmo.organization.${base64orgName}.spaces.*.assets";
62
59
  NatsSubject["COSMO_COMMENTS"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.assets.${assetId}.comments";
63
60
  NatsSubject["COSMO_SHARE"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.share";
64
- NatsSubject["COSMO_TAGS"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.tags";
61
+ NatsSubject["COSMO_TAGS_NAMESPACE"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.tags";
62
+ NatsSubject["COSMO_TAGS_ASSET"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.assets.${assetId}.tags";
65
63
  NatsSubject["COSMO_ROLES"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.roles";
66
- NatsSubject["COSMO_STATUS"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.status";
64
+ NatsSubject["COSMO_STATUS"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.assets.${assetId}.status";
65
+ NatsSubject["COSMO_METADATA"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces.${base64namespaceName}.metadata";
67
66
  NatsSubject["MOTHERSHIP_AGENT_CONNECTION"] = "hcloud.mothership.organization.${base64orgName}.agent.connection";
68
67
  NatsSubject["AUDITOR_LOGS"] = "hcloud.auditor.organization.${base64orgName}.logs";
69
68
  NatsSubject["DEBUG_NAMESPACE"] = "hcloud.debug.namespace.${product}";
@@ -107,9 +106,6 @@ var NatsObjectType;
107
106
  NatsObjectType["JOB"] = "JOB";
108
107
  NatsObjectType["JOB_ID"] = "JOB_ID";
109
108
  NatsObjectType["JOB_LOG"] = "JOB_LOG";
110
- NatsObjectType["CRONJOB"] = "CRONJOB";
111
- NatsObjectType["CRONJOB_ID"] = "CRONJOB_ID";
112
- NatsObjectType["CRONJOB_LOG"] = "CRONJOB_LOG";
113
109
  NatsObjectType["DATABASE"] = "DATABASE";
114
110
  NatsObjectType["DOCUMENT"] = "DOCUMENT";
115
111
  NatsObjectType["AGENT"] = "AGENT";
@@ -123,6 +119,7 @@ var NatsObjectType;
123
119
  NatsObjectType["FOLDER"] = "FOLDER";
124
120
  NatsObjectType["ROLE"] = "ROLE";
125
121
  NatsObjectType["STATUS"] = "STATUS";
122
+ NatsObjectType["REFERENCE"] = "REFERENCE";
126
123
  })(NatsObjectType || (exports.NatsObjectType = NatsObjectType = {}));
127
124
  /**
128
125
  * This helper class creates subject strings to be used with nats.subscribe and nats.publish
@@ -224,43 +221,19 @@ NatsSubjects.IDP = (_a = class {
224
221
  },
225
222
  _d),
226
223
  _a);
227
- NatsSubjects.Fuse = (_f = class {
224
+ NatsSubjects.High5 = (_f = class {
228
225
  },
229
- __setFunctionName(_f, "Fuse"),
230
- _f.SPACES = (organizationName) => {
231
- return NatsSubjects.replace(NatsSubject.FUSE_SPACES, { organizationName });
232
- },
233
- _f.Space = (_g = class {
226
+ __setFunctionName(_f, "High5"),
227
+ _f.Execution = (_g = class {
234
228
  },
235
- __setFunctionName(_g, "Space"),
236
- _g.PERMISSIONS = (organizationName, spaceName) => {
237
- return NatsSubjects.replace(NatsSubject.FUSE_SPACE_PERMISSIONS, { organizationName, spaceName });
238
- },
239
- _g.Jobs = (_h = class {
240
- },
241
- __setFunctionName(_h, "Jobs"),
242
- _h.JOBS = (organizationName, spaceName) => {
243
- return NatsSubjects.replace(NatsSubject.FUSE_JOBS, { organizationName, spaceName });
244
- },
245
- _h.JOB_LOGS = (organizationName, spaceName, jobId) => {
246
- return NatsSubjects.replace(NatsSubject.FUSE_JOB_LOGS, { organizationName, spaceName, jobId });
247
- },
248
- _h),
249
- _g),
250
- _f);
251
- NatsSubjects.High5 = (_j = class {
252
- },
253
- __setFunctionName(_j, "High5"),
254
- _j.Execution = (_k = class {
255
- },
256
- __setFunctionName(_k, "Execution"),
257
- _k.EXECUTE = (organizationId, email) => {
229
+ __setFunctionName(_g, "Execution"),
230
+ _g.EXECUTE = (organizationId, email) => {
258
231
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_EXECUTE, { organizationId, email });
259
232
  },
260
- _k.CANCEL = (organizationId, email) => {
233
+ _g.CANCEL = (organizationId, email) => {
261
234
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_CANCEL, { organizationId, email });
262
235
  },
263
- _k.DEBUG = (organizationId, email) => {
236
+ _g.DEBUG = (organizationId, email) => {
264
237
  return {
265
238
  STOPPED: function (executionId) {
266
239
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_DEBUG_STOPPED, {
@@ -278,42 +251,42 @@ NatsSubjects.High5 = (_j = class {
278
251
  },
279
252
  };
280
253
  },
281
- _k),
282
- _j.SPACES = (organizationName) => {
254
+ _g),
255
+ _f.SPACES = (organizationName) => {
283
256
  return NatsSubjects.replace(NatsSubject.HIGH5_SPACES, { organizationName });
284
257
  },
285
- _j.Space = (_l = class {
258
+ _f.Space = (_h = class {
286
259
  },
287
- __setFunctionName(_l, "Space"),
288
- _l.POOLS = (organizationName, spaceName) => {
260
+ __setFunctionName(_h, "Space"),
261
+ _h.POOLS = (organizationName, spaceName) => {
289
262
  return NatsSubjects.replace(NatsSubject.HIGH5_SPACES_POOLS, { organizationName, spaceName });
290
263
  },
291
- _l.POOL = (organizationName, spaceName, poolName) => {
264
+ _h.POOL = (organizationName, spaceName, poolName) => {
292
265
  return NatsSubjects.replace(NatsSubject.HIGH5_SPACES_POOL, { organizationName, spaceName, poolName });
293
266
  },
294
- _l.PERMISSIONS = (organizationName, spaceName) => {
267
+ _h.PERMISSIONS = (organizationName, spaceName) => {
295
268
  return NatsSubjects.replace(NatsSubject.HIGH5_SPACE_PERMISSIONS, { organizationName, spaceName });
296
269
  },
297
- _l.EVENTS = (organizationName, spaceName) => {
270
+ _h.EVENTS = (organizationName, spaceName) => {
298
271
  return NatsSubjects.replace(NatsSubject.HIGH5_EVENTS, { organizationName, spaceName });
299
272
  },
300
- _l.STREAMS = (organizationName, spaceName) => {
273
+ _h.STREAMS = (organizationName, spaceName) => {
301
274
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAMS, { organizationName, spaceName });
302
275
  },
303
- _l.Event = (_m = class {
276
+ _h.Event = (_j = class {
304
277
  },
305
- __setFunctionName(_m, "Event"),
306
- _m.STREAMS = (organizationName, spaceName, eventName) => {
278
+ __setFunctionName(_j, "Event"),
279
+ _j.STREAMS = (organizationName, spaceName, eventName) => {
307
280
  return NatsSubjects.replace(NatsSubject.HIGH5_EVENT_STREAMS, {
308
281
  organizationName,
309
282
  spaceName,
310
283
  eventName,
311
284
  });
312
285
  },
313
- _m.Stream = (_o = class {
286
+ _j.Stream = (_k = class {
314
287
  },
315
- __setFunctionName(_o, "Stream"),
316
- _o.DESIGN = (organizationName, spaceName, eventName, streamId) => {
288
+ __setFunctionName(_k, "Stream"),
289
+ _k.DESIGN = (organizationName, spaceName, eventName, streamId) => {
317
290
  return NatsSubjects.replace(NatsSubject.High5_DESIGN, {
318
291
  organizationName,
319
292
  spaceName,
@@ -321,7 +294,7 @@ NatsSubjects.High5 = (_j = class {
321
294
  streamId,
322
295
  });
323
296
  },
324
- _o.DESIGN_DELTA = (organizationName, spaceName, eventName, streamId) => {
297
+ _k.DESIGN_DELTA = (organizationName, spaceName, eventName, streamId) => {
325
298
  return NatsSubjects.replace(NatsSubject.High5_DESIGN_DELTA, {
326
299
  organizationName,
327
300
  spaceName,
@@ -329,7 +302,7 @@ NatsSubjects.High5 = (_j = class {
329
302
  streamId,
330
303
  });
331
304
  },
332
- _o.SNAPSHOTS = (organizationName, spaceName, eventName, streamId) => {
305
+ _k.SNAPSHOTS = (organizationName, spaceName, eventName, streamId) => {
333
306
  return NatsSubjects.replace(NatsSubject.HIGH5_SNAPSHOTS, {
334
307
  organizationName,
335
308
  spaceName,
@@ -337,122 +310,135 @@ NatsSubjects.High5 = (_j = class {
337
310
  streamId,
338
311
  });
339
312
  },
340
- _o),
341
- _m),
342
- _l.SECRETS = (organizationName, spaceName) => {
313
+ _k),
314
+ _j),
315
+ _h.SECRETS = (organizationName, spaceName) => {
343
316
  return NatsSubjects.replace(NatsSubject.HIGH5_SECRETS, { organizationName, spaceName });
344
317
  },
345
- _l.WEBHOOKS = (organizationName, spaceName) => {
318
+ _h.WEBHOOKS = (organizationName, spaceName) => {
346
319
  return NatsSubjects.replace(NatsSubject.HIGH5_WEBHOOKS, { organizationName, spaceName });
347
320
  },
348
- _l.Webhook = (_p = class {
321
+ _h.Webhook = (_l = class {
349
322
  },
350
- __setFunctionName(_p, "Webhook"),
351
- _p.LOGS = (organizationName, spaceName, webhookId) => {
323
+ __setFunctionName(_l, "Webhook"),
324
+ _l.LOGS = (organizationName, spaceName, webhookId) => {
352
325
  return NatsSubjects.replace(NatsSubject.HIGH5_WEBHOOK_LOGS, {
353
326
  organizationName,
354
327
  spaceName,
355
328
  webhookId,
356
329
  });
357
330
  },
358
- _p),
359
- _l.SETTINGS = (organizationName, spaceName) => {
331
+ _l),
332
+ _h.SETTINGS = (organizationName, spaceName) => {
360
333
  return NatsSubjects.replace(NatsSubject.HIGH5_SETTINGS, { organizationName, spaceName });
361
334
  },
362
- _l.CATALOGS = (organizationName, spaceName) => {
335
+ _h.CATALOGS = (organizationName, spaceName) => {
363
336
  return NatsSubjects.replace(NatsSubject.HIGH5_CATALOGS, { organizationName, spaceName });
364
337
  },
365
- _l.NODES = (organizationName, spaceName) => {
338
+ _h.NODES = (organizationName, spaceName) => {
366
339
  return NatsSubjects.replace(NatsSubject.HIGH5_NODES, { organizationName, spaceName });
367
340
  },
368
- _l.DATABASES = (organizationName, spaceName) => {
341
+ _h.DATABASES = (organizationName, spaceName) => {
369
342
  return NatsSubjects.replace(NatsSubject.HIGH5_DATABASES, { organizationName, spaceName });
370
343
  },
371
- _l.Database = (_q = class {
344
+ _h.Database = (_m = class {
372
345
  },
373
- __setFunctionName(_q, "Database"),
374
- _q.DOCUMENTS = (organizationName, spaceName, databaseName) => {
346
+ __setFunctionName(_m, "Database"),
347
+ _m.DOCUMENTS = (organizationName, spaceName, databaseName) => {
375
348
  return NatsSubjects.replace(NatsSubject.HIGH5_DOCUMENTS, {
376
349
  organizationName,
377
350
  spaceName,
378
351
  databaseName,
379
352
  });
380
353
  },
381
- _q),
382
- _l.Jobs = (_r = class {
354
+ _m),
355
+ _h.Jobs = (_o = class {
383
356
  },
384
- __setFunctionName(_r, "Jobs"),
385
- _r.JOBS = (organizationName, spaceName) => {
357
+ __setFunctionName(_o, "Jobs"),
358
+ _o.JOBS = (organizationName, spaceName) => {
386
359
  return NatsSubjects.replace(NatsSubject.HIGH5_JOBS, { organizationName, spaceName });
387
360
  },
388
- _r.JOB_LOGS = (organizationName, spaceName, jobId) => {
361
+ _o.JOB_LOGS = (organizationName, spaceName, jobId) => {
389
362
  return NatsSubjects.replace(NatsSubject.HIGH5_JOB_LOGS, { organizationName, spaceName, jobId });
390
363
  },
391
- _r),
392
- _l),
393
- _j.WAVE = (_s = class {
364
+ _o),
365
+ _h),
366
+ _f.WAVE = (_p = class {
394
367
  },
395
- __setFunctionName(_s, "WAVE"),
396
- _s.ENGINE = (_t = class {
368
+ __setFunctionName(_p, "WAVE"),
369
+ _p.ENGINE = (_q = class {
397
370
  },
398
- __setFunctionName(_t, "ENGINE"),
399
- _t.LATEST = NatsSubject.HIGH5_WAVE_ENGINE_LATEST,
400
- _t),
401
- _s),
402
- _j);
403
- NatsSubjects.Mothership = (_u = class {
371
+ __setFunctionName(_q, "ENGINE"),
372
+ _q.LATEST = NatsSubject.HIGH5_WAVE_ENGINE_LATEST,
373
+ _q),
374
+ _p),
375
+ _f);
376
+ NatsSubjects.Mothership = (_r = class {
404
377
  },
405
- __setFunctionName(_u, "Mothership"),
406
- _u.CONNECTION = (organizationName) => {
378
+ __setFunctionName(_r, "Mothership"),
379
+ _r.CONNECTION = (organizationName) => {
407
380
  return NatsSubjects.replace(NatsSubject.MOTHERSHIP_AGENT_CONNECTION, { organizationName });
408
381
  },
409
- _u);
410
- NatsSubjects.Auditor = (_v = class {
382
+ _r);
383
+ NatsSubjects.Auditor = (_s = class {
411
384
  },
412
- __setFunctionName(_v, "Auditor"),
413
- _v.LOGS = (organizationName) => {
385
+ __setFunctionName(_s, "Auditor"),
386
+ _s.LOGS = (organizationName) => {
414
387
  return NatsSubjects.replace(NatsSubject.AUDITOR_LOGS, { organizationName });
415
388
  },
416
- _v);
389
+ _s);
417
390
  NatsSubjects.Logging = (product) => {
418
391
  return NatsSubjects.replace(NatsSubject.DEBUG_NAMESPACE, { product });
419
392
  };
420
- NatsSubjects.Cosmo = (_w = class {
393
+ NatsSubjects.Cosmo = (_t = class {
421
394
  },
422
- __setFunctionName(_w, "Cosmo"),
423
- _w.SPACES = (organizationName) => {
395
+ __setFunctionName(_t, "Cosmo"),
396
+ _t.SPACES = (organizationName) => {
424
397
  return NatsSubjects.replace(NatsSubject.COSMO_SPACES, { organizationName });
425
398
  },
426
- _w.Space = (_x = class {
399
+ _t.Space = (_u = class {
427
400
  },
428
- __setFunctionName(_x, "Space"),
429
- _x.NAMESPACES = (organizationName, spaceName) => {
401
+ __setFunctionName(_u, "Space"),
402
+ _u.NAMESPACES = (organizationName, spaceName) => {
430
403
  return NatsSubjects.replace(NatsSubject.COSMO_NAMESPACES, { organizationName, spaceName });
431
404
  },
432
- _x.Namespace = (_y = class {
433
- },
434
- __setFunctionName(_y, "Namespace"),
435
- _y.COMMENTS = (organizationName, spaceName, namespaceName, assetId) => {
436
- return NatsSubjects.replace(NatsSubject.COSMO_COMMENTS, { organizationName, spaceName, namespaceName, assetId });
405
+ _u.Namespace = (_v = class {
437
406
  },
438
- _y.TAGS = (organizationName, spaceName, namespaceName) => {
439
- return NatsSubjects.replace(NatsSubject.COSMO_TAGS, { organizationName, spaceName, namespaceName });
407
+ __setFunctionName(_v, "Namespace"),
408
+ _v.TAGS = (organizationName, spaceName, namespaceName) => {
409
+ return NatsSubjects.replace(NatsSubject.COSMO_TAGS_NAMESPACE, { organizationName, spaceName, namespaceName });
440
410
  },
441
- _y.STATUS = (organizationName, spaceName, namespaceName) => {
442
- return NatsSubjects.replace(NatsSubject.COSMO_STATUS, { organizationName, spaceName, namespaceName });
411
+ _v.METADATA = (organizationName, spaceName, namespaceName) => {
412
+ return NatsSubjects.replace(NatsSubject.COSMO_METADATA, { organizationName, spaceName, namespaceName });
443
413
  },
444
- _y),
445
- _x.ASSETS = (organizationName, spaceName) => {
414
+ _v),
415
+ _u.ASSETS = (organizationName, spaceName) => {
446
416
  return NatsSubjects.replace(NatsSubject.COSMO_ASSETS, { organizationName, spaceName });
447
417
  },
448
- _x.SHARES = (organizationName, spaceName) => {
418
+ _u.SHARES = (organizationName, spaceName) => {
449
419
  return NatsSubjects.replace(NatsSubject.COSMO_SHARE, { organizationName, spaceName });
450
420
  },
451
- _x.ROLES = (organizationName, spaceName) => {
421
+ _u.ROLES = (organizationName, spaceName) => {
452
422
  return NatsSubjects.replace(NatsSubject.COSMO_ROLES, { organizationName, spaceName });
453
423
  },
454
- _x),
455
- _w);
424
+ _u.Asset = (_w = class {
425
+ },
426
+ __setFunctionName(_w, "Asset"),
427
+ _w.COMMENTS = (organizationName, spaceName, namespaceName, assetId) => {
428
+ return NatsSubjects.replace(NatsSubject.COSMO_COMMENTS, { organizationName, spaceName, namespaceName, assetId });
429
+ },
430
+ _w.TAGS = (organizationName, spaceName, namespaceName, assetId) => {
431
+ return NatsSubjects.replace(NatsSubject.COSMO_TAGS_ASSET, { organizationName, spaceName, namespaceName, assetId });
432
+ },
433
+ _w.STATUS = (organizationName, spaceName, namespaceName, assetId) => {
434
+ return NatsSubjects.replace(NatsSubject.COSMO_STATUS, { organizationName, spaceName, namespaceName, assetId });
435
+ },
436
+ _w),
437
+ _u),
438
+ _t.ASSETS = (organizationName) => {
439
+ return NatsSubjects.replace(NatsSubject.COSMO_CROSS_SPACES_ASSETS, { organizationName });
440
+ },
441
+ _t);
456
442
  // eslint-disable-next-line complexity
457
443
  NatsSubjects.replace = (subject, replacements) => {
458
444
  subject = subject.replace("${userId}", replacements.userId || "null");
@@ -2,9 +2,16 @@ export interface Short {
2
2
  _id: string;
3
3
  url: string;
4
4
  slug: string;
5
+ shortUrl: string;
5
6
  visitsLimit: number;
6
7
  visitsCurrent: number;
7
8
  organizationId: string;
8
9
  spaceId: string;
9
10
  createDate: number;
11
+ expireDate?: number;
12
+ type: ShortType;
13
+ }
14
+ export declare enum ShortType {
15
+ GENERIC = "GENERIC",
16
+ COSMO = "COSMO"
10
17
  }
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShortType = void 0;
4
+ var ShortType;
5
+ (function (ShortType) {
6
+ ShortType["GENERIC"] = "GENERIC";
7
+ ShortType["COSMO"] = "COSMO";
8
+ })(ShortType || (exports.ShortType = ShortType = {}));
@@ -8,9 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.DevBundle = void 0;
13
- const Base_1 = require("../../../../Base");
16
+ const Base_1 = __importDefault(require("../../../../Base"));
14
17
  class DevBundle extends Base_1.default {
15
18
  constructor(options, axios) {
16
19
  super(options, axios);
@@ -8,9 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.AgentBundle = void 0;
13
- const Base_1 = require("../../../Base");
16
+ const Base_1 = __importDefault(require("../../../Base"));
14
17
  const axios_1 = require("../../../interfaces/axios");
15
18
  class AgentBundle extends Base_1.default {
16
19
  constructor(options, axios) {
@@ -8,9 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.AgentContext = void 0;
13
- const Base_1 = require("../../../Base");
16
+ const Base_1 = __importDefault(require("../../../Base"));
14
17
  class AgentContext extends Base_1.default {
15
18
  /**
16
19
  * Retrieves all contexts.
@@ -3,6 +3,8 @@ import { AgentBundle } from "./bundle";
3
3
  import { DevBundle } from "./bundle/dev";
4
4
  import { AgentContext } from "./context";
5
5
  import { AgentInstaller } from "./installer";
6
+ import { AgentLogging } from "./logging";
7
+ import { AgentModule } from "./module";
6
8
  export default class Agent extends Base {
7
9
  get context(): AgentContext;
8
10
  private _context?;
@@ -12,5 +14,9 @@ export default class Agent extends Base {
12
14
  private _devBundle?;
13
15
  get installer(): AgentInstaller;
14
16
  private _installer?;
17
+ get logging(): AgentLogging;
18
+ private _logging?;
19
+ get module(): AgentModule;
20
+ private _module?;
15
21
  protected getEndpoint(endpoint: string): string;
16
22
  }
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Base_1 = require("../../Base");
6
+ const Base_1 = __importDefault(require("../../Base"));
4
7
  const bundle_1 = require("./bundle");
5
8
  const dev_1 = require("./bundle/dev");
6
9
  const context_1 = require("./context");
7
10
  const installer_1 = require("./installer");
11
+ const logging_1 = require("./logging");
12
+ const module_1 = require("./module");
8
13
  class Agent extends Base_1.default {
9
14
  get context() {
10
15
  if (this._context === undefined) {
@@ -30,6 +35,18 @@ class Agent extends Base_1.default {
30
35
  }
31
36
  return this._installer;
32
37
  }
38
+ get logging() {
39
+ if (this._logging === undefined) {
40
+ this._logging = new logging_1.AgentLogging(this.options, this.axios);
41
+ }
42
+ return this._logging;
43
+ }
44
+ get module() {
45
+ if (this._module === undefined) {
46
+ this._module = new module_1.AgentModule(this.options, this.axios);
47
+ }
48
+ return this._module;
49
+ }
33
50
  getEndpoint(endpoint) {
34
51
  return `${this.options.server}/api/agent${endpoint}`;
35
52
  }
@@ -8,9 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.AgentInstaller = void 0;
13
- const Base_1 = require("../../../Base");
16
+ const Base_1 = __importDefault(require("../../../Base"));
14
17
  const axios_1 = require("../../../interfaces/axios");
15
18
  class AgentInstaller extends Base_1.default {
16
19
  constructor(options, axios) {
@@ -0,0 +1,69 @@
1
+ import Base, { MaybeRaw } from "../../../Base";
2
+ import { AddCloudWatchDto, AddLogCollectorDto, CloudWatchDto, LogCollectorDto } from "../../../interfaces/agent/logging";
3
+ export declare class AgentLogging extends Base {
4
+ /**
5
+ * Retrieves a list of all currently registered and connected external logging destinations.
6
+ * @returns List of active external log collector configurations
7
+ */
8
+ getLogCollectors<R extends boolean = false>(raw?: {
9
+ raw: R;
10
+ }): Promise<MaybeRaw<R, LogCollectorDto[]>>;
11
+ /**
12
+ * Registers a new external destination and initializes a persistent Winston HTTP transport for log forwarding.
13
+ * @param collector - The configuration for the new log collector
14
+ * @returns The newly created log collector details
15
+ */
16
+ addLogCollector<R extends boolean = false>(collector: AddLogCollectorDto, raw?: {
17
+ raw: R;
18
+ }): Promise<MaybeRaw<R, LogCollectorDto>>;
19
+ /**
20
+ * Retrieves configuration and status information for a specific external log collector by its name.
21
+ * @param name - Unique identifier of the external log collector
22
+ * @returns The requested log collector details
23
+ */
24
+ getLogCollector<R extends boolean = false>(name: string, raw?: {
25
+ raw: R;
26
+ }): Promise<MaybeRaw<R, LogCollectorDto>>;
27
+ /**
28
+ * Removes an external log destination and immediately terminates the associated Winston transport.
29
+ * @param name - Unique identifier of the external log collector to be deleted
30
+ * @returns void (or raw response)
31
+ */
32
+ deleteLogCollector<R extends boolean = false>(name: string, raw?: {
33
+ raw: R;
34
+ }): Promise<MaybeRaw<R, void>>;
35
+ /**
36
+ * Updates the activation status of a specific log collector,
37
+ * this toggles log forwarding to the destination without removing its configuration.
38
+ * @param name - Unique identifier of the external log collector
39
+ * @param enabled - Flag to enable or disable the collector
40
+ * @returns The updated log collector details
41
+ */
42
+ patchLogCollectorEnabled<R extends boolean = false>(name: string, enabled: boolean, raw?: {
43
+ raw: R;
44
+ }): Promise<MaybeRaw<R, LogCollectorDto>>;
45
+ /**
46
+ * Registers and initializes a new Amazon CloudWatch transport for log forwarding
47
+ * @param options - AWS credentials and CloudWatch group/stream configuration
48
+ * @returns The registered CloudWatch collector details
49
+ */
50
+ addCloudWatch<R extends boolean = false>(options: AddCloudWatchDto, raw?: {
51
+ raw: R;
52
+ }): Promise<MaybeRaw<R, CloudWatchDto>>;
53
+ /**
54
+ * Removes the Amazon CloudWatch logging destination and terminates its Winston transport
55
+ * @returns void (or raw response)
56
+ */
57
+ deleteCloudWatch<R extends boolean = false>(raw?: {
58
+ raw: R;
59
+ }): Promise<MaybeRaw<R, void>>;
60
+ /**
61
+ * Establishes a persistent Server-Sent Events (SSE) connection to stream logs in real-time.
62
+ * Note: This method returns the raw Axios response because SSE requires stream handling.
63
+ * @param level - Optional filter by severity level
64
+ * @param entity - Optional filter by originating component
65
+ * @returns Raw response with the event stream
66
+ */
67
+ streamLogs(level?: string, entity?: string): Promise<any>;
68
+ protected getEndpoint(endpoint: string): string;
69
+ }