@remnawave/backend-contract 3.3.1 → 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.
Files changed (87) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/node-integrations.d.ts +9 -0
  5. package/build/backend/api/controllers/node-integrations.d.ts.map +1 -0
  6. package/build/backend/api/controllers/node-integrations.js +11 -0
  7. package/build/backend/api/controllers-info.d.ts +5 -0
  8. package/build/backend/api/controllers-info.d.ts.map +1 -1
  9. package/build/backend/api/controllers-info.js +5 -0
  10. package/build/backend/api/routes.d.ts +7 -0
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +7 -0
  13. package/build/backend/commands/index.d.ts +1 -0
  14. package/build/backend/commands/index.d.ts.map +1 -1
  15. package/build/backend/commands/index.js +1 -0
  16. package/build/backend/commands/node-integrations/create-node-integration.command.d.ts +22 -0
  17. package/build/backend/commands/node-integrations/create-node-integration.command.d.ts.map +1 -0
  18. package/build/backend/commands/node-integrations/create-node-integration.command.js +24 -0
  19. package/build/backend/commands/node-integrations/delete-node-integration.command.d.ts +11 -0
  20. package/build/backend/commands/node-integrations/delete-node-integration.command.d.ts.map +1 -0
  21. package/build/backend/commands/node-integrations/delete-node-integration.command.js +15 -0
  22. package/build/backend/commands/node-integrations/get-node-integration.command.d.ts +20 -0
  23. package/build/backend/commands/node-integrations/get-node-integration.command.d.ts.map +1 -0
  24. package/build/backend/commands/node-integrations/get-node-integration.command.js +19 -0
  25. package/build/backend/commands/node-integrations/get-node-integrations.command.d.ts +19 -0
  26. package/build/backend/commands/node-integrations/get-node-integrations.command.d.ts.map +1 -0
  27. package/build/backend/commands/node-integrations/get-node-integrations.command.js +19 -0
  28. package/build/backend/commands/node-integrations/index.d.ts +6 -0
  29. package/build/backend/commands/node-integrations/index.d.ts.map +1 -0
  30. package/build/backend/commands/node-integrations/index.js +21 -0
  31. package/build/backend/commands/node-integrations/update-node-integration.command.d.ts +24 -0
  32. package/build/backend/commands/node-integrations/update-node-integration.command.d.ts.map +1 -0
  33. package/build/backend/commands/node-integrations/update-node-integration.command.js +27 -0
  34. package/build/backend/commands/nodes/actions/disable.command.d.ts +1 -0
  35. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  36. package/build/backend/commands/nodes/actions/enable.command.d.ts +1 -0
  37. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  38. package/build/backend/commands/nodes/actions/reorder.command.d.ts +1 -0
  39. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  40. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +1 -0
  41. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
  42. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +1 -0
  43. package/build/backend/commands/nodes/create.command.d.ts +2 -0
  44. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  45. package/build/backend/commands/nodes/create.command.js +1 -0
  46. package/build/backend/commands/nodes/get-node.command.d.ts +1 -0
  47. package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
  48. package/build/backend/commands/nodes/get-nodes.command.d.ts +1 -0
  49. package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
  50. package/build/backend/commands/nodes/node.response.d.ts +1 -0
  51. package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
  52. package/build/backend/commands/nodes/update.command.d.ts +2 -0
  53. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  54. package/build/backend/commands/nodes/update.command.js +1 -0
  55. package/build/backend/constants/errors/errors.d.ts +35 -0
  56. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  57. package/build/backend/constants/errors/errors.js +35 -0
  58. package/build/backend/models/index.d.ts +1 -0
  59. package/build/backend/models/index.d.ts.map +1 -1
  60. package/build/backend/models/index.js +1 -0
  61. package/build/backend/models/node-integration.schema.d.ts +8 -0
  62. package/build/backend/models/node-integration.schema.d.ts.map +1 -0
  63. package/build/backend/models/node-integration.schema.js +13 -0
  64. package/build/backend/models/nodes.schema.d.ts +1 -0
  65. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  66. package/build/backend/models/nodes.schema.js +1 -0
  67. package/build/backend/models/webhook/webhook.schema.d.ts +4 -0
  68. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  69. package/build/frontend/api/controllers/index.js +1 -0
  70. package/build/frontend/api/controllers/node-integrations.js +11 -0
  71. package/build/frontend/api/controllers-info.js +5 -0
  72. package/build/frontend/api/routes.js +7 -0
  73. package/build/frontend/commands/index.js +1 -0
  74. package/build/frontend/commands/node-integrations/create-node-integration.command.js +24 -0
  75. package/build/frontend/commands/node-integrations/delete-node-integration.command.js +15 -0
  76. package/build/frontend/commands/node-integrations/get-node-integration.command.js +19 -0
  77. package/build/frontend/commands/node-integrations/get-node-integrations.command.js +19 -0
  78. package/build/frontend/commands/node-integrations/index.js +21 -0
  79. package/build/frontend/commands/node-integrations/update-node-integration.command.js +27 -0
  80. package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +1 -0
  81. package/build/frontend/commands/nodes/create.command.js +1 -0
  82. package/build/frontend/commands/nodes/update.command.js +1 -0
  83. package/build/frontend/constants/errors/errors.js +35 -0
  84. package/build/frontend/models/index.js +1 -0
  85. package/build/frontend/models/node-integration.schema.js +13 -0
  86. package/build/frontend/models/nodes.schema.js +1 -0
  87. package/package.json +1 -1
