@remnawave/backend-contract 2.6.3 → 2.6.4

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.
@@ -10,5 +10,6 @@ export declare const SUBSCRIPTIONS_ROUTES: {
10
10
  readonly SUBPAGE: {
11
11
  readonly GET_CONFIG: (shortUuid: string) => string;
12
12
  };
13
+ readonly GET_CONNECTION_KEYS_BY_UUID: (uuid: string) => string;
13
14
  };
14
15
  //# sourceMappingURL=subscriptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscriptions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;sCAGJ,MAAM;8BACd,MAAM;yCACK,MAAM;6CACF,MAAM;;;yCAGV,MAAM;;CAE5B,CAAC"}
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscriptions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;sCAGJ,MAAM;8BACd,MAAM;yCACK,MAAM;6CACF,MAAM;;;yCAGV,MAAM;;iDAEE,MAAM;CACpC,CAAC"}
@@ -13,4 +13,5 @@ exports.SUBSCRIPTIONS_ROUTES = {
13
13
  SUBPAGE: {
14
14
  GET_CONFIG: (shortUuid) => `subpage-config/${shortUuid}`,
15
15
  },
16
+ GET_CONNECTION_KEYS_BY_UUID: (uuid) => `connection-keys/${uuid}`,
16
17
  };
@@ -171,6 +171,7 @@ export declare const REST_API: {
171
171
  readonly SUBPAGE: {
172
172
  readonly GET_CONFIG: (shortUuid: string) => string;
173
173
  };
174
+ readonly GET_CONNECTION_KEYS_BY_UUID: (uuid: string) => string;
174
175
  };
175
176
  readonly CONFIG_PROFILES: {
176
177
  readonly GET: "/api/config-profiles/";
@@ -1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;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;;;;;;uCAYC,MAAM;;;yCAIJ,MAAM;;;;2CAKJ,MAAM;;;6CAIJ,MAAM;;;;CAKhC,CAAC"}
@@ -208,6 +208,7 @@ exports.REST_API = {
208
208
  SUBPAGE: {
209
209
  GET_CONFIG: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.SUBPAGE.GET_CONFIG(shortUuid)}`,
210
210
  },
211
+ GET_CONNECTION_KEYS_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_CONNECTION_KEYS_BY_UUID(uuid)}`,
211
212
  },
212
213
  CONFIG_PROFILES: {
213
214
  GET: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET}`,
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetConnectionKeysByUuidCommand {
3
+ const url: (uuid: string) => string;
4
+ const TSQ_url: string;
5
+ const endpointDetails: import("../../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ uuid: string;
10
+ }, {
11
+ uuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ enabledKeys: z.ZodArray<z.ZodString, "many">;
17
+ hiddenKeys: z.ZodArray<z.ZodString, "many">;
18
+ disabledKeys: z.ZodArray<z.ZodString, "many">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ enabledKeys: string[];
21
+ hiddenKeys: string[];
22
+ disabledKeys: string[];
23
+ }, {
24
+ enabledKeys: string[];
25
+ hiddenKeys: string[];
26
+ disabledKeys: string[];
27
+ }>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ response: {
30
+ enabledKeys: string[];
31
+ hiddenKeys: string[];
32
+ disabledKeys: string[];
33
+ };
34
+ }, {
35
+ response: {
36
+ enabledKeys: string[];
37
+ hiddenKeys: string[];
38
+ disabledKeys: string[];
39
+ };
40
+ }>;
41
+ type Response = z.infer<typeof ResponseSchema>;
42
+ }
43
+ //# sourceMappingURL=get-connection-keys-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-connection-keys-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-connection-keys-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,0BAAqD,CAAC;IAC/D,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConnectionKeysByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ var GetConnectionKeysByUuidCommand;
8
+ (function (GetConnectionKeysByUuidCommand) {
9
+ GetConnectionKeysByUuidCommand.url = api_1.REST_API.SUBSCRIPTIONS.GET_CONNECTION_KEYS_BY_UUID;
10
+ GetConnectionKeysByUuidCommand.TSQ_url = GetConnectionKeysByUuidCommand.url(':uuid');
11
+ GetConnectionKeysByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTIONS_ROUTES.GET_CONNECTION_KEYS_BY_UUID(':uuid'), 'get', 'Get connection keys (base64 format) by uuid');
12
+ GetConnectionKeysByUuidCommand.RequestSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string(),
14
+ });
15
+ GetConnectionKeysByUuidCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ enabledKeys: zod_1.z.array(zod_1.z.string()),
18
+ hiddenKeys: zod_1.z.array(zod_1.z.string()),
19
+ disabledKeys: zod_1.z.array(zod_1.z.string()),
20
+ }),
21
+ });
22
+ })(GetConnectionKeysByUuidCommand || (exports.GetConnectionKeysByUuidCommand = GetConnectionKeysByUuidCommand = {}));
@@ -1,3 +1,4 @@
1
+ export * from './get-connection-keys-by-uuid.command';
1
2
  export * from './get-raw-subscription-by-short-uuid.command';
2
3
  export * from './get-subscription-by-short-uuid-protected.command';
3
4
  export * from './get-subscription-by-username.command';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC"}
@@ -14,6 +14,7 @@ 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("./get-connection-keys-by-uuid.command"), exports);
17
18
  __exportStar(require("./get-raw-subscription-by-short-uuid.command"), exports);
18
19
  __exportStar(require("./get-subscription-by-short-uuid-protected.command"), exports);
19
20
  __exportStar(require("./get-subscription-by-username.command"), exports);
@@ -13,4 +13,5 @@ exports.SUBSCRIPTIONS_ROUTES = {
13
13
  SUBPAGE: {
14
14
  GET_CONFIG: (shortUuid) => `subpage-config/${shortUuid}`,
15
15
  },
16
+ GET_CONNECTION_KEYS_BY_UUID: (uuid) => `connection-keys/${uuid}`,
16
17
  };
@@ -208,6 +208,7 @@ exports.REST_API = {
208
208
  SUBPAGE: {
209
209
  GET_CONFIG: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.SUBPAGE.GET_CONFIG(shortUuid)}`,
210
210
  },
