@remnawave/backend-contract 2.2.26 → 2.2.28

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 (25) hide show
  1. package/build/backend/api/controllers/config-profiles.d.ts +1 -0
  2. package/build/backend/api/controllers/config-profiles.d.ts.map +1 -1
  3. package/build/backend/api/controllers/config-profiles.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/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +154 -0
  8. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -0
  9. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +19 -0
  10. package/build/backend/commands/config-profiles/index.d.ts +1 -0
  11. package/build/backend/commands/config-profiles/index.d.ts.map +1 -1
  12. package/build/backend/commands/config-profiles/index.js +1 -0
  13. package/build/backend/constants/errors/errors.d.ts +5 -0
  14. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  15. package/build/backend/constants/errors/errors.js +5 -0
  16. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  17. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  18. package/build/backend/constants/templates/template-keys.js +1 -0
  19. package/build/frontend/api/controllers/config-profiles.js +1 -0
  20. package/build/frontend/api/routes.js +1 -0
  21. package/build/frontend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +19 -0
  22. package/build/frontend/commands/config-profiles/index.js +1 -0
  23. package/build/frontend/constants/errors/errors.js +5 -0
  24. package/build/frontend/constants/templates/template-keys.js +1 -0
  25. package/package.json +1 -1
@@ -6,6 +6,7 @@ export declare const CONFIG_PROFILES_ROUTES: {
6
6
  readonly GET_BY_UUID: (uuid: string) => string;
7
7
  readonly DELETE: (uuid: string) => string;
8
8
  readonly GET_INBOUNDS_BY_PROFILE_UUID: (uuid: string) => string;
9
+ readonly GET_COMPUTED_CONFIG_BY_PROFILE_UUID: (uuid: string) => string;
9
10
  readonly GET_ALL_INBOUNDS: "inbounds";
10
11
  };
11
12
  //# sourceMappingURL=config-profiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-profiles.d.ts","sourceRoot":"","sources":["../../../../api/controllers/config-profiles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;kDACgB,MAAM;;CAErC,CAAC"}
1
+ {"version":3,"file":"config-profiles.d.ts","sourceRoot":"","sources":["../../../../api/controllers/config-profiles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;kDACgB,MAAM;yDACC,MAAM;;CAE5C,CAAC"}
@@ -9,5 +9,6 @@ exports.CONFIG_PROFILES_ROUTES = {
9
9
  GET_BY_UUID: (uuid) => `${uuid}`, // Get config profile by uuid // get
10
10
  DELETE: (uuid) => `${uuid}`, // Delete config profile by uuid // delete
11
11
  GET_INBOUNDS_BY_PROFILE_UUID: (uuid) => `${uuid}/inbounds`, // Get list of all inbounds by config profile uuid // get
12
+ GET_COMPUTED_CONFIG_BY_PROFILE_UUID: (uuid) => `${uuid}/computed-config`, // Get computed config by config profile uuid // get
12
13
  GET_ALL_INBOUNDS: 'inbounds', // Get list of all inbounds // get
13
14
  };
@@ -167,6 +167,7 @@ export declare const REST_API: {
167
167
  readonly GET_BY_UUID: (uuid: string) => string;
168
168
  readonly DELETE: (uuid: string) => string;
169
169
  readonly GET_INBOUNDS_BY_PROFILE_UUID: (uuid: string) => string;
170
+ readonly GET_COMPUTED_CONFIG_BY_PROFILE_UUID: (uuid: string) => string;
170
171
  readonly GET_ALL_INBOUNDS: "/api/config-profiles/inbounds";
171
172
  };
172
173
  readonly INTERNAL_SQUADS: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;gCAwBE,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,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,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;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;CAQ7B,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":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G_PROFILES_ROUTES.GET_BY_UUID(uuid)}`,
205
205
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.DELETE(uuid)}`,
206
206
  GET_INBOUNDS_BY_PROFILE_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_INBOUNDS_BY_PROFILE_UUID(uuid)}`,