@@ -1219,5 +1219,40 @@ export declare const ERRORS: {
1219
1219
  readonly message: "Sync snippet error";
1220
1220
  readonly httpCode: 500;
1221
1221
  };
1222
+ readonly NODE_INTEGRATION_NOT_FOUND: {
1223
+ readonly code: "A238";
1224
+ readonly message: "Node integration not found";
1225
+ readonly httpCode: 404;
1226
+ };
1227
+ readonly GET_ALL_NODE_INTEGRATIONS_ERROR: {
1228
+ readonly code: "A239";
1229
+ readonly message: "Get all node integrations error";
1230
+ readonly httpCode: 500;
1231
+ };
1232
+ readonly GET_NODE_INTEGRATION_BY_UUID_ERROR: {
1233
+ readonly code: "A240";
1234
+ readonly message: "Get node integration by UUID error";
1235
+ readonly httpCode: 500;
1236
+ };
1237
+ readonly CREATE_NODE_INTEGRATION_ERROR: {
1238
+ readonly code: "A241";
1239
+ readonly message: "Create node integration error";
1240
+ readonly httpCode: 500;
1241
+ };
1242
+ readonly UPDATE_NODE_INTEGRATION_ERROR: {
1243
+ readonly code: "A242";
1244
+ readonly message: "Update node integration error";
1245
+ readonly httpCode: 500;
1246
+ };
1247
+ readonly DELETE_NODE_INTEGRATION_ERROR: {
1248
+ readonly code: "A243";
1249
+ readonly message: "Delete node integration error";
1250
+ readonly httpCode: 500;
1251
+ };
1252
+ readonly NODE_INTEGRATION_NAME_ALREADY_EXISTS: {
1253
+ readonly code: "A244";
1254
+ readonly message: "Node integration name already exists";
1255
+ readonly httpCode: 400;
1256
+ };
1222
1257
  };
1223
1258
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;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;;;;;;;;;wCAsqBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6HN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkDN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE3B,CAAC"}
@@ -1190,4 +1190,39 @@ exports.ERRORS = {
1190
1190
  message: 'Sync snippet error',
1191
1191
  httpCode: 500,
1192
1192
  },
