@remnawave/backend-contract 3.3.0 → 3.3.2
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/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/node-integrations.d.ts +9 -0
- package/build/backend/api/controllers/node-integrations.d.ts.map +1 -0
- package/build/backend/api/controllers/node-integrations.js +11 -0
- package/build/backend/api/controllers-info.d.ts +5 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +5 -0
- package/build/backend/api/routes.d.ts +7 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +7 -0
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/node-integrations/create-node-integration.command.d.ts +22 -0
- package/build/backend/commands/node-integrations/create-node-integration.command.d.ts.map +1 -0
- package/build/backend/commands/node-integrations/create-node-integration.command.js +24 -0
- package/build/backend/commands/node-integrations/delete-node-integration.command.d.ts +11 -0
- package/build/backend/commands/node-integrations/delete-node-integration.command.d.ts.map +1 -0
- package/build/backend/commands/node-integrations/delete-node-integration.command.js +15 -0
- package/build/backend/commands/node-integrations/get-node-integration.command.d.ts +20 -0
- package/build/backend/commands/node-integrations/get-node-integration.command.d.ts.map +1 -0
- package/build/backend/commands/node-integrations/get-node-integration.command.js +19 -0
- package/build/backend/commands/node-integrations/get-node-integrations.command.d.ts +19 -0
- package/build/backend/commands/node-integrations/get-node-integrations.command.d.ts.map +1 -0
- package/build/backend/commands/node-integrations/get-node-integrations.command.js +19 -0
- package/build/backend/commands/node-integrations/index.d.ts +6 -0
- package/build/backend/commands/node-integrations/index.d.ts.map +1 -0
- package/build/backend/commands/node-integrations/index.js +21 -0
- package/build/backend/commands/node-integrations/update-node-integration.command.d.ts +24 -0
- package/build/backend/commands/node-integrations/update-node-integration.command.d.ts.map +1 -0
- package/build/backend/commands/node-integrations/update-node-integration.command.js +27 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +1 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +1 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +1 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +1 -0
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +1 -0
- package/build/backend/commands/nodes/create.command.d.ts +2 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -0
- package/build/backend/commands/nodes/get-node.command.d.ts +1 -0
- package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-nodes.command.d.ts +1 -0
- package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/node.response.d.ts +1 -0
- package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +2 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -0
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +1 -0
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +2 -0
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +2 -0
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.d.ts +35 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +35 -0
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/node-integration.schema.d.ts +8 -0
- package/build/backend/models/node-integration.schema.d.ts.map +1 -0
- package/build/backend/models/node-integration.schema.js +13 -0
- package/build/backend/models/nodes.schema.d.ts +1 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +1 -0
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +1 -0
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule-modifications.schema.js +4 -0
- package/build/backend/models/response-rules/response-rule.schema.d.ts +2 -0
- package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +1 -0
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.d.ts +1 -0
- package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +4 -0
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/node-integrations.js +11 -0
- package/build/frontend/api/controllers-info.js +5 -0
- package/build/frontend/api/routes.js +7 -0
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/node-integrations/create-node-integration.command.js +24 -0
- package/build/frontend/commands/node-integrations/delete-node-integration.command.js +15 -0
- package/build/frontend/commands/node-integrations/get-node-integration.command.js +19 -0
- package/build/frontend/commands/node-integrations/get-node-integrations.command.js +19 -0
- package/build/frontend/commands/node-integrations/index.js +21 -0
- package/build/frontend/commands/node-integrations/update-node-integration.command.js +27 -0
- package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +1 -0
- package/build/frontend/commands/nodes/create.command.js +1 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/constants/errors/errors.js +35 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/node-integration.schema.js +13 -0
- package/build/frontend/models/nodes.schema.js +1 -0
- package/build/frontend/models/response-rules/response-rule-modifications.schema.js +4 -0
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ __exportStar(require("./infra-billing-node.schema"), exports);
|
|
|
32
32
|
__exportStar(require("./infra-provider.schema"), exports);
|
|
33
33
|
__exportStar(require("./internal-squad.schema"), exports);
|
|
34
34
|
__exportStar(require("./last-connected-node.schema"), exports);
|
|
35
|
+
__exportStar(require("./node-integration.schema"), exports);
|
|
35
36
|
__exportStar(require("./node-plugin.schema"), exports);
|
|
36
37
|
__exportStar(require("./node-ips.schema"), exports);
|
|
37
38
|
__exportStar(require("./node-system.schema"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NodeIntegrationSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.NodeIntegrationSchema = zod_1.default.object({
|
|
9
|
+
uuid: zod_1.default.uuid(),
|
|
10
|
+
name: zod_1.default.string(),
|
|
11
|
+
description: zod_1.default.nullable(zod_1.default.string()),
|
|
12
|
+
config: zod_1.default.record(zod_1.default.string(), zod_1.default.unknown()),
|
|
13
|
+
});
|
|
@@ -28,6 +28,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
28
28
|
consumptionMultiplier: zod_1.z.number(),
|
|
29
29
|
nodeConsumptionMultiplier: zod_1.z.number(),
|
|
30
30
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
31
|
+
integrationUuids: zod_1.z.array(zod_1.z.uuid()),
|
|
31
32
|
ips: node_ips_schema_1.NodeIpsSchema,
|
|
32
33
|
createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
33
34
|
updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
@@ -100,6 +100,10 @@ exports.ResponseRuleModificationsSchema = zod_1.default
|
|
|
100
100
|
title: 'Exclude Hosts by Tags',
|
|
101
101
|
markdownDescription: 'Excludes hosts from the subscription output if at least one tag in the host matches the given tags.',
|
|
102
102
|
}),
|
|
103
|
+
respondWithRemarks: zod_1.default.array(zod_1.default.string()).optional().meta({
|
|
104
|
+
title: 'Respond With Remarks',
|
|
105
|
+
markdownDescription: 'Replaces the response body with the provided remarks. If this array contains more than one element, actual hosts will not be sent.',
|
|
106
|
+
}),
|
|
103
107
|
})
|
|
104
108
|
.optional()
|
|
105
109
|
.meta({
|
package/package.json
CHANGED