@remnawave/backend-contract 2.1.42 → 2.1.44

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 (60) hide show
  1. package/build/backend/api/controllers/subscription-settings.d.ts +4 -0
  2. package/build/backend/api/controllers/subscription-settings.d.ts.map +1 -1
  3. package/build/backend/api/controllers/subscription-settings.js +4 -0
  4. package/build/backend/api/routes.d.ts +4 -0
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +4 -0
  7. package/build/backend/commands/subscription-settings/index.d.ts +1 -0
  8. package/build/backend/commands/subscription-settings/index.d.ts.map +1 -1
  9. package/build/backend/commands/subscription-settings/index.js +1 -0
  10. package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts +83 -0
  11. package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts.map +1 -0
  12. package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.js +18 -0
  13. package/build/backend/commands/subscription-settings/subscription-response-rules/index.d.ts +3 -0
  14. package/build/backend/commands/subscription-settings/subscription-response-rules/index.d.ts.map +1 -0
  15. package/build/backend/commands/subscription-settings/subscription-response-rules/index.js +18 -0
  16. package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts +115 -0
  17. package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts.map +1 -0
  18. package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +26 -0
  19. package/build/backend/commands/subscription-template/get-template.command.d.ts +6 -6
  20. package/build/backend/commands/subscription-template/update-template.command.d.ts +6 -6
  21. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +1 -0
  22. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
  23. package/build/backend/constants/cache-keys/cache-keys.constants.js +1 -0
  24. package/build/backend/constants/errors/errors.d.ts +10 -0
  25. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  26. package/build/backend/constants/errors/errors.js +10 -0
  27. package/build/backend/constants/index.d.ts +1 -0
  28. package/build/backend/constants/index.d.ts.map +1 -1
  29. package/build/backend/constants/index.js +1 -0
  30. package/build/backend/constants/subscription-response-rules/index.d.ts +2 -0
  31. package/build/backend/constants/subscription-response-rules/index.d.ts.map +1 -0
  32. package/build/backend/constants/subscription-response-rules/index.js +17 -0
  33. package/build/backend/constants/subscription-response-rules/subscription-response-type/index.d.ts +2 -0
  34. package/build/backend/constants/subscription-response-rules/subscription-response-type/index.d.ts.map +1 -0
  35. package/build/backend/constants/subscription-response-rules/subscription-response-type/index.js +17 -0
  36. package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.d.ts +13 -0
  37. package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.d.ts.map +1 -0
  38. package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.js +14 -0
  39. package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts +1 -1
  40. package/build/backend/models/index.d.ts +1 -0
  41. package/build/backend/models/index.d.ts.map +1 -1
  42. package/build/backend/models/index.js +1 -0
  43. package/build/backend/models/subscription-response-rules.schema.d.ts +33 -0
  44. package/build/backend/models/subscription-response-rules.schema.d.ts.map +1 -0
  45. package/build/backend/models/subscription-response-rules.schema.js +13 -0
  46. package/build/frontend/api/controllers/subscription-settings.js +4 -0
  47. package/build/frontend/api/routes.js +4 -0
  48. package/build/frontend/commands/subscription-settings/index.js +1 -0
  49. package/build/frontend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.js +18 -0
  50. package/build/frontend/commands/subscription-settings/subscription-response-rules/index.js +18 -0
  51. package/build/frontend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +26 -0
  52. package/build/frontend/constants/cache-keys/cache-keys.constants.js +1 -0
  53. package/build/frontend/constants/errors/errors.js +10 -0
  54. package/build/frontend/constants/index.js +1 -0
  55. package/build/frontend/constants/subscription-response-rules/index.js +17 -0
  56. package/build/frontend/constants/subscription-response-rules/subscription-response-type/index.js +17 -0
  57. package/build/frontend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.js +14 -0
  58. package/build/frontend/models/index.js +1 -0
  59. package/build/frontend/models/subscription-response-rules.schema.js +13 -0
  60. package/package.json +1 -1
@@ -2,5 +2,9 @@ export declare const SUBSCRIPTION_SETTINGS_CONTROLLER: "subscription-settings";
2
2
  export declare const SUBSCRIPTION_SETTINGS_ROUTES: {
3
3
  readonly GET: "";
4
4
  readonly UPDATE: "";
5
+ readonly RESPONSE_RULES: {
6
+ readonly GET: "/response-rules";
7
+ readonly UPDATE: "/response-rules";
8
+ };
5
9
  };