1193
+ NODE_INTEGRATION_NOT_FOUND: {
1194
+ code: 'A238',
1195
+ message: 'Node integration not found',
1196
+ httpCode: 404,
1197
+ },
1198
+ GET_ALL_NODE_INTEGRATIONS_ERROR: {
1199
+ code: 'A239',
1200
+ message: 'Get all node integrations error',
1201
+ httpCode: 500,
1202
+ },
1203
+ GET_NODE_INTEGRATION_BY_UUID_ERROR: {
1204
+ code: 'A240',
1205
+ message: 'Get node integration by UUID error',
1206
+ httpCode: 500,
1207
+ },
1208
+ CREATE_NODE_INTEGRATION_ERROR: {
1209
+ code: 'A241',
1210
+ message: 'Create node integration error',
1211
+ httpCode: 500,
1212
+ },
1213
+ UPDATE_NODE_INTEGRATION_ERROR: {
1214
+ code: 'A242',
1215
+ message: 'Update node integration error',
1216
+ httpCode: 500,
1217
+ },
1218
+ DELETE_NODE_INTEGRATION_ERROR: {
1219
+ code: 'A243',
1220
+ message: 'Delete node integration error',
1221
+ httpCode: 500,
1222
+ },
1223
+ NODE_INTEGRATION_NAME_ALREADY_EXISTS: {
1224
+ code: 'A244',
1225
+ message: 'Node integration name already exists',
1226
+ httpCode: 400,
1227
+ },
1193
1228
  };
@@ -16,6 +16,7 @@ export * from './infra-billing-node.schema';
16
16
  export * from './infra-provider.schema';
17
17
  export * from './internal-squad.schema';
18
18
  export * from './last-connected-node.schema';
19
+ export * from './node-integration.schema';
19
20
  export * from './node-plugin.schema';
20
21
  export * from './node-ips.schema';
21
22
  export * from './node-system.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
@@ -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,8 @@
1
+ import z from 'zod';
2
+ export declare const NodeIntegrationSchema: z.ZodObject<{
3
+ uuid: z.ZodUUID;
4
+ name: z.ZodString;
5
+ description: z.ZodNullable<z.ZodString>;
6
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ }, z.core.$strip>;
8
+ //# sourceMappingURL=node-integration.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-integration.schema.d.ts","sourceRoot":"","sources":["../../../models/node-integration.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAC"}
@@ -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
+ });
@@ -21,6 +21,7 @@ export declare const NodesSchema: z.ZodObject<{
21
21
  consumptionMultiplier: z.ZodNumber;
22
22
  nodeConsumptionMultiplier: z.ZodNumber;
23
23
  tags: z.ZodArray<z.ZodString>;
24
+ integrationUuids: z.ZodArray<z.ZodUUID>;
24
25
  ips: z.ZodArray<z.ZodObject<{
25
26
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
26
27
  status: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6CtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8CtB,CAAC"}
@@ -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)),
@@ -170,6 +170,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
170
170
  consumptionMultiplier: z.ZodNumber;
171
171
  nodeConsumptionMultiplier: z.ZodNumber;
172
172
  tags: z.ZodArray<z.ZodString>;