207
+ GET_COMPUTED_CONFIG_BY_PROFILE_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_COMPUTED_CONFIG_BY_PROFILE_UUID(uuid)}`,
207
208
  GET_ALL_INBOUNDS: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_ALL_INBOUNDS}`,
208
209
  },
209
210
  INTERNAL_SQUADS: {
@@ -0,0 +1,154 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetComputedConfigProfileByUuidCommand {
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
+ uuid: z.ZodString;
17
+ name: z.ZodString;
18
+ config: z.ZodUnknown;
19
+ inbounds: z.ZodArray<z.ZodObject<{
20
+ uuid: z.ZodString;
21
+ profileUuid: z.ZodString;
22
+ tag: z.ZodString;
23
+ type: z.ZodString;
24
+ network: z.ZodNullable<z.ZodString>;
25
+ security: z.ZodNullable<z.ZodString>;
26
+ port: z.ZodNullable<z.ZodNumber>;
27
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: string;
30
+ uuid: string;
31
+ profileUuid: string;
32
+ tag: string;
33
+ network: string | null;
34
+ security: string | null;
35
+ port: number | null;
36
+ rawInbound?: unknown;
37
+ }, {
38
+ type: string;
39
+ uuid: string;
40
+ profileUuid: string;
41
+ tag: string;
42
+ network: string | null;
43
+ security: string | null;
44
+ port: number | null;
45
+ rawInbound?: unknown;
46
+ }>, "many">;
47
+ nodes: z.ZodArray<z.ZodObject<{
48
+ uuid: z.ZodString;
49
+ name: z.ZodString;
50
+ countryCode: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ uuid: string;
53
+ name: string;
54
+ countryCode: string;
55
+ }, {
56
+ uuid: string;
57
+ name: string;
58
+ countryCode: string;
59
+ }>, "many">;
60
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
61
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ inbounds: {
64
+ type: string;
65
+ uuid: string;
66
+ profileUuid: string;
67
+ tag: string;
68
+ network: string | null;
69
+ security: string | null;
70
+ port: number | null;
71
+ rawInbound?: unknown;
72
+ }[];
73
+ nodes: {
74
+ uuid: string;
75
+ name: string;
76
+ countryCode: string;
77
+ }[];
78
+ uuid: string;
79
+ createdAt: Date;
80
+ updatedAt: Date;
81
+ name: string;
82
+ config?: unknown;
83
+ }, {
84
+ inbounds: {
85
+ type: string;
86
+ uuid: string;
87
+ profileUuid: string;
88
+ tag: string;
89
+ network: string | null;
90
+ security: string | null;
91
+ port: number | null;
92
+ rawInbound?: unknown;
93
+ }[];
94
+ nodes: {
95
+ uuid: string;
96
+ name: string;
97
+ countryCode: string;
98
+ }[];
99
+ uuid: string;
100
+ createdAt: string;
101
+ updatedAt: string;
102
+ name: string;
103
+ config?: unknown;
104
+ }>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ response: {
107
+ inbounds: {
108
+ type: string;
109
+ uuid: string;
110
+ profileUuid: string;
111
+ tag: string;
112
+ network: string | null;
113
+ security: string | null;
114
+ port: number | null;
115
+ rawInbound?: unknown;
116
+ }[];
117
+ nodes: {
118
+ uuid: string;
119
+ name: string;
120
+ countryCode: string;
121
+ }[];
122
+ uuid: string;
123
+ createdAt: Date;
124
+ updatedAt: Date;
125
+ name: string;
126
+ config?: unknown;
127
+ };
128
+ }, {
129
+ response: {
130
+ inbounds: {
131
+ type: string;
132
+ uuid: string;
133
+ profileUuid: string;
134
+ tag: string;
135
+ network: string | null;
136
+ security: string | null;
137
+ port: number | null;
138
+ rawInbound?: unknown;
139
+ }[];
140
+ nodes: {
141
+ uuid: string;
142
+ name: string;
143
+ countryCode: string;
144
+ }[];
145
+ uuid: string;
146
+ createdAt: string;
147
+ updatedAt: string;
148
+ name: string;
149
+ config?: unknown;
150
+ };
151
+ }>;
152
+ type Response = z.infer<typeof ResponseSchema>;
153
+ }
154
+ //# sourceMappingURL=get-computed-config-profile-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-computed-config-profile-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/config-profiles/get-computed-config-profile-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,0BAA+D,CAAC;IACzE,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetComputedConfigProfileByUuidCommand = 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 GetComputedConfigProfileByUuidCommand;
9
+ (function (GetComputedConfigProfileByUuidCommand) {
10
+ GetComputedConfigProfileByUuidCommand.url = api_1.REST_API.CONFIG_PROFILES.GET_COMPUTED_CONFIG_BY_PROFILE_UUID;
11
+ GetComputedConfigProfileByUuidCommand.TSQ_url = GetComputedConfigProfileByUuidCommand.url(':uuid');
12
+ GetComputedConfigProfileByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONFIG_PROFILES_ROUTES.GET_COMPUTED_CONFIG_BY_PROFILE_UUID(':uuid'), 'get', 'Get computed config profile by uuid');
13
+ GetComputedConfigProfileByUuidCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ });
16
+ GetComputedConfigProfileByUuidCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.ConfigProfileSchema,
18
+ });
19
+ })(GetComputedConfigProfileByUuidCommand || (exports.GetComputedConfigProfileByUuidCommand = GetComputedConfigProfileByUuidCommand = {}));
@@ -1,6 +1,7 @@
1
1
  export * from './create-config-profile.command';