6
10
  //# sourceMappingURL=subscription-settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-settings.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription-settings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,EAAG,uBAAgC,CAAC;AAEjF,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC"}
1
+ {"version":3,"file":"subscription-settings.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription-settings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,EAAG,uBAAgC,CAAC;AAEjF,eAAO,MAAM,4BAA4B;;;;;;;CAQ/B,CAAC"}
@@ -5,4 +5,8 @@ exports.SUBSCRIPTION_SETTINGS_CONTROLLER = 'subscription-settings';
5
5
  exports.SUBSCRIPTION_SETTINGS_ROUTES = {
6
6
  GET: '',
7
7
  UPDATE: '',
8
+ RESPONSE_RULES: {
9
+ GET: '/response-rules',
10
+ UPDATE: '/response-rules',
11
+ },
8
12
  };
@@ -125,6 +125,10 @@ export declare const REST_API: {
125
125
  readonly SUBSCRIPTION_SETTINGS: {
126
126
  readonly GET: "/api/subscription-settings/";
127
127
  readonly UPDATE: "/api/subscription-settings/";
128
+ readonly RESPONSE_RULES: {
129
+ readonly GET: "/api/subscription-settings//response-rules";
130
+ readonly UPDATE: "/api/subscription-settings//response-rules";
131
+ };
128
132
  };
129
133
  readonly HWID: {
130
134
  readonly GET_ALL_HWID_DEVICES: "/api/hwid/devices";
@@ -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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA+BD,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;;CAGnC,CAAC"}
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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA+BD,MAAM;;;;;;;;;;;;;;mDAiBQ,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;;CAGnC,CAAC"}
@@ -162,6 +162,10 @@ exports.REST_API = {
162
162
  SUBSCRIPTION_SETTINGS: {
163
163
  GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.GET}`,
164
164
  UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.UPDATE}`,
165
+ RESPONSE_RULES: {
166
+ GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.GET}`,
167
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE}`,
168
+ },
165
169
  },
166
170
  HWID: {
167
171
  GET_ALL_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_ALL_HWID_DEVICES}`,
@@ -1,3 +1,4 @@
1
1
  export * from './get-subscription-settings.command';
2
+ export * from './subscription-response-rules';
2
3
  export * from './update-subscription-settings.command';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC"}
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-subscription-settings.command"), exports);
18
+ __exportStar(require("./subscription-response-rules"), exports);
18
19
  __exportStar(require("./update-subscription-settings.command"), exports);
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetSubscriptionResponseRulesCommand {
3
+ const url: "/api/subscription-settings//response-rules";
4
+ const TSQ_url: "/api/subscription-settings//response-rules";
5
+ const endpointDetails: import("../../../constants").EndpointDetails;
6
+ const ResponseSchema: z.ZodObject<{
7
+ response: z.ZodObject<{
8
+ rules: z.ZodArray<z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ order: z.ZodNumber;
11
+ isFallback: z.ZodBoolean;
12
+ userAgentRegex: z.ZodNullable<z.ZodString>;
13
+ xDeviceOsHeader: z.ZodNullable<z.ZodString>;
14
+ responseType: z.ZodNativeEnum<{
15
+ readonly XRAY_BASE64: "XRAY_BASE64";
16
+ readonly XRAY_JSON: "XRAY_JSON";
17
+ readonly MIHOMO: "MIHOMO";
18
+ readonly STASH: "STASH";
19
+ readonly CLASH: "CLASH";
20
+ readonly SINGBOX: "SINGBOX";
21
+ readonly OUTLINE: "OUTLINE";
22
+ readonly BLOCK: "BLOCK";
23
+ }>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ uuid: string;
26
+ order: number;
27
+ isFallback: boolean;
28
+ userAgentRegex: string | null;
29
+ xDeviceOsHeader: string | null;
30
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
31
+ }, {
32
+ uuid: string;
33
+ order: number;
34
+ isFallback: boolean;
35
+ userAgentRegex: string | null;
36
+ xDeviceOsHeader: string | null;
37
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
38
+ }>, "many">;
39
+ }, "strip", z.ZodTypeAny, {
40
+ rules: {
41
+ uuid: string;
42
+ order: number;
43
+ isFallback: boolean;
44
+ userAgentRegex: string | null;
45
+ xDeviceOsHeader: string | null;
46
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
47
+ }[];
48
+ }, {
49
+ rules: {
50
+ uuid: string;
51
+ order: number;
52
+ isFallback: boolean;
53
+ userAgentRegex: string | null;
54
+ xDeviceOsHeader: string | null;
55
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
56
+ }[];
57
+ }>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ response: {
60
+ rules: {
61
+ uuid: string;
62
+ order: number;
63
+ isFallback: boolean;
64
+ userAgentRegex: string | null;
65
+ xDeviceOsHeader: string | null;
66
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
67
+ }[];
68
+ };
69
+ }, {
70
+ response: {
71
+ rules: {
72
+ uuid: string;
73
+ order: number;
74
+ isFallback: boolean;
75
+ userAgentRegex: string | null;
76
+ xDeviceOsHeader: string | null;
77
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
78
+ }[];
79
+ };
80
+ }>;
81
+ type Response = z.infer<typeof ResponseSchema>;
82
+ }
83
+ //# sourceMappingURL=get-subscription-response-rules.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-subscription-response-rules.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,8CAAoD,CAAC;IAC9D,MAAM,OAAO,8CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSubscriptionResponseRulesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const models_1 = require("../../../models");
7
+ const constants_1 = require("../../../constants");
8
+ var GetSubscriptionResponseRulesCommand;
9
+ (function (GetSubscriptionResponseRulesCommand) {
10
+ GetSubscriptionResponseRulesCommand.url = api_1.REST_API.SUBSCRIPTION_SETTINGS.RESPONSE_RULES.GET;
11
+ GetSubscriptionResponseRulesCommand.TSQ_url = GetSubscriptionResponseRulesCommand.url;
12
+ GetSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.GET, 'get', 'Get subscription response rules');
13
+ GetSubscriptionResponseRulesCommand.ResponseSchema = zod_1.z.object({
14
+ response: zod_1.z.object({
15
+ rules: zod_1.z.array(models_1.SubscriptionResponseRulesSchema),
16
+ }),
17
+ });
18
+ })(GetSubscriptionResponseRulesCommand || (exports.GetSubscriptionResponseRulesCommand = GetSubscriptionResponseRulesCommand = {}));
@@ -0,0 +1,3 @@
1
+ export * from './get-subscription-response-rules.command';
2
+ export * from './update-subscription-response-rules.command';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/subscription-settings/subscription-response-rules/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC"}
@@ -0,0 +1,18 @@
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("./get-subscription-response-rules.command"), exports);
18
+ __exportStar(require("./update-subscription-response-rules.command"), exports);
@@ -0,0 +1,115 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateSubscriptionResponseRulesCommand {
3
+ const url: "/api/subscription-settings//response-rules";
4
+ const TSQ_url: "/api/subscription-settings//response-rules";
5
+ const endpointDetails: import("../../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodArray<z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ order: z.ZodNumber;
9
+ isFallback: z.ZodBoolean;
10
+ userAgentRegex: z.ZodNullable<z.ZodString>;
11
+ xDeviceOsHeader: z.ZodNullable<z.ZodString>;
12
+ responseType: z.ZodNativeEnum<{
13
+ readonly XRAY_BASE64: "XRAY_BASE64";
14
+ readonly XRAY_JSON: "XRAY_JSON";
15
+ readonly MIHOMO: "MIHOMO";
16
+ readonly STASH: "STASH";
17
+ readonly CLASH: "CLASH";
18
+ readonly SINGBOX: "SINGBOX";
19
+ readonly OUTLINE: "OUTLINE";
20
+ readonly BLOCK: "BLOCK";
21
+ }>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ uuid: string;
24
+ order: number;
25
+ isFallback: boolean;
26
+ userAgentRegex: string | null;
27
+ xDeviceOsHeader: string | null;
28
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
29
+ }, {
30
+ uuid: string;
31
+ order: number;
32
+ isFallback: boolean;
33
+ userAgentRegex: string | null;
34
+ xDeviceOsHeader: string | null;
35
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
36
+ }>, "many">;
37
+ type Request = z.infer<typeof RequestSchema>;
38
+ const ResponseSchema: z.ZodObject<{
39
+ response: z.ZodObject<{
40
+ rules: z.ZodArray<z.ZodObject<{
41
+ uuid: z.ZodString;
42
+ order: z.ZodNumber;
43
+ isFallback: z.ZodBoolean;
44
+ userAgentRegex: z.ZodNullable<z.ZodString>;
45
+ xDeviceOsHeader: z.ZodNullable<z.ZodString>;
46
+ responseType: z.ZodNativeEnum<{
47
+ readonly XRAY_BASE64: "XRAY_BASE64";
48
+ readonly XRAY_JSON: "XRAY_JSON";
49
+ readonly MIHOMO: "MIHOMO";
50
+ readonly STASH: "STASH";
51
+ readonly CLASH: "CLASH";
52
+ readonly SINGBOX: "SINGBOX";
53
+ readonly OUTLINE: "OUTLINE";
54
+ readonly BLOCK: "BLOCK";
55
+ }>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ uuid: string;
58
+ order: number;
59
+ isFallback: boolean;
60
+ userAgentRegex: string | null;
61
+ xDeviceOsHeader: string | null;
62
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
63
+ }, {
64
+ uuid: string;
65
+ order: number;
66
+ isFallback: boolean;
67
+ userAgentRegex: string | null;
68
+ xDeviceOsHeader: string | null;
69
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
70
+ }>, "many">;
71
+ }, "strip", z.ZodTypeAny, {
72
+ rules: {
73
+ uuid: string;
74
+ order: number;
75
+ isFallback: boolean;
76
+ userAgentRegex: string | null;
77
+ xDeviceOsHeader: string | null;
78
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
79
+ }[];
80
+ }, {
81
+ rules: {
82
+ uuid: string;
83
+ order: number;
84
+ isFallback: boolean;
85
+ userAgentRegex: string | null;
86
+ xDeviceOsHeader: string | null;
87
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
88
+ }[];
89
+ }>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ response: {
92
+ rules: {
93
+ uuid: string;
94
+ order: number;
95
+ isFallback: boolean;
96
+ userAgentRegex: string | null;
97
+ xDeviceOsHeader: string | null;
98
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
99
+ }[];
100
+ };
101
+ }, {
102
+ response: {
103
+ rules: {
104
+ uuid: string;
105
+ order: number;
106
+ isFallback: boolean;
107
+ userAgentRegex: string | null;
108
+ xDeviceOsHeader: string | null;
109
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
110
+ }[];
111
+ };
112
+ }>;
113
+ type Response = z.infer<typeof ResponseSchema>;
114
+ }
115
+ //# sourceMappingURL=update-subscription-response-rules.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-subscription-response-rules.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,8CAAuD,CAAC;IACjE,MAAM,OAAO,8CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eASzB,CAAC;IAEF,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,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSubscriptionResponseRulesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ const models_1 = require("../../../models");
8
+ var UpdateSubscriptionResponseRulesCommand;
9
+ (function (UpdateSubscriptionResponseRulesCommand) {
10
+ UpdateSubscriptionResponseRulesCommand.url = api_1.REST_API.SUBSCRIPTION_SETTINGS.RESPONSE_RULES.UPDATE;
11
+ UpdateSubscriptionResponseRulesCommand.TSQ_url = UpdateSubscriptionResponseRulesCommand.url;
12
+ UpdateSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE, 'patch', 'Update subscription response rules');
13
+ UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.array(zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ order: zod_1.z.number(),
16
+ isFallback: zod_1.z.boolean(),
17
+ userAgentRegex: zod_1.z.string().nullable(),
18
+ xDeviceOsHeader: zod_1.z.string().nullable(),
19
+ responseType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_RESPONSE_TYPE),
20
+ }));
21
+ UpdateSubscriptionResponseRulesCommand.ResponseSchema = zod_1.z.object({
22
+ response: zod_1.z.object({
23
+ rules: zod_1.z.array(models_1.SubscriptionResponseRulesSchema),
24
+ }),
25
+ });
26
+ })(UpdateSubscriptionResponseRulesCommand || (exports.UpdateSubscriptionResponseRulesCommand = UpdateSubscriptionResponseRulesCommand = {}));
@@ -13,9 +13,9 @@ export declare namespace GetSubscriptionTemplateCommand {
13
13
  readonly CLASH: "CLASH";
14
14
  }>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
16
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
17
17
  }, {
18
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
18
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
19
19
  }>;
20
20
  type Request = z.infer<typeof RequestSchema>;
21
21
  const ResponseSchema: z.ZodObject<{
@@ -33,26 +33,26 @@ export declare namespace GetSubscriptionTemplateCommand {
33
33
  encodedTemplateYaml: z.ZodNullable<z.ZodString>;
34
34
  }, "strip", z.ZodTypeAny, {
35
35
  uuid: string;
36
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
36
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
37
37
  encodedTemplateYaml: string | null;
38
38
  templateJson?: unknown;
39
39
  }, {
40
40
  uuid: string;
41
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
41
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
42
42
  encodedTemplateYaml: string | null;
43
43
  templateJson?: unknown;
44
44
  }>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  response: {
47
47
  uuid: string;
48
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
48
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
49
49
  encodedTemplateYaml: string | null;
50
50
  templateJson?: unknown;
51
51
  };
52
52
  }, {
53
53
  response: {
54
54
  uuid: string;
55
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
55
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
56
56
  encodedTemplateYaml: string | null;
57
57
  templateJson?: unknown;
58
58
  };
@@ -15,11 +15,11 @@ export declare namespace UpdateSubscriptionTemplateCommand {
15
15
  templateJson: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
16
16
  encodedTemplateYaml: z.ZodOptional<z.ZodString>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
18
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
19
19
  templateJson?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
20
20
  encodedTemplateYaml?: string | undefined;
21
21
  }, {
22
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
22
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
23
23
  templateJson?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
24
24
  encodedTemplateYaml?: string | undefined;
25
25
  }>;
@@ -39,26 +39,26 @@ export declare namespace UpdateSubscriptionTemplateCommand {
39
39
  encodedTemplateYaml: z.ZodNullable<z.ZodString>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  uuid: string;
42
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
42
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
43
43
  encodedTemplateYaml: string | null;
44
44
  templateJson?: unknown;
45
45
  }, {
46
46
  uuid: string;
47
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
47
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
48
48
  encodedTemplateYaml: string | null;
49
49
  templateJson?: unknown;
50
50
  }>;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  response: {
53
53
  uuid: string;
54
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
54
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
55
55
  encodedTemplateYaml: string | null;
56
56
  templateJson?: unknown;
57
57
  };
58
58
  }, {
59
59
  response: {
60
60
  uuid: string;
61
- templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
61
+ templateType: "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY";
62
62
  encodedTemplateYaml: string | null;
63
63
  templateJson?: unknown;
64
64
  };
@@ -1,4 +1,5 @@
1
1
  export declare const CACHE_KEYS: {
2
2
  readonly SUBSCRIPTION_SETTINGS: "subscription_settings";
3
+ readonly SUBSCRIPTION_RESPONSE_RULES: "subscription_response_rules";
3
4
  };
4
5
  //# sourceMappingURL=cache-keys.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEb,CAAC"}
1
+ {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;CAGb,CAAC"}
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CACHE_KEYS = void 0;
4
4
  exports.CACHE_KEYS = {
5
5
  SUBSCRIPTION_SETTINGS: 'subscription_settings',
6
+ SUBSCRIPTION_RESPONSE_RULES: 'subscription_response_rules',
6
7
  };
@@ -824,5 +824,15 @@ export declare const ERRORS: {
824
824
  readonly message: "Get hwid devices stats error";
825
825
  readonly httpCode: 500;
826
826
  };
827
+ readonly GET_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
828
+ readonly code: "A160";
829
+ readonly message: "Get subscription response rules error";
830
+ readonly httpCode: 500;
831
+ };
832
+ readonly UPDATE_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
833
+ readonly code: "A161";
834
+ readonly message: "Update subscription response rules error";
835
+ readonly httpCode: 500;
836
+ };
827
837
  };
828
838
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8e3B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwf3B,CAAC"}
@@ -795,4 +795,14 @@ exports.ERRORS = {
795
795
  message: 'Get hwid devices stats error',
796
796
  httpCode: 500,
797
797
  },
798
+ GET_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
799
+ code: 'A160',
800
+ message: 'Get subscription response rules error',
801
+ httpCode: 500,
802
+ },
803
+ UPDATE_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
804
+ code: 'A161',
805
+ message: 'Update subscription response rules error',
806
+ httpCode: 500,
807
+ },
798
808
  };
@@ -9,6 +9,7 @@ export * from './metrics';
9
9
  export * from './nodes';
10
10
  export * from './oauth2';
11
11
  export * from './roles';
12
+ export * from './subscription-response-rules';
12
13
  export * from './subscription-template';
13
14
  export * from './templates';
14
15
  export * from './users';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -25,6 +25,7 @@ __exportStar(require("./metrics"), exports);
25
25
  __exportStar(require("./nodes"), exports);
26
26
  __exportStar(require("./oauth2"), exports);
27
27
  __exportStar(require("./roles"), exports);
28
+ __exportStar(require("./subscription-response-rules"), exports);
28
29
  __exportStar(require("./subscription-template"), exports);
29
30
  __exportStar(require("./templates"), exports);
30
31
  __exportStar(require("./users"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './subscription-response-type';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-response-rules/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,17 @@
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("./subscription-response-type"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './subscription-response-type.constant';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-response-rules/subscription-response-type/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
@@ -0,0 +1,17 @@
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("./subscription-response-type.constant"), exports);
@@ -0,0 +1,13 @@
1
+ export declare const SUBSCRIPTION_RESPONSE_TYPE: {
2
+ readonly XRAY_BASE64: "XRAY_BASE64";
3
+ readonly XRAY_JSON: "XRAY_JSON";
4
+ readonly MIHOMO: "MIHOMO";
5
+ readonly STASH: "STASH";
6
+ readonly CLASH: "CLASH";
7
+ readonly SINGBOX: "SINGBOX";
8
+ readonly OUTLINE: "OUTLINE";
9
+ readonly BLOCK: "BLOCK";
10
+ };
11
+ export type TSubscriptionResponseType = [keyof typeof SUBSCRIPTION_RESPONSE_TYPE][number];
12
+ export declare const SUBSCRIPTION_RESPONSE_TYPE_VALUES: ("XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK")[];
13
+ //# sourceMappingURL=subscription-response-type.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-response-type.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;;;;;;CAa7B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1F,eAAO,MAAM,iCAAiC,kGAA4C,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBSCRIPTION_RESPONSE_TYPE_VALUES = exports.SUBSCRIPTION_RESPONSE_TYPE = void 0;
4
+ exports.SUBSCRIPTION_RESPONSE_TYPE = {
5
+ XRAY_BASE64: 'XRAY_BASE64',
6
+ XRAY_JSON: 'XRAY_JSON',
7
+ MIHOMO: 'MIHOMO',
8
+ STASH: 'STASH',
9
+ CLASH: 'CLASH',
10
+ SINGBOX: 'SINGBOX',
11
+ OUTLINE: 'OUTLINE',
12
+ BLOCK: 'BLOCK',
13
+ };
14
+ exports.SUBSCRIPTION_RESPONSE_TYPE_VALUES = Object.values(exports.SUBSCRIPTION_RESPONSE_TYPE);
@@ -7,5 +7,5 @@ export declare const SUBSCRIPTION_TEMPLATE_TYPE: {
7
7
  readonly CLASH: "CLASH";
8
8
  };
9
9
  export type TSubscriptionTemplateType = [keyof typeof SUBSCRIPTION_TEMPLATE_TYPE][number];
10
- export declare const SUBSCRIPTION_TEMPLATE_TYPE_VALUES: ("STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH")[];
10
+ export declare const SUBSCRIPTION_TEMPLATE_TYPE_VALUES: ("XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "SINGBOX_LEGACY")[];
11
11
  //# sourceMappingURL=template-type.constant.d.ts.map
@@ -16,6 +16,7 @@ export * from './internal-squad.schema';
16
16
  export * from './last-connected-node.schema';
17
17
  export * from './nodes.schema';
18
18
  export * from './subscription-info.schema';
19
+ export * from './subscription-response-rules.schema';
19
20
  export * from './subscription-settings.schema';
20
21
  export * from './users.schema';
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -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,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,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,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,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,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,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,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
@@ -32,5 +32,6 @@ __exportStar(require("./internal-squad.schema"), exports);
32
32
  __exportStar(require("./last-connected-node.schema"), exports);
33
33
  __exportStar(require("./nodes.schema"), exports);
34
34
  __exportStar(require("./subscription-info.schema"), exports);
35
+ __exportStar(require("./subscription-response-rules.schema"), exports);
35
36
  __exportStar(require("./subscription-settings.schema"), exports);
36
37
  __exportStar(require("./users.schema"), exports);
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ export declare const SubscriptionResponseRulesSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ order: z.ZodNumber;
5
+ isFallback: z.ZodBoolean;
6
+ userAgentRegex: z.ZodNullable<z.ZodString>;
7
+ xDeviceOsHeader: z.ZodNullable<z.ZodString>;
8
+ responseType: z.ZodNativeEnum<{
9
+ readonly XRAY_BASE64: "XRAY_BASE64";
10
+ readonly XRAY_JSON: "XRAY_JSON";
11
+ readonly MIHOMO: "MIHOMO";
12
+ readonly STASH: "STASH";
13
+ readonly CLASH: "CLASH";
14
+ readonly SINGBOX: "SINGBOX";
15
+ readonly OUTLINE: "OUTLINE";
16
+ readonly BLOCK: "BLOCK";
17
+ }>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ uuid: string;
20
+ order: number;
21
+ isFallback: boolean;
22
+ userAgentRegex: string | null;
23
+ xDeviceOsHeader: string | null;
24
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
25
+ }, {
26
+ uuid: string;
27
+ order: number;
28
+ isFallback: boolean;
29
+ userAgentRegex: string | null;
30
+ xDeviceOsHeader: string | null;
31
+ responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
32
+ }>;
33
+ //# sourceMappingURL=subscription-response-rules.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-response-rules.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-response-rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionResponseRulesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../constants");
6
+ exports.SubscriptionResponseRulesSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ order: zod_1.z.number(),
9
+ isFallback: zod_1.z.boolean(),
10
+ userAgentRegex: zod_1.z.string().nullable(),
11
+ xDeviceOsHeader: zod_1.z.string().nullable(),
12
+ responseType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_RESPONSE_TYPE),
13
+ });
@@ -5,4 +5,8 @@ exports.SUBSCRIPTION_SETTINGS_CONTROLLER = 'subscription-settings';
5
5
  exports.SUBSCRIPTION_SETTINGS_ROUTES = {
6
6
  GET: '',
7
7
  UPDATE: '',
8
+ RESPONSE_RULES: {
9
+ GET: '/response-rules',
10
+ UPDATE: '/response-rules',
11
+ },
8
12
  };
@@ -162,6 +162,10 @@ exports.REST_API = {
162
162
  SUBSCRIPTION_SETTINGS: {
163
163
  GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.GET}`,
164
164
  UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.UPDATE}`,
165
+ RESPONSE_RULES: {
166
+ GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.GET}`,
167
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE}`,
168
+ },
165
169
  },
166
170
  HWID: {
167
171
  GET_ALL_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_ALL_HWID_DEVICES}`,
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-subscription-settings.command"), exports);
18
+ __exportStar(require("./subscription-response-rules"), exports);
18
19
  __exportStar(require("./update-subscription-settings.command"), exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSubscriptionResponseRulesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const models_1 = require("../../../models");
7
+ const constants_1 = require("../../../constants");
8
+ var GetSubscriptionResponseRulesCommand;
9
+ (function (GetSubscriptionResponseRulesCommand) {
10
+ GetSubscriptionResponseRulesCommand.url = api_1.REST_API.SUBSCRIPTION_SETTINGS.RESPONSE_RULES.GET;
11
+ GetSubscriptionResponseRulesCommand.TSQ_url = GetSubscriptionResponseRulesCommand.url;
12
+ GetSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.GET, 'get', 'Get subscription response rules');
13
+ GetSubscriptionResponseRulesCommand.ResponseSchema = zod_1.z.object({
14
+ response: zod_1.z.object({
15
+ rules: zod_1.z.array(models_1.SubscriptionResponseRulesSchema),
16
+ }),
17
+ });
18
+ })(GetSubscriptionResponseRulesCommand || (exports.GetSubscriptionResponseRulesCommand = GetSubscriptionResponseRulesCommand = {}));
@@ -0,0 +1,18 @@
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("./get-subscription-response-rules.command"), exports);
18
+ __exportStar(require("./update-subscription-response-rules.command"), exports);
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSubscriptionResponseRulesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ const models_1 = require("../../../models");
8
+ var UpdateSubscriptionResponseRulesCommand;
9
+ (function (UpdateSubscriptionResponseRulesCommand) {
10
+ UpdateSubscriptionResponseRulesCommand.url = api_1.REST_API.SUBSCRIPTION_SETTINGS.RESPONSE_RULES.UPDATE;
11
+ UpdateSubscriptionResponseRulesCommand.TSQ_url = UpdateSubscriptionResponseRulesCommand.url;
12
+ UpdateSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE, 'patch', 'Update subscription response rules');
13
+ UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.array(zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ order: zod_1.z.number(),
16
+ isFallback: zod_1.z.boolean(),
17
+ userAgentRegex: zod_1.z.string().nullable(),
18
+ xDeviceOsHeader: zod_1.z.string().nullable(),
19
+ responseType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_RESPONSE_TYPE),
20
+ }));
21
+ UpdateSubscriptionResponseRulesCommand.ResponseSchema = zod_1.z.object({
22
+ response: zod_1.z.object({
23
+ rules: zod_1.z.array(models_1.SubscriptionResponseRulesSchema),
24
+ }),
25
+ });
26
+ })(UpdateSubscriptionResponseRulesCommand || (exports.UpdateSubscriptionResponseRulesCommand = UpdateSubscriptionResponseRulesCommand = {}));
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CACHE_KEYS = void 0;
4
4
  exports.CACHE_KEYS = {
5
5
  SUBSCRIPTION_SETTINGS: 'subscription_settings',
6
+ SUBSCRIPTION_RESPONSE_RULES: 'subscription_response_rules',
6
7
  };