173
+ integrationUuids: z.ZodArray<z.ZodUUID>;
173
174
  ips: z.ZodArray<z.ZodObject<{
174
175
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
175
176
  status: z.ZodEnum<{
@@ -340,6 +341,7 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
340
341
  consumptionMultiplier: z.ZodNumber;
341
342
  nodeConsumptionMultiplier: z.ZodNumber;
342
343
  tags: z.ZodArray<z.ZodString>;
344
+ integrationUuids: z.ZodArray<z.ZodUUID>;
343
345
  ips: z.ZodArray<z.ZodObject<{
344
346
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
345
347
  status: z.ZodEnum<{
@@ -657,6 +659,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
657
659
  consumptionMultiplier: z.ZodNumber;
658
660
  nodeConsumptionMultiplier: z.ZodNumber;
659
661
  tags: z.ZodArray<z.ZodString>;
662
+ integrationUuids: z.ZodArray<z.ZodUUID>;
660
663
  ips: z.ZodArray<z.ZodObject<{
661
664
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
662
665
  status: z.ZodEnum<{
@@ -823,6 +826,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
823
826
  consumptionMultiplier: z.ZodNumber;
824
827
  nodeConsumptionMultiplier: z.ZodNumber;
825
828
  tags: z.ZodArray<z.ZodString>;
829
+ integrationUuids: z.ZodArray<z.ZodUUID>;
826
830
  ips: z.ZodArray<z.ZodObject<{
827
831
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
828
832
  status: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcrC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,oCAAoC,CAC9C,CAAC"}
@@ -26,6 +26,7 @@ __exportStar(require("./internal-squads"), exports);
26
26
  __exportStar(require("./connections"), exports);
27
27
  __exportStar(require("./keygen"), exports);
28
28
  __exportStar(require("./metadata"), exports);
29
+ __exportStar(require("./node-integrations"), exports);
29
30
  __exportStar(require("./node-plugins"), exports);
30
31
  __exportStar(require("./nodes"), exports);
31
32
  __exportStar(require("./passkeys"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NODE_INTEGRATIONS_ROUTES = exports.NODE_INTEGRATIONS_CONTROLLER = void 0;
4
+ exports.NODE_INTEGRATIONS_CONTROLLER = 'node-integrations';
5
+ exports.NODE_INTEGRATIONS_ROUTES = {
6
+ GET_ALL: '', // get
7
+ GET: (uuid) => `${uuid}`, // get
8
+ UPDATE: '', // patch
9
+ DELETE: (uuid) => `${uuid}`, // delete
10
+ CREATE: '', // post
11
+ };
@@ -37,6 +37,11 @@ exports.CONTROLLERS_INFO = {
37
37
  description: '',
38
38
  resource: 'node-plugins',
39
39
  },
40
+ NODE_INTEGRATIONS: {
41
+ tag: 'Node Integrations Controller',
42
+ description: 'Management of Node Integrations.',
43
+ resource: 'node-integrations',
44
+ },
40
45
  BANDWIDTH_STATS: {
41
46
  tag: 'Bandwidth Stats Controller',
42
47
  description: '',
@@ -301,6 +301,13 @@ exports.REST_API = {
301
301
  CLONE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.ACTIONS.CLONE}`,
302
302
  },
303
303
  },
304
+ NODE_INTEGRATIONS: {
305
+ GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.GET(uuid)}`,
306
+ GET_ALL: `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.GET_ALL}`,
307
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.UPDATE}`,
308
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.DELETE(uuid)}`,
309
+ CREATE: `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.CREATE}`,
310
+ },
304
311
  NODE_PLUGINS: {
305
312
  GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.GET(uuid)}`,
306
313
  GET_ALL: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.GET_ALL}`,
@@ -26,6 +26,7 @@ __exportStar(require("./internal-squads"), exports);
26
26
  __exportStar(require("./connections"), exports);
27
27
  __exportStar(require("./keygen"), exports);
28
28
  __exportStar(require("./metadata"), exports);
29
+ __exportStar(require("./node-integrations"), exports);
29
30
  __exportStar(require("./node-plugins"), exports);
30
31
  __exportStar(require("./nodes"), exports);
31
32
  __exportStar(require("./passkeys"), exports);
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateNodeIntegrationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var CreateNodeIntegrationCommand;
9
+ (function (CreateNodeIntegrationCommand) {
10
+ CreateNodeIntegrationCommand.url = api_1.REST_API.NODE_INTEGRATIONS.CREATE;
11
+ CreateNodeIntegrationCommand.TSQ_url = CreateNodeIntegrationCommand.url;
12
+ CreateNodeIntegrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.CREATE, 'post', 'Create Node Integration', { scope: 'create', kind: 'write' });
13
+ CreateNodeIntegrationCommand.RequestBodySchema = zod_1.z.object({
14
+ name: zod_1.z
15
+ .string()
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(30, 'Name must be less than 30 characters'),
18
+ description: zod_1.z.nullish(zod_1.z.string().max(255, 'Description must be less than 255 characters')),
19
+ config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
20
+ });
21
+ CreateNodeIntegrationCommand.ResponseSchema = zod_1.z.object({
22
+ response: models_1.NodeIntegrationSchema,
23
+ });
24
+ })(CreateNodeIntegrationCommand || (exports.CreateNodeIntegrationCommand = CreateNodeIntegrationCommand = {}));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteNodeIntegrationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ var DeleteNodeIntegrationCommand;
8
+ (function (DeleteNodeIntegrationCommand) {
9
+ DeleteNodeIntegrationCommand.url = api_1.REST_API.NODE_INTEGRATIONS.DELETE;
10
+ DeleteNodeIntegrationCommand.TSQ_url = DeleteNodeIntegrationCommand.url(':uuid');
11
+ DeleteNodeIntegrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.DELETE(':uuid'), 'delete', 'Delete Node Integration', { scope: 'delete', kind: 'write' });
12
+ DeleteNodeIntegrationCommand.RequestParamSchema = zod_1.z.object({
13
+ uuid: zod_1.z.uuid(),
14
+ });
15
+ })(DeleteNodeIntegrationCommand || (exports.DeleteNodeIntegrationCommand = DeleteNodeIntegrationCommand = {}));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNodeIntegrationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetNodeIntegrationCommand;
9
+ (function (GetNodeIntegrationCommand) {
10
+ GetNodeIntegrationCommand.url = api_1.REST_API.NODE_INTEGRATIONS.GET;
11
+ GetNodeIntegrationCommand.TSQ_url = GetNodeIntegrationCommand.url(':uuid');
12
+ GetNodeIntegrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.GET(':uuid'), 'get', 'Get Node Integration by uuid', { scope: 'get', kind: 'read' });
13
+ GetNodeIntegrationCommand.RequestParamSchema = zod_1.z.object({
14
+ uuid: zod_1.z.uuid(),
15
+ });
16
+ GetNodeIntegrationCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.NodeIntegrationSchema,
18
+ });
19
+ })(GetNodeIntegrationCommand || (exports.GetNodeIntegrationCommand = GetNodeIntegrationCommand = {}));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNodeIntegrationsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetNodeIntegrationsCommand;
9
+ (function (GetNodeIntegrationsCommand) {
10
+ GetNodeIntegrationsCommand.url = api_1.REST_API.NODE_INTEGRATIONS.GET_ALL;
11
+ GetNodeIntegrationsCommand.TSQ_url = GetNodeIntegrationsCommand.url;
12
+ GetNodeIntegrationsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.GET_ALL, 'get', 'Get all Node Integrations', { scope: 'list', kind: 'read' });
13
+ GetNodeIntegrationsCommand.ResponseSchema = zod_1.z.object({
14
+ response: zod_1.z.object({
15
+ total: zod_1.z.number(),
16
+ nodeIntegrations: zod_1.z.array(models_1.NodeIntegrationSchema),
17
+ }),
18
+ });
19
+ })(GetNodeIntegrationsCommand || (exports.GetNodeIntegrationsCommand = GetNodeIntegrationsCommand = {}));
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-node-integration.command"), exports);
18
+ __exportStar(require("./delete-node-integration.command"), exports);
19
+ __exportStar(require("./get-node-integration.command"), exports);
20
+ __exportStar(require("./get-node-integrations.command"), exports);
21
+ __exportStar(require("./update-node-integration.command"), exports);
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateNodeIntegrationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var UpdateNodeIntegrationCommand;
9
+ (function (UpdateNodeIntegrationCommand) {
10
+ UpdateNodeIntegrationCommand.url = api_1.REST_API.NODE_INTEGRATIONS.UPDATE;
11
+ UpdateNodeIntegrationCommand.TSQ_url = UpdateNodeIntegrationCommand.url;
12
+ UpdateNodeIntegrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.UPDATE, 'patch', 'Update Node Integration', { scope: 'update', kind: 'write' });
13
+ UpdateNodeIntegrationCommand.RequestBodySchema = zod_1.z.object({
14
+ uuid: zod_1.z.uuid(),
15
+ name: zod_1.z
16
+ .string()
17
+ .min(2, 'Name must be at least 2 characters')
18
+ .max(30, 'Name must be less than 30 characters')
19
+ .optional(),
20
+ description: zod_1.z.nullish(zod_1.z.string().max(255, 'Description must be less than 255 characters')),
21
+ config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
22
+ restartNodes: zod_1.z.optional(zod_1.z.boolean()),
23
+ });
24
+ UpdateNodeIntegrationCommand.ResponseSchema = zod_1.z.object({
25
+ response: models_1.NodeIntegrationSchema,
26
+ });
27
+ })(UpdateNodeIntegrationCommand || (exports.UpdateNodeIntegrationCommand = UpdateNodeIntegrationCommand = {}));
@@ -31,6 +31,7 @@ var BulkNodesUpdateCommand;
31
31
  .max(36, 'Each tag must be less than 36 characters'))
