@remnawave/backend-contract 2.1.52 → 2.1.53

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 (21) hide show
  1. package/build/backend/api/controllers/system.d.ts +1 -0
  2. package/build/backend/api/controllers/system.d.ts.map +1 -1
  3. package/build/backend/api/controllers/system.js +1 -0
  4. package/build/backend/api/routes.d.ts +1 -0
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +1 -0
  7. package/build/backend/commands/system/tools/encrypt-happ-cryptolink.command.d.ts +33 -0
  8. package/build/backend/commands/system/tools/encrypt-happ-cryptolink.command.d.ts.map +1 -0
  9. package/build/backend/commands/system/tools/encrypt-happ-cryptolink.command.js +20 -0
  10. package/build/backend/commands/system/tools/{generate-x25519-command.d.ts → generate-x25519.command.d.ts} +1 -1
  11. package/build/backend/commands/system/tools/{generate-x25519-command.d.ts.map → generate-x25519.command.d.ts.map} +1 -1
  12. package/build/backend/commands/system/tools/index.d.ts +2 -1
  13. package/build/backend/commands/system/tools/index.d.ts.map +1 -1
  14. package/build/backend/commands/system/tools/index.js +2 -1
  15. package/build/frontend/api/controllers/system.js +1 -0
  16. package/build/frontend/api/routes.js +1 -0
  17. package/build/frontend/commands/system/tools/encrypt-happ-cryptolink.command.js +20 -0
  18. package/build/frontend/commands/system/tools/index.js +2 -1
  19. package/package.json +1 -1
  20. /package/build/backend/commands/system/tools/{generate-x25519-command.js → generate-x25519.command.js} +0 -0
  21. /package/build/frontend/commands/system/tools/{generate-x25519-command.js → generate-x25519.command.js} +0 -0
@@ -8,6 +8,7 @@ export declare const SYSTEM_ROUTES: {
8
8
  };
9
9
  readonly TOOLS: {
10
10
  readonly GENERATE_X25519: "tools/x25519/generate";
11
+ readonly ENCRYPT_HAPP_CRYPTO_LINK: "tools/happ/encrypt";
11
12
  };
12
13
  readonly HEALTH: "health";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../api/controllers/system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;;;;;;;;;;CAWhB,CAAC"}
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../api/controllers/system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;;;;;;;;;;;CAYhB,CAAC"}
@@ -11,6 +11,7 @@ exports.SYSTEM_ROUTES = {
11
11
  },
12
12
  TOOLS: {
13
13
  GENERATE_X25519: 'tools/x25519/generate',
14
+ ENCRYPT_HAPP_CRYPTO_LINK: 'tools/happ/encrypt',
14
15
  },
15
16
  HEALTH: 'health',
16
17
  };
@@ -116,6 +116,7 @@ export declare const REST_API: {
116
116
  };
117
117
  readonly TOOLS: {
118
118
  readonly GENERATE_X25519: "/api/system/tools/x25519/generate";
119
+ readonly ENCRYPT_HAPP_CRYPTO_LINK: "/api/system/tools/happ/encrypt";
119
120
  };
120
121
  };
121
122
  readonly SUBSCRIPTION_TEMPLATE: {
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,M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gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAgCD,MAAM;;;;;;;;;;mDAaQ,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;CAOnC,CAAC"}
@@ -153,6 +153,7 @@ exports.REST_API = {
153
153
  },
154
154
  TOOLS: {
155
155
  GENERATE_X25519: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.TOOLS.GENERATE_X25519}`,
156
+ ENCRYPT_HAPP_CRYPTO_LINK: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.TOOLS.ENCRYPT_HAPP_CRYPTO_LINK}`,
156
157
  },
157
158
  },
