@remnawave/backend-contract 2.1.46 → 2.1.50
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.
- package/build/backend/api/controllers/subscription-settings.d.ts +0 -4
- package/build/backend/api/controllers/subscription-settings.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-settings.js +0 -4
- package/build/backend/api/routes.d.ts +0 -4
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +0 -4
- package/build/backend/commands/subscription-settings/index.d.ts +0 -1
- package/build/backend/commands/subscription-settings/index.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/index.js +0 -1
- package/build/backend/commands/subscription-template/get-template.command.d.ts +6 -6
- package/build/backend/commands/subscription-template/update-template.command.d.ts +6 -6
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +0 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +0 -1
- package/build/backend/constants/errors/errors.d.ts +0 -10
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +0 -10
- package/build/backend/constants/index.d.ts +0 -1
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +0 -1
- package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts +1 -1
- package/build/backend/models/index.d.ts +0 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +0 -1
- package/build/frontend/api/controllers/subscription-settings.js +0 -4
- package/build/frontend/api/routes.js +0 -4
- package/build/frontend/commands/subscription-settings/index.js +0 -1
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +0 -1
- package/build/frontend/constants/errors/errors.js +0 -10
- package/build/frontend/constants/index.js +0 -1
- package/build/frontend/models/index.js +0 -1
- package/package.json +1 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts +0 -83
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts.map +0 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.js +0 -18
- package/build/backend/commands/subscription-settings/subscription-response-rules/index.d.ts +0 -3
- package/build/backend/commands/subscription-settings/subscription-response-rules/index.d.ts.map +0 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/index.js +0 -18
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts +0 -115
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts.map +0 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +0 -26
- package/build/backend/constants/subscription-response-rules/index.d.ts +0 -2
- package/build/backend/constants/subscription-response-rules/index.d.ts.map +0 -1
- package/build/backend/constants/subscription-response-rules/index.js +0 -17
- package/build/backend/constants/subscription-response-rules/subscription-response-type/index.d.ts +0 -2
- package/build/backend/constants/subscription-response-rules/subscription-response-type/index.d.ts.map +0 -1
- package/build/backend/constants/subscription-response-rules/subscription-response-type/index.js +0 -17
- package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.d.ts +0 -13
- package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.d.ts.map +0 -1
- package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.js +0 -14
- package/build/backend/models/subscription-response-rules.schema.d.ts +0 -33
- package/build/backend/models/subscription-response-rules.schema.d.ts.map +0 -1
- package/build/backend/models/subscription-response-rules.schema.js +0 -13
- package/build/frontend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.js +0 -18
- package/build/frontend/commands/subscription-settings/subscription-response-rules/index.js +0 -18
- package/build/frontend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +0 -26
- package/build/frontend/constants/subscription-response-rules/index.js +0 -17
- package/build/frontend/constants/subscription-response-rules/subscription-response-type/index.js +0 -17
- package/build/frontend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.js +0 -14
- package/build/frontend/models/subscription-response-rules.schema.js +0 -13
@@ -2,9 +2,5 @@ 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
|
-
};
|
9
5
|
};
|
10
6
|
//# 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
|
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"}
|
@@ -125,10 +125,6 @@ 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
|
-
};
|
132
128
|
};
|
133
129
|
readonly HWID: {
|
134
130
|
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
|
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"}
|
@@ -162,10 +162,6 @@ 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
|
-
},
|
169
165
|
},
|
170
166
|
HWID: {
|
171
167
|
GET_ALL_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_ALL_HWID_DEVICES}`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC"}
|
@@ -15,5 +15,4 @@ 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);
|
19
18
|
__exportStar(require("./update-subscription-settings.command"), exports);
|
@@ -13,9 +13,9 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
13
13
|
readonly CLASH: "CLASH";
|
14
14
|
}>;
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
16
|
-
templateType: "
|
16
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
17
17
|
}, {
|
18
|
-
templateType: "
|
18
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
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: "
|
36
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
37
37
|
encodedTemplateYaml: string | null;
|
38
38
|
templateJson?: unknown;
|
39
39
|
}, {
|
40
40
|
uuid: string;
|
41
|
-
templateType: "
|
41
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
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: "
|
48
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
49
49
|
encodedTemplateYaml: string | null;
|
50
50
|
templateJson?: unknown;
|
51
51
|
};
|
52
52
|
}, {
|
53
53
|
response: {
|
54
54
|
uuid: string;
|
55
|
-
templateType: "
|
55
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
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: "
|
18
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
19
19
|
templateJson?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
20
20
|
encodedTemplateYaml?: string | undefined;
|
21
21
|
}, {
|
22
|
-
templateType: "
|
22
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
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: "
|
42
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
43
43
|
encodedTemplateYaml: string | null;
|
44
44
|
templateJson?: unknown;
|
45
45
|
}, {
|
46
46
|
uuid: string;
|
47
|
-
templateType: "
|
47
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
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: "
|
54
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
55
55
|
encodedTemplateYaml: string | null;
|
56
56
|
templateJson?: unknown;
|
57
57
|
};
|
58
58
|
}, {
|
59
59
|
response: {
|
60
60
|
uuid: string;
|
61
|
-
templateType: "
|
61
|
+
templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH";
|
62
62
|
encodedTemplateYaml: string | null;
|
63
63
|
templateJson?: unknown;
|
64
64
|
};
|
@@ -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
|
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"}
|
@@ -824,15 +824,5 @@ 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
|
-
};
|
837
827
|
};
|
838
828
|
//# 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
|
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"}
|
@@ -795,14 +795,4 @@ 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
|
-
},
|
808
798
|
};
|
@@ -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
|
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"}
|
@@ -25,7 +25,6 @@ __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);
|
29
28
|
__exportStar(require("./subscription-template"), exports);
|
30
29
|
__exportStar(require("./templates"), exports);
|
31
30
|
__exportStar(require("./users"), exports);
|
package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts
CHANGED
@@ -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: ("
|
10
|
+
export declare const SUBSCRIPTION_TEMPLATE_TYPE_VALUES: ("STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH")[];
|
11
11
|
//# sourceMappingURL=template-type.constant.d.ts.map
|
@@ -16,7 +16,6 @@ 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';
|
20
19
|
export * from './subscription-settings.schema';
|
21
20
|
export * from './users.schema';
|
22
21
|
//# 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,
|
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"}
|
@@ -32,6 +32,5 @@ __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);
|
36
35
|
__exportStar(require("./subscription-settings.schema"), exports);
|
37
36
|
__exportStar(require("./users.schema"), exports);
|
@@ -162,10 +162,6 @@ 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
|
-
},
|
169
165
|
},
|
170
166
|
HWID: {
|
171
167
|
GET_ALL_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_ALL_HWID_DEVICES}`,
|
@@ -15,5 +15,4 @@ 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);
|
19
18
|
__exportStar(require("./update-subscription-settings.command"), exports);
|
@@ -795,14 +795,4 @@ 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
|
-
},
|
808
798
|
};
|
@@ -25,7 +25,6 @@ __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);
|
29
28
|
__exportStar(require("./subscription-template"), exports);
|
30
29
|
__exportStar(require("./templates"), exports);
|
31
30
|
__exportStar(require("./users"), exports);
|
@@ -32,6 +32,5 @@ __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);
|
36
35
|
__exportStar(require("./subscription-settings.schema"), exports);
|
37
36
|
__exportStar(require("./users.schema"), exports);
|
package/package.json
CHANGED
@@ -1,83 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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,6CAAoD,CAAC;IAC9D,MAAM,OAAO,6CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -1,18 +0,0 @@
|
|
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 = {}));
|
package/build/backend/commands/subscription-settings/subscription-response-rules/index.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,18 +0,0 @@
|
|
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);
|
@@ -1,115 +0,0 @@
|
|
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.ZodOptional<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
|
-
order: number;
|
24
|
-
isFallback: boolean;
|
25
|
-
userAgentRegex: string | null;
|
26
|
-
xDeviceOsHeader: string | null;
|
27
|
-
responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
|
28
|
-
uuid?: string | undefined;
|
29
|
-
}, {
|
30
|
-
order: number;
|
31
|
-
isFallback: boolean;
|
32
|
-
userAgentRegex: string | null;
|
33
|
-
xDeviceOsHeader: string | null;
|
34
|
-
responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
|
35
|
-
uuid?: string | undefined;
|
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
|
@@ -1 +0,0 @@
|
|
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,6CAAuD,CAAC;IACjE,MAAM,OAAO,6CAAM,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"}
|
@@ -1,26 +0,0 @@
|
|
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, 'post', 'Update subscription response rules');
|
13
|
-
UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.array(zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid().optional(),
|
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 = {}));
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-response-rules/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
@@ -1,17 +0,0 @@
|
|
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);
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-response-rules/subscription-response-type/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
|
package/build/backend/constants/subscription-response-rules/subscription-response-type/index.js
DELETED
@@ -1,17 +0,0 @@
|
|
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);
|
@@ -1,13 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,14 +0,0 @@
|
|
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);
|
@@ -1,33 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,13 +0,0 @@
|
|
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
|
-
});
|
@@ -1,18 +0,0 @@
|
|
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 = {}));
|
@@ -1,18 +0,0 @@
|
|
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);
|
@@ -1,26 +0,0 @@
|
|
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, 'post', 'Update subscription response rules');
|
13
|
-
UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.array(zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid().optional(),
|
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 = {}));
|
@@ -1,17 +0,0 @@
|
|
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);
|
package/build/frontend/constants/subscription-response-rules/subscription-response-type/index.js
DELETED
@@ -1,17 +0,0 @@
|
|
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);
|
@@ -1,14 +0,0 @@
|
|
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);
|
@@ -1,13 +0,0 @@
|
|
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
|
-
});
|