32
32
  .max(10, 'Maximum 10 tags')),
33
33
  activePluginUuid: zod_1.z.uuid().nullish(),
34
+ integrationUuids: zod_1.z.optional(zod_1.z.array(zod_1.z.uuid()).max(20, 'Maximum 20 integrations')),
34
35
  note: zod_1.z.optional(zod_1.z.string().max(255).nullable()),
35
36
  }),
36
37
  });
@@ -46,6 +46,7 @@ var CreateNodeCommand;
46
46
  .max(36, 'Each tag must be less than 36 characters'))
47
47
  .max(10, 'Maximum 10 tags')),
48
48
  activePluginUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.uuid())),
49
+ integrationUuids: zod_1.z.optional(zod_1.z.array(zod_1.z.uuid()).max(20, 'Maximum 20 integrations')),
49
50
  note: zod_1.z.optional(zod_1.z.string().max(255, 'Note must be less than 255 characters')),
50
51
  ips: zod_1.z.optional(models_1.NodeIpsSchema),
51
52
  });
@@ -53,6 +53,7 @@ var UpdateNodeCommand;
53
53
  .max(36, 'Each tag must be less than 36 characters'))
54
54
  .max(10, 'Maximum 10 tags')),
55
55
  activePluginUuid: zod_1.z.uuid().nullish(),
