@remnawave/backend-contract 2.1.44 → 2.1.46
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 +2 -2
- package/build/backend/api/controllers/subscription-settings.js +2 -2
- package/build/backend/api/routes.d.ts +2 -2
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts +2 -2
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts +5 -5
- 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 +2 -2
- package/build/frontend/api/controllers/subscription-settings.js +2 -2
- package/build/frontend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +2 -2
- package/package.json +1 -1
@@ -3,8 +3,8 @@ export declare const SUBSCRIPTION_SETTINGS_ROUTES: {
|
|
3
3
|
readonly GET: "";
|
4
4
|
readonly UPDATE: "";
|
5
5
|
readonly RESPONSE_RULES: {
|
6
|
-
readonly GET: "
|
7
|
-
readonly UPDATE: "
|
6
|
+
readonly GET: "response-rules";
|
7
|
+
readonly UPDATE: "response-rules";
|
8
8
|
};
|
9
9
|
};
|
10
10
|
//# sourceMappingURL=subscription-settings.d.ts.map
|
@@ -126,8 +126,8 @@ export declare const REST_API: {
|
|
126
126
|
readonly GET: "/api/subscription-settings/";
|
127
127
|
readonly UPDATE: "/api/subscription-settings/";
|
128
128
|
readonly RESPONSE_RULES: {
|
129
|
-
readonly GET: "/api/subscription-settings
|
130
|
-
readonly UPDATE: "/api/subscription-settings
|
129
|
+
readonly GET: "/api/subscription-settings/response-rules";
|
130
|
+
readonly UPDATE: "/api/subscription-settings/response-rules";
|
131
131
|
};
|
132
132
|
};
|
133
133
|
readonly HWID: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare namespace GetSubscriptionResponseRulesCommand {
|
3
|
-
const url: "/api/subscription-settings
|
4
|
-
const TSQ_url: "/api/subscription-settings
|
3
|
+
const url: "/api/subscription-settings/response-rules";
|
4
|
+
const TSQ_url: "/api/subscription-settings/response-rules";
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const ResponseSchema: z.ZodObject<{
|
7
7
|
response: z.ZodObject<{
|
@@ -1 +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,
|
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,10 +1,10 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare namespace UpdateSubscriptionResponseRulesCommand {
|
3
|
-
const url: "/api/subscription-settings
|
4
|
-
const TSQ_url: "/api/subscription-settings
|
3
|
+
const url: "/api/subscription-settings/response-rules";
|
4
|
+
const TSQ_url: "/api/subscription-settings/response-rules";
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodArray<z.ZodObject<{
|
7
|
-
uuid: z.ZodString
|
7
|
+
uuid: z.ZodOptional<z.ZodString>;
|
8
8
|
order: z.ZodNumber;
|
9
9
|
isFallback: z.ZodBoolean;
|
10
10
|
userAgentRegex: z.ZodNullable<z.ZodString>;
|
@@ -20,19 +20,19 @@ export declare namespace UpdateSubscriptionResponseRulesCommand {
|
|
20
20
|
readonly BLOCK: "BLOCK";
|
21
21
|
}>;
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
23
|
-
uuid: string;
|
24
23
|
order: number;
|
25
24
|
isFallback: boolean;
|
26
25
|
userAgentRegex: string | null;
|
27
26
|
xDeviceOsHeader: string | null;
|
28
27
|
responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
|
28
|
+
uuid?: string | undefined;
|
29
29
|
}, {
|
30
|
-
uuid: string;
|
31
30
|
order: number;
|
32
31
|
isFallback: boolean;
|
33
32
|
userAgentRegex: string | null;
|
34
33
|
xDeviceOsHeader: string | null;
|
35
34
|
responseType: "XRAY_BASE64" | "XRAY_JSON" | "MIHOMO" | "STASH" | "CLASH" | "SINGBOX" | "OUTLINE" | "BLOCK";
|
35
|
+
uuid?: string | undefined;
|
36
36
|
}>, "many">;
|
37
37
|
type Request = z.infer<typeof RequestSchema>;
|
38
38
|
const ResponseSchema: 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,
|
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"}
|
@@ -9,9 +9,9 @@ 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, '
|
12
|
+
UpdateSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE, 'post', 'Update subscription response rules');
|
13
13
|
UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.array(zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
14
|
+
uuid: zod_1.z.string().uuid().optional(),
|
15
15
|
order: zod_1.z.number(),
|
16
16
|
isFallback: zod_1.z.boolean(),
|
17
17
|
userAgentRegex: zod_1.z.string().nullable(),
|
@@ -9,9 +9,9 @@ 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, '
|
12
|
+
UpdateSubscriptionResponseRulesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE, 'post', 'Update subscription response rules');
|
13
13
|
UpdateSubscriptionResponseRulesCommand.RequestSchema = zod_1.z.array(zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
14
|
+
uuid: zod_1.z.string().uuid().optional(),
|
15
15
|
order: zod_1.z.number(),
|
16
16
|
isFallback: zod_1.z.boolean(),
|
17
17
|
userAgentRegex: zod_1.z.string().nullable(),
|