158
159
  SUBSCRIPTION_TEMPLATE: {
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ export declare namespace EncryptHappCryptoLinkCommand {
3
+ const url: "/api/system/tools/happ/encrypt";
4
+ const TSQ_url: "/api/system/tools/happ/encrypt";
5
+ const endpointDetails: import("../../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ linkToEncrypt: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ linkToEncrypt: string;
10
+ }, {
11
+ linkToEncrypt: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ encryptedLink: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ encryptedLink: string;
19
+ }, {
20
+ encryptedLink: string;
21
+ }>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ response: {
24
+ encryptedLink: string;
25
+ };
26
+ }, {
27
+ response: {
28
+ encryptedLink: string;
29
+ };
30
+ }>;
31
+ type Response = z.infer<typeof ResponseSchema>;
32
+ }
33
+ //# sourceMappingURL=encrypt-happ-cryptolink.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encrypt-happ-cryptolink.command.d.ts","sourceRoot":"","sources":["../../../../../commands/system/tools/encrypt-happ-cryptolink.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,GAAG,kCAAiD,CAAC;IAC3D,MAAM,OAAO,kCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IACK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EncryptHappCryptoLinkCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ var EncryptHappCryptoLinkCommand;
8
+ (function (EncryptHappCryptoLinkCommand) {
9
+ EncryptHappCryptoLinkCommand.url = api_1.REST_API.SYSTEM.TOOLS.ENCRYPT_HAPP_CRYPTO_LINK;
10
+ EncryptHappCryptoLinkCommand.TSQ_url = EncryptHappCryptoLinkCommand.url;
11
+ EncryptHappCryptoLinkCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SYSTEM_ROUTES.TOOLS.ENCRYPT_HAPP_CRYPTO_LINK, 'post', 'Encrypt Happ Crypto Link');
12
+ EncryptHappCryptoLinkCommand.RequestSchema = zod_1.z.object({
13
+ linkToEncrypt: zod_1.z.string().url(),
14
+ });
15
+ EncryptHappCryptoLinkCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ encryptedLink: zod_1.z.string(),
18
+ }),
19
+ });
20
+ })(EncryptHappCryptoLinkCommand || (exports.EncryptHappCryptoLinkCommand = EncryptHappCryptoLinkCommand = {}));
@@ -43,4 +43,4 @@ export declare namespace GenerateX25519Command {
43
43
  }>;
44
44
  type Response = z.infer<typeof ResponseSchema>;
45
45
  }
46
- //# sourceMappingURL=generate-x25519-command.d.ts.map
46
+ //# sourceMappingURL=generate-x25519.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-x25519-command.d.ts","sourceRoot":"","sources":["../../../../../commands/system/tools/generate-x25519-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,qCAAwC,CAAC;IAClD,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"generate-x25519.command.d.ts","sourceRoot":"","sources":["../../../../../commands/system/tools/generate-x25519.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,qCAAwC,CAAC;IAClD,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,2 +1,3 @@
1
- export * from './generate-x25519-command';
1
+ export * from './encrypt-happ-cryptolink.command';
2
+ export * from './generate-x25519.command';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/system/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/system/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC"}
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./generate-x25519-command"), exports);
17
+ __exportStar(require("./encrypt-happ-cryptolink.command"), exports);
18
+ __exportStar(require("./generate-x25519.command"), exports);
@@ -11,6 +11,7 @@ exports.SYSTEM_ROUTES = {
11
11
  },
12
12
  TOOLS: {
13
13
  GENERATE_X25519: 'tools/x25519/generate',
14
+ ENCRYPT_HAPP_CRYPTO_LINK: 'tools/happ/encrypt',
14
15
  },
15
16
  HEALTH: 'health',
16
17
  };
@@ -153,6 +153,7 @@ exports.REST_API = {
153
153
  },
154
154
  TOOLS: {
155
155
  GENERATE_X25519: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.TOOLS.GENERATE_X25519}`,
156
+ ENCRYPT_HAPP_CRYPTO_LINK: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.TOOLS.ENCRYPT_HAPP_CRYPTO_LINK}`,
156
157
  },
157
158
  },
158
159
  SUBSCRIPTION_TEMPLATE: {
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EncryptHappCryptoLinkCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ var EncryptHappCryptoLinkCommand;
8
+ (function (EncryptHappCryptoLinkCommand) {
9
+ EncryptHappCryptoLinkCommand.url = api_1.REST_API.SYSTEM.TOOLS.ENCRYPT_HAPP_CRYPTO_LINK;
10
+ EncryptHappCryptoLinkCommand.TSQ_url = EncryptHappCryptoLinkCommand.url;
11
+ EncryptHappCryptoLinkCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SYSTEM_ROUTES.TOOLS.ENCRYPT_HAPP_CRYPTO_LINK, 'post', 'Encrypt Happ Crypto Link');
12
+ EncryptHappCryptoLinkCommand.RequestSchema = zod_1.z.object({
13
+ linkToEncrypt: zod_1.z.string().url(),
14
+ });
15
+ EncryptHappCryptoLinkCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ encryptedLink: zod_1.z.string(),
18
+ }),
19
+ });
20
+ })(EncryptHappCryptoLinkCommand || (exports.EncryptHappCryptoLinkCommand = EncryptHappCryptoLinkCommand = {}));
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./generate-x25519-command"), exports);
17
+ __exportStar(require("./encrypt-happ-cryptolink.command"), exports);
18
+ __exportStar(require("./generate-x25519.command"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.52",
3
+ "version": "2.1.53",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",