2
2
  export * from './delete-config-profile.command';
3
3
  export * from './get-all-inbounds.command';
4
+ export * from './get-computed-config-profile-by-uuid.command';
4
5
  export * from './get-config-profile-by-uuid.command';
5
6
  export * from './get-config-profiles.command';
6
7
  export * from './get-inbounds-by-profile-uuid.command';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/config-profiles/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/config-profiles/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC"}
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-config-profile.command"), exports);
18
18
  __exportStar(require("./delete-config-profile.command"), exports);
19
19
  __exportStar(require("./get-all-inbounds.command"), exports);
20
+ __exportStar(require("./get-computed-config-profile-by-uuid.command"), exports);
20
21
  __exportStar(require("./get-config-profile-by-uuid.command"), exports);
21
22
  __exportStar(require("./get-config-profiles.command"), exports);
22
23
  __exportStar(require("./get-inbounds-by-profile-uuid.command"), exports);
@@ -1034,5 +1034,10 @@ export declare const ERRORS: {
1034
1034
  httpCode: number;
1035
1035
  };
1036
1036
  };
1037
+ readonly GET_COMPUTED_CONFIG_PROFILE_BY_UUID_ERROR: {
1038
+ readonly code: "A200";
1039
+ readonly message: "Get computed config profile by UUID error";
1040
+ readonly httpCode: 500;
1041
+ };
1037
1042
  };
1038
1043
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM;;;;;;;;;;;CAW3B,CAAC"}
@@ -1005,4 +1005,9 @@ exports.ERRORS = {
1005
1005
  httpCode: 500,
1006
1006
  }),
1007
1007
  },
1008
+ GET_COMPUTED_CONFIG_PROFILE_BY_UUID_ERROR: {
1009
+ code: 'A200',
1010
+ message: 'Get computed config profile by UUID error',
1011
+ httpCode: 500,
1012
+ },
1008
1013
  };
@@ -1,3 +1,3 @@
1
- export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG"];
1
+ export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG", "EXPIRE_UNIX"];
2
2
  export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
3
3
  //# sourceMappingURL=template-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kJAWhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,iKAYhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -12,4 +12,5 @@ exports.TEMPLATE_KEYS = [
12
12
  'TELEGRAM_ID',