56
+ integrationUuids: zod_1.z.optional(zod_1.z.array(zod_1.z.uuid()).max(20, 'Maximum 20 integrations')),
56
57
  note: zod_1.z.optional(zod_1.z.string().max(255).nullable()),
57
58
  ips: zod_1.z.optional(models_1.NodeIpsSchema),
58
59
  });
@@ -1190,4 +1190,39 @@ exports.ERRORS = {
1190
1190
  message: 'Sync snippet error',
1191
1191
  httpCode: 500,
1192
1192
  },
1193
+ NODE_INTEGRATION_NOT_FOUND: {
1194
+ code: 'A238',
1195
+ message: 'Node integration not found',
1196
+ httpCode: 404,
1197
+ },
1198
+ GET_ALL_NODE_INTEGRATIONS_ERROR: {
1199
+ code: 'A239',
1200
+ message: 'Get all node integrations error',
1201
+ httpCode: 500,
1202
+ },
1203
+ GET_NODE_INTEGRATION_BY_UUID_ERROR: {
1204
+ code: 'A240',
1205
+ message: 'Get node integration by UUID error',
1206
+ httpCode: 500,
1207
+ },
1208
+ CREATE_NODE_INTEGRATION_ERROR: {
1209
+ code: 'A241',
1210
+ message: 'Create node integration error',
1211
+ httpCode: 500,
1212
+ },
1213
+ UPDATE_NODE_INTEGRATION_ERROR: {
1214
+ code: 'A242',
1215
+ message: 'Update node integration error',
1216
+ httpCode: 500,
1217
+ },
1218
+ DELETE_NODE_INTEGRATION_ERROR: {
1219
+ code: 'A243',
1220
+ message: 'Delete node integration error',
1221
+ httpCode: 500,
1222
+ },
1223
+ NODE_INTEGRATION_NAME_ALREADY_EXISTS: {
1224
+ code: 'A244',
1225
+ message: 'Node integration name already exists',
1226
+ httpCode: 400,
1227
+ },
1193
1228
  };
@@ -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)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/remnawave",