@remnawave/backend-contract 2.1.45 → 2.1.47
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/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts +49 -29
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +11 -9
- package/build/frontend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +11 -9
- package/package.json +1 -1
|
@@ -3,37 +3,57 @@ export declare namespace UpdateSubscriptionResponseRulesCommand {
|
|
|
3
3
|
const url: "/api/subscription-settings/response-rules";
|
|
4
4
|
const TSQ_url: "/api/subscription-settings/response-rules";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
-
const RequestSchema: z.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
8
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
9
|
+
order: z.ZodNumber;
|
|
10
|
+
isFallback: z.ZodBoolean;
|
|
11
|
+
userAgentRegex: z.ZodNullable<z.ZodString>;
|
|
12
|
+
xDeviceOsHeader: z.ZodNullable<z.ZodString>;
|
|
13
|
+
responseType: z.ZodNativeEnum<{
|
|
14
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
15
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
16
|
+
readonly MIHOMO: "MIHOMO";
|
|
17
|
+
readonly STASH: "STASH";
|
|
18
|
+
readonly CLASH: "CLASH";
|
|
19
|
+
readonly SINGBOX: "SINGBOX";
|
|
20
|
+
readonly OUTLINE: "OUTLINE";
|
|
21
|
+
readonly BLOCK: "BLOCK";
|
|
22
|
+
}>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
uuid?: string | undefined;
|
|
30
|
+
}, {
|
|
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
|
+
uuid?: string | undefined;
|
|
37
|
+
}>, "many">;
|
|
22
38
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
rules: {
|
|
40
|
+
order: number;
|
|
41
|
+
isFallback: boolean;
|
|
42
|
+
userAgentRegex: string | null;
|
|
43
|
+
xDeviceOsHeader: string | null;
|
|
44
|
+
responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
|
|
45
|
+
uuid?: string | undefined;
|
|
46
|
+
}[];
|
|
29
47
|
}, {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
48
|
+
rules: {
|
|
49
|
+
order: number;
|
|
50
|
+
isFallback: boolean;
|
|
51
|
+
userAgentRegex: string | null;
|
|
52
|
+
xDeviceOsHeader: string | null;
|
|
53
|
+
responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
|
|
54
|
+
uuid?: string | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
}>;
|
|
37
57
|
type Request = z.infer<typeof RequestSchema>;
|
|
38
58
|
const ResponseSchema: z.ZodObject<{
|
|
39
59
|
response: z.ZodObject<{
|
|
@@ -1 +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,6CAAuD,CAAC;IACjE,MAAM,OAAO,6CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -9,15 +9,17 @@ var UpdateSubscriptionResponseRulesCommand;
|
|
|
9
9
|
(function (UpdateSubscriptionResponseRulesCommand) {
|
|
10
10
|
UpdateSubscriptionResponseRulesCommand.url = api_1.REST_API.SUBSCRIPTION_SETTINGS.RESPONSE_RULES.UPDATE;
|
|
11
11
|
UpdateSubscriptionResponseRulesCommand.TSQ_url = UpdateSubscriptionResponseRulesCommand.url;
|
|
12
|
-
UpdateSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE, '
|
|
13
|
-
UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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.object({
|
|
14
|
+
rules: zod_1.z.array(zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid().optional(),
|
|
16
|
+
order: zod_1.z.number(),
|
|
17
|
+
isFallback: zod_1.z.boolean(),
|
|
18
|
+
userAgentRegex: zod_1.z.string().nullable(),
|
|
19
|
+
xDeviceOsHeader: zod_1.z.string().nullable(),
|
|
20
|
+
responseType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_RESPONSE_TYPE),
|
|
21
|
+
})),
|
|
22
|
+
});
|
|
21
23
|
UpdateSubscriptionResponseRulesCommand.ResponseSchema = zod_1.z.object({
|
|
22
24
|
response: zod_1.z.object({
|
|
23
25
|
rules: zod_1.z.array(models_1.SubscriptionResponseRulesSchema),
|
|
@@ -9,15 +9,17 @@ var UpdateSubscriptionResponseRulesCommand;
|
|
|
9
9
|
(function (UpdateSubscriptionResponseRulesCommand) {
|
|
10
10
|
UpdateSubscriptionResponseRulesCommand.url = api_1.REST_API.SUBSCRIPTION_SETTINGS.RESPONSE_RULES.UPDATE;
|
|
11
11
|
UpdateSubscriptionResponseRulesCommand.TSQ_url = UpdateSubscriptionResponseRulesCommand.url;
|
|
12
|
-
UpdateSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE, '
|
|
13
|
-
UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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.object({
|
|
14
|
+
rules: zod_1.z.array(zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid().optional(),
|
|
16
|
+
order: zod_1.z.number(),
|
|
17
|
+
isFallback: zod_1.z.boolean(),
|
|
18
|
+
userAgentRegex: zod_1.z.string().nullable(),
|
|
19
|
+
xDeviceOsHeader: zod_1.z.string().nullable(),
|
|
20
|
+
responseType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_RESPONSE_TYPE),
|
|
21
|
+
})),
|
|
22
|
+
});
|
|
21
23
|
UpdateSubscriptionResponseRulesCommand.ResponseSchema = zod_1.z.object({
|
|
22
24
|
response: zod_1.z.object({
|
|
23
25
|
rules: zod_1.z.array(models_1.SubscriptionResponseRulesSchema),
|