13
13
  'SUBSCRIPTION_URL',
14
14
  'TAG',
15
+ 'EXPIRE_UNIX',
15
16
  ];
@@ -9,5 +9,6 @@ exports.CONFIG_PROFILES_ROUTES = {
9
9
  GET_BY_UUID: (uuid) => `${uuid}`, // Get config profile by uuid // get
10
10
  DELETE: (uuid) => `${uuid}`, // Delete config profile by uuid // delete
11
11
  GET_INBOUNDS_BY_PROFILE_UUID: (uuid) => `${uuid}/inbounds`, // Get list of all inbounds by config profile uuid // get
12
+ GET_COMPUTED_CONFIG_BY_PROFILE_UUID: (uuid) => `${uuid}/computed-config`, // Get computed config by config profile uuid // get
12
13
  GET_ALL_INBOUNDS: 'inbounds', // Get list of all inbounds // get
13
14
  };
@@ -204,6 +204,7 @@ exports.REST_API = {
204
204
  GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_BY_UUID(uuid)}`,
205
205
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.DELETE(uuid)}`,
206
206
  GET_INBOUNDS_BY_PROFILE_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_INBOUNDS_BY_PROFILE_UUID(uuid)}`,
207
+ GET_COMPUTED_CONFIG_BY_PROFILE_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_COMPUTED_CONFIG_BY_PROFILE_UUID(uuid)}`,
207
208
  GET_ALL_INBOUNDS: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_ALL_INBOUNDS}`,
208
209
  },
209
210
  INTERNAL_SQUADS: {
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetComputedConfigProfileByUuidCommand = 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 GetComputedConfigProfileByUuidCommand;
9
+ (function (GetComputedConfigProfileByUuidCommand) {
10
+ GetComputedConfigProfileByUuidCommand.url = api_1.REST_API.CONFIG_PROFILES.GET_COMPUTED_CONFIG_BY_PROFILE_UUID;
11
+ GetComputedConfigProfileByUuidCommand.TSQ_url = GetComputedConfigProfileByUuidCommand.url(':uuid');
12
+ GetComputedConfigProfileByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONFIG_PROFILES_ROUTES.GET_COMPUTED_CONFIG_BY_PROFILE_UUID(':uuid'), 'get', 'Get computed config profile by uuid');
13
+ GetComputedConfigProfileByUuidCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ });
16
+ GetComputedConfigProfileByUuidCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.ConfigProfileSchema,
18
+ });
19
+ })(GetComputedConfigProfileByUuidCommand || (exports.GetComputedConfigProfileByUuidCommand = GetComputedConfigProfileByUuidCommand = {}));
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-config-profile.command"), exports);
18
18
  __exportStar(require("./delete-config-profile.command"), exports);
19
19
  __exportStar(require("./get-all-inbounds.command"), exports);
20
+ __exportStar(require("./get-computed-config-profile-by-uuid.command"), exports);
20
21
  __exportStar(require("./get-config-profile-by-uuid.command"), exports);
21
22
  __exportStar(require("./get-config-profiles.command"), exports);
22
23
  __exportStar(require("./get-inbounds-by-profile-uuid.command"), exports);
@@ -1005,4 +1005,9 @@ exports.ERRORS = {
1005
1005
  httpCode: 500,
1006
1006
  }),
1007
1007
  },
1008
+ GET_COMPUTED_CONFIG_PROFILE_BY_UUID_ERROR: {
1009
+ code: 'A200',
1010
+ message: 'Get computed config profile by UUID error',
1011
+ httpCode: 500,
1012
+ },
1008
1013
  };
@@ -12,4 +12,5 @@ exports.TEMPLATE_KEYS = [
12
12
  'TELEGRAM_ID',
13
13
  'SUBSCRIPTION_URL',
14
14
  'TAG',
15
+ 'EXPIRE_UNIX',
15
16
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.2.26",
3
+ "version": "2.2.28",
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.",