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.
- package/changelog.md +86 -175
- package/lib/Hcloud.d.ts +18 -3
- package/lib/Hcloud.js +113 -21
- package/lib/helper/ErrorHelper.js +5 -2
- package/lib/helper/ValidationHelper.d.ts +6 -4
- package/lib/helper/ValidationHelper.js +30 -18
- package/lib/interfaces/agent/logging/cloudwatch.d.ts +23 -0
- package/lib/interfaces/agent/logging/index.d.ts +2 -0
- package/lib/interfaces/{fuse → agent/logging}/index.js +2 -3
- package/lib/interfaces/agent/logging/log-collector.d.ts +35 -0
- package/lib/interfaces/agent/logging/log-collector.js +2 -0
- package/lib/interfaces/agent/module/index.d.ts +7 -0
- package/lib/interfaces/agent/module/index.js +2 -0
- package/lib/interfaces/auditor/index.d.ts +0 -1
- package/lib/interfaces/auditor/index.js +0 -1
- package/lib/interfaces/axios/index.d.ts +5 -0
- package/lib/interfaces/cosmo/asset/index.d.ts +40 -9
- package/lib/interfaces/cosmo/asset/index.js +9 -1
- package/lib/interfaces/cosmo/comment/index.d.ts +4 -1
- package/lib/interfaces/cosmo/event/index.d.ts +34 -5
- package/lib/interfaces/cosmo/event/index.js +16 -2
- package/lib/interfaces/cosmo/share/index.d.ts +89 -7
- package/lib/interfaces/cosmo/share/index.js +21 -0
- package/lib/interfaces/cosmo/space/index.d.ts +6 -0
- package/lib/interfaces/cosmo/stats/index.d.ts +11 -0
- package/lib/interfaces/cosmo/stats/index.js +2 -0
- package/lib/interfaces/cosmo/tag/tag.d.ts +2 -1
- package/lib/interfaces/global/Products.d.ts +0 -1
- package/lib/interfaces/global/Products.js +0 -1
- package/lib/interfaces/global/Views.d.ts +0 -1
- package/lib/interfaces/global/Views.js +0 -1
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +1 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +1 -0
- package/lib/interfaces/high5/space/job/index.d.ts +64 -19
- package/lib/interfaces/high5/space/job/index.js +9 -6
- package/lib/interfaces/high5/wave/dependentInputs.d.ts +42 -0
- package/lib/interfaces/high5/wave/dependentInputs.js +144 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.d.ts +22 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.js +220 -0
- package/lib/interfaces/idp/index.d.ts +3 -3
- package/lib/interfaces/idp/index.js +3 -3
- package/lib/interfaces/idp/oauth/device.d.ts +18 -0
- package/lib/interfaces/idp/oauth/device.js +2 -0
- package/lib/interfaces/idp/oauth/index.d.ts +17 -4
- package/lib/interfaces/idp/organization/index.d.ts +1 -0
- package/lib/interfaces/idp/organization/index.js +1 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +4 -0
- package/lib/interfaces/idp/user/Message.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -9
- package/lib/interfaces/idp/user/Scopes.js +0 -12
- package/lib/interfaces/idp/user/index.d.ts +3 -0
- package/lib/interfaces/mailer/index.d.ts +20 -1
- package/lib/interfaces/mailer/index.js +14 -2
- package/lib/interfaces/nats/index.d.ts +30 -32
- package/lib/interfaces/nats/index.js +103 -117
- package/lib/interfaces/shorts/index.d.ts +7 -0
- package/lib/interfaces/shorts/index.js +6 -0
- package/lib/service/agent/bundle/dev/index.js +4 -1
- package/lib/service/agent/bundle/index.js +4 -1
- package/lib/service/agent/context/index.js +4 -1
- package/lib/service/agent/index.d.ts +6 -0
- package/lib/service/agent/index.js +18 -1
- package/lib/service/agent/installer/index.js +4 -1
- package/lib/service/agent/logging/index.d.ts +69 -0
- package/lib/service/agent/logging/index.js +117 -0
- package/lib/service/agent/module/index.d.ts +36 -0
- package/lib/service/agent/module/index.js +65 -0
- package/lib/service/auditor/index.js +4 -1
- package/lib/service/auditor/internal/index.js +4 -1
- package/lib/service/bouncer/features/index.js +4 -1
- package/lib/service/bouncer/index.js +5 -2
- package/lib/service/cosmo/asset/index.d.ts +49 -3
- package/lib/service/cosmo/asset/index.js +111 -5
- package/lib/service/cosmo/comment/index.d.ts +7 -36
- package/lib/service/cosmo/comment/index.js +18 -43
- package/lib/service/cosmo/event/index.js +4 -1
- package/lib/service/cosmo/folder/index.js +4 -1
- package/lib/service/cosmo/index.d.ts +3 -0
- package/lib/service/cosmo/index.js +11 -1
- package/lib/service/cosmo/internal/index.js +4 -1
- package/lib/service/cosmo/internal/space/index.js +4 -1
- package/lib/service/cosmo/location/index.js +4 -1
- package/lib/service/cosmo/namespace/index.d.ts +15 -1
- package/lib/service/cosmo/namespace/index.js +21 -1
- package/lib/service/cosmo/organization/index.js +4 -1
- package/lib/service/cosmo/permissions/index.js +4 -1
- package/lib/service/cosmo/production/index.js +4 -1
- package/lib/service/cosmo/share/index.d.ts +37 -29
- package/lib/service/cosmo/share/index.js +47 -35
- package/lib/service/cosmo/space/index.d.ts +28 -1
- package/lib/service/cosmo/space/index.js +45 -1
- package/lib/service/cosmo/stats/index.d.ts +35 -0
- package/lib/service/cosmo/stats/index.js +58 -0
- package/lib/service/cosmo/tag/index.js +4 -1
- package/lib/service/dali/DaliAvatar.d.ts +0 -6
- package/lib/service/dali/DaliAvatar.js +4 -11
- package/lib/service/dali/avatar/DaliCosmoSpace.js +4 -1
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +2 -1
- package/lib/service/dali/avatar/DaliHigh5Pool.js +5 -2
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +2 -1
- package/lib/service/dali/avatar/DaliHigh5Space.js +5 -2
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +2 -1
- package/lib/service/dali/avatar/DaliOAuthApp.js +5 -2
- package/lib/service/dali/avatar/DaliOrganization.d.ts +2 -1
- package/lib/service/dali/avatar/DaliOrganization.js +5 -2
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +1 -1
- package/lib/service/dali/avatar/DaliServiceAccount.js +6 -3
- package/lib/service/dali/avatar/DaliTeam.d.ts +2 -1
- package/lib/service/dali/avatar/DaliTeam.js +5 -2
- package/lib/service/dali/avatar/DaliUser.d.ts +2 -1
- package/lib/service/dali/avatar/DaliUser.js +5 -2
- package/lib/service/dali/index.js +4 -1
- package/lib/service/high5/execution/index.js +4 -1
- package/lib/service/high5/execution/log/index.js +4 -1
- package/lib/service/high5/execution/status/index.js +4 -1
- package/lib/service/high5/index.js +4 -1
- package/lib/service/high5/internal/index.js +4 -1
- package/lib/service/high5/internal/space/index.js +4 -1
- package/lib/service/high5/internal/space/job/index.js +4 -1
- package/lib/service/high5/internal/space/job/log/index.js +4 -1
- package/lib/service/high5/joinToken/index.js +4 -1
- package/lib/service/high5/space/database/document/array/index.js +4 -1
- package/lib/service/high5/space/database/document/index.js +4 -1
- package/lib/service/high5/space/database/document/number/index.js +4 -1
- package/lib/service/high5/space/database/index.js +4 -1
- package/lib/service/high5/space/event/index.js +4 -1
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +4 -1
- package/lib/service/high5/space/event/stream/design/index.js +6 -3
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +4 -1
- package/lib/service/high5/space/event/stream/index.js +4 -1
- package/lib/service/high5/space/execution/index.js +4 -1
- package/lib/service/high5/space/execution/log/index.js +4 -1
- package/lib/service/high5/space/execution/status/index.js +4 -1
- package/lib/service/high5/space/index.d.ts +10 -0
- package/lib/service/high5/space/index.js +25 -5
- package/lib/service/high5/space/job/index.js +4 -1
- package/lib/service/high5/space/job/log/index.js +4 -1
- package/lib/service/high5/space/node/index.js +4 -1
- package/lib/service/high5/space/pool/index.d.ts +11 -0
- package/lib/service/high5/space/pool/index.js +22 -1
- package/lib/service/high5/space/secret/index.js +4 -1
- package/lib/service/high5/space/stat/index.js +4 -1
- package/lib/service/high5/space/wave/index.js +4 -1
- package/lib/service/high5/space/webhook/index.js +4 -1
- package/lib/service/high5/space/webhook/log/index.js +4 -1
- package/lib/service/high5/stat/index.js +4 -1
- package/lib/service/high5/wave/index.js +4 -1
- package/lib/service/high5/wave/s3/index.js +5 -2
- package/lib/service/idp/guest/index.js +4 -1
- package/lib/service/idp/index.js +4 -1
- package/lib/service/idp/internal/index.js +4 -1
- package/lib/service/idp/oauth/device.d.ts +131 -0
- package/lib/service/idp/oauth/device.js +177 -0
- package/lib/service/idp/oauth/index.d.ts +3 -0
- package/lib/service/idp/oauth/index.js +11 -1
- package/lib/service/idp/organization/index.d.ts +9 -0
- package/lib/service/idp/organization/index.js +22 -3
- package/lib/service/idp/organization/license/index.js +4 -1
- package/lib/service/idp/organization/member/index.js +5 -2
- package/lib/service/idp/organization/member/invitations/index.d.ts +19 -0
- package/lib/service/idp/organization/member/invitations/index.js +23 -1
- package/lib/service/idp/organization/service-accounts/index.d.ts +11 -1
- package/lib/service/idp/organization/service-accounts/index.js +22 -2
- package/lib/service/idp/organization/settings/domain/index.js +4 -1
- package/lib/service/idp/organization/settings/domain/saml/index.js +4 -1
- package/lib/service/idp/organization/settings/index.js +4 -1
- package/lib/service/idp/organization/settings/oauth/index.d.ts +10 -0
- package/lib/service/idp/organization/settings/oauth/index.js +21 -1
- package/lib/service/idp/organization/stat/index.js +4 -1
- package/lib/service/idp/organization/team/index.d.ts +10 -0
- package/lib/service/idp/organization/team/index.js +21 -1
- package/lib/service/idp/registration/index.js +4 -1
- package/lib/service/idp/user/index.d.ts +8 -0
- package/lib/service/idp/user/index.js +20 -3
- package/lib/service/idp/user/license/index.js +4 -1
- package/lib/service/idp/user/message/index.d.ts +1 -0
- package/lib/service/idp/user/message/index.js +4 -1
- package/lib/service/idp/user/password/index.js +4 -1
- package/lib/service/idp/user/settings/connections/index.js +4 -1
- package/lib/service/idp/user/settings/general/index.js +4 -1
- package/lib/service/idp/user/settings/index.js +4 -1
- package/lib/service/idp/user/settings/notifications/index.js +4 -1
- package/lib/service/idp/user/settings/oauthApps/index.js +4 -1
- package/lib/service/idp/user/settings/pats/index.js +4 -1
- package/lib/service/idp/user/settings/twoFactor/index.js +4 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +4 -1
- package/lib/service/mailer/index.js +5 -2
- package/lib/service/mailer/internal/index.d.ts +2 -2
- package/lib/service/mailer/internal/index.js +5 -2
- package/lib/service/mothership/index.js +4 -1
- package/lib/service/nats/index.d.ts +7 -0
- package/lib/service/nats/index.js +19 -1
- package/lib/service/shorts/index.js +4 -1
- package/lib/service/shorts/internal/index.d.ts +6 -3
- package/lib/service/shorts/internal/index.js +20 -6
- package/lib/utils/bouncer/features/Provider.js +0 -1
- package/package.json +2 -2
- package/lib/interfaces/fuse/index.d.ts +0 -3
- package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +0 -38
- package/lib/interfaces/fuse/space/cronjob/Cronjob.js +0 -8
- package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +0 -16
- package/lib/interfaces/fuse/space/index.d.ts +0 -22
- package/lib/interfaces/fuse/space/index.js +0 -11
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +0 -32
- package/lib/service/dali/avatar/DaliFuseSpace.js +0 -59
- package/lib/service/fuse/index.d.ts +0 -20
- package/lib/service/fuse/index.js +0 -48
- package/lib/service/fuse/internal/index.d.ts +0 -10
- package/lib/service/fuse/internal/index.js +0 -32
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +0 -7
- package/lib/service/fuse/internal/space/cronjob/index.js +0 -17
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +0 -17
- package/lib/service/fuse/internal/space/cronjob/log/index.js +0 -34
- package/lib/service/fuse/internal/space/index.d.ts +0 -26
- package/lib/service/fuse/internal/space/index.js +0 -51
- package/lib/service/fuse/space/cronjob/index.d.ts +0 -145
- package/lib/service/fuse/space/cronjob/index.js +0 -201
- package/lib/service/fuse/space/cronjob/log/index.d.ts +0 -35
- package/lib/service/fuse/space/cronjob/log/index.js +0 -58
- package/lib/service/fuse/space/index.d.ts +0 -97
- package/lib/service/fuse/space/index.js +0 -153
- /package/lib/interfaces/{fuse/space/cronjob/CronjobLog.js → agent/logging/cloudwatch.js} +0 -0
|
@@ -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
|
|
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["
|
|
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.
|
|
224
|
+
NatsSubjects.High5 = (_f = class {
|
|
228
225
|
},
|
|
229
|
-
__setFunctionName(_f, "
|
|
230
|
-
_f.
|
|
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, "
|
|
236
|
-
_g.
|
|
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
|
-
|
|
233
|
+
_g.CANCEL = (organizationId, email) => {
|
|
261
234
|
return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_CANCEL, { organizationId, email });
|
|
262
235
|
},
|
|
263
|
-
|
|
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
|
-
|
|
282
|
-
|
|
254
|
+
_g),
|
|
255
|
+
_f.SPACES = (organizationName) => {
|
|
283
256
|
return NatsSubjects.replace(NatsSubject.HIGH5_SPACES, { organizationName });
|
|
284
257
|
},
|
|
285
|
-
|
|
258
|
+
_f.Space = (_h = class {
|
|
286
259
|
},
|
|
287
|
-
__setFunctionName(
|
|
288
|
-
|
|
260
|
+
__setFunctionName(_h, "Space"),
|
|
261
|
+
_h.POOLS = (organizationName, spaceName) => {
|
|
289
262
|
return NatsSubjects.replace(NatsSubject.HIGH5_SPACES_POOLS, { organizationName, spaceName });
|
|
290
263
|
},
|
|
291
|
-
|
|
264
|
+
_h.POOL = (organizationName, spaceName, poolName) => {
|
|
292
265
|
return NatsSubjects.replace(NatsSubject.HIGH5_SPACES_POOL, { organizationName, spaceName, poolName });
|
|
293
266
|
},
|
|
294
|
-
|
|
267
|
+
_h.PERMISSIONS = (organizationName, spaceName) => {
|
|
295
268
|
return NatsSubjects.replace(NatsSubject.HIGH5_SPACE_PERMISSIONS, { organizationName, spaceName });
|
|
296
269
|
},
|
|
297
|
-
|
|
270
|
+
_h.EVENTS = (organizationName, spaceName) => {
|
|
298
271
|
return NatsSubjects.replace(NatsSubject.HIGH5_EVENTS, { organizationName, spaceName });
|
|
299
272
|
},
|
|
300
|
-
|
|
273
|
+
_h.STREAMS = (organizationName, spaceName) => {
|
|
301
274
|
return NatsSubjects.replace(NatsSubject.HIGH5_STREAMS, { organizationName, spaceName });
|
|
302
275
|
},
|
|
303
|
-
|
|
276
|
+
_h.Event = (_j = class {
|
|
304
277
|
},
|
|
305
|
-
__setFunctionName(
|
|
306
|
-
|
|
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
|
-
|
|
286
|
+
_j.Stream = (_k = class {
|
|
314
287
|
},
|
|
315
|
-
__setFunctionName(
|
|
316
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
313
|
+
_k),
|
|
314
|
+
_j),
|
|
315
|
+
_h.SECRETS = (organizationName, spaceName) => {
|
|
343
316
|
return NatsSubjects.replace(NatsSubject.HIGH5_SECRETS, { organizationName, spaceName });
|
|
344
317
|
},
|
|
345
|
-
|
|
318
|
+
_h.WEBHOOKS = (organizationName, spaceName) => {
|
|
346
319
|
return NatsSubjects.replace(NatsSubject.HIGH5_WEBHOOKS, { organizationName, spaceName });
|
|
347
320
|
},
|
|
348
|
-
|
|
321
|
+
_h.Webhook = (_l = class {
|
|
349
322
|
},
|
|
350
|
-
__setFunctionName(
|
|
351
|
-
|
|
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
|
-
|
|
359
|
-
|
|
331
|
+
_l),
|
|
332
|
+
_h.SETTINGS = (organizationName, spaceName) => {
|
|
360
333
|
return NatsSubjects.replace(NatsSubject.HIGH5_SETTINGS, { organizationName, spaceName });
|
|
361
334
|
},
|
|
362
|
-
|
|
335
|
+
_h.CATALOGS = (organizationName, spaceName) => {
|
|
363
336
|
return NatsSubjects.replace(NatsSubject.HIGH5_CATALOGS, { organizationName, spaceName });
|
|
364
337
|
},
|
|
365
|
-
|
|
338
|
+
_h.NODES = (organizationName, spaceName) => {
|
|
366
339
|
return NatsSubjects.replace(NatsSubject.HIGH5_NODES, { organizationName, spaceName });
|
|
367
340
|
},
|
|
368
|
-
|
|
341
|
+
_h.DATABASES = (organizationName, spaceName) => {
|
|
369
342
|
return NatsSubjects.replace(NatsSubject.HIGH5_DATABASES, { organizationName, spaceName });
|
|
370
343
|
},
|
|
371
|
-
|
|
344
|
+
_h.Database = (_m = class {
|
|
372
345
|
},
|
|
373
|
-
__setFunctionName(
|
|
374
|
-
|
|
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
|
-
|
|
382
|
-
|
|
354
|
+
_m),
|
|
355
|
+
_h.Jobs = (_o = class {
|
|
383
356
|
},
|
|
384
|
-
__setFunctionName(
|
|
385
|
-
|
|
357
|
+
__setFunctionName(_o, "Jobs"),
|
|
358
|
+
_o.JOBS = (organizationName, spaceName) => {
|
|
386
359
|
return NatsSubjects.replace(NatsSubject.HIGH5_JOBS, { organizationName, spaceName });
|
|
387
360
|
},
|
|
388
|
-
|
|
361
|
+
_o.JOB_LOGS = (organizationName, spaceName, jobId) => {
|
|
389
362
|
return NatsSubjects.replace(NatsSubject.HIGH5_JOB_LOGS, { organizationName, spaceName, jobId });
|
|
390
363
|
},
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
364
|
+
_o),
|
|
365
|
+
_h),
|
|
366
|
+
_f.WAVE = (_p = class {
|
|
394
367
|
},
|
|
395
|
-
__setFunctionName(
|
|
396
|
-
|
|
368
|
+
__setFunctionName(_p, "WAVE"),
|
|
369
|
+
_p.ENGINE = (_q = class {
|
|
397
370
|
},
|
|
398
|
-
__setFunctionName(
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
NatsSubjects.Mothership = (
|
|
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(
|
|
406
|
-
|
|
378
|
+
__setFunctionName(_r, "Mothership"),
|
|
379
|
+
_r.CONNECTION = (organizationName) => {
|
|
407
380
|
return NatsSubjects.replace(NatsSubject.MOTHERSHIP_AGENT_CONNECTION, { organizationName });
|
|
408
381
|
},
|
|
409
|
-
|
|
410
|
-
NatsSubjects.Auditor = (
|
|
382
|
+
_r);
|
|
383
|
+
NatsSubjects.Auditor = (_s = class {
|
|
411
384
|
},
|
|
412
|
-
__setFunctionName(
|
|
413
|
-
|
|
385
|
+
__setFunctionName(_s, "Auditor"),
|
|
386
|
+
_s.LOGS = (organizationName) => {
|
|
414
387
|
return NatsSubjects.replace(NatsSubject.AUDITOR_LOGS, { organizationName });
|
|
415
388
|
},
|
|
416
|
-
|
|
389
|
+
_s);
|
|
417
390
|
NatsSubjects.Logging = (product) => {
|
|
418
391
|
return NatsSubjects.replace(NatsSubject.DEBUG_NAMESPACE, { product });
|
|
419
392
|
};
|
|
420
|
-
NatsSubjects.Cosmo = (
|
|
393
|
+
NatsSubjects.Cosmo = (_t = class {
|
|
421
394
|
},
|
|
422
|
-
__setFunctionName(
|
|
423
|
-
|
|
395
|
+
__setFunctionName(_t, "Cosmo"),
|
|
396
|
+
_t.SPACES = (organizationName) => {
|
|
424
397
|
return NatsSubjects.replace(NatsSubject.COSMO_SPACES, { organizationName });
|
|
425
398
|
},
|
|
426
|
-
|
|
399
|
+
_t.Space = (_u = class {
|
|
427
400
|
},
|
|
428
|
-
__setFunctionName(
|
|
429
|
-
|
|
401
|
+
__setFunctionName(_u, "Space"),
|
|
402
|
+
_u.NAMESPACES = (organizationName, spaceName) => {
|
|
430
403
|
return NatsSubjects.replace(NatsSubject.COSMO_NAMESPACES, { organizationName, spaceName });
|
|
431
404
|
},
|
|
432
|
-
|
|
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
|
-
|
|
439
|
-
|
|
407
|
+
__setFunctionName(_v, "Namespace"),
|
|
408
|
+
_v.TAGS = (organizationName, spaceName, namespaceName) => {
|
|
409
|
+
return NatsSubjects.replace(NatsSubject.COSMO_TAGS_NAMESPACE, { organizationName, spaceName, namespaceName });
|
|
440
410
|
},
|
|
441
|
-
|
|
442
|
-
return NatsSubjects.replace(NatsSubject.
|
|
411
|
+
_v.METADATA = (organizationName, spaceName, namespaceName) => {
|
|
412
|
+
return NatsSubjects.replace(NatsSubject.COSMO_METADATA, { organizationName, spaceName, namespaceName });
|
|
443
413
|
},
|
|
444
|
-
|
|
445
|
-
|
|
414
|
+
_v),
|
|
415
|
+
_u.ASSETS = (organizationName, spaceName) => {
|
|
446
416
|
return NatsSubjects.replace(NatsSubject.COSMO_ASSETS, { organizationName, spaceName });
|
|
447
417
|
},
|
|
448
|
-
|
|
418
|
+
_u.SHARES = (organizationName, spaceName) => {
|
|
449
419
|
return NatsSubjects.replace(NatsSubject.COSMO_SHARE, { organizationName, spaceName });
|
|
450
420
|
},
|
|
451
|
-
|
|
421
|
+
_u.ROLES = (organizationName, spaceName) => {
|
|
452
422
|
return NatsSubjects.replace(NatsSubject.COSMO_ROLES, { organizationName, spaceName });
|
|
453
423
|
},
|
|
454
|
-
|
|
455
|
-
|
|
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
|
+
}
|