211
+ GET_CONNECTION_KEYS_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_CONNECTION_KEYS_BY_UUID(uuid)}`,
211
212
  },
212
213
  CONFIG_PROFILES: {
213
214
  GET: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET}`,
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConnectionKeysByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ var GetConnectionKeysByUuidCommand;
8
+ (function (GetConnectionKeysByUuidCommand) {
9
+ GetConnectionKeysByUuidCommand.url = api_1.REST_API.SUBSCRIPTIONS.GET_CONNECTION_KEYS_BY_UUID;
10
+ GetConnectionKeysByUuidCommand.TSQ_url = GetConnectionKeysByUuidCommand.url(':uuid');
11
+ GetConnectionKeysByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTIONS_ROUTES.GET_CONNECTION_KEYS_BY_UUID(':uuid'), 'get', 'Get connection keys (base64 format) by uuid');
12
+ GetConnectionKeysByUuidCommand.RequestSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string(),
14
+ });
15
+ GetConnectionKeysByUuidCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ enabledKeys: zod_1.z.array(zod_1.z.string()),
18
+ hiddenKeys: zod_1.z.array(zod_1.z.string()),
19
+ disabledKeys: zod_1.z.array(zod_1.z.string()),
20
+ }),
21
+ });
22
+ })(GetConnectionKeysByUuidCommand || (exports.GetConnectionKeysByUuidCommand = GetConnectionKeysByUuidCommand = {}));
@@ -14,6 +14,7 @@ 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("./get-connection-keys-by-uuid.command"), exports);
17
18
  __exportStar(require("./get-raw-subscription-by-short-uuid.command"), exports);
18
19
  __exportStar(require("./get-subscription-by-short-uuid-protected.command"), exports);
19
20
  __exportStar(require("./get-subscription-by-username.command"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
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.",