@@ -795,4 +795,14 @@ exports.ERRORS = {
795
795
  message: 'Get hwid devices stats error',
796
796
  httpCode: 500,
797
797
  },
798
+ GET_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
799
+ code: 'A160',
800
+ message: 'Get subscription response rules error',
801
+ httpCode: 500,
802
+ },
803
+ UPDATE_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
804
+ code: 'A161',
805
+ message: 'Update subscription response rules error',
806
+ httpCode: 500,
807
+ },
798
808
  };
@@ -25,6 +25,7 @@ __exportStar(require("./metrics"), exports);
25
25
  __exportStar(require("./nodes"), exports);
26
26
  __exportStar(require("./oauth2"), exports);
27
27
  __exportStar(require("./roles"), exports);
28
+ __exportStar(require("./subscription-response-rules"), exports);
28
29
  __exportStar(require("./subscription-template"), exports);
29
30
  __exportStar(require("./templates"), exports);
30
31
  __exportStar(require("./users"), exports);
@@ -0,0 +1,17 @@
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("./subscription-response-type"), exports);
@@ -0,0 +1,17 @@
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("./subscription-response-type.constant"), exports);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBSCRIPTION_RESPONSE_TYPE_VALUES = exports.SUBSCRIPTION_RESPONSE_TYPE = void 0;
4
+ exports.SUBSCRIPTION_RESPONSE_TYPE = {
5
+ XRAY_BASE64: 'XRAY_BASE64',
6
+ XRAY_JSON: 'XRAY_JSON',
7
+ MIHOMO: 'MIHOMO',
8
+ STASH: 'STASH',
9
+ CLASH: 'CLASH',
10
+ SINGBOX: 'SINGBOX',
11
+ OUTLINE: 'OUTLINE',
12
+ BLOCK: 'BLOCK',
13
+ };
14
+ exports.SUBSCRIPTION_RESPONSE_TYPE_VALUES = Object.values(exports.SUBSCRIPTION_RESPONSE_TYPE);
@@ -32,5 +32,6 @@ __exportStar(require("./internal-squad.schema"), exports);
32
32
  __exportStar(require("./last-connected-node.schema"), exports);
33
33
  __exportStar(require("./nodes.schema"), exports);
34
34
  __exportStar(require("./subscription-info.schema"), exports);
35
+ __exportStar(require("./subscription-response-rules.schema"), exports);
35
36
  __exportStar(require("./subscription-settings.schema"), exports);
36
37
  __exportStar(require("./users.schema"), exports);
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionResponseRulesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../constants");
6
+ exports.SubscriptionResponseRulesSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ order: zod_1.z.number(),
9
+ isFallback: zod_1.z.boolean(),
10
+ userAgentRegex: zod_1.z.string().nullable(),
11
+ xDeviceOsHeader: zod_1.z.string().nullable(),
12
+ responseType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_RESPONSE_TYPE),
13
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.42",
3
+ "version": "2.1.44",
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.",